Cloud Vision V1 Client - Class OperationMetadata (1.8.0)

Reference documentation and code samples for the Cloud Vision V1 Client class OperationMetadata.

Contains metadata for the BatchAnnotateImages operation.

Generated from protobuf message google.cloud.vision.v1.OperationMetadata

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ state int

Current state of the batch operation.

↳ create_time Google\Protobuf\Timestamp

The time when the batch request was received.

↳ update_time Google\Protobuf\Timestamp

The time when the operation result was last updated.

getState

Current state of the batch operation.

Returns
TypeDescription
int

setState

Current state of the batch operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

The time when the batch request was received.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time when the batch request was received.

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

getUpdateTime

The time when the operation result was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The time when the operation result was last updated.

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