Cloud Spanner V1 Client - Class RestoreInfo (1.54.2)

Reference documentation and code samples for the Cloud Spanner V1 Client class RestoreInfo.

Information about the database restore.

Generated from protobuf message google.spanner.admin.database.v1.RestoreInfo

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ source_type int

The type of the restore source.

↳ backup_info Google\Cloud\Spanner\Admin\Database\V1\BackupInfo

Information about the backup used to restore the database. The backup may no longer exist.

getSourceType

The type of the restore source.

Generated from protobuf field .google.spanner.admin.database.v1.RestoreSourceType source_type = 1;

Returns
TypeDescription
int

setSourceType

The type of the restore source.

Generated from protobuf field .google.spanner.admin.database.v1.RestoreSourceType source_type = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBackupInfo

Information about the backup used to restore the database. The backup may no longer exist.

Generated from protobuf field .google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Returns
TypeDescription
Google\Cloud\Spanner\Admin\Database\V1\BackupInfo|null

hasBackupInfo

setBackupInfo

Information about the backup used to restore the database. The backup may no longer exist.

Generated from protobuf field .google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Parameter
NameDescription
var Google\Cloud\Spanner\Admin\Database\V1\BackupInfo
Returns
TypeDescription
$this

getSourceInfo

Returns
TypeDescription
string