# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::AssistantContent (v0.28.0)

0.28.0 (latest) 0.27.0 0.26.0 0.25.0 0.24.0 0.23.1 0.22.0 0.21.0 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::AssistantContent.

Multi-modal content.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code_execution_result

    def code_execution_result() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::CodeExecutionResult

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::CodeExecutionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-CodeExecutionResult)) --- Result of executing an ExecutableCode.


  Note: The following fields are mutually exclusive: `code_execution_result`, `text`, `inline_data`, `file`, `executable_code`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #code_execution_result=

    def code_execution_result=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::CodeExecutionResult

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::CodeExecutionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-CodeExecutionResult)) --- Result of executing an ExecutableCode.


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

- ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::CodeExecutionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-CodeExecutionResult)) --- Result of executing an ExecutableCode.


  Note: The following fields are mutually exclusive: `code_execution_result`, `text`, `inline_data`, `file`, `executable_code`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #executable_code

    def executable_code() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::ExecutableCode

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::ExecutableCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-ExecutableCode)) --- Code generated by the model that is meant to be executed.


  Note: The following fields are mutually exclusive: `executable_code`, `text`, `inline_data`, `file`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #executable_code=

    def executable_code=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::ExecutableCode

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::ExecutableCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-ExecutableCode)) --- Code generated by the model that is meant to be executed.


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

- ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::ExecutableCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-ExecutableCode)) --- Code generated by the model that is meant to be executed.


  Note: The following fields are mutually exclusive: `executable_code`, `text`, `inline_data`, `file`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #file

    def file() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::File

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-File)) --- A file, e.g., an audio summary.


  Note: The following fields are mutually exclusive: `file`, `text`, `inline_data`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #file=

    def file=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::File

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-File)) --- A file, e.g., an audio summary.


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

- ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::File](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-File)) --- A file, e.g., an audio summary.


  Note: The following fields are mutually exclusive: `file`, `text`, `inline_data`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #inline_data

    def inline_data() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::Blob

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::Blob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-Blob)) --- Inline binary data.


  Note: The following fields are mutually exclusive: `inline_data`, `text`, `file`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #inline_data=

    def inline_data=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::Blob

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::Blob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-Blob)) --- Inline binary data.


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

- ([::Google::Cloud::DiscoveryEngine::V1beta::AssistantContent::Blob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-AssistantContent-Blob)) --- Inline binary data.


  Note: The following fields are mutually exclusive: `inline_data`, `text`, `file`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #role

    def role() -> ::String

**Returns**

- (::String) --- The producer of the content. Can be "model" or "user".

### #role=

    def role=(value) -> ::String

**Parameter**

- **value** (::String) --- The producer of the content. Can be "model" or "user".
**Returns**

- (::String) --- The producer of the content. Can be "model" or "user".

### #text

    def text() -> ::String

**Returns**

- (::String) --- Inline text.

  Note: The following fields are mutually exclusive: `text`, `inline_data`, `file`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text=

    def text=(value) -> ::String

**Parameter**

- **value** (::String) --- Inline text.


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

- (::String) --- Inline text.

  Note: The following fields are mutually exclusive: `text`, `inline_data`, `file`, `executable_code`, `code_execution_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #thought

    def thought() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Indicates if the part is thought from the model.

### #thought=

    def thought=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Indicates if the part is thought from the model.
**Returns**

- (::Boolean) --- Optional. Indicates if the part is thought from the model.