Class PrivateClusterConfig.Builder (2.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivateClusterConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivateClusterConfig.Builder
Overrides

build()

public PrivateClusterConfig build()
Returns
TypeDescription
PrivateClusterConfig

buildPartial()

public PrivateClusterConfig buildPartial()
Returns
TypeDescription
PrivateClusterConfig

clear()

public PrivateClusterConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PrivateClusterConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PrivateClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PrivateClusterConfig.Builder
Overrides

clearMasterGlobalAccessConfig()

public PrivateClusterConfig.Builder clearMasterGlobalAccessConfig()

Controls master global access settings.

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

Returns
TypeDescription
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
TypeDescription
PrivateClusterConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivateClusterConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PrivateClusterConfig.Builder

This builder for chaining.

clone()

public PrivateClusterConfig.Builder clone()
Returns
TypeDescription
PrivateClusterConfig.Builder
Overrides

getDefaultInstanceForType()

public PrivateClusterConfig getDefaultInstanceForType()
Returns
TypeDescription
PrivateClusterConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The enablePrivateNodes.

getMasterGlobalAccessConfig()

public PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig()

Controls master global access settings.

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

Returns
TypeDescription
PrivateClusterMasterGlobalAccessConfig

The masterGlobalAccessConfig.

getMasterGlobalAccessConfigBuilder()

public PrivateClusterMasterGlobalAccessConfig.Builder getMasterGlobalAccessConfigBuilder()

Controls master global access settings.

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

Returns
TypeDescription
PrivateClusterMasterGlobalAccessConfig.Builder

getMasterGlobalAccessConfigOrBuilder()

public PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder()

Controls master global access settings.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The privateEndpoint.

getPrivateEndpointBytes()

public ByteString getPrivateEndpointBytes()

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

string private_endpoint = 4;

Returns
TypeDescription
ByteString

The bytes for privateEndpoint.

getPublicEndpoint()

public String getPublicEndpoint()

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

string public_endpoint = 5;

Returns
TypeDescription
String

The publicEndpoint.

getPublicEndpointBytes()

public ByteString getPublicEndpointBytes()

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

string public_endpoint = 5;

Returns
TypeDescription
ByteString

The bytes for publicEndpoint.

hasMasterGlobalAccessConfig()

public boolean hasMasterGlobalAccessConfig()

Controls master global access settings.

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

Returns
TypeDescription
boolean

Whether the masterGlobalAccessConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PrivateClusterConfig other)

public PrivateClusterConfig.Builder mergeFrom(PrivateClusterConfig other)
Parameter
NameDescription
otherPrivateClusterConfig
Returns
TypeDescription
PrivateClusterConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivateClusterConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivateClusterConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PrivateClusterConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePrivateClusterMasterGlobalAccessConfig
Returns
TypeDescription
PrivateClusterConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivateClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enablePrivateEndpoint to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The enablePrivateNodes to set.

Returns
TypeDescription
PrivateClusterConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PrivateClusterConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePrivateClusterMasterGlobalAccessConfig
Returns
TypeDescription
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
NameDescription
builderForValuePrivateClusterMasterGlobalAccessConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The masterIpv4CidrBlock to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for masterIpv4CidrBlock to set.

Returns
TypeDescription
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
NameDescription
valueString

The peeringName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for peeringName to set.

Returns
TypeDescription
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
NameDescription
valueString

The privateEndpoint to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for privateEndpoint to set.

Returns
TypeDescription
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
NameDescription
valueString

The publicEndpoint to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for publicEndpoint to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PrivateClusterConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivateClusterConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrivateClusterConfig.Builder
Overrides