Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageResponseFormat

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 output format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1ImageResponseFormat

Returns a new instance of GenaiVertexV1beta1ImageResponseFormat.



2981
2982
2983
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2981

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

Instance Attribute Details

#aspect_ratioString

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

Returns:

  • (String)


2964
2965
2966
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2964

def aspect_ratio
  @aspect_ratio
end

#deliveryString

The delivery mode for the image output. Corresponds to the JSON property delivery

Returns:

  • (String)


2969
2970
2971
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2969

def delivery
  @delivery
end

#image_sizeString

The size of the image output. Corresponds to the JSON property image_size

Returns:

  • (String)


2974
2975
2976
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2974

def image_size
  @image_size
end

#mime_typeString

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

Returns:

  • (String)


2979
2980
2981
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2979

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2986
2987
2988
2989
2990
2991
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2986

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