Cloud Spanner V1 Client - Class OptimizeRestoredDatabaseMetadata (1.57.0)

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

Metadata type for the long-running operation used to track the progress of optimizations performed on a newly restored database. This long-running operation is automatically created by the system after the successful completion of a database restore, and cannot be cancelled.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Name of the restored database being optimized.

↳ progress Google\Cloud\Spanner\Admin\Database\V1\OperationProgress

The progress of the post-restore optimizations.

getName

Name of the restored database being optimized.

Returns
TypeDescription
string

setName

Name of the restored database being optimized.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProgress

The progress of the post-restore optimizations.

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

hasProgress

clearProgress

setProgress

The progress of the post-restore optimizations.

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