1.8.4 (latest) 1.7.1 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class WeeklySchedule.

A weekly schedule starts a backup at prescribed start times within a
day, for the specified days of the week.

The weekly schedule message is flexible and can be used to create many
types of schedules. For example, to have a daily backup that starts at
22:00, configure the `start_times` field to have one element "22:00" and
the `days_of_week` field to have all seven days of the week.

Generated from protobuf message `google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule`

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1 \\ AutomatedBackupPolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_times` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html>` The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily. |
| `↳ days_of_week` | `int[]` The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used. |

### getStartTimes

The times during the day to start a backup. The start times are assumed
to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen
arbitrarily.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html>` |   |

### setStartTimes

The times during the day to start a backup. The start times are assumed
to be in UTC and to be an exact hour (e.g., 04:00:00).

If no start times are provided, a single fixed start time is chosen
arbitrarily.

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

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

### getDaysOfWeek

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is
used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<int>` |   |

### setDaysOfWeek

The days of the week to perform a backup.

If this field is left empty, the default of every day of the week is
used.

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

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