Class ClusterNetworking.Builder (0.40.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
Type Description
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
Name Description
values Iterable<String>

The clusterIpv4CidrBlocks to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The servicesIpv4CidrBlocks to add.

Returns
Type Description
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
Name Description
value String

The clusterIpv4CidrBlocks to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the clusterIpv4CidrBlocks to add.

Returns
Type Description
ClusterNetworking.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClusterNetworking.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The servicesIpv4CidrBlocks to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the servicesIpv4CidrBlocks to add.

Returns
Type Description
ClusterNetworking.Builder

This builder for chaining.

build()

public ClusterNetworking build()
Returns
Type Description
ClusterNetworking

buildPartial()

public ClusterNetworking buildPartial()
Returns
Type Description
ClusterNetworking

clear()

public ClusterNetworking.Builder clear()
Returns
Type Description
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
Type Description
ClusterNetworking.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public ClusterNetworking.Builder clone()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the clusterIpv4CidrBlocks.

getDefaultInstanceForType()

public ClusterNetworking getDefaultInstanceForType()
Returns
Type Description
ClusterNetworking

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the servicesIpv4CidrBlocks.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClusterNetworking other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClusterNetworking.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The clusterIpv4CidrBlocks to set.

Returns
Type Description
ClusterNetworking.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ClusterNetworking.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The servicesIpv4CidrBlocks to set.

Returns
Type Description
ClusterNetworking.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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