Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImageResponseFormat

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ImageResponseFormat

Returns a new instance of GoogleCloudAiplatformV1beta1ImageResponseFormat.



27447
27448
27449
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27447

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aspect_ratioString

Optional. The aspect ratio for the image output. Corresponds to the JSON property aspectRatio

Returns:

  • (String)


27430
27431
27432
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27430

def aspect_ratio
  @aspect_ratio
end

#deliveryString

Optional. Delivery mode for the generated content. Corresponds to the JSON property delivery

Returns:

  • (String)


27435
27436
27437
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27435

def delivery
  @delivery
end

#image_sizeString

Optional. The size of the image output. Corresponds to the JSON property imageSize

Returns:

  • (String)


27440
27441
27442
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27440

def image_size
  @image_size
end

#mime_typeString

Optional. The MIME type of the image output. Corresponds to the JSON property mimeType

Returns:

  • (String)


27445
27446
27447
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27445

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27452
27453
27454
27455
27456
27457
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27452

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