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

The podAddressCidrBlocks to add.

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

The serviceAddressCidrBlocks to add.

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

The podAddressCidrBlocks to add.

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

The bytes of the podAddressCidrBlocks to add.

Returns
Type Description
AwsClusterNetworking.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The serviceAddressCidrBlocks to add.

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

The bytes of the serviceAddressCidrBlocks to add.

Returns
Type Description
AwsClusterNetworking.Builder

This builder for chaining.

build()

public AwsClusterNetworking build()
Returns
Type Description
AwsClusterNetworking

buildPartial()

public AwsClusterNetworking buildPartial()
Returns
Type Description
AwsClusterNetworking

clear()

public AwsClusterNetworking.Builder clear()
Returns
Type Description
AwsClusterNetworking.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsClusterNetworking.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AwsClusterNetworking.Builder
Overrides

clearPerNodePoolSgRulesDisabled()

public AwsClusterNetworking.Builder clearPerNodePoolSgRulesDisabled()

Optional. Disable the per node pool subnet security group rules on the control plane security group. When set to true, you must also provide one or more security groups that ensure node pools are able to send requests to the control plane on TCP/443 and TCP/8132. Failure to do so may result in unavailable node pools.

bool per_node_pool_sg_rules_disabled = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AwsClusterNetworking.Builder

This builder for chaining.

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
Type Description
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
Type Description
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
Type Description
AwsClusterNetworking.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AwsClusterNetworking getDefaultInstanceForType()
Returns
Type Description
AwsClusterNetworking

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPerNodePoolSgRulesDisabled()

public boolean getPerNodePoolSgRulesDisabled()

Optional. Disable the per node pool subnet security group rules on the control plane security group. When set to true, you must also provide one or more security groups that ensure node pools are able to send requests to the control plane on TCP/443 and TCP/8132. Failure to do so may result in unavailable node pools.

bool per_node_pool_sg_rules_disabled = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The perNodePoolSgRulesDisabled.

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

The index of the element to return.

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

The index of the value to return.

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

The index of the element to return.

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

The index of the value to return.

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

The bytes for vpcId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AwsClusterNetworking other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPerNodePoolSgRulesDisabled(boolean value)

public AwsClusterNetworking.Builder setPerNodePoolSgRulesDisabled(boolean value)

Optional. Disable the per node pool subnet security group rules on the control plane security group. When set to true, you must also provide one or more security groups that ensure node pools are able to send requests to the control plane on TCP/443 and TCP/8132. Failure to do so may result in unavailable node pools.

bool per_node_pool_sg_rules_disabled = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The perNodePoolSgRulesDisabled to set.

Returns
Type Description
AwsClusterNetworking.Builder

This builder for chaining.

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

The index to set the value at.

value String

The podAddressCidrBlocks to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The serviceAddressCidrBlocks to set.

Returns
Type Description
AwsClusterNetworking.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AwsClusterNetworking.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The vpcId to set.

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

The bytes for vpcId to set.

Returns
Type Description
AwsClusterNetworking.Builder

This builder for chaining.