rpc.proto 585 B

123456789101112131415161718192021222324
  1. syntax = "proto3";
  2. // option go_package = "google.golang.org/grpc/examples/helloworld/helloworld";
  3. // option java_multiple_files = true;
  4. // option java_package = "io.grpc.examples.helloworld";
  5. // option java_outer_classname = "HelloWorldProto";
  6. package proto;
  7. // The greeting service definition.
  8. service Greeter {
  9. // Sends a greeting
  10. rpc SayHello (HelloRequest) returns (HelloReply) {}
  11. }
  12. // The request message containing the user's name.
  13. message HelloRequest {
  14. string name = 1;
  15. }
  16. // The response message containing the greetings
  17. message HelloReply {
  18. string message = 1;
  19. }