Class CreateWorkstationRequest.Builder (0.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateWorkstationRequest build()
Returns
TypeDescription
CreateWorkstationRequest

buildPartial()

public CreateWorkstationRequest buildPartial()
Returns
TypeDescription
CreateWorkstationRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWorkstationId()

public CreateWorkstationRequest.Builder clearWorkstationId()

Required. ID to use for the workstation.

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

Returns
TypeDescription
CreateWorkstationRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateWorkstationRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateWorkstationRequest

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.

getWorkstation()

public Workstation getWorkstation()

Required. Workstation to create.

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

Returns
TypeDescription
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
TypeDescription
Workstation.Builder

getWorkstationId()

public String getWorkstationId()

Required. ID to use for the workstation.

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

Returns
TypeDescription
String

The workstationId.

getWorkstationIdBytes()

public ByteString getWorkstationIdBytes()

Required. ID to use for the workstation.

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

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

hasWorkstation()

public boolean hasWorkstation()

Required. Workstation to create.

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

public CreateWorkstationRequest.Builder mergeFrom(CreateWorkstationRequest other)
Parameter
NameDescription
otherCreateWorkstationRequest
Returns
TypeDescription
CreateWorkstationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkstationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateWorkstationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
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
NameDescription
valueWorkstation
Returns
TypeDescription
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
NameDescription
builderForValueWorkstation.Builder
Returns
TypeDescription
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
NameDescription
valueString

The workstationId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for workstationId to set.

Returns
TypeDescription
CreateWorkstationRequest.Builder

This builder for chaining.