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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The time that work began on the operation.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

The time the operation ended, either successfully or otherwise.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time the operation ended, either successfully or otherwise.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getOperationType

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

Returns
TypeDescription
int

setOperationType

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLabels

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

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

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

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getState

The current state of the Operation.

Returns
TypeDescription
int

setState

The current state of the Operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this