Class ClusterNetworking.Builder (0.32.0)

public static final class ClusterNetworking.Builder extends GeneratedMessageV3.Builder<ClusterNetworking.Builder> implements ClusterNetworkingOrBuilder

Cluster-wide networking configuration.

Protobuf type google.cloud.edgecontainer.v1.ClusterNetworking

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllClusterIpv4CidrBlocks(Iterable<String> values)

public ClusterNetworking.Builder addAllClusterIpv4CidrBlocks(Iterable<String> values)

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The clusterIpv4CidrBlocks to add.

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

addAllServicesIpv4CidrBlocks(Iterable<String> values)

public ClusterNetworking.Builder addAllServicesIpv4CidrBlocks(Iterable<String> values)

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The servicesIpv4CidrBlocks to add.

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

addClusterIpv4CidrBlocks(String value)

public ClusterNetworking.Builder addClusterIpv4CidrBlocks(String value)

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The clusterIpv4CidrBlocks to add.

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

addClusterIpv4CidrBlocksBytes(ByteString value)

public ClusterNetworking.Builder addClusterIpv4CidrBlocksBytes(ByteString value)

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the clusterIpv4CidrBlocks to add.

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServicesIpv4CidrBlocks(String value)

public ClusterNetworking.Builder addServicesIpv4CidrBlocks(String value)

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The servicesIpv4CidrBlocks to add.

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

addServicesIpv4CidrBlocksBytes(ByteString value)

public ClusterNetworking.Builder addServicesIpv4CidrBlocksBytes(ByteString value)

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the servicesIpv4CidrBlocks to add.

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

build()

public ClusterNetworking build()
Returns
TypeDescription
ClusterNetworking

buildPartial()

public ClusterNetworking buildPartial()
Returns
TypeDescription
ClusterNetworking

clear()

public ClusterNetworking.Builder clear()
Returns
TypeDescription
ClusterNetworking.Builder
Overrides

clearClusterIpv4CidrBlocks()

public ClusterNetworking.Builder clearClusterIpv4CidrBlocks()

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ClusterNetworking.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ClusterNetworking.Builder
Overrides

clearServicesIpv4CidrBlocks()

public ClusterNetworking.Builder clearServicesIpv4CidrBlocks()

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

clone()

public ClusterNetworking.Builder clone()
Returns
TypeDescription
ClusterNetworking.Builder
Overrides

getClusterIpv4CidrBlocks(int index)

public String getClusterIpv4CidrBlocks(int index)

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The clusterIpv4CidrBlocks at the given index.

getClusterIpv4CidrBlocksBytes(int index)

public ByteString getClusterIpv4CidrBlocksBytes(int index)

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the clusterIpv4CidrBlocks at the given index.

getClusterIpv4CidrBlocksCount()

public int getClusterIpv4CidrBlocksCount()

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of clusterIpv4CidrBlocks.

getClusterIpv4CidrBlocksList()

public ProtocolStringList getClusterIpv4CidrBlocksList()

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the clusterIpv4CidrBlocks.

getDefaultInstanceForType()

public ClusterNetworking getDefaultInstanceForType()
Returns
TypeDescription
ClusterNetworking

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServicesIpv4CidrBlocks(int index)

public String getServicesIpv4CidrBlocks(int index)

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The servicesIpv4CidrBlocks at the given index.

getServicesIpv4CidrBlocksBytes(int index)

public ByteString getServicesIpv4CidrBlocksBytes(int index)

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the servicesIpv4CidrBlocks at the given index.

getServicesIpv4CidrBlocksCount()

public int getServicesIpv4CidrBlocksCount()

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of servicesIpv4CidrBlocks.

getServicesIpv4CidrBlocksList()

public ProtocolStringList getServicesIpv4CidrBlocksList()

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the servicesIpv4CidrBlocks.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ClusterNetworking other)

public ClusterNetworking.Builder mergeFrom(ClusterNetworking other)
Parameter
NameDescription
otherClusterNetworking
Returns
TypeDescription
ClusterNetworking.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClusterIpv4CidrBlocks(int index, String value)

public ClusterNetworking.Builder setClusterIpv4CidrBlocks(int index, String value)

Required. All pods in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string cluster_ipv4_cidr_blocks = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The clusterIpv4CidrBlocks to set.

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ClusterNetworking.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ClusterNetworking.Builder
Overrides

setServicesIpv4CidrBlocks(int index, String value)

public ClusterNetworking.Builder setServicesIpv4CidrBlocks(int index, String value)

Required. All services in the cluster are assigned an RFC1918 IPv4 address from these blocks. Only a single block is supported. This field cannot be changed after creation.

repeated string services_ipv4_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The servicesIpv4CidrBlocks to set.

Returns
TypeDescription
ClusterNetworking.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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