# Google Cloud Backup Dr V1 Client - Class WeekDayOfMonth (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class WeekDayOfMonth.

`WeekDayOfMonth` defines the week day of the month on which the backups will
run. The message combines a `WeekOfMonth` and `DayOfWeek` to produce values
like `FIRST`/`MONDAY` or `LAST`/`FRIDAY`.

Generated from protobuf message `google.cloud.backupdr.v1.WeekDayOfMonth`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ week_of_month` | `int` Required. Specifies the week of the month. |
| `↳ day_of_week` | `int` Required. Specifies the day of the week. |

### getWeekOfMonth

Required. Specifies the week of the month.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [WeekOfMonth](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.WeekDayOfMonth.WeekOfMonth). |

### setWeekOfMonth

Required. Specifies the week of the month.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [WeekOfMonth](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.WeekDayOfMonth.WeekOfMonth). |

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

### getDayOfWeek

Required. Specifies the day of the week.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DayOfWeek](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DayOfWeek.html). |

### setDayOfWeek

Required. Specifies the day of the week.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DayOfWeek](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DayOfWeek.html). |

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