Class: Google::Apis::SpeechV1p1beta1::CustomClass
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1p1beta1::CustomClass
- 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
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
-
#custom_class_id ⇒ String
If this custom class is a resource, the custom_class_id is the resource id of the CustomClass.
-
#items ⇒ Array<Google::Apis::SpeechV1p1beta1::ClassItem>
A collection of class items.
-
#kms_key_name ⇒ String
Output only.
-
#kms_key_version_name ⇒ String
Output only.
-
#name ⇒ String
The resource name of the custom class.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomClass
constructor
A new instance of CustomClass.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomClass
Returns a new instance of CustomClass.
162 163 164 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_class_id ⇒ String
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
133 134 135 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 133 def custom_class_id @custom_class_id end |
#items ⇒ Array<Google::Apis::SpeechV1p1beta1::ClassItem>
A collection of class items.
Corresponds to the JSON property items
138 139 140 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 138 def items @items end |
#kms_key_name ⇒ String
Output only. The KMS key name with which the content of the ClassItem is encrypted. The
expected format is projects/
project/locations/
location/keyRings/
key_ring
/cryptoKeys/
crypto_key`.
Corresponds to the JSON property
kmsKeyName`
146 147 148 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 146 def kms_key_name @kms_key_name end |
#kms_key_version_name ⇒ String
Output only. The KMS key version name with which content of the ClassItem is
encrypted. The expected format is projects/
project/locations/
location/
keyRings/
key_ring/cryptoKeys/
crypto_key/cryptoKeyVersions/
crypto_key_version`.
Corresponds to the JSON property
kmsKeyVersionName`
155 156 157 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 155 def kms_key_version_name @kms_key_version_name end |
#name ⇒ String
The resource name of the custom class.
Corresponds to the JSON property name
160 161 162 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 160 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
167 168 169 170 171 172 173 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 167 def update!(**args) @custom_class_id = args[:custom_class_id] if args.key?(:custom_class_id) @items = args[:items] if args.key?(:items) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name) @name = args[:name] if args.key?(:name) end |