Class UpdateWorkstationRequest.Builder (0.34.0)

public static final class UpdateWorkstationRequest.Builder extends GeneratedMessageV3.Builder<UpdateWorkstationRequest.Builder> implements UpdateWorkstationRequestOrBuilder

Request message for UpdateWorkstation.

Protobuf type google.cloud.workstations.v1.UpdateWorkstationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateWorkstationRequest build()
Returns
Type Description
UpdateWorkstationRequest

buildPartial()

public UpdateWorkstationRequest buildPartial()
Returns
Type Description
UpdateWorkstationRequest

clear()

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

clearAllowMissing()

public UpdateWorkstationRequest.Builder clearAllowMissing()

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

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

Returns
Type Description
UpdateWorkstationRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateWorkstationRequest.Builder clearUpdateMask()

Required. Mask specifying which fields in the workstation configuration should be updated.

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

Returns
Type Description
UpdateWorkstationRequest.Builder

clearValidateOnly()

public UpdateWorkstationRequest.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
UpdateWorkstationRequest.Builder

This builder for chaining.

clearWorkstation()

public UpdateWorkstationRequest.Builder clearWorkstation()

Required. Workstation to update.

.google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateWorkstationRequest.Builder

clone()

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

getAllowMissing()

public boolean getAllowMissing()

Optional. If set and the workstation configuration is not found, a new workstation configuration is 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 UpdateWorkstationRequest getDefaultInstanceForType()
Returns
Type Description
UpdateWorkstationRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Required. Mask specifying which fields in the workstation configuration 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 specifying which fields in the workstation configuration should be updated.

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Mask specifying which fields in the workstation configuration 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.

getWorkstation()

public Workstation getWorkstation()

Required. Workstation to update.

.google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Workstation

The workstation.

getWorkstationBuilder()

public Workstation.Builder getWorkstationBuilder()

Required. Workstation to update.

.google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Workstation.Builder

getWorkstationOrBuilder()

public WorkstationOrBuilder getWorkstationOrBuilder()

Required. Workstation to update.

.google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkstationOrBuilder

hasUpdateMask()

public boolean hasUpdateMask()

Required. Mask specifying which fields in the workstation configuration should be updated.

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

Returns
Type Description
boolean

Whether the updateMask field is set.

hasWorkstation()

public boolean hasWorkstation()

Required. Workstation to update.

.google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the workstation field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateWorkstationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateWorkstationRequest.Builder mergeUpdateMask(FieldMask value)

Required. Mask specifying which fields in the workstation configuration should be updated.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWorkstationRequest.Builder

mergeWorkstation(Workstation value)

public UpdateWorkstationRequest.Builder mergeWorkstation(Workstation value)

Required. Workstation to update.

.google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Workstation
Returns
Type Description
UpdateWorkstationRequest.Builder

setAllowMissing(boolean value)

public UpdateWorkstationRequest.Builder setAllowMissing(boolean value)

Optional. If set and the workstation configuration is not found, a new workstation configuration is 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
UpdateWorkstationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateWorkstationRequest.Builder setUpdateMask(FieldMask value)

Required. Mask specifying which fields in the workstation configuration should be updated.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWorkstationRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateWorkstationRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Mask specifying which fields in the workstation configuration should be updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateWorkstationRequest.Builder

setValidateOnly(boolean value)

public UpdateWorkstationRequest.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
UpdateWorkstationRequest.Builder

This builder for chaining.

setWorkstation(Workstation value)

public UpdateWorkstationRequest.Builder setWorkstation(Workstation value)

Required. Workstation to update.

.google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Workstation
Returns
Type Description
UpdateWorkstationRequest.Builder

setWorkstation(Workstation.Builder builderForValue)

public UpdateWorkstationRequest.Builder setWorkstation(Workstation.Builder builderForValue)

Required. Workstation to update.

.google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Workstation.Builder
Returns
Type Description
UpdateWorkstationRequest.Builder