Class CreateWorkstationConfigRequest.Builder (0.30.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateWorkstationConfigRequest build()
Returns
Type Description
CreateWorkstationConfigRequest

buildPartial()

public CreateWorkstationConfigRequest buildPartial()
Returns
Type Description
CreateWorkstationConfigRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWorkstationConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
CreateWorkstationConfigRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateWorkstationConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateWorkstationConfigRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Parent resource name.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
WorkstationConfigOrBuilder

hasWorkstationConfig()

public boolean hasWorkstationConfig()

Required. Config to create.

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

Returns
Type Description
boolean

Whether the workstationConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateWorkstationConfigRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkstationConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value WorkstationConfig
Returns
Type Description
CreateWorkstationConfigRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkstationConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateWorkstationConfigRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkstationConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
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
Name Description
value WorkstationConfig
Returns
Type Description
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
Name Description
builderForValue WorkstationConfig.Builder
Returns
Type Description
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
Name Description
value String

The workstationConfigId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for workstationConfigId to set.

Returns
Type Description
CreateWorkstationConfigRequest.Builder

This builder for chaining.