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.v1.MasterAuth
Modifier and Type | Class and Description |
---|---|
static class |
MasterAuth.Builder
The authentication information for accessing the master endpoint.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER |
static int |
CLIENT_CERTIFICATE_FIELD_NUMBER |
static int |
CLIENT_KEY_FIELD_NUMBER |
static int |
CLUSTER_CA_CERTIFICATE_FIELD_NUMBER |
static int |
PASSWORD_FIELD_NUMBER |
static int |
USERNAME_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientCertificate()
[Output only] Base64-encoded public certificate used by clients to
authenticate to the cluster endpoint.
|
ByteString |
getClientCertificateBytes()
[Output only] Base64-encoded public certificate used by clients to
authenticate to the cluster endpoint.
|
ClientCertificateConfig |
getClientCertificateConfig()
Configuration for client certificate authentication on the cluster.
|
ClientCertificateConfigOrBuilder |
getClientCertificateConfigOrBuilder()
Configuration for client certificate authentication on the cluster.
|
java.lang.String |
getClientKey()
[Output only] Base64-encoded private key used by clients to authenticate
to the cluster endpoint.
|
ByteString |
getClientKeyBytes()
[Output only] Base64-encoded private key used by clients to authenticate
to the cluster endpoint.
|
java.lang.String |
getClusterCaCertificate()
[Output only] Base64-encoded public certificate that is the root of
trust for the cluster.
|
ByteString |
getClusterCaCertificateBytes()
[Output only] Base64-encoded public certificate that is the root of
trust for the cluster.
|
static MasterAuth |
getDefaultInstance() |
MasterAuth |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<MasterAuth> |
getParserForType() |
java.lang.String |
getPassword()
The password to use for HTTP basic authentication to the master endpoint.
|
ByteString |
getPasswordBytes()
The password to use for HTTP basic authentication to the master endpoint.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getUsername()
The username to use for HTTP basic authentication to the master endpoint.
|
ByteString |
getUsernameBytes()
The username to use for HTTP basic authentication to the master endpoint.
|
boolean |
hasClientCertificateConfig()
Configuration for client certificate authentication on the cluster.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MasterAuth.Builder |
newBuilder() |
static MasterAuth.Builder |
newBuilder(MasterAuth prototype) |
MasterAuth.Builder |
newBuilderForType() |
protected MasterAuth.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static MasterAuth |
parseDelimitedFrom(java.io.InputStream input) |
static MasterAuth |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static MasterAuth |
parseFrom(byte[] data) |
static MasterAuth |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static MasterAuth |
parseFrom(java.nio.ByteBuffer data) |
static MasterAuth |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static MasterAuth |
parseFrom(ByteString data) |
static MasterAuth |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static MasterAuth |
parseFrom(CodedInputStream input) |
static MasterAuth |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static MasterAuth |
parseFrom(java.io.InputStream input) |
static MasterAuth |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<MasterAuth> |
parser() |
MasterAuth.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int USERNAME_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER
public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER
public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER
public static final int CLIENT_CERTIFICATE_FIELD_NUMBER
public static final int CLIENT_KEY_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getUsername()
The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, you can disable basic authentication by providing an empty username.
string username = 1;
getUsername
in interface MasterAuthOrBuilder
public ByteString getUsernameBytes()
The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, you can disable basic authentication by providing an empty username.
string username = 1;
getUsernameBytes
in interface MasterAuthOrBuilder
public java.lang.String getPassword()
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.
string password = 2;
getPassword
in interface MasterAuthOrBuilder
public ByteString getPasswordBytes()
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.
string password = 2;
getPasswordBytes
in interface MasterAuthOrBuilder
public boolean hasClientCertificateConfig()
Configuration for client certificate authentication on the cluster. If no configuration is specified, a client certificate is issued.
.google.container.v1.ClientCertificateConfig client_certificate_config = 3;
hasClientCertificateConfig
in interface MasterAuthOrBuilder
public ClientCertificateConfig getClientCertificateConfig()
Configuration for client certificate authentication on the cluster. If no configuration is specified, a client certificate is issued.
.google.container.v1.ClientCertificateConfig client_certificate_config = 3;
getClientCertificateConfig
in interface MasterAuthOrBuilder
public ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder()
Configuration for client certificate authentication on the cluster. If no configuration is specified, a client certificate is issued.
.google.container.v1.ClientCertificateConfig client_certificate_config = 3;
getClientCertificateConfigOrBuilder
in interface MasterAuthOrBuilder
public java.lang.String getClusterCaCertificate()
[Output only] Base64-encoded public certificate that is the root of trust for the cluster.
string cluster_ca_certificate = 100;
getClusterCaCertificate
in interface MasterAuthOrBuilder
public ByteString getClusterCaCertificateBytes()
[Output only] Base64-encoded public certificate that is the root of trust for the cluster.
string cluster_ca_certificate = 100;
getClusterCaCertificateBytes
in interface MasterAuthOrBuilder
public java.lang.String getClientCertificate()
[Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
string client_certificate = 101;
getClientCertificate
in interface MasterAuthOrBuilder
public ByteString getClientCertificateBytes()
[Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
string client_certificate = 101;
getClientCertificateBytes
in interface MasterAuthOrBuilder
public java.lang.String getClientKey()
[Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.
string client_key = 102;
getClientKey
in interface MasterAuthOrBuilder
public ByteString getClientKeyBytes()
[Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.
string client_key = 102;
getClientKeyBytes
in interface MasterAuthOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static MasterAuth parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuth parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuth parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuth parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuth parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuth parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuth parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MasterAuth parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MasterAuth parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MasterAuth parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MasterAuth parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static MasterAuth parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public MasterAuth.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static MasterAuth.Builder newBuilder()
public static MasterAuth.Builder newBuilder(MasterAuth prototype)
public MasterAuth.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected MasterAuth.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static MasterAuth getDefaultInstance()
public static Parser<MasterAuth> parser()
public Parser<MasterAuth> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public MasterAuth getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder