# Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::Conversation (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::Conversation.

Message for a conversation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #agents

    def agents() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. Agent(s) in the conversation. Currently, only one agent is supported. This field is repeated to allow for future support of multiple agents in a conversation. Format: `projects/{project}/locations/{location}/dataAgents/{agent}`

### #agents=

    def agents=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. Agent(s) in the conversation. Currently, only one agent is supported. This field is repeated to allow for future support of multiple agents in a conversation. Format: `projects/{project}/locations/{location}/dataAgents/{agent}`
**Returns**

- (::Array\<::String\>) --- Required. Agent(s) in the conversation. Currently, only one agent is supported. This field is repeated to allow for future support of multiple agents in a conversation. Format: `projects/{project}/locations/{location}/dataAgents/{agent}`

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. Creation timestamp.

### #kms_key

    def kms_key() -> ::String

**Returns**

- (::String) --- Optional. Customer managed encryption key (CMEK) to use for encrypting the Conversation resources. Encryption will happen at Titan layer, we will pass the KMS key to Titan.

  Format:
  projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}.

### #kms_key=

    def kms_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Customer managed encryption key (CMEK) to use for encrypting the Conversation resources. Encryption will happen at Titan layer, we will pass the KMS key to Titan.


  Format:
  projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}.
**Returns**

- (::String) --- Optional. Customer managed encryption key (CMEK) to use for encrypting the Conversation resources. Encryption will happen at Titan layer, we will pass the KMS key to Titan.

  Format:
  projects/{project_id}/locations/{location}/keyRings/{key_ring_name}/cryptoKeys/{key_name}.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Open-ended and user-defined labels that can be set by the client to tag a conversation (e.g. to filter conversations for specific surfaces/products).

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Open-ended and user-defined labels that can be set by the client to tag a conversation (e.g. to filter conversations for specific surfaces/products).
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Open-ended and user-defined labels that can be set by the client to tag a conversation (e.g. to filter conversations for specific surfaces/products).

### #last_used_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. Timestamp of the last used conversation.

### #memory_paused

    def memory_paused() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether memory is paused for this conversation.

### #memory_paused=

    def memory_paused=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether memory is paused for this conversation.
**Returns**

- (::Boolean) --- Optional. Whether memory is paused for this conversation.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Optional. Identifier. The unique resource name of a conversation. Format: `projects/{project}/locations/{location}/conversations/{conversation_id}` `{conversation_id}` is the resource id and should be 63 characters or less and must match the format described in https://google.aip.dev/122#resource-id-segments


  Example:
  `projects/1234567890/locations/global/conversations/my-conversation`.

  It is recommended to skip setting this field during conversation creation
  as it will be inferred automatically and overwritten with the
  {parent}/conversations/{conversation_id}.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Identifier. The unique resource name of a conversation. Format: `projects/{project}/locations/{location}/conversations/{conversation_id}` `{conversation_id}` is the resource id and should be 63 characters or less and must match the format described in https://google.aip.dev/122#resource-id-segments


  Example:
  `projects/1234567890/locations/global/conversations/my-conversation`.

  It is recommended to skip setting this field during conversation creation
  as it will be inferred automatically and overwritten with the
  {parent}/conversations/{conversation_id}.
**Returns**

- (::String) --- Optional. Identifier. The unique resource name of a conversation. Format: `projects/{project}/locations/{location}/conversations/{conversation_id}` `{conversation_id}` is the resource id and should be 63 characters or less and must match the format described in https://google.aip.dev/122#resource-id-segments


  Example:
  `projects/1234567890/locations/global/conversations/my-conversation`.

  It is recommended to skip setting this field during conversation creation
  as it will be inferred automatically and overwritten with the
  {parent}/conversations/{conversation_id}.