Class CreateWorkstationClusterRequest.Builder (0.21.0)

public static final class CreateWorkstationClusterRequest.Builder extends GeneratedMessageV3.Builder<CreateWorkstationClusterRequest.Builder> implements CreateWorkstationClusterRequestOrBuilder

Message for creating a CreateWorkstationCluster.

Protobuf type google.cloud.workstations.v1.CreateWorkstationClusterRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkstationClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

build()

public CreateWorkstationClusterRequest build()
Returns
TypeDescription
CreateWorkstationClusterRequest

buildPartial()

public CreateWorkstationClusterRequest buildPartial()
Returns
TypeDescription
CreateWorkstationClusterRequest

clear()

public CreateWorkstationClusterRequest.Builder clear()
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateWorkstationClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWorkstationClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

clearParent()

public CreateWorkstationClusterRequest.Builder clearParent()

Required. Parent resource name.

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

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateWorkstationClusterRequest.Builder clearValidateOnly()

Optional. If set, validate the request and preview the review, but do not actually apply it.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

This builder for chaining.

clearWorkstationCluster()

public CreateWorkstationClusterRequest.Builder clearWorkstationCluster()

Required. Workstation cluster to create.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

clearWorkstationClusterId()

public CreateWorkstationClusterRequest.Builder clearWorkstationClusterId()

Required. ID to use for the workstation cluster.

string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

This builder for chaining.

clone()

public CreateWorkstationClusterRequest.Builder clone()
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateWorkstationClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateWorkstationClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Parent resource name.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

Optional. If set, validate the request and preview the review, but do not actually apply it.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The validateOnly.

getWorkstationCluster()

public WorkstationCluster getWorkstationCluster()

Required. Workstation cluster to create.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationCluster

The workstationCluster.

getWorkstationClusterBuilder()

public WorkstationCluster.Builder getWorkstationClusterBuilder()

Required. Workstation cluster to create.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationCluster.Builder

getWorkstationClusterId()

public String getWorkstationClusterId()

Required. ID to use for the workstation cluster.

string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The workstationClusterId.

getWorkstationClusterIdBytes()

public ByteString getWorkstationClusterIdBytes()

Required. ID to use for the workstation cluster.

string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for workstationClusterId.

getWorkstationClusterOrBuilder()

public WorkstationClusterOrBuilder getWorkstationClusterOrBuilder()

Required. Workstation cluster to create.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationClusterOrBuilder

hasWorkstationCluster()

public boolean hasWorkstationCluster()

Required. Workstation cluster to create.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the workstationCluster field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateWorkstationClusterRequest other)

public CreateWorkstationClusterRequest.Builder mergeFrom(CreateWorkstationClusterRequest other)
Parameter
NameDescription
otherCreateWorkstationClusterRequest
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateWorkstationClusterRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateWorkstationClusterRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkstationClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

mergeWorkstationCluster(WorkstationCluster value)

public CreateWorkstationClusterRequest.Builder mergeWorkstationCluster(WorkstationCluster value)

Required. Workstation cluster to create.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkstationCluster
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkstationClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

setParent(String value)

public CreateWorkstationClusterRequest.Builder setParent(String value)

Required. Parent resource name.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateWorkstationClusterRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateWorkstationClusterRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkstationClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder
Overrides

setValidateOnly(boolean value)

public CreateWorkstationClusterRequest.Builder setValidateOnly(boolean value)

Optional. If set, validate the request and preview the review, but do not actually apply it.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

This builder for chaining.

setWorkstationCluster(WorkstationCluster value)

public CreateWorkstationClusterRequest.Builder setWorkstationCluster(WorkstationCluster value)

Required. Workstation cluster to create.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkstationCluster
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

setWorkstationCluster(WorkstationCluster.Builder builderForValue)

public CreateWorkstationClusterRequest.Builder setWorkstationCluster(WorkstationCluster.Builder builderForValue)

Required. Workstation cluster to create.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWorkstationCluster.Builder
Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

setWorkstationClusterId(String value)

public CreateWorkstationClusterRequest.Builder setWorkstationClusterId(String value)

Required. ID to use for the workstation cluster.

string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The workstationClusterId to set.

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

This builder for chaining.

setWorkstationClusterIdBytes(ByteString value)

public CreateWorkstationClusterRequest.Builder setWorkstationClusterIdBytes(ByteString value)

Required. ID to use for the workstation cluster.

string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for workstationClusterId to set.

Returns
TypeDescription
CreateWorkstationClusterRequest.Builder

This builder for chaining.