target.apidocs.com.google.api.services.translate.v3.Translate.Projects.Locations.Datasets.html Maven / Gradle / Ivy
The newest version!
Translate.Projects.Locations.Datasets (Cloud Translation API v3-rev20241218-2.0.0)
com.google.api.services.translate.v3
Class Translate.Projects.Locations.Datasets
- java.lang.Object
-
- com.google.api.services.translate.v3.Translate.Projects.Locations.Datasets
-
- Enclosing class:
- Translate.Projects.Locations
public class Translate.Projects.Locations.Datasets
extends Object
The "datasets" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Translate.Projects.Locations.Datasets.Create
class
Translate.Projects.Locations.Datasets.Delete
class
Translate.Projects.Locations.Datasets.Examples
The "examples" collection of methods.
class
Translate.Projects.Locations.Datasets.ExportData
class
Translate.Projects.Locations.Datasets.Get
class
Translate.Projects.Locations.Datasets.ImportData
class
Translate.Projects.Locations.Datasets.List
-
Constructor Summary
Constructors
Constructor and Description
Datasets()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Translate.Projects.Locations.Datasets.Create
create(String parent,
Dataset content)
Creates a Dataset.
Translate.Projects.Locations.Datasets.Delete
delete(String name)
Deletes a dataset and all of its contents.
Translate.Projects.Locations.Datasets.Examples
examples()
An accessor for creating requests from the Examples collection.
Translate.Projects.Locations.Datasets.ExportData
exportData(String dataset,
ExportDataRequest content)
Exports dataset's data to the provided output location.
Translate.Projects.Locations.Datasets.Get
get(String name)
Gets a Dataset.
Translate.Projects.Locations.Datasets.ImportData
importData(String dataset,
ImportDataRequest content)
Import sentence pairs into translation Dataset.
Translate.Projects.Locations.Datasets.List
list(String parent)
Lists datasets.
-
-
Method Detail
-
create
public Translate.Projects.Locations.Datasets.Create create(String parent,
Dataset content)
throws IOException
Creates a Dataset.
Create a request for the method "datasets.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. The project name.
content
- the Dataset
- Returns:
- the request
- Throws:
IOException
-
delete
public Translate.Projects.Locations.Datasets.Delete delete(String name)
throws IOException
Deletes a dataset and all of its contents.
Create a request for the method "datasets.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 name of the dataset to delete.
- Returns:
- the request
- Throws:
IOException
-
exportData
public Translate.Projects.Locations.Datasets.ExportData exportData(String dataset,
ExportDataRequest content)
throws IOException
Exports dataset's data to the provided output location.
Create a request for the method "datasets.exportData".
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:
dataset
- Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-
id}/datasets/{dataset-id}`
content
- the ExportDataRequest
- Returns:
- the request
- Throws:
IOException
-
get
public Translate.Projects.Locations.Datasets.Get get(String name)
throws IOException
Gets a Dataset.
Create a request for the method "datasets.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 dataset to retrieve.
- Returns:
- the request
- Throws:
IOException
-
importData
public Translate.Projects.Locations.Datasets.ImportData importData(String dataset,
ImportDataRequest content)
throws IOException
Import sentence pairs into translation Dataset.
Create a request for the method "datasets.importData".
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:
dataset
- Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-
id}/datasets/{dataset-id}`
content
- the ImportDataRequest
- Returns:
- the request
- Throws:
IOException
-
list
public Translate.Projects.Locations.Datasets.List list(String parent)
throws IOException
Lists datasets.
Create a request for the method "datasets.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. Name of the parent project. In form of `projects/{project-number-or-
id}/locations/{location-id}`
- Returns:
- the request
- Throws:
IOException
-
examples
public Translate.Projects.Locations.Datasets.Examples examples()
An accessor for creating requests from the Examples collection.
The typical use is:
Translate translate = new Translate(...);
Translate.Examples.List request = translate.examples().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy