Brian Silverman | cc09f18 | 2022-03-09 15:40:20 -0800 | [diff] [blame^] | 1 | |
2 | syntax = "proto3"; | ||||
3 | |||||
4 | import "proto/common.proto"; | ||||
5 | |||||
6 | package helloworld; | ||||
7 | |||||
8 | // The greeting service definition. | ||||
9 | service Greeter { | ||||
10 | // Sends a greeting | ||||
11 | rpc SayHello (HelloRequest) returns (HelloReply) {} | ||||
12 | } | ||||
13 | |||||
14 | // The request message containing the user's name. | ||||
15 | message HelloRequest { | ||||
16 | string name = 1; | ||||
17 | common.Config config = 2; | ||||
18 | } | ||||
19 | |||||
20 | // The response message containing the greetings | ||||
21 | message HelloReply { | ||||
22 | string message = 1; | ||||
23 | } |