Class ExclusionWindow.DayOfWeekList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.DayOfWeekList.Builder>
com.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList.Builder
All Implemented Interfaces:
ExclusionWindow.DayOfWeekListOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExclusionWindow.DayOfWeekList

public static final class ExclusionWindow.DayOfWeekList.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExclusionWindow.DayOfWeekList.Builder> implements ExclusionWindow.DayOfWeekListOrBuilder
 Holds repeated DaysOfWeek values as a container.
 
Protobuf type google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList
  • 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.DayOfWeekList.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.DayOfWeekList.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.DayOfWeekList.Builder>
    • getDefaultInstanceForType

      public ExclusionWindow.DayOfWeekList 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 ExclusionWindow.DayOfWeekList buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ExclusionWindow.DayOfWeekList.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.DayOfWeekList.Builder>
      Throws:
      IOException
    • getDaysOfWeekList

      public List<DayOfWeek> getDaysOfWeekList()
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeekList in interface ExclusionWindow.DayOfWeekListOrBuilder
      Returns:
      A list containing the daysOfWeek.
    • getDaysOfWeekCount

      public int getDaysOfWeekCount()
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeekCount in interface ExclusionWindow.DayOfWeekListOrBuilder
      Returns:
      The count of daysOfWeek.
    • getDaysOfWeek

      public DayOfWeek getDaysOfWeek(int index)
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeek in interface ExclusionWindow.DayOfWeekListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The daysOfWeek at the given index.
    • setDaysOfWeek

      public ExclusionWindow.DayOfWeekList.Builder setDaysOfWeek(int index, DayOfWeek value)
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The daysOfWeek to set.
      Returns:
      This builder for chaining.
    • addDaysOfWeek

      public ExclusionWindow.DayOfWeekList.Builder addDaysOfWeek(DayOfWeek value)
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The daysOfWeek to add.
      Returns:
      This builder for chaining.
    • addAllDaysOfWeek

      public ExclusionWindow.DayOfWeekList.Builder addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The daysOfWeek to add.
      Returns:
      This builder for chaining.
    • clearDaysOfWeek

      public ExclusionWindow.DayOfWeekList.Builder clearDaysOfWeek()
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDaysOfWeekValueList

      public List<Integer> getDaysOfWeekValueList()
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeekValueList in interface ExclusionWindow.DayOfWeekListOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for daysOfWeek.
    • getDaysOfWeekValue

      public int getDaysOfWeekValue(int index)
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeekValue in interface ExclusionWindow.DayOfWeekListOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of daysOfWeek at the given index.
    • setDaysOfWeekValue

      public ExclusionWindow.DayOfWeekList.Builder setDaysOfWeekValue(int index, int value)
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for daysOfWeek to set.
      Returns:
      This builder for chaining.
    • addDaysOfWeekValue

      public ExclusionWindow.DayOfWeekList.Builder addDaysOfWeekValue(int value)
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for daysOfWeek to add.
      Returns:
      This builder for chaining.
    • addAllDaysOfWeekValue

      public ExclusionWindow.DayOfWeekList.Builder addAllDaysOfWeekValue(Iterable<Integer> values)
       Optional. A list of days of week.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for daysOfWeek to add.
      Returns:
      This builder for chaining.