Class ExclusionWindow (0.39.0)

public final class ExclusionWindow extends GeneratedMessageV3 implements ExclusionWindowOrBuilder

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

Protobuf type google.cloud.gkebackup.v1.ExclusionWindow

Static Fields

DAILY_FIELD_NUMBER

public static final int DAILY_FIELD_NUMBER
Field Value
TypeDescription
int

DAYS_OF_WEEK_FIELD_NUMBER

public static final int DAYS_OF_WEEK_FIELD_NUMBER
Field Value
TypeDescription
int

DURATION_FIELD_NUMBER

public static final int DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

SINGLE_OCCURRENCE_DATE_FIELD_NUMBER

public static final int SINGLE_OCCURRENCE_DATE_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExclusionWindow getDefaultInstance()
Returns
TypeDescription
ExclusionWindow

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ExclusionWindow.Builder newBuilder()
Returns
TypeDescription
ExclusionWindow.Builder

newBuilder(ExclusionWindow prototype)

public static ExclusionWindow.Builder newBuilder(ExclusionWindow prototype)
Parameter
NameDescription
prototypeExclusionWindow
Returns
TypeDescription
ExclusionWindow.Builder

parseDelimitedFrom(InputStream input)

public static ExclusionWindow parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionWindow parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ExclusionWindow parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExclusionWindow parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExclusionWindow parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExclusionWindow parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExclusionWindow parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionWindow parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ExclusionWindow parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionWindow parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ExclusionWindow parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExclusionWindow parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ExclusionWindow> parser()
Returns
TypeDescription
Parser<ExclusionWindow>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDaily()

public boolean getDaily()

The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error.

bool daily = 4;

Returns
TypeDescription
boolean

The daily.

getDaysOfWeek()

public ExclusionWindow.DayOfWeekList getDaysOfWeek()

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

.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;

Returns
TypeDescription
ExclusionWindow.DayOfWeekList

The daysOfWeek.

getDaysOfWeekOrBuilder()

public ExclusionWindow.DayOfWeekListOrBuilder getDaysOfWeekOrBuilder()

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

.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;

Returns
TypeDescription
ExclusionWindow.DayOfWeekListOrBuilder

getDefaultInstanceForType()

public ExclusionWindow getDefaultInstanceForType()
Returns
TypeDescription
ExclusionWindow

getDuration()

public Duration getDuration()

Required. Specifies duration of the window. Restrictions for duration 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)

.google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Duration

The duration.

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Required. Specifies duration of the window. Restrictions for duration 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)

.google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DurationOrBuilder

getParserForType()

public Parser<ExclusionWindow> getParserForType()
Returns
TypeDescription
Parser<ExclusionWindow>
Overrides

getRecurrenceCase()

public ExclusionWindow.RecurrenceCase getRecurrenceCase()
Returns
TypeDescription
ExclusionWindow.RecurrenceCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSingleOccurrenceDate()

public Date getSingleOccurrenceDate()

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

.google.type.Date single_occurrence_date = 3;

Returns
TypeDescription
com.google.type.Date

The singleOccurrenceDate.

getSingleOccurrenceDateOrBuilder()

public DateOrBuilder getSingleOccurrenceDateOrBuilder()

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

.google.type.Date single_occurrence_date = 3;

Returns
TypeDescription
com.google.type.DateOrBuilder

getStartTime()

public TimeOfDay getStartTime()

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

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
com.google.type.TimeOfDay

The startTime.

getStartTimeOrBuilder()

public TimeOfDayOrBuilder getStartTimeOrBuilder()

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

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
com.google.type.TimeOfDayOrBuilder

hasDaily()

public boolean hasDaily()

The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error.

bool daily = 4;

Returns
TypeDescription
boolean

Whether the daily field is set.

hasDaysOfWeek()

public boolean hasDaysOfWeek()

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

.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;

Returns
TypeDescription
boolean

Whether the daysOfWeek field is set.

hasDuration()

public boolean hasDuration()

Required. Specifies duration of the window. Restrictions for duration 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)

.google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the duration field is set.

hasSingleOccurrenceDate()

public boolean hasSingleOccurrenceDate()

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

.google.type.Date single_occurrence_date = 3;

Returns
TypeDescription
boolean

Whether the singleOccurrenceDate field is set.

hasStartTime()

public boolean hasStartTime()

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

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ExclusionWindow.Builder newBuilderForType()
Returns
TypeDescription
ExclusionWindow.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExclusionWindow.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ExclusionWindow.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ExclusionWindow.Builder toBuilder()
Returns
TypeDescription
ExclusionWindow.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException