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 \ DatabaseMethods
__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: |
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 |