Package com.google.container.v1
Class ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
com.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder
- All Implemented Interfaces:
ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ControlPlaneEndpointsConfig.IPEndpointsConfig
public static final class ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
implements ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder
IP endpoints configuration.Protobuf type
google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Configuration of authorized networks.Controls whether to allow direct IP access.Controls whether the control plane allows access through a public IP.Controls whether the control plane's private endpoint is accessible from sources in other regions.Output only.Subnet to provision the master's private endpoint during cluster creation.Output only.Configuration of authorized networks.Configuration of authorized networks.Configuration of authorized networks.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanControls whether to allow direct IP access.booleanControls whether the control plane allows access through a public IP.booleanControls whether the control plane's private endpoint is accessible from sources in other regions.Output only.com.google.protobuf.ByteStringOutput only.Subnet to provision the master's private endpoint during cluster creation.com.google.protobuf.ByteStringSubnet to provision the master's private endpoint during cluster creation.Output only.com.google.protobuf.ByteStringOutput only.booleanConfiguration of authorized networks.booleanControls whether to allow direct IP access.booleanControls whether the control plane allows access through a public IP.booleanControls whether the control plane's private endpoint is accessible from sources in other regions.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanConfiguration of authorized networks.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Configuration of authorized networks.setAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.Builder builderForValue) Configuration of authorized networks.setEnabled(boolean value) Controls whether to allow direct IP access.setEnablePublicEndpoint(boolean value) Controls whether the control plane allows access through a public IP.setGlobalAccess(boolean value) Controls whether the control plane's private endpoint is accessible from sources in other regions.setPrivateEndpoint(String value) Output only.setPrivateEndpointBytes(com.google.protobuf.ByteString value) Output only.Subnet to provision the master's private endpoint during cluster creation.setPrivateEndpointSubnetworkBytes(com.google.protobuf.ByteString value) Subnet to provision the master's private endpoint during cluster creation.setPublicEndpoint(String value) Output only.setPublicEndpointBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
-
mergeFrom
public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder mergeFrom(ControlPlaneEndpointsConfig.IPEndpointsConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
-
mergeFrom
public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>- Throws:
IOException
-
hasEnabled
public boolean hasEnabled()Controls whether to allow direct IP access.
optional bool enabled = 1;- Specified by:
hasEnabledin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public boolean getEnabled()Controls whether to allow direct IP access.
optional bool enabled = 1;- Specified by:
getEnabledin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The enabled.
-
setEnabled
Controls whether to allow direct IP access.
optional bool enabled = 1;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Controls whether to allow direct IP access.
optional bool enabled = 1;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasEnablePublicEndpointin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- Whether the enablePublicEndpoint field is set.
-
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;- Specified by:
getEnablePublicEndpointin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The enablePublicEndpoint.
-
setEnablePublicEndpoint
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;- Parameters:
value- The enablePublicEndpoint to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] and this field at the same time.
optional bool global_access = 3;- Specified by:
hasGlobalAccessin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- Whether the globalAccess field is set.
-
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][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] and this field at the same time.
optional bool global_access = 3;- Specified by:
getGlobalAccessin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The globalAccess.
-
setGlobalAccess
Controls whether the control plane's private endpoint is accessible from sources in other regions. It is invalid to specify both [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] and this field at the same time.
optional bool global_access = 3;- Parameters:
value- The globalAccess to set.- Returns:
- This builder for chaining.
-
clearGlobalAccess
Controls whether the control plane's private endpoint is accessible from sources in other regions. It is invalid to specify both [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] and this field at the same time.
optional bool global_access = 3;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasAuthorizedNetworksConfigin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- Whether the authorizedNetworksConfig field is set.
-
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;- Specified by:
getAuthorizedNetworksConfigin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The authorizedNetworksConfig.
-
setAuthorizedNetworksConfig
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; -
setAuthorizedNetworksConfig
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; -
mergeAuthorizedNetworksConfig
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; -
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; -
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; -
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;- Specified by:
getAuthorizedNetworksConfigOrBuilderin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder
-
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];- Specified by:
getPublicEndpointin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The publicEndpoint.
-
getPublicEndpointBytes
public com.google.protobuf.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];- Specified by:
getPublicEndpointBytesin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The bytes for publicEndpoint.
-
setPublicEndpoint
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];- Parameters:
value- The publicEndpoint to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPublicEndpointBytes
public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPublicEndpointBytes(com.google.protobuf.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];- Parameters:
value- The bytes for publicEndpoint to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getPrivateEndpointin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The privateEndpoint.
-
getPrivateEndpointBytes
public com.google.protobuf.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];- Specified by:
getPrivateEndpointBytesin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The bytes for privateEndpoint.
-
setPrivateEndpoint
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];- Parameters:
value- The privateEndpoint to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPrivateEndpointBytes
public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPrivateEndpointBytes(com.google.protobuf.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];- Parameters:
value- The bytes for privateEndpoint to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getPrivateEndpointSubnetworkin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The privateEndpointSubnetwork.
-
getPrivateEndpointSubnetworkBytes
public com.google.protobuf.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;- Specified by:
getPrivateEndpointSubnetworkBytesin interfaceControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder- Returns:
- The bytes for privateEndpointSubnetwork.
-
setPrivateEndpointSubnetwork
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;- Parameters:
value- The privateEndpointSubnetwork to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPrivateEndpointSubnetworkBytes
public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setPrivateEndpointSubnetworkBytes(com.google.protobuf.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;- Parameters:
value- The bytes for privateEndpointSubnetwork to set.- Returns:
- This builder for chaining.
-