Class PrivateEnvironmentConfig.Builder (1.5.0)

public static final class PrivateEnvironmentConfig.Builder extends GeneratedMessageV3.Builder<PrivateEnvironmentConfig.Builder> implements PrivateEnvironmentConfigOrBuilder

The configuration information for configuring a Private IP Cloud Composer environment.

Protobuf type google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivateEnvironmentConfig build()
Returns
Type Description
PrivateEnvironmentConfig

buildPartial()

public PrivateEnvironmentConfig buildPartial()
Returns
Type Description
PrivateEnvironmentConfig

clear()

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

clearCloudComposerNetworkIpv4CidrBlock()

public PrivateEnvironmentConfig.Builder clearCloudComposerNetworkIpv4CidrBlock()

Optional. The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_cidr_block = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

clearCloudComposerNetworkIpv4ReservedRange()

public PrivateEnvironmentConfig.Builder clearCloudComposerNetworkIpv4ReservedRange()

Output only. The IP range reserved for the tenant project's Cloud Composer network. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_reserved_range = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

clearCloudSqlIpv4CidrBlock()

public PrivateEnvironmentConfig.Builder clearCloudSqlIpv4CidrBlock()

Optional. The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block

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

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

clearEnablePrivateEnvironment()

public PrivateEnvironmentConfig.Builder clearEnablePrivateEnvironment()

Optional. If true, a Private IP Cloud Composer environment is created. If this field is set to true, IPAllocationPolicy.use_ip_aliases must be set to true .

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

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivateClusterConfig()

public PrivateEnvironmentConfig.Builder clearPrivateClusterConfig()

Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment.

.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig private_cluster_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateEnvironmentConfig.Builder

clearWebServerIpv4CidrBlock()

public PrivateEnvironmentConfig.Builder clearWebServerIpv4CidrBlock()

Optional. The CIDR block from which IP range for web server will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block.

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

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

clearWebServerIpv4ReservedRange()

public PrivateEnvironmentConfig.Builder clearWebServerIpv4ReservedRange()

Output only. The IP range reserved for the tenant project's App Engine VMs.

string web_server_ipv4_reserved_range = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

clone()

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

getCloudComposerNetworkIpv4CidrBlock()

public String getCloudComposerNetworkIpv4CidrBlock()

Optional. The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_cidr_block = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The cloudComposerNetworkIpv4CidrBlock.

getCloudComposerNetworkIpv4CidrBlockBytes()

public ByteString getCloudComposerNetworkIpv4CidrBlockBytes()

Optional. The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_cidr_block = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for cloudComposerNetworkIpv4CidrBlock.

getCloudComposerNetworkIpv4ReservedRange()

public String getCloudComposerNetworkIpv4ReservedRange()

Output only. The IP range reserved for the tenant project's Cloud Composer network. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_reserved_range = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The cloudComposerNetworkIpv4ReservedRange.

getCloudComposerNetworkIpv4ReservedRangeBytes()

public ByteString getCloudComposerNetworkIpv4ReservedRangeBytes()

Output only. The IP range reserved for the tenant project's Cloud Composer network. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_reserved_range = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for cloudComposerNetworkIpv4ReservedRange.

getCloudSqlIpv4CidrBlock()

public String getCloudSqlIpv4CidrBlock()

Optional. The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block

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

Returns
Type Description
String

The cloudSqlIpv4CidrBlock.

getCloudSqlIpv4CidrBlockBytes()

public ByteString getCloudSqlIpv4CidrBlockBytes()

Optional. The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block

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

Returns
Type Description
ByteString

The bytes for cloudSqlIpv4CidrBlock.

getDefaultInstanceForType()

public PrivateEnvironmentConfig getDefaultInstanceForType()
Returns
Type Description
PrivateEnvironmentConfig

getDescriptorForType()

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

getEnablePrivateEnvironment()

public boolean getEnablePrivateEnvironment()

Optional. If true, a Private IP Cloud Composer environment is created. If this field is set to true, IPAllocationPolicy.use_ip_aliases must be set to true .

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

Returns
Type Description
boolean

The enablePrivateEnvironment.

getPrivateClusterConfig()

public PrivateClusterConfig getPrivateClusterConfig()

Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment.

.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig private_cluster_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateClusterConfig

The privateClusterConfig.

getPrivateClusterConfigBuilder()

public PrivateClusterConfig.Builder getPrivateClusterConfigBuilder()

Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment.

.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig private_cluster_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateClusterConfig.Builder

getPrivateClusterConfigOrBuilder()

public PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder()

Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment.

.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig private_cluster_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateClusterConfigOrBuilder

getWebServerIpv4CidrBlock()

public String getWebServerIpv4CidrBlock()

Optional. The CIDR block from which IP range for web server will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block.

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

Returns
Type Description
String

The webServerIpv4CidrBlock.

getWebServerIpv4CidrBlockBytes()

public ByteString getWebServerIpv4CidrBlockBytes()

Optional. The CIDR block from which IP range for web server will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block.

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

Returns
Type Description
ByteString

The bytes for webServerIpv4CidrBlock.

getWebServerIpv4ReservedRange()

public String getWebServerIpv4ReservedRange()

Output only. The IP range reserved for the tenant project's App Engine VMs.

string web_server_ipv4_reserved_range = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The webServerIpv4ReservedRange.

getWebServerIpv4ReservedRangeBytes()

public ByteString getWebServerIpv4ReservedRangeBytes()

Output only. The IP range reserved for the tenant project's App Engine VMs.

string web_server_ipv4_reserved_range = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for webServerIpv4ReservedRange.

hasPrivateClusterConfig()

public boolean hasPrivateClusterConfig()

Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment.

.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig private_cluster_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the privateClusterConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivateEnvironmentConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePrivateClusterConfig(PrivateClusterConfig value)

public PrivateEnvironmentConfig.Builder mergePrivateClusterConfig(PrivateClusterConfig value)

Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment.

.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig private_cluster_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PrivateClusterConfig
Returns
Type Description
PrivateEnvironmentConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCloudComposerNetworkIpv4CidrBlock(String value)

public PrivateEnvironmentConfig.Builder setCloudComposerNetworkIpv4CidrBlock(String value)

Optional. The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_cidr_block = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The cloudComposerNetworkIpv4CidrBlock to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setCloudComposerNetworkIpv4CidrBlockBytes(ByteString value)

public PrivateEnvironmentConfig.Builder setCloudComposerNetworkIpv4CidrBlockBytes(ByteString value)

Optional. The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_cidr_block = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for cloudComposerNetworkIpv4CidrBlock to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setCloudComposerNetworkIpv4ReservedRange(String value)

public PrivateEnvironmentConfig.Builder setCloudComposerNetworkIpv4ReservedRange(String value)

Output only. The IP range reserved for the tenant project's Cloud Composer network. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_reserved_range = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The cloudComposerNetworkIpv4ReservedRange to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setCloudComposerNetworkIpv4ReservedRangeBytes(ByteString value)

public PrivateEnvironmentConfig.Builder setCloudComposerNetworkIpv4ReservedRangeBytes(ByteString value)

Output only. The IP range reserved for the tenant project's Cloud Composer network. This field is supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

string cloud_composer_network_ipv4_reserved_range = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for cloudComposerNetworkIpv4ReservedRange to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setCloudSqlIpv4CidrBlock(String value)

public PrivateEnvironmentConfig.Builder setCloudSqlIpv4CidrBlock(String value)

Optional. The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block

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

Parameter
Name Description
value String

The cloudSqlIpv4CidrBlock to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setCloudSqlIpv4CidrBlockBytes(ByteString value)

public PrivateEnvironmentConfig.Builder setCloudSqlIpv4CidrBlockBytes(ByteString value)

Optional. The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block

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

Parameter
Name Description
value ByteString

The bytes for cloudSqlIpv4CidrBlock to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setEnablePrivateEnvironment(boolean value)

public PrivateEnvironmentConfig.Builder setEnablePrivateEnvironment(boolean value)

Optional. If true, a Private IP Cloud Composer environment is created. If this field is set to true, IPAllocationPolicy.use_ip_aliases must be set to true .

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

Parameter
Name Description
value boolean

The enablePrivateEnvironment to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrivateClusterConfig(PrivateClusterConfig value)

public PrivateEnvironmentConfig.Builder setPrivateClusterConfig(PrivateClusterConfig value)

Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment.

.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig private_cluster_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PrivateClusterConfig
Returns
Type Description
PrivateEnvironmentConfig.Builder

setPrivateClusterConfig(PrivateClusterConfig.Builder builderForValue)

public PrivateEnvironmentConfig.Builder setPrivateClusterConfig(PrivateClusterConfig.Builder builderForValue)

Optional. Configuration for the private GKE cluster for a Private IP Cloud Composer environment.

.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig private_cluster_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PrivateClusterConfig.Builder
Returns
Type Description
PrivateEnvironmentConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWebServerIpv4CidrBlock(String value)

public PrivateEnvironmentConfig.Builder setWebServerIpv4CidrBlock(String value)

Optional. The CIDR block from which IP range for web server will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block.

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

Parameter
Name Description
value String

The webServerIpv4CidrBlock to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setWebServerIpv4CidrBlockBytes(ByteString value)

public PrivateEnvironmentConfig.Builder setWebServerIpv4CidrBlockBytes(ByteString value)

Optional. The CIDR block from which IP range for web server will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block.

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

Parameter
Name Description
value ByteString

The bytes for webServerIpv4CidrBlock to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setWebServerIpv4ReservedRange(String value)

public PrivateEnvironmentConfig.Builder setWebServerIpv4ReservedRange(String value)

Output only. The IP range reserved for the tenant project's App Engine VMs.

string web_server_ipv4_reserved_range = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The webServerIpv4ReservedRange to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.

setWebServerIpv4ReservedRangeBytes(ByteString value)

public PrivateEnvironmentConfig.Builder setWebServerIpv4ReservedRangeBytes(ByteString value)

Output only. The IP range reserved for the tenant project's App Engine VMs.

string web_server_ipv4_reserved_range = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for webServerIpv4ReservedRange to set.

Returns
Type Description
PrivateEnvironmentConfig.Builder

This builder for chaining.