ProjectsLocations
class ProjectsLocations extends Resource (View source)
The "locations" collection of methods.
Typical usage is:
$translateService = new Google\Service\Translate(...);
$locations = $translateService->projects_locations;
Methods
Translate text using Adaptive MT. (locations.adaptiveMtTranslate)
Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. (locations.batchTranslateDocument)
Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. (locations.batchTranslateText)
Detects the language of text within a request. (locations.detectLanguage)
Gets information about a location. (locations.get)
Returns a list of supported languages for translation.
Lists information about the supported locations for this service.
Romanize input text written in non-Latin scripts to Latin text.
Translates documents in synchronous mode. (locations.translateDocument)
Translates input text and returns translated text. (locations.translateText)
Details
AdaptiveMtTranslateResponse
adaptiveMtTranslate(string $parent, AdaptiveMtTranslateRequest $postBody, array $optParams = [])
Translate text using Adaptive MT. (locations.adaptiveMtTranslate)
Operation
batchTranslateDocument(string $parent, BatchTranslateDocumentRequest $postBody, array $optParams = [])
Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. (locations.batchTranslateDocument)
Operation
batchTranslateText(string $parent, BatchTranslateTextRequest $postBody, array $optParams = [])
Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. (locations.batchTranslateText)
DetectLanguageResponse
detectLanguage(string $parent, DetectLanguageRequest $postBody, array $optParams = [])
Detects the language of text within a request. (locations.detectLanguage)
Location
get(string $name, array $optParams = [])
Gets information about a location. (locations.get)
SupportedLanguages
getSupportedLanguages(string $parent, array $optParams = [])
Returns a list of supported languages for translation.
(locations.getSupportedLanguages)
ListLocationsResponse
listProjectsLocations(string $name, array $optParams = [])
Lists information about the supported locations for this service.
(locations.listProjectsLocations)
RomanizeTextResponse
romanizeText(string $parent, RomanizeTextRequest $postBody, array $optParams = [])
Romanize input text written in non-Latin scripts to Latin text.
(locations.romanizeText)
TranslateDocumentResponse
translateDocument(string $parent, TranslateDocumentRequest $postBody, array $optParams = [])
Translates documents in synchronous mode. (locations.translateDocument)
TranslateTextResponse
translateText(string $parent, TranslateTextRequest $postBody, array $optParams = [])
Translates input text and returns translated text. (locations.translateText)