# Interface WeeklyMaintenanceWindowOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.redis.v1.WeeklyMaintenanceWindowOrBuilder)

    public interface WeeklyMaintenanceWindowOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDay()

    public abstract DayOfWeek getDay()

Required. The day of week that maintenance updates occur.

`.google.type.DayOfWeek day = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.DayOfWeek` | The day. |

### getDayValue()

    public abstract int getDayValue()

Required. The day of week that maintenance updates occur.

`.google.type.DayOfWeek day = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for day. |

### getDuration()

    public abstract Duration getDuration()

Output only. Duration of the maintenance window. The current window is
fixed at 1 hour.

`.google.protobuf.Duration duration = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The duration. |

### getDurationOrBuilder()

    public abstract DurationOrBuilder getDurationOrBuilder()

Output only. Duration of the maintenance window. The current window is
fixed at 1 hour.

`.google.protobuf.Duration duration = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getStartTime()

    public abstract TimeOfDay getStartTime()

Required. Start time of the window in UTC time.

`.google.type.TimeOfDay start_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.TimeOfDay` | The startTime. |

### getStartTimeOrBuilder()

    public abstract TimeOfDayOrBuilder getStartTimeOrBuilder()

Required. Start time of the window in UTC time.

`.google.type.TimeOfDay start_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.TimeOfDayOrBuilder` |   |

### hasDuration()

    public abstract boolean hasDuration()

Output only. Duration of the maintenance window. The current window is
fixed at 1 hour.

`.google.protobuf.Duration duration = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the duration field is set. |

### hasStartTime()

    public abstract boolean hasStartTime()

Required. Start time of the window in UTC time.

`.google.type.TimeOfDay start_time = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startTime field is set. |