Debian Codegraph @

docs/dyn/speech_v1.projects.locations.customClasses.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="speech_v1.html">Cloud Speech-to-Text API</a> . <a href="speech_v1.projects.html">projects</a> . <a href="speech_v1.projects.locations.html">locations</a> . <a href="speech_v1.projects.locations.customClasses.html">customClasses</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a custom class.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Delete a custom class.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Get a custom class.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">List custom classes.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Update a custom class.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>Create a custom class.
107
108 Args:
109 parent: string, Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Message sent by the client for the `CreateCustomClass` method.
114 &quot;customClass&quot;: { # 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. # Required. The custom class to create.
115 &quot;annotations&quot;: { # 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.
116 &quot;a_key&quot;: &quot;A String&quot;,
117 },
118 &quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
119 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource was requested for deletion. This field is not used.
120 &quot;displayName&quot;: &quot;A String&quot;, # Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
121 &quot;etag&quot;: &quot;A String&quot;, # 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.
122 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource will be purged. This field is not used.
123 &quot;items&quot;: [ # A collection of class items.
124 { # An item of the class.
125 &quot;value&quot;: &quot;A String&quot;, # The class item&#x27;s value.
126 },
127 ],
128 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
129 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) 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}`.
130 &quot;name&quot;: &quot;A String&quot;, # The resource name of the custom class.
131 &quot;reconciling&quot;: True or False, # Output only. Whether or not this CustomClass is in the process of being updated. This field is not used.
132 &quot;state&quot;: &quot;A String&quot;, # Output only. The CustomClass lifecycle state. This field is not used.
133 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned unique identifier for the CustomClass. This field is not used.
134 },
135 &quot;customClassId&quot;: &quot;A String&quot;, # Required. The ID to use for the custom class, which will become the final component of the custom class&#x27; 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.
136 }
137
138 x__xgafv: string, V1 error format.
139 Allowed values
140 1 - v1 error format
141 2 - v2 error format
142
143 Returns:
144 An object of the form:
145
146 { # 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.
147 &quot;annotations&quot;: { # 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.
148 &quot;a_key&quot;: &quot;A String&quot;,
149 },
150 &quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
151 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource was requested for deletion. This field is not used.
152 &quot;displayName&quot;: &quot;A String&quot;, # Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
153 &quot;etag&quot;: &quot;A String&quot;, # 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.
154 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource will be purged. This field is not used.
155 &quot;items&quot;: [ # A collection of class items.
156 { # An item of the class.
157 &quot;value&quot;: &quot;A String&quot;, # The class item&#x27;s value.
158 },
159 ],
160 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
161 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) 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}`.
162 &quot;name&quot;: &quot;A String&quot;, # The resource name of the custom class.
163 &quot;reconciling&quot;: True or False, # Output only. Whether or not this CustomClass is in the process of being updated. This field is not used.
164 &quot;state&quot;: &quot;A String&quot;, # Output only. The CustomClass lifecycle state. This field is not used.
165 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned unique identifier for the CustomClass. This field is not used.
166 }</pre>
167 </div>
168
169 <div class="method">
170 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
171 <pre>Delete a custom class.
172
173 Args:
174 name: string, Required. The name of the custom class to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. (required)
175 x__xgafv: string, V1 error format.
176 Allowed values
177 1 - v1 error format
178 2 - v2 error format
179
180 Returns:
181 An object of the form:
182
183 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
184 }</pre>
185 </div>
186
187 <div class="method">
188 <code class="details" id="get">get(name, x__xgafv=None)</code>
189 <pre>Get a custom class.
190
191 Args:
192 name: string, Required. The name of the custom class to retrieve. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` (required)
193 x__xgafv: string, V1 error format.
194 Allowed values
195 1 - v1 error format
196 2 - v2 error format
197
198 Returns:
199 An object of the form:
200
201 { # 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.
202 &quot;annotations&quot;: { # 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.
203 &quot;a_key&quot;: &quot;A String&quot;,
204 },
205 &quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
206 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource was requested for deletion. This field is not used.
207 &quot;displayName&quot;: &quot;A String&quot;, # Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
208 &quot;etag&quot;: &quot;A String&quot;, # 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.
209 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource will be purged. This field is not used.
210 &quot;items&quot;: [ # A collection of class items.
211 { # An item of the class.
212 &quot;value&quot;: &quot;A String&quot;, # The class item&#x27;s value.
213 },
214 ],
215 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
216 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) 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}`.
217 &quot;name&quot;: &quot;A String&quot;, # The resource name of the custom class.
218 &quot;reconciling&quot;: True or False, # Output only. Whether or not this CustomClass is in the process of being updated. This field is not used.
219 &quot;state&quot;: &quot;A String&quot;, # Output only. The CustomClass lifecycle state. This field is not used.
220 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned unique identifier for the CustomClass. This field is not used.
221 }</pre>
222 </div>
223
224 <div class="method">
225 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
226 <pre>List custom classes.
227
228 Args:
229 parent: string, Required. The parent, which owns this collection of custom classes. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. (required)
230 pageSize: integer, The maximum number of custom classes to return. The service may return fewer than this value. If unspecified, at most 50 custom classes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
231 pageToken: string, A page token, received from a previous `ListCustomClass` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCustomClass` must match the call that provided the page token.
232 x__xgafv: string, V1 error format.
233 Allowed values
234 1 - v1 error format
235 2 - v2 error format
236
237 Returns:
238 An object of the form:
239
240 { # Message returned to the client by the `ListCustomClasses` method.
241 &quot;customClasses&quot;: [ # The custom classes.
242 { # 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.
243 &quot;annotations&quot;: { # 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.
244 &quot;a_key&quot;: &quot;A String&quot;,
245 },
246 &quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
247 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource was requested for deletion. This field is not used.
248 &quot;displayName&quot;: &quot;A String&quot;, # Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
249 &quot;etag&quot;: &quot;A String&quot;, # 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.
250 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource will be purged. This field is not used.
251 &quot;items&quot;: [ # A collection of class items.
252 { # An item of the class.
253 &quot;value&quot;: &quot;A String&quot;, # The class item&#x27;s value.
254 },
255 ],
256 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
257 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) 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}`.
258 &quot;name&quot;: &quot;A String&quot;, # The resource name of the custom class.
259 &quot;reconciling&quot;: True or False, # Output only. Whether or not this CustomClass is in the process of being updated. This field is not used.
260 &quot;state&quot;: &quot;A String&quot;, # Output only. The CustomClass lifecycle state. This field is not used.
261 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned unique identifier for the CustomClass. This field is not used.
262 },
263 ],
264 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
265 }</pre>
266 </div>
267
268 <div class="method">
269 <code class="details" id="list_next">list_next()</code>
270 <pre>Retrieves the next page of results.
271
272 Args:
273 previous_request: The request for the previous page. (required)
274 previous_response: The response from the request for the previous page. (required)
275
276 Returns:
277 A request object that you can call &#x27;execute()&#x27; on to request the next
278 page. Returns None if there are no more items in the collection.
279 </pre>
280 </div>
281
282 <div class="method">
283 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
284 <pre>Update a custom class.
285
286 Args:
287 name: string, The resource name of the custom class. (required)
288 body: object, The request body.
289 The object takes the form of:
290
291 { # 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.
292 &quot;annotations&quot;: { # 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.
293 &quot;a_key&quot;: &quot;A String&quot;,
294 },
295 &quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
296 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource was requested for deletion. This field is not used.
297 &quot;displayName&quot;: &quot;A String&quot;, # Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
298 &quot;etag&quot;: &quot;A String&quot;, # 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.
299 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource will be purged. This field is not used.
300 &quot;items&quot;: [ # A collection of class items.
301 { # An item of the class.
302 &quot;value&quot;: &quot;A String&quot;, # The class item&#x27;s value.
303 },
304 ],
305 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
306 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) 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}`.
307 &quot;name&quot;: &quot;A String&quot;, # The resource name of the custom class.
308 &quot;reconciling&quot;: True or False, # Output only. Whether or not this CustomClass is in the process of being updated. This field is not used.
309 &quot;state&quot;: &quot;A String&quot;, # Output only. The CustomClass lifecycle state. This field is not used.
310 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned unique identifier for the CustomClass. This field is not used.
311 }
312
313 updateMask: string, The list of fields to be updated.
314 x__xgafv: string, V1 error format.
315 Allowed values
316 1 - v1 error format
317 2 - v2 error format
318
319 Returns:
320 An object of the form:
321
322 { # 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.
323 &quot;annotations&quot;: { # 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.
324 &quot;a_key&quot;: &quot;A String&quot;,
325 },
326 &quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
327 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource was requested for deletion. This field is not used.
328 &quot;displayName&quot;: &quot;A String&quot;, # Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
329 &quot;etag&quot;: &quot;A String&quot;, # 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.
330 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource will be purged. This field is not used.
331 &quot;items&quot;: [ # A collection of class items.
332 { # An item of the class.
333 &quot;value&quot;: &quot;A String&quot;, # The class item&#x27;s value.
334 },
335 ],
336 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
337 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) 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}`.
338 &quot;name&quot;: &quot;A String&quot;, # The resource name of the custom class.
339 &quot;reconciling&quot;: True or False, # Output only. Whether or not this CustomClass is in the process of being updated. This field is not used.
340 &quot;state&quot;: &quot;A String&quot;, # Output only. The CustomClass lifecycle state. This field is not used.
341 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned unique identifier for the CustomClass. This field is not used.
342 }</pre>
343 </div>
344
345 </body></html>