All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.translate.v3.Translate.Projects.Locations.Datasets.html Maven / Gradle / Ivy

There is a newer version: v3-rev20241218-2.0.0
Show newest version






Translate.Projects.Locations.Datasets (Cloud Translation API v3-rev20230428-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
    • Constructor Detail

      • Datasets

        public 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–2023 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy