Class protos.google.cloud.metastore.v1alpha.KerberosConfig (2.2.0)

Represents a KerberosConfig.

Package

@google-cloud/dataproc-metastore

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.metastore.v1alpha.IKerberosConfig);

Constructs a new KerberosConfig.

Parameter
NameDescription
properties IKerberosConfig

Properties to set

Properties

keytab

public keytab?: (google.cloud.metastore.v1alpha.ISecret|null);

KerberosConfig keytab.

krb5ConfigGcsUri

public krb5ConfigGcsUri: string;

KerberosConfig krb5ConfigGcsUri.

principal

public principal: string;

KerberosConfig principal.

Methods

create(properties)

public static create(properties?: google.cloud.metastore.v1alpha.IKerberosConfig): google.cloud.metastore.v1alpha.KerberosConfig;

Creates a new KerberosConfig instance using the specified properties.

Parameter
NameDescription
properties IKerberosConfig

Properties to set

Returns
TypeDescription
google.cloud.metastore.v1alpha.KerberosConfig

KerberosConfig instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.metastore.v1alpha.KerberosConfig;

Decodes a KerberosConfig message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.metastore.v1alpha.KerberosConfig

KerberosConfig

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.metastore.v1alpha.KerberosConfig;

Decodes a KerberosConfig message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.metastore.v1alpha.KerberosConfig

KerberosConfig

encode(message, writer)

public static encode(message: google.cloud.metastore.v1alpha.IKerberosConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified KerberosConfig message. Does not implicitly messages.

Parameters
NameDescription
message IKerberosConfig

KerberosConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.metastore.v1alpha.IKerberosConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified KerberosConfig message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IKerberosConfig

KerberosConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.metastore.v1alpha.KerberosConfig;

Creates a KerberosConfig message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.metastore.v1alpha.KerberosConfig

KerberosConfig

toJSON()

public toJSON(): { [k: string]: any };

Converts this KerberosConfig to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.metastore.v1alpha.KerberosConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a KerberosConfig message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.metastore.v1alpha.KerberosConfig

KerberosConfig

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a KerberosConfig message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not