Class TimeWindows

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.deploy.v1.TimeWindows
All Implemented Interfaces:
TimeWindowsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class TimeWindows extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • TIME_ZONE_FIELD_NUMBER

      public static final int TIME_ZONE_FIELD_NUMBER
      See Also:
    • ONE_TIME_WINDOWS_FIELD_NUMBER

      public static final int ONE_TIME_WINDOWS_FIELD_NUMBER
      See Also:
    • WEEKLY_WINDOWS_FIELD_NUMBER

      public static final int WEEKLY_WINDOWS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TimeWindows parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeWindows parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeWindows parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeWindows parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeWindows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeWindows parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeWindows parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimeWindows parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TimeWindows parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TimeWindows parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimeWindows parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimeWindows parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static TimeWindows.Builder newBuilder()
    • newBuilder

      public static TimeWindows.Builder newBuilder(TimeWindows prototype)
    • toBuilder

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

      protected TimeWindows.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TimeWindows getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TimeWindows> parser()
    • getParserForType

      public com.google.protobuf.Parser<TimeWindows> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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