class Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateFileRequest
A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
Attributes
Required. Requested features. Corresponds to the JSON property `features` @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Feature>]
Image context and/or feature-specific parameters. Corresponds to the JSON property `imageContext` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext]
The desired input location and metadata. Corresponds to the JSON property `inputConfig` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig]
Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page
1 means the first page. Page
2 means the second page. Page
-1 means the last page. Page
-2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file. Corresponds to the JSON property `pages` @return [Array<Fixnum>]
Public Class Methods
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 2636 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 2641 def update!(**args) @features = args[:features] if args.key?(:features) @image_context = args[:image_context] if args.key?(:image_context) @input_config = args[:input_config] if args.key?(:input_config) @pages = args[:pages] if args.key?(:pages) end