Class: Google::Apis::VisionV1::AsyncAnnotateFileRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb

Overview

An offline file annotation request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AsyncAnnotateFileRequest

Returns a new instance of AsyncAnnotateFileRequest.



298
299
300
# File 'generated/google/apis/vision_v1/classes.rb', line 298

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#featuresArray<Google::Apis::VisionV1::Feature>

Required. Requested features. Corresponds to the JSON property features



281
282
283
# File 'generated/google/apis/vision_v1/classes.rb', line 281

def features
  @features
end

#image_contextGoogle::Apis::VisionV1::ImageContext

Image context and/or feature-specific parameters. Corresponds to the JSON property imageContext



286
287
288
# File 'generated/google/apis/vision_v1/classes.rb', line 286

def image_context
  @image_context
end

#input_configGoogle::Apis::VisionV1::InputConfig

The desired input location and metadata. Corresponds to the JSON property inputConfig



291
292
293
# File 'generated/google/apis/vision_v1/classes.rb', line 291

def input_config
  @input_config
end

#output_configGoogle::Apis::VisionV1::OutputConfig

The desired output location and metadata. Corresponds to the JSON property outputConfig



296
297
298
# File 'generated/google/apis/vision_v1/classes.rb', line 296

def output_config
  @output_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



303
304
305
306
307
308
# File 'generated/google/apis/vision_v1/classes.rb', line 303

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)
  @output_config = args[:output_config] if args.key?(:output_config)
end