Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageContent
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageContent
- 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
An image content block.
Instance Attribute Summary collapse
-
#data ⇒ String
The image content.
-
#mime_type ⇒ String
The mime type of the image.
-
#resolution ⇒ String
The resolution of the media.
-
#uri ⇒ String
The URI of the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1ImageContent
constructor
A new instance of GenaiVertexV1beta1ImageContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1ImageContent
Returns a new instance of GenaiVertexV1beta1ImageContent.
3164 3165 3166 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3164 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ String
The image content.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
3147 3148 3149 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3147 def data @data end |
#mime_type ⇒ String
The mime type of the image.
Corresponds to the JSON property mimeType
3152 3153 3154 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3152 def mime_type @mime_type end |
#resolution ⇒ String
The resolution of the media.
Corresponds to the JSON property resolution
3157 3158 3159 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3157 def resolution @resolution end |
#uri ⇒ String
The URI of the image.
Corresponds to the JSON property uri
3162 3163 3164 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3162 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3169 3170 3171 3172 3173 3174 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3169 def update!(**args) @data = args[:data] if args.key?(:data) @mime_type = args[:mime_type] if args.key?(:mime_type) @resolution = args[:resolution] if args.key?(:resolution) @uri = args[:uri] if args.key?(:uri) end |