Class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult

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) ⇒ 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

#imageString

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

Returns:

  • (String)


8423
8424
8425
# File 'generated/google/apis/vision_v1/classes.rb', line 8423

def image
  @image
end

#mime_typeString

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

Returns:

  • (String)


8428
8429
8430
# File 'generated/google/apis/vision_v1/classes.rb', line 8428

def mime_type
  @mime_type
end

#quality_optimization_typeString

Required optimization type. Corresponds to the JSON property qualityOptimizationType

Returns:

  • (String)


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