Debian Codegraph @

docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.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="translate_v3.html">Cloud Translation API</a> . <a href="translate_v3.projects.html">projects</a> . <a href="translate_v3.projects.locations.html">locations</a> . <a href="translate_v3.projects.locations.adaptiveMtDatasets.html">adaptiveMtDatasets</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.html">adaptiveMtFiles()</a></code>
79 </p>
80 <p class="firstline">Returns the adaptiveMtFiles Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtSentences.html">adaptiveMtSentences()</a></code>
84 </p>
85 <p class="firstline">Returns the adaptiveMtSentences Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Creates an Adaptive MT dataset.</p>
93 <p class="toc_element">
94 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
95 <p class="firstline">Deletes an Adaptive MT dataset, including all its entries and associated metadata.</p>
96 <p class="toc_element">
97 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
98 <p class="firstline">Gets the Adaptive MT dataset.</p>
99 <p class="toc_element">
100 <code><a href="#importAdaptiveMtFile">importAdaptiveMtFile(parent, body=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.</p>
102 <p class="toc_element">
103 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
104 <p class="firstline">Lists all Adaptive MT datasets for which the caller has read permission.</p>
105 <p class="toc_element">
106 <code><a href="#list_next">list_next()</a></code></p>
107 <p class="firstline">Retrieves the next page of results.</p>
108 <h3>Method Details</h3>
109 <div class="method">
110 <code class="details" id="close">close()</code>
111 <pre>Close httplib2 connections.</pre>
112 </div>
113
114 <div class="method">
115 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
116 <pre>Creates an Adaptive MT dataset.
117
118 Args:
119 parent: string, Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}` (required)
120 body: object, The request body.
121 The object takes the form of:
122
123 { # An Adaptive MT Dataset.
124 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this dataset was created.
125 &quot;displayName&quot;: &quot;A String&quot;, # The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
126 &quot;exampleCount&quot;: 42, # The number of examples in the dataset.
127 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
128 &quot;sourceLanguageCode&quot;: &quot;A String&quot;, # The BCP-47 language code of the source language.
129 &quot;targetLanguageCode&quot;: &quot;A String&quot;, # The BCP-47 language code of the target language.
130 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this dataset was last updated.
131 }
132
133 x__xgafv: string, V1 error format.
134 Allowed values
135 1 - v1 error format
136 2 - v2 error format
137
138 Returns:
139 An object of the form:
140
141 { # An Adaptive MT Dataset.
142 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this dataset was created.
143 &quot;displayName&quot;: &quot;A String&quot;, # The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
144 &quot;exampleCount&quot;: 42, # The number of examples in the dataset.
145 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
146 &quot;sourceLanguageCode&quot;: &quot;A String&quot;, # The BCP-47 language code of the source language.
147 &quot;targetLanguageCode&quot;: &quot;A String&quot;, # The BCP-47 language code of the target language.
148 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this dataset was last updated.
149 }</pre>
150 </div>
151
152 <div class="method">
153 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
154 <pre>Deletes an Adaptive MT dataset, including all its entries and associated metadata.
155
156 Args:
157 name: string, Required. Name of the dataset. In the form of `projects/{project-number-or-id}/locations/{location-id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}` (required)
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163 Returns:
164 An object of the form:
165
166 { # 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); }
167 }</pre>
168 </div>
169
170 <div class="method">
171 <code class="details" id="get">get(name, x__xgafv=None)</code>
172 <pre>Gets the Adaptive MT dataset.
173
174 Args:
175 name: string, Required. Name of the dataset. In the form of `projects/{project-number-or-id}/locations/{location-id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}` (required)
176 x__xgafv: string, V1 error format.
177 Allowed values
178 1 - v1 error format
179 2 - v2 error format
180
181 Returns:
182 An object of the form:
183
184 { # An Adaptive MT Dataset.
185 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this dataset was created.
186 &quot;displayName&quot;: &quot;A String&quot;, # The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
187 &quot;exampleCount&quot;: 42, # The number of examples in the dataset.
188 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
189 &quot;sourceLanguageCode&quot;: &quot;A String&quot;, # The BCP-47 language code of the source language.
190 &quot;targetLanguageCode&quot;: &quot;A String&quot;, # The BCP-47 language code of the target language.
191 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this dataset was last updated.
192 }</pre>
193 </div>
194
195 <div class="method">
196 <code class="details" id="importAdaptiveMtFile">importAdaptiveMtFile(parent, body=None, x__xgafv=None)</code>
197 <pre>Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.
198
199 Args:
200 parent: string, Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}` (required)
201 body: object, The request body.
202 The object takes the form of:
203
204 { # The request for importing an AdaptiveMt file along with its sentences.
205 &quot;fileInputSource&quot;: { # An inlined file. # Inline file source.
206 &quot;content&quot;: &quot;A String&quot;, # Required. The file&#x27;s byte contents.
207 &quot;displayName&quot;: &quot;A String&quot;, # Required. The file&#x27;s display name.
208 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The file&#x27;s mime type.
209 },
210 &quot;gcsInputSource&quot;: { # The Google Cloud Storage location for the input content. # Google Cloud Storage file source.
211 &quot;inputUri&quot;: &quot;A String&quot;, # Required. Source data URI. For example, `gs://my_bucket/my_object`.
212 },
213 }
214
215 x__xgafv: string, V1 error format.
216 Allowed values
217 1 - v1 error format
218 2 - v2 error format
219
220 Returns:
221 An object of the form:
222
223 { # The response for importing an AdaptiveMtFile
224 &quot;adaptiveMtFile&quot;: { # An AdaptiveMtFile. # Output only. The Adaptive MT file that was imported.
225 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this file was created.
226 &quot;displayName&quot;: &quot;A String&quot;, # The file&#x27;s display name.
227 &quot;entryCount&quot;: 42, # The number of entries that the file contains.
228 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
229 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this file was last updated.
230 },
231 }</pre>
232 </div>
233
234 <div class="method">
235 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
236 <pre>Lists all Adaptive MT datasets for which the caller has read permission.
237
238 Args:
239 parent: string, Required. The resource name of the project from which to list the Adaptive MT datasets. `projects/{project-number-or-id}/locations/{location-id}` (required)
240 filter: string, Optional. An expression for filtering the results of the request. Filter is not supported yet.
241 pageSize: integer, Optional. Requested page size. The server may return fewer results than requested. If unspecified, the server picks an appropriate default.
242 pageToken: string, Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtDatasetsResponse.next_page_token returned from the previous call to `ListAdaptiveMtDatasets` method. The first page is returned if `page_token`is empty or missing.
243 x__xgafv: string, V1 error format.
244 Allowed values
245 1 - v1 error format
246 2 - v2 error format
247
248 Returns:
249 An object of the form:
250
251 { # A list of AdaptiveMtDatasets.
252 &quot;adaptiveMtDatasets&quot;: [ # Output only. A list of Adaptive MT datasets.
253 { # An Adaptive MT Dataset.
254 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this dataset was created.
255 &quot;displayName&quot;: &quot;A String&quot;, # The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
256 &quot;exampleCount&quot;: 42, # The number of examples in the dataset.
257 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
258 &quot;sourceLanguageCode&quot;: &quot;A String&quot;, # The BCP-47 language code of the source language.
259 &quot;targetLanguageCode&quot;: &quot;A String&quot;, # The BCP-47 language code of the target language.
260 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this dataset was last updated.
261 },
262 ],
263 &quot;nextPageToken&quot;: &quot;A String&quot;, # Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to `ListAdaptiveMtDatasets` method to retrieve the next page of results.
264 }</pre>
265 </div>
266
267 <div class="method">
268 <code class="details" id="list_next">list_next()</code>
269 <pre>Retrieves the next page of results.
270
271 Args:
272 previous_request: The request for the previous page. (required)
273 previous_response: The response from the request for the previous page. (required)
274
275 Returns:
276 A request object that you can call &#x27;execute()&#x27; on to request the next
277 page. Returns None if there are no more items in the collection.
278 </pre>
279 </div>
280
281 </body></html>