class Google::Apis::VisionV1::Image
Client image to perform Google Cloud Vision API tasks over.
Attributes
content[RW]
Image content, represented as a stream of bytes. Corresponds to the JSON property `content` @return [String]
source[RW]
External image source (Google Cloud Storage image location). Corresponds to the JSON property `source` @return [Google::Apis::VisionV1::ImageSource]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/vision_v1/classes.rb, line 1070 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/vision_v1/classes.rb, line 1075 def update!(**args) @source = args[:source] if args.key?(:source) @content = args[:content] if args.key?(:content) end