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

Multi-modal content.

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

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text` | `string` Inline text. |
| `↳ inline_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.AssistantContent.Blob` Inline binary data. |
| `↳ file` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.AssistantContent.File` A file, e.g., an audio summary. |
| `↳ executable_code` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.AssistantContent.ExecutableCode` Code generated by the model that is meant to be executed. |
| `↳ code_execution_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.AssistantContent.CodeExecutionResult` Result of executing an ExecutableCode. |
| `↳ role` | `string` The producer of the content. Can be "model" or "user". |
| `↳ thought` | `bool` Optional. Indicates if the part is thought from the model. |

### getText

Inline text.

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

### hasText

### setText

Inline text.

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

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

### getInlineData

Inline binary data.

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

### hasInlineData

### setInlineData

Inline binary data.

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

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

### getFile

A file, e.g., an audio summary.

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

### hasFile

### setFile

A file, e.g., an audio summary.

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

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

### getExecutableCode

Code generated by the model that is meant to be executed.

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

### hasExecutableCode

### setExecutableCode

Code generated by the model that is meant to be executed.

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

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

### getCodeExecutionResult

Result of executing an ExecutableCode.

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

### hasCodeExecutionResult

### setCodeExecutionResult

Result of executing an ExecutableCode.

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

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

### getRole

The producer of the content. Can be "model" or "user".

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

### setRole

The producer of the content. Can be "model" or "user".

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

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

### getThought

Optional. Indicates if the part is thought from the model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setThought

Optional. Indicates if the part is thought from the model.

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

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

### getData

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