Package com.google.cloud.gkebackup.v1
Class ExclusionWindow
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkebackup.v1.ExclusionWindow
- All Implemented Interfaces:
ExclusionWindowOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ExclusionWindow
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDefines a time window during which no backup should happen.static final classHolds repeated DaysOfWeek values as a container.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetDaily()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.static ExclusionWindowstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationRequired.com.google.protobuf.DurationOrBuilderRequired.com.google.protobuf.Parser<ExclusionWindow>intNo recurrence.No recurrence.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.inthashCode()booleanNo recurrence.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ExclusionWindow.Builderstatic ExclusionWindow.BuildernewBuilder(ExclusionWindow prototype) protected ExclusionWindow.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ExclusionWindowparseDelimitedFrom(InputStream input) static ExclusionWindowparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExclusionWindowparseFrom(byte[] data) static ExclusionWindowparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExclusionWindowparseFrom(com.google.protobuf.ByteString data) static ExclusionWindowparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExclusionWindowparseFrom(com.google.protobuf.CodedInputStream input) static ExclusionWindowparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExclusionWindowparseFrom(InputStream input) static ExclusionWindowparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExclusionWindowparseFrom(ByteBuffer data) static ExclusionWindowparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ExclusionWindow>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER- See Also:
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER- See Also:
-
SINGLE_OCCURRENCE_DATE_FIELD_NUMBER
public static final int SINGLE_OCCURRENCE_DATE_FIELD_NUMBER- See Also:
-
DAILY_FIELD_NUMBER
public static final int DAILY_FIELD_NUMBER- See Also:
-
DAYS_OF_WEEK_FIELD_NUMBER
public static final int DAYS_OF_WEEK_FIELD_NUMBER- See Also:
-
-
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
-
getRecurrenceCase
- Specified by:
getRecurrenceCasein interfaceExclusionWindowOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExclusionWindow parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExclusionWindow parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExclusionWindow parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExclusionWindow parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExclusionWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExclusionWindow parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ExclusionWindow parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ExclusionWindow parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ExclusionWindow parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ExclusionWindow parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExclusionWindow.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-