Class MasterAuth.Builder (2.35.0)

public static final class MasterAuth.Builder extends 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

Implements

MasterAuthOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MasterAuth.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MasterAuth.Builder
Overrides

build()

public MasterAuth build()
Returns
TypeDescription
MasterAuth

buildPartial()

public MasterAuth buildPartial()
Returns
TypeDescription
MasterAuth

clear()

public MasterAuth.Builder clear()
Returns
TypeDescription
MasterAuth.Builder
Overrides

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
TypeDescription
MasterAuth.Builder

This builder for chaining.

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;

Returns
TypeDescription
MasterAuth.Builder

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
TypeDescription
MasterAuth.Builder

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
TypeDescription
MasterAuth.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MasterAuth.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MasterAuth.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MasterAuth.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MasterAuth.Builder
Overrides

clearPassword() (deprecated)

public MasterAuth.Builder clearPassword()

Deprecated. google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=1155

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
TypeDescription
MasterAuth.Builder

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=1144

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
TypeDescription
MasterAuth.Builder

This builder for chaining.

clone()

public MasterAuth.Builder clone()
Returns
TypeDescription
MasterAuth.Builder
Overrides

getClientCertificate()

public String getClientCertificate()

[Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.

string client_certificate = 101;

Returns
TypeDescription
String

The clientCertificate.

getClientCertificateBytes()

public ByteString getClientCertificateBytes()

[Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.

string client_certificate = 101;

Returns
TypeDescription
ByteString

The bytes for clientCertificate.

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;

Returns
TypeDescription
ClientCertificateConfig

The clientCertificateConfig.

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;

Returns
TypeDescription
ClientCertificateConfig.Builder

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;

Returns
TypeDescription
ClientCertificateConfigOrBuilder

getClientKey()

public String getClientKey()

[Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.

string client_key = 102;

Returns
TypeDescription
String

The clientKey.

getClientKeyBytes()

public ByteString getClientKeyBytes()

[Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.

string client_key = 102;

Returns
TypeDescription
ByteString

The bytes for clientKey.

getClusterCaCertificate()

public String getClusterCaCertificate()

[Output only] Base64-encoded public certificate that is the root of trust for the cluster.

string cluster_ca_certificate = 100;

Returns
TypeDescription
String

The clusterCaCertificate.

getClusterCaCertificateBytes()

public ByteString getClusterCaCertificateBytes()

[Output only] Base64-encoded public certificate that is the root of trust for the cluster.

string cluster_ca_certificate = 100;

Returns
TypeDescription
ByteString

The bytes for clusterCaCertificate.

getDefaultInstanceForType()

public MasterAuth getDefaultInstanceForType()
Returns
TypeDescription
MasterAuth

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPassword() (deprecated)

public String getPassword()

Deprecated. google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=1155

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
TypeDescription
String

The password.

getPasswordBytes() (deprecated)

public ByteString getPasswordBytes()

Deprecated. google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=1155

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
TypeDescription
ByteString

The bytes for password.

getUsername() (deprecated)

public String getUsername()

Deprecated. google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=1144

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
TypeDescription
String

The username.

getUsernameBytes() (deprecated)

public ByteString getUsernameBytes()

Deprecated. google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=1144

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
TypeDescription
ByteString

The bytes for username.

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;

Returns
TypeDescription
boolean

Whether the clientCertificateConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeClientCertificateConfig(ClientCertificateConfig value)

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;

Parameter
NameDescription
valueClientCertificateConfig
Returns
TypeDescription
MasterAuth.Builder

mergeFrom(MasterAuth other)

public MasterAuth.Builder mergeFrom(MasterAuth other)
Parameter
NameDescription
otherMasterAuth
Returns
TypeDescription
MasterAuth.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MasterAuth.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuth.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MasterAuth.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MasterAuth.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MasterAuth.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MasterAuth.Builder
Overrides

setClientCertificate(String value)

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;

Parameter
NameDescription
valueString

The clientCertificate to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

setClientCertificateBytes(ByteString value)

public MasterAuth.Builder setClientCertificateBytes(ByteString value)

[Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.

string client_certificate = 101;

Parameter
NameDescription
valueByteString

The bytes for clientCertificate to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

setClientCertificateConfig(ClientCertificateConfig value)

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;

Parameter
NameDescription
valueClientCertificateConfig
Returns
TypeDescription
MasterAuth.Builder

setClientCertificateConfig(ClientCertificateConfig.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueClientCertificateConfig.Builder
Returns
TypeDescription
MasterAuth.Builder

setClientKey(String value)

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;

Parameter
NameDescription
valueString

The clientKey to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

setClientKeyBytes(ByteString value)

public MasterAuth.Builder setClientKeyBytes(ByteString value)

[Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.

string client_key = 102;

Parameter
NameDescription
valueByteString

The bytes for clientKey to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

setClusterCaCertificate(String value)

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;

Parameter
NameDescription
valueString

The clusterCaCertificate to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

setClusterCaCertificateBytes(ByteString value)

public MasterAuth.Builder setClusterCaCertificateBytes(ByteString value)

[Output only] Base64-encoded public certificate that is the root of trust for the cluster.

string cluster_ca_certificate = 100;

Parameter
NameDescription
valueByteString

The bytes for clusterCaCertificate to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MasterAuth.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MasterAuth.Builder
Overrides

setPassword(String value) (deprecated)

public MasterAuth.Builder setPassword(String value)

Deprecated. google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=1155

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];

Parameter
NameDescription
valueString

The password to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

setPasswordBytes(ByteString value) (deprecated)

public MasterAuth.Builder setPasswordBytes(ByteString value)

Deprecated. google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=1155

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];

Parameter
NameDescription
valueByteString

The bytes for password to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

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

public MasterAuth.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MasterAuth.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MasterAuth.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MasterAuth.Builder
Overrides

setUsername(String value) (deprecated)

public MasterAuth.Builder setUsername(String value)

Deprecated. google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=1144

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];

Parameter
NameDescription
valueString

The username to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.

setUsernameBytes(ByteString value) (deprecated)

public MasterAuth.Builder setUsernameBytes(ByteString value)

Deprecated. google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=1144

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];

Parameter
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
MasterAuth.Builder

This builder for chaining.