Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageRequest

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

Overview

Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p1beta1AnnotateImageRequest

Returns a new instance of GoogleCloudVisionV1p1beta1AnnotateImageRequest



1021
1022
1023
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1021

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

Instance Attribute Details

#featuresArray<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature>

Requested features. Corresponds to the JSON property features



1009
1010
1011
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1009

def features
  @features
end

#imageGoogle::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Image

Client image to perform Google Cloud Vision API tasks over. Corresponds to the JSON property image



1014
1015
1016
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1014

def image
  @image
end

#image_contextGoogle::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext

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



1019
1020
1021
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1019

def image_context
  @image_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1026
1027
1028
1029
1030
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 1026

def update!(**args)
  @features = args[:features] if args.key?(:features)
  @image = args[:image] if args.key?(:image)
  @image_context = args[:image_context] if args.key?(:image_context)
end