class Google::Apis::SpeechV1p1beta1::SpeechAdaptation

Speech adaptation configuration.

Attributes

custom_classes[RW]

A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique ` custom_class_id`. Refer to the inline defined class in phrase hints by its ` custom_class_id`. Corresponds to the JSON property `customClasses` @return [Array<Google::Apis::SpeechV1p1beta1::CustomClass>]

phrase_set_references[RW]

A collection of phrase set resource names to use. Corresponds to the JSON property `phraseSetReferences` @return [Array<String>]

phrase_sets[RW]

A collection of phrase sets. To specify the hints inline, leave the phrase set' s `name` blank and fill in the rest of its fields. Any phrase set can use any custom class. Corresponds to the JSON property `phraseSets` @return [Array<Google::Apis::SpeechV1p1beta1::PhraseSet>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 1006
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/speech_v1p1beta1/classes.rb, line 1011
def update!(**args)
  @custom_classes = args[:custom_classes] if args.key?(:custom_classes)
  @phrase_set_references = args[:phrase_set_references] if args.key?(:phrase_set_references)
  @phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
end