Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ImageResponseFormat
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ImageResponseFormat
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/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) ⇒ GoogleCloudAiplatformV1ImageResponseFormat
constructor
A new instance of GoogleCloudAiplatformV1ImageResponseFormat.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ImageResponseFormat
Returns a new instance of GoogleCloudAiplatformV1ImageResponseFormat.
18999 19000 19001 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18999 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
18982 18983 18984 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18982 def aspect_ratio @aspect_ratio end |
#delivery ⇒ String
Optional. Delivery mode for the generated content.
Corresponds to the JSON property delivery
18987 18988 18989 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18987 def delivery @delivery end |
#image_size ⇒ String
Optional. The size of the image output.
Corresponds to the JSON property imageSize
18992 18993 18994 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18992 def image_size @image_size end |
#mime_type ⇒ String
Optional. The MIME type of the image output.
Corresponds to the JSON property mimeType
18997 18998 18999 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18997 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19004 19005 19006 19007 19008 19009 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19004 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 |