Class PrivateClusterConfig (2.22.0)

public final class PrivateClusterConfig extends GeneratedMessageV3 implements PrivateClusterConfigOrBuilder

Configuration options for private clusters.

Protobuf type google.container.v1.PrivateClusterConfig

Static Fields

ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER

public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_PRIVATE_NODES_FIELD_NUMBER

public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER
Field Value
TypeDescription
int

MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER

public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER

public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER
Field Value
TypeDescription
int

PEERING_NAME_FIELD_NUMBER

public static final int PEERING_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVATE_ENDPOINT_FIELD_NUMBER

public static final int PRIVATE_ENDPOINT_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER

public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLIC_ENDPOINT_FIELD_NUMBER

public static final int PUBLIC_ENDPOINT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PrivateClusterConfig getDefaultInstance()
Returns
TypeDescription
PrivateClusterConfig

getDescriptor()

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

newBuilder()

public static PrivateClusterConfig.Builder newBuilder()
Returns
TypeDescription
PrivateClusterConfig.Builder

newBuilder(PrivateClusterConfig prototype)

public static PrivateClusterConfig.Builder newBuilder(PrivateClusterConfig prototype)
Parameter
NameDescription
prototypePrivateClusterConfig
Returns
TypeDescription
PrivateClusterConfig.Builder

parseDelimitedFrom(InputStream input)

public static PrivateClusterConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateClusterConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PrivateClusterConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrivateClusterConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrivateClusterConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrivateClusterConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrivateClusterConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateClusterConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PrivateClusterConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateClusterConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PrivateClusterConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrivateClusterConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivateClusterConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PrivateClusterConfig> parser()
Returns
TypeDescription
Parser<PrivateClusterConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PrivateClusterConfig getDefaultInstanceForType()
Returns
TypeDescription
PrivateClusterConfig

getEnablePrivateEndpoint()

public boolean getEnablePrivateEndpoint()

Whether the master's internal IP address is used as the cluster endpoint.

bool enable_private_endpoint = 2;

Returns
TypeDescription
boolean

The enablePrivateEndpoint.

getEnablePrivateNodes()

public boolean getEnablePrivateNodes()

Whether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.

bool enable_private_nodes = 1;

Returns
TypeDescription
boolean

The enablePrivateNodes.

getMasterGlobalAccessConfig()

public PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig()

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Returns
TypeDescription
PrivateClusterMasterGlobalAccessConfig

The masterGlobalAccessConfig.

getMasterGlobalAccessConfigOrBuilder()

public PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder()

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Returns
TypeDescription
PrivateClusterMasterGlobalAccessConfigOrBuilder

getMasterIpv4CidrBlock()

public String getMasterIpv4CidrBlock()

The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_cidr_block = 3;

Returns
TypeDescription
String

The masterIpv4CidrBlock.

getMasterIpv4CidrBlockBytes()

public ByteString getMasterIpv4CidrBlockBytes()

The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_cidr_block = 3;

Returns
TypeDescription
ByteString

The bytes for masterIpv4CidrBlock.

getParserForType()

public Parser<PrivateClusterConfig> getParserForType()
Returns
TypeDescription
Parser<PrivateClusterConfig>
Overrides

getPeeringName()

public String getPeeringName()

Output only. The peering name in the customer VPC used by this cluster.

string peering_name = 7;

Returns
TypeDescription
String

The peeringName.

getPeeringNameBytes()

public ByteString getPeeringNameBytes()

Output only. The peering name in the customer VPC used by this cluster.

string peering_name = 7;

Returns
TypeDescription
ByteString

The bytes for peeringName.

getPrivateEndpoint()

public String getPrivateEndpoint()

Output only. The internal IP address of this cluster's master endpoint.

string private_endpoint = 4;

Returns
TypeDescription
String

The privateEndpoint.

getPrivateEndpointBytes()

public ByteString getPrivateEndpointBytes()

Output only. The internal IP address of this cluster's master endpoint.

string private_endpoint = 4;

Returns
TypeDescription
ByteString

The bytes for privateEndpoint.

getPrivateEndpointSubnetwork()

public String getPrivateEndpointSubnetwork()

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.

string private_endpoint_subnetwork = 10;

Returns
TypeDescription
String

The privateEndpointSubnetwork.

getPrivateEndpointSubnetworkBytes()

public ByteString getPrivateEndpointSubnetworkBytes()

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.

string private_endpoint_subnetwork = 10;

Returns
TypeDescription
ByteString

The bytes for privateEndpointSubnetwork.

getPublicEndpoint()

public String getPublicEndpoint()

Output only. The external IP address of this cluster's master endpoint.

string public_endpoint = 5;

Returns
TypeDescription
String

The publicEndpoint.

getPublicEndpointBytes()

public ByteString getPublicEndpointBytes()

Output only. The external IP address of this cluster's master endpoint.

string public_endpoint = 5;

Returns
TypeDescription
ByteString

The bytes for publicEndpoint.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasMasterGlobalAccessConfig()

public boolean hasMasterGlobalAccessConfig()

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Returns
TypeDescription
boolean

Whether the masterGlobalAccessConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PrivateClusterConfig.Builder newBuilderForType()
Returns
TypeDescription
PrivateClusterConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PrivateClusterConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PrivateClusterConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PrivateClusterConfig.Builder toBuilder()
Returns
TypeDescription
PrivateClusterConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException