Class RecurringMaintenanceWindow (2.96.0)

public final class RecurringMaintenanceWindow extends GeneratedMessage implements RecurringMaintenanceWindowOrBuilder

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

Protobuf type google.container.v1beta1.RecurringMaintenanceWindow

Static Fields

DELAY_UNTIL_FIELD_NUMBER

public static final int DELAY_UNTIL_FIELD_NUMBER
Field Value
Type Description
int

RECURRENCE_FIELD_NUMBER

public static final int RECURRENCE_FIELD_NUMBER
Field Value
Type Description
int

WINDOW_DURATION_FIELD_NUMBER

public static final int WINDOW_DURATION_FIELD_NUMBER
Field Value
Type Description
int

WINDOW_START_TIME_FIELD_NUMBER

public static final int WINDOW_START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RecurringMaintenanceWindow getDefaultInstance()
Returns
Type Description
RecurringMaintenanceWindow

getDescriptor()

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

newBuilder()

public static RecurringMaintenanceWindow.Builder newBuilder()
Returns
Type Description
RecurringMaintenanceWindow.Builder

newBuilder(RecurringMaintenanceWindow prototype)

public static RecurringMaintenanceWindow.Builder newBuilder(RecurringMaintenanceWindow prototype)
Parameter
Name Description
prototype RecurringMaintenanceWindow
Returns
Type Description
RecurringMaintenanceWindow.Builder

parseDelimitedFrom(InputStream input)

public static RecurringMaintenanceWindow parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecurringMaintenanceWindow parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RecurringMaintenanceWindow parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RecurringMaintenanceWindow parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RecurringMaintenanceWindow parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RecurringMaintenanceWindow parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RecurringMaintenanceWindow parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RecurringMaintenanceWindow parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RecurringMaintenanceWindow parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecurringMaintenanceWindow parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RecurringMaintenanceWindow parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RecurringMaintenanceWindow parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecurringMaintenanceWindow
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RecurringMaintenanceWindow> parser()
Returns
Type Description
Parser<RecurringMaintenanceWindow>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

getParserForType()

public Parser<RecurringMaintenanceWindow> getParserForType()
Returns
Type Description
Parser<RecurringMaintenanceWindow>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RecurringMaintenanceWindow.Builder newBuilderForType()
Returns
Type Description
RecurringMaintenanceWindow.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RecurringMaintenanceWindow.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RecurringMaintenanceWindow.Builder
Overrides

toBuilder()

public RecurringMaintenanceWindow.Builder toBuilder()
Returns
Type Description
RecurringMaintenanceWindow.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException