Class ClientInfo.Builder (0.39.0)

public static final class ClientInfo.Builder extends GeneratedMessage.Builder<ClientInfo.Builder> implements ClientInfoOrBuilder

Information about the client which invoked the device session.

Protobuf type google.cloud.devicestreaming.v1.ClientInfo

Implements

ClientInfoOrBuilder

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClientInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClientInfo.Builder
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for version to set.

Returns
Type Description
ClientInfo.Builder

This builder for chaining.