Class AwsClusterNetworking.Builder (0.1.0)

public static final class AwsClusterNetworking.Builder extends GeneratedMessageV3.Builder<AwsClusterNetworking.Builder> implements AwsClusterNetworkingOrBuilder

ClusterNetworking defines cluster-wide networking configuration. Anthos clusters on AWS run on a single VPC. This includes control plane replicas and node pool nodes.

Protobuf type google.cloud.gkemulticloud.v1.AwsClusterNetworking

Static Methods

getDescriptor()

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

Methods

addAllPodAddressCidrBlocks(Iterable<String> values)

public AwsClusterNetworking.Builder addAllPodAddressCidrBlocks(Iterable<String> values)

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

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

Parameter
NameDescription
valuesIterable<String>

The podAddressCidrBlocks to add.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

addAllServiceAddressCidrBlocks(Iterable<String> values)

public AwsClusterNetworking.Builder addAllServiceAddressCidrBlocks(Iterable<String> values)

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The serviceAddressCidrBlocks to add.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

addPodAddressCidrBlocks(String value)

public AwsClusterNetworking.Builder addPodAddressCidrBlocks(String value)

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

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

Parameter
NameDescription
valueString

The podAddressCidrBlocks to add.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

addPodAddressCidrBlocksBytes(ByteString value)

public AwsClusterNetworking.Builder addPodAddressCidrBlocksBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes of the podAddressCidrBlocks to add.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceAddressCidrBlocks(String value)

public AwsClusterNetworking.Builder addServiceAddressCidrBlocks(String value)

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The serviceAddressCidrBlocks to add.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

addServiceAddressCidrBlocksBytes(ByteString value)

public AwsClusterNetworking.Builder addServiceAddressCidrBlocksBytes(ByteString value)

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the serviceAddressCidrBlocks to add.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

build()

public AwsClusterNetworking build()
Returns
TypeDescription
AwsClusterNetworking

buildPartial()

public AwsClusterNetworking buildPartial()
Returns
TypeDescription
AwsClusterNetworking

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPodAddressCidrBlocks()

public AwsClusterNetworking.Builder clearPodAddressCidrBlocks()

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

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

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

clearServiceAddressCidrBlocks()

public AwsClusterNetworking.Builder clearServiceAddressCidrBlocks()

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

clearVpcId()

public AwsClusterNetworking.Builder clearVpcId()

Required. The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.

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

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AwsClusterNetworking getDefaultInstanceForType()
Returns
TypeDescription
AwsClusterNetworking

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPodAddressCidrBlocks(int index)

public String getPodAddressCidrBlocks(int index)

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

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The podAddressCidrBlocks at the given index.

getPodAddressCidrBlocksBytes(int index)

public ByteString getPodAddressCidrBlocksBytes(int index)

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

repeated string pod_address_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 podAddressCidrBlocks at the given index.

getPodAddressCidrBlocksCount()

public int getPodAddressCidrBlocksCount()

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

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

Returns
TypeDescription
int

The count of podAddressCidrBlocks.

getPodAddressCidrBlocksList()

public ProtocolStringList getPodAddressCidrBlocksList()

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

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

Returns
TypeDescription
ProtocolStringList

A list containing the podAddressCidrBlocks.

getServiceAddressCidrBlocks(int index)

public String getServiceAddressCidrBlocks(int index)

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The serviceAddressCidrBlocks at the given index.

getServiceAddressCidrBlocksBytes(int index)

public ByteString getServiceAddressCidrBlocksBytes(int index)

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the serviceAddressCidrBlocks at the given index.

getServiceAddressCidrBlocksCount()

public int getServiceAddressCidrBlocksCount()

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of serviceAddressCidrBlocks.

getServiceAddressCidrBlocksList()

public ProtocolStringList getServiceAddressCidrBlocksList()

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the serviceAddressCidrBlocks.

getVpcId()

public String getVpcId()

Required. The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.

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

Returns
TypeDescription
String

The vpcId.

getVpcIdBytes()

public ByteString getVpcIdBytes()

Required. The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.

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

Returns
TypeDescription
ByteString

The bytes for vpcId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AwsClusterNetworking other)

public AwsClusterNetworking.Builder mergeFrom(AwsClusterNetworking other)
Parameter
NameDescription
otherAwsClusterNetworking
Returns
TypeDescription
AwsClusterNetworking.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPodAddressCidrBlocks(int index, String value)

public AwsClusterNetworking.Builder setPodAddressCidrBlocks(int index, String value)

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

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The podAddressCidrBlocks to set.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

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

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

setServiceAddressCidrBlocks(int index, String value)

public AwsClusterNetworking.Builder setServiceAddressCidrBlocks(int index, String value)

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

repeated string service_address_cidr_blocks = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The serviceAddressCidrBlocks to set.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVpcId(String value)

public AwsClusterNetworking.Builder setVpcId(String value)

Required. The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.

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

Parameter
NameDescription
valueString

The vpcId to set.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.

setVpcIdBytes(ByteString value)

public AwsClusterNetworking.Builder setVpcIdBytes(ByteString value)

Required. The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.

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

Parameter
NameDescription
valueByteString

The bytes for vpcId to set.

Returns
TypeDescription
AwsClusterNetworking.Builder

This builder for chaining.