0.16.0 (latest) 0.15.0 0.14.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1 Client class TextMessage.

A multi-part text message.

Generated from protobuf message `google.cloud.geminidataanalytics.v1.TextMessage`

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parts` | `string[]` Optional. The parts of the message. |
| `↳ text_type` | `int` Optional. The type of the text message. |
| `↳ thought_signature` | `string` Optional. An opaque signature for a thought so it can be reused in subsequent requests. |

### getParts

Optional. The parts of the message.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setParts

Optional. The parts of the message.

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

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

### getTextType

Optional. The type of the text message.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TextType](https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.TextMessage.TextType). |

### setTextType

Optional. The type of the text message.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TextType](https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1.TextMessage.TextType). |

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

### getThoughtSignature

Optional. An opaque signature for a thought so it can be reused in
subsequent requests.

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

### setThoughtSignature

Optional. An opaque signature for a thought so it can be reused in
subsequent requests.

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

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