v2
GreeterService provides greeting functionality.
SayHello UNARY
SayHello sends a greeting to the server.
Request: HelloRequest
| Name | |
|---|---|
name | stringname is the name of the person to greet. |
language | optional stringlanguage optionally selects the greeting language. |
repeat_count | optional int32repeat_count optionally repeats the greeting the given number of times. |
Response: HelloReply
| Name | |
|---|---|
message | stringmessage is the greeting message. |
language_used | stringlanguage_used is the language in which the greeting was generated. |
SayHelloStream SERVER STREAM
SayHelloStream streams greetings back to the client.
Request: HelloRequest
| Name | |
|---|---|
name | stringname is the name of the person to greet. |
language | optional stringlanguage optionally selects the greeting language. |
repeat_count | optional int32repeat_count optionally repeats the greeting the given number of times. |
Response: HelloReply
| Name | |
|---|---|
message | stringmessage is the greeting message. |
language_used | stringlanguage_used is the language in which the greeting was generated. |
SayHelloMany CLIENT STREAM
SayHelloMany collects a stream of requests and returns a single combined greeting.
Request: HelloRequest
| Name | |
|---|---|
name | stringname is the name of the person to greet. |
language | optional stringlanguage optionally selects the greeting language. |
repeat_count | optional int32repeat_count optionally repeats the greeting the given number of times. |
Response: HelloReply
| Name | |
|---|---|
message | stringmessage is the greeting message. |
language_used | stringlanguage_used is the language in which the greeting was generated. |
Last updated on