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 v1alpha 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\u003eThis documentation is for the \u003ccode\u003eAutomatedBackupPolicy.Types.WeeklySchedule\u003c/code\u003e class within the AlloyDB v1alpha API, specifically version 1.0.0-alpha10.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWeeklySchedule\u003c/code\u003e class is designed to define a backup schedule that triggers backups on specified days of the week and at designated start times.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDaysOfWeek\u003c/code\u003e property, which defaults to every day if left empty, allows configuration of the specific days of the week for backups, while the \u003ccode\u003eStartTimes\u003c/code\u003e property allows setting the precise times backups are to be initiated, both utilizing RepeatedField structures.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and offers constructors for creating new instances and copying from existing ones, as well as inheriting members from the base object.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1alpha API - Class AutomatedBackupPolicy.Types.WeeklySchedule (1.0.0-alpha12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.0.0-alpha11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/1.0.0-alpha11/Google.Cloud.AlloyDb.V1Alpha.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 v1alpha 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.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AutomatedBackupPolicy.Types.WeeklySchedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutomatedBackupPolicy](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.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.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.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.V1Alpha](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Alpha.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."]]