# Google Cloud Dialogflow V2 Client - Class Summary (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Summary.

Generated summary for a conversation.

Generated from protobuf message `google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2 \\ SuggestConversationSummaryResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text` | `string` The summary content that is concatenated into one string. |
| `↳ text_sections` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` The summary content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value. |
| `↳ sorted_text_sections` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestConversationSummaryResponse.Summary.SummarySection>` Same as text_sections, but in an order that is consistent with the order of the sections in the generator. |
| `↳ answer_record` | `string` The name of the answer record. Format: "projects/ |
| `↳ baseline_model_version` | `string` The baseline model version used to generate this summary. It is empty if a baseline model was not used to generate this summary. |

### getText

The summary content that is concatenated into one string.

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

### setText

The summary content that is concatenated into one string.

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

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

### getTextSections

The summary content that is divided into sections. The key is the
section's name and the value is the section's content. There is no
specific format for the key or value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setTextSections

The summary content that is divided into sections. The key is the
section's name and the value is the section's content. There is no
specific format for the key or value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getSortedTextSections

Same as text_sections, but in an order that is consistent with the order
of the sections in the generator.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestConversationSummaryResponse.Summary.SummarySection>` |   |

### setSortedTextSections

Same as text_sections, but in an order that is consistent with the order
of the sections in the generator.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestConversationSummaryResponse.Summary.SummarySection>` |

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

### getAnswerRecord

The name of the answer record. Format:
"projects/


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

### setAnswerRecord

The name of the answer record. Format:
"projects/


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

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

### getBaselineModelVersion

The baseline model version used to generate this summary. It is empty if
a baseline model was not used to generate this summary.

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

### setBaselineModelVersion

The baseline model version used to generate this summary. It is empty if
a baseline model was not used to generate this summary.

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

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