Class: Google::Apis::SpeechV1p1beta1::CreatePhraseSetRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/speech_v1p1beta1/classes.rb,
lib/google/apis/speech_v1p1beta1/representations.rb,
lib/google/apis/speech_v1p1beta1/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.



92
93
94
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 92

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

Instance Attribute Details

#phrase_setGoogle::Apis::SpeechV1p1beta1::PhraseSet

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



82
83
84
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 82

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 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

Returns:

  • (String)


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

def phrase_set_id
  @phrase_set_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



97
98
99
100
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 97

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