target.apidocs.com.google.api.services.translate.v3.Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.html Maven / Gradle / Ivy
The newest version!
Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles (Cloud Translation API v3-rev20241218-2.0.0)
com.google.api.services.translate.v3
Class Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles
- java.lang.Object
-
- com.google.api.services.translate.v3.Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles
-
- Enclosing class:
- Translate.Projects.Locations.AdaptiveMtDatasets
public class Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles
extends Object
The "adaptiveMtFiles" collection of methods.
-
-
Nested Class Summary
Nested Classes
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 Summary
Constructors
Constructor and Description
AdaptiveMtFiles()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
-
Method Detail
-
delete
public Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.Delete delete(String name)
throws IOException
Deletes an AdaptiveMtFile along with its sentences.
Create a request for the method "adaptiveMtFiles.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. The resource name of the file to delete, in form of `projects/{project-number-or-
id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
- Returns:
- the request
- Throws:
IOException
-
get
public Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.Get get(String name)
throws IOException
Gets and AdaptiveMtFile
Create a request for the method "adaptiveMtFiles.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. The resource name of the file, in form of `projects/{project-number-or-
id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
- Returns:
- the request
- Throws:
IOException
-
list
public Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.List list(String parent)
throws IOException
Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
Create a request for the method "adaptiveMtFiles.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 files.
`projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`
- Returns:
- the request
- Throws:
IOException
-
adaptiveMtSentences
public Translate.Projects.Locations.AdaptiveMtDatasets.AdaptiveMtFiles.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