Class UpdateWorkstationClusterRequest.Builder (0.41.0)

public static final class UpdateWorkstationClusterRequest.Builder extends GeneratedMessageV3.Builder<UpdateWorkstationClusterRequest.Builder> implements UpdateWorkstationClusterRequestOrBuilder

Request message for UpdateWorkstationCluster.

Protobuf type google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateWorkstationClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateWorkstationClusterRequest.Builder
Overrides

build()

public UpdateWorkstationClusterRequest build()
Returns
Type Description
UpdateWorkstationClusterRequest

buildPartial()

public UpdateWorkstationClusterRequest buildPartial()
Returns
Type Description
UpdateWorkstationClusterRequest

clear()

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

clearAllowMissing()

public UpdateWorkstationClusterRequest.Builder clearAllowMissing()

Optional. If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored.

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

Returns
Type Description
UpdateWorkstationClusterRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UpdateWorkstationClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateWorkstationClusterRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateWorkstationClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateWorkstationClusterRequest.Builder
Overrides

clearUpdateMask()

public UpdateWorkstationClusterRequest.Builder clearUpdateMask()

Required. Mask that specifies which fields in the workstation cluster should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateWorkstationClusterRequest.Builder

clearValidateOnly()

public UpdateWorkstationClusterRequest.Builder clearValidateOnly()

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

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

Returns
Type Description
UpdateWorkstationClusterRequest.Builder

This builder for chaining.

clearWorkstationCluster()

public UpdateWorkstationClusterRequest.Builder clearWorkstationCluster()

Required. Workstation cluster to update.

.google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateWorkstationClusterRequest.Builder

clone()

public UpdateWorkstationClusterRequest.Builder clone()
Returns
Type Description
UpdateWorkstationClusterRequest.Builder
Overrides

getAllowMissing()

public boolean getAllowMissing()

Optional. If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored.

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

Returns
Type Description
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateWorkstationClusterRequest getDefaultInstanceForType()
Returns
Type Description
UpdateWorkstationClusterRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Required. Mask that specifies which fields in the workstation cluster should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Mask that specifies which fields in the workstation cluster should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Mask that specifies which fields in the workstation cluster should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

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

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

Returns
Type Description
boolean

The validateOnly.

getWorkstationCluster()

public WorkstationCluster getWorkstationCluster()

Required. Workstation cluster to update.

.google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkstationCluster

The workstationCluster.

getWorkstationClusterBuilder()

public WorkstationCluster.Builder getWorkstationClusterBuilder()

Required. Workstation cluster to update.

.google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkstationCluster.Builder

getWorkstationClusterOrBuilder()

public WorkstationClusterOrBuilder getWorkstationClusterOrBuilder()

Required. Workstation cluster to update.

.google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkstationClusterOrBuilder

hasUpdateMask()

public boolean hasUpdateMask()

Required. Mask that specifies which fields in the workstation cluster should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

hasWorkstationCluster()

public boolean hasWorkstationCluster()

Required. Workstation cluster to update.

.google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the workstationCluster field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateWorkstationClusterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateWorkstationClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateWorkstationClusterRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateWorkstationClusterRequest.Builder mergeUpdateMask(FieldMask value)

Required. Mask that specifies which fields in the workstation cluster should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWorkstationClusterRequest.Builder

mergeWorkstationCluster(WorkstationCluster value)

public UpdateWorkstationClusterRequest.Builder mergeWorkstationCluster(WorkstationCluster value)

Required. Workstation cluster to update.

.google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WorkstationCluster
Returns
Type Description
UpdateWorkstationClusterRequest.Builder

setAllowMissing(boolean value)

public UpdateWorkstationClusterRequest.Builder setAllowMissing(boolean value)

Optional. If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored.

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

Parameter
Name Description
value boolean

The allowMissing to set.

Returns
Type Description
UpdateWorkstationClusterRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateWorkstationClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateWorkstationClusterRequest.Builder
Overrides

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

public UpdateWorkstationClusterRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateWorkstationClusterRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateWorkstationClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateWorkstationClusterRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateWorkstationClusterRequest.Builder setUpdateMask(FieldMask value)

Required. Mask that specifies which fields in the workstation cluster should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWorkstationClusterRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateWorkstationClusterRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Mask that specifies which fields in the workstation cluster should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateWorkstationClusterRequest.Builder

setValidateOnly(boolean value)

public UpdateWorkstationClusterRequest.Builder setValidateOnly(boolean value)

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

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

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateWorkstationClusterRequest.Builder

This builder for chaining.

setWorkstationCluster(WorkstationCluster value)

public UpdateWorkstationClusterRequest.Builder setWorkstationCluster(WorkstationCluster value)

Required. Workstation cluster to update.

.google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WorkstationCluster
Returns
Type Description
UpdateWorkstationClusterRequest.Builder

setWorkstationCluster(WorkstationCluster.Builder builderForValue)

public UpdateWorkstationClusterRequest.Builder setWorkstationCluster(WorkstationCluster.Builder builderForValue)

Required. Workstation cluster to update.

.google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue WorkstationCluster.Builder
Returns
Type Description
UpdateWorkstationClusterRequest.Builder