Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CustomPronunciationParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1CustomPronunciationParams

Returns a new instance of GoogleCloudDialogflowV2beta1CustomPronunciationParams.



12870
12871
12872
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12870

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

Instance Attribute Details

#phonetic_encodingString

Corresponds to the JSON property phoneticEncoding

Returns:

  • (String)


12858
12859
12860
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12858

def phonetic_encoding
  @phonetic_encoding
end

#phraseString

Corresponds to the JSON property phrase

Returns:

  • (String)


12863
12864
12865
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12863

def phrase
  @phrase
end

#pronunciationString

Corresponds to the JSON property pronunciation

Returns:

  • (String)


12868
12869
12870
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12868

def pronunciation
  @pronunciation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12875
12876
12877
12878
12879
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12875

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