# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::ImageAnnotator::Rest::ServiceStub (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::ImageAnnotator::Rest::ServiceStub.

REST service stub for the ImageAnnotator service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #async_batch_annotate_files

    def async_batch_annotate_files(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the async_batch_annotate_files REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Vision::V1::AsyncBatchAnnotateFilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-AsyncBatchAnnotateFilesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #async_batch_annotate_images

    def async_batch_annotate_images(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the async_batch_annotate_images REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Vision::V1::AsyncBatchAnnotateImagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-AsyncBatchAnnotateImagesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #batch_annotate_files

    def batch_annotate_files(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::BatchAnnotateFilesResponse

Baseline implementation for the batch_annotate_files REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Vision::V1::BatchAnnotateFilesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchAnnotateFilesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Vision::V1::BatchAnnotateFilesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchAnnotateFilesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Vision::V1::BatchAnnotateFilesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchAnnotateFilesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #batch_annotate_images

    def batch_annotate_images(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Vision::V1::BatchAnnotateImagesResponse

Baseline implementation for the batch_annotate_images REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Vision::V1::BatchAnnotateImagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchAnnotateImagesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Vision::V1::BatchAnnotateImagesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchAnnotateImagesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Vision::V1::BatchAnnotateImagesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-BatchAnnotateImagesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)