Debian Codegraph @

docs/dyn/contactcenterinsights_v1.projects.locations.datasets.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="contactcenterinsights_v1.html">Contact Center AI Insights API</a> . <a href="contactcenterinsights_v1.projects.html">projects</a> . <a href="contactcenterinsights_v1.projects.locations.html">locations</a> . <a href="contactcenterinsights_v1.projects.locations.datasets.html">datasets</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="contactcenterinsights_v1.projects.locations.datasets.conversations.html">conversations()</a></code>
79 </p>
80 <p class="firstline">Returns the conversations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="contactcenterinsights_v1.projects.locations.datasets.insightsdata.html">insightsdata()</a></code>
84 </p>
85 <p class="firstline">Returns the insightsdata Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#bulkDeleteFeedbackLabels">bulkDeleteFeedbackLabels(parent, body=None, x__xgafv=None)</a></code></p>
89 <p class="firstline">Delete feedback labels in bulk using a filter.</p>
90 <p class="toc_element">
91 <code><a href="#bulkDownloadFeedbackLabels">bulkDownloadFeedbackLabels(parent, body=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Download feedback labels in bulk from an external source. Currently supports exporting Quality AI example conversations with transcripts and question bodies.</p>
93 <p class="toc_element">
94 <code><a href="#bulkUploadFeedbackLabels">bulkUploadFeedbackLabels(parent, body=None, x__xgafv=None)</a></code></p>
95 <p class="firstline">Upload feedback labels from an external source in bulk. Currently supports labeling Quality AI example conversations.</p>
96 <p class="toc_element">
97 <code><a href="#close">close()</a></code></p>
98 <p class="firstline">Close httplib2 connections.</p>
99 <p class="toc_element">
100 <code><a href="#create">create(parent, body=None, datasetId=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">Creates a dataset.</p>
102 <p class="toc_element">
103 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
104 <p class="firstline">Delete a dataset.</p>
105 <p class="toc_element">
106 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
107 <p class="firstline">Gets a dataset.</p>
108 <p class="toc_element">
109 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
110 <p class="firstline">List datasets matching the input.</p>
111 <p class="toc_element">
112 <code><a href="#listAllFeedbackLabels">listAllFeedbackLabels(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
113 <p class="firstline">List all feedback labels by project number.</p>
114 <p class="toc_element">
115 <code><a href="#listAllFeedbackLabels_next">listAllFeedbackLabels_next()</a></code></p>
116 <p class="firstline">Retrieves the next page of results.</p>
117 <p class="toc_element">
118 <code><a href="#list_next">list_next()</a></code></p>
119 <p class="firstline">Retrieves the next page of results.</p>
120 <p class="toc_element">
121 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
122 <p class="firstline">Updates a dataset.</p>
123 <h3>Method Details</h3>
124 <div class="method">
125 <code class="details" id="bulkDeleteFeedbackLabels">bulkDeleteFeedbackLabels(parent, body=None, x__xgafv=None)</code>
126 <pre>Delete feedback labels in bulk using a filter.
127
128 Args:
129 parent: string, Required. The parent resource for new feedback labels. (required)
130 body: object, The request body.
131 The object takes the form of:
132
133 { # Request for the BulkDeleteFeedbackLabels endpoint.
134 &quot;filter&quot;: &quot;A String&quot;, # Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
135 &quot;parent&quot;: &quot;A String&quot;, # Required. The parent resource for new feedback labels.
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 { # This resource represents a long-running operation that is the result of a network API call.
147 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
148 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
149 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
150 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
151 {
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
153 },
154 ],
155 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
156 },
157 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159 },
160 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
161 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
162 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
163 },
164 }</pre>
165 </div>
166
167 <div class="method">
168 <code class="details" id="bulkDownloadFeedbackLabels">bulkDownloadFeedbackLabels(parent, body=None, x__xgafv=None)</code>
169 <pre>Download feedback labels in bulk from an external source. Currently supports exporting Quality AI example conversations with transcripts and question bodies.
170
171 Args:
172 parent: string, Required. The parent resource for new feedback labels. (required)
173 body: object, The request body.
174 The object takes the form of:
175
176 { # Request for the BulkDownloadFeedbackLabel endpoint.
177 &quot;conversationFilter&quot;: &quot;A String&quot;, # Optional. Filter parent conversations to download feedback labels for. When specified, the feedback labels will be downloaded for the conversations that match the filter. If `template_qa_scorecard_id` is set, all the conversations that match the filter will be paired with the questions under the scorecard for labeling.
178 &quot;feedbackLabelType&quot;: &quot;A String&quot;, # Optional. The type of feedback labels that will be downloaded.
179 &quot;filter&quot;: &quot;A String&quot;, # Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
180 &quot;gcsDestination&quot;: { # Google Cloud Storage Object details to write the feedback labels to. # A cloud storage bucket destination.
181 &quot;addWhitespace&quot;: True or False, # Optional. Add whitespace to the JSON file. Makes easier to read, but increases file size. Only applicable for JSON format.
182 &quot;alwaysPrintEmptyFields&quot;: True or False, # Optional. Always print fields with no presence. This is useful for printing fields that are not set, like implicit 0 value or empty lists/maps. Only applicable for JSON format.
183 &quot;format&quot;: &quot;A String&quot;, # Required. File format in which the labels will be exported.
184 &quot;objectUri&quot;: &quot;A String&quot;, # Required. The Google Cloud Storage URI to write the feedback labels to. The file name will be used as a prefix for the files written to the bucket if the output needs to be split across multiple files, otherwise it will be used as is. The file extension will be appended to the file name based on the format selected. E.g. `gs://bucket_name/object_uri_prefix`
185 &quot;recordsPerFileCount&quot;: &quot;A String&quot;, # Optional. The number of records per file. Applicable for either format.
186 },
187 &quot;maxDownloadCount&quot;: 42, # Optional. Limits the maximum number of feedback labels that will be downloaded. The first `N` feedback labels will be downloaded.
188 &quot;parent&quot;: &quot;A String&quot;, # Required. The parent resource for new feedback labels.
189 &quot;sheetsDestination&quot;: { # Google Sheets document details to write the feedback labels to. # A sheets document destination.
190 &quot;sheetTitle&quot;: &quot;A String&quot;, # Optional. The title of the new sheet to write the feedback labels to.
191 &quot;spreadsheetUri&quot;: &quot;A String&quot;, # Required. The Google Sheets document to write the feedback labels to. Retrieved from Google Sheets URI. E.g. `https://docs.google.com/spreadsheets/d/1234567890` The spreadsheet must be shared with the Insights P4SA. The spreadsheet ID written to will be returned as `file_names` in the BulkDownloadFeedbackLabelsMetadata.
192 },
193 &quot;templateQaScorecardId&quot;: [ # Optional. If set, a template for labeling conversations and scorecard questions will be created from the conversation_filter and the questions under the scorecard(s). The feedback label `filter` will be ignored.
194 &quot;A String&quot;,
195 ],
196 }
197
198 x__xgafv: string, V1 error format.
199 Allowed values
200 1 - v1 error format
201 2 - v2 error format
202
203 Returns:
204 An object of the form:
205
206 { # This resource represents a long-running operation that is the result of a network API call.
207 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
208 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
209 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
210 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
211 {
212 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
213 },
214 ],
215 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
216 },
217 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
218 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
219 },
220 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
221 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
223 },
224 }</pre>
225 </div>
226
227 <div class="method">
228 <code class="details" id="bulkUploadFeedbackLabels">bulkUploadFeedbackLabels(parent, body=None, x__xgafv=None)</code>
229 <pre>Upload feedback labels from an external source in bulk. Currently supports labeling Quality AI example conversations.
230
231 Args:
232 parent: string, Required. The parent resource for new feedback labels. (required)
233 body: object, The request body.
234 The object takes the form of:
235
236 { # The request for bulk uploading feedback labels.
237 &quot;gcsSource&quot;: { # Google Cloud Storage Object details to get the feedback label file from. # A cloud storage bucket source.
238 &quot;format&quot;: &quot;A String&quot;, # Required. File format which will be ingested.
239 &quot;objectUri&quot;: &quot;A String&quot;, # Required. The Google Cloud Storage URI of the file to import. Format: `gs://bucket_name/object_name`
240 },
241 &quot;sheetsSource&quot;: { # Google Sheets document details to get the feedback label file from. # A sheets document source.
242 &quot;spreadsheetUri&quot;: &quot;A String&quot;, # Required. The Google Sheets document to write the feedback labels to. Retrieved from Google Sheets URI. E.g. `https://docs.google.com/spreadsheets/d/1234567890` The spreadsheet must be shared with the Insights P4SA.
243 },
244 &quot;validateOnly&quot;: True or False, # Optional. If set, upload will not happen and the labels will be validated. If not set, then default behavior will be to upload the labels after validation is complete.
245 }
246
247 x__xgafv: string, V1 error format.
248 Allowed values
249 1 - v1 error format
250 2 - v2 error format
251
252 Returns:
253 An object of the form:
254
255 { # This resource represents a long-running operation that is the result of a network API call.
256 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
257 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
258 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
259 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
260 {
261 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
262 },
263 ],
264 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
265 },
266 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
267 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
268 },
269 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
270 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
271 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
272 },
273 }</pre>
274 </div>
275
276 <div class="method">
277 <code class="details" id="close">close()</code>
278 <pre>Close httplib2 connections.</pre>
279 </div>
280
281 <div class="method">
282 <code class="details" id="create">create(parent, body=None, datasetId=None, x__xgafv=None)</code>
283 <pre>Creates a dataset.
284
285 Args:
286 parent: string, Required. The parent resource of the dataset. (required)
287 body: object, The request body.
288 The object takes the form of:
289
290 { # Dataset resource represents a collection of conversations that may be bounded (Static Dataset, e.g. golden dataset for training), or unbounded (Dynamic Dataset, e.g. live traffic, or agent training traffic)
291 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Dataset create time.
292 &quot;description&quot;: &quot;A String&quot;, # Dataset description.
293 &quot;displayName&quot;: &quot;A String&quot;, # Display name for the dataaset
294 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. Resource name of the dataset. Format: projects/{project}/locations/{location}/datasets/{dataset}
295 &quot;ttl&quot;: &quot;A String&quot;, # Optional. Option TTL for the dataset.
296 &quot;type&quot;: &quot;A String&quot;, # Dataset usage type.
297 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Dataset update time.
298 }
299
300 datasetId: string, Optional. The ID to use for the dataset.
301 x__xgafv: string, V1 error format.
302 Allowed values
303 1 - v1 error format
304 2 - v2 error format
305
306 Returns:
307 An object of the form:
308
309 { # Dataset resource represents a collection of conversations that may be bounded (Static Dataset, e.g. golden dataset for training), or unbounded (Dynamic Dataset, e.g. live traffic, or agent training traffic)
310 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Dataset create time.
311 &quot;description&quot;: &quot;A String&quot;, # Dataset description.
312 &quot;displayName&quot;: &quot;A String&quot;, # Display name for the dataaset
313 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. Resource name of the dataset. Format: projects/{project}/locations/{location}/datasets/{dataset}
314 &quot;ttl&quot;: &quot;A String&quot;, # Optional. Option TTL for the dataset.
315 &quot;type&quot;: &quot;A String&quot;, # Dataset usage type.
316 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Dataset update time.
317 }</pre>
318 </div>
319
320 <div class="method">
321 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
322 <pre>Delete a dataset.
323
324 Args:
325 name: string, Required. The name of the dataset to delete. (required)
326 x__xgafv: string, V1 error format.
327 Allowed values
328 1 - v1 error format
329 2 - v2 error format
330
331 Returns:
332 An object of the form:
333
334 { # This resource represents a long-running operation that is the result of a network API call.
335 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
336 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
337 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
338 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
339 {
340 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
341 },
342 ],
343 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
344 },
345 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
346 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
347 },
348 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
349 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
350 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
351 },
352 }</pre>
353 </div>
354
355 <div class="method">
356 <code class="details" id="get">get(name, x__xgafv=None)</code>
357 <pre>Gets a dataset.
358
359 Args:
360 name: string, Required. The name of the dataset to get. (required)
361 x__xgafv: string, V1 error format.
362 Allowed values
363 1 - v1 error format
364 2 - v2 error format
365
366 Returns:
367 An object of the form:
368
369 { # Dataset resource represents a collection of conversations that may be bounded (Static Dataset, e.g. golden dataset for training), or unbounded (Dynamic Dataset, e.g. live traffic, or agent training traffic)
370 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Dataset create time.
371 &quot;description&quot;: &quot;A String&quot;, # Dataset description.
372 &quot;displayName&quot;: &quot;A String&quot;, # Display name for the dataaset
373 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. Resource name of the dataset. Format: projects/{project}/locations/{location}/datasets/{dataset}
374 &quot;ttl&quot;: &quot;A String&quot;, # Optional. Option TTL for the dataset.
375 &quot;type&quot;: &quot;A String&quot;, # Dataset usage type.
376 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Dataset update time.
377 }</pre>
378 </div>
379
380 <div class="method">
381 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
382 <pre>List datasets matching the input.
383
384 Args:
385 parent: string, Required. The parent resource of the dataset. (required)
386 filter: string, Optional. A filter to reduce results to a specific subset. Useful for querying datasets with specific properties. Supported fields include, for Q2 though we only support list by project: - `type` - `description` - `project_number`
387 pageSize: integer, Optional. The maximum number of datasets to return in the response. If this value is zero, the service will select a default size. A call might return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.
388 pageToken: string, Optional. The value returned by the last `ListDatasetsResponse`; indicates that this is a continuation of a prior `ListDatasets` call and the system should return the next page of data.
389 x__xgafv: string, V1 error format.
390 Allowed values
391 1 - v1 error format
392 2 - v2 error format
393
394 Returns:
395 An object of the form:
396
397 { # The response to list datasets.
398 &quot;datasets&quot;: [ # The datasets that match the request.
399 { # Dataset resource represents a collection of conversations that may be bounded (Static Dataset, e.g. golden dataset for training), or unbounded (Dynamic Dataset, e.g. live traffic, or agent training traffic)
400 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Dataset create time.
401 &quot;description&quot;: &quot;A String&quot;, # Dataset description.
402 &quot;displayName&quot;: &quot;A String&quot;, # Display name for the dataaset
403 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. Resource name of the dataset. Format: projects/{project}/locations/{location}/datasets/{dataset}
404 &quot;ttl&quot;: &quot;A String&quot;, # Optional. Option TTL for the dataset.
405 &quot;type&quot;: &quot;A String&quot;, # Dataset usage type.
406 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Dataset update time.
407 },
408 ],
409 &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.
410 }</pre>
411 </div>
412
413 <div class="method">
414 <code class="details" id="listAllFeedbackLabels">listAllFeedbackLabels(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
415 <pre>List all feedback labels by project number.
416
417 Args:
418 parent: string, Required. The parent resource of all feedback labels per project. (required)
419 filter: string, Optional. A filter to reduce results to a specific subset in the entire project. Supports disjunctions (OR) and conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_id` * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
420 pageSize: integer, Optional. The maximum number of feedback labels to return in the response. A valid page size ranges from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size.
421 pageToken: string, Optional. The value returned by the last `ListAllFeedbackLabelsResponse`. This value indicates that this is a continuation of a prior `ListAllFeedbackLabels` call and that the system should return the next page of data.
422 x__xgafv: string, V1 error format.
423 Allowed values
424 1 - v1 error format
425 2 - v2 error format
426
427 Returns:
428 An object of the form:
429
430 { # The response for listing all feedback labels.
431 &quot;feedbackLabels&quot;: [ # The feedback labels that match the request.
432 { # Represents a conversation, resource, and label provided by the user. Can take the form of a string label or a QaAnswer label. QaAnswer labels are used for Quality AI example conversations. String labels are used for Topic Modeling. AgentAssistSummary labels are used for Agent Assist Summarization.
433 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the label.
434 &quot;label&quot;: &quot;A String&quot;, # String label used for Topic Modeling.
435 &quot;labeledResource&quot;: &quot;A String&quot;, # Name of the resource to be labeled. Supported resources are: * `projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question}` * `projects/{project}/locations/{location}/issueModels/{issue_model}` * `projects/{project}/locations/{location}/generators/{generator_id}`
436 &quot;name&quot;: &quot;A String&quot;, # Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
437 &quot;qaAnswerLabel&quot;: { # Message for holding the value of a QaAnswer. QaQuestion.AnswerChoice defines the possible answer values for a question. # QaAnswer label used for Quality AI example conversations.
438 &quot;boolValue&quot;: True or False, # Boolean value.
439 &quot;key&quot;: &quot;A String&quot;, # A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
440 &quot;naValue&quot;: True or False, # A value of &quot;Not Applicable (N/A)&quot;. Should only ever be `true`.
441 &quot;normalizedScore&quot;: 3.14, # Output only. Normalized score of the questions. Calculated as score / potential_score.
442 &quot;numValue&quot;: 3.14, # Numerical value.
443 &quot;potentialScore&quot;: 3.14, # Output only. The maximum potential score of the question.
444 &quot;score&quot;: 3.14, # Output only. Numerical score of the answer.
445 &quot;skipValue&quot;: True or False, # Output only. A value of &quot;Skip&quot;. If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations. This would mean that the question was not evaluated.
446 &quot;strValue&quot;: &quot;A String&quot;, # String value.
447 },
448 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time of the label.
449 },
450 ],
451 &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.
452 }</pre>
453 </div>
454
455 <div class="method">
456 <code class="details" id="listAllFeedbackLabels_next">listAllFeedbackLabels_next()</code>
457 <pre>Retrieves the next page of results.
458
459 Args:
460 previous_request: The request for the previous page. (required)
461 previous_response: The response from the request for the previous page. (required)
462
463 Returns:
464 A request object that you can call &#x27;execute()&#x27; on to request the next
465 page. Returns None if there are no more items in the collection.
466 </pre>
467 </div>
468
469 <div class="method">
470 <code class="details" id="list_next">list_next()</code>
471 <pre>Retrieves the next page of results.
472
473 Args:
474 previous_request: The request for the previous page. (required)
475 previous_response: The response from the request for the previous page. (required)
476
477 Returns:
478 A request object that you can call &#x27;execute()&#x27; on to request the next
479 page. Returns None if there are no more items in the collection.
480 </pre>
481 </div>
482
483 <div class="method">
484 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
485 <pre>Updates a dataset.
486
487 Args:
488 name: string, Immutable. Identifier. Resource name of the dataset. Format: projects/{project}/locations/{location}/datasets/{dataset} (required)
489 body: object, The request body.
490 The object takes the form of:
491
492 { # Dataset resource represents a collection of conversations that may be bounded (Static Dataset, e.g. golden dataset for training), or unbounded (Dynamic Dataset, e.g. live traffic, or agent training traffic)
493 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Dataset create time.
494 &quot;description&quot;: &quot;A String&quot;, # Dataset description.
495 &quot;displayName&quot;: &quot;A String&quot;, # Display name for the dataaset
496 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. Resource name of the dataset. Format: projects/{project}/locations/{location}/datasets/{dataset}
497 &quot;ttl&quot;: &quot;A String&quot;, # Optional. Option TTL for the dataset.
498 &quot;type&quot;: &quot;A String&quot;, # Dataset usage type.
499 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Dataset update time.
500 }
501
502 updateMask: string, Optional. The list of fields to update.
503 x__xgafv: string, V1 error format.
504 Allowed values
505 1 - v1 error format
506 2 - v2 error format
507
508 Returns:
509 An object of the form:
510
511 { # Dataset resource represents a collection of conversations that may be bounded (Static Dataset, e.g. golden dataset for training), or unbounded (Dynamic Dataset, e.g. live traffic, or agent training traffic)
512 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Dataset create time.
513 &quot;description&quot;: &quot;A String&quot;, # Dataset description.
514 &quot;displayName&quot;: &quot;A String&quot;, # Display name for the dataaset
515 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. Resource name of the dataset. Format: projects/{project}/locations/{location}/datasets/{dataset}
516 &quot;ttl&quot;: &quot;A String&quot;, # Optional. Option TTL for the dataset.
517 &quot;type&quot;: &quot;A String&quot;, # Dataset usage type.
518 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Dataset update time.
519 }</pre>
520 </div>
521
522 </body></html>