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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
    • getDefaultInstanceForType

      public ControlPlaneEndpointsConfig.IPEndpointsConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasEnabled in interface ControlPlaneEndpointsConfig.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:
      getEnabled in interface ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public ControlPlaneEndpointsConfig.IPEndpointsConfig.Builder setEnabled(boolean value)
       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:
      hasEnablePublicEndpoint in interface ControlPlaneEndpointsConfig.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:
      getEnablePublicEndpoint in interface ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder
      Returns:
      The enablePublicEndpoint.
    • setEnablePublicEndpoint

      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;
      Parameters:
      value - The enablePublicEndpoint to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasGlobalAccess in interface ControlPlaneEndpointsConfig.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:
      getGlobalAccess in interface ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder
      Returns:
      The globalAccess.
    • setGlobalAccess

      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][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:
      hasAuthorizedNetworksConfig in interface ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder
      Returns:
      Whether the authorizedNetworksConfig field is set.
    • 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;
      Specified by:
      getAuthorizedNetworksConfig in interface ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder
      Returns:
      The authorizedNetworksConfig.
    • setAuthorizedNetworksConfig

       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

       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

       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

      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;
    • 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;
    • 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;
      Specified by:
      getAuthorizedNetworksConfigOrBuilder in interface ControlPlaneEndpointsConfig.IPEndpointsConfigOrBuilder
    • 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];
      Specified by:
      getPublicEndpoint in interface ControlPlaneEndpointsConfig.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:
      getPublicEndpointBytes in interface ControlPlaneEndpointsConfig.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

      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];
      Specified by:
      getPrivateEndpoint in interface ControlPlaneEndpointsConfig.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:
      getPrivateEndpointBytes in interface ControlPlaneEndpointsConfig.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

      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;
      Specified by:
      getPrivateEndpointSubnetwork in interface ControlPlaneEndpointsConfig.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:
      getPrivateEndpointSubnetworkBytes in interface ControlPlaneEndpointsConfig.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

      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:
      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.