Class: Google::Apis::SpeechV1::CustomClass
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1::CustomClass
- 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
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
-
#annotations ⇒ Hash<String,String>
Output only.
-
#custom_class_id ⇒ String
If this custom class is a resource, the custom_class_id is the resource id of the CustomClass.
-
#delete_time ⇒ String
Output only.
-
#display_name ⇒ String
Output only.
-
#etag ⇒ String
Output only.
-
#expire_time ⇒ String
Output only.
-
#items ⇒ Array<Google::Apis::SpeechV1::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.
-
#reconciling ⇒ Boolean
(also: #reconciling?)
Output only.
-
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
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.
213 214 215 |
# File 'lib/google/apis/speech_v1/classes.rb', line 213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<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
134 135 136 |
# File 'lib/google/apis/speech_v1/classes.rb', line 134 def annotations @annotations end |
#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
140 141 142 |
# File 'lib/google/apis/speech_v1/classes.rb', line 140 def custom_class_id @custom_class_id end |
#delete_time ⇒ String
Output only. The time at which this resource was requested for deletion. This
field is not used.
Corresponds to the JSON property deleteTime
146 147 148 |
# File 'lib/google/apis/speech_v1/classes.rb', line 146 def delete_time @delete_time end |
#display_name ⇒ String
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
152 153 154 |
# File 'lib/google/apis/speech_v1/classes.rb', line 152 def display_name @display_name end |
#etag ⇒ String
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
160 161 162 |
# File 'lib/google/apis/speech_v1/classes.rb', line 160 def etag @etag end |
#expire_time ⇒ String
Output only. The time at which this resource will be purged. This field is not
used.
Corresponds to the JSON property expireTime
166 167 168 |
# File 'lib/google/apis/speech_v1/classes.rb', line 166 def expire_time @expire_time end |
#items ⇒ Array<Google::Apis::SpeechV1::ClassItem>
A collection of class items.
Corresponds to the JSON property items
171 172 173 |
# File 'lib/google/apis/speech_v1/classes.rb', line 171 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`
179 180 181 |
# File 'lib/google/apis/speech_v1/classes.rb', line 179 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`
188 189 190 |
# File 'lib/google/apis/speech_v1/classes.rb', line 188 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
193 194 195 |
# File 'lib/google/apis/speech_v1/classes.rb', line 193 def name @name end |
#reconciling ⇒ Boolean 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
199 200 201 |
# File 'lib/google/apis/speech_v1/classes.rb', line 199 def reconciling @reconciling end |
#state ⇒ String
Output only. The CustomClass lifecycle state. This field is not used.
Corresponds to the JSON property state
205 206 207 |
# File 'lib/google/apis/speech_v1/classes.rb', line 205 def state @state end |
#uid ⇒ String
Output only. System-assigned unique identifier for the CustomClass. This field
is not used.
Corresponds to the JSON property uid
211 212 213 |
# File 'lib/google/apis/speech_v1/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_v1/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 |