hello.proto 442 B

12345678910111213141516171819
  1. syntax = "proto3";
  2. // The greeting service definition.
  3. service Greeter {
  4. // Sends a greeting
  5. rpc SayHello (HelloRequest) returns (HelloReply) {}
  6. // Sends another greeting
  7. rpc SayHelloAgain (HelloRequest) returns (HelloReply) {}
  8. }
  9. // The request message containing the user's name.
  10. message HelloRequest {
  11. string name = 1;
  12. }
  13. // The response message containing the greetings
  14. message HelloReply {
  15. string message = 1;
  16. }