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

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class Message.

A message from an interaction between the user and the system.

Generated from protobuf message `google.cloud.geminidataanalytics.v1beta.Message`

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ user_message` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.UserMessage` A message from the user that is interacting with the system. |
| `↳ system_message` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.SystemMessage` A message from the system in response to the user. |
| `↳ timestamp` | `Google\Protobuf\Timestamp` Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message. |
| `↳ message_id` | `string` Optional. unique id of the message in the conversation for persistence. |

### getUserMessage

A message from the user that is interacting with the system.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.UserMessage|null` |   |

### hasUserMessage

### setUserMessage

A message from the user that is interacting with the system.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.UserMessage` |

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

### getSystemMessage

A message from the system in response to the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.SystemMessage|null` |   |

### hasSystemMessage

### setSystemMessage

A message from the system in response to the user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.SystemMessage` |

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

### getTimestamp

Output only. For user messages, this is the time at which the system
received the message. For system messages, this is the time at which the
system generated the message.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasTimestamp

### clearTimestamp

### setTimestamp

Output only. For user messages, this is the time at which the system
received the message. For system messages, this is the time at which the
system generated the message.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getMessageId

Optional. unique id of the message in the conversation for persistence.

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

### setMessageId

Optional. unique id of the message in the conversation for persistence.

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

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

### getKind

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