# Google Cloud Web Security Scanner V1 Client - Class Schedule (1.2.0)

1.2.0 (latest) 1.1.2 1.0.5 0.8.5 0.7.18 Reference documentation and code samples for the Google Cloud Web Security Scanner V1 Client class Schedule.

Scan schedule configuration.

Generated from protobuf message `google.cloud.websecurityscanner.v1.ScanConfig.Schedule`

## Namespace

Google \\ Cloud \\ WebSecurityScanner \\ V1 \\ ScanConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ schedule_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately. |
| `↳ interval_duration_days` | `int` Required. The duration of time between executions in days. |

### getScheduleTime

A timestamp indicates when the next run will be scheduled. The value is
refreshed by the server after each run. If unspecified, it will default
to current server time, which means the scan will be scheduled to start
immediately.

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

### hasScheduleTime

### clearScheduleTime

### setScheduleTime

A timestamp indicates when the next run will be scheduled. The value is
refreshed by the server after each run. If unspecified, it will default
to current server time, which means the scan will be scheduled to start
immediately.

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

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

### getIntervalDurationDays

Required. The duration of time between executions in days.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setIntervalDurationDays

Required. The duration of time between executions in days.

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

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