Class GetDeviceSessionRequest.Builder (0.25.0)

public static final class GetDeviceSessionRequest.Builder extends GeneratedMessage.Builder<GetDeviceSessionRequest.Builder> implements GetDeviceSessionRequestOrBuilder

Request message for DirectAccessService.GetDeviceSession.

Protobuf type google.cloud.devicestreaming.v1.GetDeviceSessionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GetDeviceSessionRequest build()
Returns
Type Description
GetDeviceSessionRequest

buildPartial()

public GetDeviceSessionRequest buildPartial()
Returns
Type Description
GetDeviceSessionRequest

clear()

public GetDeviceSessionRequest.Builder clear()
Returns
Type Description
GetDeviceSessionRequest.Builder
Overrides

clearName()

public GetDeviceSessionRequest.Builder clearName()

Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetDeviceSessionRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetDeviceSessionRequest getDefaultInstanceForType()
Returns
Type Description
GetDeviceSessionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetDeviceSessionRequest other)

public GetDeviceSessionRequest.Builder mergeFrom(GetDeviceSessionRequest other)
Parameter
Name Description
other GetDeviceSessionRequest
Returns
Type Description
GetDeviceSessionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetDeviceSessionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetDeviceSessionRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setName(String value)

public GetDeviceSessionRequest.Builder setName(String value)

Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetDeviceSessionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetDeviceSessionRequest.Builder setNameBytes(ByteString value)

Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetDeviceSessionRequest.Builder

This builder for chaining.