Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ImageResponseFormat
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ImageResponseFormat
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb
Overview
Configuration for image-specific output formatting.
Instance Attribute Summary collapse
-
#aspect_ratio ⇒ String
Optional.
-
#delivery ⇒ String
Optional.
-
#image_size ⇒ String
Optional.
-
#mime_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ImageResponseFormat
constructor
A new instance of GoogleCloudAiplatformV1beta1ImageResponseFormat.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ImageResponseFormat
Returns a new instance of GoogleCloudAiplatformV1beta1ImageResponseFormat.
2473 2474 2475 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2473 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aspect_ratio ⇒ String
Optional. The aspect ratio for the image output.
Corresponds to the JSON property aspectRatio
2456 2457 2458 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2456 def aspect_ratio @aspect_ratio end |
#delivery ⇒ String
Optional. Delivery mode for the generated content.
Corresponds to the JSON property delivery
2461 2462 2463 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2461 def delivery @delivery end |
#image_size ⇒ String
Optional. The size of the image output.
Corresponds to the JSON property imageSize
2466 2467 2468 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2466 def image_size @image_size end |
#mime_type ⇒ String
Optional. The MIME type of the image output.
Corresponds to the JSON property mimeType
2471 2472 2473 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2471 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2478 2479 2480 2481 2482 2483 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2478 def update!(**args) @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio) @delivery = args[:delivery] if args.key?(:delivery) @image_size = args[:image_size] if args.key?(:image_size) @mime_type = args[:mime_type] if args.key?(:mime_type) end |