Class RecurringMaintenanceWindow.Builder (2.96.0)

public static final class RecurringMaintenanceWindow.Builder extends GeneratedMessage.Builder<RecurringMaintenanceWindow.Builder> implements RecurringMaintenanceWindowOrBuilder

Represents an arbitrary window of time that recurs. Alternative to RecurringTimeWindow, with renamed fields.

Protobuf type google.container.v1beta1.RecurringMaintenanceWindow

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RecurringMaintenanceWindow build()
Returns
Type Description
RecurringMaintenanceWindow

buildPartial()

public RecurringMaintenanceWindow buildPartial()
Returns
Type Description
RecurringMaintenanceWindow

clear()

public RecurringMaintenanceWindow.Builder clear()
Returns
Type Description
RecurringMaintenanceWindow.Builder
Overrides

clearDelayUntil()

public RecurringMaintenanceWindow.Builder clearDelayUntil()

Optional. Windows will not be scheduled before that day. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.

optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RecurringMaintenanceWindow.Builder

clearRecurrence()

public RecurringMaintenanceWindow.Builder clearRecurrence()

Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs.

For example, to have something repeat every weekday, you'd use: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR

To repeat some window daily (equivalent to the DailyMaintenanceWindow): FREQ=DAILY

For the first weekend of every month: FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU

The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.

string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RecurringMaintenanceWindow.Builder

This builder for chaining.

clearWindowDuration()

public RecurringMaintenanceWindow.Builder clearWindowDuration()

Required. Duration of the window.

.google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RecurringMaintenanceWindow.Builder

clearWindowStartTime()

public RecurringMaintenanceWindow.Builder clearWindowStartTime()

Required. Start time of the window on days that it is scheduled, assuming UTC timezone.

.google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RecurringMaintenanceWindow.Builder

getDefaultInstanceForType()

public RecurringMaintenanceWindow getDefaultInstanceForType()
Returns
Type Description
RecurringMaintenanceWindow

getDelayUntil()

public Date getDelayUntil()

Optional. Windows will not be scheduled before that day. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.

optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date

The delayUntil.

getDelayUntilBuilder()

public Date.Builder getDelayUntilBuilder()

Optional. Windows will not be scheduled before that day. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.

optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date.Builder

getDelayUntilOrBuilder()

public DateOrBuilder getDelayUntilOrBuilder()

Optional. Windows will not be scheduled before that day. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.

optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DateOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRecurrence()

public String getRecurrence()

Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs.

For example, to have something repeat every weekday, you'd use: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR

To repeat some window daily (equivalent to the DailyMaintenanceWindow): FREQ=DAILY

For the first weekend of every month: FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU

The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.

string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The recurrence.

getRecurrenceBytes()

public ByteString getRecurrenceBytes()

Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs.

For example, to have something repeat every weekday, you'd use: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR

To repeat some window daily (equivalent to the DailyMaintenanceWindow): FREQ=DAILY

For the first weekend of every month: FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU

The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.

string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for recurrence.

getWindowDuration()

public Duration getWindowDuration()

Required. Duration of the window.

.google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The windowDuration.

getWindowDurationBuilder()

public Duration.Builder getWindowDurationBuilder()

Required. Duration of the window.

.google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getWindowDurationOrBuilder()

public DurationOrBuilder getWindowDurationOrBuilder()

Required. Duration of the window.

.google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

getWindowStartTime()

public TimeOfDay getWindowStartTime()

Required. Start time of the window on days that it is scheduled, assuming UTC timezone.

.google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay

The windowStartTime.

getWindowStartTimeBuilder()

public TimeOfDay.Builder getWindowStartTimeBuilder()

Required. Start time of the window on days that it is scheduled, assuming UTC timezone.

.google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay.Builder

getWindowStartTimeOrBuilder()

public TimeOfDayOrBuilder getWindowStartTimeOrBuilder()

Required. Start time of the window on days that it is scheduled, assuming UTC timezone.

.google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasDelayUntil()

public boolean hasDelayUntil()

Optional. Windows will not be scheduled before that day. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.

optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the delayUntil field is set.

hasWindowDuration()

public boolean hasWindowDuration()

Required. Duration of the window.

.google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the windowDuration field is set.

hasWindowStartTime()

public boolean hasWindowStartTime()

Required. Start time of the window on days that it is scheduled, assuming UTC timezone.

.google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the windowStartTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDelayUntil(Date value)

public RecurringMaintenanceWindow.Builder mergeDelayUntil(Date value)

Optional. Windows will not be scheduled before that day. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.

optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
RecurringMaintenanceWindow.Builder

mergeFrom(RecurringMaintenanceWindow other)

public RecurringMaintenanceWindow.Builder mergeFrom(RecurringMaintenanceWindow other)
Parameter
Name Description
other RecurringMaintenanceWindow
Returns
Type Description
RecurringMaintenanceWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RecurringMaintenanceWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecurringMaintenanceWindow.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RecurringMaintenanceWindow.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RecurringMaintenanceWindow.Builder
Overrides

mergeWindowDuration(Duration value)

public RecurringMaintenanceWindow.Builder mergeWindowDuration(Duration value)

Required. Duration of the window.

.google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
RecurringMaintenanceWindow.Builder

mergeWindowStartTime(TimeOfDay value)

public RecurringMaintenanceWindow.Builder mergeWindowStartTime(TimeOfDay value)

Required. Start time of the window on days that it is scheduled, assuming UTC timezone.

.google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
RecurringMaintenanceWindow.Builder

setDelayUntil(Date value)

public RecurringMaintenanceWindow.Builder setDelayUntil(Date value)

Optional. Windows will not be scheduled before that day. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.

optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
RecurringMaintenanceWindow.Builder

setDelayUntil(Date.Builder builderForValue)

public RecurringMaintenanceWindow.Builder setDelayUntil(Date.Builder builderForValue)

Optional. Windows will not be scheduled before that day. Depending on the recurrence, this may be the date the first window appears. Days are measured in the UTC timezone. This setting must be used when INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.

optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
RecurringMaintenanceWindow.Builder

setRecurrence(String value)

public RecurringMaintenanceWindow.Builder setRecurrence(String value)

Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs.

For example, to have something repeat every weekday, you'd use: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR

To repeat some window daily (equivalent to the DailyMaintenanceWindow): FREQ=DAILY

For the first weekend of every month: FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU

The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.

string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The recurrence to set.

Returns
Type Description
RecurringMaintenanceWindow.Builder

This builder for chaining.

setRecurrenceBytes(ByteString value)

public RecurringMaintenanceWindow.Builder setRecurrenceBytes(ByteString value)

Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs.

For example, to have something repeat every weekday, you'd use: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR

To repeat some window daily (equivalent to the DailyMaintenanceWindow): FREQ=DAILY

For the first weekend of every month: FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU

The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.

string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for recurrence to set.

Returns
Type Description
RecurringMaintenanceWindow.Builder

This builder for chaining.

setWindowDuration(Duration value)

public RecurringMaintenanceWindow.Builder setWindowDuration(Duration value)

Required. Duration of the window.

.google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
RecurringMaintenanceWindow.Builder

setWindowDuration(Duration.Builder builderForValue)

public RecurringMaintenanceWindow.Builder setWindowDuration(Duration.Builder builderForValue)

Required. Duration of the window.

.google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RecurringMaintenanceWindow.Builder

setWindowStartTime(TimeOfDay value)

public RecurringMaintenanceWindow.Builder setWindowStartTime(TimeOfDay value)

Required. Start time of the window on days that it is scheduled, assuming UTC timezone.

.google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
RecurringMaintenanceWindow.Builder

setWindowStartTime(TimeOfDay.Builder builderForValue)

public RecurringMaintenanceWindow.Builder setWindowStartTime(TimeOfDay.Builder builderForValue)

Required. Start time of the window on days that it is scheduled, assuming UTC timezone.

.google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue com.google.type.TimeOfDay.Builder
Returns
Type Description
RecurringMaintenanceWindow.Builder