# Google Cloud Discovery Engine V1 Client - Class PanelInfo (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class PanelInfo.

Detailed panel information associated with a user event.

Generated from protobuf message `google.cloud.discoveryengine.v1.PanelInfo`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ panel_id` | `string` Required. The panel ID. |
| `↳ display_name` | `string` The display name of the panel. |
| `↳ panel_position` | `int` The ordered position of the panel, if shown to the user with other panels. If set, then [total_panels](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.PanelInfo#_Google_Cloud_DiscoveryEngine_V1_PanelInfo__getTotalPanels__) must also be set. |
| `↳ total_panels` | `int` The total number of panels, including this one, shown to the user. Must be set if [panel_position](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.PanelInfo#_Google_Cloud_DiscoveryEngine_V1_PanelInfo__getPanelPosition__) is set. |
| `↳ documents` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.DocumentInfo>` Optional. The document IDs associated with this panel. |

### getPanelId

Required. The panel ID.

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

### setPanelId

Required. The panel ID.

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

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

### getDisplayName

The display name of the panel.

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

### setDisplayName

The display name of the panel.

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

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

### getPanelPosition

The ordered position of the panel, if shown to the user with other panels.

If set, then
[total_panels](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.PanelInfo#_Google_Cloud_DiscoveryEngine_V1_PanelInfo__getTotalPanels__) must
also be set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasPanelPosition

### clearPanelPosition

### setPanelPosition

The ordered position of the panel, if shown to the user with other panels.

If set, then
[total_panels](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.PanelInfo#_Google_Cloud_DiscoveryEngine_V1_PanelInfo__getTotalPanels__) must
also be set.

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

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

### getTotalPanels

The total number of panels, including this one, shown to the user.

Must be set if
[panel_position](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.PanelInfo#_Google_Cloud_DiscoveryEngine_V1_PanelInfo__getPanelPosition__)
is set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasTotalPanels

### clearTotalPanels

### setTotalPanels

The total number of panels, including this one, shown to the user.

Must be set if
[panel_position](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.PanelInfo#_Google_Cloud_DiscoveryEngine_V1_PanelInfo__getPanelPosition__)
is set.

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

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

### getDocuments

Optional. The document IDs associated with this panel.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.DocumentInfo>` |   |

### setDocuments

Optional. The document IDs associated with this panel.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.DocumentInfo>` |

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