Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput
- 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
-
#language_code ⇒ String
Corresponds to the JSON property
languageCode. -
#text ⇒ String
Corresponds to the JSON property
text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2TextInput
constructor
A new instance of GoogleCloudDialogflowV2TextInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2TextInput
Returns a new instance of GoogleCloudDialogflowV2TextInput.
17108 17109 17110 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17108 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
Corresponds to the JSON property languageCode
17101 17102 17103 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17101 def language_code @language_code end |
#text ⇒ String
Corresponds to the JSON property text
17106 17107 17108 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17106 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17113 17114 17115 17116 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17113 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @text = args[:text] if args.key?(:text) end |