Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2d41455

Browse files
committedDec 7, 2023
feat(translate): update the api
#### translate:v3 The following keys were added: - resources.projects.resources.locations.methods.adaptiveMtTranslate (Total Keys: 12) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.create (Total Keys: 12) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.importAdaptiveMtFile (Total Keys: 12) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.list (Total Keys: 18) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.resources.adaptiveMtSentences.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtSentences.methods.list (Total Keys: 16) - schemas.AdaptiveMtDataset (Total Keys: 14) - schemas.AdaptiveMtFile (Total Keys: 12) - schemas.AdaptiveMtSentence (Total Keys: 11) - schemas.AdaptiveMtTranslateRequest (Total Keys: 5) - schemas.AdaptiveMtTranslateResponse (Total Keys: 7) - schemas.AdaptiveMtTranslation (Total Keys: 4) - schemas.FileInputSource (Total Keys: 6) - schemas.ImportAdaptiveMtFileRequest (Total Keys: 4) - schemas.ImportAdaptiveMtFileResponse (Total Keys: 4) - schemas.ListAdaptiveMtDatasetsResponse (Total Keys: 6) - schemas.ListAdaptiveMtFilesResponse (Total Keys: 6) - schemas.ListAdaptiveMtSentencesResponse (Total Keys: 6) The following keys were changed: - resources.projects.methods.detectLanguage.scopes (Total Keys: 1) - resources.projects.methods.getSupportedLanguages.scopes (Total Keys: 1) - resources.projects.methods.romanizeText.scopes (Total Keys: 1) - resources.projects.methods.translateText.scopes (Total Keys: 1) - resources.projects.resources.locations.methods.detectLanguage.scopes (Total Keys: 1) - resources.projects.resources.locations.methods.getSupportedLanguages.scopes (Total Keys: 1) - resources.projects.resources.locations.methods.romanizeText.scopes (Total Keys: 1) - resources.projects.resources.locations.methods.translateText.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.datasets.methods.create.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.datasets.methods.get.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.datasets.methods.list.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.methods.delete.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.methods.get.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.methods.list.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.resources.glossaryEntries.methods.get.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.resources.glossaryEntries.methods.list.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.models.methods.list.scopes (Total Keys: 1)
1 parent c4c9861 commit 2d41455

7 files changed

+1438
-19
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
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> . <a href="translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.html">adaptiveMtFiles</a> . <a href="translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.adaptiveMtSentences.html">adaptiveMtSentences</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="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Lists all AdaptiveMtSentences under a given file/dataset.</p>
83+
<p class="toc_element">
84+
<code><a href="#list_next">list_next()</a></code></p>
85+
<p class="firstline">Retrieves the next page of results.</p>
86+
<h3>Method Details</h3>
87+
<div class="method">
88+
<code class="details" id="close">close()</code>
89+
<pre>Close httplib2 connections.</pre>
90+
</div>
91+
92+
<div class="method">
93+
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
94+
<pre>Lists all AdaptiveMtSentences under a given file/dataset.
95+
96+
Args:
97+
parent: string, Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}` (required)
98+
pageSize: integer, A parameter
99+
pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing.
100+
x__xgafv: string, V1 error format.
101+
Allowed values
102+
1 - v1 error format
103+
2 - v2 error format
104+
105+
Returns:
106+
An object of the form:
107+
108+
{ # List AdaptiveMt sentences response.
109+
&quot;adaptiveMtSentences&quot;: [ # Output only. The list of AdaptiveMtSentences.
110+
{ # An AdaptiveMt sentence entry.
111+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this sentence was created.
112+
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}/sentences/{sentence}`
113+
&quot;sourceSentence&quot;: &quot;A String&quot;, # Required. The source sentence.
114+
&quot;targetSentence&quot;: &quot;A String&quot;, # Required. The target sentence.
115+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this sentence was last updated.
116+
},
117+
],
118+
&quot;nextPageToken&quot;: &quot;A String&quot;, # Optional.
119+
}</pre>
120+
</div>
121+
122+
<div class="method">
123+
<code class="details" id="list_next">list_next()</code>
124+
<pre>Retrieves the next page of results.
125+
126+
Args:
127+
previous_request: The request for the previous page. (required)
128+
previous_response: The response from the request for the previous page. (required)
129+
130+
Returns:
131+
A request object that you can call &#x27;execute()&#x27; on to request the next
132+
page. Returns None if there are no more items in the collection.
133+
</pre>
134+
</div>
135+
136+
</body></html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
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> . <a href="translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.html">adaptiveMtFiles</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.adaptiveMtSentences.html">adaptiveMtSentences()</a></code>
79+
</p>
80+
<p class="firstline">Returns the adaptiveMtSentences Resource.</p>
81+
82+
<p class="toc_element">
83+
<code><a href="#close">close()</a></code></p>
84+
<p class="firstline">Close httplib2 connections.</p>
85+
<p class="toc_element">
86+
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87+
<p class="firstline">Deletes an AdaptiveMtFile along with its sentences.</p>
88+
<p class="toc_element">
89+
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90+
<p class="firstline">Gets and AdaptiveMtFile</p>
91+
<p class="toc_element">
92+
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
93+
<p class="firstline">Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.</p>
94+
<p class="toc_element">
95+
<code><a href="#list_next">list_next()</a></code></p>
96+
<p class="firstline">Retrieves the next page of results.</p>
97+
<h3>Method Details</h3>
98+
<div class="method">
99+
<code class="details" id="close">close()</code>
100+
<pre>Close httplib2 connections.</pre>
101+
</div>
102+
103+
<div class="method">
104+
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
105+
<pre>Deletes an AdaptiveMtFile along with its sentences.
106+
107+
Args:
108+
name: string, Required. The resource name of the file to delete, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}` (required)
109+
x__xgafv: string, V1 error format.
110+
Allowed values
111+
1 - v1 error format
112+
2 - v2 error format
113+
114+
Returns:
115+
An object of the form:
116+
117+
{ # 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); }
118+
}</pre>
119+
</div>
120+
121+
<div class="method">
122+
<code class="details" id="get">get(name, x__xgafv=None)</code>
123+
<pre>Gets and AdaptiveMtFile
124+
125+
Args:
126+
name: string, Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}` (required)
127+
x__xgafv: string, V1 error format.
128+
Allowed values
129+
1 - v1 error format
130+
2 - v2 error format
131+
132+
Returns:
133+
An object of the form:
134+
135+
{ # An AdaptiveMtFile.
136+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this file was created.
137+
&quot;displayName&quot;: &quot;A String&quot;, # The file&#x27;s display name.
138+
&quot;entryCount&quot;: 42, # The number of entries that the file contains.
139+
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`
140+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this file was last updated.
141+
}</pre>
142+
</div>
143+
144+
<div class="method">
145+
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
146+
<pre>Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
147+
148+
Args:
149+
parent: string, Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}` (required)
150+
pageSize: integer, Optional.
151+
pageToken: string, Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtFilesResponse.next_page_token returned from the previous call to `ListAdaptiveMtFiles` method. The first page is returned if `page_token`is empty or missing.
152+
x__xgafv: string, V1 error format.
153+
Allowed values
154+
1 - v1 error format
155+
2 - v2 error format
156+
157+
Returns:
158+
An object of the form:
159+
160+
{ # The response for listing all AdaptiveMt files under a given dataset.
161+
&quot;adaptiveMtFiles&quot;: [ # Output only. The Adaptive MT files.
162+
{ # An AdaptiveMtFile.
163+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this file was created.
164+
&quot;displayName&quot;: &quot;A String&quot;, # The file&#x27;s display name.
165+
&quot;entryCount&quot;: 42, # The number of entries that the file contains.
166+
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`
167+
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this file was last updated.
168+
},
169+
],
170+
&quot;nextPageToken&quot;: &quot;A String&quot;, # Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to `ListAdaptiveMtFiles` method to retrieve the next page of results.
171+
}</pre>
172+
</div>
173+
174+
<div class="method">
175+
<code class="details" id="list_next">list_next()</code>
176+
<pre>Retrieves the next page of results.
177+
178+
Args:
179+
previous_request: The request for the previous page. (required)
180+
previous_response: The response from the request for the previous page. (required)
181+
182+
Returns:
183+
A request object that you can call &#x27;execute()&#x27; on to request the next
184+
page. Returns None if there are no more items in the collection.
185+
</pre>
186+
</div>
187+
188+
</body></html>

0 commit comments

Comments
 (0)
Please sign in to comment.