Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public MasterAuth.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MasterAuth.Builder>
      • setField

        public MasterAuth.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MasterAuth.Builder>
      • clearField

        public MasterAuth.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MasterAuth.Builder>
      • clearOneof

        public MasterAuth.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MasterAuth.Builder>
      • setRepeatedField

        public MasterAuth.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MasterAuth.Builder>
      • addRepeatedField

        public MasterAuth.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MasterAuth.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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=1141
         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=1141
         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=1141
         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=1141
         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=1141
         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=1152
         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=1152
         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=1152
         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=1152
         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=1152
         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;
        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;
        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;
        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;
        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;
        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.
         
        string client_certificate = 101;
        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.
         
        string client_certificate = 101;
        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.
         
        string client_certificate = 101;
        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.
         
        string client_certificate = 101;
        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.
         
        string client_certificate = 101;
        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;
        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;
        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;
        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;
        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;
        Parameters:
        value - The bytes for clientKey to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MasterAuth.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MasterAuth.Builder>
      • mergeUnknownFields

        public final MasterAuth.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MasterAuth.Builder>