Class: Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1QualityOptimizationResult
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1QualityOptimizationResult
- 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) ⇒ GoogleCloudVisionV1p6beta1QualityOptimizationResult
constructor
A new instance of GoogleCloudVisionV1p6beta1QualityOptimizationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p6beta1QualityOptimizationResult
Returns a new instance of GoogleCloudVisionV1p6beta1QualityOptimizationResult
12130 12131 12132 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12130 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.
12118 12119 12120 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12118 def image @image end |
#mime_type ⇒ String
Mime type of the output image.
Corresponds to the JSON property mimeType
12123 12124 12125 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12123 def mime_type @mime_type end |
#quality_optimization_type ⇒ String
Required optimization type.
Corresponds to the JSON property qualityOptimizationType
12128 12129 12130 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12128 def quality_optimization_type @quality_optimization_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12135 12136 12137 12138 12139 |
# File 'generated/google/apis/vision_v1/classes.rb', line 12135 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 |