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
Instance Attribute Summary collapse
-
#create_time ⇒ String
Corresponds to the JSON property
createTime. -
#language_code ⇒ String
Corresponds to the JSON property
languageCode. -
#role ⇒ String
Corresponds to the JSON property
role. -
#text ⇒ String
Corresponds to the JSON property
text.
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.
14221 14222 14223 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14221 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Corresponds to the JSON property createTime
14204 14205 14206 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14204 def create_time @create_time end |
#language_code ⇒ String
Corresponds to the JSON property languageCode
14209 14210 14211 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14209 def language_code @language_code end |
#role ⇒ String
Corresponds to the JSON property role
14214 14215 14216 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14214 def role @role end |
#text ⇒ String
Corresponds to the JSON property text
14219 14220 14221 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14219 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14226 14227 14228 14229 14230 14231 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14226 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 |