greet.proto 494 B

12345678910111213141516171819202122232425
  1. syntax = "proto3";
  2. option csharp_namespace = "GrpcService1";
  3. import "google/api/annotations.proto";
  4. package greet;
  5. // The greeting service definition.
  6. service Greeter {
  7. rpc SayHello (HelloRequest) returns (HelloReply) {
  8. option (google.api.http) = {
  9. get: "/v1/greeter/{name}"
  10. };
  11. }
  12. }
  13. // The request message containing the user's name.
  14. message HelloRequest {
  15. string name = 1;
  16. }
  17. // The response message containing the greetings.
  18. message HelloReply {
  19. string message = 1;
  20. }