Class: Google::Apis::SpeechV1::CreateCustomClassRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1::CreateCustomClassRequest
- 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
Message sent by the client for the CreateCustomClass method.
Instance Attribute Summary collapse
-
#custom_class ⇒ Google::Apis::SpeechV1::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.
-
#custom_class_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateCustomClassRequest
constructor
A new instance of CreateCustomClassRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateCustomClassRequest
Returns a new instance of CreateCustomClassRequest.
62 63 64 |
# File 'lib/google/apis/speech_v1/classes.rb', line 62 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_class ⇒ Google::Apis::SpeechV1::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.
Corresponds to the JSON property customClass
53 54 55 |
# File 'lib/google/apis/speech_v1/classes.rb', line 53 def custom_class @custom_class end |
#custom_class_id ⇒ String
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
60 61 62 |
# File 'lib/google/apis/speech_v1/classes.rb', line 60 def custom_class_id @custom_class_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
67 68 69 70 |
# File 'lib/google/apis/speech_v1/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 |