class Google::Apis::SpeechV1p1beta1::CreateCustomClassRequest
Message sent by the client for the `CreateCustomClass` method.
Attributes
custom_class[RW]
A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass
items can be substituted into placeholders that you set in PhraseSet
phrases. Corresponds to the JSON property `customClass` @return [Google::Apis::SpeechV1p1beta1::CustomClass]
custom_class_id[RW]
Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Corresponds to the JSON property `customClassId` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 62 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 67 def update!(**args) @custom_class = args[:custom_class] if args.key?(:custom_class) @custom_class_id = args[:custom_class_id] if args.key?(:custom_class_id) end