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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getRecurrenceCase

      public ExclusionWindow.RecurrenceCase getRecurrenceCase()
      Specified by:
      getRecurrenceCase in interface ExclusionWindowOrBuilder
    • 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:
      hasStartTime in interface ExclusionWindowOrBuilder
      Returns:
      Whether the startTime field is set.
    • 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];
      Specified by:
      getStartTime in interface ExclusionWindowOrBuilder
      Returns:
      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];
      Specified by:
      getStartTimeOrBuilder in interface ExclusionWindowOrBuilder
    • 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:
      hasDuration in interface ExclusionWindowOrBuilder
      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:
      getDuration in interface ExclusionWindowOrBuilder
      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:
      getDurationOrBuilder in interface ExclusionWindowOrBuilder
    • 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:
      hasSingleOccurrenceDate in interface ExclusionWindowOrBuilder
      Returns:
      Whether the singleOccurrenceDate field is set.
    • 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;
      Specified by:
      getSingleOccurrenceDate in interface ExclusionWindowOrBuilder
      Returns:
      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;
      Specified by:
      getSingleOccurrenceDateOrBuilder in interface ExclusionWindowOrBuilder
    • 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:
      hasDaily in interface ExclusionWindowOrBuilder
      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:
      getDaily in interface ExclusionWindowOrBuilder
      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:
      hasDaysOfWeek in interface ExclusionWindowOrBuilder
      Returns:
      Whether the daysOfWeek field is set.
    • 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;
      Specified by:
      getDaysOfWeek in interface ExclusionWindowOrBuilder
      Returns:
      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;
      Specified by:
      getDaysOfWeekOrBuilder in interface ExclusionWindowOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static ExclusionWindow parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExclusionWindow parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExclusionWindow parseDelimitedFrom(InputStream input) throws IOException
      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

      public ExclusionWindow.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ExclusionWindow.Builder newBuilder()
    • newBuilder

      public static ExclusionWindow.Builder newBuilder(ExclusionWindow prototype)
    • toBuilder

      public ExclusionWindow.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ExclusionWindow.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ExclusionWindow getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ExclusionWindow> parser()
    • getParserForType

      public com.google.protobuf.Parser<ExclusionWindow> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ExclusionWindow getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder