public class Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.AdaptiveMtSentences
The "adaptiveMtSentences" collection of methods.
|
class |
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.Delete |
class |
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.Get |
class |
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.List |
| Constructor and Description |
|---|
AdaptiveMtFiles() |
| Modifier and Type | Method and Description |
|---|---|
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.AdaptiveMtSentences |
adaptiveMtSentences()
An accessor for creating requests from the AdaptiveMtSentences collection.
|
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.Delete |
delete(String name)
Deletes an AdaptiveMtFile along with its sentences.
|
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.Get |
get(String name)
Gets and AdaptiveMtFile
Create a request for the method "adaptiveMtFiles.get".
|
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.List |
list(String parent)
Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
|
public Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the file to delete, in form of `projects/{project-number-or-
id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`IOExceptionpublic Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the file, in form of `projects/{project-number-or-
id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`IOExceptionpublic Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource name of the project from which to list the Adaptive MT files.
`projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`IOExceptionpublic Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.AdaptiveMtSentences adaptiveMtSentences()
The typical use is:
Translate translate = new Translate(...);Translate.AdaptiveMtSentences.List request = translate.adaptiveMtSentences().list(parameters ...)
Copyright © 2011–2023 Google. All rights reserved.