Cloud Firestore V1 Client - Class SourceInfo (1.47.2)

Reference documentation and code samples for the Cloud Firestore V1 Client class SourceInfo.

Information about the provenance of this database.

Generated from protobuf message google.firestore.admin.v1.Database.SourceInfo

Namespace

Google \ Cloud \ Firestore \ Admin \ V1 \ Database

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ backup SourceInfo\BackupSource

If set, this database was restored from the specified backup (or a snapshot thereof).

↳ operation string

The associated long-running operation. This field may not be set after the operation has completed. Format: projects/{project}/databases/{database}/operations/{operation}.

getBackup

If set, this database was restored from the specified backup (or a snapshot thereof).

Returns
Type Description
SourceInfo\BackupSource|null

hasBackup

setBackup

If set, this database was restored from the specified backup (or a snapshot thereof).

Parameter
Name Description
var SourceInfo\BackupSource
Returns
Type Description
$this

getOperation

The associated long-running operation. This field may not be set after the operation has completed. Format: projects/{project}/databases/{database}/operations/{operation}.

Returns
Type Description
string

setOperation

The associated long-running operation. This field may not be set after the operation has completed. Format: projects/{project}/databases/{database}/operations/{operation}.

Parameter
Name Description
var string
Returns
Type Description
$this

getSource

Returns
Type Description
string