Class MasterAuth (2.36.0)

public final class MasterAuth extends GeneratedMessageV3 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.v1beta1.MasterAuth

Implements

MasterAuthOrBuilder

Static Fields

CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER

public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

CLIENT_CERTIFICATE_FIELD_NUMBER

public static final int CLIENT_CERTIFICATE_FIELD_NUMBER
Field Value
TypeDescription
int

CLIENT_KEY_FIELD_NUMBER

public static final int CLIENT_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_CA_CERTIFICATE_FIELD_NUMBER

public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER
Field Value
TypeDescription
int

PASSWORD_FIELD_NUMBER

public static final int PASSWORD_FIELD_NUMBER
Field Value
TypeDescription
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MasterAuth getDefaultInstance()
Returns
TypeDescription
MasterAuth

getDescriptor()

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

newBuilder()

public static MasterAuth.Builder newBuilder()
Returns
TypeDescription
MasterAuth.Builder

newBuilder(MasterAuth prototype)

public static MasterAuth.Builder newBuilder(MasterAuth prototype)
Parameter
NameDescription
prototypeMasterAuth
Returns
TypeDescription
MasterAuth.Builder

parseDelimitedFrom(InputStream input)

public static MasterAuth parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MasterAuth parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MasterAuth parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MasterAuth parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MasterAuth parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MasterAuth parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MasterAuth parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MasterAuth parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MasterAuth parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MasterAuth parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MasterAuth parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MasterAuth parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuth
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MasterAuth> parser()
Returns
TypeDescription
Parser<MasterAuth>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.v1beta1.ClientCertificateConfig client_certificate_config = 3;

Returns
TypeDescription
ClientCertificateConfig

The clientCertificateConfig.

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.v1beta1.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()

string cluster_ca_certificate = 100;

Returns
TypeDescription
String

The clusterCaCertificate.

getClusterCaCertificateBytes()

public ByteString getClusterCaCertificateBytes()

string cluster_ca_certificate = 100;

Returns
TypeDescription
ByteString

The bytes for clusterCaCertificate.

getDefaultInstanceForType()

public MasterAuth getDefaultInstanceForType()
Returns
TypeDescription
MasterAuth

getParserForType()

public Parser<MasterAuth> getParserForType()
Returns
TypeDescription
Parser<MasterAuth>
Overrides

getPassword() (deprecated)

public String getPassword()

Deprecated. google.container.v1beta1.MasterAuth.password is deprecated. See google/container/v1beta1/cluster_service.proto;l=1293

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.v1beta1.MasterAuth.password is deprecated. See google/container/v1beta1/cluster_service.proto;l=1293

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUsername() (deprecated)

public String getUsername()

Deprecated. google.container.v1beta1.MasterAuth.username is deprecated. See google/container/v1beta1/cluster_service.proto;l=1282

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.v1beta1.MasterAuth.username is deprecated. See google/container/v1beta1/cluster_service.proto;l=1282

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.v1beta1.ClientCertificateConfig client_certificate_config = 3;

Returns
TypeDescription
boolean

Whether the clientCertificateConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MasterAuth.Builder newBuilderForType()
Returns
TypeDescription
MasterAuth.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MasterAuth.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MasterAuth.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MasterAuth.Builder toBuilder()
Returns
TypeDescription
MasterAuth.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException