Class TimeWindows.Builder

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

public static final class TimeWindows.Builder extends com.google.protobuf.GeneratedMessage.Builder<TimeWindows.Builder> implements TimeWindowsOrBuilder
 Time windows within which actions are restricted. See the
 [documentation](https://cloud.google.com/deploy/docs/deploy-policy#dates_times)
 for more information on how to configure dates/times.
 
Protobuf type google.cloud.deploy.v1.TimeWindows
  • 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<TimeWindows.Builder>
    • clear

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

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

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

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

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

      public TimeWindows.Builder mergeFrom(TimeWindows other)
    • isInitialized

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

      public TimeWindows.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<TimeWindows.Builder>
      Throws:
      IOException
    • getTimeZone

      public String getTimeZone()
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeZone in interface TimeWindowsOrBuilder
      Returns:
      The timeZone.
    • getTimeZoneBytes

      public com.google.protobuf.ByteString getTimeZoneBytes()
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeZoneBytes in interface TimeWindowsOrBuilder
      Returns:
      The bytes for timeZone.
    • setTimeZone

      public TimeWindows.Builder setTimeZone(String value)
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The timeZone to set.
      Returns:
      This builder for chaining.
    • clearTimeZone

      public TimeWindows.Builder clearTimeZone()
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTimeZoneBytes

      public TimeWindows.Builder setTimeZoneBytes(com.google.protobuf.ByteString value)
       Required. The time zone in IANA format [IANA Time Zone
       Database](https://www.iana.org/time-zones) (e.g. America/New_York).
       
      string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for timeZone to set.
      Returns:
      This builder for chaining.
    • getOneTimeWindowsList

      public List<OneTimeWindow> getOneTimeWindowsList()
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOneTimeWindowsList in interface TimeWindowsOrBuilder
    • getOneTimeWindowsCount

      public int getOneTimeWindowsCount()
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOneTimeWindowsCount in interface TimeWindowsOrBuilder
    • getOneTimeWindows

      public OneTimeWindow getOneTimeWindows(int index)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOneTimeWindows in interface TimeWindowsOrBuilder
    • setOneTimeWindows

      public TimeWindows.Builder setOneTimeWindows(int index, OneTimeWindow value)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setOneTimeWindows

      public TimeWindows.Builder setOneTimeWindows(int index, OneTimeWindow.Builder builderForValue)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addOneTimeWindows

      public TimeWindows.Builder addOneTimeWindows(OneTimeWindow value)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addOneTimeWindows

      public TimeWindows.Builder addOneTimeWindows(int index, OneTimeWindow value)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addOneTimeWindows

      public TimeWindows.Builder addOneTimeWindows(OneTimeWindow.Builder builderForValue)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addOneTimeWindows

      public TimeWindows.Builder addOneTimeWindows(int index, OneTimeWindow.Builder builderForValue)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllOneTimeWindows

      public TimeWindows.Builder addAllOneTimeWindows(Iterable<? extends OneTimeWindow> values)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearOneTimeWindows

      public TimeWindows.Builder clearOneTimeWindows()
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeOneTimeWindows

      public TimeWindows.Builder removeOneTimeWindows(int index)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getOneTimeWindowsBuilder

      public OneTimeWindow.Builder getOneTimeWindowsBuilder(int index)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getOneTimeWindowsOrBuilder

      public OneTimeWindowOrBuilder getOneTimeWindowsOrBuilder(int index)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOneTimeWindowsOrBuilder in interface TimeWindowsOrBuilder
    • getOneTimeWindowsOrBuilderList

      public List<? extends OneTimeWindowOrBuilder> getOneTimeWindowsOrBuilderList()
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOneTimeWindowsOrBuilderList in interface TimeWindowsOrBuilder
    • addOneTimeWindowsBuilder

      public OneTimeWindow.Builder addOneTimeWindowsBuilder()
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addOneTimeWindowsBuilder

      public OneTimeWindow.Builder addOneTimeWindowsBuilder(int index)
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getOneTimeWindowsBuilderList

      public List<OneTimeWindow.Builder> getOneTimeWindowsBuilderList()
       Optional. One-time windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getWeeklyWindowsList

      public List<WeeklyWindow> getWeeklyWindowsList()
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWeeklyWindowsList in interface TimeWindowsOrBuilder
    • getWeeklyWindowsCount

      public int getWeeklyWindowsCount()
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWeeklyWindowsCount in interface TimeWindowsOrBuilder
    • getWeeklyWindows

      public WeeklyWindow getWeeklyWindows(int index)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWeeklyWindows in interface TimeWindowsOrBuilder
    • setWeeklyWindows

      public TimeWindows.Builder setWeeklyWindows(int index, WeeklyWindow value)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setWeeklyWindows

      public TimeWindows.Builder setWeeklyWindows(int index, WeeklyWindow.Builder builderForValue)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addWeeklyWindows

      public TimeWindows.Builder addWeeklyWindows(WeeklyWindow value)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addWeeklyWindows

      public TimeWindows.Builder addWeeklyWindows(int index, WeeklyWindow value)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addWeeklyWindows

      public TimeWindows.Builder addWeeklyWindows(WeeklyWindow.Builder builderForValue)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addWeeklyWindows

      public TimeWindows.Builder addWeeklyWindows(int index, WeeklyWindow.Builder builderForValue)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllWeeklyWindows

      public TimeWindows.Builder addAllWeeklyWindows(Iterable<? extends WeeklyWindow> values)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearWeeklyWindows

      public TimeWindows.Builder clearWeeklyWindows()
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removeWeeklyWindows

      public TimeWindows.Builder removeWeeklyWindows(int index)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getWeeklyWindowsBuilder

      public WeeklyWindow.Builder getWeeklyWindowsBuilder(int index)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getWeeklyWindowsOrBuilder

      public WeeklyWindowOrBuilder getWeeklyWindowsOrBuilder(int index)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWeeklyWindowsOrBuilder in interface TimeWindowsOrBuilder
    • getWeeklyWindowsOrBuilderList

      public List<? extends WeeklyWindowOrBuilder> getWeeklyWindowsOrBuilderList()
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWeeklyWindowsOrBuilderList in interface TimeWindowsOrBuilder
    • addWeeklyWindowsBuilder

      public WeeklyWindow.Builder addWeeklyWindowsBuilder()
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addWeeklyWindowsBuilder

      public WeeklyWindow.Builder addWeeklyWindowsBuilder(int index)
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getWeeklyWindowsBuilderList

      public List<WeeklyWindow.Builder> getWeeklyWindowsBuilderList()
       Optional. Recurring weekly windows within which actions are restricted.
       
      repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];