public static final class ClientInfo.Builder extends GeneratedMessage.Builder<ClientInfo.Builder> implements ClientInfoOrBuilderInformation about the client which invoked the device session.
Protobuf type google.cloud.devicestreaming.v1.ClientInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ClientInfo.BuilderImplements
ClientInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ClientInfo build()| Returns | |
|---|---|
| Type | Description |
ClientInfo |
|
buildPartial()
public ClientInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
ClientInfo |
|
clear()
public ClientInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
|
clearClient()
public ClientInfo.Builder clearClient()Required. Client name, such as gcloud. The maximum length is 64 characters.
string client = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
This builder for chaining. |
clearVersion()
public ClientInfo.Builder clearVersion()Optional. Client version. The maximum length is 64 characters.
string version = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
This builder for chaining. |
getClient()
public String getClient()Required. Client name, such as gcloud. The maximum length is 64 characters.
string client = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The client. |
getClientBytes()
public ByteString getClientBytes()Required. Client name, such as gcloud. The maximum length is 64 characters.
string client = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for client. |
getDefaultInstanceForType()
public ClientInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ClientInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getVersion()
public String getVersion()Optional. Client version. The maximum length is 64 characters.
string version = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The version. |
getVersionBytes()
public ByteString getVersionBytes()Optional. Client version. The maximum length is 64 characters.
string version = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for version. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ClientInfo other)
public ClientInfo.Builder mergeFrom(ClientInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
ClientInfo |
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ClientInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ClientInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
|
setClient(String value)
public ClientInfo.Builder setClient(String value)Required. Client name, such as gcloud. The maximum length is 64 characters.
string client = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe client to set. |
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
This builder for chaining. |
setClientBytes(ByteString value)
public ClientInfo.Builder setClientBytes(ByteString value)Required. Client name, such as gcloud. The maximum length is 64 characters.
string client = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for client to set. |
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
This builder for chaining. |
setVersion(String value)
public ClientInfo.Builder setVersion(String value)Optional. Client version. The maximum length is 64 characters.
string version = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe version to set. |
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
This builder for chaining. |
setVersionBytes(ByteString value)
public ClientInfo.Builder setVersionBytes(ByteString value)Optional. Client version. The maximum length is 64 characters.
string version = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for version to set. |
| Returns | |
|---|---|
| Type | Description |
ClientInfo.Builder |
This builder for chaining. |