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

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

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.



213
214
215
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 213

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

Instance Attribute Details

#annotationsHash<String,String>

Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


134
135
136
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 134

def annotations
  @annotations
end

#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)


140
141
142
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 140

def custom_class_id
  @custom_class_id
end

#delete_timeString

Output only. The time at which this resource was requested for deletion. This field is not used. Corresponds to the JSON property deleteTime

Returns:

  • (String)


146
147
148
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 146

def delete_time
  @delete_time
end

#display_nameString

Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used. Corresponds to the JSON property displayName

Returns:

  • (String)


152
153
154
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 152

def display_name
  @display_name
end

#etagString

Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used. Corresponds to the JSON property etag

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 160

def etag
  @etag
end

#expire_timeString

Output only. The time at which this resource will be purged. This field is not used. Corresponds to the JSON property expireTime

Returns:

  • (String)


166
167
168
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 166

def expire_time
  @expire_time
end

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

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



171
172
173
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 171

def items
  @items
end

#kms_key_nameString

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 propertykmsKeyName`

Returns:

  • (String)


179
180
181
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 179

def kms_key_name
  @kms_key_name
end

#kms_key_version_nameString

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 propertykmsKeyVersionName`

Returns:

  • (String)


188
189
190
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 188

def kms_key_version_name
  @kms_key_version_name
end

#nameString

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

Returns:

  • (String)


193
194
195
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 193

def name
  @name
end

#reconcilingBoolean Also known as: reconciling?

Output only. Whether or not this CustomClass is in the process of being updated. This field is not used. Corresponds to the JSON property reconciling

Returns:

  • (Boolean)


199
200
201
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 199

def reconciling
  @reconciling
end

#stateString

Output only. The CustomClass lifecycle state. This field is not used. Corresponds to the JSON property state

Returns:

  • (String)


205
206
207
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 205

def state
  @state
end

#uidString

Output only. System-assigned unique identifier for the CustomClass. This field is not used. Corresponds to the JSON property uid

Returns:

  • (String)


211
212
213
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 211

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 218

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @custom_class_id = args[:custom_class_id] if args.key?(:custom_class_id)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @etag = args[:etag] if args.key?(:etag)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @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)
  @reconciling = args[:reconciling] if args.key?(:reconciling)
  @state = args[:state] if args.key?(:state)
  @uid = args[:uid] if args.key?(:uid)
end