Cloud Vision V1 Client - Class BatchOperationMetadata (1.9.4)

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

Metadata for the batch operations such as the current state.

This is included in the metadata field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ state int

The current state of the batch operation.

↳ submit_time Google\Protobuf\Timestamp

The time when the batch request was submitted to the server.

↳ end_time Google\Protobuf\Timestamp

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

getState

The current state of the batch operation.

Returns
Type Description
int

setState

The current state of the batch operation.

Parameter
Name Description
var int
Returns
Type Description
$this

getSubmitTime

The time when the batch request was submitted to the server.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasSubmitTime

clearSubmitTime

setSubmitTime

The time when the batch request was submitted to the server.

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

getEndTime

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

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