public static final class IPAllocationPolicy.Builder extends GeneratedMessage.Builder<IPAllocationPolicy.Builder> implements IPAllocationPolicyOrBuilderConfiguration for controlling how IPs are allocated in the GKE cluster.
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > IPAllocationPolicy.BuilderImplements
IPAllocationPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public IPAllocationPolicy build()| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy |
|
buildPartial()
public IPAllocationPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy |
|
clear()
public IPAllocationPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
|
clearClusterIpv4CidrBlock()
public IPAllocationPolicy.Builder clearClusterIpv4CidrBlock()Optional. The IP address range used to allocate IP addresses to pods in the 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.
Specify cluster_secondary_range_name or cluster_ipv4_cidr_block
but not both.
string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
This builder for chaining. |
clearClusterSecondaryRangeName()
public IPAllocationPolicy.Builder clearClusterSecondaryRangeName() Optional. The name of the cluster's secondary range used to allocate
IP addresses to pods. Specify either cluster_secondary_range_name
or cluster_ipv4_cidr_block but not both.
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 | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
This builder for chaining. |
clearServicesIpv4CidrBlock()
public IPAllocationPolicy.Builder clearServicesIpv4CidrBlock()Optional. The IP address range of the services IP addresses in this 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.
Specify services_secondary_range_name or services_ipv4_cidr_block
but not both.
string services_ipv4_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
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 cluster. Specify either services_secondary_range_name
or services_ipv4_cidr_block but not both.
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 | |
|---|---|
| Type | Description |
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.
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 | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
This builder for chaining. |
getClusterIpv4CidrBlock()
public String getClusterIpv4CidrBlock()Optional. The IP address range used to allocate IP addresses to pods in the 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.
Specify cluster_secondary_range_name or cluster_ipv4_cidr_block
but not both.
string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The clusterIpv4CidrBlock. |
getClusterIpv4CidrBlockBytes()
public ByteString getClusterIpv4CidrBlockBytes()Optional. The IP address range used to allocate IP addresses to pods in the 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.
Specify cluster_secondary_range_name or cluster_ipv4_cidr_block
but not both.
string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clusterIpv4CidrBlock. |
getClusterSecondaryRangeName()
public String getClusterSecondaryRangeName() Optional. The name of the cluster's secondary range used to allocate
IP addresses to pods. Specify either cluster_secondary_range_name
or cluster_ipv4_cidr_block but not both.
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 | |
|---|---|
| Type | Description |
String |
The clusterSecondaryRangeName. |
getClusterSecondaryRangeNameBytes()
public ByteString getClusterSecondaryRangeNameBytes() Optional. The name of the cluster's secondary range used to allocate
IP addresses to pods. Specify either cluster_secondary_range_name
or cluster_ipv4_cidr_block but not both.
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for clusterSecondaryRangeName. |
getDefaultInstanceForType()
public IPAllocationPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getServicesIpv4CidrBlock()
public String getServicesIpv4CidrBlock()Optional. The IP address range of the services IP addresses in this 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.
Specify services_secondary_range_name or services_ipv4_cidr_block
but not both.
string services_ipv4_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The servicesIpv4CidrBlock. |
getServicesIpv4CidrBlockBytes()
public ByteString getServicesIpv4CidrBlockBytes()Optional. The IP address range of the services IP addresses in this 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.
Specify services_secondary_range_name or services_ipv4_cidr_block
but not both.
string services_ipv4_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for servicesIpv4CidrBlock. |
getServicesSecondaryRangeName()
public String getServicesSecondaryRangeName() Optional. The name of the services' secondary range used to allocate
IP addresses to the cluster. Specify either services_secondary_range_name
or services_ipv4_cidr_block but not both.
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 | |
|---|---|
| Type | Description |
String |
The servicesSecondaryRangeName. |
getServicesSecondaryRangeNameBytes()
public ByteString getServicesSecondaryRangeNameBytes() Optional. The name of the services' secondary range used to allocate
IP addresses to the cluster. Specify either services_secondary_range_name
or services_ipv4_cidr_block but not both.
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
boolean |
The useIpAliases. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(IPAllocationPolicy other)
public IPAllocationPolicy.Builder mergeFrom(IPAllocationPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
IPAllocationPolicy |
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public IPAllocationPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public IPAllocationPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
|
setClusterIpv4CidrBlock(String value)
public IPAllocationPolicy.Builder setClusterIpv4CidrBlock(String value)Optional. The IP address range used to allocate IP addresses to pods in the 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.
Specify cluster_secondary_range_name or cluster_ipv4_cidr_block
but not both.
string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clusterIpv4CidrBlock to set. |
| Returns | |
|---|---|
| Type | Description |
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 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.
Specify cluster_secondary_range_name or cluster_ipv4_cidr_block
but not both.
string cluster_ipv4_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clusterIpv4CidrBlock to set. |
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
This builder for chaining. |
setClusterSecondaryRangeName(String value)
public IPAllocationPolicy.Builder setClusterSecondaryRangeName(String value) Optional. The name of the cluster's secondary range used to allocate
IP addresses to pods. Specify either cluster_secondary_range_name
or cluster_ipv4_cidr_block but not both.
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clusterSecondaryRangeName to set. |
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
This builder for chaining. |
setClusterSecondaryRangeNameBytes(ByteString value)
public IPAllocationPolicy.Builder setClusterSecondaryRangeNameBytes(ByteString value) Optional. The name of the cluster's secondary range used to allocate
IP addresses to pods. Specify either cluster_secondary_range_name
or cluster_ipv4_cidr_block but not both.
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clusterSecondaryRangeName to set. |
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
This builder for chaining. |
setServicesIpv4CidrBlock(String value)
public IPAllocationPolicy.Builder setServicesIpv4CidrBlock(String value)Optional. The IP address range of the services IP addresses in this 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.
Specify services_secondary_range_name or services_ipv4_cidr_block
but not both.
string services_ipv4_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe servicesIpv4CidrBlock to set. |
| Returns | |
|---|---|
| Type | Description |
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 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.
Specify services_secondary_range_name or services_ipv4_cidr_block
but not both.
string services_ipv4_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for servicesIpv4CidrBlock to set. |
| Returns | |
|---|---|
| Type | Description |
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 cluster. Specify either services_secondary_range_name
or services_ipv4_cidr_block but not both.
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe servicesSecondaryRangeName to set. |
| Returns | |
|---|---|
| Type | Description |
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 cluster. Specify either services_secondary_range_name
or services_ipv4_cidr_block but not both.
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for servicesSecondaryRangeName to set. |
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
This builder for chaining. |
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.
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe useIpAliases to set. |
| Returns | |
|---|---|
| Type | Description |
IPAllocationPolicy.Builder |
This builder for chaining. |