You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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
+
"adaptiveMtSentences": [ # Output only. The list of AdaptiveMtSentences.
110
+
{ # An AdaptiveMt sentence entry.
111
+
"createTime": "A String", # Output only. Timestamp when this sentence was created.
112
+
"name": "A String", # 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
+
"sourceSentence": "A String", # Required. The source sentence.
114
+
"targetSentence": "A String", # Required. The target sentence.
115
+
"updateTime": "A String", # Output only. Timestamp when this sentence was last updated.
<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); }
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
+
"createTime": "A String", # Output only. Timestamp when this file was created.
137
+
"displayName": "A String", # The file's display name.
138
+
"entryCount": 42, # The number of entries that the file contains.
139
+
"name": "A String", # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`
140
+
"updateTime": "A String", # Output only. Timestamp when this file was last updated.
<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
+
"adaptiveMtFiles": [ # Output only. The Adaptive MT files.
162
+
{ # An AdaptiveMtFile.
163
+
"createTime": "A String", # Output only. Timestamp when this file was created.
164
+
"displayName": "A String", # The file's display name.
165
+
"entryCount": 42, # The number of entries that the file contains.
166
+
"name": "A String", # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`
167
+
"updateTime": "A String", # Output only. Timestamp when this file was last updated.
168
+
},
169
+
],
170
+
"nextPageToken": "A String", # 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.
0 commit comments