12345678910111213141516171819202122232425 |
- syntax = "proto3";
- option csharp_namespace = "GrpcService1";
- import "google/api/annotations.proto";
- package greet;
- // The greeting service definition.
- service Greeter {
- rpc SayHello (HelloRequest) returns (HelloReply) {
- option (google.api.http) = {
- get: "/v1/greeter/{name}"
- };
- }
- }
- // The request message containing the user's name.
- message HelloRequest {
- string name = 1;
- }
- // The response message containing the greetings.
- message HelloReply {
- string message = 1;
- }
|