# Google Cloud Document Ai V1 Client - Class CustomGenAiModelInfo (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class CustomGenAiModelInfo.

Information for a custom Generative AI model created by the user. These
are created with `Create New Version` in either the `Call foundation
model` or `Fine tuning` tabs.

Generated from protobuf message `google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1 \\ ProcessorVersion \\ GenAiModelInfo

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ custom_model_type` | `int` The type of custom model created by the user. |
| `↳ base_processor_version_id` | `string` The base processor version ID for the custom model. |

### getCustomModelType

The type of custom model created by the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CustomModelType](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType). |

### setCustomModelType

The type of custom model created by the user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CustomModelType](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBaseProcessorVersionId

The base processor version ID for the custom model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBaseProcessorVersionId

The base processor version ID for the custom model.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |