Class MasterAuth.Builder (2.54.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MasterAuth.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MasterAuth.Builder
Overrides

build()

public MasterAuth build()
Returns
Type Description
MasterAuth

buildPartial()

public MasterAuth buildPartial()
Returns
Type Description
MasterAuth

clear()

public MasterAuth.Builder clear()
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MasterAuth.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MasterAuth.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MasterAuth.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MasterAuth.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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=1231

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
Type Description
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=1220

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
Type Description
MasterAuth.Builder

This builder for chaining.

clone()

public MasterAuth.Builder clone()
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ClientCertificateConfigOrBuilder

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

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clusterCaCertificate.

getDefaultInstanceForType()

public MasterAuth getDefaultInstanceForType()
Returns
Type Description
MasterAuth

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPassword() (deprecated)

public String getPassword()

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

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
Type Description
String

The password.

getPasswordBytes() (deprecated)

public ByteString getPasswordBytes()

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

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
Type Description
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=1220

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
Type Description
String

The username.

getUsernameBytes() (deprecated)

public ByteString getUsernameBytes()

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

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
Type Description
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
Type Description
boolean

Whether the clientCertificateConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value ClientCertificateConfig
Returns
Type Description
MasterAuth.Builder

mergeFrom(MasterAuth other)

public MasterAuth.Builder mergeFrom(MasterAuth other)
Parameter
Name Description
other MasterAuth
Returns
Type Description
MasterAuth.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MasterAuth.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MasterAuth.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MasterAuth.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MasterAuth.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MasterAuth.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clientCertificate to set.

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clientCertificate to set.

Returns
Type Description
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
Name Description
value ClientCertificateConfig
Returns
Type Description
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
Name Description
builderForValue ClientCertificateConfig.Builder
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clientKey to set.

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clientKey to set.

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clusterCaCertificate to set.

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clusterCaCertificate to set.

Returns
Type Description
MasterAuth.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MasterAuth.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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=1231

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
Name Description
value String

The password to set.

Returns
Type Description
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=1231

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
Name Description
value ByteString

The bytes for password to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MasterAuth.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MasterAuth.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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=1220

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
Name Description
value String

The username to set.

Returns
Type Description
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=1220

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
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
MasterAuth.Builder

This builder for chaining.