blob: f18c10ffaa4cdec69d02f0287f496293050847c8 [file] [log] [blame]
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001<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> . <a href="datalabeling_v1beta1.projects.datasets.annotatedDatasets.html">annotatedDatasets</a> . <a href="datalabeling_v1beta1.projects.datasets.annotatedDatasets.dataItems.html">dataItems</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="#get">get(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.</p>
83<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080084 <code><a href="#list">list(parent, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070085<p class="firstline">Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
96 <code class="details" id="get">get(name, x__xgafv=None)</code>
97 <pre>Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.
98
99Args:
100 name: string, Required. The name of the data item to get, format: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} (required)
101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106Returns:
107 An object of the form:
108
109 { # DataItem is a piece of data, without annotation. For example, an image.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800110 &quot;textPayload&quot;: { # Container of information about a piece of text. # The text payload, a container of text content.
111 &quot;textContent&quot;: &quot;A String&quot;, # Text content.
112 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700113 &quot;videoPayload&quot;: { # Container of information of a video. # The video payload, a container of the video uri.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800114 &quot;mimeType&quot;: &quot;A String&quot;, # Video format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800115 &quot;signedUri&quot;: &quot;A String&quot;, # Signed uri of the video file in the service bucket.
116 &quot;videoUri&quot;: &quot;A String&quot;, # Video uri from the user bucket.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700117 &quot;videoThumbnails&quot;: [ # The list of video thumbnails.
118 { # Container of information of a video thumbnail.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700119 &quot;thumbnail&quot;: &quot;A String&quot;, # A byte string of the video frame.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800120 &quot;timeOffset&quot;: &quot;A String&quot;, # Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700121 },
122 ],
123 &quot;frameRate&quot;: 3.14, # FPS of the video.
124 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800125 &quot;imagePayload&quot;: { # Container of information about an image. # The image payload, a container of the image bytes/uri.
126 &quot;imageThumbnail&quot;: &quot;A String&quot;, # A byte string of a thumbnail image.
127 &quot;mimeType&quot;: &quot;A String&quot;, # Image format.
128 &quot;imageUri&quot;: &quot;A String&quot;, # Image uri from the user bucket.
129 &quot;signedUri&quot;: &quot;A String&quot;, # Signed uri of the image file in the service bucket.
130 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700131 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
132 }</pre>
133</div>
134
135<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800136 <code class="details" id="list">list(parent, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700137 <pre>Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.
138
139Args:
140 parent: string, Required. Name of the dataset to list data items, format: projects/{project_id}/datasets/{dataset_id} (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800141 pageSize: integer, Optional. Requested page size. Server may return fewer results than requested. Default value is 100.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800142 filter: string, Optional. Filter is not supported at this moment.
143 pageToken: string, Optional. A token identifying a page of results for the server to return. Typically obtained by ListDataItemsResponse.next_page_token of the previous [DataLabelingService.ListDataItems] call. Return first page if empty.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700144 x__xgafv: string, V1 error format.
145 Allowed values
146 1 - v1 error format
147 2 - v2 error format
148
149Returns:
150 An object of the form:
151
152 { # Results of listing data items in a dataset.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800153 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve next page of results.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700154 &quot;dataItems&quot;: [ # The list of data items to return.
155 { # DataItem is a piece of data, without annotation. For example, an image.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800156 &quot;textPayload&quot;: { # Container of information about a piece of text. # The text payload, a container of text content.
157 &quot;textContent&quot;: &quot;A String&quot;, # Text content.
158 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700159 &quot;videoPayload&quot;: { # Container of information of a video. # The video payload, a container of the video uri.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800160 &quot;mimeType&quot;: &quot;A String&quot;, # Video format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800161 &quot;signedUri&quot;: &quot;A String&quot;, # Signed uri of the video file in the service bucket.
162 &quot;videoUri&quot;: &quot;A String&quot;, # Video uri from the user bucket.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700163 &quot;videoThumbnails&quot;: [ # The list of video thumbnails.
164 { # Container of information of a video thumbnail.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700165 &quot;thumbnail&quot;: &quot;A String&quot;, # A byte string of the video frame.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800166 &quot;timeOffset&quot;: &quot;A String&quot;, # Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700167 },
168 ],
169 &quot;frameRate&quot;: 3.14, # FPS of the video.
170 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800171 &quot;imagePayload&quot;: { # Container of information about an image. # The image payload, a container of the image bytes/uri.
172 &quot;imageThumbnail&quot;: &quot;A String&quot;, # A byte string of a thumbnail image.
173 &quot;mimeType&quot;: &quot;A String&quot;, # Image format.
174 &quot;imageUri&quot;: &quot;A String&quot;, # Image uri from the user bucket.
175 &quot;signedUri&quot;: &quot;A String&quot;, # Signed uri of the image file in the service bucket.
176 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700177 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
178 },
179 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700180 }</pre>
181</div>
182
183<div class="method">
184 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
185 <pre>Retrieves the next page of results.
186
187Args:
188 previous_request: The request for the previous page. (required)
189 previous_response: The response from the request for the previous page. (required)
190
191Returns:
192 A request object that you can call &#x27;execute()&#x27; on to request the next
193 page. Returns None if there are no more items in the collection.
194 </pre>
195</div>
196
197</body></html>