Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Represents a message entry of a conversation.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Optional.
-
#language_code ⇒ String
Optional.
-
#role ⇒ String
Optional.
-
#text ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1MessageEntry
constructor
A new instance of GoogleCloudDialogflowV2beta1MessageEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1MessageEntry
Returns a new instance of GoogleCloudDialogflowV2beta1MessageEntry.
17690 17691 17692 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17690 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Optional. Create time of the message entry.
Corresponds to the JSON property createTime
17671 17672 17673 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17671 def create_time @create_time end |
#language_code ⇒ String
Optional. The language of the text. See Language Support for a list of the currently
supported language codes.
Corresponds to the JSON property languageCode
17678 17679 17680 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17678 def language_code @language_code end |
#role ⇒ String
Optional. Participant role of the message.
Corresponds to the JSON property role
17683 17684 17685 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17683 def role @role end |
#text ⇒ String
Optional. Transcript content of the message.
Corresponds to the JSON property text
17688 17689 17690 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17688 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17695 17696 17697 17698 17699 17700 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17695 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @language_code = args[:language_code] if args.key?(:language_code) @role = args[:role] if args.key?(:role) @text = args[:text] if args.key?(:text) end |