Class: Google::Apis::CesV1::Image
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::Image
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb
Overview
Represents an image input or output in the conversation.
Instance Attribute Summary collapse
-
#data ⇒ String
Required.
-
#mime_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
4182 4183 4184 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4182 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ String
Required. Raw bytes of the image.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
4174 4175 4176 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4174 def data @data end |
#mime_type ⇒ String
Required. The IANA standard MIME type of the source data. Supported image
types includes: * image/png * image/jpeg * image/webp
Corresponds to the JSON property mimeType
4180 4181 4182 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4180 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4187 4188 4189 4190 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4187 def update!(**args) @data = args[:data] if args.key?(:data) @mime_type = args[:mime_type] if args.key?(:mime_type) end |