Class PrivateClusterConfig.Builder (1.23.0)

public static final class PrivateClusterConfig.Builder extends GeneratedMessageV3.Builder<PrivateClusterConfig.Builder> implements PrivateClusterConfigOrBuilder

Configuration options for the private GKE cluster in a Cloud Composer environment.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivateClusterConfig build()
Returns
Type Description
PrivateClusterConfig

buildPartial()

public PrivateClusterConfig buildPartial()
Returns
Type Description
PrivateClusterConfig

clear()

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

clearEnablePrivateEndpoint()

public PrivateClusterConfig.Builder clearEnablePrivateEndpoint()

Optional. If true, access to the public endpoint of the GKE cluster is denied.

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

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMasterIpv4CidrBlock()

public PrivateClusterConfig.Builder clearMasterIpv4CidrBlock()

Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If left blank, the default value of '172.16.0.0/23' is used.

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

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

clearMasterIpv4ReservedRange()

public PrivateClusterConfig.Builder clearMasterIpv4ReservedRange()

Output only. The IP range in CIDR notation to use for the hosted master network. This range is used for assigning internal IP addresses to the GKE cluster master or set of masters and to the internal load balancer virtual IP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_reserved_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PrivateClusterConfig getDefaultInstanceForType()
Returns
Type Description
PrivateClusterConfig

getDescriptorForType()

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

getEnablePrivateEndpoint()

public boolean getEnablePrivateEndpoint()

Optional. If true, access to the public endpoint of the GKE cluster is denied.

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

Returns
Type Description
boolean

The enablePrivateEndpoint.

getMasterIpv4CidrBlock()

public String getMasterIpv4CidrBlock()

Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If left blank, the default value of '172.16.0.0/23' is used.

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

Returns
Type Description
String

The masterIpv4CidrBlock.

getMasterIpv4CidrBlockBytes()

public ByteString getMasterIpv4CidrBlockBytes()

Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If left blank, the default value of '172.16.0.0/23' is used.

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

Returns
Type Description
ByteString

The bytes for masterIpv4CidrBlock.

getMasterIpv4ReservedRange()

public String getMasterIpv4ReservedRange()

Output only. The IP range in CIDR notation to use for the hosted master network. This range is used for assigning internal IP addresses to the GKE cluster master or set of masters and to the internal load balancer virtual IP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_reserved_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The masterIpv4ReservedRange.

getMasterIpv4ReservedRangeBytes()

public ByteString getMasterIpv4ReservedRangeBytes()

Output only. The IP range in CIDR notation to use for the hosted master network. This range is used for assigning internal IP addresses to the GKE cluster master or set of masters and to the internal load balancer virtual IP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_reserved_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for masterIpv4ReservedRange.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivateClusterConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnablePrivateEndpoint(boolean value)

public PrivateClusterConfig.Builder setEnablePrivateEndpoint(boolean value)

Optional. If true, access to the public endpoint of the GKE cluster is denied.

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

Parameter
Name Description
value boolean

The enablePrivateEndpoint to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMasterIpv4CidrBlock(String value)

public PrivateClusterConfig.Builder setMasterIpv4CidrBlock(String value)

Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If left blank, the default value of '172.16.0.0/23' is used.

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

Parameter
Name Description
value String

The masterIpv4CidrBlock to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setMasterIpv4CidrBlockBytes(ByteString value)

public PrivateClusterConfig.Builder setMasterIpv4CidrBlockBytes(ByteString value)

Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If left blank, the default value of '172.16.0.0/23' is used.

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

Parameter
Name Description
value ByteString

The bytes for masterIpv4CidrBlock to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setMasterIpv4ReservedRange(String value)

public PrivateClusterConfig.Builder setMasterIpv4ReservedRange(String value)

Output only. The IP range in CIDR notation to use for the hosted master network. This range is used for assigning internal IP addresses to the GKE cluster master or set of masters and to the internal load balancer virtual IP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_reserved_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The masterIpv4ReservedRange to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setMasterIpv4ReservedRangeBytes(ByteString value)

public PrivateClusterConfig.Builder setMasterIpv4ReservedRangeBytes(ByteString value)

Output only. The IP range in CIDR notation to use for the hosted master network. This range is used for assigning internal IP addresses to the GKE cluster master or set of masters and to the internal load balancer virtual IP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_reserved_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for masterIpv4ReservedRange to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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