Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageResponseFormat
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageResponseFormat
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Configuration for image output format.
Instance Attribute Summary collapse
-
#aspect_ratio ⇒ String
The aspect ratio for the image output.
-
#delivery ⇒ String
The delivery mode for the image output.
-
#image_size ⇒ String
The size of the image output.
-
#mime_type ⇒ String
The MIME type of the image output.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1ImageResponseFormat
constructor
A new instance of GenaiVertexV1beta1ImageResponseFormat.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1ImageResponseFormat
Returns a new instance of GenaiVertexV1beta1ImageResponseFormat.
3347 3348 3349 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3347 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aspect_ratio ⇒ String
The aspect ratio for the image output.
Corresponds to the JSON property aspectRatio
3330 3331 3332 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3330 def aspect_ratio @aspect_ratio end |
#delivery ⇒ String
The delivery mode for the image output.
Corresponds to the JSON property delivery
3335 3336 3337 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3335 def delivery @delivery end |
#image_size ⇒ String
The size of the image output.
Corresponds to the JSON property imageSize
3340 3341 3342 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3340 def image_size @image_size end |
#mime_type ⇒ String
The MIME type of the image output.
Corresponds to the JSON property mimeType
3345 3346 3347 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3345 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3352 3353 3354 3355 3356 3357 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3352 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 |