Class: Google::Apis::SpeechV1::CreatePhraseSetRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1::CreatePhraseSetRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/speech_v1/classes.rb,
lib/google/apis/speech_v1/representations.rb,
lib/google/apis/speech_v1/representations.rb
Overview
Message sent by the client for the CreatePhraseSet
method.
Instance Attribute Summary collapse
-
#phrase_set ⇒ Google::Apis::SpeechV1::PhraseSet
Provides "hints" to the speech recognizer to favor specific words and phrases in the results.
-
#phrase_set_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreatePhraseSetRequest
constructor
A new instance of CreatePhraseSetRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreatePhraseSetRequest
Returns a new instance of CreatePhraseSetRequest.
112 113 114 |
# File 'lib/google/apis/speech_v1/classes.rb', line 112 def initialize(**args) update!(**args) end |
Instance Attribute Details
#phrase_set ⇒ Google::Apis::SpeechV1::PhraseSet
Provides "hints" to the speech recognizer to favor specific words and phrases
in the results.
Corresponds to the JSON property phraseSet
102 103 104 |
# File 'lib/google/apis/speech_v1/classes.rb', line 102 def phrase_set @phrase_set end |
#phrase_set_id ⇒ String
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 restrict to
letters, numbers, and hyphens, with the first character a letter, the last a
letter or a number, and be 4-63 characters.
Corresponds to the JSON property phraseSetId
110 111 112 |
# File 'lib/google/apis/speech_v1/classes.rb', line 110 def phrase_set_id @phrase_set_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
117 118 119 120 |
# File 'lib/google/apis/speech_v1/classes.rb', line 117 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 |