Class CreateWorkstationRequest.Builder (0.33.0)

public static final class CreateWorkstationRequest.Builder extends GeneratedMessageV3.Builder<CreateWorkstationRequest.Builder> implements CreateWorkstationRequestOrBuilder

Message for creating a CreateWorkstation.

Protobuf type google.cloud.workstations.v1beta.CreateWorkstationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateWorkstationRequest build()
Returns
Type Description
CreateWorkstationRequest

buildPartial()

public CreateWorkstationRequest buildPartial()
Returns
Type Description
CreateWorkstationRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateWorkstationRequest.Builder clearParent()

Required. Parent resource name.

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

Returns
Type Description
CreateWorkstationRequest.Builder

This builder for chaining.

clearValidateOnly()

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

This builder for chaining.

clearWorkstation()

public CreateWorkstationRequest.Builder clearWorkstation()

Required. Workstation to create.

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

Returns
Type Description
CreateWorkstationRequest.Builder

clearWorkstationId()

public CreateWorkstationRequest.Builder clearWorkstationId()

Required. ID to use for the workstation.

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

Returns
Type Description
CreateWorkstationRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateWorkstationRequest getDefaultInstanceForType()
Returns
Type Description
CreateWorkstationRequest

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.

getWorkstation()

public Workstation getWorkstation()

Required. Workstation to create.

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

Returns
Type Description
Workstation

The workstation.

getWorkstationBuilder()

public Workstation.Builder getWorkstationBuilder()

Required. Workstation to create.

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

Returns
Type Description
Workstation.Builder

getWorkstationId()

public String getWorkstationId()

Required. ID to use for the workstation.

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

Returns
Type Description
String

The workstationId.

getWorkstationIdBytes()

public ByteString getWorkstationIdBytes()

Required. ID to use for the workstation.

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

Returns
Type Description
ByteString

The bytes for workstationId.

getWorkstationOrBuilder()

public WorkstationOrBuilder getWorkstationOrBuilder()

Required. Workstation to create.

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

Returns
Type Description
WorkstationOrBuilder

hasWorkstation()

public boolean hasWorkstation()

Required. Workstation to create.

.google.cloud.workstations.v1beta.Workstation workstation = 3 [(.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(CreateWorkstationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWorkstation(Workstation value)

public CreateWorkstationRequest.Builder mergeWorkstation(Workstation value)

Required. Workstation to create.

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

Parameter
Name Description
value Workstation
Returns
Type Description
CreateWorkstationRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

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

This builder for chaining.

setParentBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

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

This builder for chaining.

setWorkstation(Workstation value)

public CreateWorkstationRequest.Builder setWorkstation(Workstation value)

Required. Workstation to create.

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

Parameter
Name Description
value Workstation
Returns
Type Description
CreateWorkstationRequest.Builder

setWorkstation(Workstation.Builder builderForValue)

public CreateWorkstationRequest.Builder setWorkstation(Workstation.Builder builderForValue)

Required. Workstation to create.

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

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

setWorkstationId(String value)

public CreateWorkstationRequest.Builder setWorkstationId(String value)

Required. ID to use for the workstation.

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

Parameter
Name Description
value String

The workstationId to set.

Returns
Type Description
CreateWorkstationRequest.Builder

This builder for chaining.

setWorkstationIdBytes(ByteString value)

public CreateWorkstationRequest.Builder setWorkstationIdBytes(ByteString value)

Required. ID to use for the workstation.

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

Parameter
Name Description
value ByteString

The bytes for workstationId to set.

Returns
Type Description
CreateWorkstationRequest.Builder

This builder for chaining.