# Google Cloud Gke Backup V1 Client - Class ExclusionWindow (1.3.3)

1.3.3 (latest) 1.3.2 1.2.1 1.0.3 0.8.1 0.7.2 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class ExclusionWindow.

Defines a time window during which no backup should
happen. All time and date are in UTC.

Generated from protobuf message `google.cloud.gkebackup.v1.ExclusionWindow`

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_time` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html` Required. Specifies the start time of the window using time of the day in UTC. |
| `↳ duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Required. Specifies duration of the window. Duration must be \>= 5 minutes and \< (target RPO - 20 minutes). Additional restrictions based on the recurrence type to allow some time for backup to happen: - single_occurrence_date: no restriction, but UI may warn about this when duration \>= target RPO - daily window: duration \< 24 hours - weekly window: - days of week includes all seven days of a week: duration \< 24 hours - all other weekly window: duration \< 168 hours (i.e., 24 \* 7 hours) |
| `↳ single_occurrence_date` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` No recurrence. The exclusion window occurs only once and on this date in UTC. |
| `↳ daily` | `bool` The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error. |
| `↳ days_of_week` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.ExclusionWindow.DayOfWeekList` The exclusion window occurs on these days of each week in UTC. |

### getStartTime

Required. Specifies the start time of the window using time of the day in
UTC.

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

### hasStartTime

### clearStartTime

### setStartTime

Required. Specifies the start time of the window using time of the day in
UTC.

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

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

### getDuration

Required. Specifies duration of the window.

Duration must be \>= 5 minutes and \< (target RPO - 20 minutes).
Additional restrictions based on the recurrence type to allow some time for
backup to happen:

- single_occurrence_date: no restriction, but UI may warn about this when duration \>= target RPO
- daily window: duration \< 24 hours
- weekly window:
  - days of week includes all seven days of a week: duration \< 24 hours
  - all other weekly window: duration \< 168 hours (i.e., 24 \* 7 hours)

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

### hasDuration

### clearDuration

### setDuration

Required. Specifies duration of the window.

Duration must be \>= 5 minutes and \< (target RPO - 20 minutes).
Additional restrictions based on the recurrence type to allow some time for
backup to happen:

- single_occurrence_date: no restriction, but UI may warn about this when duration \>= target RPO
- daily window: duration \< 24 hours
- weekly window:
  - days of week includes all seven days of a week: duration \< 24 hours
  - all other weekly window: duration \< 168 hours (i.e., 24 \* 7 hours)

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

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

### getSingleOccurrenceDate

No recurrence. The exclusion window occurs only once and on this
date in UTC.

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

### hasSingleOccurrenceDate

### setSingleOccurrenceDate

No recurrence. The exclusion window occurs only once and on this
date in UTC.

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

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

### getDaily

The exclusion window occurs every day if set to "True".

Specifying this field to "False" is an error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasDaily

### setDaily

The exclusion window occurs every day if set to "True".

Specifying this field to "False" is an error.

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

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

### getDaysOfWeek

The exclusion window occurs on these days of each week in UTC.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.ExclusionWindow.DayOfWeekList|null` |   |

### hasDaysOfWeek

### setDaysOfWeek

The exclusion window occurs on these days of each week in UTC.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.ExclusionWindow.DayOfWeekList` |

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

### getRecurrence

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