Class WeeklyWindow.Builder

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

public static final class WeeklyWindow.Builder extends com.google.protobuf.GeneratedMessage.Builder<WeeklyWindow.Builder> implements WeeklyWindowOrBuilder
 Weekly windows. For example, blocking actions every Saturday and Sunday.
 Another example would be blocking actions every weekday from 5pm to midnight.
 
Protobuf type google.cloud.deploy.v1.WeeklyWindow
  • 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<WeeklyWindow.Builder>
    • clear

      public WeeklyWindow.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<WeeklyWindow.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<WeeklyWindow.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public WeeklyWindow.Builder mergeFrom(WeeklyWindow other)
    • isInitialized

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

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

      public List<DayOfWeek> getDaysOfWeekList()
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeekList in interface WeeklyWindowOrBuilder
      Returns:
      A list containing the daysOfWeek.
    • getDaysOfWeekCount

      public int getDaysOfWeekCount()
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeekCount in interface WeeklyWindowOrBuilder
      Returns:
      The count of daysOfWeek.
    • getDaysOfWeek

      public DayOfWeek getDaysOfWeek(int index)
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeek in interface WeeklyWindowOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The daysOfWeek at the given index.
    • setDaysOfWeek

      public WeeklyWindow.Builder setDaysOfWeek(int index, DayOfWeek value)
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      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 WeeklyWindow.Builder addDaysOfWeek(DayOfWeek value)
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      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 WeeklyWindow.Builder addAllDaysOfWeek(Iterable<? extends DayOfWeek> values)
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      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 WeeklyWindow.Builder clearDaysOfWeek()
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDaysOfWeekValueList

      public List<Integer> getDaysOfWeekValueList()
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeekValueList in interface WeeklyWindowOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for daysOfWeek.
    • getDaysOfWeekValue

      public int getDaysOfWeekValue(int index)
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDaysOfWeekValue in interface WeeklyWindowOrBuilder
      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 WeeklyWindow.Builder setDaysOfWeekValue(int index, int value)
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      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 WeeklyWindow.Builder addDaysOfWeekValue(int value)
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      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 WeeklyWindow.Builder addAllDaysOfWeekValue(Iterable<Integer> values)
       Optional. Days of week. If left empty, all days of the week will be
       included.
       
      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.
    • hasStartTime

      public boolean hasStartTime()
       Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
       If you specify start_time you must also specify end_time. If left empty,
       this will block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStartTime in interface WeeklyWindowOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public TimeOfDay getStartTime()
       Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
       If you specify start_time you must also specify end_time. If left empty,
       this will block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStartTime in interface WeeklyWindowOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public WeeklyWindow.Builder setStartTime(TimeOfDay value)
       Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
       If you specify start_time you must also specify end_time. If left empty,
       this will block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setStartTime

      public WeeklyWindow.Builder setStartTime(TimeOfDay.Builder builderForValue)
       Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
       If you specify start_time you must also specify end_time. If left empty,
       this will block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeStartTime

      public WeeklyWindow.Builder mergeStartTime(TimeOfDay value)
       Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
       If you specify start_time you must also specify end_time. If left empty,
       this will block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearStartTime

      public WeeklyWindow.Builder clearStartTime()
       Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
       If you specify start_time you must also specify end_time. If left empty,
       this will block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getStartTimeBuilder

      public TimeOfDay.Builder getStartTimeBuilder()
       Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
       If you specify start_time you must also specify end_time. If left empty,
       this will block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getStartTimeOrBuilder

      public TimeOfDayOrBuilder getStartTimeOrBuilder()
       Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
       If you specify start_time you must also specify end_time. If left empty,
       this will block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStartTimeOrBuilder in interface WeeklyWindowOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
       specify end_time you must also specify start_time. If left empty, this will
       block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEndTime in interface WeeklyWindowOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public TimeOfDay getEndTime()
       Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
       specify end_time you must also specify start_time. If left empty, this will
       block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndTime in interface WeeklyWindowOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public WeeklyWindow.Builder setEndTime(TimeOfDay value)
       Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
       specify end_time you must also specify start_time. If left empty, this will
       block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setEndTime

      public WeeklyWindow.Builder setEndTime(TimeOfDay.Builder builderForValue)
       Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
       specify end_time you must also specify start_time. If left empty, this will
       block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeEndTime

      public WeeklyWindow.Builder mergeEndTime(TimeOfDay value)
       Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
       specify end_time you must also specify start_time. If left empty, this will
       block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearEndTime

      public WeeklyWindow.Builder clearEndTime()
       Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
       specify end_time you must also specify start_time. If left empty, this will
       block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getEndTimeBuilder

      public TimeOfDay.Builder getEndTimeBuilder()
       Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
       specify end_time you must also specify start_time. If left empty, this will
       block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getEndTimeOrBuilder

      public TimeOfDayOrBuilder getEndTimeOrBuilder()
       Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
       specify end_time you must also specify start_time. If left empty, this will
       block for the entire day for the days specified in days_of_week.
       
      .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndTimeOrBuilder in interface WeeklyWindowOrBuilder