Class: Google::Apis::SpeechV1p1beta1::CreateCustomClassRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/speech_v1p1beta1/classes.rb,
lib/google/apis/speech_v1p1beta1/representations.rb,
lib/google/apis/speech_v1p1beta1/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.



83
84
85
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 83

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_classGoogle::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. Corresponds to the JSON property customClass



73
74
75
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 73

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)


81
82
83
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 81

def custom_class_id
  @custom_class_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



88
89
90
91
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 88

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