Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImageResponseFormat
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImageResponseFormat
- 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-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.
28890 28891 28892 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28890 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
28873 28874 28875 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28873 def aspect_ratio @aspect_ratio end |
#delivery ⇒ String
Optional. Delivery mode for the generated content.
Corresponds to the JSON property delivery
28878 28879 28880 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28878 def delivery @delivery end |
#image_size ⇒ String
Optional. The size of the image output.
Corresponds to the JSON property imageSize
28883 28884 28885 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28883 def image_size @image_size end |
#mime_type ⇒ String
Optional. The MIME type of the image output.
Corresponds to the JSON property mimeType
28888 28889 28890 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28888 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
28895 28896 28897 28898 28899 28900 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 28895 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 |