Class WorkstationCluster.PrivateClusterConfig.Builder (0.6.0)

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

Configuration options for private clusters.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAllowedProjects(Iterable<String> values)

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

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;

Parameter
NameDescription
valuesIterable<String>

The allowedProjects to add.

Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

addAllowedProjects(String value)

public WorkstationCluster.PrivateClusterConfig.Builder addAllowedProjects(String value)

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;

Parameter
NameDescription
valueString

The allowedProjects to add.

Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

addAllowedProjectsBytes(ByteString value)

public WorkstationCluster.PrivateClusterConfig.Builder addAllowedProjectsBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes of the allowedProjects to add.

Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkstationCluster.PrivateClusterConfig build()
Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig

buildPartial()

public WorkstationCluster.PrivateClusterConfig buildPartial()
Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig

clear()

public WorkstationCluster.PrivateClusterConfig.Builder clear()
Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder
Overrides

clearAllowedProjects()

public WorkstationCluster.PrivateClusterConfig.Builder clearAllowedProjects()

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;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkstationCluster.PrivateClusterConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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 cluster, configure access to the managed service using Private Service Connect.

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

Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

clone()

public WorkstationCluster.PrivateClusterConfig.Builder clone()
Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder
Overrides

getAllowedProjects(int index)

public String getAllowedProjects(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedProjects at the given index.

getAllowedProjectsBytes(int index)

public ByteString getAllowedProjectsBytes(int index)

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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedProjects at the given index.

getAllowedProjectsCount()

public int getAllowedProjectsCount()

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;

Returns
TypeDescription
int

The count of allowedProjects.

getAllowedProjectsList()

public ProtocolStringList getAllowedProjectsList()

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;

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

The bytes for clusterHostname.

getDefaultInstanceForType()

public WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType()
Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnablePrivateEndpoint()

public boolean getEnablePrivateEndpoint()

Immutable. Whether Workstations endpoint is private.

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

Returns
TypeDescription
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 cluster, configure access to the managed service using Private Service Connect.

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

Returns
TypeDescription
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 cluster, configure access to the managed service using Private Service Connect.

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

Returns
TypeDescription
ByteString

The bytes for serviceAttachmentUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkstationCluster.PrivateClusterConfig other)

public WorkstationCluster.PrivateClusterConfig.Builder mergeFrom(WorkstationCluster.PrivateClusterConfig other)
Parameter
NameDescription
otherWorkstationCluster.PrivateClusterConfig
Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationCluster.PrivateClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder
Overrides

setAllowedProjects(int index, String value)

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

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The allowedProjects to set.

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

The clusterHostname to set.

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

The bytes for clusterHostname to set.

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

The enablePrivateEndpoint to set.

Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public WorkstationCluster.PrivateClusterConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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 cluster, configure access to the managed service using Private Service Connect.

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

Parameter
NameDescription
valueString

The serviceAttachmentUri to set.

Returns
TypeDescription
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 cluster, configure access to the managed service using Private Service Connect.

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

Parameter
NameDescription
valueByteString

The bytes for serviceAttachmentUri to set.

Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationCluster.PrivateClusterConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationCluster.PrivateClusterConfig.Builder
Overrides