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.



112
113
114
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 112

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



102
103
104
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 102

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)


110
111
112
# File 'lib/google/apis/speech_v1p1beta1/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_v1p1beta1/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