# Interface PrivateClusterConfigOrBuilder (2.96.0)

2.96.0 (latest) 2.94.0 2.91.0 2.90.0 2.88.0 2.86.0 2.85.0 2.84.0 2.83.0 2.81.0 2.79.0 2.78.0 2.77.0 2.76.0 2.75.0 2.73.0 2.71.0 2.70.0 2.67.0 2.66.0 2.65.0 2.63.0 2.62.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.52.0 2.51.0 2.50.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.27.0 2.26.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.2 2.4.1 2.3.8

    public interface PrivateClusterConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEnablePrivateEndpoint() (deprecated)

    public abstract boolean getEnablePrivateEndpoint()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.enable_private_endpoint is
deprecated. See google/container/v1beta1/cluster_service.proto;l=2655*

Whether the master's internal IP address is used as the cluster endpoint.
Use
ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint
instead. Note that the value of enable_public_endpoint is reversed: if
enable_private_endpoint is false, then enable_public_endpoint will be true.

`bool enable_private_endpoint = 2 [deprecated = true];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enablePrivateEndpoint. |

### getEnablePrivateNodes() (deprecated)

    public abstract boolean getEnablePrivateNodes()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.enable_private_nodes is deprecated.
See google/container/v1beta1/cluster_service.proto;l=2648*

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.

Deprecated: Use
NetworkConfig.default_enable_private_nodes
instead.

`bool enable_private_nodes = 1 [deprecated = true];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enablePrivateNodes. |

### getMasterGlobalAccessConfig() (deprecated)

    public abstract PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.master_global_access_config is
deprecated. See google/container/v1beta1/cluster_service.proto;l=2687*

Controls master global access settings.

Deprecated: Use
\[ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access\]\[\]
instead.

`
.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig` | The masterGlobalAccessConfig. |

### getMasterGlobalAccessConfigOrBuilder() (deprecated)

    public abstract PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder()

Controls master global access settings.

Deprecated: Use
\[ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access\]\[\]
instead.

`
.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder` |   |

### getMasterIpv4CidrBlock()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The masterIpv4CidrBlock. |

### getMasterIpv4CidrBlockBytes()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for masterIpv4CidrBlock. |

### getPeeringName()

    public abstract String getPeeringName()

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

`string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The peeringName. |

### getPeeringNameBytes()

    public abstract ByteString getPeeringNameBytes()

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

`string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for peeringName. |

### getPrivateEndpoint() (deprecated)

    public abstract String getPrivateEndpoint()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See
google/container/v1beta1/cluster_service.proto;l=2668*

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

Deprecated: Use
ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint
instead.

`
string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The privateEndpoint. |

### getPrivateEndpointBytes() (deprecated)

    public abstract ByteString getPrivateEndpointBytes()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.private_endpoint is deprecated. See
google/container/v1beta1/cluster_service.proto;l=2668*

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

Deprecated: Use
ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint
instead.

`
string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for privateEndpoint. |

### getPrivateEndpointSubnetwork() (deprecated)

    public abstract String getPrivateEndpointSubnetwork()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is
deprecated. See google/container/v1beta1/cluster_service.proto;l=2696*

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

Deprecated: Use
ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork
instead.

`string private_endpoint_subnetwork = 10 [deprecated = true];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The privateEndpointSubnetwork. |

### getPrivateEndpointSubnetworkBytes() (deprecated)

    public abstract ByteString getPrivateEndpointSubnetworkBytes()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.private_endpoint_subnetwork is
deprecated. See google/container/v1beta1/cluster_service.proto;l=2696*

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

Deprecated: Use
ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork
instead.

`string private_endpoint_subnetwork = 10 [deprecated = true];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for privateEndpointSubnetwork. |

### getPublicEndpoint() (deprecated)

    public abstract String getPublicEndpoint()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See
google/container/v1beta1/cluster_service.proto;l=2676*

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

Deprecated: Use
ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint
instead.

`
string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The publicEndpoint. |

### getPublicEndpointBytes() (deprecated)

    public abstract ByteString getPublicEndpointBytes()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.public_endpoint is deprecated. See
google/container/v1beta1/cluster_service.proto;l=2676*

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

Deprecated: Use
ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint
instead.

`
string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for publicEndpoint. |

### hasMasterGlobalAccessConfig() (deprecated)

    public abstract boolean hasMasterGlobalAccessConfig()

**Deprecated.** *google.container.v1beta1.PrivateClusterConfig.master_global_access_config is
deprecated. See google/container/v1beta1/cluster_service.proto;l=2687*

Controls master global access settings.

Deprecated: Use
\[ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access\]\[\]
instead.

`
.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the masterGlobalAccessConfig field is set. |