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

     1  syntax = "proto3";
     2  
     3  option java_multiple_files = true;
     4  option java_package = "com.examples.helloworld";
     5  option java_outer_classname = "HelloWorldProto";
     6  option objc_class_prefix = "HLW";
     7  option go_package = "github.com/emcfarlane/larking/example/proto/helloworld;proto";
     8  
     9  package helloworld;
    10  
    11  import "google/api/annotations.proto";
    12  
    13  // The greeting service definition.
    14  service Greeter {
    15    // Sends a greeting
    16    rpc SayHello(HelloRequest) returns (HelloReply) {
    17      option (google.api.http) = {
    18        get : "/hello/{name}"
    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; }