Class: Google::Apis::VisionV1::Image
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::Image
- 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
Client image to perform Google Cloud Vision API tasks over.
Instance Attribute Summary collapse
-
#content ⇒ String
Image content, represented as a stream of bytes.
-
#source ⇒ Google::Apis::VisionV1::ImageSource
External image source (Google Cloud Storage image location).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
1072 1073 1074 |
# File 'generated/google/apis/vision_v1/classes.rb', line 1072 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
Image content, represented as a stream of bytes.
Note: as with all bytes
fields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
Corresponds to the JSON property content
1070 1071 1072 |
# File 'generated/google/apis/vision_v1/classes.rb', line 1070 def content @content end |
#source ⇒ Google::Apis::VisionV1::ImageSource
External image source (Google Cloud Storage image location).
Corresponds to the JSON property source
1063 1064 1065 |
# File 'generated/google/apis/vision_v1/classes.rb', line 1063 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1077 1078 1079 1080 |
# File 'generated/google/apis/vision_v1/classes.rb', line 1077 def update!(**args) @source = args[:source] if args.key?(:source) @content = args[:content] if args.key?(:content) end |