<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">On-premises or any cloud edition v1.15</button>

- [SAP BTP edition v1.1](https://docs.cloud.google.com/sap/docs/abap-sdk/btp/latest/reference/googcl_firebaseml_v2beta)
- [On-premises or any cloud edition v1.15](https://docs.cloud.google.com/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/reference/googcl_firebaseml_v2beta.md.txt)

## Class

```abap
/GOOG/CL_FIREBASEML_V2BETA
```

- Inheriting from:`/GOOG/CL_HTTP_CLIENT`
- Description:`Firebase ML API v2beta`

For general information about a class in ABAP SDK for Google Cloud, see [API client stub](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#client_stub).

## Types

| Type | Description | Visibility |
|---|---|---|
| `TY_008` | `Date` | PUBLIC |
| `TY_033` | `GoogleCloudAiplatformV1beta1Blob` | PUBLIC |
| `TY_034` | `GoogleCloudAiplatformV1beta1Candidate` | PUBLIC |
| `TY_035` | `GoogleCloudAiplatformV1beta1Citation` | PUBLIC |
| `TY_036` | `GoogleCloudAiplatformV1beta1CitationMetadata` | PUBLIC |
| `TY_037` | `GoogleCloudAiplatformV1beta1CodeExecutionResult` | PUBLIC |
| `TY_038` | `GoogleCloudAiplatformV1beta1Content` | PUBLIC |
| `TY_039` | `GoogleCloudAiplatformV1beta1CountTokensRequest` | PUBLIC |
| `TY_040` | `GoogleCloudAiplatformV1beta1CountTokensResponse` | PUBLIC |
| `TY_041` | `GoogleCloudAiplatformV1beta1DynamicRetrievalConfig` | PUBLIC |
| `TY_043` | `GoogleCloudAiplatformV1beta1ExecutableCode` | PUBLIC |
| `TY_044` | `GoogleCloudAiplatformV1beta1FileData` | PUBLIC |
| `TY_045` | `GoogleCloudAiplatformV1beta1FunctionCall` | PUBLIC |
| `TY_046` | `GoogleCloudAiplatformV1beta1FunctionCallingConfig` | PUBLIC |
| `TY_047` | `GoogleCloudAiplatformV1beta1FunctionDeclaration` | PUBLIC |
| `TY_048` | `GoogleCloudAiplatformV1beta1FunctionResponse` | PUBLIC |
| `TY_049` | `GoogleCloudAiplatformV1beta1GenerateContentRequest` | PUBLIC |
| `TY_050` | `GoogleCloudAiplatformV1beta1GenerateContentResponse` | PUBLIC |
| `TY_051` | `GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFee` | PUBLIC |
| `TY_052` | `GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMeta` | PUBLIC |
| `TY_053` | `GoogleCloudAiplatformV1beta1GenerationConfig` | PUBLIC |
| `TY_054` | `GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig` | PUBLIC |
| `TY_055` | `GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAut` | PUBLIC |
| `TY_056` | `GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigMan` | PUBLIC |
| `TY_057` | `GoogleCloudAiplatformV1beta1GoogleSearchRetrieval` | PUBLIC |
| `TY_058` | `GoogleCloudAiplatformV1beta1GroundingChunk` | PUBLIC |
| `TY_059` | `GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext` | PUBLIC |
| `TY_060` | `GoogleCloudAiplatformV1beta1GroundingChunkWeb` | PUBLIC |
| `TY_061` | `GoogleCloudAiplatformV1beta1GroundingMetadata` | PUBLIC |
| `TY_062` | `GoogleCloudAiplatformV1beta1GroundingSupport` | PUBLIC |
| `TY_063` | `GoogleCloudAiplatformV1beta1LogprobsResult` | PUBLIC |
| `TY_064` | `GoogleCloudAiplatformV1beta1LogprobsResultCandidate` | PUBLIC |
| `TY_065` | `GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates` | PUBLIC |
| `TY_066` | `GoogleCloudAiplatformV1beta1ModalityTokenCount` | PUBLIC |
| `TY_067` | `GoogleCloudAiplatformV1beta1Part` | PUBLIC |
| `TY_068` | `GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig` | PUBLIC |
| `TY_069` | `GoogleCloudAiplatformV1beta1RagRetrievalConfig` | PUBLIC |
| `TY_070` | `GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter` | PUBLIC |
| `TY_071` | `GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch` | PUBLIC |
| `TY_072` | `GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking` | PUBLIC |
| `TY_073` | `GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRank` | PUBLIC |
| `TY_074` | `GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankSer` | PUBLIC |
| `TY_075` | `GoogleCloudAiplatformV1beta1Retrieval` | PUBLIC |
| `TY_076` | `GoogleCloudAiplatformV1beta1RetrievalConfig` | PUBLIC |
| `TY_077` | `GoogleCloudAiplatformV1beta1RetrievalMetadata` | PUBLIC |
| `TY_078` | `GoogleCloudAiplatformV1beta1SafetyRating` | PUBLIC |
| `TY_079` | `GoogleCloudAiplatformV1beta1SafetySetting` | PUBLIC |
| `TY_081` | `GoogleCloudAiplatformV1beta1SearchEntryPoint` | PUBLIC |
| `TY_082` | `GoogleCloudAiplatformV1beta1Segment` | PUBLIC |
| `TY_083` | `GoogleCloudAiplatformV1beta1SpeechConfig` | PUBLIC |
| `TY_084` | `GoogleCloudAiplatformV1beta1Tool` | PUBLIC |
| `TY_086` | `GoogleCloudAiplatformV1beta1ToolConfig` | PUBLIC |
| `TY_088` | `GoogleCloudAiplatformV1beta1VertexAISearch` | PUBLIC |
| `TY_089` | `GoogleCloudAiplatformV1beta1VertexRagStore` | PUBLIC |
| `TY_090` | `GoogleCloudAiplatformV1beta1VertexRagStoreRagResource` | PUBLIC |
| `TY_091` | `GoogleCloudAiplatformV1beta1VideoMetadata` | PUBLIC |
| `TY_092` | `GoogleCloudAiplatformV1beta1VoiceConfig` | PUBLIC |
| `TY_093` | `LatLng` | PUBLIC |
| `TY_T_034` | `GoogleCloudAiplatformV1beta1Candidate` | PUBLIC |
| `TY_T_035` | `GoogleCloudAiplatformV1beta1Citation` | PUBLIC |
| `TY_T_038` | `GoogleCloudAiplatformV1beta1Content` | PUBLIC |
| `TY_T_047` | `GoogleCloudAiplatformV1beta1FunctionDeclaration` | PUBLIC |
| `TY_T_058` | `GoogleCloudAiplatformV1beta1GroundingChunk` | PUBLIC |
| `TY_T_062` | `GoogleCloudAiplatformV1beta1GroundingSupport` | PUBLIC |
| `TY_T_064` | `GoogleCloudAiplatformV1beta1LogprobsResultCandidate` | PUBLIC |
| `TY_T_065` | `GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates` | PUBLIC |
| `TY_T_066` | `GoogleCloudAiplatformV1beta1ModalityTokenCount` | PUBLIC |
| `TY_T_067` | `GoogleCloudAiplatformV1beta1Part` | PUBLIC |
| `TY_T_078` | `GoogleCloudAiplatformV1beta1SafetyRating` | PUBLIC |
| `TY_T_079` | `GoogleCloudAiplatformV1beta1SafetySetting` | PUBLIC |
| `TY_T_084` | `GoogleCloudAiplatformV1beta1Tool` | PUBLIC |
| `TY_T_090` | `GoogleCloudAiplatformV1beta1VertexRagStoreRagResource` | 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_SUPPORTED_AUTH` | `/GOOG/SUPP_AUTH` | Supported Auth Types | IJIJWW | PUBLIC |
| `C_SERVICE_NAME` | `/GOOG/SERVICE_NAME` | Google Service Name | firebaseml:v2beta | PUBLIC |
| `C_ROOT_URL` | `STRING` | API Root URL | https://firebaseml.googleapis.com | PUBLIC |
| `C_REVISION_DATE` | `DATUM` | Discovery Document revision Date | 20250225 | 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](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#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 |

### COUNT_TOKENS_MODELS

- Description: firebaseml.projects.locations.publishers.models.countTokens
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_PUBLISHERS_ID` | IMPORTING | `STRING` | publishersId |
| `IV_P_MODELS_ID` | IMPORTING | `STRING` | modelsId |
| `IS_INPUT` | IMPORTING | `TY_039` | GoogleCloudAiplatformV1beta1CountTokensRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_040` | GoogleCloudAiplatformV1beta1CountTokensResponse |
| `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: projects.locations.publishers.models.generateContent
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_PUBLISHERS_ID` | IMPORTING | `STRING` | publishersId |
| `IV_P_MODELS_ID` | IMPORTING | `STRING` | modelsId |
| `IS_INPUT` | IMPORTING | `TY_049` | GoogleCloudAiplatformV1beta1GenerateContentRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_050` | GoogleCloudAiplatformV1beta1GenerateContentResponse |
| `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: projects.locations.publishers.models.streamGenerateContent
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_PUBLISHERS_ID` | IMPORTING | `STRING` | publishersId |
| `IV_P_MODELS_ID` | IMPORTING | `STRING` | modelsId |
| `IS_INPUT` | IMPORTING | `TY_049` | GoogleCloudAiplatformV1beta1GenerateContentRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_050` | GoogleCloudAiplatformV1beta1GenerateContentResponse |
| `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