Send feedback
  
   
 
  
    
      Class /GOOG/CL_TRANSLATION_V2 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  
  
  
  
  On-premises or any cloud edition v1.12keyboard_arrow_down  
  
 
  
  
Class 
/GOOG/CL_TRANSLATION_V2  
Inheriting from:/GOOG/CL_HTTP_CLIENT 
Description:Google Cloud Translation API v2   
For general information about a class in ABAP SDK for Google Cloud,
see 
API client stub .
Types 
Type 
Description 
Visibility 
 
 
TY_001 
DetectLanguageRequest 
PUBLIC 
 
TY_002 
DetectionsListResponse 
PUBLIC 
 
TY_003 
DetectionsResource 
PUBLIC 
 
TY_004 
LanguagesListResponse 
PUBLIC 
 
TY_005 
LanguagesResource 
PUBLIC 
 
TY_006 
TranslateTextRequest 
PUBLIC 
 
TY_007 
TranslationsListResponse 
PUBLIC 
 
TY_008 
TranslationsResource 
PUBLIC 
 
TY_T_003 
DetectionsResource 
PUBLIC 
 
TY_T_005 
LanguagesResource 
PUBLIC 
 
TY_T_008 
TranslationsResource 
PUBLIC 
 
TY_T_T_003 
DetectionsResource 
PUBLIC 
 
TY_T_STRING 
Table of Strings 
PUBLIC 
 
TY_LANGUAGES 
Languages 
PUBLIC 
 
TY_DETECTIONS 
Detections 
PUBLIC 
 
TY_TRANSLATIONS 
Translations 
PUBLIC 
 
Constants 
Name 
Type 
Description 
Value 
Visibility 
 
 
C_SUPPORTED_AUTH 
/GOOG/SUPP_AUTH 
Supported Auth Types 
AAIJWW 
PUBLIC 
 
C_SERVICE_NAME 
/GOOG/SERVICE_NAME 
Google Service Name 
translate:v2 
PUBLIC 
 
C_ROOT_URL 
STRING 
API Root URL 
https://translation.googleapis.com 
PUBLIC 
 
C_REVISION_DATE 
DATUM 
Discovery Document revision Date 
20170525 
PUBLIC 
 
C_PATH_PREFIX 
STRING 
API Path Prefix 
/language/translate/ 
PUBLIC 
 
C_ON_PREM_VERSION 
/GOOG/SDK_VERSION 
Lowest On-premises Version 
1.0 
PUBLIC 
 
C_CLOUD_VERSION 
/GOOG/SDK_VERSION 
Lowest Cloud Version 
1.0 
PUBLIC 
 
Methods 
For general information about a method in ABAP SDK for Google Cloud,
see 
API method .
CONSTRUCTOR 
Description: Constructor  
Visibility: PUBLIC  
 
Parameters 
Name 
Category 
Type 
Description 
 
 
IV_KEY_NAME 
IMPORTING 
/GOOG/KEYNAME 
Google Cloud Key Name 
 
IV_LOG_OBJ 
IMPORTING 
BALOBJ_D 
Application log: Object name (Application code) 
 
IV_LOG_SUBOBJ 
IMPORTING 
BALSUBOBJ 
Application Log: Subobject 
 
Exception 
Name 
Description 
 
  
/GOOG/CX_SDK 
ABAP SDK for Google Cloud: Exception Class 
 
DETECT_DETECTIONS 
Description: language.detections.detect  
Visibility: PUBLIC  
 
Parameters 
Name 
Category 
Type 
Description 
 
 
IS_INPUT 
IMPORTING 
TY_001 
DetectLanguageRequest 
 
ES_RAW 
EXPORTING 
DATA 
Raw Output Data 
 
ES_OUTPUT 
EXPORTING 
TY_002 
DetectionsListResponse 
 
EV_RET_CODE 
EXPORTING 
I 
Return Code 
 
EV_ERR_TEXT 
EXPORTING 
STRING 
Error Text 
 
ES_ERR_RESP 
EXPORTING 
/GOOG/ERR_RESP 
Error Response 
 
Exception 
Name 
Description 
 
  
/GOOG/CX_SDK 
ABAP SDK for Google Cloud: Exception Class 
 
LIST_LANGUAGES 
Description: language.languages.list  
Visibility: PUBLIC  
 
Parameters 
Name 
Category 
Type 
Description 
 
 
IV_Q_MODEL 
IMPORTING 
STRING 
model 
 
IV_Q_TARGET 
IMPORTING 
STRING 
target 
 
ES_RAW 
EXPORTING 
DATA 
Raw Output Data 
 
ES_OUTPUT 
EXPORTING 
TY_004 
LanguagesListResponse 
 
EV_RET_CODE 
EXPORTING 
I 
Return Code 
 
EV_ERR_TEXT 
EXPORTING 
STRING 
Error Text 
 
ES_ERR_RESP 
EXPORTING 
/GOOG/ERR_RESP 
Error Response 
 
Exception 
Name 
Description 
 
  
/GOOG/CX_SDK 
ABAP SDK for Google Cloud: Exception Class 
 
TRANSLATE_TRANSLATIONS 
Description: language.translations.translate  
Visibility: PUBLIC  
 
Parameters 
Name 
Category 
Type 
Description 
 
 
IS_INPUT 
IMPORTING 
TY_006 
TranslateTextRequest 
 
ES_RAW 
EXPORTING 
DATA 
Raw Output Data 
 
ES_OUTPUT 
EXPORTING 
TY_007 
TranslationsListResponse 
 
EV_RET_CODE 
EXPORTING 
I 
Return Code 
 
EV_ERR_TEXT 
EXPORTING 
STRING 
Error Text 
 
ES_ERR_RESP 
EXPORTING 
/GOOG/ERR_RESP 
Error Response 
 
Exception 
Name 
Description 
 
  
/GOOG/CX_SDK 
ABAP SDK for Google Cloud: Exception Class 
 
CLOSE 
Description: Close Connection  
Visibility: PUBLIC  
 
  
  
  
     
  
  
 
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]