Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/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) ⇒ GoogleCloudDialogflowCxV3SafetySettingsPhrase
constructor
A new instance of GoogleCloudDialogflowCxV3SafetySettingsPhrase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SafetySettingsPhrase
Returns a new instance of GoogleCloudDialogflowCxV3SafetySettingsPhrase.
7159 7160 7161 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7159 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
Corresponds to the JSON property languageCode
7152 7153 7154 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7152 def language_code @language_code end |
#text ⇒ String
Corresponds to the JSON property text
7157 7158 7159 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7157 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7164 7165 7166 7167 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7164 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @text = args[:text] if args.key?(:text) end |