Class protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata

Represents a RestoreDatabaseMetadata.

Package

@google-cloud/spanner!

Constructors

(constructor)(properties)

constructor(properties?: google.spanner.admin.database.v1.IRestoreDatabaseMetadata);

Constructs a new RestoreDatabaseMetadata.

Parameter
TypeNameDescription
IRestoreDatabaseMetadataproperties

Properties to set

Properties

backupInfo

public backupInfo?: (google.spanner.admin.database.v1.IBackupInfo|null);

RestoreDatabaseMetadata backupInfo.

Property Value
TypeDescription
(google.spanner.admin.database.v1.IBackupInfo|null)

cancelTime

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

RestoreDatabaseMetadata cancelTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

name

public name: string;

RestoreDatabaseMetadata name.

Property Value
TypeDescription
string

optimizeDatabaseOperationName

public optimizeDatabaseOperationName: string;

RestoreDatabaseMetadata optimizeDatabaseOperationName.

Property Value
TypeDescription
string

progress

public progress?: (google.spanner.admin.database.v1.IOperationProgress|null);

RestoreDatabaseMetadata progress.

Property Value
TypeDescription
(google.spanner.admin.database.v1.IOperationProgress|null)

sourceInfo

public sourceInfo?: "backupInfo";

RestoreDatabaseMetadata sourceInfo.

Property Value
TypeDescription
"backupInfo"

sourceType

public sourceType: (google.spanner.admin.database.v1.RestoreSourceType|keyof typeof google.spanner.admin.database.v1.RestoreSourceType);

RestoreDatabaseMetadata sourceType.

Property Value
TypeDescription
(google.spanner.admin.database.v1.RestoreSourceType|keyof typeof google.spanner.admin.database.v1.RestoreSourceType)

Methods

create(properties)

public static create(properties?: google.spanner.admin.database.v1.IRestoreDatabaseMetadata): google.spanner.admin.database.v1.RestoreDatabaseMetadata;

Creates a new RestoreDatabaseMetadata instance using the specified properties.

Parameter
TypeNameDescription
IRestoreDatabaseMetadataproperties

Properties to set

Returns
TypeDescription
google.spanner.admin.database.v1.RestoreDatabaseMetadata

RestoreDatabaseMetadata instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.RestoreDatabaseMetadata;

Decodes a RestoreDatabaseMetadata message from the specified reader or buffer.

Parameters
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

numberlength

Message length if known beforehand

Returns
TypeDescription
google.spanner.admin.database.v1.RestoreDatabaseMetadata

RestoreDatabaseMetadata

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.RestoreDatabaseMetadata;

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

Parameter
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

Returns
TypeDescription
google.spanner.admin.database.v1.RestoreDatabaseMetadata

RestoreDatabaseMetadata

encode(message, writer)

public static encode(message: google.spanner.admin.database.v1.IRestoreDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified RestoreDatabaseMetadata message. Does not implicitly messages.

Parameters
TypeNameDescription
IRestoreDatabaseMetadatamessage

RestoreDatabaseMetadata message or plain object to encode

$protobuf.Writerwriter

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.spanner.admin.database.v1.IRestoreDatabaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
TypeNameDescription
IRestoreDatabaseMetadatamessage

RestoreDatabaseMetadata message or plain object to encode

$protobuf.Writerwriter

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.RestoreDatabaseMetadata;

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

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

Plain object

Returns
TypeDescription
google.spanner.admin.database.v1.RestoreDatabaseMetadata

RestoreDatabaseMetadata

toJSON()

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

Converts this RestoreDatabaseMetadata to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.spanner.admin.database.v1.RestoreDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
TypeNameDescription
google.spanner.admin.database.v1.RestoreDatabaseMetadatamessage

RestoreDatabaseMetadata

$protobuf.IConversionOptionsoptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a RestoreDatabaseMetadata message.

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

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not