Class WorkstationCluster.PrivateClusterConfig (0.34.0)

public static final class WorkstationCluster.PrivateClusterConfig extends GeneratedMessageV3 implements WorkstationCluster.PrivateClusterConfigOrBuilder

Configuration options for private workstation clusters.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > WorkstationCluster.PrivateClusterConfig

Static Fields

ALLOWED_PROJECTS_FIELD_NUMBER

public static final int ALLOWED_PROJECTS_FIELD_NUMBER
Field Value
Type Description
int

CLUSTER_HOSTNAME_FIELD_NUMBER

public static final int CLUSTER_HOSTNAME_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER

public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ATTACHMENT_URI_FIELD_NUMBER

public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WorkstationCluster.PrivateClusterConfig getDefaultInstance()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig

getDescriptor()

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

newBuilder()

public static WorkstationCluster.PrivateClusterConfig.Builder newBuilder()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

newBuilder(WorkstationCluster.PrivateClusterConfig prototype)

public static WorkstationCluster.PrivateClusterConfig.Builder newBuilder(WorkstationCluster.PrivateClusterConfig prototype)
Parameter
Name Description
prototype WorkstationCluster.PrivateClusterConfig
Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

parseDelimitedFrom(InputStream input)

public static WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WorkstationCluster.PrivateClusterConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WorkstationCluster.PrivateClusterConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WorkstationCluster.PrivateClusterConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationCluster.PrivateClusterConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WorkstationCluster.PrivateClusterConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationCluster.PrivateClusterConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WorkstationCluster.PrivateClusterConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WorkstationCluster.PrivateClusterConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationCluster.PrivateClusterConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WorkstationCluster.PrivateClusterConfig> parser()
Returns
Type Description
Parser<PrivateClusterConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<WorkstationCluster.PrivateClusterConfig> getParserForType()
Returns
Type Description
Parser<PrivateClusterConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WorkstationCluster.PrivateClusterConfig.Builder newBuilderForType()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WorkstationCluster.PrivateClusterConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WorkstationCluster.PrivateClusterConfig.Builder toBuilder()
Returns
Type Description
WorkstationCluster.PrivateClusterConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException