Skip to Content
RpcGreeterv2

v2

GreeterService provides greeting functionality.


SayHello UNARY

SayHello sends a greeting to the server.

Request: HelloRequest

Name
namestring

name is the name of the person to greet.
languageoptional string

language optionally selects the greeting language.
repeat_countoptional int32

repeat_count optionally repeats the greeting the given number of times.

Response: HelloReply

Name
messagestring

message is the greeting message.
language_usedstring

language_used is the language in which the greeting was generated.

SayHelloStream SERVER STREAM

SayHelloStream streams greetings back to the client.

Request: HelloRequest

Name
namestring

name is the name of the person to greet.
languageoptional string

language optionally selects the greeting language.
repeat_countoptional int32

repeat_count optionally repeats the greeting the given number of times.

Response: HelloReply

Name
messagestring

message is the greeting message.
language_usedstring

language_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
namestring

name is the name of the person to greet.
languageoptional string

language optionally selects the greeting language.
repeat_countoptional int32

repeat_count optionally repeats the greeting the given number of times.

Response: HelloReply

Name
messagestring

message is the greeting message.
language_usedstring

language_used is the language in which the greeting was generated.
Last updated on