# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::ToolCallResult (v1.16.1)

1.16.1 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.1 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.34.0 0.33.0 0.32.2 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::ToolCallResult.

The result of calling a tool's action.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #action

    def action() -> ::String

**Returns**

- (::String) --- Optional. The name of the tool's action associated with this call.

### #action=

    def action=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the tool's action associated with this call.
**Returns**

- (::String) --- Optional. The name of the tool's action associated with this call.

### #answer_record

    def answer_record() -> ::String

**Returns**

- (::String) --- Optional. The answer record associated with this tool call result.

### #answer_record=

    def answer_record=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The answer record associated with this tool call result.
**Returns**

- (::String) --- Optional. The answer record associated with this tool call result.

### #ces_app

    def ces_app() -> ::String

**Returns**

- (::String) --- Optional. CES app name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.


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

### #ces_app=

    def ces_app=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. CES app name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.


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

- (::String) --- Optional. CES app name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.


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

### #ces_tool

    def ces_tool() -> ::String

**Returns**

- (::String) --- Optional. CES tool name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.


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

### #ces_tool=

    def ces_tool=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. CES tool name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.


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

- (::String) --- Optional. CES tool name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.


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

### #ces_toolset

    def ces_toolset() -> ::String

**Returns**

- (::String) --- Optional. CES toolset name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.


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

### #ces_toolset=

    def ces_toolset=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. CES toolset name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.


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

- (::String) --- Optional. CES toolset name for this call. Format: `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.


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

### #content

    def content() -> ::String

**Returns**

- (::String) --- Only populated if the response content is utf-8 encoded.

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

### #content=

    def content=(value) -> ::String

**Parameter**

- **value** (::String) --- Only populated if the response content is utf-8 encoded.


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

- (::String) --- Only populated if the response content is utf-8 encoded.

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

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Protobuf-Timestamp)) --- Output only. Create time of the tool call result.

### #error

    def error() -> ::Google::Cloud::Dialogflow::V2::ToolCallResult::Error

**Returns**

- ([::Google::Cloud::Dialogflow::V2::ToolCallResult::Error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-ToolCallResult-Error)) --- The tool call's error.


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

### #error=

    def error=(value) -> ::Google::Cloud::Dialogflow::V2::ToolCallResult::Error

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::V2::ToolCallResult::Error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-ToolCallResult-Error)) --- The tool call's error.


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

- ([::Google::Cloud::Dialogflow::V2::ToolCallResult::Error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-ToolCallResult-Error)) --- The tool call's error.


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

### #raw_content

    def raw_content() -> ::String

**Returns**

- (::String) --- Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded).

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

### #raw_content=

    def raw_content=(value) -> ::String

**Parameter**

- **value** (::String) --- Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded).


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

- (::String) --- Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded).

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

### #tool

    def tool() -> ::String

**Returns**

- (::String) --- Optional. The [tool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Tool "Google::Cloud::Dialogflow::V2::Tool (class)") associated with this call. Format: `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.


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

### #tool=

    def tool=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The [tool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Tool "Google::Cloud::Dialogflow::V2::Tool (class)") associated with this call. Format: `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.


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

- (::String) --- Optional. The [tool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Tool "Google::Cloud::Dialogflow::V2::Tool (class)") associated with this call. Format: `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.


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