# Google Cloud Discovery Engine V1 Client - Class AssistantGroundedContent (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 AssistantGroundedContent.

A piece of content and possibly its grounding information.

Not all content needs grounding. Phrases like "Of course, I will gladly
search it for you." do not need grounding.

Generated from protobuf message `google.cloud.discoveryengine.v1.AssistantGroundedContent`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text_grounding_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.AssistantGroundedContent.TextGroundingMetadata` Metadata for grounding based on text sources. |
| `↳ content` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.AssistantContent` The content. |

### getTextGroundingMetadata

Metadata for grounding based on text sources.

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

### hasTextGroundingMetadata

### setTextGroundingMetadata

Metadata for grounding based on text sources.

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

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

### getContent

The content.

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

### hasContent

### clearContent

### setContent

The content.

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

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

### getMetadata

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