Class RecurringTimeWindow.Builder

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

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

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

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

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

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

      public RecurringTimeWindow.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<RecurringTimeWindow.Builder>
      Throws:
      IOException
    • hasWindow

      public boolean hasWindow()
       The window of the first recurrence.
       
      .google.container.v1.TimeWindow window = 1;
      Specified by:
      hasWindow in interface RecurringTimeWindowOrBuilder
      Returns:
      Whether the window field is set.
    • getWindow

      public TimeWindow getWindow()
       The window of the first recurrence.
       
      .google.container.v1.TimeWindow window = 1;
      Specified by:
      getWindow in interface RecurringTimeWindowOrBuilder
      Returns:
      The window.
    • setWindow

      public RecurringTimeWindow.Builder setWindow(TimeWindow value)
       The window of the first recurrence.
       
      .google.container.v1.TimeWindow window = 1;
    • setWindow

      public RecurringTimeWindow.Builder setWindow(TimeWindow.Builder builderForValue)
       The window of the first recurrence.
       
      .google.container.v1.TimeWindow window = 1;
    • mergeWindow

      public RecurringTimeWindow.Builder mergeWindow(TimeWindow value)
       The window of the first recurrence.
       
      .google.container.v1.TimeWindow window = 1;
    • clearWindow

      public RecurringTimeWindow.Builder clearWindow()
       The window of the first recurrence.
       
      .google.container.v1.TimeWindow window = 1;
    • getWindowBuilder

      public TimeWindow.Builder getWindowBuilder()
       The window of the first recurrence.
       
      .google.container.v1.TimeWindow window = 1;
    • getWindowOrBuilder

      public TimeWindowOrBuilder getWindowOrBuilder()
       The window of the first recurrence.
       
      .google.container.v1.TimeWindow window = 1;
      Specified by:
      getWindowOrBuilder in interface RecurringTimeWindowOrBuilder
    • getRecurrence

      public String getRecurrence()
       An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       this window recurs. They go on for the span of time between the start and
       end time.
      
       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`
      
       This specifies how frequently the window starts. Eg, if you wanted to have
       a 9-5 UTC-4 window every weekday, you'd use something like:
       ```
       start time = 2019-01-01T09:00:00-0400
       end time = 2019-01-01T17:00:00-0400
       recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
       ```
      
       Windows can span multiple days. Eg, to make the window encompass every
       weekend from midnight Saturday till the last minute of Sunday UTC:
       ```
       start time = 2019-01-05T00:00:00Z
       end time = 2019-01-07T23:59:00Z
       recurrence = FREQ=WEEKLY;BYDAY=SA
       ```
      
       Note the start and end time's specific dates are largely arbitrary except
       to specify duration of the window and when it first starts.
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 2;
      Specified by:
      getRecurrence in interface RecurringTimeWindowOrBuilder
      Returns:
      The recurrence.
    • getRecurrenceBytes

      public com.google.protobuf.ByteString getRecurrenceBytes()
       An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       this window recurs. They go on for the span of time between the start and
       end time.
      
       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`
      
       This specifies how frequently the window starts. Eg, if you wanted to have
       a 9-5 UTC-4 window every weekday, you'd use something like:
       ```
       start time = 2019-01-01T09:00:00-0400
       end time = 2019-01-01T17:00:00-0400
       recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
       ```
      
       Windows can span multiple days. Eg, to make the window encompass every
       weekend from midnight Saturday till the last minute of Sunday UTC:
       ```
       start time = 2019-01-05T00:00:00Z
       end time = 2019-01-07T23:59:00Z
       recurrence = FREQ=WEEKLY;BYDAY=SA
       ```
      
       Note the start and end time's specific dates are largely arbitrary except
       to specify duration of the window and when it first starts.
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 2;
      Specified by:
      getRecurrenceBytes in interface RecurringTimeWindowOrBuilder
      Returns:
      The bytes for recurrence.
    • setRecurrence

      public RecurringTimeWindow.Builder setRecurrence(String value)
       An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       this window recurs. They go on for the span of time between the start and
       end time.
      
       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`
      
       This specifies how frequently the window starts. Eg, if you wanted to have
       a 9-5 UTC-4 window every weekday, you'd use something like:
       ```
       start time = 2019-01-01T09:00:00-0400
       end time = 2019-01-01T17:00:00-0400
       recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
       ```
      
       Windows can span multiple days. Eg, to make the window encompass every
       weekend from midnight Saturday till the last minute of Sunday UTC:
       ```
       start time = 2019-01-05T00:00:00Z
       end time = 2019-01-07T23:59:00Z
       recurrence = FREQ=WEEKLY;BYDAY=SA
       ```
      
       Note the start and end time's specific dates are largely arbitrary except
       to specify duration of the window and when it first starts.
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 2;
      Parameters:
      value - The recurrence to set.
      Returns:
      This builder for chaining.
    • clearRecurrence

      public RecurringTimeWindow.Builder clearRecurrence()
       An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       this window recurs. They go on for the span of time between the start and
       end time.
      
       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`
      
       This specifies how frequently the window starts. Eg, if you wanted to have
       a 9-5 UTC-4 window every weekday, you'd use something like:
       ```
       start time = 2019-01-01T09:00:00-0400
       end time = 2019-01-01T17:00:00-0400
       recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
       ```
      
       Windows can span multiple days. Eg, to make the window encompass every
       weekend from midnight Saturday till the last minute of Sunday UTC:
       ```
       start time = 2019-01-05T00:00:00Z
       end time = 2019-01-07T23:59:00Z
       recurrence = FREQ=WEEKLY;BYDAY=SA
       ```
      
       Note the start and end time's specific dates are largely arbitrary except
       to specify duration of the window and when it first starts.
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 2;
      Returns:
      This builder for chaining.
    • setRecurrenceBytes

      public RecurringTimeWindow.Builder setRecurrenceBytes(com.google.protobuf.ByteString value)
       An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       this window recurs. They go on for the span of time between the start and
       end time.
      
       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`
      
       This specifies how frequently the window starts. Eg, if you wanted to have
       a 9-5 UTC-4 window every weekday, you'd use something like:
       ```
       start time = 2019-01-01T09:00:00-0400
       end time = 2019-01-01T17:00:00-0400
       recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
       ```
      
       Windows can span multiple days. Eg, to make the window encompass every
       weekend from midnight Saturday till the last minute of Sunday UTC:
       ```
       start time = 2019-01-05T00:00:00Z
       end time = 2019-01-07T23:59:00Z
       recurrence = FREQ=WEEKLY;BYDAY=SA
       ```
      
       Note the start and end time's specific dates are largely arbitrary except
       to specify duration of the window and when it first starts.
       The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
       
      string recurrence = 2;
      Parameters:
      value - The bytes for recurrence to set.
      Returns:
      This builder for chaining.