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

An MSI package. MSI packages only support INSTALLED state.

Generated from protobuf message `google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1 \\ OSPolicy \\ Resource \\ PackageResource

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.OSPolicy.Resource.File` Required. The MSI package. |
| `↳ properties` | `string[]` Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of `ACTION=INSTALL REBOOT=ReallySuppress`. |

### getSource

Required. The MSI package.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.OSPolicy.Resource.File|null` |   |

### hasSource

### clearSource

### setSource

Required. The MSI package.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.OSPolicy.Resource.File` |

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

### getProperties

Additional properties to use during installation.

This should be in the format of Property=Setting.
Appended to the defaults of `ACTION=INSTALL
REBOOT=ReallySuppress`.

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

### setProperties

Additional properties to use during installation.

This should be in the format of Property=Setting.
Appended to the defaults of `ACTION=INSTALL
REBOOT=ReallySuppress`.

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

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