Class PrivateClusterConfig.Builder (2.45.0)

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

Configuration options for private clusters.

Protobuf type google.container.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()

Whether the master's internal IP address is used as the cluster endpoint.

bool enable_private_endpoint = 2;

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

clearEnablePrivateNodes()

public PrivateClusterConfig.Builder clearEnablePrivateNodes()

Whether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.

bool enable_private_nodes = 1;

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

clearMasterGlobalAccessConfig()

public PrivateClusterConfig.Builder clearMasterGlobalAccessConfig()

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Returns
Type Description
PrivateClusterConfig.Builder

clearMasterIpv4CidrBlock()

public PrivateClusterConfig.Builder clearMasterIpv4CidrBlock()

The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_cidr_block = 3;

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

clearPeeringName()

public PrivateClusterConfig.Builder clearPeeringName()

Output only. The peering name in the customer VPC used by this cluster.

string peering_name = 7;

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

clearPrivateEndpoint()

public PrivateClusterConfig.Builder clearPrivateEndpoint()

Output only. The internal IP address of this cluster's master endpoint.

string private_endpoint = 4;

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

clearPrivateEndpointSubnetwork()

public PrivateClusterConfig.Builder clearPrivateEndpointSubnetwork()

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.

string private_endpoint_subnetwork = 10;

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

clearPublicEndpoint()

public PrivateClusterConfig.Builder clearPublicEndpoint()

Output only. The external IP address of this cluster's master endpoint.

string public_endpoint = 5;

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

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()

Whether the master's internal IP address is used as the cluster endpoint.

bool enable_private_endpoint = 2;

Returns
Type Description
boolean

The enablePrivateEndpoint.

getEnablePrivateNodes()

public boolean getEnablePrivateNodes()

Whether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.

bool enable_private_nodes = 1;

Returns
Type Description
boolean

The enablePrivateNodes.

getMasterGlobalAccessConfig()

public PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig()

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Returns
Type Description
PrivateClusterMasterGlobalAccessConfig

The masterGlobalAccessConfig.

getMasterGlobalAccessConfigBuilder()

public PrivateClusterMasterGlobalAccessConfig.Builder getMasterGlobalAccessConfigBuilder()

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Returns
Type Description
PrivateClusterMasterGlobalAccessConfig.Builder

getMasterGlobalAccessConfigOrBuilder()

public PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder()

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Returns
Type Description
PrivateClusterMasterGlobalAccessConfigOrBuilder

getMasterIpv4CidrBlock()

public String getMasterIpv4CidrBlock()

The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_cidr_block = 3;

Returns
Type Description
String

The masterIpv4CidrBlock.

getMasterIpv4CidrBlockBytes()

public ByteString getMasterIpv4CidrBlockBytes()

The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_cidr_block = 3;

Returns
Type Description
ByteString

The bytes for masterIpv4CidrBlock.

getPeeringName()

public String getPeeringName()

Output only. The peering name in the customer VPC used by this cluster.

string peering_name = 7;

Returns
Type Description
String

The peeringName.

getPeeringNameBytes()

public ByteString getPeeringNameBytes()

Output only. The peering name in the customer VPC used by this cluster.

string peering_name = 7;

Returns
Type Description
ByteString

The bytes for peeringName.

getPrivateEndpoint()

public String getPrivateEndpoint()

Output only. The internal IP address of this cluster's master endpoint.

string private_endpoint = 4;

Returns
Type Description
String

The privateEndpoint.

getPrivateEndpointBytes()

public ByteString getPrivateEndpointBytes()

Output only. The internal IP address of this cluster's master endpoint.

string private_endpoint = 4;

Returns
Type Description
ByteString

The bytes for privateEndpoint.

getPrivateEndpointSubnetwork()

public String getPrivateEndpointSubnetwork()

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.

string private_endpoint_subnetwork = 10;

Returns
Type Description
String

The privateEndpointSubnetwork.

getPrivateEndpointSubnetworkBytes()

public ByteString getPrivateEndpointSubnetworkBytes()

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.

string private_endpoint_subnetwork = 10;

Returns
Type Description
ByteString

The bytes for privateEndpointSubnetwork.

getPublicEndpoint()

public String getPublicEndpoint()

Output only. The external IP address of this cluster's master endpoint.

string public_endpoint = 5;

Returns
Type Description
String

The publicEndpoint.

getPublicEndpointBytes()

public ByteString getPublicEndpointBytes()

Output only. The external IP address of this cluster's master endpoint.

string public_endpoint = 5;

Returns
Type Description
ByteString

The bytes for publicEndpoint.

hasMasterGlobalAccessConfig()

public boolean hasMasterGlobalAccessConfig()

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Returns
Type Description
boolean

Whether the masterGlobalAccessConfig field is set.

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

mergeMasterGlobalAccessConfig(PrivateClusterMasterGlobalAccessConfig value)

public PrivateClusterConfig.Builder mergeMasterGlobalAccessConfig(PrivateClusterMasterGlobalAccessConfig value)

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Parameter
Name Description
value PrivateClusterMasterGlobalAccessConfig
Returns
Type Description
PrivateClusterConfig.Builder

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)

Whether the master's internal IP address is used as the cluster endpoint.

bool enable_private_endpoint = 2;

Parameter
Name Description
value boolean

The enablePrivateEndpoint to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setEnablePrivateNodes(boolean value)

public PrivateClusterConfig.Builder setEnablePrivateNodes(boolean value)

Whether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.

bool enable_private_nodes = 1;

Parameter
Name Description
value boolean

The enablePrivateNodes 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

setMasterGlobalAccessConfig(PrivateClusterMasterGlobalAccessConfig value)

public PrivateClusterConfig.Builder setMasterGlobalAccessConfig(PrivateClusterMasterGlobalAccessConfig value)

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

Parameter
Name Description
value PrivateClusterMasterGlobalAccessConfig
Returns
Type Description
PrivateClusterConfig.Builder

setMasterGlobalAccessConfig(PrivateClusterMasterGlobalAccessConfig.Builder builderForValue)

public PrivateClusterConfig.Builder setMasterGlobalAccessConfig(PrivateClusterMasterGlobalAccessConfig.Builder builderForValue)

Controls master global access settings.

.google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;

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

setMasterIpv4CidrBlock(String value)

public PrivateClusterConfig.Builder setMasterIpv4CidrBlock(String value)

The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_cidr_block = 3;

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)

The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network.

string master_ipv4_cidr_block = 3;

Parameter
Name Description
value ByteString

The bytes for masterIpv4CidrBlock to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setPeeringName(String value)

public PrivateClusterConfig.Builder setPeeringName(String value)

Output only. The peering name in the customer VPC used by this cluster.

string peering_name = 7;

Parameter
Name Description
value String

The peeringName to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setPeeringNameBytes(ByteString value)

public PrivateClusterConfig.Builder setPeeringNameBytes(ByteString value)

Output only. The peering name in the customer VPC used by this cluster.

string peering_name = 7;

Parameter
Name Description
value ByteString

The bytes for peeringName to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setPrivateEndpoint(String value)

public PrivateClusterConfig.Builder setPrivateEndpoint(String value)

Output only. The internal IP address of this cluster's master endpoint.

string private_endpoint = 4;

Parameter
Name Description
value String

The privateEndpoint to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setPrivateEndpointBytes(ByteString value)

public PrivateClusterConfig.Builder setPrivateEndpointBytes(ByteString value)

Output only. The internal IP address of this cluster's master endpoint.

string private_endpoint = 4;

Parameter
Name Description
value ByteString

The bytes for privateEndpoint to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setPrivateEndpointSubnetwork(String value)

public PrivateClusterConfig.Builder setPrivateEndpointSubnetwork(String value)

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.

string private_endpoint_subnetwork = 10;

Parameter
Name Description
value String

The privateEndpointSubnetwork to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setPrivateEndpointSubnetworkBytes(ByteString value)

public PrivateClusterConfig.Builder setPrivateEndpointSubnetworkBytes(ByteString value)

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.

string private_endpoint_subnetwork = 10;

Parameter
Name Description
value ByteString

The bytes for privateEndpointSubnetwork to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setPublicEndpoint(String value)

public PrivateClusterConfig.Builder setPublicEndpoint(String value)

Output only. The external IP address of this cluster's master endpoint.

string public_endpoint = 5;

Parameter
Name Description
value String

The publicEndpoint to set.

Returns
Type Description
PrivateClusterConfig.Builder

This builder for chaining.

setPublicEndpointBytes(ByteString value)

public PrivateClusterConfig.Builder setPublicEndpointBytes(ByteString value)

Output only. The external IP address of this cluster's master endpoint.

string public_endpoint = 5;

Parameter
Name Description
value ByteString

The bytes for publicEndpoint 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