greet.proto 406 B

123456789101112131415161718192021
  1. syntax = "proto3";
  2. option csharp_namespace = "XYY.gRpc.Customer";
  3. package greet;
  4. // The greeting service definition.
  5. service Greeter {
  6. // Sends a greeting
  7. rpc SayHello (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. }