Class UpdateWorkstationConfigRequest.Builder (0.7.0)

public static final class UpdateWorkstationConfigRequest.Builder extends GeneratedMessageV3.Builder<UpdateWorkstationConfigRequest.Builder> implements UpdateWorkstationConfigRequestOrBuilder

Request message for UpdateWorkstationConfig.

Protobuf type google.cloud.workstations.v1.UpdateWorkstationConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateWorkstationConfigRequest build()
Returns
TypeDescription
UpdateWorkstationConfigRequest

buildPartial()

public UpdateWorkstationConfigRequest buildPartial()
Returns
TypeDescription
UpdateWorkstationConfigRequest

clear()

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

clearAllowMissing()

public UpdateWorkstationConfigRequest.Builder clearAllowMissing()

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

bool allow_missing = 4;

Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

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

clearValidateOnly()

public UpdateWorkstationConfigRequest.Builder clearValidateOnly()

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

bool validate_only = 3;

Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder

This builder for chaining.

clearWorkstationConfig()

public UpdateWorkstationConfigRequest.Builder clearWorkstationConfig()

Required. Config to update.

.google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder

clone()

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

getAllowMissing()

public boolean getAllowMissing()

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

bool allow_missing = 4;

Returns
TypeDescription
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateWorkstationConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateWorkstationConfigRequest

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()

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

bool validate_only = 3;

Returns
TypeDescription
boolean

The validateOnly.

getWorkstationConfig()

public WorkstationConfig getWorkstationConfig()

Required. Config to update.

.google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationConfig

The workstationConfig.

getWorkstationConfigBuilder()

public WorkstationConfig.Builder getWorkstationConfigBuilder()

Required. Config to update.

.google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationConfig.Builder

getWorkstationConfigOrBuilder()

public WorkstationConfigOrBuilder getWorkstationConfigOrBuilder()

Required. Config to update.

.google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationConfigOrBuilder

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.

hasWorkstationConfig()

public boolean hasWorkstationConfig()

Required. Config to update.

.google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the workstationConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateWorkstationConfigRequest other)

public UpdateWorkstationConfigRequest.Builder mergeFrom(UpdateWorkstationConfigRequest other)
Parameter
NameDescription
otherUpdateWorkstationConfigRequest
Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

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

mergeWorkstationConfig(WorkstationConfig value)

public UpdateWorkstationConfigRequest.Builder mergeWorkstationConfig(WorkstationConfig value)

Required. Config to update.

.google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkstationConfig
Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder

setAllowMissing(boolean value)

public UpdateWorkstationConfigRequest.Builder setAllowMissing(boolean value)

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

bool allow_missing = 4;

Parameter
NameDescription
valueboolean

The allowMissing to set.

Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

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

setUpdateMask(FieldMask.Builder builderForValue)

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

setValidateOnly(boolean value)

public UpdateWorkstationConfigRequest.Builder setValidateOnly(boolean value)

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

bool validate_only = 3;

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder

This builder for chaining.

setWorkstationConfig(WorkstationConfig value)

public UpdateWorkstationConfigRequest.Builder setWorkstationConfig(WorkstationConfig value)

Required. Config to update.

.google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkstationConfig
Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder

setWorkstationConfig(WorkstationConfig.Builder builderForValue)

public UpdateWorkstationConfigRequest.Builder setWorkstationConfig(WorkstationConfig.Builder builderForValue)

Required. Config to update.

.google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWorkstationConfig.Builder
Returns
TypeDescription
UpdateWorkstationConfigRequest.Builder