# Google Cloud Discovery Engine V1 Client - Class ToolsSpec (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ToolsSpec.

Specification of tools that are used to serve the request.

Generated from protobuf message `google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1 \\ StreamAssistRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ vertex_ai_search_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec` Optional. Specification of the Vertex AI Search tool. |
| `↳ web_grounding_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.WebGroundingSpec` Optional. Specification of the web grounding tool. If field is present, enables grounding with web search. Works only if Assistant.web_grounding_type is WEB_GROUNDING_TYPE_GOOGLE_SEARCH or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH. |
| `↳ image_generation_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec` Optional. Specification of the image generation tool. |
| `↳ video_generation_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec` Optional. Specification of the video generation tool. |

### getVertexAiSearchSpec

Optional. Specification of the Vertex AI Search tool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec|null` |   |

### hasVertexAiSearchSpec

### clearVertexAiSearchSpec

### setVertexAiSearchSpec

Optional. Specification of the Vertex AI Search tool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec` |

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

### getWebGroundingSpec

Optional. Specification of the web grounding tool.

If field is present, enables grounding with web search. Works only if
Assistant.web_grounding_type
is WEB_GROUNDING_TYPE_GOOGLE_SEARCH or
WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.WebGroundingSpec|null` |   |

### hasWebGroundingSpec

### clearWebGroundingSpec

### setWebGroundingSpec

Optional. Specification of the web grounding tool.

If field is present, enables grounding with web search. Works only if
Assistant.web_grounding_type
is WEB_GROUNDING_TYPE_GOOGLE_SEARCH or
WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.WebGroundingSpec` |

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

### getImageGenerationSpec

Optional. Specification of the image generation tool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec|null` |   |

### hasImageGenerationSpec

### clearImageGenerationSpec

### setImageGenerationSpec

Optional. Specification of the image generation tool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec` |

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

### getVideoGenerationSpec

Optional. Specification of the video generation tool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec|null` |   |

### hasVideoGenerationSpec

### clearVideoGenerationSpec

### setVideoGenerationSpec

Optional. Specification of the video generation tool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec` |

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