public sealed class MonthlySchedule : IMessage<MonthlySchedule>, IEquatable<MonthlySchedule>, IDeepCloneable<MonthlySchedule>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class MonthlySchedule.
Represents a monthly schedule. An example of a valid monthly schedule is
"on the third Tuesday of the month" or "on the 15th of the month".
Required. One day of the month. 1-31 indicates the 1st to the 31st day.
-1 indicates the last day of the month. Months without the target day
will be skipped. For example, a schedule to run "every month on the 31st"
will not run in February, April, June, etc.
[[["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-12 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eMonthlySchedule\u003c/code\u003e class within the Google Cloud OS Config v1 API is version 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMonthlySchedule\u003c/code\u003e represents a recurring monthly schedule, such as the third Tuesday of the month or the 15th of the month.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality comparison, deep cloning, and buffer manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMonthlySchedule\u003c/code\u003e class offers options for specifying the schedule by either a specific day of the month (using \u003ccode\u003eMonthDay\u003c/code\u003e) or a specific weekday within the month (using \u003ccode\u003eWeekDayOfMonth\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThere are many prior versions of this class available for use, starting from 1.3.0 all the way to the latest 2.4.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class MonthlySchedule (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.MonthlySchedule)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.MonthlySchedule) \n\n public sealed class MonthlySchedule : IMessage\u003cMonthlySchedule\u003e, IEquatable\u003cMonthlySchedule\u003e, IDeepCloneable\u003cMonthlySchedule\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class MonthlySchedule.\n\nRepresents a monthly schedule. An example of a valid monthly schedule is\n\"on the third Tuesday of the month\" or \"on the 15th of the month\". \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MonthlySchedule \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MonthlySchedule](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.MonthlySchedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MonthlySchedule](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.MonthlySchedule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MonthlySchedule](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.MonthlySchedule), [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.OsConfig.V1](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1.dll\n\nConstructors\n------------\n\n### MonthlySchedule()\n\n public MonthlySchedule()\n\n### MonthlySchedule(MonthlySchedule)\n\n public MonthlySchedule(MonthlySchedule other)\n\nProperties\n----------\n\n### DayOfMonthCase\n\n public MonthlySchedule.DayOfMonthOneofCase DayOfMonthCase { get; }\n\n### HasMonthDay\n\n public bool HasMonthDay { get; }\n\nGets whether the \"month_day\" field is set\n\n### MonthDay\n\n public int MonthDay { get; set; }\n\nRequired. One day of the month. 1-31 indicates the 1st to the 31st day.\n-1 indicates the last day of the month. Months without the target day\nwill be skipped. For example, a schedule to run \"every month on the 31st\"\nwill not run in February, April, June, etc.\n\n### WeekDayOfMonth\n\n public WeekDayOfMonth WeekDayOfMonth { get; set; }\n\nRequired. Week day in a month."]]