Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/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) ⇒ GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase

Returns a new instance of GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase.



11927
11928
11929
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11927

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)


11920
11921
11922
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11920

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)


11925
11926
11927
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11925

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11932
11933
11934
11935
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 11932

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