Google Cloud Datastore Admin V1 Client - Class CommonMetadata (0.8.5)

Reference documentation and code samples for the Google Cloud Datastore Admin V1 Client class CommonMetadata.

Metadata common to all Datastore Admin operations.

Generated from protobuf message google.datastore.admin.v1.CommonMetadata

Namespace

Google \ Cloud \ Datastore \ Admin \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_time Google\Protobuf\Timestamp

The time that work began on the operation.

↳ end_time Google\Protobuf\Timestamp

The time the operation ended, either successfully or otherwise.

↳ operation_type int

The type of the operation. Can be used as a filter in ListOperationsRequest.

↳ labels array|Google\Protobuf\Internal\MapField

The client-assigned labels which were provided when the operation was created. May also include additional labels.

↳ state int

The current state of the Operation.

getStartTime

The time that work began on the operation.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The time that work began on the operation.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

The time the operation ended, either successfully or otherwise.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time the operation ended, either successfully or otherwise.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getOperationType

The type of the operation. Can be used as a filter in ListOperationsRequest.

Returns
Type Description
int

setOperationType

The type of the operation. Can be used as a filter in ListOperationsRequest.

Parameter
Name Description
var int
Returns
Type Description
$this

getLabels

The client-assigned labels which were provided when the operation was created. May also include additional labels.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

The client-assigned labels which were provided when the operation was created. May also include additional labels.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getState

The current state of the Operation.

Returns
Type Description
int

setState

The current state of the Operation.

Parameter
Name Description
var int
Returns
Type Description
$this