Cloud Vision V1 Client - Class OperationMetadata (1.10.1)

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
Name Description
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
Type Description
int

setState

Current state of the batch operation.

Parameter
Name Description
var int
Returns
Type Description
$this

getCreateTime

The time when the batch request was received.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time when the batch request was received.

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

getUpdateTime

The time when the operation result was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The time when the operation result was last updated.

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