public sealed class AutomatedBackupPolicy.Types.WeeklySchedule : IMessage<AutomatedBackupPolicy.Types.WeeklySchedule>, IEquatable<AutomatedBackupPolicy.Types.WeeklySchedule>, IDeepCloneable<AutomatedBackupPolicy.Types.WeeklySchedule>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1 API class AutomatedBackupPolicy.Types.WeeklySchedule.
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.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAutomatedBackupPolicy.Types.WeeklySchedule\u003c/code\u003e class allows for the configuration of weekly backup schedules in the AlloyDB v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class enables users to define specific days of the week and times of day for automated backups.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDaysOfWeek\u003c/code\u003e property determines which days backups occur, and if not specified, defaults to every day of the week.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStartTimes\u003c/code\u003e property specifies the times at which backups will initiate each day, set in UTC, and if not set, a fixed time will be determined arbitrarily.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this reference is 1.9.0, with multiple previous versions available for use, from 1.8.0 to 1.0.0.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1 API - Class AutomatedBackupPolicy.Types.WeeklySchedule (1.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.10.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.10.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.9.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.8.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.7.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.6.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.5.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.4.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.3.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.2.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.1.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.0.0/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule) \n\n public sealed class AutomatedBackupPolicy.Types.WeeklySchedule : IMessage\u003cAutomatedBackupPolicy.Types.WeeklySchedule\u003e, IEquatable\u003cAutomatedBackupPolicy.Types.WeeklySchedule\u003e, IDeepCloneable\u003cAutomatedBackupPolicy.Types.WeeklySchedule\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1 API class AutomatedBackupPolicy.Types.WeeklySchedule.\n\nA weekly schedule starts a backup at prescribed start times within a\nday, for the specified days of the week.\n\nThe weekly schedule message is flexible and can be used to create many\ntypes of schedules. For example, to have a daily backup that starts at\n22:00, configure the `start_times` field to have one element \"22:00\" and\nthe `days_of_week` field to have all seven days of the week. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AutomatedBackupPolicy.Types.WeeklySchedule \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutomatedBackupPolicy](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutomatedBackupPolicy](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutomatedBackupPolicy](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AutomatedBackupPolicy.Types.WeeklySchedule), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AlloyDb.V1](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1.dll\n\nConstructors\n------------\n\n### WeeklySchedule()\n\n public WeeklySchedule()\n\n### WeeklySchedule(WeeklySchedule)\n\n public WeeklySchedule(AutomatedBackupPolicy.Types.WeeklySchedule other)\n\nProperties\n----------\n\n### DaysOfWeek\n\n public RepeatedField\u003cDayOfWeek\u003e DaysOfWeek { get; }\n\nThe days of the week to perform a backup.\n\nIf this field is left empty, the default of every day of the week is\nused.\n\n### StartTimes\n\n public RepeatedField\u003cTimeOfDay\u003e StartTimes { get; }\n\nThe times during the day to start a backup. The start times are assumed\nto be in UTC and to be an exact hour (e.g., 04:00:00).\n\nIf no start times are provided, a single fixed start time is chosen\narbitrarily."]]