Class RecurringMaintenanceWindow.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RecurringMaintenanceWindow.Builder>
com.google.container.v1.RecurringMaintenanceWindow.Builder
All Implemented Interfaces:
RecurringMaintenanceWindowOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RecurringMaintenanceWindow

public static final class RecurringMaintenanceWindow.Builder extends com.google.protobuf.GeneratedMessage.Builder<RecurringMaintenanceWindow.Builder> implements RecurringMaintenanceWindowOrBuilder
 Represents an arbitrary window of time that recurs.
 Will replace RecurringTimeWindow.
 
Protobuf type google.container.v1.RecurringMaintenanceWindow
  • 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<RecurringMaintenanceWindow.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<RecurringMaintenanceWindow.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<RecurringMaintenanceWindow.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public RecurringMaintenanceWindow.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<RecurringMaintenanceWindow.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RecurringMaintenanceWindow.Builder>
    • mergeFrom

      public RecurringMaintenanceWindow.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<RecurringMaintenanceWindow.Builder>
      Throws:
      IOException
    • hasDelayUntil

      public boolean hasDelayUntil()
       Optional. Specifies the date before which will not be scheduled.
       Depending on the recurrence, this may be the date the first window appears.
       Days are measured in the UTC timezone. This setting must be used when
       INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
       
      optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDelayUntil in interface RecurringMaintenanceWindowOrBuilder
      Returns:
      Whether the delayUntil field is set.
    • getDelayUntil

      public Date getDelayUntil()
       Optional. Specifies the date before which will not be scheduled.
       Depending on the recurrence, this may be the date the first window appears.
       Days are measured in the UTC timezone. This setting must be used when
       INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
       
      optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDelayUntil in interface RecurringMaintenanceWindowOrBuilder
      Returns:
      The delayUntil.
    • setDelayUntil

      public RecurringMaintenanceWindow.Builder setDelayUntil(Date value)
       Optional. Specifies the date before which will not be scheduled.
       Depending on the recurrence, this may be the date the first window appears.
       Days are measured in the UTC timezone. This setting must be used when
       INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
       
      optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setDelayUntil

      public RecurringMaintenanceWindow.Builder setDelayUntil(Date.Builder builderForValue)
       Optional. Specifies the date before which will not be scheduled.
       Depending on the recurrence, this may be the date the first window appears.
       Days are measured in the UTC timezone. This setting must be used when
       INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
       
      optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDelayUntil

      public RecurringMaintenanceWindow.Builder mergeDelayUntil(Date value)
       Optional. Specifies the date before which will not be scheduled.
       Depending on the recurrence, this may be the date the first window appears.
       Days are measured in the UTC timezone. This setting must be used when
       INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
       
      optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearDelayUntil

      public RecurringMaintenanceWindow.Builder clearDelayUntil()
       Optional. Specifies the date before which will not be scheduled.
       Depending on the recurrence, this may be the date the first window appears.
       Days are measured in the UTC timezone. This setting must be used when
       INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
       
      optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getDelayUntilBuilder

      public Date.Builder getDelayUntilBuilder()
       Optional. Specifies the date before which will not be scheduled.
       Depending on the recurrence, this may be the date the first window appears.
       Days are measured in the UTC timezone. This setting must be used when
       INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
       
      optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getDelayUntilOrBuilder

      public DateOrBuilder getDelayUntilOrBuilder()
       Optional. Specifies the date before which will not be scheduled.
       Depending on the recurrence, this may be the date the first window appears.
       Days are measured in the UTC timezone. This setting must be used when
       INTERVAL>1 or FREQ=WEEKLY/MONTHLY and no BYDAY specified.
       
      optional .google.type.Date delay_until = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDelayUntilOrBuilder in interface RecurringMaintenanceWindowOrBuilder
    • hasWindowStartTime

      public boolean hasWindowStartTime()
       Required. Start time of the window on days that it is scheduled,
       assuming UTC timezone.
       
      .google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasWindowStartTime in interface RecurringMaintenanceWindowOrBuilder
      Returns:
      Whether the windowStartTime field is set.
    • getWindowStartTime

      public TimeOfDay getWindowStartTime()
       Required. Start time of the window on days that it is scheduled,
       assuming UTC timezone.
       
      .google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWindowStartTime in interface RecurringMaintenanceWindowOrBuilder
      Returns:
      The windowStartTime.
    • setWindowStartTime

      public RecurringMaintenanceWindow.Builder setWindowStartTime(TimeOfDay value)
       Required. Start time of the window on days that it is scheduled,
       assuming UTC timezone.
       
      .google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • setWindowStartTime

      public RecurringMaintenanceWindow.Builder setWindowStartTime(TimeOfDay.Builder builderForValue)
       Required. Start time of the window on days that it is scheduled,
       assuming UTC timezone.
       
      .google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeWindowStartTime

      public RecurringMaintenanceWindow.Builder mergeWindowStartTime(TimeOfDay value)
       Required. Start time of the window on days that it is scheduled,
       assuming UTC timezone.
       
      .google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearWindowStartTime

      public RecurringMaintenanceWindow.Builder clearWindowStartTime()
       Required. Start time of the window on days that it is scheduled,
       assuming UTC timezone.
       
      .google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • getWindowStartTimeBuilder

      public TimeOfDay.Builder getWindowStartTimeBuilder()
       Required. Start time of the window on days that it is scheduled,
       assuming UTC timezone.
       
      .google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
    • getWindowStartTimeOrBuilder

      public TimeOfDayOrBuilder getWindowStartTimeOrBuilder()
       Required. Start time of the window on days that it is scheduled,
       assuming UTC timezone.
       
      .google.type.TimeOfDay window_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWindowStartTimeOrBuilder in interface RecurringMaintenanceWindowOrBuilder
    • hasWindowDuration

      public boolean hasWindowDuration()
       Required. Duration of the window.
       
      .google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasWindowDuration in interface RecurringMaintenanceWindowOrBuilder
      Returns:
      Whether the windowDuration field is set.
    • getWindowDuration

      public com.google.protobuf.Duration getWindowDuration()
       Required. Duration of the window.
       
      .google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWindowDuration in interface RecurringMaintenanceWindowOrBuilder
      Returns:
      The windowDuration.
    • setWindowDuration

      public RecurringMaintenanceWindow.Builder setWindowDuration(com.google.protobuf.Duration value)
       Required. Duration of the window.
       
      .google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];
    • setWindowDuration

      public RecurringMaintenanceWindow.Builder setWindowDuration(com.google.protobuf.Duration.Builder builderForValue)
       Required. Duration of the window.
       
      .google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeWindowDuration

      public RecurringMaintenanceWindow.Builder mergeWindowDuration(com.google.protobuf.Duration value)
       Required. Duration of the window.
       
      .google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearWindowDuration

      public RecurringMaintenanceWindow.Builder clearWindowDuration()
       Required. Duration of the window.
       
      .google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];
    • getWindowDurationBuilder

      public com.google.protobuf.Duration.Builder getWindowDurationBuilder()
       Required. Duration of the window.
       
      .google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];
    • getWindowDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getWindowDurationOrBuilder()
       Required. Duration of the window.
       
      .google.protobuf.Duration window_duration = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWindowDurationOrBuilder in interface RecurringMaintenanceWindowOrBuilder
    • getRecurrence

      public String getRecurrence()
       Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3)
       for how this window recurs.
      
       For example, to have something repeat every weekday, you'd use:
       `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
      
       To repeat some window daily (equivalent to the DailyMaintenanceWindow):
       `FREQ=DAILY`
      
       For the first weekend of every month:
       `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
      
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecurrence in interface RecurringMaintenanceWindowOrBuilder
      Returns:
      The recurrence.
    • getRecurrenceBytes

      public com.google.protobuf.ByteString getRecurrenceBytes()
       Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3)
       for how this window recurs.
      
       For example, to have something repeat every weekday, you'd use:
       `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
      
       To repeat some window daily (equivalent to the DailyMaintenanceWindow):
       `FREQ=DAILY`
      
       For the first weekend of every month:
       `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
      
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecurrenceBytes in interface RecurringMaintenanceWindowOrBuilder
      Returns:
      The bytes for recurrence.
    • setRecurrence

      public RecurringMaintenanceWindow.Builder setRecurrence(String value)
       Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3)
       for how this window recurs.
      
       For example, to have something repeat every weekday, you'd use:
       `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
      
       To repeat some window daily (equivalent to the DailyMaintenanceWindow):
       `FREQ=DAILY`
      
       For the first weekend of every month:
       `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
      
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The recurrence to set.
      Returns:
      This builder for chaining.
    • clearRecurrence

      public RecurringMaintenanceWindow.Builder clearRecurrence()
       Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3)
       for how this window recurs.
      
       For example, to have something repeat every weekday, you'd use:
       `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
      
       To repeat some window daily (equivalent to the DailyMaintenanceWindow):
       `FREQ=DAILY`
      
       For the first weekend of every month:
       `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
      
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRecurrenceBytes

      public RecurringMaintenanceWindow.Builder setRecurrenceBytes(com.google.protobuf.ByteString value)
       Required. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3)
       for how this window recurs.
      
       For example, to have something repeat every weekday, you'd use:
       `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
      
       To repeat some window daily (equivalent to the DailyMaintenanceWindow):
       `FREQ=DAILY`
      
       For the first weekend of every month:
       `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
      
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for recurrence to set.
      Returns:
      This builder for chaining.