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

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

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

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.

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

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

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.

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.

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

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.

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