Class: Google::Apis::SpeechV1p1beta1::CustomClass

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomClass

Returns a new instance of CustomClass.



66
67
68
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 66

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

Instance Attribute Details

#custom_class_idString

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

Returns:

  • (String)


54
55
56
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 54

def custom_class_id
  @custom_class_id
end

#itemsArray<Google::Apis::SpeechV1p1beta1::ClassItem>

A collection of class items. Corresponds to the JSON property items



59
60
61
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 59

def items
  @items
end

#nameString

The resource name of the custom class. Corresponds to the JSON property name

Returns:

  • (String)


64
65
66
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 64

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



71
72
73
74
75
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 71

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