Class AutomatedBackupPolicy.WeeklySchedule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule
All Implemented Interfaces:
AutomatedBackupPolicy.WeeklyScheduleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AutomatedBackupPolicy

public static final class AutomatedBackupPolicy.WeeklySchedule extends com.google.protobuf.GeneratedMessage implements AutomatedBackupPolicy.WeeklyScheduleOrBuilder
 A weekly schedule starts a backup at prescribed start times within a
 day, for the specified days of the week.

 The weekly schedule message is flexible and can be used to create many
 types of schedules. For example, to have a daily backup that starts at
 22:00, configure the `start_times` field to have one element "22:00" and
 the `days_of_week` field to have all seven days of the week.
 
Protobuf type google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule
See Also:
  • Field Details

    • START_TIMES_FIELD_NUMBER

      public static final int START_TIMES_FIELD_NUMBER
      See Also:
    • DAYS_OF_WEEK_FIELD_NUMBER

      public static final int DAYS_OF_WEEK_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
    • getStartTimesList

      public List<TimeOfDay> getStartTimesList()
       The times during the day to start a backup. The start times are assumed
       to be in UTC and to be an exact hour (e.g., 04:00:00).
      
       If no start times are provided, a single fixed start time is chosen
       arbitrarily.
       
      repeated .google.type.TimeOfDay start_times = 1;
      Specified by:
      getStartTimesList in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
    • getStartTimesOrBuilderList

      public List<? extends TimeOfDayOrBuilder> getStartTimesOrBuilderList()
       The times during the day to start a backup. The start times are assumed
       to be in UTC and to be an exact hour (e.g., 04:00:00).
      
       If no start times are provided, a single fixed start time is chosen
       arbitrarily.
       
      repeated .google.type.TimeOfDay start_times = 1;
      Specified by:
      getStartTimesOrBuilderList in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
    • getStartTimesCount

      public int getStartTimesCount()
       The times during the day to start a backup. The start times are assumed
       to be in UTC and to be an exact hour (e.g., 04:00:00).
      
       If no start times are provided, a single fixed start time is chosen
       arbitrarily.
       
      repeated .google.type.TimeOfDay start_times = 1;
      Specified by:
      getStartTimesCount in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
    • getStartTimes

      public TimeOfDay getStartTimes(int index)
       The times during the day to start a backup. The start times are assumed
       to be in UTC and to be an exact hour (e.g., 04:00:00).
      
       If no start times are provided, a single fixed start time is chosen
       arbitrarily.
       
      repeated .google.type.TimeOfDay start_times = 1;
      Specified by:
      getStartTimes in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
    • getStartTimesOrBuilder

      public TimeOfDayOrBuilder getStartTimesOrBuilder(int index)
       The times during the day to start a backup. The start times are assumed
       to be in UTC and to be an exact hour (e.g., 04:00:00).
      
       If no start times are provided, a single fixed start time is chosen
       arbitrarily.
       
      repeated .google.type.TimeOfDay start_times = 1;
      Specified by:
      getStartTimesOrBuilder in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
    • getDaysOfWeekList

      public List<DayOfWeek> getDaysOfWeekList()
       The days of the week to perform a backup.
      
       If this field is left empty, the default of every day of the week is
       used.
       
      repeated .google.type.DayOfWeek days_of_week = 2;
      Specified by:
      getDaysOfWeekList in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
      Returns:
      A list containing the daysOfWeek.
    • getDaysOfWeekCount

      public int getDaysOfWeekCount()
       The days of the week to perform a backup.
      
       If this field is left empty, the default of every day of the week is
       used.
       
      repeated .google.type.DayOfWeek days_of_week = 2;
      Specified by:
      getDaysOfWeekCount in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
      Returns:
      The count of daysOfWeek.
    • getDaysOfWeek

      public DayOfWeek getDaysOfWeek(int index)
       The days of the week to perform a backup.
      
       If this field is left empty, the default of every day of the week is
       used.
       
      repeated .google.type.DayOfWeek days_of_week = 2;
      Specified by:
      getDaysOfWeek in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The daysOfWeek at the given index.
    • getDaysOfWeekValueList

      public List<Integer> getDaysOfWeekValueList()
       The days of the week to perform a backup.
      
       If this field is left empty, the default of every day of the week is
       used.
       
      repeated .google.type.DayOfWeek days_of_week = 2;
      Specified by:
      getDaysOfWeekValueList in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for daysOfWeek.
    • getDaysOfWeekValue

      public int getDaysOfWeekValue(int index)
       The days of the week to perform a backup.
      
       If this field is left empty, the default of every day of the week is
       used.
       
      repeated .google.type.DayOfWeek days_of_week = 2;
      Specified by:
      getDaysOfWeekValue in interface AutomatedBackupPolicy.WeeklyScheduleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of daysOfWeek at the given index.
    • 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 AutomatedBackupPolicy.WeeklySchedule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static AutomatedBackupPolicy.WeeklySchedule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AutomatedBackupPolicy.WeeklySchedule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static AutomatedBackupPolicy.WeeklySchedule getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AutomatedBackupPolicy.WeeklySchedule> 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 AutomatedBackupPolicy.WeeklySchedule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder