# Google Cloud OsConfig V1 Client - Class WindowsUpdatePackage (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 WindowsUpdatePackage.

Details related to a Windows Update package.

Field data and names are taken from Windows Update API IUpdate Interface:
<https://docs.microsoft.com/en-us/windows/win32/api/_wua/>
Descriptive fields like title, and description are localized based on
the locale of the VM being updated.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ title` | `string` The localized title of the update package. |
| `↳ description` | `string` The localized description of the update package. |
| `↳ categories` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory>` The categories that are associated with this update package. |
| `↳ kb_article_ids` | `string[]` A collection of Microsoft Knowledge Base article IDs that are associated with the update package. |
| `↳ support_url` | `string` A hyperlink to the language-specific support information for the update. |
| `↳ more_info_urls` | `string[]` A collection of URLs that provide more information about the update package. |
| `↳ update_id` | `string` Gets the identifier of an update package. Stays the same across revisions. |
| `↳ revision_number` | `int` The revision number of this update package. |
| `↳ last_deployment_change_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The last published date of the update, in (UTC) date and time. |

### getTitle

The localized title of the update package.

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

### setTitle

The localized title of the update package.

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

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

### getDescription

The localized description of the update package.

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

### setDescription

The localized description of the update package.

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

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

### getCategories

The categories that are associated with this update package.

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

### setCategories

The categories that are associated with this update package.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory>` |

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

### getKbArticleIds

A collection of Microsoft Knowledge Base article IDs that are associated
with the update package.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setKbArticleIds

A collection of Microsoft Knowledge Base article IDs that are associated
with the update package.

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

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

### getSupportUrl

A hyperlink to the language-specific support information for the update.

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

### setSupportUrl

A hyperlink to the language-specific support information for the update.

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

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

### getMoreInfoUrls

A collection of URLs that provide more information about the update
package.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setMoreInfoUrls

A collection of URLs that provide more information about the update
package.

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

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

### getUpdateId

Gets the identifier of an update package. Stays the same across
revisions.

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

### setUpdateId

Gets the identifier of an update package. Stays the same across
revisions.

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

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

### getRevisionNumber

The revision number of this update package.

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

### setRevisionNumber

The revision number of this update package.

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

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

### getLastDeploymentChangeTime

The last published date of the update, in (UTC) date and time.

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

### hasLastDeploymentChangeTime

### clearLastDeploymentChangeTime

### setLastDeploymentChangeTime

The last published date of the update, in (UTC) date and time.

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

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