# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::BatchOperationMetadata (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::BatchOperationMetadata.

Metadata for the batch operations such as the current state.


<br />

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Protobuf-Timestamp)) --- The time when the batch request is finished and [google.longrunning.Operation.done](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_done_instance_ "Google::Longrunning::Operation#done (method)") is set to true.

### #end_time=

    def end_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Protobuf-Timestamp)) --- The time when the batch request is finished and [google.longrunning.Operation.done](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_done_instance_ "Google::Longrunning::Operation#done (method)") is set to true.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Protobuf-Timestamp)) --- The time when the batch request is finished and [google.longrunning.Operation.done](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_done_instance_ "Google::Longrunning::Operation#done (method)") is set to true.

### #state

    def state() -> ::Google::Cloud::Vision::V1::BatchOperationMetadata::State

**Returns**

- ([::Google::Cloud::Vision::V1::BatchOperationMetadata::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchOperationMetadata-State)) --- The current state of the batch operation.

### #state=

    def state=(value) -> ::Google::Cloud::Vision::V1::BatchOperationMetadata::State

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::BatchOperationMetadata::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchOperationMetadata-State)) --- The current state of the batch operation.
**Returns**

- ([::Google::Cloud::Vision::V1::BatchOperationMetadata::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchOperationMetadata-State)) --- The current state of the batch operation.

### #submit_time

    def submit_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Protobuf-Timestamp)) --- The time when the batch request was submitted to the server.

### #submit_time=

    def submit_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Protobuf-Timestamp)) --- The time when the batch request was submitted to the server.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Protobuf-Timestamp)) --- The time when the batch request was submitted to the server.