Class CreateWorkstationConfigRequest.Builder (0.29.0)

public static final class CreateWorkstationConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateWorkstationConfigRequest.Builder> implements CreateWorkstationConfigRequestOrBuilder

Message for creating a CreateWorkstationConfig.

Protobuf type google.cloud.workstations.v1beta.CreateWorkstationConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateWorkstationConfigRequest build()
Returns
TypeDescription
CreateWorkstationConfigRequest

buildPartial()

public CreateWorkstationConfigRequest buildPartial()
Returns
TypeDescription
CreateWorkstationConfigRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateWorkstationConfigRequest.Builder clearParent()

Required. Parent resource name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateWorkstationConfigRequest.Builder clearValidateOnly()

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

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

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

This builder for chaining.

clearWorkstationConfig()

public CreateWorkstationConfigRequest.Builder clearWorkstationConfig()

Required. Config to create.

.google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

clearWorkstationConfigId()

public CreateWorkstationConfigRequest.Builder clearWorkstationConfigId()

Required. ID to use for the workstation configuration.

string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateWorkstationConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateWorkstationConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Parent resource name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

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

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

Returns
TypeDescription
boolean

The validateOnly.

getWorkstationConfig()

public WorkstationConfig getWorkstationConfig()

Required. Config to create.

.google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationConfig

The workstationConfig.

getWorkstationConfigBuilder()

public WorkstationConfig.Builder getWorkstationConfigBuilder()

Required. Config to create.

.google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationConfig.Builder

getWorkstationConfigId()

public String getWorkstationConfigId()

Required. ID to use for the workstation configuration.

string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The workstationConfigId.

getWorkstationConfigIdBytes()

public ByteString getWorkstationConfigIdBytes()

Required. ID to use for the workstation configuration.

string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for workstationConfigId.

getWorkstationConfigOrBuilder()

public WorkstationConfigOrBuilder getWorkstationConfigOrBuilder()

Required. Config to create.

.google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkstationConfigOrBuilder

hasWorkstationConfig()

public boolean hasWorkstationConfig()

Required. Config to create.

.google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.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(CreateWorkstationConfigRequest other)

public CreateWorkstationConfigRequest.Builder mergeFrom(CreateWorkstationConfigRequest other)
Parameter
NameDescription
otherCreateWorkstationConfigRequest
Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWorkstationConfig(WorkstationConfig value)

public CreateWorkstationConfigRequest.Builder mergeWorkstationConfig(WorkstationConfig value)

Required. Config to create.

.google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkstationConfig
Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateWorkstationConfigRequest.Builder setParent(String value)

Required. Parent resource name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateWorkstationConfigRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateWorkstationConfigRequest.Builder setValidateOnly(boolean value)

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

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

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

This builder for chaining.

setWorkstationConfig(WorkstationConfig value)

public CreateWorkstationConfigRequest.Builder setWorkstationConfig(WorkstationConfig value)

Required. Config to create.

.google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkstationConfig
Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

setWorkstationConfig(WorkstationConfig.Builder builderForValue)

public CreateWorkstationConfigRequest.Builder setWorkstationConfig(WorkstationConfig.Builder builderForValue)

Required. Config to create.

.google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWorkstationConfig.Builder
Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

setWorkstationConfigId(String value)

public CreateWorkstationConfigRequest.Builder setWorkstationConfigId(String value)

Required. ID to use for the workstation configuration.

string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The workstationConfigId to set.

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

This builder for chaining.

setWorkstationConfigIdBytes(ByteString value)

public CreateWorkstationConfigRequest.Builder setWorkstationConfigIdBytes(ByteString value)

Required. ID to use for the workstation configuration.

string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for workstationConfigId to set.

Returns
TypeDescription
CreateWorkstationConfigRequest.Builder

This builder for chaining.