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 v1beta 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 in the AlloyDB v1beta API allows for the configuration of weekly backup schedules.\u003c/p\u003e\n"],["\u003cp\u003eWeekly backups can be configured to start at specific times during the day, specified in UTC, and on selected days of the week.\u003c/p\u003e\n"],["\u003cp\u003eIf no specific days of the week are provided, backups will default to occur every day.\u003c/p\u003e\n"],["\u003cp\u003eIf no start times are provided, a single arbitrary fixed start time is chosen for backups.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e, providing methods such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1beta API - Class AutomatedBackupPolicy.Types.WeeklySchedule (1.0.0-beta12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.AutomatedBackupPolicy.Types.WeeklySchedule)\n- [1.0.0-beta11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/1.0.0-beta11/Google.Cloud.AlloyDb.V1Beta.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 v1beta 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.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.AutomatedBackupPolicy.Types.WeeklySchedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutomatedBackupPolicy](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.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.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.AutomatedBackupPolicy)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.AutomatedBackupPolicy.Types)[WeeklySchedule](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.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.V1Beta](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Beta.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."]]