Class: Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1QualityOptimizationResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#imageString

Optimized image bytes. Corresponds to the JSON property image NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


12118
12119
12120
# File 'generated/google/apis/vision_v1/classes.rb', line 12118

def image
  @image
end

#mime_typeString

Mime type of the output image. Corresponds to the JSON property mimeType

Returns:

  • (String)


12123
12124
12125
# File 'generated/google/apis/vision_v1/classes.rb', line 12123

def mime_type
  @mime_type
end

#quality_optimization_typeString

Required optimization type. Corresponds to the JSON property qualityOptimizationType

Returns:

  • (String)


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