Class ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder (2.58.0)

public static final class ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder extends GeneratedMessageV3.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder> implements ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder

IP endpoints configuration.

Protobuf type google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ControlPlaneEndpointsConfig.IPEndpointsConfig build()
Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig

buildPartial()

public ControlPlaneEndpointsConfig.IPEndpointsConfig buildPartial()
Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig

clear()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clear()
Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder
Overrides

clearAuthorizedNetworksConfig()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clearAuthorizedNetworksConfig()

Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.

.google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4;

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

clearEnablePublicEndpoint()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clearEnablePublicEndpoint()

Controls whether the control plane allows access through a public IP. It is invalid to specify both [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same time.

optional bool enable_public_endpoint = 2;

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

clearEnabled()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clearEnabled()

Controls whether to allow direct IP access.

optional bool enabled = 1;

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGlobalAccess()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clearGlobalAccess()

Controls whether the control plane's private endpoint is accessible from sources in other regions. It is invalid to specify both PrivateClusterMasterGlobalAccessConfig.enabled and this field at the same time.

optional bool global_access = 3;

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivateEndpoint()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clearPrivateEndpoint()

Output only. The internal IP address of this cluster's control plane. Only populated if enabled.

string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

clearPrivateEndpointSubnetwork()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clearPrivateEndpointSubnetwork()

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format. It is invalid to specify both [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the same time.

string private_endpoint_subnetwork = 7;

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

clearPublicEndpoint()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clearPublicEndpoint()

Output only. The external IP address of this cluster's control plane. Only populated if enabled.

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

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

clone()

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder clone()
Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder
Overrides

getAuthorizedNetworksConfig()

public MasterAuthorizedNetworksConfig getAuthorizedNetworksConfig()

Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.

.google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4;

Returns
Type Description
MasterAuthorizedNetworksConfig

The authorizedNetworksConfig.

getAuthorizedNetworksConfigBuilder()

public MasterAuthorizedNetworksConfig.Builder getAuthorizedNetworksConfigBuilder()

Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.

.google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4;

Returns
Type Description
MasterAuthorizedNetworksConfig.Builder

getAuthorizedNetworksConfigOrBuilder()

public MasterAuthorizedNetworksConfigOrBuilder getAuthorizedNetworksConfigOrBuilder()

Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.

.google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4;

Returns
Type Description
MasterAuthorizedNetworksConfigOrBuilder

getDefaultInstanceForType()

public ControlPlaneEndpointsConfig.IPEndpointsConfig getDefaultInstanceForType()
Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig

getDescriptorForType()

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

getEnablePublicEndpoint()

public boolean getEnablePublicEndpoint()

Controls whether the control plane allows access through a public IP. It is invalid to specify both [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same time.

optional bool enable_public_endpoint = 2;

Returns
Type Description
boolean

The enablePublicEndpoint.

getEnabled()

public boolean getEnabled()

Controls whether to allow direct IP access.

optional bool enabled = 1;

Returns
Type Description
boolean

The enabled.

getGlobalAccess()

public boolean getGlobalAccess()

Controls whether the control plane's private endpoint is accessible from sources in other regions. It is invalid to specify both PrivateClusterMasterGlobalAccessConfig.enabled and this field at the same time.

optional bool global_access = 3;

Returns
Type Description
boolean

The globalAccess.

getPrivateEndpoint()

public String getPrivateEndpoint()

Output only. The internal IP address of this cluster's control plane. Only populated if enabled.

string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The privateEndpoint.

getPrivateEndpointBytes()

public ByteString getPrivateEndpointBytes()

Output only. The internal IP address of this cluster's control plane. Only populated if enabled.

string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

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. It is invalid to specify both [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the same time.

string private_endpoint_subnetwork = 7;

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. It is invalid to specify both [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the same time.

string private_endpoint_subnetwork = 7;

Returns
Type Description
ByteString

The bytes for privateEndpointSubnetwork.

getPublicEndpoint()

public String getPublicEndpoint()

Output only. The external IP address of this cluster's control plane. Only populated if enabled.

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

Returns
Type Description
String

The publicEndpoint.

getPublicEndpointBytes()

public ByteString getPublicEndpointBytes()

Output only. The external IP address of this cluster's control plane. Only populated if enabled.

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

Returns
Type Description
ByteString

The bytes for publicEndpoint.

hasAuthorizedNetworksConfig()

public boolean hasAuthorizedNetworksConfig()

Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.

.google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4;

Returns
Type Description
boolean

Whether the authorizedNetworksConfig field is set.

hasEnablePublicEndpoint()

public boolean hasEnablePublicEndpoint()

Controls whether the control plane allows access through a public IP. It is invalid to specify both [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same time.

optional bool enable_public_endpoint = 2;

Returns
Type Description
boolean

Whether the enablePublicEndpoint field is set.

hasEnabled()

public boolean hasEnabled()

Controls whether to allow direct IP access.

optional bool enabled = 1;

Returns
Type Description
boolean

Whether the enabled field is set.

hasGlobalAccess()

public boolean hasGlobalAccess()

Controls whether the control plane's private endpoint is accessible from sources in other regions. It is invalid to specify both PrivateClusterMasterGlobalAccessConfig.enabled and this field at the same time.

optional bool global_access = 3;

Returns
Type Description
boolean

Whether the globalAccess field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder mergeAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.

.google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4;

Parameter
Name Description
value MasterAuthorizedNetworksConfig
Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

mergeFrom(ControlPlaneEndpointsConfig.IPEndpointsConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.

.google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4;

Parameter
Name Description
value MasterAuthorizedNetworksConfig
Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

setAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.Builder builderForValue)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.Builder builderForValue)

Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.

.google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4;

Parameter
Name Description
builderForValue MasterAuthorizedNetworksConfig.Builder
Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

setEnablePublicEndpoint(boolean value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setEnablePublicEndpoint(boolean value)

Controls whether the control plane allows access through a public IP. It is invalid to specify both [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same time.

optional bool enable_public_endpoint = 2;

Parameter
Name Description
value boolean

The enablePublicEndpoint to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

setEnabled(boolean value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setEnabled(boolean value)

Controls whether to allow direct IP access.

optional bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlobalAccess(boolean value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setGlobalAccess(boolean value)

Controls whether the control plane's private endpoint is accessible from sources in other regions. It is invalid to specify both PrivateClusterMasterGlobalAccessConfig.enabled and this field at the same time.

optional bool global_access = 3;

Parameter
Name Description
value boolean

The globalAccess to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

setPrivateEndpoint(String value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPrivateEndpoint(String value)

Output only. The internal IP address of this cluster's control plane. Only populated if enabled.

string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The privateEndpoint to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

setPrivateEndpointBytes(ByteString value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPrivateEndpointBytes(ByteString value)

Output only. The internal IP address of this cluster's control plane. Only populated if enabled.

string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for privateEndpoint to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

setPrivateEndpointSubnetwork(String value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPrivateEndpointSubnetwork(String value)

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format. It is invalid to specify both [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the same time.

string private_endpoint_subnetwork = 7;

Parameter
Name Description
value String

The privateEndpointSubnetwork to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

setPrivateEndpointSubnetworkBytes(ByteString value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPrivateEndpointSubnetworkBytes(ByteString value)

Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format. It is invalid to specify both [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the same time.

string private_endpoint_subnetwork = 7;

Parameter
Name Description
value ByteString

The bytes for privateEndpointSubnetwork to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

setPublicEndpoint(String value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPublicEndpoint(String value)

Output only. The external IP address of this cluster's control plane. Only populated if enabled.

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

Parameter
Name Description
value String

The publicEndpoint to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

setPublicEndpointBytes(ByteString value)

public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPublicEndpointBytes(ByteString value)

Output only. The external IP address of this cluster's control plane. Only populated if enabled.

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

Parameter
Name Description
value ByteString

The bytes for publicEndpoint to set.

Returns
Type Description
ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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