Class: Google::Apis::SpeechV1::CreateCustomClassRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_classGoogle::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_idString

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

Returns:

  • (String)


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