Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CustomPronunciationParams
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CustomPronunciationParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Pronunciation customization for a phrase.
Instance Attribute Summary collapse
-
#phonetic_encoding ⇒ String
The phonetic encoding of the phrase.
-
#phrase ⇒ String
The phrase to which the customization is applied.
-
#pronunciation ⇒ String
The pronunciation of the phrase.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1CustomPronunciationParams
constructor
A new instance of GoogleCloudDialogflowV2beta1CustomPronunciationParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1CustomPronunciationParams
Returns a new instance of GoogleCloudDialogflowV2beta1CustomPronunciationParams.
14314 14315 14316 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14314 def initialize(**args) update!(**args) end |
Instance Attribute Details
#phonetic_encoding ⇒ String
The phonetic encoding of the phrase.
Corresponds to the JSON property phoneticEncoding
14300 14301 14302 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14300 def phonetic_encoding @phonetic_encoding end |
#phrase ⇒ String
The phrase to which the customization is applied. The phrase can be multiple
words, such as proper nouns, but shouldn't span the length of the sentence.
Corresponds to the JSON property phrase
14306 14307 14308 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14306 def phrase @phrase end |
#pronunciation ⇒ String
The pronunciation of the phrase. This must be in the phonetic encoding
specified above.
Corresponds to the JSON property pronunciation
14312 14313 14314 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14312 def pronunciation @pronunciation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14319 14320 14321 14322 14323 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14319 def update!(**args) @phonetic_encoding = args[:phonetic_encoding] if args.key?(:phonetic_encoding) @phrase = args[:phrase] if args.key?(:phrase) @pronunciation = args[:pronunciation] if args.key?(:pronunciation) end |