Class IPAllocationPolicy.Builder (1.5.0)

public static final class IPAllocationPolicy.Builder extends GeneratedMessageV3.Builder<IPAllocationPolicy.Builder> implements IPAllocationPolicyOrBuilder

Configuration for controlling how IPs are allocated in the GKE cluster running the Apache Airflow software.

Protobuf type google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IPAllocationPolicy build()
Returns
TypeDescription
IPAllocationPolicy

buildPartial()

public IPAllocationPolicy buildPartial()
Returns
TypeDescription
IPAllocationPolicy

clear()

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

clearClusterIpAllocation()

public IPAllocationPolicy.Builder clearClusterIpAllocation()
Returns
TypeDescription
IPAllocationPolicy.Builder

clearClusterIpv4CidrBlock()

public IPAllocationPolicy.Builder clearClusterIpv4CidrBlock()

Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

clearClusterSecondaryRangeName()

public IPAllocationPolicy.Builder clearClusterSecondaryRangeName()

Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. This field is applicable only when use_ip_aliases is true.

string cluster_secondary_range_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServicesIpAllocation()

public IPAllocationPolicy.Builder clearServicesIpAllocation()
Returns
TypeDescription
IPAllocationPolicy.Builder

clearServicesIpv4CidrBlock()

public IPAllocationPolicy.Builder clearServicesIpv4CidrBlock()

Optional. The IP address range of the services IP addresses in this GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

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

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

clearServicesSecondaryRangeName()

public IPAllocationPolicy.Builder clearServicesSecondaryRangeName()

Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster. This field is applicable only when use_ip_aliases is true.

string services_secondary_range_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

clearUseIpAliases()

public IPAllocationPolicy.Builder clearUseIpAliases()

Optional. Whether or not to enable Alias IPs in the GKE cluster. If true, a VPC-native cluster is created.

bool use_ip_aliases = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

clone()

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

getClusterIpAllocationCase()

public IPAllocationPolicy.ClusterIpAllocationCase getClusterIpAllocationCase()
Returns
TypeDescription
IPAllocationPolicy.ClusterIpAllocationCase

getClusterIpv4CidrBlock()

public String getClusterIpv4CidrBlock()

Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The clusterIpv4CidrBlock.

getClusterIpv4CidrBlockBytes()

public ByteString getClusterIpv4CidrBlockBytes()

Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for clusterIpv4CidrBlock.

getClusterSecondaryRangeName()

public String getClusterSecondaryRangeName()

Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. This field is applicable only when use_ip_aliases is true.

string cluster_secondary_range_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The clusterSecondaryRangeName.

getClusterSecondaryRangeNameBytes()

public ByteString getClusterSecondaryRangeNameBytes()

Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. This field is applicable only when use_ip_aliases is true.

string cluster_secondary_range_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for clusterSecondaryRangeName.

getDefaultInstanceForType()

public IPAllocationPolicy getDefaultInstanceForType()
Returns
TypeDescription
IPAllocationPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServicesIpAllocationCase()

public IPAllocationPolicy.ServicesIpAllocationCase getServicesIpAllocationCase()
Returns
TypeDescription
IPAllocationPolicy.ServicesIpAllocationCase

getServicesIpv4CidrBlock()

public String getServicesIpv4CidrBlock()

Optional. The IP address range of the services IP addresses in this GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

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

Returns
TypeDescription
String

The servicesIpv4CidrBlock.

getServicesIpv4CidrBlockBytes()

public ByteString getServicesIpv4CidrBlockBytes()

Optional. The IP address range of the services IP addresses in this GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

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

Returns
TypeDescription
ByteString

The bytes for servicesIpv4CidrBlock.

getServicesSecondaryRangeName()

public String getServicesSecondaryRangeName()

Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster. This field is applicable only when use_ip_aliases is true.

string services_secondary_range_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The servicesSecondaryRangeName.

getServicesSecondaryRangeNameBytes()

public ByteString getServicesSecondaryRangeNameBytes()

Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster. This field is applicable only when use_ip_aliases is true.

string services_secondary_range_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for servicesSecondaryRangeName.

getUseIpAliases()

public boolean getUseIpAliases()

Optional. Whether or not to enable Alias IPs in the GKE cluster. If true, a VPC-native cluster is created.

bool use_ip_aliases = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The useIpAliases.

hasClusterIpv4CidrBlock()

public boolean hasClusterIpv4CidrBlock()

Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the clusterIpv4CidrBlock field is set.

hasClusterSecondaryRangeName()

public boolean hasClusterSecondaryRangeName()

Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. This field is applicable only when use_ip_aliases is true.

string cluster_secondary_range_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the clusterSecondaryRangeName field is set.

hasServicesIpv4CidrBlock()

public boolean hasServicesIpv4CidrBlock()

Optional. The IP address range of the services IP addresses in this GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

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

Returns
TypeDescription
boolean

Whether the servicesIpv4CidrBlock field is set.

hasServicesSecondaryRangeName()

public boolean hasServicesSecondaryRangeName()

Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster. This field is applicable only when use_ip_aliases is true.

string services_secondary_range_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the servicesSecondaryRangeName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IPAllocationPolicy other)

public IPAllocationPolicy.Builder mergeFrom(IPAllocationPolicy other)
Parameter
NameDescription
otherIPAllocationPolicy
Returns
TypeDescription
IPAllocationPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClusterIpv4CidrBlock(String value)

public IPAllocationPolicy.Builder setClusterIpv4CidrBlock(String value)

Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The clusterIpv4CidrBlock to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

setClusterIpv4CidrBlockBytes(ByteString value)

public IPAllocationPolicy.Builder setClusterIpv4CidrBlockBytes(ByteString value)

Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for clusterIpv4CidrBlock to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

setClusterSecondaryRangeName(String value)

public IPAllocationPolicy.Builder setClusterSecondaryRangeName(String value)

Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. This field is applicable only when use_ip_aliases is true.

string cluster_secondary_range_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The clusterSecondaryRangeName to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

setClusterSecondaryRangeNameBytes(ByteString value)

public IPAllocationPolicy.Builder setClusterSecondaryRangeNameBytes(ByteString value)

Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. This field is applicable only when use_ip_aliases is true.

string cluster_secondary_range_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for clusterSecondaryRangeName to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServicesIpv4CidrBlock(String value)

public IPAllocationPolicy.Builder setServicesIpv4CidrBlock(String value)

Optional. The IP address range of the services IP addresses in this GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

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

Parameter
NameDescription
valueString

The servicesIpv4CidrBlock to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

setServicesIpv4CidrBlockBytes(ByteString value)

public IPAllocationPolicy.Builder setServicesIpv4CidrBlockBytes(ByteString value)

Optional. The IP address range of the services IP addresses in this GKE cluster. This field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

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

Parameter
NameDescription
valueByteString

The bytes for servicesIpv4CidrBlock to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

setServicesSecondaryRangeName(String value)

public IPAllocationPolicy.Builder setServicesSecondaryRangeName(String value)

Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster. This field is applicable only when use_ip_aliases is true.

string services_secondary_range_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The servicesSecondaryRangeName to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

setServicesSecondaryRangeNameBytes(ByteString value)

public IPAllocationPolicy.Builder setServicesSecondaryRangeNameBytes(ByteString value)

Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster. This field is applicable only when use_ip_aliases is true.

string services_secondary_range_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for servicesSecondaryRangeName to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseIpAliases(boolean value)

public IPAllocationPolicy.Builder setUseIpAliases(boolean value)

Optional. Whether or not to enable Alias IPs in the GKE cluster. If true, a VPC-native cluster is created.

bool use_ip_aliases = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The useIpAliases to set.

Returns
TypeDescription
IPAllocationPolicy.Builder

This builder for chaining.