# Interface NodeNetworkConfigOrBuilder (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 NodeNetworkConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAcceleratorNetworkProfile()

    public abstract String getAcceleratorNetworkProfile()

Immutable. The accelerator network profile for the node pool. For now the
only valid value is "auto". If specified, the network configuration of the
nodes in this node pool will be managed by this profile for the supported
machine types, zone, etc.

`string accelerator_network_profile = 21 [(.google.api.field_behavior) = IMMUTABLE];
`

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

### getAcceleratorNetworkProfileBytes()

    public abstract ByteString getAcceleratorNetworkProfileBytes()

Immutable. The accelerator network profile for the node pool. For now the
only valid value is "auto". If specified, the network configuration of the
nodes in this node pool will be managed by this profile for the supported
machine types, zone, etc.

`string accelerator_network_profile = 21 [(.google.api.field_behavior) = IMMUTABLE];
`

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

### getAdditionalNodeNetworkConfigs(int index)

    public abstract AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs(int index)

We specify the additional node networks for this node pool using this list.
Each node network corresponds to an additional interface

`
repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getAdditionalNodeNetworkConfigsCount()

    public abstract int getAdditionalNodeNetworkConfigsCount()

We specify the additional node networks for this node pool using this list.
Each node network corresponds to an additional interface

`
repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;
`

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

### getAdditionalNodeNetworkConfigsList()

    public abstract List<AdditionalNodeNetworkConfig> getAdditionalNodeNetworkConfigsList()

We specify the additional node networks for this node pool using this list.
Each node network corresponds to an additional interface

`
repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.AdditionalNodeNetworkConfig>` |   |

### getAdditionalNodeNetworkConfigsOrBuilder(int index)

    public abstract AdditionalNodeNetworkConfigOrBuilder getAdditionalNodeNetworkConfigsOrBuilder(int index)

We specify the additional node networks for this node pool using this list.
Each node network corresponds to an additional interface

`
repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getAdditionalNodeNetworkConfigsOrBuilderList()

    public abstract List<? extends AdditionalNodeNetworkConfigOrBuilder> getAdditionalNodeNetworkConfigsOrBuilderList()

We specify the additional node networks for this node pool using this list.
Each node network corresponds to an additional interface

`
repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder>` |   |

### getAdditionalPodNetworkConfigs(int index)

    public abstract AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index)

We specify the additional pod networks for this node pool using this list.
Each pod network corresponds to an additional alias IP range for the node

`
repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getAdditionalPodNetworkConfigsCount()

    public abstract int getAdditionalPodNetworkConfigsCount()

We specify the additional pod networks for this node pool using this list.
Each pod network corresponds to an additional alias IP range for the node

`
repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;
`

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

### getAdditionalPodNetworkConfigsList()

    public abstract List<AdditionalPodNetworkConfig> getAdditionalPodNetworkConfigsList()

We specify the additional pod networks for this node pool using this list.
Each pod network corresponds to an additional alias IP range for the node

`
repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.AdditionalPodNetworkConfig>` |   |

### getAdditionalPodNetworkConfigsOrBuilder(int index)

    public abstract AdditionalPodNetworkConfigOrBuilder getAdditionalPodNetworkConfigsOrBuilder(int index)

We specify the additional pod networks for this node pool using this list.
Each pod network corresponds to an additional alias IP range for the node

`
repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getAdditionalPodNetworkConfigsOrBuilderList()

    public abstract List<? extends AdditionalPodNetworkConfigOrBuilder> getAdditionalPodNetworkConfigsOrBuilderList()

We specify the additional pod networks for this node pool using this list.
Each pod network corresponds to an additional alias IP range for the node

`
repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.container.v1.AdditionalPodNetworkConfigOrBuilder>` |   |

### getCreatePodRange()

    public abstract boolean getCreatePodRange()

Input only. Whether to create a new range for pod IPs in this node pool.
Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
are not specified.

If neither `create_pod_range` or `pod_range` are specified, the
cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
used.

Only applicable if `ip_allocation_policy.use_ip_aliases` is true.

This field cannot be changed after the node pool has been created.

`bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY];`

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

### getEnablePrivateNodes()

    public abstract boolean getEnablePrivateNodes()

Whether nodes have internal IP addresses only.
If enable_private_nodes is not specified, then the value is derived from
\[Cluster.NetworkConfig.default_enable_private_nodes\]\[\]

`optional bool enable_private_nodes = 9;`

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

### getNetworkPerformanceConfig()

    public abstract NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig()

Network bandwidth tier configuration.

`
optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig` | The networkPerformanceConfig. |

### getNetworkPerformanceConfigOrBuilder()

    public abstract NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()

Network bandwidth tier configuration.

`
optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder` |   |

### getNetworkTierConfig()

    public abstract NetworkTierConfig getNetworkTierConfig()

Output only. The network tier configuration for the node pool inherits from
the cluster-level configuration and remains immutable throughout the node
pool's lifecycle, including during upgrades.

`
.google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.NetworkTierConfig` | The networkTierConfig. |

### getNetworkTierConfigOrBuilder()

    public abstract NetworkTierConfigOrBuilder getNetworkTierConfigOrBuilder()

Output only. The network tier configuration for the node pool inherits from
the cluster-level configuration and remains immutable throughout the node
pool's lifecycle, including during upgrades.

`
.google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getPodCidrOverprovisionConfig()

    public abstract PodCIDROverprovisionConfig getPodCidrOverprovisionConfig()

\[PRIVATE FIELD\]
Pod CIDR size overprovisioning config for the node pool.

Pod CIDR size per node depends on max_pods_per_node. By default, the value
of max_pods_per_node is rounded off to next power of 2 and we then double
that to get the size of pod CIDR block per node.
Example: max_pods_per_node of 30 would result in 64 IPs (/26).

This config can disable the doubling of IPs (we still round off to next
power of 2)
Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
overprovisioning is disabled.

`.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-container/latest/com.google.container.v1.PodCIDROverprovisionConfig` | The podCidrOverprovisionConfig. |

### getPodCidrOverprovisionConfigOrBuilder()

    public abstract PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder()

\[PRIVATE FIELD\]
Pod CIDR size overprovisioning config for the node pool.

Pod CIDR size per node depends on max_pods_per_node. By default, the value
of max_pods_per_node is rounded off to next power of 2 and we then double
that to get the size of pod CIDR block per node.
Example: max_pods_per_node of 30 would result in 64 IPs (/26).

This config can disable the doubling of IPs (we still round off to next
power of 2)
Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
overprovisioning is disabled.

`.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
`

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

### getPodIpv4CidrBlock()

    public abstract String getPodIpv4CidrBlock()

The IP address range for pod IPs in this node pool.

Only applicable if `create_pod_range` is true.

Set to blank to have a range chosen with the default size.

Set to /netmask (e.g. `/14`) to have a range chosen with a specific
netmask.

Set to a
[CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
notation (e.g. `10.96.0.0/14`) to pick a specific range to use.

Only applicable if `ip_allocation_policy.use_ip_aliases` is true.

This field cannot be changed after the node pool has been created.

`string pod_ipv4_cidr_block = 6;`

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

### getPodIpv4CidrBlockBytes()

    public abstract ByteString getPodIpv4CidrBlockBytes()

The IP address range for pod IPs in this node pool.

Only applicable if `create_pod_range` is true.

Set to blank to have a range chosen with the default size.

Set to /netmask (e.g. `/14`) to have a range chosen with a specific
netmask.

Set to a
[CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
notation (e.g. `10.96.0.0/14`) to pick a specific range to use.

Only applicable if `ip_allocation_policy.use_ip_aliases` is true.

This field cannot be changed after the node pool has been created.

`string pod_ipv4_cidr_block = 6;`

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

### getPodIpv4RangeUtilization()

    public abstract double getPodIpv4RangeUtilization()

Output only. The utilization of the IPv4 range for the pod.
The ratio is Usage/\[Total number of IPs in the secondary range\],
Usage=numNodes*numZones*podIPsPerNode.

`double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getPodRange()

    public abstract String getPodRange()

The ID of the secondary range for pod IPs.
If `create_pod_range` is true, this ID is used for the new range.
If `create_pod_range` is false, uses an existing secondary range with this
ID.

Only applicable if `ip_allocation_policy.use_ip_aliases` is true.

This field cannot be changed after the node pool has been created.

`string pod_range = 5;`

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

### getPodRangeBytes()

    public abstract ByteString getPodRangeBytes()

The ID of the secondary range for pod IPs.
If `create_pod_range` is true, this ID is used for the new range.
If `create_pod_range` is false, uses an existing secondary range with this
ID.

Only applicable if `ip_allocation_policy.use_ip_aliases` is true.

This field cannot be changed after the node pool has been created.

`string pod_range = 5;`

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

### getSubnetwork()

    public abstract String getSubnetwork()

Optional. The subnetwork name/path for the node pool.
Format: projects/{project}/regions/{region}/subnetworks/{subnetwork}
If the cluster is associated with multiple subnetworks, the subnetwork can
be either:

- A user supplied subnetwork name during node pool creation (e.g., `my-subnet`). The name must be between 1 and 63 characters long, start with a letter, contain only letters, numbers, and hyphens, and end with a letter or a number.
- A full subnetwork path during node pool creation, such as `projects/gke-project/regions/us-central1/subnetworks/my-subnet`
- A subnetwork path picked based on the IP utilization during node pool creation and is immutable.

`
string subnetwork = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

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

### getSubnetworkBytes()

    public abstract ByteString getSubnetworkBytes()

Optional. The subnetwork name/path for the node pool.
Format: projects/{project}/regions/{region}/subnetworks/{subnetwork}
If the cluster is associated with multiple subnetworks, the subnetwork can
be either:

- A user supplied subnetwork name during node pool creation (e.g., `my-subnet`). The name must be between 1 and 63 characters long, start with a letter, contain only letters, numbers, and hyphens, and end with a letter or a number.
- A full subnetwork path during node pool creation, such as `projects/gke-project/regions/us-central1/subnetworks/my-subnet`
- A subnetwork path picked based on the IP utilization during node pool creation and is immutable.

`
string subnetwork = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

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

### hasEnablePrivateNodes()

    public abstract boolean hasEnablePrivateNodes()

Whether nodes have internal IP addresses only.
If enable_private_nodes is not specified, then the value is derived from
\[Cluster.NetworkConfig.default_enable_private_nodes\]\[\]

`optional bool enable_private_nodes = 9;`

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

### hasNetworkPerformanceConfig()

    public abstract boolean hasNetworkPerformanceConfig()

Network bandwidth tier configuration.

`
optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;
`

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

### hasNetworkTierConfig()

    public abstract boolean hasNetworkTierConfig()

Output only. The network tier configuration for the node pool inherits from
the cluster-level configuration and remains immutable throughout the node
pool's lifecycle, including during upgrades.

`
.google.container.v1.NetworkTierConfig network_tier_config = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasPodCidrOverprovisionConfig()

    public abstract boolean hasPodCidrOverprovisionConfig()

\[PRIVATE FIELD\]
Pod CIDR size overprovisioning config for the node pool.

Pod CIDR size per node depends on max_pods_per_node. By default, the value
of max_pods_per_node is rounded off to next power of 2 and we then double
that to get the size of pod CIDR block per node.
Example: max_pods_per_node of 30 would result in 64 IPs (/26).

This config can disable the doubling of IPs (we still round off to next
power of 2)
Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
overprovisioning is disabled.

`.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
`

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