Class: Google::Apis::CesV1::Blob
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::Blob
- 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 a blob input or output in the conversation.
Instance Attribute Summary collapse
-
#data ⇒ String
Required.
-
#mime_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Blob
constructor
A new instance of Blob.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Blob
Returns a new instance of Blob.
1269 1270 1271 |
# File 'lib/google/apis/ces_v1/classes.rb', line 1269 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ String
Required. Raw bytes of the blob.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
1262 1263 1264 |
# File 'lib/google/apis/ces_v1/classes.rb', line 1262 def data @data end |
#mime_type ⇒ String
Required. The IANA standard MIME type of the source data.
Corresponds to the JSON property mimeType
1267 1268 1269 |
# File 'lib/google/apis/ces_v1/classes.rb', line 1267 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1274 1275 1276 1277 |
# File 'lib/google/apis/ces_v1/classes.rb', line 1274 def update!(**args) @data = args[:data] if args.key?(:data) @mime_type = args[:mime_type] if args.key?(:mime_type) end |