Class MasterAuth.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MasterAuth.Builder>
com.google.container.v1.MasterAuth.Builder
All Implemented Interfaces:
MasterAuthOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MasterAuth

public static final class MasterAuth.Builder extends com.google.protobuf.GeneratedMessage.Builder<MasterAuth.Builder> implements MasterAuthOrBuilder
 The authentication information for accessing the master endpoint.
 Authentication can be done using HTTP basic auth or using client
 certificates.
 
Protobuf type google.container.v1.MasterAuth
  • 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<MasterAuth.Builder>
    • clear

      public MasterAuth.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<MasterAuth.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<MasterAuth.Builder>
    • getDefaultInstanceForType

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

      public MasterAuth build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MasterAuth buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MasterAuth.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<MasterAuth.Builder>
    • mergeFrom

      public MasterAuth.Builder mergeFrom(MasterAuth other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MasterAuth.Builder>
    • mergeFrom

      public MasterAuth.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<MasterAuth.Builder>
      Throws:
      IOException
    • getUsername

      @Deprecated public String getUsername()
      Deprecated.
      google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187
       The username to use for HTTP basic authentication to the master endpoint.
       For clusters v1.6.0 and later, basic authentication can be disabled by
       leaving username unspecified (or setting it to the empty string).
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string username = 1 [deprecated = true];
      Specified by:
      getUsername in interface MasterAuthOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      @Deprecated public com.google.protobuf.ByteString getUsernameBytes()
      Deprecated.
      google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187
       The username to use for HTTP basic authentication to the master endpoint.
       For clusters v1.6.0 and later, basic authentication can be disabled by
       leaving username unspecified (or setting it to the empty string).
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string username = 1 [deprecated = true];
      Specified by:
      getUsernameBytes in interface MasterAuthOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      @Deprecated public MasterAuth.Builder setUsername(String value)
      Deprecated.
      google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187
       The username to use for HTTP basic authentication to the master endpoint.
       For clusters v1.6.0 and later, basic authentication can be disabled by
       leaving username unspecified (or setting it to the empty string).
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string username = 1 [deprecated = true];
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      @Deprecated public MasterAuth.Builder clearUsername()
      Deprecated.
      google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187
       The username to use for HTTP basic authentication to the master endpoint.
       For clusters v1.6.0 and later, basic authentication can be disabled by
       leaving username unspecified (or setting it to the empty string).
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string username = 1 [deprecated = true];
      Returns:
      This builder for chaining.
    • setUsernameBytes

      @Deprecated public MasterAuth.Builder setUsernameBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187
       The username to use for HTTP basic authentication to the master endpoint.
       For clusters v1.6.0 and later, basic authentication can be disabled by
       leaving username unspecified (or setting it to the empty string).
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string username = 1 [deprecated = true];
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.
    • getPassword

      @Deprecated public String getPassword()
      Deprecated.
      google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198
       The password to use for HTTP basic authentication to the master endpoint.
       Because the master endpoint is open to the Internet, you should create a
       strong password.  If a password is provided for cluster creation, username
       must be non-empty.
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string password = 2 [deprecated = true];
      Specified by:
      getPassword in interface MasterAuthOrBuilder
      Returns:
      The password.
    • getPasswordBytes

      @Deprecated public com.google.protobuf.ByteString getPasswordBytes()
      Deprecated.
      google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198
       The password to use for HTTP basic authentication to the master endpoint.
       Because the master endpoint is open to the Internet, you should create a
       strong password.  If a password is provided for cluster creation, username
       must be non-empty.
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string password = 2 [deprecated = true];
      Specified by:
      getPasswordBytes in interface MasterAuthOrBuilder
      Returns:
      The bytes for password.
    • setPassword

      @Deprecated public MasterAuth.Builder setPassword(String value)
      Deprecated.
      google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198
       The password to use for HTTP basic authentication to the master endpoint.
       Because the master endpoint is open to the Internet, you should create a
       strong password.  If a password is provided for cluster creation, username
       must be non-empty.
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string password = 2 [deprecated = true];
      Parameters:
      value - The password to set.
      Returns:
      This builder for chaining.
    • clearPassword

      @Deprecated public MasterAuth.Builder clearPassword()
      Deprecated.
      google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198
       The password to use for HTTP basic authentication to the master endpoint.
       Because the master endpoint is open to the Internet, you should create a
       strong password.  If a password is provided for cluster creation, username
       must be non-empty.
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string password = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setPasswordBytes

      @Deprecated public MasterAuth.Builder setPasswordBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198
       The password to use for HTTP basic authentication to the master endpoint.
       Because the master endpoint is open to the Internet, you should create a
       strong password.  If a password is provided for cluster creation, username
       must be non-empty.
      
       Warning: basic authentication is deprecated, and will be removed in GKE
       control plane versions 1.19 and newer. For a list of recommended
       authentication methods, see:
       https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
       
      string password = 2 [deprecated = true];
      Parameters:
      value - The bytes for password to set.
      Returns:
      This builder for chaining.
    • hasClientCertificateConfig

      public boolean hasClientCertificateConfig()
       Configuration for client certificate authentication on the cluster. For
       clusters before v1.12, if no configuration is specified, a client
       certificate is issued.
       
      .google.container.v1.ClientCertificateConfig client_certificate_config = 3;
      Specified by:
      hasClientCertificateConfig in interface MasterAuthOrBuilder
      Returns:
      Whether the clientCertificateConfig field is set.
    • getClientCertificateConfig

      public ClientCertificateConfig getClientCertificateConfig()
       Configuration for client certificate authentication on the cluster. For
       clusters before v1.12, if no configuration is specified, a client
       certificate is issued.
       
      .google.container.v1.ClientCertificateConfig client_certificate_config = 3;
      Specified by:
      getClientCertificateConfig in interface MasterAuthOrBuilder
      Returns:
      The clientCertificateConfig.
    • setClientCertificateConfig

      public MasterAuth.Builder setClientCertificateConfig(ClientCertificateConfig value)
       Configuration for client certificate authentication on the cluster. For
       clusters before v1.12, if no configuration is specified, a client
       certificate is issued.
       
      .google.container.v1.ClientCertificateConfig client_certificate_config = 3;
    • setClientCertificateConfig

      public MasterAuth.Builder setClientCertificateConfig(ClientCertificateConfig.Builder builderForValue)
       Configuration for client certificate authentication on the cluster. For
       clusters before v1.12, if no configuration is specified, a client
       certificate is issued.
       
      .google.container.v1.ClientCertificateConfig client_certificate_config = 3;
    • mergeClientCertificateConfig

      public MasterAuth.Builder mergeClientCertificateConfig(ClientCertificateConfig value)
       Configuration for client certificate authentication on the cluster. For
       clusters before v1.12, if no configuration is specified, a client
       certificate is issued.
       
      .google.container.v1.ClientCertificateConfig client_certificate_config = 3;
    • clearClientCertificateConfig

      public MasterAuth.Builder clearClientCertificateConfig()
       Configuration for client certificate authentication on the cluster. For
       clusters before v1.12, if no configuration is specified, a client
       certificate is issued.
       
      .google.container.v1.ClientCertificateConfig client_certificate_config = 3;
    • getClientCertificateConfigBuilder

      public ClientCertificateConfig.Builder getClientCertificateConfigBuilder()
       Configuration for client certificate authentication on the cluster. For
       clusters before v1.12, if no configuration is specified, a client
       certificate is issued.
       
      .google.container.v1.ClientCertificateConfig client_certificate_config = 3;
    • getClientCertificateConfigOrBuilder

      public ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder()
       Configuration for client certificate authentication on the cluster. For
       clusters before v1.12, if no configuration is specified, a client
       certificate is issued.
       
      .google.container.v1.ClientCertificateConfig client_certificate_config = 3;
      Specified by:
      getClientCertificateConfigOrBuilder in interface MasterAuthOrBuilder
    • getClusterCaCertificate

      public String getClusterCaCertificate()
       Output only. Base64-encoded public certificate that is the root of
       trust for the cluster.
       
      string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClusterCaCertificate in interface MasterAuthOrBuilder
      Returns:
      The clusterCaCertificate.
    • getClusterCaCertificateBytes

      public com.google.protobuf.ByteString getClusterCaCertificateBytes()
       Output only. Base64-encoded public certificate that is the root of
       trust for the cluster.
       
      string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClusterCaCertificateBytes in interface MasterAuthOrBuilder
      Returns:
      The bytes for clusterCaCertificate.
    • setClusterCaCertificate

      public MasterAuth.Builder setClusterCaCertificate(String value)
       Output only. Base64-encoded public certificate that is the root of
       trust for the cluster.
       
      string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The clusterCaCertificate to set.
      Returns:
      This builder for chaining.
    • clearClusterCaCertificate

      public MasterAuth.Builder clearClusterCaCertificate()
       Output only. Base64-encoded public certificate that is the root of
       trust for the cluster.
       
      string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setClusterCaCertificateBytes

      public MasterAuth.Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value)
       Output only. Base64-encoded public certificate that is the root of
       trust for the cluster.
       
      string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for clusterCaCertificate to set.
      Returns:
      This builder for chaining.
    • getClientCertificate

      public String getClientCertificate()
       Output only. Base64-encoded public certificate used by clients to
       authenticate to the cluster endpoint. Issued only if
       client_certificate_config is set.
       
      string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClientCertificate in interface MasterAuthOrBuilder
      Returns:
      The clientCertificate.
    • getClientCertificateBytes

      public com.google.protobuf.ByteString getClientCertificateBytes()
       Output only. Base64-encoded public certificate used by clients to
       authenticate to the cluster endpoint. Issued only if
       client_certificate_config is set.
       
      string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClientCertificateBytes in interface MasterAuthOrBuilder
      Returns:
      The bytes for clientCertificate.
    • setClientCertificate

      public MasterAuth.Builder setClientCertificate(String value)
       Output only. Base64-encoded public certificate used by clients to
       authenticate to the cluster endpoint. Issued only if
       client_certificate_config is set.
       
      string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The clientCertificate to set.
      Returns:
      This builder for chaining.
    • clearClientCertificate

      public MasterAuth.Builder clearClientCertificate()
       Output only. Base64-encoded public certificate used by clients to
       authenticate to the cluster endpoint. Issued only if
       client_certificate_config is set.
       
      string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setClientCertificateBytes

      public MasterAuth.Builder setClientCertificateBytes(com.google.protobuf.ByteString value)
       Output only. Base64-encoded public certificate used by clients to
       authenticate to the cluster endpoint. Issued only if
       client_certificate_config is set.
       
      string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for clientCertificate to set.
      Returns:
      This builder for chaining.
    • getClientKey

      public String getClientKey()
       Output only. Base64-encoded private key used by clients to authenticate
       to the cluster endpoint.
       
      string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClientKey in interface MasterAuthOrBuilder
      Returns:
      The clientKey.
    • getClientKeyBytes

      public com.google.protobuf.ByteString getClientKeyBytes()
       Output only. Base64-encoded private key used by clients to authenticate
       to the cluster endpoint.
       
      string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClientKeyBytes in interface MasterAuthOrBuilder
      Returns:
      The bytes for clientKey.
    • setClientKey

      public MasterAuth.Builder setClientKey(String value)
       Output only. Base64-encoded private key used by clients to authenticate
       to the cluster endpoint.
       
      string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The clientKey to set.
      Returns:
      This builder for chaining.
    • clearClientKey

      public MasterAuth.Builder clearClientKey()
       Output only. Base64-encoded private key used by clients to authenticate
       to the cluster endpoint.
       
      string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setClientKeyBytes

      public MasterAuth.Builder setClientKeyBytes(com.google.protobuf.ByteString value)
       Output only. Base64-encoded private key used by clients to authenticate
       to the cluster endpoint.
       
      string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for clientKey to set.
      Returns:
      This builder for chaining.