target.apidocs.com.google.api.services.translate.v3.Translate.Projects.Locations.AdaptiveMtDatasets.html Maven / Gradle / Ivy
The newest version!
Translate.Projects.Locations.AdaptiveMtDatasets (Cloud Translation API v3-rev20241218-2.0.0)
com.google.api.services.translate.v3
Class Translate.Projects.Locations.AdaptiveMtDatasets
- java.lang.Object
-
- com.google.api.services.translate.v3.Translate.Projects.Locations.AdaptiveMtDatasets
-
- Enclosing class:
- Translate.Projects.Locations
public class Translate.Projects.Locations.AdaptiveMtDatasets
extends Object
The "adaptiveMtDatasets" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles
The "adaptiveMtFiles" collection of methods.
class
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtSentences
The "adaptiveMtSentences" collection of methods.
class
Translate.Projects.Locations.AdaptiveMtDatasets.Create
class
Translate.Projects.Locations.AdaptiveMtDatasets.Delete
class
Translate.Projects.Locations.AdaptiveMtDatasets.Get
class
Translate.Projects.Locations.AdaptiveMtDatasets.ImportAdaptiveMtFile
class
Translate.Projects.Locations.AdaptiveMtDatasets.List
-
Constructor Summary
Constructors
Constructor and Description
AdaptiveMtDatasets()
-
Method Summary
-
-
Method Detail
-
create
public Translate.Projects.Locations.AdaptiveMtDatasets.Create create(String parent,
AdaptiveMtDataset content)
throws IOException
Creates an Adaptive MT dataset.
Create a request for the method "adaptiveMtDatasets.create".
This request holds the parameters needed by the translate server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. Name of the parent project. In form of `projects/{project-number-or-
id}/locations/{location-id}`
content
- the AdaptiveMtDataset
- Returns:
- the request
- Throws:
IOException
-
delete
public Translate.Projects.Locations.AdaptiveMtDatasets.Delete delete(String name)
throws IOException
Deletes an Adaptive MT dataset, including all its entries and associated metadata.
Create a request for the method "adaptiveMtDatasets.delete".
This request holds the parameters needed by the translate server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the dataset. In the form of `projects/{project-number-or-id}/locations/{location-
id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}`
- Returns:
- the request
- Throws:
IOException
-
get
public Translate.Projects.Locations.AdaptiveMtDatasets.Get get(String name)
throws IOException
Gets the Adaptive MT dataset.
Create a request for the method "adaptiveMtDatasets.get".
This request holds the parameters needed by the translate server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the dataset. In the form of `projects/{project-number-or-id}/locations/{location-
id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}`
- Returns:
- the request
- Throws:
IOException
-
importAdaptiveMtFile
public Translate.Projects.Locations.AdaptiveMtDatasets.ImportAdaptiveMtFile importAdaptiveMtFile(String parent,
ImportAdaptiveMtFileRequest content)
throws IOException
Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.
Create a request for the method "adaptiveMtDatasets.importAdaptiveMtFile".
This request holds the parameters needed by the translate server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
parent
- Required. The resource name of the file, in form of `projects/{project-number-or-
id}/locations/{location_id}/adaptiveMtDatasets/{dataset}`
content
- the ImportAdaptiveMtFileRequest
- Returns:
- the request
- Throws:
IOException
-
list
public Translate.Projects.Locations.AdaptiveMtDatasets.List list(String parent)
throws IOException
Lists all Adaptive MT datasets for which the caller has read permission.
Create a request for the method "adaptiveMtDatasets.list".
This request holds the parameters needed by the translate server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The resource name of the project from which to list the Adaptive MT datasets.
`projects/{project-number-or-id}/locations/{location-id}`
- Returns:
- the request
- Throws:
IOException
-
adaptiveMtFiles
public Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles adaptiveMtFiles()
An accessor for creating requests from the AdaptiveMtFiles collection.
The typical use is:
Translate translate = new Translate(...);
Translate.AdaptiveMtFiles.List request = translate.adaptiveMtFiles().list(parameters ...)
- Returns:
- the resource collection
-
adaptiveMtSentences
public Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtSentences adaptiveMtSentences()
An accessor for creating requests from the AdaptiveMtSentences collection.
The typical use is:
Translate translate = new Translate(...);
Translate.AdaptiveMtSentences.List request = translate.adaptiveMtSentences().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy