target.apidocs.com.google.api.services.translate.v3.Translate.Projects.Locations.Models.html Maven / Gradle / Ivy
Translate.Projects.Locations.Models (Cloud Translation API v3-rev20230428-2.0.0)
com.google.api.services.translate.v3
Class Translate.Projects.Locations.Models
- java.lang.Object
-
- com.google.api.services.translate.v3.Translate.Projects.Locations.Models
-
- Enclosing class:
- Translate.Projects.Locations
public class Translate.Projects.Locations.Models
extends Object
The "models" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Translate.Projects.Locations.Models.Create
class
Translate.Projects.Locations.Models.Delete
class
Translate.Projects.Locations.Models.Get
class
Translate.Projects.Locations.Models.List
-
Constructor Summary
Constructors
Constructor and Description
Models()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Translate.Projects.Locations.Models.Create
create(String parent,
Model content)
Creates a Model.
Translate.Projects.Locations.Models.Delete
delete(String name)
Deletes a model.
Translate.Projects.Locations.Models.Get
get(String name)
Gets a model.
Translate.Projects.Locations.Models.List
list(String parent)
Lists models.
-
-
Method Detail
-
create
public Translate.Projects.Locations.Models.Create create(String parent,
Model content)
throws IOException
Creates a Model.
Create a request for the method "models.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, in form of `projects/{project}/locations/{location}`
content
- the Model
- Returns:
- the request
- Throws:
IOException
-
delete
public Translate.Projects.Locations.Models.Delete delete(String name)
throws IOException
Deletes a model.
Create a request for the method "models.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 model to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Translate.Projects.Locations.Models.Get get(String name)
throws IOException
Gets a model.
Create a request for the method "models.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 model to retrieve.
- Returns:
- the request
- Throws:
IOException
-
list
public Translate.Projects.Locations.Models.List list(String parent)
throws IOException
Lists models.
Create a request for the method "models.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
Copyright © 2011–2023 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy