Class protos.google.cloud.metastore.v1beta.Federation (4.1.0)

Represents a Federation.

Package

@google-cloud/dataproc-metastore

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.metastore.v1beta.IFederation);

Constructs a new Federation.

Parameter
NameDescription
properties IFederation

Properties to set

Properties

backendMetastores

public backendMetastores: { [k: string]: google.cloud.metastore.v1beta.IBackendMetastore };

Federation backendMetastores.

createTime

public createTime?: (google.protobuf.ITimestamp|null);

Federation createTime.

endpointUri

public endpointUri: string;

Federation endpointUri.

labels

public labels: { [k: string]: string };

Federation labels.

name

public name: string;

Federation name.

state

public state: (google.cloud.metastore.v1beta.Federation.State|keyof typeof google.cloud.metastore.v1beta.Federation.State);

Federation state.

stateMessage

public stateMessage: string;

Federation stateMessage.

uid

public uid: string;

Federation uid.

updateTime

public updateTime?: (google.protobuf.ITimestamp|null);

Federation updateTime.

version

public version: string;

Federation version.

Methods

create(properties)

public static create(properties?: google.cloud.metastore.v1beta.IFederation): google.cloud.metastore.v1beta.Federation;

Creates a new Federation instance using the specified properties.

Parameter
NameDescription
properties IFederation

Properties to set

Returns
TypeDescription
Federation

Federation instance

decode(reader, length)

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

Decodes a Federation message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
Federation

Federation

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
Federation

Federation

encode(message, writer)

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

Encodes the specified Federation message. Does not implicitly messages.

Parameters
NameDescription
message IFederation

Federation 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.v1beta.IFederation, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IFederation

Federation 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.v1beta.Federation;

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

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

Plain object

Returns
TypeDescription
Federation

Federation

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for Federation

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

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

Converts this Federation to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message Federation

Federation

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 Federation 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