Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ImageResponseFormat

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ImageResponseFormat

Returns a new instance of GoogleCloudAiplatformV1ImageResponseFormat.



19012
19013
19014
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19012

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)


18995
18996
18997
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18995

def aspect_ratio
  @aspect_ratio
end

#deliveryString

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

Returns:

  • (String)


19000
19001
19002
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19000

def delivery
  @delivery
end

#image_sizeString

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

Returns:

  • (String)


19005
19006
19007
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19005

def image_size
  @image_size
end

#mime_typeString

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

Returns:

  • (String)


19010
19011
19012
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19010

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19017
19018
19019
19020
19021
19022
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 19017

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