- 2.58.0 (latest)
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.2
- 2.4.1
- 2.3.8
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MasterAuth.BuilderImplements
MasterAuthOrBuilderStatic 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 |
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 |
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 | |
---|---|
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;
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;
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public MasterAuth.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
MasterAuth.Builder |
clearPassword() (deprecated)
public MasterAuth.Builder clearPassword()
Deprecated. google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=1051
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=1040
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 |
getClientCertificate()
public String getClientCertificate()
[Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
string client_certificate = 101;
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;
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;
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;
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;
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;
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 |
getPassword() (deprecated)
public String getPassword()
Deprecated. google.container.v1.MasterAuth.password is deprecated. See google/container/v1/cluster_service.proto;l=1051
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=1051
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=1040
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=1040
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MasterAuth.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
MasterAuth.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MasterAuth.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MasterAuth.Builder |
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 | |
---|---|
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;
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;
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;
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;
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;
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 |
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=1051
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=1051
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final MasterAuth.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MasterAuth.Builder |
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=1040
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=1040
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. |