0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class ModalityConfig.

If specified, will apply the given configuration for the specified
modality.

Generated from protobuf message `google.cloud.ces.v1.DataStoreTool.ModalityConfig`

## Namespace

Google \\ Cloud \\ Ces \\ V1 \\ DataStoreTool

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ modality_type` | `int` Required. The modality type. |
| `↳ rewriter_config` | `RewriterConfig` Optional. The rewriter config. |
| `↳ summarization_config` | `SummarizationConfig` Optional. The summarization config. |
| `↳ grounding_config` | `GroundingConfig` Optional. The grounding configuration. |

### getModalityType

Required. The modality type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ModalityType](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.DataStoreTool.ModalityConfig.ModalityType.md.txt). |

### setModalityType

Required. The modality type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ModalityType](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.DataStoreTool.ModalityConfig.ModalityType.md.txt). |

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

### getRewriterConfig

Optional. The rewriter config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `RewriterConfig|null` |   |

### hasRewriterConfig

### clearRewriterConfig

### setRewriterConfig

Optional. The rewriter config.

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

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

### getSummarizationConfig

Optional. The summarization config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SummarizationConfig|null` |   |

### hasSummarizationConfig

### clearSummarizationConfig

### setSummarizationConfig

Optional. The summarization config.

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

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

### getGroundingConfig

Optional. The grounding configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GroundingConfig|null` |   |

### hasGroundingConfig

### clearGroundingConfig

### setGroundingConfig

Optional. The grounding configuration.

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

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