- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- FileInputSource
- Try it!
Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.
HTTP request
POST https://translate.googleapis.com/v3/{parent=projects/*/locations/*/adaptiveMtDatasets/*}:importAdaptiveMtFile
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The resource name of the file, in form of |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field source . The source for the document. source can be only one of the following: |
|
fileInputSource |
Inline file source. |
gcsInputSource |
Google Cloud Storage file source. |
Response body
The response for importing an AdaptiveMtFile
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"adaptiveMtFile": {
object ( |
Fields | |
---|---|
adaptiveMtFile |
Output only. The Adaptive MT file that was imported. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-translation
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
FileInputSource
An inlined file.
JSON representation |
---|
{ "mimeType": string, "content": string, "displayName": string } |
Fields | |
---|---|
mimeType |
Required. The file's mime type. |
content |
Required. The file's byte contents. A base64-encoded string. |
displayName |
Required. The file's display name. |