class Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateFileResponse

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

Attributes

error[RW]

The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [ gRPC](github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `error` @return [Google::Apis::VisionV1p1beta1::Status]

input_config[RW]

The desired input location and metadata. Corresponds to the JSON property `inputConfig` @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig]

responses[RW]

Individual responses to images found within the file. This field will be empty if the `error` field is set. Corresponds to the JSON property `responses` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse>]

total_pages[RW]

This field gives the total number of pages in the file. Corresponds to the JSON property `totalPages` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 960
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1p1beta1/classes.rb, line 965
def update!(**args)
  @error = args[:error] if args.key?(:error)
  @input_config = args[:input_config] if args.key?(:input_config)
  @responses = args[:responses] if args.key?(:responses)
  @total_pages = args[:total_pages] if args.key?(:total_pages)
end