Cloud Spanner V1 Client - Class UpdateDatabaseDdlMetadata (1.59.0)

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

Metadata type for the operation returned by UpdateDatabaseDdl.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ database string

The database being modified.

↳ statements array

For an update this list contains all the statements. For an individual statement, this list contains only that statement.

↳ commit_timestamps array<Google\Protobuf\Timestamp>

Reports the commit timestamps of all statements that have succeeded so far, where commit_timestamps[i] is the commit timestamp for the statement statements[i].

↳ throttled bool

Output only. When true, indicates that the operation is throttled e.g due to resource constraints. When resources become available the operation will resume and this field will be false again.

↳ progress array<Google\Cloud\Spanner\Admin\Database\V1\OperationProgress>

The progress of the UpdateDatabaseDdl operations. Currently, only index creation statements will have a continuously updating progress. For non-index creation statements, progress[i] will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed. progress[i] is the operation progress for statements[i].

getDatabase

The database being modified.

Returns
TypeDescription
string

setDatabase

The database being modified.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStatements

For an update this list contains all the statements. For an individual statement, this list contains only that statement.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStatements

For an update this list contains all the statements. For an individual statement, this list contains only that statement.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getCommitTimestamps

Reports the commit timestamps of all statements that have succeeded so far, where commit_timestamps[i] is the commit timestamp for the statement statements[i].

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCommitTimestamps

Reports the commit timestamps of all statements that have succeeded so far, where commit_timestamps[i] is the commit timestamp for the statement statements[i].

Parameter
NameDescription
var array<Google\Protobuf\Timestamp>
Returns
TypeDescription
$this

getThrottled

Output only. When true, indicates that the operation is throttled e.g due to resource constraints. When resources become available the operation will resume and this field will be false again.

Returns
TypeDescription
bool

setThrottled

Output only. When true, indicates that the operation is throttled e.g due to resource constraints. When resources become available the operation will resume and this field will be false again.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getProgress

The progress of the UpdateDatabaseDdl operations.

Currently, only index creation statements will have a continuously updating progress. For non-index creation statements, progress[i] will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed. progress[i] is the operation progress for statements[i].

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProgress

The progress of the UpdateDatabaseDdl operations.

Currently, only index creation statements will have a continuously updating progress. For non-index creation statements, progress[i] will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed. progress[i] is the operation progress for statements[i].

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