Class NodeNetworkConfig.Builder (2.48.0)

public static final class NodeNetworkConfig.Builder extends GeneratedMessageV3.Builder<NodeNetworkConfig.Builder> implements NodeNetworkConfigOrBuilder

Parameters for node pool-level network config.

Protobuf type google.container.v1beta1.NodeNetworkConfig

Static Methods

getDescriptor()

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

Methods

addAdditionalNodeNetworkConfigs(AdditionalNodeNetworkConfig value)

public NodeNetworkConfig.Builder addAdditionalNodeNetworkConfigs(AdditionalNodeNetworkConfig value)

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
Name Description
value AdditionalNodeNetworkConfig
Returns
Type Description
NodeNetworkConfig.Builder

addAdditionalNodeNetworkConfigs(AdditionalNodeNetworkConfig.Builder builderForValue)

public NodeNetworkConfig.Builder addAdditionalNodeNetworkConfigs(AdditionalNodeNetworkConfig.Builder builderForValue)

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
Name Description
builderForValue AdditionalNodeNetworkConfig.Builder
Returns
Type Description
NodeNetworkConfig.Builder

addAdditionalNodeNetworkConfigs(int index, AdditionalNodeNetworkConfig value)

public NodeNetworkConfig.Builder addAdditionalNodeNetworkConfigs(int index, AdditionalNodeNetworkConfig value)

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameters
Name Description
index int
value AdditionalNodeNetworkConfig
Returns
Type Description
NodeNetworkConfig.Builder

addAdditionalNodeNetworkConfigs(int index, AdditionalNodeNetworkConfig.Builder builderForValue)

public NodeNetworkConfig.Builder addAdditionalNodeNetworkConfigs(int index, AdditionalNodeNetworkConfig.Builder builderForValue)

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameters
Name Description
index int
builderForValue AdditionalNodeNetworkConfig.Builder
Returns
Type Description
NodeNetworkConfig.Builder

addAdditionalNodeNetworkConfigsBuilder()

public AdditionalNodeNetworkConfig.Builder addAdditionalNodeNetworkConfigsBuilder()

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
Type Description
AdditionalNodeNetworkConfig.Builder

addAdditionalNodeNetworkConfigsBuilder(int index)

public AdditionalNodeNetworkConfig.Builder addAdditionalNodeNetworkConfigsBuilder(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.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
Name Description
index int
Returns
Type Description
AdditionalNodeNetworkConfig.Builder

addAdditionalPodNetworkConfigs(AdditionalPodNetworkConfig value)

public NodeNetworkConfig.Builder addAdditionalPodNetworkConfigs(AdditionalPodNetworkConfig value)

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
Name Description
value AdditionalPodNetworkConfig
Returns
Type Description
NodeNetworkConfig.Builder

addAdditionalPodNetworkConfigs(AdditionalPodNetworkConfig.Builder builderForValue)

public NodeNetworkConfig.Builder addAdditionalPodNetworkConfigs(AdditionalPodNetworkConfig.Builder builderForValue)

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
Name Description
builderForValue AdditionalPodNetworkConfig.Builder
Returns
Type Description
NodeNetworkConfig.Builder

addAdditionalPodNetworkConfigs(int index, AdditionalPodNetworkConfig value)

public NodeNetworkConfig.Builder addAdditionalPodNetworkConfigs(int index, AdditionalPodNetworkConfig value)

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameters
Name Description
index int
value AdditionalPodNetworkConfig
Returns
Type Description
NodeNetworkConfig.Builder

addAdditionalPodNetworkConfigs(int index, AdditionalPodNetworkConfig.Builder builderForValue)

public NodeNetworkConfig.Builder addAdditionalPodNetworkConfigs(int index, AdditionalPodNetworkConfig.Builder builderForValue)

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameters
Name Description
index int
builderForValue AdditionalPodNetworkConfig.Builder
Returns
Type Description
NodeNetworkConfig.Builder

addAdditionalPodNetworkConfigsBuilder()

public AdditionalPodNetworkConfig.Builder addAdditionalPodNetworkConfigsBuilder()

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
Type Description
AdditionalPodNetworkConfig.Builder

addAdditionalPodNetworkConfigsBuilder(int index)

public AdditionalPodNetworkConfig.Builder addAdditionalPodNetworkConfigsBuilder(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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
Name Description
index int
Returns
Type Description
AdditionalPodNetworkConfig.Builder

addAllAdditionalNodeNetworkConfigs(Iterable<? extends AdditionalNodeNetworkConfig> values)

public NodeNetworkConfig.Builder addAllAdditionalNodeNetworkConfigs(Iterable<? extends AdditionalNodeNetworkConfig> values)

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
Name Description
values Iterable<? extends com.google.container.v1beta1.AdditionalNodeNetworkConfig>
Returns
Type Description
NodeNetworkConfig.Builder

addAllAdditionalPodNetworkConfigs(Iterable<? extends AdditionalPodNetworkConfig> values)

public NodeNetworkConfig.Builder addAllAdditionalPodNetworkConfigs(Iterable<? extends AdditionalPodNetworkConfig> values)

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
Name Description
values Iterable<? extends com.google.container.v1beta1.AdditionalPodNetworkConfig>
Returns
Type Description
NodeNetworkConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeNetworkConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

build()

public NodeNetworkConfig build()
Returns
Type Description
NodeNetworkConfig

buildPartial()

public NodeNetworkConfig buildPartial()
Returns
Type Description
NodeNetworkConfig

clear()

public NodeNetworkConfig.Builder clear()
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

clearAdditionalNodeNetworkConfigs()

public NodeNetworkConfig.Builder clearAdditionalNodeNetworkConfigs()

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
Type Description
NodeNetworkConfig.Builder

clearAdditionalPodNetworkConfigs()

public NodeNetworkConfig.Builder clearAdditionalPodNetworkConfigs()

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
Type Description
NodeNetworkConfig.Builder

clearCreatePodRange()

public NodeNetworkConfig.Builder clearCreatePodRange()

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
NodeNetworkConfig.Builder

This builder for chaining.

clearEnablePrivateNodes()

public NodeNetworkConfig.Builder clearEnablePrivateNodes()

Whether nodes have internal IP addresses only. If enable_private_nodes is not specified, then the value is derived from cluster.privateClusterConfig.enablePrivateNodes

optional bool enable_private_nodes = 9;

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NodeNetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

clearNetworkPerformanceConfig()

public NodeNetworkConfig.Builder clearNetworkPerformanceConfig()

Network bandwidth tier configuration.

optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;

Returns
Type Description
NodeNetworkConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeNetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

clearPodCidrOverprovisionConfig()

public NodeNetworkConfig.Builder clearPodCidrOverprovisionConfig()

[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool.

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.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
Type Description
NodeNetworkConfig.Builder

clearPodIpv4CidrBlock()

public NodeNetworkConfig.Builder clearPodIpv4CidrBlock()

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 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
NodeNetworkConfig.Builder

This builder for chaining.

clearPodIpv4RangeUtilization()

public NodeNetworkConfig.Builder clearPodIpv4RangeUtilization()

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

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

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

clearPodRange()

public NodeNetworkConfig.Builder clearPodRange()

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
NodeNetworkConfig.Builder

This builder for chaining.

clone()

public NodeNetworkConfig.Builder clone()
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

getAdditionalNodeNetworkConfigs(int index)

public 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.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
Name Description
index int
Returns
Type Description
AdditionalNodeNetworkConfig

getAdditionalNodeNetworkConfigsBuilder(int index)

public AdditionalNodeNetworkConfig.Builder getAdditionalNodeNetworkConfigsBuilder(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.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
Name Description
index int
Returns
Type Description
AdditionalNodeNetworkConfig.Builder

getAdditionalNodeNetworkConfigsBuilderList()

public List<AdditionalNodeNetworkConfig.Builder> getAdditionalNodeNetworkConfigsBuilderList()

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
Type Description
List<Builder>

getAdditionalNodeNetworkConfigsCount()

public 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.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
Type Description
int

getAdditionalNodeNetworkConfigsList()

public 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.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
Type Description
List<AdditionalNodeNetworkConfig>

getAdditionalNodeNetworkConfigsOrBuilder(int index)

public 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.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
Name Description
index int
Returns
Type Description
AdditionalNodeNetworkConfigOrBuilder

getAdditionalNodeNetworkConfigsOrBuilderList()

public 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.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
Type Description
List<? extends com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder>

getAdditionalPodNetworkConfigs(int index)

public 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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
Name Description
index int
Returns
Type Description
AdditionalPodNetworkConfig

getAdditionalPodNetworkConfigsBuilder(int index)

public AdditionalPodNetworkConfig.Builder getAdditionalPodNetworkConfigsBuilder(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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
Name Description
index int
Returns
Type Description
AdditionalPodNetworkConfig.Builder

getAdditionalPodNetworkConfigsBuilderList()

public List<AdditionalPodNetworkConfig.Builder> getAdditionalPodNetworkConfigsBuilderList()

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
Type Description
List<Builder>

getAdditionalPodNetworkConfigsCount()

public 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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
Type Description
int

getAdditionalPodNetworkConfigsList()

public 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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
Type Description
List<AdditionalPodNetworkConfig>

getAdditionalPodNetworkConfigsOrBuilder(int index)

public 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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
Name Description
index int
Returns
Type Description
AdditionalPodNetworkConfigOrBuilder

getAdditionalPodNetworkConfigsOrBuilderList()

public 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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
Type Description
List<? extends com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder>

getCreatePodRange()

public 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
boolean

The createPodRange.

getDefaultInstanceForType()

public NodeNetworkConfig getDefaultInstanceForType()
Returns
Type Description
NodeNetworkConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnablePrivateNodes()

public boolean getEnablePrivateNodes()

Whether nodes have internal IP addresses only. If enable_private_nodes is not specified, then the value is derived from cluster.privateClusterConfig.enablePrivateNodes

optional bool enable_private_nodes = 9;

Returns
Type Description
boolean

The enablePrivateNodes.

getNetworkPerformanceConfig()

public NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig()

Network bandwidth tier configuration.

optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;

Returns
Type Description
NodeNetworkConfig.NetworkPerformanceConfig

The networkPerformanceConfig.

getNetworkPerformanceConfigBuilder()

public NodeNetworkConfig.NetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder()

Network bandwidth tier configuration.

optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;

Returns
Type Description
NodeNetworkConfig.NetworkPerformanceConfig.Builder

getNetworkPerformanceConfigOrBuilder()

public NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()

Network bandwidth tier configuration.

optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;

Returns
Type Description
NodeNetworkConfig.NetworkPerformanceConfigOrBuilder

getPodCidrOverprovisionConfig()

public PodCIDROverprovisionConfig getPodCidrOverprovisionConfig()

[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool.

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.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
Type Description
PodCIDROverprovisionConfig

The podCidrOverprovisionConfig.

getPodCidrOverprovisionConfigBuilder()

public PodCIDROverprovisionConfig.Builder getPodCidrOverprovisionConfigBuilder()

[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool.

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.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
Type Description
PodCIDROverprovisionConfig.Builder

getPodCidrOverprovisionConfigOrBuilder()

public PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder()

[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool.

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.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
Type Description
PodCIDROverprovisionConfigOrBuilder

getPodIpv4CidrBlock()

public 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 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
String

The podIpv4CidrBlock.

getPodIpv4CidrBlockBytes()

public 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 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
ByteString

The bytes for podIpv4CidrBlock.

getPodIpv4RangeUtilization()

public double getPodIpv4RangeUtilization()

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

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

Returns
Type Description
double

The podIpv4RangeUtilization.

getPodRange()

public 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
String

The podRange.

getPodRangeBytes()

public 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
ByteString

The bytes for podRange.

hasEnablePrivateNodes()

public boolean hasEnablePrivateNodes()

Whether nodes have internal IP addresses only. If enable_private_nodes is not specified, then the value is derived from cluster.privateClusterConfig.enablePrivateNodes

optional bool enable_private_nodes = 9;

Returns
Type Description
boolean

Whether the enablePrivateNodes field is set.

hasNetworkPerformanceConfig()

public boolean hasNetworkPerformanceConfig()

Network bandwidth tier configuration.

optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;

Returns
Type Description
boolean

Whether the networkPerformanceConfig field is set.

hasPodCidrOverprovisionConfig()

public boolean hasPodCidrOverprovisionConfig()

[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool.

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.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
Type Description
boolean

Whether the podCidrOverprovisionConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeNetworkConfig other)

public NodeNetworkConfig.Builder mergeFrom(NodeNetworkConfig other)
Parameter
Name Description
other NodeNetworkConfig
Returns
Type Description
NodeNetworkConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeNetworkConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeNetworkConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NodeNetworkConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

mergeNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig value)

public NodeNetworkConfig.Builder mergeNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig value)

Network bandwidth tier configuration.

optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;

Parameter
Name Description
value NodeNetworkConfig.NetworkPerformanceConfig
Returns
Type Description
NodeNetworkConfig.Builder

mergePodCidrOverprovisionConfig(PodCIDROverprovisionConfig value)

public NodeNetworkConfig.Builder mergePodCidrOverprovisionConfig(PodCIDROverprovisionConfig value)

[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool.

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.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Parameter
Name Description
value PodCIDROverprovisionConfig
Returns
Type Description
NodeNetworkConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeNetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

removeAdditionalNodeNetworkConfigs(int index)

public NodeNetworkConfig.Builder removeAdditionalNodeNetworkConfigs(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.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
Name Description
index int
Returns
Type Description
NodeNetworkConfig.Builder

removeAdditionalPodNetworkConfigs(int index)

public NodeNetworkConfig.Builder removeAdditionalPodNetworkConfigs(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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
Name Description
index int
Returns
Type Description
NodeNetworkConfig.Builder

setAdditionalNodeNetworkConfigs(int index, AdditionalNodeNetworkConfig value)

public NodeNetworkConfig.Builder setAdditionalNodeNetworkConfigs(int index, AdditionalNodeNetworkConfig value)

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameters
Name Description
index int
value AdditionalNodeNetworkConfig
Returns
Type Description
NodeNetworkConfig.Builder

setAdditionalNodeNetworkConfigs(int index, AdditionalNodeNetworkConfig.Builder builderForValue)

public NodeNetworkConfig.Builder setAdditionalNodeNetworkConfigs(int index, AdditionalNodeNetworkConfig.Builder builderForValue)

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

repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameters
Name Description
index int
builderForValue AdditionalNodeNetworkConfig.Builder
Returns
Type Description
NodeNetworkConfig.Builder

setAdditionalPodNetworkConfigs(int index, AdditionalPodNetworkConfig value)

public NodeNetworkConfig.Builder setAdditionalPodNetworkConfigs(int index, AdditionalPodNetworkConfig value)

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameters
Name Description
index int
value AdditionalPodNetworkConfig
Returns
Type Description
NodeNetworkConfig.Builder

setAdditionalPodNetworkConfigs(int index, AdditionalPodNetworkConfig.Builder builderForValue)

public NodeNetworkConfig.Builder setAdditionalPodNetworkConfigs(int index, AdditionalPodNetworkConfig.Builder builderForValue)

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.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameters
Name Description
index int
builderForValue AdditionalPodNetworkConfig.Builder
Returns
Type Description
NodeNetworkConfig.Builder

setCreatePodRange(boolean value)

public NodeNetworkConfig.Builder setCreatePodRange(boolean value)

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];

Parameter
Name Description
value boolean

The createPodRange to set.

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

setEnablePrivateNodes(boolean value)

public NodeNetworkConfig.Builder setEnablePrivateNodes(boolean value)

Whether nodes have internal IP addresses only. If enable_private_nodes is not specified, then the value is derived from cluster.privateClusterConfig.enablePrivateNodes

optional bool enable_private_nodes = 9;

Parameter
Name Description
value boolean

The enablePrivateNodes to set.

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NodeNetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

setNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig value)

public NodeNetworkConfig.Builder setNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig value)

Network bandwidth tier configuration.

optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;

Parameter
Name Description
value NodeNetworkConfig.NetworkPerformanceConfig
Returns
Type Description
NodeNetworkConfig.Builder

setNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig.Builder builderForValue)

public NodeNetworkConfig.Builder setNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig.Builder builderForValue)

Network bandwidth tier configuration.

optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11;

Parameter
Name Description
builderForValue NodeNetworkConfig.NetworkPerformanceConfig.Builder
Returns
Type Description
NodeNetworkConfig.Builder

setPodCidrOverprovisionConfig(PodCIDROverprovisionConfig value)

public NodeNetworkConfig.Builder setPodCidrOverprovisionConfig(PodCIDROverprovisionConfig value)

[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool.

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.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Parameter
Name Description
value PodCIDROverprovisionConfig
Returns
Type Description
NodeNetworkConfig.Builder

setPodCidrOverprovisionConfig(PodCIDROverprovisionConfig.Builder builderForValue)

public NodeNetworkConfig.Builder setPodCidrOverprovisionConfig(PodCIDROverprovisionConfig.Builder builderForValue)

[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool.

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.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Parameter
Name Description
builderForValue PodCIDROverprovisionConfig.Builder
Returns
Type Description
NodeNetworkConfig.Builder

setPodIpv4CidrBlock(String value)

public NodeNetworkConfig.Builder setPodIpv4CidrBlock(String value)

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 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;

Parameter
Name Description
value String

The podIpv4CidrBlock to set.

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

setPodIpv4CidrBlockBytes(ByteString value)

public NodeNetworkConfig.Builder setPodIpv4CidrBlockBytes(ByteString value)

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 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;

Parameter
Name Description
value ByteString

The bytes for podIpv4CidrBlock to set.

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

setPodIpv4RangeUtilization(double value)

public NodeNetworkConfig.Builder setPodIpv4RangeUtilization(double value)

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

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

Parameter
Name Description
value double

The podIpv4RangeUtilization to set.

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

setPodRange(String value)

public NodeNetworkConfig.Builder setPodRange(String value)

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;

Parameter
Name Description
value String

The podRange to set.

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

setPodRangeBytes(ByteString value)

public NodeNetworkConfig.Builder setPodRangeBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for podRange to set.

Returns
Type Description
NodeNetworkConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NodeNetworkConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NodeNetworkConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeNetworkConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeNetworkConfig.Builder
Overrides