Class 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.GeneratedMessageV3
    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.v1alpha.AutomatedBackupPolicy.WeeklySchedule
    See Also:
    Serialized Form
    • Field Detail

      • START_TIMES_FIELD_NUMBER

        public static final int START_TIMES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DAYS_OF_WEEK_FIELD_NUMBER

        public static final int DAYS_OF_WEEK_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getStartTimesList

        public List<com.google.type.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 com.google.type.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 com.google.type.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 com.google.type.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<com.google.type.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 com.google.type.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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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,
                                                                     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
      • newBuilderForType

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

        protected AutomatedBackupPolicy.WeeklySchedule.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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