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