Class ClusterNetworking.Builder (0.71.0)

publicstaticfinalclass ClusterNetworking.BuilderextendsGeneratedMessageV3.Builder<ClusterNetworking.Builder>implementsClusterNetworkingOrBuilder

Cluster-wide networking configuration.

Protobuf type google.cloud.edgecontainer.v1.ClusterNetworking

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllClusterIpv4CidrBlocks(Iterable<String> values)

publicClusterNetworking.BuilderaddAllClusterIpv4CidrBlocks(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)

publicClusterNetworking.BuilderaddAllServicesIpv4CidrBlocks(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)

publicClusterNetworking.BuilderaddClusterIpv4CidrBlocks(Stringvalue)

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)

publicClusterNetworking.BuilderaddClusterIpv4CidrBlocksBytes(ByteStringvalue)

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)

publicClusterNetworking.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClusterNetworking.Builder
Overrides

addServicesIpv4CidrBlocks(String value)

publicClusterNetworking.BuilderaddServicesIpv4CidrBlocks(Stringvalue)

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)

publicClusterNetworking.BuilderaddServicesIpv4CidrBlocksBytes(ByteStringvalue)

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()

publicClusterNetworkingbuild()
Returns
Type Description
ClusterNetworking

buildPartial()

publicClusterNetworkingbuildPartial()
Returns
Type Description
ClusterNetworking

clear()

publicClusterNetworking.Builderclear()
Returns
Type Description
ClusterNetworking.Builder
Overrides

clearClusterIpv4CidrBlocks()

publicClusterNetworking.BuilderclearClusterIpv4CidrBlocks()

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)

publicClusterNetworking.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ClusterNetworking.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicClusterNetworking.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ClusterNetworking.Builder
Overrides

clearServicesIpv4CidrBlocks()

publicClusterNetworking.BuilderclearServicesIpv4CidrBlocks()

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()

publicClusterNetworking.Builderclone()
Returns
Type Description
ClusterNetworking.Builder
Overrides

getClusterIpv4CidrBlocks(int index)

publicStringgetClusterIpv4CidrBlocks(intindex)

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)

publicByteStringgetClusterIpv4CidrBlocksBytes(intindex)

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()

publicintgetClusterIpv4CidrBlocksCount()

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()

publicProtocolStringListgetClusterIpv4CidrBlocksList()

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()

publicClusterNetworkinggetDefaultInstanceForType()
Returns
Type Description
ClusterNetworking

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getServicesIpv4CidrBlocks(int index)

publicStringgetServicesIpv4CidrBlocks(intindex)

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)

publicByteStringgetServicesIpv4CidrBlocksBytes(intindex)

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()

publicintgetServicesIpv4CidrBlocksCount()

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()

publicProtocolStringListgetServicesIpv4CidrBlocksList()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClusterNetworking other)

publicClusterNetworking.BuildermergeFrom(ClusterNetworkingother)
Parameter
Name Description
other ClusterNetworking
Returns
Type Description
ClusterNetworking.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicClusterNetworking.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterNetworking.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicClusterNetworking.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ClusterNetworking.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalClusterNetworking.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClusterNetworking.Builder
Overrides

setClusterIpv4CidrBlocks(int index, String value)

publicClusterNetworking.BuildersetClusterIpv4CidrBlocks(intindex,Stringvalue)

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)

publicClusterNetworking.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClusterNetworking.Builder
Overrides

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

publicClusterNetworking.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ClusterNetworking.Builder
Overrides

setServicesIpv4CidrBlocks(int index, String value)

publicClusterNetworking.BuildersetServicesIpv4CidrBlocks(intindex,Stringvalue)

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)

publicfinalClusterNetworking.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClusterNetworking.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.