gRPC API Reference¶
Contents¶
-
Services
-
Messages
HelloGreeter¶
The greeting service definition.
SayHello¶
rpc SayHello(HelloGreeterSayHelloRequest) HelloGreeterSayHelloResponse
Sends a greeting
HelloIdentity¶
Version¶
rpc Version(HelloIdentityVersionRequest) HelloIdentityVersionResponse
Messages¶
HelloGreeterSayHelloRequest¶
The request message containing the user's name.
Field | Type | Description |
---|---|---|
name | string | none |
HelloGreeterSayHelloResponse¶
The response message containing the greetings
Field | Type | Description |
---|---|---|
message | string | none |
HelloIdentityVersionRequest¶
Empty request
HelloIdentityVersionResponse¶
Defines the response to version
Field | Type | Description |
---|---|---|
hello_version | HelloVersion | Hello application version |
HelloVersion¶
Hello version in Major.Minor.Patch format. The goal of this message is to provide clients a method to determine the server and client versions.
Field | Type | Description |
---|---|---|
major | int32 | Version major number |
minor | int32 | Version minor number |
patch | int32 | Version patch number |
version | string | String representation of the version. Must be in major.minor.patch format. |
Enums¶
HelloVersion.Version¶
These values are constants that can be used by the client and server applications
Name | Number | Description |
---|---|---|
MUST_HAVE_ZERO_VALUE | 0 | Must be set in the proto file; ignore. |
MAJOR | 0 | Version major value of this specification |
MINOR | 0 | Version minor value of this specification |
PATCH | 1 | Version patch value of this specification |