Class NodeNetworkConfig.Builder (2.36.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.v1.NodeNetworkConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
NameDescription
valueAdditionalNodeNetworkConfig
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
NameDescription
builderForValueAdditionalNodeNetworkConfig.Builder
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameters
NameDescription
indexint
valueAdditionalNodeNetworkConfig
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameters
NameDescription
indexint
builderForValueAdditionalNodeNetworkConfig.Builder
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
NameDescription
valueAdditionalPodNetworkConfig
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
NameDescription
builderForValueAdditionalPodNetworkConfig.Builder
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameters
NameDescription
indexint
valueAdditionalPodNetworkConfig
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameters
NameDescription
indexint
builderForValueAdditionalPodNetworkConfig.Builder
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1.AdditionalNodeNetworkConfig>
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1.AdditionalPodNetworkConfig>
Returns
TypeDescription
NodeNetworkConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeNetworkConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeNetworkConfig.Builder
Overrides

build()

public NodeNetworkConfig build()
Returns
TypeDescription
NodeNetworkConfig

buildPartial()

public NodeNetworkConfig buildPartial()
Returns
TypeDescription
NodeNetworkConfig

clear()

public NodeNetworkConfig.Builder clear()
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NodeNetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NodeNetworkConfig.Builder
Overrides

clearNetworkPerformanceConfig()

public NodeNetworkConfig.Builder clearNetworkPerformanceConfig()

Network bandwidth tier configuration.

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

Returns
TypeDescription
NodeNetworkConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeNetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

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

This builder for chaining.

clone()

public NodeNetworkConfig.Builder clone()
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Returns
TypeDescription
List<? extends com.google.container.v1.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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Returns
TypeDescription
List<? extends com.google.container.v1.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
TypeDescription
boolean

The createPodRange.

getDefaultInstanceForType()

public NodeNetworkConfig getDefaultInstanceForType()
Returns
TypeDescription
NodeNetworkConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The enablePrivateNodes.

getNetworkPerformanceConfig()

public NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig()

Network bandwidth tier configuration.

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

Returns
TypeDescription
NodeNetworkConfig.NetworkPerformanceConfig

The networkPerformanceConfig.

getNetworkPerformanceConfigBuilder()

public NodeNetworkConfig.NetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder()

Network bandwidth tier configuration.

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

Returns
TypeDescription
NodeNetworkConfig.NetworkPerformanceConfig.Builder

getNetworkPerformanceConfigOrBuilder()

public NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()

Network bandwidth tier configuration.

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

Returns
TypeDescription
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.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
TypeDescription
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.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
TypeDescription
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.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the enablePrivateNodes field is set.

hasNetworkPerformanceConfig()

public boolean hasNetworkPerformanceConfig()

Network bandwidth tier configuration.

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

Returns
TypeDescription
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.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Returns
TypeDescription
boolean

Whether the podCidrOverprovisionConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeNetworkConfig other)

public NodeNetworkConfig.Builder mergeFrom(NodeNetworkConfig other)
Parameter
NameDescription
otherNodeNetworkConfig
Returns
TypeDescription
NodeNetworkConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeNetworkConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeNetworkConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NodeNetworkConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NodeNetworkConfig.Builder
Overrides

mergeNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig value)

public NodeNetworkConfig.Builder mergeNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig value)

Network bandwidth tier configuration.

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

Parameter
NameDescription
valueNodeNetworkConfig.NetworkPerformanceConfig
Returns
TypeDescription
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.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Parameter
NameDescription
valuePodCIDROverprovisionConfig
Returns
TypeDescription
NodeNetworkConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeNetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameters
NameDescription
indexint
valueAdditionalNodeNetworkConfig
Returns
TypeDescription
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.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14;

Parameters
NameDescription
indexint
builderForValueAdditionalNodeNetworkConfig.Builder
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameters
NameDescription
indexint
valueAdditionalPodNetworkConfig
Returns
TypeDescription
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.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15;

Parameters
NameDescription
indexint
builderForValueAdditionalPodNetworkConfig.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The createPodRange to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The enablePrivateNodes to set.

Returns
TypeDescription
NodeNetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NodeNetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeNetworkConfig.Builder
Overrides

setNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig value)

public NodeNetworkConfig.Builder setNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig value)

Network bandwidth tier configuration.

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

Parameter
NameDescription
valueNodeNetworkConfig.NetworkPerformanceConfig
Returns
TypeDescription
NodeNetworkConfig.Builder

setNetworkPerformanceConfig(NodeNetworkConfig.NetworkPerformanceConfig.Builder builderForValue)

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

Network bandwidth tier configuration.

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

Parameter
NameDescription
builderForValueNodeNetworkConfig.NetworkPerformanceConfig.Builder
Returns
TypeDescription
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.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Parameter
NameDescription
valuePodCIDROverprovisionConfig
Returns
TypeDescription
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.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

Parameter
NameDescription
builderForValuePodCIDROverprovisionConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The podIpv4CidrBlock to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for podIpv4CidrBlock to set.

Returns
TypeDescription
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
NameDescription
valuedouble

The podIpv4RangeUtilization to set.

Returns
TypeDescription
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
NameDescription
valueString

The podRange to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for podRange to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NodeNetworkConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeNetworkConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeNetworkConfig.Builder
Overrides