# Data Analytics API with Gemini V1 API - Class Google::Cloud::GeminiDataAnalytics::V1::Message (v0.2.0)

0.2.0 (latest) 0.1.0 Reference documentation and code samples for the Data Analytics API with Gemini V1 API class Google::Cloud::GeminiDataAnalytics::V1::Message.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #message_id

    def message_id() -> ::String

**Returns**

- (::String) --- Optional. unique id of the message in the conversation for persistence.

### #message_id=

    def message_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. unique id of the message in the conversation for persistence.
**Returns**

- (::String) --- Optional. unique id of the message in the conversation for persistence.

### #system_message

    def system_message() -> ::Google::Cloud::GeminiDataAnalytics::V1::SystemMessage

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1::SystemMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-SystemMessage)) --- A message from the system in response to the user.


  Note: The following fields are mutually exclusive: `system_message`, `user_message`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #system_message=

    def system_message=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1::SystemMessage

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1::SystemMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-SystemMessage)) --- A message from the system in response to the user.


  Note: The following fields are mutually exclusive: `system_message`, `user_message`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1::SystemMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-SystemMessage)) --- A message from the system in response to the user.


  Note: The following fields are mutually exclusive: `system_message`, `user_message`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #timestamp

    def timestamp() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/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.

### #user_message

    def user_message() -> ::Google::Cloud::GeminiDataAnalytics::V1::UserMessage

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1::UserMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-UserMessage)) --- A message from the user that is interacting with the system.


  Note: The following fields are mutually exclusive: `user_message`, `system_message`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #user_message=

    def user_message=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1::UserMessage

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1::UserMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-UserMessage)) --- A message from the user that is interacting with the system.


  Note: The following fields are mutually exclusive: `user_message`, `system_message`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1::UserMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-UserMessage)) --- A message from the user that is interacting with the system.


  Note: The following fields are mutually exclusive: `user_message`, `system_message`. If a field in that set is populated, all other fields in the set will automatically be cleared.