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

Response to a single file annotation request. A file may contain one or more
images, which individually have their own responses.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Rpc-Status)) --- If set, represents the error message for the failed request. The `responses` field will not be set in this case.

### #error=

    def error=(value) -> ::Google::Rpc::Status

**Parameter**

- **value** ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Rpc-Status)) --- If set, represents the error message for the failed request. The `responses` field will not be set in this case.
**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Rpc-Status)) --- If set, represents the error message for the failed request. The `responses` field will not be set in this case.

### #input_config

    def input_config() -> ::Google::Cloud::Vision::V1::InputConfig

**Returns**

- ([::Google::Cloud::Vision::V1::InputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-InputConfig)) --- Information about the file for which this response is generated.

### #input_config=

    def input_config=(value) -> ::Google::Cloud::Vision::V1::InputConfig

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::InputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-InputConfig)) --- Information about the file for which this response is generated.
**Returns**

- ([::Google::Cloud::Vision::V1::InputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-InputConfig)) --- Information about the file for which this response is generated.

### #responses

    def responses() -> ::Array<::Google::Cloud::Vision::V1::AnnotateImageResponse>

**Returns**

- (::Array\<[::Google::Cloud::Vision::V1::AnnotateImageResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-AnnotateImageResponse)\>) --- Individual responses to images found within the file. This field will be empty if the `error` field is set.

### #responses=

    def responses=(value) -> ::Array<::Google::Cloud::Vision::V1::AnnotateImageResponse>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Vision::V1::AnnotateImageResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-AnnotateImageResponse)\>) --- Individual responses to images found within the file. This field will be empty if the `error` field is set.
**Returns**

- (::Array\<[::Google::Cloud::Vision::V1::AnnotateImageResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-AnnotateImageResponse)\>) --- Individual responses to images found within the file. This field will be empty if the `error` field is set.

### #total_pages

    def total_pages() -> ::Integer

**Returns**

- (::Integer) --- This field gives the total number of pages in the file.

### #total_pages=

    def total_pages=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- This field gives the total number of pages in the file.
**Returns**

- (::Integer) --- This field gives the total number of pages in the file.