Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageEntry
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/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) ⇒ GoogleCloudDialogflowV2MessageEntry
constructor
A new instance of GoogleCloudDialogflowV2MessageEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2MessageEntry
Returns a new instance of GoogleCloudDialogflowV2MessageEntry.
13801 13802 13803 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13801 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
13782 13783 13784 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13782 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
13789 13790 13791 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13789 def language_code @language_code end |
#role ⇒ String
Optional. Participant role of the message.
Corresponds to the JSON property role
13794 13795 13796 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13794 def role @role end |
#text ⇒ String
Optional. Transcript content of the message.
Corresponds to the JSON property text
13799 13800 13801 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13799 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13806 13807 13808 13809 13810 13811 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13806 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 |