Class UpdateWorkstationClusterRequest.Builder (0.28.0)

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

Request message for UpdateWorkstationCluster.

Protobuf type google.cloud.workstations.v1.UpdateWorkstationClusterRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateWorkstationClusterRequest build()
Returns
TypeDescription
UpdateWorkstationClusterRequest

buildPartial()

public UpdateWorkstationClusterRequest buildPartial()
Returns
TypeDescription
UpdateWorkstationClusterRequest

clear()

public UpdateWorkstationClusterRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateWorkstationClusterRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateWorkstationClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateWorkstationClusterRequest.Builder

This builder for chaining.

clearWorkstationCluster()

public UpdateWorkstationClusterRequest.Builder clearWorkstationCluster()

Required. Workstation cluster to update.

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

Returns
TypeDescription
UpdateWorkstationClusterRequest.Builder

clone()

public UpdateWorkstationClusterRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateWorkstationClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateWorkstationClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The validateOnly.

getWorkstationCluster()

public WorkstationCluster getWorkstationCluster()

Required. Workstation cluster to update.

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

Returns
TypeDescription
WorkstationCluster

The workstationCluster.

getWorkstationClusterBuilder()

public WorkstationCluster.Builder getWorkstationClusterBuilder()

Required. Workstation cluster to update.

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

Returns
TypeDescription
WorkstationCluster.Builder

getWorkstationClusterOrBuilder()

public WorkstationClusterOrBuilder getWorkstationClusterOrBuilder()

Required. Workstation cluster to update.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

hasWorkstationCluster()

public boolean hasWorkstationCluster()

Required. Workstation cluster to update.

.google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.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(UpdateWorkstationClusterRequest other)

public UpdateWorkstationClusterRequest.Builder mergeFrom(UpdateWorkstationClusterRequest other)
Parameter
NameDescription
otherUpdateWorkstationClusterRequest
Returns
TypeDescription
UpdateWorkstationClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateWorkstationClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateWorkstationClusterRequest.Builder

mergeWorkstationCluster(WorkstationCluster value)

public UpdateWorkstationClusterRequest.Builder mergeWorkstationCluster(WorkstationCluster value)

Required. Workstation cluster to update.

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

Parameter
NameDescription
valueWorkstationCluster
Returns
TypeDescription
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
NameDescription
valueboolean

The allowMissing to set.

Returns
TypeDescription
UpdateWorkstationClusterRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateWorkstationClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
UpdateWorkstationClusterRequest.Builder

This builder for chaining.

setWorkstationCluster(WorkstationCluster value)

public UpdateWorkstationClusterRequest.Builder setWorkstationCluster(WorkstationCluster value)

Required. Workstation cluster to update.

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

Parameter
NameDescription
valueWorkstationCluster
Returns
TypeDescription
UpdateWorkstationClusterRequest.Builder

setWorkstationCluster(WorkstationCluster.Builder builderForValue)

public UpdateWorkstationClusterRequest.Builder setWorkstationCluster(WorkstationCluster.Builder builderForValue)

Required. Workstation cluster to update.

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

Parameter
NameDescription
builderForValueWorkstationCluster.Builder
Returns
TypeDescription
UpdateWorkstationClusterRequest.Builder