class Google::Apis::SpeechV1p1beta1::CustomClass
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.
Attributes
custom_class_id[RW]
If this custom class is a resource, the custom_class_id
is the resource id of the CustomClass
. Case sensitive. Corresponds to the JSON property `customClassId` @return [String]
items[RW]
A collection of class items. Corresponds to the JSON property `items` @return [Array<Google::Apis::SpeechV1p1beta1::ClassItem>]
name[RW]
The resource name of the custom class. Corresponds to the JSON property `name` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 123 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 128 def update!(**args) @custom_class_id = args[:custom_class_id] if args.key?(:custom_class_id) @items = args[:items] if args.key?(:items) @name = args[:name] if args.key?(:name) end