Class AdditionalIPRangesConfig.Builder (2.73.0)

public static final class AdditionalIPRangesConfig.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AdditionalIPRangesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

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.

clone()

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

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.

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public AdditionalIPRangesConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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