public class Translate.Projects.Locations extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Translate.Projects.Locations.AdaptiveMtDatasets
The "adaptiveMtDatasets" collection of methods.
|
class |
Translate.Projects.Locations.AdaptiveMtTranslate |
class |
Translate.Projects.Locations.BatchTranslateDocument |
class |
Translate.Projects.Locations.BatchTranslateText |
class |
Translate.Projects.Locations.Datasets
The "datasets" collection of methods.
|
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.Models
The "models" collection of methods.
|
class |
Translate.Projects.Locations.Operations
The "operations" collection of methods.
|
class |
Translate.Projects.Locations.RomanizeText |
class |
Translate.Projects.Locations.TranslateDocument |
class |
Translate.Projects.Locations.TranslateText |
| Constructor and Description |
|---|
Locations() |
| Modifier and Type | Method and Description |
|---|---|
Translate.Projects.Locations.AdaptiveMtDatasets |
adaptiveMtDatasets()
An accessor for creating requests from the AdaptiveMtDatasets collection.
|
Translate.Projects.Locations.AdaptiveMtTranslate |
adaptiveMtTranslate(String parent,
AdaptiveMtTranslateRequest content)
Translate text using Adaptive MT.
|
Translate.Projects.Locations.BatchTranslateDocument |
batchTranslateDocument(String parent,
BatchTranslateDocumentRequest content)
Translates a large volume of document in asynchronous batch mode.
|
Translate.Projects.Locations.BatchTranslateText |
batchTranslateText(String parent,
BatchTranslateTextRequest content)
Translates a large volume of text in asynchronous batch mode.
|
Translate.Projects.Locations.Datasets |
datasets()
An accessor for creating requests from the Datasets collection.
|
Translate.Projects.Locations.DetectLanguage |
detectLanguage(String parent,
DetectLanguageRequest content)
Detects the language of text within a request.
|
Translate.Projects.Locations.Get |
get(String name)
Gets information about a location.
|
Translate.Projects.Locations.GetSupportedLanguages |
getSupportedLanguages(String parent)
Returns a list of supported languages for translation.
|
Translate.Projects.Locations.Glossaries |
glossaries()
An accessor for creating requests from the Glossaries collection.
|
Translate.Projects.Locations.List |
list(String name)
Lists information about the supported locations for this service.
|
Translate.Projects.Locations.Models |
models()
An accessor for creating requests from the Models collection.
|
Translate.Projects.Locations.Operations |
operations()
An accessor for creating requests from the Operations collection.
|
Translate.Projects.Locations.RomanizeText |
romanizeText(String parent,
RomanizeTextRequest content)
Romanize input text written in non-Latin scripts to Latin text.
|
Translate.Projects.Locations.TranslateDocument |
translateDocument(String parent,
TranslateDocumentRequest content)
Translates documents in synchronous mode.
|
Translate.Projects.Locations.TranslateText |
translateText(String parent,
TranslateTextRequest content)
Translates input text and returns translated text.
|
public Translate.Projects.Locations.AdaptiveMtTranslate adaptiveMtTranslate(String parent, AdaptiveMtTranslateRequest 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}`.content - the AdaptiveMtTranslateRequestIOExceptionpublic 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.RomanizeText romanizeText(String parent, RomanizeTextRequest 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}`.content - the RomanizeTextRequestIOExceptionpublic 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.AdaptiveMtDatasets adaptiveMtDatasets()
The typical use is:
Translate translate = new Translate(...);Translate.AdaptiveMtDatasets.List request = translate.adaptiveMtDatasets().list(parameters ...)
public Translate.Projects.Locations.Datasets datasets()
The typical use is:
Translate translate = new Translate(...);Translate.Datasets.List request = translate.datasets().list(parameters ...)
public 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.Models models()
The typical use is:
Translate translate = new Translate(...);Translate.Models.List request = translate.models().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–2023 Google. All rights reserved.