class Google::Apis::SpeechV1p1beta1::CreatePhraseSetRequest

Message sent by the client for the `CreatePhraseSet` method.

Attributes

phrase_set[RW]

Provides “hints” to the speech recognizer to favor specific words and phrases in the results. Corresponds to the JSON property `phraseSet` @return [Google::Apis::SpeechV1p1beta1::PhraseSet]

phrase_set_id[RW]

Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Corresponds to the JSON property `phraseSetId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 90
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 95
def update!(**args)
  @phrase_set = args[:phrase_set] if args.key?(:phrase_set)
  @phrase_set_id = args[:phrase_set_id] if args.key?(:phrase_set_id)
end