# Cloud Vision V1 Client - Class BatchOperationMetadata (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 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` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time when the batch request was submitted to the server. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/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` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.BatchOperationMetadata.State). |

### setState

The current state of the batch operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.BatchOperationMetadata.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSubmitTime

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasSubmitTime

### clearSubmitTime

### setSubmitTime

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/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** |
| `https://protobuf.dev/reference/php/api-docs/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` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |