Package com.google.container.v1
Class MasterAuth.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MasterAuth.Builder>
com.google.container.v1.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.GeneratedMessage.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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Configuration for client certificate authentication on the cluster.Output only.Output only.Deprecated.google.container.v1.MasterAuth.password is deprecated.Deprecated.google.container.v1.MasterAuth.username is deprecated.Output only.com.google.protobuf.ByteStringOutput only.Configuration for client certificate authentication on the cluster.Configuration for client certificate authentication on the cluster.Configuration for client certificate authentication on the cluster.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.google.container.v1.MasterAuth.password is deprecated.com.google.protobuf.ByteStringDeprecated.google.container.v1.MasterAuth.password is deprecated.Deprecated.google.container.v1.MasterAuth.username is deprecated.com.google.protobuf.ByteStringDeprecated.google.container.v1.MasterAuth.username is deprecated.booleanConfiguration for client certificate authentication on the cluster.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanConfiguration for client certificate authentication on the cluster.mergeFrom(MasterAuth other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setClientCertificate(String value) Output only.setClientCertificateBytes(com.google.protobuf.ByteString value) Output only.Configuration for client certificate authentication on the cluster.setClientCertificateConfig(ClientCertificateConfig.Builder builderForValue) Configuration for client certificate authentication on the cluster.setClientKey(String value) Output only.setClientKeyBytes(com.google.protobuf.ByteString value) Output only.setClusterCaCertificate(String value) Output only.setClusterCaCertificateBytes(com.google.protobuf.ByteString value) Output only.setPassword(String value) Deprecated.google.container.v1.MasterAuth.password is deprecated.setPasswordBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.MasterAuth.password is deprecated.setUsername(String value) Deprecated.google.container.v1.MasterAuth.username is deprecated.setUsernameBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.MasterAuth.username is deprecated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MasterAuth.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MasterAuth.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MasterAuth.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MasterAuth.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MasterAuth.Builder>
-
mergeFrom
public MasterAuth.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MasterAuth.Builder>- Throws:
IOException
-
getUsername
Deprecated.google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187The 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:
getUsernamein interfaceMasterAuthOrBuilder- Returns:
- The username.
-
getUsernameBytes
Deprecated.google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187The 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:
getUsernameBytesin interfaceMasterAuthOrBuilder- Returns:
- The bytes for username.
-
setUsername
Deprecated.google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187The 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.google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187The 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.google.container.v1.MasterAuth.username is deprecated. See google/container/v1/cluster_service.proto;l=2187The 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.google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198The 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:
getPasswordin interfaceMasterAuthOrBuilder- Returns:
- The password.
-
getPasswordBytes
Deprecated.google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198The 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:
getPasswordBytesin interfaceMasterAuthOrBuilder- Returns:
- The bytes for password.
-
setPassword
Deprecated.google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198The 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.google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198The 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.google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=2198The 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:
hasClientCertificateConfigin interfaceMasterAuthOrBuilder- Returns:
- Whether the clientCertificateConfig field is set.
-
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:
getClientCertificateConfigin interfaceMasterAuthOrBuilder- Returns:
- The clientCertificateConfig.
-
setClientCertificateConfig
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
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
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
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
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:
getClientCertificateConfigOrBuilderin interfaceMasterAuthOrBuilder
-
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];- Specified by:
getClusterCaCertificatein interfaceMasterAuthOrBuilder- 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClusterCaCertificateBytesin interfaceMasterAuthOrBuilder- Returns:
- The bytes for clusterCaCertificate.
-
setClusterCaCertificate
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];- Parameters:
value- The clusterCaCertificate to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setClusterCaCertificateBytes
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];- Parameters:
value- The bytes for clusterCaCertificate to set.- Returns:
- This builder for chaining.
-
getClientCertificate
Output only. Base64-encoded public certificate used by clients to authenticate to the cluster endpoint. Issued only if client_certificate_config is set.
string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClientCertificatein interfaceMasterAuthOrBuilder- 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. Issued only if client_certificate_config is set.
string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClientCertificateBytesin interfaceMasterAuthOrBuilder- Returns:
- The bytes for clientCertificate.
-
setClientCertificate
Output only. Base64-encoded public certificate used by clients to authenticate to the cluster endpoint. Issued only if client_certificate_config is set.
string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The clientCertificate to set.- Returns:
- This builder for chaining.
-
clearClientCertificate
Output only. Base64-encoded public certificate used by clients to authenticate to the cluster endpoint. Issued only if client_certificate_config is set.
string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setClientCertificateBytes
Output only. Base64-encoded public certificate used by clients to authenticate to the cluster endpoint. Issued only if client_certificate_config is set.
string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for clientCertificate to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getClientKeyin interfaceMasterAuthOrBuilder- 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClientKeyBytesin interfaceMasterAuthOrBuilder- Returns:
- The bytes for clientKey.
-
setClientKey
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];- Parameters:
value- The clientKey to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setClientKeyBytes
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];- Parameters:
value- The bytes for clientKey to set.- Returns:
- This builder for chaining.
-