Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CustomPronunciationParams

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2CustomPronunciationParams

Returns a new instance of GoogleCloudDialogflowV2CustomPronunciationParams.



9003
9004
9005
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9003

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

Instance Attribute Details

#phonetic_encodingString

Corresponds to the JSON property phoneticEncoding

Returns:

  • (String)


8991
8992
8993
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8991

def phonetic_encoding
  @phonetic_encoding
end

#phraseString

Corresponds to the JSON property phrase

Returns:

  • (String)


8996
8997
8998
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8996

def phrase
  @phrase
end

#pronunciationString

Corresponds to the JSON property pronunciation

Returns:

  • (String)


9001
9002
9003
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9001

def pronunciation
  @pronunciation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9008
9009
9010
9011
9012
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9008

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