Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SafetySettingsPhrase

Inherits:
Object
  • Object
show all
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

Overview

Text input which can be used for prompt or banned phrases.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SafetySettingsPhrase

Returns a new instance of GoogleCloudDialogflowCxV3SafetySettingsPhrase.



6908
6909
6910
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6908

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#language_codeString

Required. Language code of the phrase. Corresponds to the JSON property languageCode

Returns:

  • (String)


6901
6902
6903
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6901

def language_code
  @language_code
end

#textString

Required. Text input which can be used for prompt or banned phrases. Corresponds to the JSON property text

Returns:

  • (String)


6906
6907
6908
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6906

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6913
6914
6915
6916
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6913

def update!(**args)
  @language_code = args[:language_code] if args.key?(:language_code)
  @text = args[:text] if args.key?(:text)
end