Class: Google::Apis::CesV1::Message
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::Message
- 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
A message within a conversation.
Instance Attribute Summary collapse
-
#chunks ⇒ Array<Google::Apis::CesV1::Chunk>
Optional.
-
#event_time ⇒ String
Optional.
-
#role ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Message
constructor
A new instance of Message.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Message
Returns a new instance of Message.
6374 6375 6376 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6374 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunks ⇒ Array<Google::Apis::CesV1::Chunk>
Optional. Content of the message as a series of chunks.
Corresponds to the JSON property chunks
6361 6362 6363 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6361 def chunks @chunks end |
#event_time ⇒ String
Optional. Timestamp when the message was sent or received. Should not be used
if the message is part of an example.
Corresponds to the JSON property eventTime
6367 6368 6369 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6367 def event_time @event_time end |
#role ⇒ String
Optional. The role within the conversation, e.g., user, agent.
Corresponds to the JSON property role
6372 6373 6374 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6372 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6379 6380 6381 6382 6383 |
# File 'lib/google/apis/ces_v1/classes.rb', line 6379 def update!(**args) @chunks = args[:chunks] if args.key?(:chunks) @event_time = args[:event_time] if args.key?(:event_time) @role = args[:role] if args.key?(:role) end |