Class UpdateWorkstationRequest.Builder (0.19.0)

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

Request message for UpdateWorkstation.

Protobuf type google.cloud.workstations.v1beta.UpdateWorkstationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateWorkstationRequest build()
Returns
TypeDescription
UpdateWorkstationRequest

buildPartial()

public UpdateWorkstationRequest buildPartial()
Returns
TypeDescription
UpdateWorkstationRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearWorkstation()

public UpdateWorkstationRequest.Builder clearWorkstation()

Required. Workstation to update.

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

Returns
TypeDescription
UpdateWorkstationRequest.Builder

clone()

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

The allowMissing.

getDefaultInstanceForType()

public UpdateWorkstationRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateWorkstationRequest

getDescriptorForType()

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

getWorkstation()

public Workstation getWorkstation()

Required. Workstation to update.

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

Returns
TypeDescription
Workstation

The workstation.

getWorkstationBuilder()

public Workstation.Builder getWorkstationBuilder()

Required. Workstation to update.

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

Returns
TypeDescription
Workstation.Builder

getWorkstationOrBuilder()

public WorkstationOrBuilder getWorkstationOrBuilder()

Required. Workstation to update.

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

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

Whether the updateMask field is set.

hasWorkstation()

public boolean hasWorkstation()

Required. Workstation to update.

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

Returns
TypeDescription
boolean

Whether the workstation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateWorkstationRequest other)

public UpdateWorkstationRequest.Builder mergeFrom(UpdateWorkstationRequest other)
Parameter
NameDescription
otherUpdateWorkstationRequest
Returns
TypeDescription
UpdateWorkstationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWorkstation(Workstation value)

public UpdateWorkstationRequest.Builder mergeWorkstation(Workstation value)

Required. Workstation to update.

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

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

The allowMissing to set.

Returns
TypeDescription
UpdateWorkstationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
UpdateWorkstationRequest.Builder

This builder for chaining.

setWorkstation(Workstation value)

public UpdateWorkstationRequest.Builder setWorkstation(Workstation value)

Required. Workstation to update.

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

Parameter
NameDescription
valueWorkstation
Returns
TypeDescription
UpdateWorkstationRequest.Builder

setWorkstation(Workstation.Builder builderForValue)

public UpdateWorkstationRequest.Builder setWorkstation(Workstation.Builder builderForValue)

Required. Workstation to update.

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

Parameter
NameDescription
builderForValueWorkstation.Builder
Returns
TypeDescription
UpdateWorkstationRequest.Builder