Class WorkstationCluster.PrivateClusterConfig.Builder (0.31.0)

public static final class WorkstationCluster.PrivateClusterConfig.Builder extends GeneratedMessageV3.Builder<WorkstationCluster.PrivateClusterConfig.Builder> implements WorkstationCluster.PrivateClusterConfigOrBuilder

Configuration options for private workstation clusters.

Protobuf type google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig

Static Methods

getDescriptor()

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

Methods

addAllAllowedProjects(Iterable<String> values)

public WorkstationCluster.PrivateClusterConfig.Builder addAllAllowedProjects(Iterable<String> values)

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The allowedProjects to add.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

addAllowedProjects(String value)

public WorkstationCluster.PrivateClusterConfig.Builder addAllowedProjects(String value)

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The allowedProjects to add.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

addAllowedProjectsBytes(ByteString value)

public WorkstationCluster.PrivateClusterConfig.Builder addAllowedProjectsBytes(ByteString value)

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the allowedProjects to add.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkstationCluster.PrivateClusterConfig build()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig

buildPartial()

public WorkstationCluster.PrivateClusterConfig buildPartial()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig

clear()

public WorkstationCluster.PrivateClusterConfig.Builder clear()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder
Overrides

clearAllowedProjects()

public WorkstationCluster.PrivateClusterConfig.Builder clearAllowedProjects()

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

clearClusterHostname()

public WorkstationCluster.PrivateClusterConfig.Builder clearClusterHostname()

Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.

string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

clearEnablePrivateEndpoint()

public WorkstationCluster.PrivateClusterConfig.Builder clearEnablePrivateEndpoint()

Immutable. Whether Workstations endpoint is private.

bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAttachmentUri()

public WorkstationCluster.PrivateClusterConfig.Builder clearServiceAttachmentUri()

Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using Private Service Connect.

string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

clone()

public WorkstationCluster.PrivateClusterConfig.Builder clone()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder
Overrides

getAllowedProjects(int index)

public String getAllowedProjects(int index)

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedProjects at the given index.

getAllowedProjectsBytes(int index)

public ByteString getAllowedProjectsBytes(int index)

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedProjects at the given index.

getAllowedProjectsCount()

public int getAllowedProjectsCount()

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of allowedProjects.

getAllowedProjectsList()

public ProtocolStringList getAllowedProjectsList()

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the allowedProjects.

getClusterHostname()

public String getClusterHostname()

Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.

string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clusterHostname.

getClusterHostnameBytes()

public ByteString getClusterHostnameBytes()

Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.

string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clusterHostname.

getDefaultInstanceForType()

public WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig

getDescriptorForType()

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

getEnablePrivateEndpoint()

public boolean getEnablePrivateEndpoint()

Immutable. Whether Workstations endpoint is private.

bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

The enablePrivateEndpoint.

getServiceAttachmentUri()

public String getServiceAttachmentUri()

Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using Private Service Connect.

string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serviceAttachmentUri.

getServiceAttachmentUriBytes()

public ByteString getServiceAttachmentUriBytes()

Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using Private Service Connect.

string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serviceAttachmentUri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkstationCluster.PrivateClusterConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllowedProjects(int index, String value)

public WorkstationCluster.PrivateClusterConfig.Builder setAllowedProjects(int index, String value)

Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.

repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedProjects to set.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

setClusterHostname(String value)

public WorkstationCluster.PrivateClusterConfig.Builder setClusterHostname(String value)

Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.

string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clusterHostname to set.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

setClusterHostnameBytes(ByteString value)

public WorkstationCluster.PrivateClusterConfig.Builder setClusterHostnameBytes(ByteString value)

Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.

string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clusterHostname to set.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

setEnablePrivateEndpoint(boolean value)

public WorkstationCluster.PrivateClusterConfig.Builder setEnablePrivateEndpoint(boolean value)

Immutable. Whether Workstations endpoint is private.

bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value boolean

The enablePrivateEndpoint to set.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceAttachmentUri(String value)

public WorkstationCluster.PrivateClusterConfig.Builder setServiceAttachmentUri(String value)

Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using Private Service Connect.

string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The serviceAttachmentUri to set.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

setServiceAttachmentUriBytes(ByteString value)

public WorkstationCluster.PrivateClusterConfig.Builder setServiceAttachmentUriBytes(ByteString value)

Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using Private Service Connect.

string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for serviceAttachmentUri to set.

Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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