# Google Cloud OsConfig V1 Client - Class WindowsUpdateCategory (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class WindowsUpdateCategory.

Categories specified by the Windows Update.

Generated from protobuf message `google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1 \\ Inventory \\ WindowsUpdatePackage

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` The identifier of the windows update category. |
| `↳ name` | `string` The name of the windows update category. |

### getId

The identifier of the windows update category.

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

### setId

The identifier of the windows update category.

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

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

### getName

The name of the windows update category.

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

### setName

The name of the windows update category.

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

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