public static final class CreateWorkstationRequest.Builder extends GeneratedMessage.Builder<CreateWorkstationRequest.Builder> implements CreateWorkstationRequestOrBuilderMessage for creating a CreateWorkstation.
Protobuf type google.cloud.workstations.v1.CreateWorkstationRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateWorkstationRequest.BuilderImplements
CreateWorkstationRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 result, 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. If source_workstation is specified, the
user must have workstations.workstations.use permission on the source
workstation, and the Cloud Workstations Service Agent for the project where
you are creating the new workstation must have compute.disks.createSnapshot
and compute.snapshots.useReadOnly on the source project.
.google.cloud.workstations.v1.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. |
getDefaultInstanceForType()
public CreateWorkstationRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateWorkstationRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 result, 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. If source_workstation is specified, the
user must have workstations.workstations.use permission on the source
workstation, and the Cloud Workstations Service Agent for the project where
you are creating the new workstation must have compute.disks.createSnapshot
and compute.snapshots.useReadOnly on the source project.
.google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Workstation |
The workstation. |
getWorkstationBuilder()
public Workstation.Builder getWorkstationBuilder() Required. Workstation to create. If source_workstation is specified, the
user must have workstations.workstations.use permission on the source
workstation, and the Cloud Workstations Service Agent for the project where
you are creating the new workstation must have compute.disks.createSnapshot
and compute.snapshots.useReadOnly on the source project.
.google.cloud.workstations.v1.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. If source_workstation is specified, the
user must have workstations.workstations.use permission on the source
workstation, and the Cloud Workstations Service Agent for the project where
you are creating the new workstation must have compute.disks.createSnapshot
and compute.snapshots.useReadOnly on the source project.
.google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
WorkstationOrBuilder |
|
hasWorkstation()
public boolean hasWorkstation() Required. Workstation to create. If source_workstation is specified, the
user must have workstations.workstations.use permission on the source
workstation, and the Cloud Workstations Service Agent for the project where
you are creating the new workstation must have compute.disks.createSnapshot
and compute.snapshots.useReadOnly on the source project.
.google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the workstation field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateWorkstationRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateWorkstationRequest.Builder |
|
mergeWorkstation(Workstation value)
public CreateWorkstationRequest.Builder mergeWorkstation(Workstation value) Required. Workstation to create. If source_workstation is specified, the
user must have workstations.workstations.use permission on the source
workstation, and the Cloud Workstations Service Agent for the project where
you are creating the new workstation must have compute.disks.createSnapshot
and compute.snapshots.useReadOnly on the source project.
.google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Workstation |
| Returns | |
|---|---|
| Type | Description |
CreateWorkstationRequest.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateWorkstationRequest.Builder |
This builder for chaining. |
setValidateOnly(boolean value)
public CreateWorkstationRequest.Builder setValidateOnly(boolean value)Optional. If set, validate the request and preview the result, but do not actually apply it.
bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe 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. If source_workstation is specified, the
user must have workstations.workstations.use permission on the source
workstation, and the Cloud Workstations Service Agent for the project where
you are creating the new workstation must have compute.disks.createSnapshot
and compute.snapshots.useReadOnly on the source project.
.google.cloud.workstations.v1.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. If source_workstation is specified, the
user must have workstations.workstations.use permission on the source
workstation, and the Cloud Workstations Service Agent for the project where
you are creating the new workstation must have compute.disks.createSnapshot
and compute.snapshots.useReadOnly on the source project.
.google.cloud.workstations.v1.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 |
StringThe 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 |
ByteStringThe bytes for workstationId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateWorkstationRequest.Builder |
This builder for chaining. |