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

Sets the time for recurring patch deployments.

Generated from protobuf message `google.cloud.osconfig.v1.RecurringSchedule`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ time_zone` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeZone.html` Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. The end time at which a recurring patch deployment schedule is no longer active. |
| `↳ time_of_day` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html` Required. Time of the day to run a recurring deployment. |
| `↳ frequency` | `int` Required. The frequency unit of this recurring schedule. |
| `↳ weekly` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.WeeklySchedule` Required. Schedule with weekly executions. |
| `↳ monthly` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.MonthlySchedule` Required. Schedule with monthly executions. |
| `↳ last_execute_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the last patch job ran successfully. |
| `↳ next_execute_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time the next patch job is scheduled to run. |

### getTimeZone

Required. Defines the time zone that `time_of_day` is relative to.

The rules for daylight saving time are determined by the chosen time zone.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeZone.html|null` |   |

### hasTimeZone

### clearTimeZone

### setTimeZone

Required. Defines the time zone that `time_of_day` is relative to.

The rules for daylight saving time are determined by the chosen time zone.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeZone.html` |

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

### getStartTime

Optional. The time that the recurring schedule becomes effective.

Defaults to `create_time` of the patch deployment.

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

### hasStartTime

### clearStartTime

### setStartTime

Optional. The time that the recurring schedule becomes effective.

Defaults to `create_time` of the patch deployment.

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

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

### getEndTime

Optional. The end time at which a recurring patch deployment schedule is no
longer active.

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

### hasEndTime

### clearEndTime

### setEndTime

Optional. The end time at which a recurring patch deployment schedule is no
longer active.

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

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

### getTimeOfDay

Required. Time of the day to run a recurring deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html|null` |   |

### hasTimeOfDay

### clearTimeOfDay

### setTimeOfDay

Required. Time of the day to run a recurring deployment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html` |

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

### getFrequency

Required. The frequency unit of this recurring schedule.

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

### setFrequency

Required. The frequency unit of this recurring schedule.

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

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

### getWeekly

Required. Schedule with weekly executions.

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

### hasWeekly

### setWeekly

Required. Schedule with weekly executions.

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

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

### getMonthly

Required. Schedule with monthly executions.

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

### hasMonthly

### setMonthly

Required. Schedule with monthly executions.

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

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

### getLastExecuteTime

Output only. The time the last patch job ran successfully.

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

### hasLastExecuteTime

### clearLastExecuteTime

### setLastExecuteTime

Output only. The time the last patch job ran successfully.

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

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

### getNextExecuteTime

Output only. The time the next patch job is scheduled to run.

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

### hasNextExecuteTime

### clearNextExecuteTime

### setNextExecuteTime

Output only. The time the next patch job is scheduled to run.

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

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

### getScheduleConfig

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