Class AzureClusterNetworking.Builder (0.50.0)

public static final class AzureClusterNetworking.Builder extends GeneratedMessageV3.Builder<AzureClusterNetworking.Builder> implements AzureClusterNetworkingOrBuilder

ClusterNetworking contains cluster-wide networking configuration.

Protobuf type google.cloud.gkemulticloud.v1.AzureClusterNetworking

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPodAddressCidrBlocks(Iterable<String> values)

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

Required. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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
AzureClusterNetworking.Builder

This builder for chaining.

addAllServiceAddressCidrBlocks(Iterable<String> values)

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

Required. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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
AzureClusterNetworking.Builder

This builder for chaining.

addPodAddressCidrBlocks(String value)

public AzureClusterNetworking.Builder addPodAddressCidrBlocks(String value)

Required. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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
AzureClusterNetworking.Builder

This builder for chaining.

addPodAddressCidrBlocksBytes(ByteString value)

public AzureClusterNetworking.Builder addPodAddressCidrBlocksBytes(ByteString value)

Required. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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
AzureClusterNetworking.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceAddressCidrBlocks(String value)

public AzureClusterNetworking.Builder addServiceAddressCidrBlocks(String value)

Required. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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

Parameter
Name Description
value String

The serviceAddressCidrBlocks to add.

Returns
Type Description
AzureClusterNetworking.Builder

This builder for chaining.

addServiceAddressCidrBlocksBytes(ByteString value)

public AzureClusterNetworking.Builder addServiceAddressCidrBlocksBytes(ByteString value)

Required. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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
AzureClusterNetworking.Builder

This builder for chaining.

build()

public AzureClusterNetworking build()
Returns
Type Description
AzureClusterNetworking

buildPartial()

public AzureClusterNetworking buildPartial()
Returns
Type Description
AzureClusterNetworking

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPodAddressCidrBlocks()

public AzureClusterNetworking.Builder clearPodAddressCidrBlocks()

Required. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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
AzureClusterNetworking.Builder

This builder for chaining.

clearServiceAddressCidrBlocks()

public AzureClusterNetworking.Builder clearServiceAddressCidrBlocks()

Required. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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

Returns
Type Description
AzureClusterNetworking.Builder

This builder for chaining.

clearServiceLoadBalancerSubnetId()

public AzureClusterNetworking.Builder clearServiceLoadBalancerSubnetId()

Optional. The ARM ID of the subnet where Kubernetes private service type load balancers are deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.

Example: "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"

string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AzureClusterNetworking.Builder

This builder for chaining.

clearVirtualNetworkId()

public AzureClusterNetworking.Builder clearVirtualNetworkId()

Required. The Azure Resource Manager (ARM) ID of the VNet associated with your cluster.

All components in the cluster (i.e. control plane and node pools) run on a single VNet.

Example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.Network/virtualNetworks/<vnet-id>

This field cannot be changed after creation.

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

Returns
Type Description
AzureClusterNetworking.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AzureClusterNetworking getDefaultInstanceForType()
Returns
Type Description
AzureClusterNetworking

getDescriptorForType()

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

getPodAddressCidrBlocks(int index)

public String getPodAddressCidrBlocks(int index)

Required. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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

Returns
Type Description
ProtocolStringList

A list containing the serviceAddressCidrBlocks.

getServiceLoadBalancerSubnetId()

public String getServiceLoadBalancerSubnetId()

Optional. The ARM ID of the subnet where Kubernetes private service type load balancers are deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.

Example: "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"

string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The serviceLoadBalancerSubnetId.

getServiceLoadBalancerSubnetIdBytes()

public ByteString getServiceLoadBalancerSubnetIdBytes()

Optional. The ARM ID of the subnet where Kubernetes private service type load balancers are deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.

Example: "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"

string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for serviceLoadBalancerSubnetId.

getVirtualNetworkId()

public String getVirtualNetworkId()

Required. The Azure Resource Manager (ARM) ID of the VNet associated with your cluster.

All components in the cluster (i.e. control plane and node pools) run on a single VNet.

Example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.Network/virtualNetworks/<vnet-id>

This field cannot be changed after creation.

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

Returns
Type Description
String

The virtualNetworkId.

getVirtualNetworkIdBytes()

public ByteString getVirtualNetworkIdBytes()

Required. The Azure Resource Manager (ARM) ID of the VNet associated with your cluster.

All components in the cluster (i.e. control plane and node pools) run on a single VNet.

Example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.Network/virtualNetworks/<vnet-id>

This field cannot be changed after creation.

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

Returns
Type Description
ByteString

The bytes for virtualNetworkId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AzureClusterNetworking other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPodAddressCidrBlocks(int index, String value)

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

Required. The IP address range of the pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All pods in the cluster get assigned a unique 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
AzureClusterNetworking.Builder

This builder for chaining.

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

public AzureClusterNetworking.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AzureClusterNetworking.Builder
Overrides

setServiceAddressCidrBlocks(int index, String value)

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

Required. The IP address range for services in this cluster, in CIDR notation (e.g. 10.96.0.0/14).

All services in the cluster get assigned a unique IPv4 address from these ranges. Only a single range is supported.

This field cannot be changed after creating a cluster.

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
AzureClusterNetworking.Builder

This builder for chaining.

setServiceLoadBalancerSubnetId(String value)

public AzureClusterNetworking.Builder setServiceLoadBalancerSubnetId(String value)

Optional. The ARM ID of the subnet where Kubernetes private service type load balancers are deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.

Example: "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"

string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The serviceLoadBalancerSubnetId to set.

Returns
Type Description
AzureClusterNetworking.Builder

This builder for chaining.

setServiceLoadBalancerSubnetIdBytes(ByteString value)

public AzureClusterNetworking.Builder setServiceLoadBalancerSubnetIdBytes(ByteString value)

Optional. The ARM ID of the subnet where Kubernetes private service type load balancers are deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.

Example: "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"

string service_load_balancer_subnet_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for serviceLoadBalancerSubnetId to set.

Returns
Type Description
AzureClusterNetworking.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVirtualNetworkId(String value)

public AzureClusterNetworking.Builder setVirtualNetworkId(String value)

Required. The Azure Resource Manager (ARM) ID of the VNet associated with your cluster.

All components in the cluster (i.e. control plane and node pools) run on a single VNet.

Example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.Network/virtualNetworks/<vnet-id>

This field cannot be changed after creation.

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

Parameter
Name Description
value String

The virtualNetworkId to set.

Returns
Type Description
AzureClusterNetworking.Builder

This builder for chaining.

setVirtualNetworkIdBytes(ByteString value)

public AzureClusterNetworking.Builder setVirtualNetworkIdBytes(ByteString value)

Required. The Azure Resource Manager (ARM) ID of the VNet associated with your cluster.

All components in the cluster (i.e. control plane and node pools) run on a single VNet.

Example: /subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.Network/virtualNetworks/<vnet-id>

This field cannot be changed after creation.

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

Parameter
Name Description
value ByteString

The bytes for virtualNetworkId to set.

Returns
Type Description
AzureClusterNetworking.Builder

This builder for chaining.