Cloud Vision V1 Client - Class BatchOperationMetadata (1.8.0)

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
NameDescription
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
TypeDescription
int

setState

The current state of the batch operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSubmitTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasSubmitTime

clearSubmitTime

setSubmitTime

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

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

getEndTime

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

Returns
TypeDescription
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
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this