[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::AnnotateFileRequest (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-vision-v1/1.3.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-vision-v1/1.2.1/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision-v1/1.1.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision-v1/1.0.1/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.15.0](/ruby/docs/reference/google-cloud-vision-v1/0.15.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-vision-v1/0.14.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.13.2](/ruby/docs/reference/google-cloud-vision-v1/0.13.2/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-vision-v1/0.12.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.11.1](/ruby/docs/reference/google-cloud-vision-v1/0.11.1/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-vision-v1/0.10.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-vision-v1/0.9.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-vision-v1/0.8.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-vision-v1/0.7.0/Google-Cloud-Vision-V1-AnnotateFileRequest)\n- [0.6.4](/ruby/docs/reference/google-cloud-vision-v1/0.6.4/Google-Cloud-Vision-V1-AnnotateFileRequest) \nReference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::AnnotateFileRequest.\n\nA request to annotate one single file, e.g. a PDF, TIFF or GIF file. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #features\n\n def features() -\u003e ::Array\u003c::Google::Cloud::Vision::V1::Feature\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Vision::V1::Feature](./Google-Cloud-Vision-V1-Feature)\\\u003e) --- Required. Requested features.\n\n### #features=\n\n def features=(value) -\u003e ::Array\u003c::Google::Cloud::Vision::V1::Feature\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Vision::V1::Feature](./Google-Cloud-Vision-V1-Feature)\\\u003e) --- Required. Requested features. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Vision::V1::Feature](./Google-Cloud-Vision-V1-Feature)\\\u003e) --- Required. Requested features.\n\n### #image_context\n\n def image_context() -\u003e ::Google::Cloud::Vision::V1::ImageContext\n\n**Returns**\n\n- ([::Google::Cloud::Vision::V1::ImageContext](./Google-Cloud-Vision-V1-ImageContext)) --- Additional context that may accompany the image(s) in the file.\n\n### #image_context=\n\n def image_context=(value) -\u003e ::Google::Cloud::Vision::V1::ImageContext\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Vision::V1::ImageContext](./Google-Cloud-Vision-V1-ImageContext)) --- Additional context that may accompany the image(s) in the file. \n**Returns**\n\n- ([::Google::Cloud::Vision::V1::ImageContext](./Google-Cloud-Vision-V1-ImageContext)) --- Additional context that may accompany the image(s) in the file.\n\n### #input_config\n\n def input_config() -\u003e ::Google::Cloud::Vision::V1::InputConfig\n\n**Returns**\n\n- ([::Google::Cloud::Vision::V1::InputConfig](./Google-Cloud-Vision-V1-InputConfig)) --- Required. Information about the input file.\n\n### #input_config=\n\n def input_config=(value) -\u003e ::Google::Cloud::Vision::V1::InputConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Vision::V1::InputConfig](./Google-Cloud-Vision-V1-InputConfig)) --- Required. Information about the input file. \n**Returns**\n\n- ([::Google::Cloud::Vision::V1::InputConfig](./Google-Cloud-Vision-V1-InputConfig)) --- Required. Information about the input file.\n\n### #pages\n\n def pages() -\u003e ::Array\u003c::Integer\u003e\n\n**Returns**\n\n- (::Array\\\u003c::Integer\\\u003e) --- Pages of the file to perform image annotation.\n\n Pages starts from 1, we assume the first page of the file is page 1.\n At most 5 pages are supported per request. Pages can be negative.\n\n Page 1 means the first page.\n Page 2 means the second page.\n Page -1 means the last page.\n Page -2 means the second to the last page.\n\n If the file is GIF instead of PDF or TIFF, page refers to GIF frames.\n\n If this field is empty, by default the service performs image annotation\n for the first 5 pages of the file.\n\n### #pages=\n\n def pages=(value) -\u003e ::Array\u003c::Integer\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::Integer\\\u003e) --- Pages of the file to perform image annotation.\n\n\n Pages starts from 1, we assume the first page of the file is page 1.\n At most 5 pages are supported per request. Pages can be negative.\n\n Page 1 means the first page.\n Page 2 means the second page.\n Page -1 means the last page.\n Page -2 means the second to the last page.\n\n If the file is GIF instead of PDF or TIFF, page refers to GIF frames.\n\n If this field is empty, by default the service performs image annotation\nfor the first 5 pages of the file. \n**Returns**\n\n- (::Array\\\u003c::Integer\\\u003e) --- Pages of the file to perform image annotation.\n\n Pages starts from 1, we assume the first page of the file is page 1.\n At most 5 pages are supported per request. Pages can be negative.\n\n Page 1 means the first page.\n Page 2 means the second page.\n Page -1 means the last page.\n Page -2 means the second to the last page.\n\n If the file is GIF instead of PDF or TIFF, page refers to GIF frames.\n\n If this field is empty, by default the service performs image annotation\n for the first 5 pages of the file."]]