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
8435 8436 8437 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8435 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.
8423 8424 8425 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8423 def image @image end |
#mime_type ⇒ String
Mime type of the output image.
Corresponds to the JSON property mimeType
8428 8429 8430 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8428 def mime_type @mime_type end |
#quality_optimization_type ⇒ String
Required optimization type.
Corresponds to the JSON property qualityOptimizationType
8433 8434 8435 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8433 def quality_optimization_type @quality_optimization_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8440 8441 8442 8443 8444 |
# File 'generated/google/apis/vision_v1/classes.rb', line 8440 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 |