Class IPAllocationPolicy (1.41.0)

public final class IPAllocationPolicy extends GeneratedMessageV3 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 Fields

CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER

public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER

public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER

public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER

public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

USE_IP_ALIASES_FIELD_NUMBER

public static final int USE_IP_ALIASES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static IPAllocationPolicy getDefaultInstance()
Returns
TypeDescription
IPAllocationPolicy

getDescriptor()

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

newBuilder()

public static IPAllocationPolicy.Builder newBuilder()
Returns
TypeDescription
IPAllocationPolicy.Builder

newBuilder(IPAllocationPolicy prototype)

public static IPAllocationPolicy.Builder newBuilder(IPAllocationPolicy prototype)
Parameter
NameDescription
prototypeIPAllocationPolicy
Returns
TypeDescription
IPAllocationPolicy.Builder

parseDelimitedFrom(InputStream input)

public static IPAllocationPolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IPAllocationPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static IPAllocationPolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static IPAllocationPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static IPAllocationPolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static IPAllocationPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static IPAllocationPolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static IPAllocationPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static IPAllocationPolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IPAllocationPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static IPAllocationPolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static IPAllocationPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IPAllocationPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<IPAllocationPolicy> parser()
Returns
TypeDescription
Parser<IPAllocationPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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

getParserForType()

public Parser<IPAllocationPolicy> getParserForType()
Returns
TypeDescription
Parser<IPAllocationPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

This field is only supported for Cloud Composer environments in versions composer-1..-airflow-..*. Environments in newer versions always use VPC-native GKE clusters.

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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

For Cloud Composer environments in versions composer-1..-airflow-..*, 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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected IPAllocationPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
IPAllocationPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException