public class Translate.Projects.Locations.Datasets extends Object
| 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 and Description |
|---|
Datasets() |
| 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.
|
public Translate.Projects.Locations.Datasets.Create create(String parent, Dataset content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The project name.content - the DatasetIOExceptionpublic Translate.Projects.Locations.Datasets.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The name of the dataset to delete.IOExceptionpublic Translate.Projects.Locations.Datasets.ExportData exportData(String dataset, ExportDataRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.dataset - Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-
id}/datasets/{dataset-id}`content - the ExportDataRequestIOExceptionpublic Translate.Projects.Locations.Datasets.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the dataset to retrieve.IOExceptionpublic Translate.Projects.Locations.Datasets.ImportData importData(String dataset, ImportDataRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.dataset - Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-
id}/datasets/{dataset-id}`content - the ImportDataRequestIOExceptionpublic Translate.Projects.Locations.Datasets.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations
/{location-id}`IOExceptionpublic Translate.Projects.Locations.Datasets.Examples examples()
The typical use is:
Translate translate = new Translate(...);Translate.Examples.List request = translate.examples().list(parameters ...)
Copyright © 2011–2023 Google. All rights reserved.