...
1syntax = "proto3";
2option go_package = "examplepb";
3package grpc.gateway.examples.internal.examplepb;
4
5import "google/api/annotations.proto";
6import "google/protobuf/empty.proto";
7import "examples/internal/proto/examplepb/a_bit_of_everything.proto";
8import "examples/internal/proto/sub/message.proto";
9
10// Defines some more operations to be added to ABitOfEverythingService
11service StreamService {
12 rpc BulkCreate(stream ABitOfEverything) returns (google.protobuf.Empty) {
13 option (google.api.http) = {
14 post: "/v1/example/a_bit_of_everything/bulk"
15 body: "*"
16 };
17 }
18 rpc List(google.protobuf.Empty) returns (stream ABitOfEverything) {
19 option (google.api.http) = {
20 get: "/v1/example/a_bit_of_everything"
21 };
22 }
23 rpc BulkEcho(stream grpc.gateway.examples.internal.sub.StringMessage) returns (stream grpc.gateway.examples.internal.sub.StringMessage) {
24 option (google.api.http) = {
25 post: "/v1/example/a_bit_of_everything/echo"
26 body: "*"
27 };
28 }
29}
View as plain text