# Google Cloud Chronicle V1 Client - Class EntityCount (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class EntityCount.

Count of different types of entities in the watchlist.

Generated from protobuf message `google.cloud.chronicle.v1.Watchlist.EntityCount`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1 \\ Watchlist

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ user` | `int` Output only. Count of user type entities in the watchlist. |
| `↳ asset` | `int` Output only. Count of asset type entities in the watchlist. |

### getUser

Output only. Count of user type entities in the watchlist.

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

### setUser

Output only. Count of user type entities in the watchlist.

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

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

### getAsset

Output only. Count of asset type entities in the watchlist.

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

### setAsset

Output only. Count of asset type entities in the watchlist.

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

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