Class /GOOG/CL_GENERATIVELANGUAGE_V1
Stay organized with collections
Save and categorize content based on your preferences.
Class
/GOOG/CL_GENERATIVELANGUAGE_V1
- Inheriting from:
/GOOG/CL_HTTP_CLIENT
- Description:
Generative Language API v1
For general information about a class in ABAP SDK for Google Cloud,
see
API client stub.
Types
| Type |
Description |
Visibility |
TY_001 |
BatchEmbedContentsRequest |
PUBLIC |
TY_002 |
BatchEmbedContentsResponse |
PUBLIC |
TY_003 |
Blob |
PUBLIC |
TY_005 |
Candidate |
PUBLIC |
TY_006 |
CitationMetadata |
PUBLIC |
TY_007 |
CitationSource |
PUBLIC |
TY_008 |
Content |
PUBLIC |
TY_009 |
ContentEmbedding |
PUBLIC |
TY_010 |
CountTokensRequest |
PUBLIC |
TY_011 |
CountTokensResponse |
PUBLIC |
TY_012 |
EmbedContentRequest |
PUBLIC |
TY_013 |
EmbedContentResponse |
PUBLIC |
TY_015 |
GenerateContentRequest |
PUBLIC |
TY_016 |
GenerateContentResponse |
PUBLIC |
TY_017 |
GenerationConfig |
PUBLIC |
TY_018 |
ListModelsResponse |
PUBLIC |
TY_019 |
ListOperationsResponse |
PUBLIC |
TY_020 |
Model |
PUBLIC |
TY_021 |
Operation |
PUBLIC |
TY_022 |
Part |
PUBLIC |
TY_023 |
PromptFeedback |
PUBLIC |
TY_024 |
SafetyRating |
PUBLIC |
TY_025 |
SafetySetting |
PUBLIC |
TY_026 |
Status |
PUBLIC |
TY_028 |
UsageMetadata |
PUBLIC |
TY_029 |
GroundingChunk |
PUBLIC |
TY_030 |
GroundingMetadata |
PUBLIC |
TY_031 |
GroundingSupport |
PUBLIC |
TY_032 |
LogprobsResult |
PUBLIC |
TY_033 |
LogprobsResultCandidate |
PUBLIC |
TY_034 |
RetrievalMetadata |
PUBLIC |
TY_035 |
SearchEntryPoint |
PUBLIC |
TY_036 |
Segment |
PUBLIC |
TY_037 |
TopCandidates |
PUBLIC |
TY_038 |
Web |
PUBLIC |
TY_T_005 |
Candidate |
PUBLIC |
TY_T_007 |
CitationSource |
PUBLIC |
TY_T_008 |
Content |
PUBLIC |
TY_T_009 |
ContentEmbedding |
PUBLIC |
TY_T_012 |
EmbedContentRequest |
PUBLIC |
TY_T_020 |
Model |
PUBLIC |
TY_T_021 |
Operation |
PUBLIC |
TY_T_022 |
Part |
PUBLIC |
TY_T_024 |
SafetyRating |
PUBLIC |
TY_T_025 |
SafetySetting |
PUBLIC |
TY_T_029 |
GroundingChunk |
PUBLIC |
TY_T_031 |
GroundingSupport |
PUBLIC |
TY_T_033 |
LogprobsResultCandidate |
PUBLIC |
TY_T_037 |
TopCandidates |
PUBLIC |
TY_T_INT4 |
Table of Integers |
PUBLIC |
TY_T_STRING |
Table of Strings |
PUBLIC |
TYT/GOOG/NUM_FLOAT |
|
PUBLIC |
Constants
| Name |
Type |
Description |
Value |
Visibility |
C_CLOUD_VERSION |
/GOOG/SDK_VERSION |
Lowest Cloud Version |
1.1 |
PUBLIC |
C_ON_PREM_VERSION |
/GOOG/SDK_VERSION |
Lowest On-premises Version |
|
PUBLIC |
C_PATH_PREFIX |
STRING |
API Path Prefix |
|
PUBLIC |
C_REVISION_DATE |
DATUM |
Discovery Document revision Date |
20241112 |
PUBLIC |
C_ROOT_URL |
STRING |
API Root URL |
https://generativelanguage.googleapis.com |
PUBLIC |
C_SERVICE_NAME |
/GOOG/SERVICE_NAME |
Google Service Name |
generativelanguage:v1 |
PUBLIC |
C_SUPPORTED_AUTH |
/GOOG/SUPP_AUTH |
Supported Auth Types |
IJIJWW |
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 |
BATCH_EMBED_CONTENTS_MODELS
- Description: generativelanguage.models.batchEmbedContents
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_MODELS_ID |
IMPORTING |
STRING |
modelsId |
IS_INPUT |
IMPORTING |
TY_001 |
BatchEmbedContentsRequest |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_002 |
BatchEmbedContentsResponse |
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 |
CANCEL_OPERATIONS
- Description: generativelanguage.tunedModels.operations.cancel
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_TUNED_MODELS_ID |
IMPORTING |
STRING |
tunedModelsId |
IV_P_OPERATIONS_ID |
IMPORTING |
STRING |
operationsId |
IS_INPUT |
IMPORTING |
DATA |
Input Data |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
DATA |
Output Data |
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 |
COUNT_TOKENS_MODELS
- Description: generativelanguage.models.countTokens
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_MODELS_ID |
IMPORTING |
STRING |
modelsId |
IS_INPUT |
IMPORTING |
TY_010 |
CountTokensRequest |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_011 |
CountTokensResponse |
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 |
DELETE_OPERATIONS
- Description: generativelanguage.operations.delete
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_OPERATIONS_ID |
IMPORTING |
STRING |
operationsId |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
DATA |
Output Data |
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 |
EMBED_CONTENT_MODELS
- Description: generativelanguage.models.embedContent
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_MODELS_ID |
IMPORTING |
STRING |
modelsId |
IS_INPUT |
IMPORTING |
TY_012 |
EmbedContentRequest |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_013 |
EmbedContentResponse |
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 |
GENERATE_CONTENT_MODELS
- Description: generativelanguage.models.generateContent
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_MODELS_ID |
IMPORTING |
STRING |
modelsId |
IS_INPUT |
IMPORTING |
TY_015 |
GenerateContentRequest |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_016 |
GenerateContentResponse |
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 |
GENERATE_CONTENT_TUNED_MODE
- Description: generativelanguage.tunedModels.generateContent
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_TUNED_MODELS_ID |
IMPORTING |
STRING |
tunedModelsId |
IS_INPUT |
IMPORTING |
TY_015 |
GenerateContentRequest |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_016 |
GenerateContentResponse |
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 |
GET_MODELS
- Description: generativelanguage.models.get
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_MODELS_ID |
IMPORTING |
STRING |
modelsId |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_020 |
Model |
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 |
GET_OPERATIONS
- Description: generativelanguage.tunedModels.operations.get
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_TUNED_MODELS_ID |
IMPORTING |
STRING |
tunedModelsId |
IV_P_OPERATIONS_ID |
IMPORTING |
STRING |
operationsId |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_021 |
Operation |
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 |
GET_OPERATIONS1
- Description: generativelanguage.generatedFiles.operations.get
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_GENERATED_FILES_ID |
IMPORTING |
STRING |
generatedFilesId |
IV_P_OPERATIONS_ID |
IMPORTING |
STRING |
operationsId |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_021 |
Operation |
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 |
GET_OPERATIONS2
- Description: generativelanguage.models.operations.get
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_MODELS_ID |
IMPORTING |
STRING |
modelsId |
IV_P_OPERATIONS_ID |
IMPORTING |
STRING |
operationsId |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_021 |
Operation |
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_MODELS
- Description: generativelanguage.models.list
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_Q_PAGESIZE |
IMPORTING |
STRING |
pageSize |
IV_Q_PAGETOKEN |
IMPORTING |
STRING |
pageToken |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_018 |
ListModelsResponse |
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_OPERATIONS
- Description: generativelanguage.operations.list
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_Q_FILTER |
IMPORTING |
STRING |
filter |
IV_Q_PAGESIZE |
IMPORTING |
STRING |
pageSize |
IV_Q_PAGETOKEN |
IMPORTING |
STRING |
pageToken |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_019 |
ListOperationsResponse |
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_OPERATIONS1
- Description: generativelanguage.tunedModels.operations.list
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_Q_FILTER |
IMPORTING |
STRING |
filter |
IV_Q_PAGESIZE |
IMPORTING |
STRING |
pageSize |
IV_Q_PAGETOKEN |
IMPORTING |
STRING |
pageToken |
IV_P_TUNED_MODELS_ID |
IMPORTING |
STRING |
tunedModelsId |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_019 |
ListOperationsResponse |
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_OPERATIONS2
- Description: generativelanguage.models.operations.list
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_Q_FILTER |
IMPORTING |
STRING |
filter |
IV_Q_PAGESIZE |
IMPORTING |
STRING |
pageSize |
IV_Q_PAGETOKEN |
IMPORTING |
STRING |
pageToken |
IV_P_MODELS_ID |
IMPORTING |
STRING |
modelsId |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_019 |
ListOperationsResponse |
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 |
STREAM_GENERATE_CONTENT_MOD
- Description: generativelanguage.models.streamGenerateContent
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_MODELS_ID |
IMPORTING |
STRING |
modelsId |
IS_INPUT |
IMPORTING |
TY_015 |
GenerateContentRequest |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_016 |
GenerateContentResponse |
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 |
STREAM_GENERATE_CONTENT_TUN
- Description: generativelanguage.tunedModels.streamGenerateContent
- Visibility: PUBLIC
Parameters
| Name |
Category |
Type |
Description |
IV_P_TUNED_MODELS_ID |
IMPORTING |
STRING |
tunedModelsId |
IS_INPUT |
IMPORTING |
TY_015 |
GenerateContentRequest |
ES_RAW |
EXPORTING |
DATA |
Raw Output Data |
ES_OUTPUT |
EXPORTING |
TY_016 |
GenerateContentResponse |
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
[null,null,["Last updated 2026-12-03 UTC."],[],[]]