1<html><body>
2<style>
3
4body, 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
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, 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="datalabeling_v1beta1.html">Data Labeling API</a> . <a href="datalabeling_v1beta1.projects.html">projects</a> . <a href="datalabeling_v1beta1.projects.datasets.html">datasets</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="datalabeling_v1beta1.projects.datasets.annotatedDatasets.html">annotatedDatasets()</a></code>
79</p>
80<p class="firstline">Returns the annotatedDatasets Resource.</p>
81
82<p class="toc_element">
83  <code><a href="datalabeling_v1beta1.projects.datasets.dataItems.html">dataItems()</a></code>
84</p>
85<p class="firstline">Returns the dataItems Resource.</p>
86
87<p class="toc_element">
88  <code><a href="datalabeling_v1beta1.projects.datasets.evaluations.html">evaluations()</a></code>
89</p>
90<p class="firstline">Returns the evaluations Resource.</p>
91
92<p class="toc_element">
93  <code><a href="datalabeling_v1beta1.projects.datasets.image.html">image()</a></code>
94</p>
95<p class="firstline">Returns the image Resource.</p>
96
97<p class="toc_element">
98  <code><a href="datalabeling_v1beta1.projects.datasets.text.html">text()</a></code>
99</p>
100<p class="firstline">Returns the text Resource.</p>
101
102<p class="toc_element">
103  <code><a href="datalabeling_v1beta1.projects.datasets.video.html">video()</a></code>
104</p>
105<p class="firstline">Returns the video Resource.</p>
106
107<p class="toc_element">
108  <code><a href="#close">close()</a></code></p>
109<p class="firstline">Close httplib2 connections.</p>
110<p class="toc_element">
111  <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
112<p class="firstline">Creates dataset. If success return a Dataset resource.</p>
113<p class="toc_element">
114  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
115<p class="firstline">Deletes a dataset by resource name.</p>
116<p class="toc_element">
117  <code><a href="#exportData">exportData(name, body=None, x__xgafv=None)</a></code></p>
118<p class="firstline">Exports data and annotations from dataset.</p>
119<p class="toc_element">
120  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
121<p class="firstline">Gets dataset by resource name.</p>
122<p class="toc_element">
123  <code><a href="#importData">importData(name, body=None, x__xgafv=None)</a></code></p>
124<p class="firstline">Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa.</p>
125<p class="toc_element">
126  <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
127<p class="firstline">Lists datasets under a project. Pagination is supported.</p>
128<p class="toc_element">
129  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
130<p class="firstline">Retrieves the next page of results.</p>
131<h3>Method Details</h3>
132<div class="method">
133    <code class="details" id="close">close()</code>
134  <pre>Close httplib2 connections.</pre>
135</div>
136
137<div class="method">
138    <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
139  <pre>Creates dataset. If success return a Dataset resource.
140
141Args:
142  parent: string, Required. Dataset resource parent, format: projects/{project_id} (required)
143  body: object, The request body.
144    The object takes the form of:
145
146{ # Request message for CreateDataset.
147  &quot;dataset&quot;: { # Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset. # Required. The dataset to be created.
148    &quot;blockingResources&quot;: [ # Output only. The names of any related resources that are blocking changes to the dataset.
149      &quot;A String&quot;,
150    ],
151    &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the dataset is created.
152    &quot;dataItemCount&quot;: &quot;A String&quot;, # Output only. The number of data items in the dataset.
153    &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
154    &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the dataset. Maximum of 64 characters.
155    &quot;inputConfigs&quot;: [ # Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.
156      { # The configuration of input data, including data type, location, etc.
157        &quot;annotationType&quot;: &quot;A String&quot;, # Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an EvaluationJob.
158        &quot;bigquerySource&quot;: { # The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version. # Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob.
159          &quot;inputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: &quot;bq://{your_project_id}/ {your_dataset_name}/{your_table_name}&quot; [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
160        },
161        &quot;classificationMetadata&quot;: { # Metadata for classification annotations. # Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification.
162          &quot;isMultiLabel&quot;: True or False, # Whether the classification task is multi-label or not.
163        },
164        &quot;dataType&quot;: &quot;A String&quot;, # Required. Data type must be specifed when user tries to import data.
165        &quot;gcsSource&quot;: { # Source of the Cloud Storage file to be imported. # Source located in Cloud Storage.
166          &quot;inputUri&quot;: &quot;A String&quot;, # Required. The input URI of source file. This must be a Cloud Storage path (`gs://...`).
167          &quot;mimeType&quot;: &quot;A String&quot;, # Required. The format of the source file. Only &quot;text/csv&quot; is supported.
168        },
169        &quot;textMetadata&quot;: { # Metadata for the text. # Required for text import, as language code must be specified.
170          &quot;languageCode&quot;: &quot;A String&quot;, # The language of this text, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US.
171        },
172      },
173    ],
174    &quot;lastMigrateTime&quot;: &quot;A String&quot;, # Last time that the Dataset is migrated to AI Platform V2. If any of the AnnotatedDataset is migrated, the last_migration_time in Dataset is also updated.
175    &quot;name&quot;: &quot;A String&quot;, # Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}
176  },
177}
178
179  x__xgafv: string, V1 error format.
180    Allowed values
181      1 - v1 error format
182      2 - v2 error format
183
184Returns:
185  An object of the form:
186
187    { # Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.
188  &quot;blockingResources&quot;: [ # Output only. The names of any related resources that are blocking changes to the dataset.
189    &quot;A String&quot;,
190  ],
191  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the dataset is created.
192  &quot;dataItemCount&quot;: &quot;A String&quot;, # Output only. The number of data items in the dataset.
193  &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
194  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the dataset. Maximum of 64 characters.
195  &quot;inputConfigs&quot;: [ # Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.
196    { # The configuration of input data, including data type, location, etc.
197      &quot;annotationType&quot;: &quot;A String&quot;, # Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an EvaluationJob.
198      &quot;bigquerySource&quot;: { # The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version. # Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob.
199        &quot;inputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: &quot;bq://{your_project_id}/ {your_dataset_name}/{your_table_name}&quot; [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
200      },
201      &quot;classificationMetadata&quot;: { # Metadata for classification annotations. # Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification.
202        &quot;isMultiLabel&quot;: True or False, # Whether the classification task is multi-label or not.
203      },
204      &quot;dataType&quot;: &quot;A String&quot;, # Required. Data type must be specifed when user tries to import data.
205      &quot;gcsSource&quot;: { # Source of the Cloud Storage file to be imported. # Source located in Cloud Storage.
206        &quot;inputUri&quot;: &quot;A String&quot;, # Required. The input URI of source file. This must be a Cloud Storage path (`gs://...`).
207        &quot;mimeType&quot;: &quot;A String&quot;, # Required. The format of the source file. Only &quot;text/csv&quot; is supported.
208      },
209      &quot;textMetadata&quot;: { # Metadata for the text. # Required for text import, as language code must be specified.
210        &quot;languageCode&quot;: &quot;A String&quot;, # The language of this text, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US.
211      },
212    },
213  ],
214  &quot;lastMigrateTime&quot;: &quot;A String&quot;, # Last time that the Dataset is migrated to AI Platform V2. If any of the AnnotatedDataset is migrated, the last_migration_time in Dataset is also updated.
215  &quot;name&quot;: &quot;A String&quot;, # Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}
216}</pre>
217</div>
218
219<div class="method">
220    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
221  <pre>Deletes a dataset by resource name.
222
223Args:
224  name: string, Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id} (required)
225  x__xgafv: string, V1 error format.
226    Allowed values
227      1 - v1 error format
228      2 - v2 error format
229
230Returns:
231  An object of the form:
232
233    { # 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); } The JSON representation for `Empty` is empty JSON object `{}`.
234}</pre>
235</div>
236
237<div class="method">
238    <code class="details" id="exportData">exportData(name, body=None, x__xgafv=None)</code>
239  <pre>Exports data and annotations from dataset.
240
241Args:
242  name: string, Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id} (required)
243  body: object, The request body.
244    The object takes the form of:
245
246{ # Request message for ExportData API.
247  &quot;annotatedDataset&quot;: &quot;A String&quot;, # Required. Annotated dataset resource name. DataItem in Dataset and their annotations in specified annotated dataset will be exported. It&#x27;s in format of projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
248  &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter is not supported at this moment.
249  &quot;outputConfig&quot;: { # The configuration of output data. # Required. Specify the output destination.
250    &quot;gcsDestination&quot;: { # Export destination of the data.Only gcs path is allowed in output_uri. # Output to a file in Cloud Storage. Should be used for labeling output other than image segmentation.
251      &quot;mimeType&quot;: &quot;A String&quot;, # Required. The format of the gcs destination. Only &quot;text/csv&quot; and &quot;application/json&quot; are supported.
252      &quot;outputUri&quot;: &quot;A String&quot;, # Required. The output uri of destination file.
253    },
254    &quot;gcsFolderDestination&quot;: { # Export folder destination of the data. # Output to a folder in Cloud Storage. Should be used for image segmentation or document de-identification labeling outputs.
255      &quot;outputFolderUri&quot;: &quot;A String&quot;, # Required. Cloud Storage directory to export data to.
256    },
257  },
258  &quot;userEmailAddress&quot;: &quot;A String&quot;, # Email of the user who started the export task and should be notified by email. If empty no notification will be sent.
259}
260
261  x__xgafv: string, V1 error format.
262    Allowed values
263      1 - v1 error format
264      2 - v2 error format
265
266Returns:
267  An object of the form:
268
269    { # This resource represents a long-running operation that is the result of a network API call.
270  &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.
271  &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.
272    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
273    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
274      {
275        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
276      },
277    ],
278    &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.
279  },
280  &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.
281    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
282  },
283  &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}`.
284  &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
285    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
286  },
287}</pre>
288</div>
289
290<div class="method">
291    <code class="details" id="get">get(name, x__xgafv=None)</code>
292  <pre>Gets dataset by resource name.
293
294Args:
295  name: string, Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id} (required)
296  x__xgafv: string, V1 error format.
297    Allowed values
298      1 - v1 error format
299      2 - v2 error format
300
301Returns:
302  An object of the form:
303
304    { # Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.
305  &quot;blockingResources&quot;: [ # Output only. The names of any related resources that are blocking changes to the dataset.
306    &quot;A String&quot;,
307  ],
308  &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the dataset is created.
309  &quot;dataItemCount&quot;: &quot;A String&quot;, # Output only. The number of data items in the dataset.
310  &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
311  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the dataset. Maximum of 64 characters.
312  &quot;inputConfigs&quot;: [ # Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.
313    { # The configuration of input data, including data type, location, etc.
314      &quot;annotationType&quot;: &quot;A String&quot;, # Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an EvaluationJob.
315      &quot;bigquerySource&quot;: { # The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version. # Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob.
316        &quot;inputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: &quot;bq://{your_project_id}/ {your_dataset_name}/{your_table_name}&quot; [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
317      },
318      &quot;classificationMetadata&quot;: { # Metadata for classification annotations. # Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification.
319        &quot;isMultiLabel&quot;: True or False, # Whether the classification task is multi-label or not.
320      },
321      &quot;dataType&quot;: &quot;A String&quot;, # Required. Data type must be specifed when user tries to import data.
322      &quot;gcsSource&quot;: { # Source of the Cloud Storage file to be imported. # Source located in Cloud Storage.
323        &quot;inputUri&quot;: &quot;A String&quot;, # Required. The input URI of source file. This must be a Cloud Storage path (`gs://...`).
324        &quot;mimeType&quot;: &quot;A String&quot;, # Required. The format of the source file. Only &quot;text/csv&quot; is supported.
325      },
326      &quot;textMetadata&quot;: { # Metadata for the text. # Required for text import, as language code must be specified.
327        &quot;languageCode&quot;: &quot;A String&quot;, # The language of this text, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US.
328      },
329    },
330  ],
331  &quot;lastMigrateTime&quot;: &quot;A String&quot;, # Last time that the Dataset is migrated to AI Platform V2. If any of the AnnotatedDataset is migrated, the last_migration_time in Dataset is also updated.
332  &quot;name&quot;: &quot;A String&quot;, # Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}
333}</pre>
334</div>
335
336<div class="method">
337    <code class="details" id="importData">importData(name, body=None, x__xgafv=None)</code>
338  <pre>Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa.
339
340Args:
341  name: string, Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id} (required)
342  body: object, The request body.
343    The object takes the form of:
344
345{ # Request message for ImportData API.
346  &quot;inputConfig&quot;: { # The configuration of input data, including data type, location, etc. # Required. Specify the input source of the data.
347    &quot;annotationType&quot;: &quot;A String&quot;, # Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an EvaluationJob.
348    &quot;bigquerySource&quot;: { # The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version. # Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob.
349      &quot;inputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: &quot;bq://{your_project_id}/ {your_dataset_name}/{your_table_name}&quot; [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
350    },
351    &quot;classificationMetadata&quot;: { # Metadata for classification annotations. # Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification.
352      &quot;isMultiLabel&quot;: True or False, # Whether the classification task is multi-label or not.
353    },
354    &quot;dataType&quot;: &quot;A String&quot;, # Required. Data type must be specifed when user tries to import data.
355    &quot;gcsSource&quot;: { # Source of the Cloud Storage file to be imported. # Source located in Cloud Storage.
356      &quot;inputUri&quot;: &quot;A String&quot;, # Required. The input URI of source file. This must be a Cloud Storage path (`gs://...`).
357      &quot;mimeType&quot;: &quot;A String&quot;, # Required. The format of the source file. Only &quot;text/csv&quot; is supported.
358    },
359    &quot;textMetadata&quot;: { # Metadata for the text. # Required for text import, as language code must be specified.
360      &quot;languageCode&quot;: &quot;A String&quot;, # The language of this text, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US.
361    },
362  },
363  &quot;userEmailAddress&quot;: &quot;A String&quot;, # Email of the user who started the import task and should be notified by email. If empty no notification will be sent.
364}
365
366  x__xgafv: string, V1 error format.
367    Allowed values
368      1 - v1 error format
369      2 - v2 error format
370
371Returns:
372  An object of the form:
373
374    { # This resource represents a long-running operation that is the result of a network API call.
375  &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.
376  &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.
377    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
378    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
379      {
380        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
381      },
382    ],
383    &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.
384  },
385  &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.
386    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
387  },
388  &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}`.
389  &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
390    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
391  },
392}</pre>
393</div>
394
395<div class="method">
396    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
397  <pre>Lists datasets under a project. Pagination is supported.
398
399Args:
400  parent: string, Required. Dataset resource parent, format: projects/{project_id} (required)
401  filter: string, Optional. Filter on dataset is not supported at this moment.
402  pageSize: integer, Optional. Requested page size. Server may return fewer results than requested. Default value is 100.
403  pageToken: string, Optional. A token identifying a page of results for the server to return. Typically obtained by ListDatasetsResponse.next_page_token of the previous [DataLabelingService.ListDatasets] call. Returns the first page if empty.
404  x__xgafv: string, V1 error format.
405    Allowed values
406      1 - v1 error format
407      2 - v2 error format
408
409Returns:
410  An object of the form:
411
412    { # Results of listing datasets within a project.
413  &quot;datasets&quot;: [ # The list of datasets to return.
414    { # Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.
415      &quot;blockingResources&quot;: [ # Output only. The names of any related resources that are blocking changes to the dataset.
416        &quot;A String&quot;,
417      ],
418      &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the dataset is created.
419      &quot;dataItemCount&quot;: &quot;A String&quot;, # Output only. The number of data items in the dataset.
420      &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
421      &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the dataset. Maximum of 64 characters.
422      &quot;inputConfigs&quot;: [ # Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.
423        { # The configuration of input data, including data type, location, etc.
424          &quot;annotationType&quot;: &quot;A String&quot;, # Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an EvaluationJob.
425          &quot;bigquerySource&quot;: { # The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version. # Source located in BigQuery. You must specify this field if you are using this InputConfig in an EvaluationJob.
426            &quot;inputUri&quot;: &quot;A String&quot;, # Required. BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: &quot;bq://{your_project_id}/ {your_dataset_name}/{your_table_name}&quot; [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
427          },
428          &quot;classificationMetadata&quot;: { # Metadata for classification annotations. # Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an EvaluationJob for a model version that performs classification.
429            &quot;isMultiLabel&quot;: True or False, # Whether the classification task is multi-label or not.
430          },
431          &quot;dataType&quot;: &quot;A String&quot;, # Required. Data type must be specifed when user tries to import data.
432          &quot;gcsSource&quot;: { # Source of the Cloud Storage file to be imported. # Source located in Cloud Storage.
433            &quot;inputUri&quot;: &quot;A String&quot;, # Required. The input URI of source file. This must be a Cloud Storage path (`gs://...`).
434            &quot;mimeType&quot;: &quot;A String&quot;, # Required. The format of the source file. Only &quot;text/csv&quot; is supported.
435          },
436          &quot;textMetadata&quot;: { # Metadata for the text. # Required for text import, as language code must be specified.
437            &quot;languageCode&quot;: &quot;A String&quot;, # The language of this text, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US.
438          },
439        },
440      ],
441      &quot;lastMigrateTime&quot;: &quot;A String&quot;, # Last time that the Dataset is migrated to AI Platform V2. If any of the AnnotatedDataset is migrated, the last_migration_time in Dataset is also updated.
442      &quot;name&quot;: &quot;A String&quot;, # Output only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}
443    },
444  ],
445  &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve next page of results.
446}</pre>
447</div>
448
449<div class="method">
450    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
451  <pre>Retrieves the next page of results.
452
453Args:
454  previous_request: The request for the previous page. (required)
455  previous_response: The response from the request for the previous page. (required)
456
457Returns:
458  A request object that you can call &#x27;execute()&#x27; on to request the next
459  page. Returns None if there are no more items in the collection.
460    </pre>
461</div>
462
463</body></html>