Class KerberosConfig.Builder (2.8.0)

public static final class KerberosConfig.Builder extends GeneratedMessageV3.Builder<KerberosConfig.Builder> implements KerberosConfigOrBuilder

Configuration information for a Kerberos principal.

Protobuf type google.cloud.metastore.v1alpha.KerberosConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public KerberosConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
KerberosConfig.Builder
Overrides

build()

public KerberosConfig build()
Returns
TypeDescription
KerberosConfig

buildPartial()

public KerberosConfig buildPartial()
Returns
TypeDescription
KerberosConfig

clear()

public KerberosConfig.Builder clear()
Returns
TypeDescription
KerberosConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public KerberosConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
KerberosConfig.Builder
Overrides

clearKeytab()

public KerberosConfig.Builder clearKeytab()

A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

.google.cloud.metastore.v1alpha.Secret keytab = 1;

Returns
TypeDescription
KerberosConfig.Builder

clearKrb5ConfigGcsUri()

public KerberosConfig.Builder clearKrb5ConfigGcsUri()

A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.

string krb5_config_gcs_uri = 3;

Returns
TypeDescription
KerberosConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public KerberosConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
KerberosConfig.Builder
Overrides

clearPrincipal()

public KerberosConfig.Builder clearPrincipal()

A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.

string principal = 2;

Returns
TypeDescription
KerberosConfig.Builder

This builder for chaining.

clone()

public KerberosConfig.Builder clone()
Returns
TypeDescription
KerberosConfig.Builder
Overrides

getDefaultInstanceForType()

public KerberosConfig getDefaultInstanceForType()
Returns
TypeDescription
KerberosConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKeytab()

public Secret getKeytab()

A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

.google.cloud.metastore.v1alpha.Secret keytab = 1;

Returns
TypeDescription
Secret

The keytab.

getKeytabBuilder()

public Secret.Builder getKeytabBuilder()

A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

.google.cloud.metastore.v1alpha.Secret keytab = 1;

Returns
TypeDescription
Secret.Builder

getKeytabOrBuilder()

public SecretOrBuilder getKeytabOrBuilder()

A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

.google.cloud.metastore.v1alpha.Secret keytab = 1;

Returns
TypeDescription
SecretOrBuilder

getKrb5ConfigGcsUri()

public String getKrb5ConfigGcsUri()

A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.

string krb5_config_gcs_uri = 3;

Returns
TypeDescription
String

The krb5ConfigGcsUri.

getKrb5ConfigGcsUriBytes()

public ByteString getKrb5ConfigGcsUriBytes()

A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.

string krb5_config_gcs_uri = 3;

Returns
TypeDescription
ByteString

The bytes for krb5ConfigGcsUri.

getPrincipal()

public String getPrincipal()

A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.

string principal = 2;

Returns
TypeDescription
String

The principal.

getPrincipalBytes()

public ByteString getPrincipalBytes()

A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.

string principal = 2;

Returns
TypeDescription
ByteString

The bytes for principal.

hasKeytab()

public boolean hasKeytab()

A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

.google.cloud.metastore.v1alpha.Secret keytab = 1;

Returns
TypeDescription
boolean

Whether the keytab field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KerberosConfig other)

public KerberosConfig.Builder mergeFrom(KerberosConfig other)
Parameter
NameDescription
otherKerberosConfig
Returns
TypeDescription
KerberosConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public KerberosConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KerberosConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public KerberosConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
KerberosConfig.Builder
Overrides

mergeKeytab(Secret value)

public KerberosConfig.Builder mergeKeytab(Secret value)

A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

.google.cloud.metastore.v1alpha.Secret keytab = 1;

Parameter
NameDescription
valueSecret
Returns
TypeDescription
KerberosConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KerberosConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
KerberosConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public KerberosConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
KerberosConfig.Builder
Overrides

setKeytab(Secret value)

public KerberosConfig.Builder setKeytab(Secret value)

A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

.google.cloud.metastore.v1alpha.Secret keytab = 1;

Parameter
NameDescription
valueSecret
Returns
TypeDescription
KerberosConfig.Builder

setKeytab(Secret.Builder builderForValue)

public KerberosConfig.Builder setKeytab(Secret.Builder builderForValue)

A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).

.google.cloud.metastore.v1alpha.Secret keytab = 1;

Parameter
NameDescription
builderForValueSecret.Builder
Returns
TypeDescription
KerberosConfig.Builder

setKrb5ConfigGcsUri(String value)

public KerberosConfig.Builder setKrb5ConfigGcsUri(String value)

A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.

string krb5_config_gcs_uri = 3;

Parameter
NameDescription
valueString

The krb5ConfigGcsUri to set.

Returns
TypeDescription
KerberosConfig.Builder

This builder for chaining.

setKrb5ConfigGcsUriBytes(ByteString value)

public KerberosConfig.Builder setKrb5ConfigGcsUriBytes(ByteString value)

A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.

string krb5_config_gcs_uri = 3;

Parameter
NameDescription
valueByteString

The bytes for krb5ConfigGcsUri to set.

Returns
TypeDescription
KerberosConfig.Builder

This builder for chaining.

setPrincipal(String value)

public KerberosConfig.Builder setPrincipal(String value)

A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.

string principal = 2;

Parameter
NameDescription
valueString

The principal to set.

Returns
TypeDescription
KerberosConfig.Builder

This builder for chaining.

setPrincipalBytes(ByteString value)

public KerberosConfig.Builder setPrincipalBytes(ByteString value)

A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.

string principal = 2;

Parameter
NameDescription
valueByteString

The bytes for principal to set.

Returns
TypeDescription
KerberosConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public KerberosConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
KerberosConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final KerberosConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
KerberosConfig.Builder
Overrides