Class: Google::Apis::SpeechV1::CreatePhraseSetRequest

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreatePhraseSetRequest

Returns a new instance of CreatePhraseSetRequest.



90
91
92
# File 'lib/google/apis/speech_v1/classes.rb', line 90

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

Instance Attribute Details

#phrase_setGoogle::Apis::SpeechV1::PhraseSet

Provides "hints" to the speech recognizer to favor specific words and phrases in the results. Corresponds to the JSON property phraseSet



81
82
83
# File 'lib/google/apis/speech_v1/classes.rb', line 81

def phrase_set
  @phrase_set
end

#phrase_set_idString

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

Returns:

  • (String)


88
89
90
# File 'lib/google/apis/speech_v1/classes.rb', line 88

def phrase_set_id
  @phrase_set_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



95
96
97
98
# File 'lib/google/apis/speech_v1/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