Class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult
- 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
Stores enhanced image bytes.
Instance Attribute Summary collapse
-
#image ⇒ String
Optimized image bytes.
-
#mime_type ⇒ String
Mime type of the output image.
-
#quality_optimization_type ⇒ String
Required optimization type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1QualityOptimizationResult
constructor
A new instance of GoogleCloudVisionV1p4beta1QualityOptimizationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1QualityOptimizationResult
Returns a new instance of GoogleCloudVisionV1p4beta1QualityOptimizationResult
8139 8140 8141 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8139 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image ⇒ String
Optimized image bytes.
Corresponds to the JSON property image
NOTE: Values are automatically base64 encoded/decoded in the client library.
8127 8128 8129 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8127 def image @image end |
#mime_type ⇒ String
Mime type of the output image.
Corresponds to the JSON property mimeType
8132 8133 8134 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8132 def mime_type @mime_type end |
#quality_optimization_type ⇒ String
Required optimization type.
Corresponds to the JSON property qualityOptimizationType
8137 8138 8139 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8137 def quality_optimization_type @quality_optimization_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8144 8145 8146 8147 8148 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8144 def update!(**args) @image = args[:image] if args.key?(:image) @mime_type = args[:mime_type] if args.key?(:mime_type) @quality_optimization_type = args[:quality_optimization_type] if args.key?(:quality_optimization_type) end |