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 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.Builder<ExclusionWindow.Builder>
    • clear

      public ExclusionWindow.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.Builder>
    • getDefaultInstanceForType

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

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

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

      public ExclusionWindow.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExclusionWindow.Builder>
    • mergeFrom

      public ExclusionWindow.Builder mergeFrom(ExclusionWindow other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExclusionWindow.Builder>
      Throws:
      IOException
    • getRecurrenceCase

      public ExclusionWindow.RecurrenceCase getRecurrenceCase()
      Specified by:
      getRecurrenceCase in interface ExclusionWindowOrBuilder
    • clearRecurrence

      public ExclusionWindow.Builder 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:
      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.
    • setStartTime

      public ExclusionWindow.Builder setStartTime(TimeOfDay value)
       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

      public ExclusionWindow.Builder setStartTime(TimeOfDay.Builder builderForValue)
       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

      public ExclusionWindow.Builder mergeStartTime(TimeOfDay value)
       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

      public ExclusionWindow.Builder 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

      public TimeOfDay.Builder 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

      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.
    • setDuration

      public ExclusionWindow.Builder setDuration(com.google.protobuf.Duration value)
       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

      public ExclusionWindow.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       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

      public ExclusionWindow.Builder mergeDuration(com.google.protobuf.Duration value)
       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

      public ExclusionWindow.Builder 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:
      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.
    • setSingleOccurrenceDate

      public ExclusionWindow.Builder setSingleOccurrenceDate(Date value)
       No recurrence. The exclusion window occurs only once and on this
       date in UTC.
       
      .google.type.Date single_occurrence_date = 3;
    • setSingleOccurrenceDate

      public ExclusionWindow.Builder setSingleOccurrenceDate(Date.Builder builderForValue)
       No recurrence. The exclusion window occurs only once and on this
       date in UTC.
       
      .google.type.Date single_occurrence_date = 3;
    • mergeSingleOccurrenceDate

      public ExclusionWindow.Builder mergeSingleOccurrenceDate(Date value)
       No recurrence. The exclusion window occurs only once and on this
       date in UTC.
       
      .google.type.Date single_occurrence_date = 3;
    • clearSingleOccurrenceDate

      public ExclusionWindow.Builder clearSingleOccurrenceDate()
       No recurrence. The exclusion window occurs only once and on this
       date in UTC.
       
      .google.type.Date single_occurrence_date = 3;
    • getSingleOccurrenceDateBuilder

      public Date.Builder getSingleOccurrenceDateBuilder()
       No recurrence. The exclusion window occurs only once and on this
       date in UTC.
       
      .google.type.Date single_occurrence_date = 3;
    • 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.
    • setDaily

      public ExclusionWindow.Builder setDaily(boolean value)
       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

      public ExclusionWindow.Builder 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:
      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.
    • setDaysOfWeek

       The exclusion window occurs on these days of each week in UTC.
       
      .google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;
    • setDaysOfWeek

      public ExclusionWindow.Builder setDaysOfWeek(ExclusionWindow.DayOfWeekList.Builder builderForValue)
       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

      public ExclusionWindow.Builder clearDaysOfWeek()
       The exclusion window occurs on these days of each week in UTC.
       
      .google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;
    • getDaysOfWeekBuilder

      public ExclusionWindow.DayOfWeekList.Builder getDaysOfWeekBuilder()
       The exclusion window occurs on these days of each week in UTC.
       
      .google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;
    • 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