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.



63
64
65
# File 'lib/google/apis/speech_v1/classes.rb', line 63

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 restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. Corresponds to the JSON property customClassId

Returns:

  • (String)


61
62
63
# File 'lib/google/apis/speech_v1/classes.rb', line 61

def custom_class_id
  @custom_class_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



68
69
70
71
# File 'lib/google/apis/speech_v1/classes.rb', line 68

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