Class /GOOG/CL_LANGUAGE_V1BETA2

Class

/GOOG/CL_LANGUAGE_V1BETA2
  • Inheriting from:/GOOG/CL_HTTP_CLIENT
  • Description:Cloud Natural Language API v1beta2
For general information about a class in ABAP SDK for Google Cloud, see API client stub.

Types

Type Description Visibility
TY_001 AnalyzeEntitiesRequest PUBLIC
TY_002 AnalyzeEntitiesResponse PUBLIC
TY_003 AnalyzeEntitySentimentRequest PUBLIC
TY_004 AnalyzeEntitySentimentResponse PUBLIC
TY_005 AnalyzeSentimentRequest PUBLIC
TY_006 AnalyzeSentimentResponse PUBLIC
TY_007 AnalyzeSyntaxRequest PUBLIC
TY_008 AnalyzeSyntaxResponse PUBLIC
TY_009 AnnotateTextRequest PUBLIC
TY_010 AnnotateTextRequestFeatures PUBLIC
TY_011 AnnotateTextResponse PUBLIC
TY_012 ClassificationCategory PUBLIC
TY_013 ClassificationModelOptions PUBLIC
TY_015 ClassificationModelOptionsV2Model PUBLIC
TY_016 ClassifyTextRequest PUBLIC
TY_017 ClassifyTextResponse PUBLIC
TY_020 DependencyEdge PUBLIC
TY_022 Document PUBLIC
TY_023 Entity PUBLIC
TY_024 EntityMention PUBLIC
TY_027 ModerateTextRequest PUBLIC
TY_028 ModerateTextResponse PUBLIC
TY_029 PartOfSpeech PUBLIC
TY_031 Sentence PUBLIC
TY_032 Sentiment PUBLIC
TY_033 TextSpan PUBLIC
TY_034 Token PUBLIC
TY_T_012 ClassificationCategory PUBLIC
TY_T_023 Entity PUBLIC
TY_T_024 EntityMention PUBLIC
TY_T_031 Sentence PUBLIC
TY_T_034 Token PUBLIC

Constants

Name Type Description Value Visibility
C_SUPPORTED_AUTH /GOOG/SUPP_AUTH Supported Auth Types IJIJWW PUBLIC
C_SERVICE_NAME /GOOG/SERVICE_NAME Google Service Name language:v1beta2 PUBLIC
C_ROOT_URL STRING API Root URL https://language.googleapis.com PUBLIC
C_REVISION_DATE DATUM Discovery Document revision Date 20250303 PUBLIC
C_PATH_PREFIX STRING API Path Prefix PUBLIC
C_ON_PREM_VERSION /GOOG/SDK_VERSION Lowest On-premises Version 1.7 PUBLIC
C_CLOUD_VERSION /GOOG/SDK_VERSION Lowest Cloud Version 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

ANALYZE_ENTITIES_DOCUMENTS

  • Description: language.documents.analyzeEntities
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IS_INPUT IMPORTING TY_001 AnalyzeEntitiesRequest
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_002 AnalyzeEntitiesResponse
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

ANALYZE_ENTITY_SENTIMENT_DO

  • Description: language.documents.analyzeEntitySentiment
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IS_INPUT IMPORTING TY_003 AnalyzeEntitySentimentRequest
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_004 AnalyzeEntitySentimentResponse
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

ANALYZE_SENTIMENT_DOCUMENTS

  • Description: language.documents.analyzeSentiment
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IS_INPUT IMPORTING TY_005 AnalyzeSentimentRequest
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_006 AnalyzeSentimentResponse
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

ANALYZE_SYNTAX_DOCUMENTS

  • Description: language.documents.analyzeSyntax
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IS_INPUT IMPORTING TY_007 AnalyzeSyntaxRequest
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_008 AnalyzeSyntaxResponse
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

ANNOTATE_TEXT_DOCUMENTS

  • Description: language.documents.annotateText
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IS_INPUT IMPORTING TY_009 AnnotateTextRequest
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_011 AnnotateTextResponse
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

CLASSIFY_TEXT_DOCUMENTS

  • Description: language.documents.classifyText
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IS_INPUT IMPORTING TY_016 ClassifyTextRequest
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_017 ClassifyTextResponse
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

MODERATE_TEXT_DOCUMENTS

  • Description: language.documents.moderateText
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IS_INPUT IMPORTING TY_027 ModerateTextRequest
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_028 ModerateTextResponse
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