Class: Google::Apis::SpeechV1::CustomClass
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1::CustomClass
- 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
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.
Instance Attribute Summary collapse
-
#custom_class_id ⇒ String
If this custom class is a resource, the custom_class_id is the resource id of the CustomClass.
-
#items ⇒ Array<Google::Apis::SpeechV1::ClassItem>
A collection of class items.
-
#name ⇒ String
The resource name of the custom class.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomClass
constructor
A new instance of CustomClass.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomClass
Returns a new instance of CustomClass.
123 124 125 |
# File 'lib/google/apis/speech_v1/classes.rb', line 123 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_class_id ⇒ String
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
111 112 113 |
# File 'lib/google/apis/speech_v1/classes.rb', line 111 def custom_class_id @custom_class_id end |
#items ⇒ Array<Google::Apis::SpeechV1::ClassItem>
A collection of class items.
Corresponds to the JSON property items
116 117 118 |
# File 'lib/google/apis/speech_v1/classes.rb', line 116 def items @items end |
#name ⇒ String
The resource name of the custom class.
Corresponds to the JSON property name
121 122 123 |
# File 'lib/google/apis/speech_v1/classes.rb', line 121 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
128 129 130 131 132 |
# File 'lib/google/apis/speech_v1/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 |