Class AdditionalPodNetworkConfig.Builder (2.86.0)

public static final class AdditionalPodNetworkConfig.Builder extends GeneratedMessage.Builder<AdditionalPodNetworkConfig.Builder> implements AdditionalPodNetworkConfigOrBuilder

AdditionalPodNetworkConfig is the configuration for additional pod networks within the NodeNetworkConfig message

Protobuf type google.container.v1beta1.AdditionalPodNetworkConfig

Static Methods

getDescriptor()

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

Methods

build()

public AdditionalPodNetworkConfig build()
Returns
Type Description
AdditionalPodNetworkConfig

buildPartial()

public AdditionalPodNetworkConfig buildPartial()
Returns
Type Description
AdditionalPodNetworkConfig

clear()

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

clearMaxPodsPerNode()

public AdditionalPodNetworkConfig.Builder clearMaxPodsPerNode()

The maximum number of pods per node which use this pod network.

optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3;

Returns
Type Description
AdditionalPodNetworkConfig.Builder

clearSecondaryPodRange()

public AdditionalPodNetworkConfig.Builder clearSecondaryPodRange()

The name of the secondary range on the subnet which provides IP address for this pod range.

string secondary_pod_range = 2;

Returns
Type Description
AdditionalPodNetworkConfig.Builder

This builder for chaining.

clearSubnetwork()

public AdditionalPodNetworkConfig.Builder clearSubnetwork()

Name of the subnetwork where the additional pod network belongs.

string subnetwork = 1;

Returns
Type Description
AdditionalPodNetworkConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public AdditionalPodNetworkConfig getDefaultInstanceForType()
Returns
Type Description
AdditionalPodNetworkConfig

getDescriptorForType()

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

getMaxPodsPerNode()

public MaxPodsConstraint getMaxPodsPerNode()

The maximum number of pods per node which use this pod network.

optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3;

Returns
Type Description
MaxPodsConstraint

The maxPodsPerNode.

getMaxPodsPerNodeBuilder()

public MaxPodsConstraint.Builder getMaxPodsPerNodeBuilder()

The maximum number of pods per node which use this pod network.

optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3;

Returns
Type Description
MaxPodsConstraint.Builder

getMaxPodsPerNodeOrBuilder()

public MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder()

The maximum number of pods per node which use this pod network.

optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3;

Returns
Type Description
MaxPodsConstraintOrBuilder

getSecondaryPodRange()

public String getSecondaryPodRange()

The name of the secondary range on the subnet which provides IP address for this pod range.

string secondary_pod_range = 2;

Returns
Type Description
String

The secondaryPodRange.

getSecondaryPodRangeBytes()

public ByteString getSecondaryPodRangeBytes()

The name of the secondary range on the subnet which provides IP address for this pod range.

string secondary_pod_range = 2;

Returns
Type Description
ByteString

The bytes for secondaryPodRange.

getSubnetwork()

public String getSubnetwork()

Name of the subnetwork where the additional pod network belongs.

string subnetwork = 1;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Name of the subnetwork where the additional pod network belongs.

string subnetwork = 1;

Returns
Type Description
ByteString

The bytes for subnetwork.

hasMaxPodsPerNode()

public boolean hasMaxPodsPerNode()

The maximum number of pods per node which use this pod network.

optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3;

Returns
Type Description
boolean

Whether the maxPodsPerNode field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdditionalPodNetworkConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMaxPodsPerNode(MaxPodsConstraint value)

public AdditionalPodNetworkConfig.Builder mergeMaxPodsPerNode(MaxPodsConstraint value)

The maximum number of pods per node which use this pod network.

optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3;

Parameter
Name Description
value MaxPodsConstraint
Returns
Type Description
AdditionalPodNetworkConfig.Builder

setMaxPodsPerNode(MaxPodsConstraint value)

public AdditionalPodNetworkConfig.Builder setMaxPodsPerNode(MaxPodsConstraint value)

The maximum number of pods per node which use this pod network.

optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3;

Parameter
Name Description
value MaxPodsConstraint
Returns
Type Description
AdditionalPodNetworkConfig.Builder

setMaxPodsPerNode(MaxPodsConstraint.Builder builderForValue)

public AdditionalPodNetworkConfig.Builder setMaxPodsPerNode(MaxPodsConstraint.Builder builderForValue)

The maximum number of pods per node which use this pod network.

optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3;

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

setSecondaryPodRange(String value)

public AdditionalPodNetworkConfig.Builder setSecondaryPodRange(String value)

The name of the secondary range on the subnet which provides IP address for this pod range.

string secondary_pod_range = 2;

Parameter
Name Description
value String

The secondaryPodRange to set.

Returns
Type Description
AdditionalPodNetworkConfig.Builder

This builder for chaining.

setSecondaryPodRangeBytes(ByteString value)

public AdditionalPodNetworkConfig.Builder setSecondaryPodRangeBytes(ByteString value)

The name of the secondary range on the subnet which provides IP address for this pod range.

string secondary_pod_range = 2;

Parameter
Name Description
value ByteString

The bytes for secondaryPodRange to set.

Returns
Type Description
AdditionalPodNetworkConfig.Builder

This builder for chaining.

setSubnetwork(String value)

public AdditionalPodNetworkConfig.Builder setSubnetwork(String value)

Name of the subnetwork where the additional pod network belongs.

string subnetwork = 1;

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
AdditionalPodNetworkConfig.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public AdditionalPodNetworkConfig.Builder setSubnetworkBytes(ByteString value)

Name of the subnetwork where the additional pod network belongs.

string subnetwork = 1;

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
AdditionalPodNetworkConfig.Builder

This builder for chaining.