public class Translate.Projects.Locations extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Translate.Projects.Locations.BatchTranslateDocument |
class |
Translate.Projects.Locations.BatchTranslateText |
class |
Translate.Projects.Locations.DetectLanguage |
class |
Translate.Projects.Locations.Get |
class |
Translate.Projects.Locations.GetSupportedLanguages |
class |
Translate.Projects.Locations.Glossaries
The "glossaries" collection of methods.
|
class |
Translate.Projects.Locations.List |
class |
Translate.Projects.Locations.Operations
The "operations" collection of methods.
|
class |
Translate.Projects.Locations.TranslateDocument |
class |
Translate.Projects.Locations.TranslateText |
| Constructor and Description |
|---|
Locations() |
public Translate.Projects.Locations.BatchTranslateDocument batchTranslateDocument(String parent, BatchTranslateDocumentRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.parent - Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations
/{location-id}`. The `global` location is not supported for batch translation. Only AutoML
Translation models or glossaries within the same region (have the same location-id) can be
used, otherwise an INVALID_ARGUMENT (400) error is returned.content - the BatchTranslateDocumentRequestIOExceptionpublic Translate.Projects.Locations.BatchTranslateText batchTranslateText(String parent, BatchTranslateTextRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-
number-or-id}/locations/{location-id}`. The `global` location is not supported for batch
translation. Only AutoML Translation models or glossaries within the same region (have the
same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.content - the BatchTranslateTextRequestIOExceptionpublic Translate.Projects.Locations.DetectLanguage detectLanguage(String parent, DetectLanguageRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Project or location to make a call. Must refer to a caller's project. Format: `projects
/{project-number-or-id}/locations/{location-id}` or `projects/{project-number-or-id}`. For
global calls, use `projects/{project-number-or-id}/locations/global` or `projects
/{project-number-or-id}`. Only models within the same region (has same location-id) can be
used. Otherwise an INVALID_ARGUMENT (400) error is returned.content - the DetectLanguageRequestIOExceptionpublic Translate.Projects.Locations.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Resource name for the location.IOExceptionpublic Translate.Projects.Locations.GetSupportedLanguages getSupportedLanguages(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.parent - Required. Project or location to make a call. Must refer to a caller's project. Format: `projects
/{project-number-or-id}` or `projects/{project-number-or-id}/locations/{location-id}`. For
global calls, use `projects/{project-number-or-id}/locations/global` or `projects
/{project-number-or-id}`. Non-global location is required for AutoML models. Only models
within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT
(400) error is returned.IOExceptionpublic Translate.Projects.Locations.List list(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The resource that owns the locations collection, if applicable.IOExceptionpublic Translate.Projects.Locations.TranslateDocument translateDocument(String parent, TranslateDocumentRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations
/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global`
or `projects/{project-number-or-id}`. Non-global location is required for requests using
AutoML models or custom glossaries. Models and glossaries must be within the same region
(have the same location-id), otherwise an INVALID_ARGUMENT (400) error is returned.content - the TranslateDocumentRequestIOExceptionpublic Translate.Projects.Locations.TranslateText translateText(String parent, TranslateTextRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Project or location to make a call. Must refer to a caller's project. Format: `projects
/{project-number-or-id}` or `projects/{project-number-or-id}/locations/{location-id}`. For
global calls, use `projects/{project-number-or-id}/locations/global` or `projects
/{project-number-or-id}`. Non-global location is required for requests using AutoML models
or custom glossaries. Models and glossaries must be within the same region (have same
location-id), otherwise an INVALID_ARGUMENT (400) error is returned.content - the TranslateTextRequestIOExceptionpublic Translate.Projects.Locations.Glossaries glossaries()
The typical use is:
Translate translate = new Translate(...);Translate.Glossaries.List request = translate.glossaries().list(parameters ...)
public Translate.Projects.Locations.Operations operations()
The typical use is:
Translate translate = new Translate(...);Translate.Operations.List request = translate.operations().list(parameters ...)
Copyright © 2011–2021 Google. All rights reserved.