Class AutomatedBackupPolicy.WeeklySchedule (0.38.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.38.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  AutomatedBackupPolicy . WeeklySchedule   extends   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.v1beta.AutomatedBackupPolicy.WeeklySchedule
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  DAYS_OF_WEEK_FIELD_NUMBER 
  
    
public   static   final   int   DAYS_OF_WEEK_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  START_TIMES_FIELD_NUMBER 
  
    
public   static   final   int   START_TIMES_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule . Builder   newBuilder ()  
  
  newBuilder(AutomatedBackupPolicy.WeeklySchedule prototype) 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule . Builder   newBuilder ( AutomatedBackupPolicy . WeeklySchedule   prototype )  
  
  
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AutomatedBackupPolicy . WeeklySchedule   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<AutomatedBackupPolicy . WeeklySchedule >  parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDaysOfWeek(int index) 
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.type.DayOfWeek The daysOfWeek at the given index.
 
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        int The count of daysOfWeek.
 
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        List <com.google.type.DayOfWeek >A list containing the daysOfWeek.
 
     
  
  getDaysOfWeekValue(int index) 
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire of 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;
    
      
        Returns  
      
        Type Description  
      
        List <Integer >A list containing the enum numeric values on the wire for daysOfWeek.
 
     
  
  getDefaultInstanceForType() 
  
    
public   AutomatedBackupPolicy . WeeklySchedule   getDefaultInstanceForType ()  
  
  getParserForType() 
  
    
public   Parser<AutomatedBackupPolicy . WeeklySchedule >  getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getStartTimes(int index) 
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.type.TimeOfDay  
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        List <com.google.type.TimeOfDay > 
     
  
  getStartTimesOrBuilder(int index) 
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.type.TimeOfDayOrBuilder  
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.type.TimeOfDayOrBuilder > 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   AutomatedBackupPolicy . WeeklySchedule . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   AutomatedBackupPolicy . WeeklySchedule . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   AutomatedBackupPolicy . WeeklySchedule . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]