github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/examples/proto/hellostream.proto (about)

     1  syntax = "proto3";
     2  
     3  option java_multiple_files = true;
     4  option java_package = "com.examples.hellostream";
     5  option java_outer_classname = "HelloStreamProto";
     6  option objc_class_prefix = "HLWS";
     7  option go_package = "github.com/emcfarlane/larking/example/proto/hellostream;proto";
     8  
     9  package hellostream;
    10  
    11  import "google/api/annotations.proto";
    12  
    13  // The greeting service definition.
    14  service StreamingGreeter {
    15    // Streams a many greetings
    16    rpc SayHelloStreaming(stream HelloRequest) returns (stream HelloReply) {
    17      option (google.api.http) = {
    18        post : "/hello"
    19      };
    20    }
    21  }
    22  
    23  // The request message containing the user's name.
    24  message HelloRequest { string name = 1; }
    25  
    26  // The response message containing the greetings
    27  message HelloReply { string message = 1; }