github.com/renbou/grpcbridge@v0.0.2-0.20240416012907-bcbd8b12648a/internal/bridgetest/testpb/testsvc.proto (about) 1 syntax = "proto3"; 2 3 package grpcbridge.internal.bridgetest.testpb; 4 5 import "google/api/annotations.proto"; 6 import "messages.proto"; 7 8 option go_package = "github.com/renbou/grpcbridge/internal/bridgetest/testpb"; 9 10 service TestService { 11 rpc UnaryUnbound(Scalars) returns (Scalars); 12 13 rpc UnaryBound(Scalars) returns (Combined) { 14 option (google.api.http) = { 15 post: "/service/unary/{string_value}/{fixed64_value}" 16 body: "bytes_value" 17 }; 18 } 19 20 rpc UnaryCombined(Combined) returns (Combined) { 21 option (google.api.http) = { 22 post: "/service/combined/{scalars.bool_value}/{scalars.string_value}" 23 body: "non_scalars" 24 response_body: "non_scalars" 25 }; 26 } 27 28 rpc BadResponsePath(Scalars) returns (Combined) { 29 option (google.api.http) = { 30 post: "/service/bad-response-path" 31 response_body: "not_a_field" 32 }; 33 } 34 35 rpc Echo(Combined) returns (Combined) { 36 option (google.api.http) = { 37 post: "/service/echo" 38 body: "*" 39 }; 40 } 41 } 42 43 message Combined { 44 Scalars scalars = 1; 45 NonScalars non_scalars = 2; 46 }