Class CreateDeviceSessionRequest.Builder (0.25.0)

public static final class CreateDeviceSessionRequest.Builder extends GeneratedMessage.Builder<CreateDeviceSessionRequest.Builder> implements CreateDeviceSessionRequestOrBuilder

Request message for DirectAccessService.CreateDeviceSession.

Protobuf type google.cloud.devicestreaming.v1.CreateDeviceSessionRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateDeviceSessionRequest build()
Returns
Type Description
CreateDeviceSessionRequest

buildPartial()

public CreateDeviceSessionRequest buildPartial()
Returns
Type Description
CreateDeviceSessionRequest

clear()

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

clearDeviceSession()

public CreateDeviceSessionRequest.Builder clearDeviceSession()

Required. A DeviceSession to create.

.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDeviceSessionRequest.Builder

clearDeviceSessionId()

public CreateDeviceSessionRequest.Builder clearDeviceSessionId()

Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateDeviceSessionRequest.Builder

This builder for chaining.

clearParent()

public CreateDeviceSessionRequest.Builder clearParent()

Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

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

Returns
Type Description
CreateDeviceSessionRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateDeviceSessionRequest getDefaultInstanceForType()
Returns
Type Description
CreateDeviceSessionRequest

getDescriptorForType()

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

getDeviceSession()

public DeviceSession getDeviceSession()

Required. A DeviceSession to create.

.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeviceSession

The deviceSession.

getDeviceSessionBuilder()

public DeviceSession.Builder getDeviceSessionBuilder()

Required. A DeviceSession to create.

.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeviceSession.Builder

getDeviceSessionId()

public String getDeviceSessionId()

Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The deviceSessionId.

getDeviceSessionIdBytes()

public ByteString getDeviceSessionIdBytes()

Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for deviceSessionId.

getDeviceSessionOrBuilder()

public DeviceSessionOrBuilder getDeviceSessionOrBuilder()

Required. A DeviceSession to create.

.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeviceSessionOrBuilder

getParent()

public String getParent()

Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

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

Returns
Type Description
ByteString

The bytes for parent.

hasDeviceSession()

public boolean hasDeviceSession()

Required. A DeviceSession to create.

.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the deviceSession field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeviceSession(DeviceSession value)

public CreateDeviceSessionRequest.Builder mergeDeviceSession(DeviceSession value)

Required. A DeviceSession to create.

.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeviceSession
Returns
Type Description
CreateDeviceSessionRequest.Builder

mergeFrom(CreateDeviceSessionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDeviceSession(DeviceSession value)

public CreateDeviceSessionRequest.Builder setDeviceSession(DeviceSession value)

Required. A DeviceSession to create.

.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeviceSession
Returns
Type Description
CreateDeviceSessionRequest.Builder

setDeviceSession(DeviceSession.Builder builderForValue)

public CreateDeviceSessionRequest.Builder setDeviceSession(DeviceSession.Builder builderForValue)

Required. A DeviceSession to create.

.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DeviceSession.Builder
Returns
Type Description
CreateDeviceSessionRequest.Builder

setDeviceSessionId(String value)

public CreateDeviceSessionRequest.Builder setDeviceSessionId(String value)

Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The deviceSessionId to set.

Returns
Type Description
CreateDeviceSessionRequest.Builder

This builder for chaining.

setDeviceSessionIdBytes(ByteString value)

public CreateDeviceSessionRequest.Builder setDeviceSessionIdBytes(ByteString value)

Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for deviceSessionId to set.

Returns
Type Description
CreateDeviceSessionRequest.Builder

This builder for chaining.

setParent(String value)

public CreateDeviceSessionRequest.Builder setParent(String value)

Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDeviceSessionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDeviceSessionRequest.Builder setParentBytes(ByteString value)

Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDeviceSessionRequest.Builder

This builder for chaining.