Class AdditionalIPRangesConfig.Builder (2.86.0)

public static final class AdditionalIPRangesConfig.Builder extends GeneratedMessage.Builder<AdditionalIPRangesConfig.Builder> implements AdditionalIPRangesConfigOrBuilder

AdditionalIPRangesConfig is the configuration for individual additional subnetwork attached to the cluster

Protobuf type google.container.v1beta1.AdditionalIPRangesConfig

Static Methods

getDescriptor()

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

Methods

addAllPodIpv4RangeNames(Iterable<String> values)

public AdditionalIPRangesConfig.Builder addAllPodIpv4RangeNames(Iterable<String> values)

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Parameter
Name Description
values Iterable<String>

The podIpv4RangeNames to add.

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

addPodIpv4RangeNames(String value)

public AdditionalIPRangesConfig.Builder addPodIpv4RangeNames(String value)

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Parameter
Name Description
value String

The podIpv4RangeNames to add.

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

addPodIpv4RangeNamesBytes(ByteString value)

public AdditionalIPRangesConfig.Builder addPodIpv4RangeNamesBytes(ByteString value)

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Parameter
Name Description
value ByteString

The bytes of the podIpv4RangeNames to add.

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

build()

public AdditionalIPRangesConfig build()
Returns
Type Description
AdditionalIPRangesConfig

buildPartial()

public AdditionalIPRangesConfig buildPartial()
Returns
Type Description
AdditionalIPRangesConfig

clear()

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

clearPodIpv4RangeNames()

public AdditionalIPRangesConfig.Builder clearPodIpv4RangeNames()

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

clearStatus()

public AdditionalIPRangesConfig.Builder clearStatus()

Draining status of the additional subnet.

.google.container.v1beta1.AdditionalIPRangesConfig.Status status = 3;

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

clearSubnetwork()

public AdditionalIPRangesConfig.Builder clearSubnetwork()

Name of the subnetwork. This can be the full path of the subnetwork or just the name. Example1: my-subnet Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 1;

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public AdditionalIPRangesConfig getDefaultInstanceForType()
Returns
Type Description
AdditionalIPRangesConfig

getDescriptorForType()

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

getPodIpv4RangeNames(int index)

public String getPodIpv4RangeNames(int index)

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The podIpv4RangeNames at the given index.

getPodIpv4RangeNamesBytes(int index)

public ByteString getPodIpv4RangeNamesBytes(int index)

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the podIpv4RangeNames at the given index.

getPodIpv4RangeNamesCount()

public int getPodIpv4RangeNamesCount()

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Returns
Type Description
int

The count of podIpv4RangeNames.

getPodIpv4RangeNamesList()

public ProtocolStringList getPodIpv4RangeNamesList()

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Returns
Type Description
ProtocolStringList

A list containing the podIpv4RangeNames.

getStatus()

public AdditionalIPRangesConfig.Status getStatus()

Draining status of the additional subnet.

.google.container.v1beta1.AdditionalIPRangesConfig.Status status = 3;

Returns
Type Description
AdditionalIPRangesConfig.Status

The status.

getStatusValue()

public int getStatusValue()

Draining status of the additional subnet.

.google.container.v1beta1.AdditionalIPRangesConfig.Status status = 3;

Returns
Type Description
int

The enum numeric value on the wire for status.

getSubnetwork()

public String getSubnetwork()

Name of the subnetwork. This can be the full path of the subnetwork or just the name. Example1: my-subnet Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 1;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Name of the subnetwork. This can be the full path of the subnetwork or just the name. Example1: my-subnet Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 1;

Returns
Type Description
ByteString

The bytes for subnetwork.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdditionalIPRangesConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPodIpv4RangeNames(int index, String value)

public AdditionalIPRangesConfig.Builder setPodIpv4RangeNames(int index, String value)

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2

repeated string pod_ipv4_range_names = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The podIpv4RangeNames to set.

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

setStatus(AdditionalIPRangesConfig.Status value)

public AdditionalIPRangesConfig.Builder setStatus(AdditionalIPRangesConfig.Status value)

Draining status of the additional subnet.

.google.container.v1beta1.AdditionalIPRangesConfig.Status status = 3;

Parameter
Name Description
value AdditionalIPRangesConfig.Status

The status to set.

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

setStatusValue(int value)

public AdditionalIPRangesConfig.Builder setStatusValue(int value)

Draining status of the additional subnet.

.google.container.v1beta1.AdditionalIPRangesConfig.Status status = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

setSubnetwork(String value)

public AdditionalIPRangesConfig.Builder setSubnetwork(String value)

Name of the subnetwork. This can be the full path of the subnetwork or just the name. Example1: my-subnet Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 1;

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public AdditionalIPRangesConfig.Builder setSubnetworkBytes(ByteString value)

Name of the subnetwork. This can be the full path of the subnetwork or just the name. Example1: my-subnet Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet

string subnetwork = 1;

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
AdditionalIPRangesConfig.Builder

This builder for chaining.