Cloud Spanner V1 Client - Class RestoreInfo (1.79.0)

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

Namespace

Google \ Cloud \ Spanner \ Admin \ Database \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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.

Returns
Type Description
int

setSourceType

The type of the restore source.

Parameter
Name Description
var int
Returns
Type Description
$this

getBackupInfo

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

Returns
Type Description
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.

Parameter
Name Description
var Google\Cloud\Spanner\Admin\Database\V1\BackupInfo
Returns
Type Description
$this

getSourceInfo

Returns
Type Description
string