# Google Cloud Contact Center Insights V1 Client - Class GetConversationRequest (2.4.2)

2.4.2 (latest) 2.4.1 2.3.3 2.2.1 2.1.1 2.0.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.3 Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class GetConversationRequest.

The request to get a conversation.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.GetConversationRequest`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the conversation to get. |
| `↳ view` | `int` The level of details of the conversation. Default is `FULL`. |

### getName

Required. The name of the conversation to get.

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

### setName

Required. The name of the conversation to get.

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

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

### getView

The level of details of the conversation. Default is `FULL`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ConversationView](https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.ConversationView). |

### setView

The level of details of the conversation. Default is `FULL`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ConversationView](https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.ConversationView). |

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the conversation to get. Please see ContactCenterInsightsClient::conversationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.GetConversationRequest` |   |