Package com.google.cloud.gkebackup.v1
Class ExclusionWindow.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.Builder>
com.google.cloud.gkebackup.v1.ExclusionWindow.Builder
- All Implemented Interfaces:
ExclusionWindowOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExclusionWindow
public static final class ExclusionWindow.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The exclusion window occurs every day if set to "True".The exclusion window occurs on these days of each week in UTC.Required.No recurrence.Required.booleangetDaily()The exclusion window occurs every day if set to "True".The exclusion window occurs on these days of each week in UTC.The exclusion window occurs on these days of each week in UTC.The exclusion window occurs on these days of each week in UTC.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.No recurrence.No recurrence.No recurrence.Required.Required.Required.booleanhasDaily()The exclusion window occurs every day if set to "True".booleanThe exclusion window occurs on these days of each week in UTC.booleanRequired.booleanNo recurrence.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe exclusion window occurs on these days of each week in UTC.mergeDuration(com.google.protobuf.Duration value) Required.mergeFrom(ExclusionWindow other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSingleOccurrenceDate(Date value) No recurrence.mergeStartTime(TimeOfDay value) Required.setDaily(boolean value) The exclusion window occurs every day if set to "True".The exclusion window occurs on these days of each week in UTC.setDaysOfWeek(ExclusionWindow.DayOfWeekList.Builder builderForValue) The exclusion window occurs on these days of each week in UTC.setDuration(com.google.protobuf.Duration value) Required.setDuration(com.google.protobuf.Duration.Builder builderForValue) Required.setSingleOccurrenceDate(Date value) No recurrence.setSingleOccurrenceDate(Date.Builder builderForValue) No recurrence.setStartTime(TimeOfDay value) Required.setStartTime(TimeOfDay.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExclusionWindow.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.Builder>
-
mergeFrom
public ExclusionWindow.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExclusionWindow.Builder>- Throws:
IOException
-
getRecurrenceCase
- Specified by:
getRecurrenceCasein interfaceExclusionWindowOrBuilder
-
clearRecurrence
-
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];- Specified by:
hasStartTimein interfaceExclusionWindowOrBuilder- Returns:
- Whether the startTime field is set.
-
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];- Specified by:
getStartTimein interfaceExclusionWindowOrBuilder- Returns:
- The startTime.
-
setStartTime
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]; -
setStartTime
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]; -
mergeStartTime
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]; -
clearStartTime
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]; -
getStartTimeBuilder
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]; -
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];- Specified by:
getStartTimeOrBuilderin interfaceExclusionWindowOrBuilder
-
hasDuration
public boolean hasDuration()Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions 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];- Specified by:
hasDurationin interfaceExclusionWindowOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions 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];- Specified by:
getDurationin interfaceExclusionWindowOrBuilder- Returns:
- The duration.
-
setDuration
Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions 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]; -
setDuration
Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions 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]; -
mergeDuration
Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions 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]; -
clearDuration
Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions 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]; -
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions 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]; -
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions 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];- Specified by:
getDurationOrBuilderin interfaceExclusionWindowOrBuilder
-
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;- Specified by:
hasSingleOccurrenceDatein interfaceExclusionWindowOrBuilder- Returns:
- Whether the singleOccurrenceDate field is set.
-
getSingleOccurrenceDate
No recurrence. The exclusion window occurs only once and on this date in UTC.
.google.type.Date single_occurrence_date = 3;- Specified by:
getSingleOccurrenceDatein interfaceExclusionWindowOrBuilder- Returns:
- The singleOccurrenceDate.
-
setSingleOccurrenceDate
No recurrence. The exclusion window occurs only once and on this date in UTC.
.google.type.Date single_occurrence_date = 3; -
setSingleOccurrenceDate
No recurrence. The exclusion window occurs only once and on this date in UTC.
.google.type.Date single_occurrence_date = 3; -
mergeSingleOccurrenceDate
No recurrence. The exclusion window occurs only once and on this date in UTC.
.google.type.Date single_occurrence_date = 3; -
clearSingleOccurrenceDate
No recurrence. The exclusion window occurs only once and on this date in UTC.
.google.type.Date single_occurrence_date = 3; -
getSingleOccurrenceDateBuilder
No recurrence. The exclusion window occurs only once and on this date in UTC.
.google.type.Date single_occurrence_date = 3; -
getSingleOccurrenceDateOrBuilder
No recurrence. The exclusion window occurs only once and on this date in UTC.
.google.type.Date single_occurrence_date = 3;- Specified by:
getSingleOccurrenceDateOrBuilderin interfaceExclusionWindowOrBuilder
-
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;- Specified by:
hasDailyin interfaceExclusionWindowOrBuilder- Returns:
- Whether the daily field is set.
-
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;- Specified by:
getDailyin interfaceExclusionWindowOrBuilder- Returns:
- The daily.
-
setDaily
The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error.
bool daily = 4;- Parameters:
value- The daily to set.- Returns:
- This builder for chaining.
-
clearDaily
The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error.
bool daily = 4;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasDaysOfWeekin interfaceExclusionWindowOrBuilder- Returns:
- Whether the daysOfWeek field is set.
-
getDaysOfWeek
The exclusion window occurs on these days of each week in UTC.
.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;- Specified by:
getDaysOfWeekin interfaceExclusionWindowOrBuilder- Returns:
- The daysOfWeek.
-
setDaysOfWeek
The exclusion window occurs on these days of each week in UTC.
.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5; -
setDaysOfWeek
The exclusion window occurs on these days of each week in UTC.
.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5; -
mergeDaysOfWeek
The exclusion window occurs on these days of each week in UTC.
.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5; -
clearDaysOfWeek
The exclusion window occurs on these days of each week in UTC.
.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5; -
getDaysOfWeekBuilder
The exclusion window occurs on these days of each week in UTC.
.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5; -
getDaysOfWeekOrBuilder
The exclusion window occurs on these days of each week in UTC.
.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;- Specified by:
getDaysOfWeekOrBuilderin interfaceExclusionWindowOrBuilder
-