v1
Greeter
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. |
Response: HelloReply
| Name | |
|---|---|
message | stringmessage is the greeting message. |
Errors
NOT_FOUND
the requested person was not found.
INVALID_ARGUMENT
input validation failed.
Detail type: google.rpc.BadRequest
{
"field_violations": [
{
"description": "must not be empty.",
"field": "name"
},
{
"description": "must be a valid BCP-47 language tag.",
"field": "language"
}
]
}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. |
Response: HelloReply
| Name | |
|---|---|
message | stringmessage is the greeting message. |
Farewell
FarewellService provides farewell functionality.