Optional. Represents the number of days before or after the given week day
of month that the patch deployment is scheduled for. For example if
week_ordinal and day_of_week values point to the second day of the
month and this day_offset value is set to 3, the patch deployment takes
place three days after the second Tuesday of the month. If this value is
negative, for example -5, the patches are deployed five days before before
the second Tuesday of the month. Allowed values are in range [-30, 30].
[[["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\u003eWeekDayOfMonth\u003c/code\u003e class in the Google Cloud OS Config v1 API is version 2.4.0, with several older versions also available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWeekDayOfMonth\u003c/code\u003e represents a specific weekday within a month, such as "the 4th Sunday," and it inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, implementing several interfaces for functionality, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties to define the specific day, \u003ccode\u003eDayOfWeek\u003c/code\u003e, its \u003ccode\u003eWeekOrdinal\u003c/code\u003e, and an optional \u003ccode\u003eDayOffset\u003c/code\u003e to adjust the scheduled deployment date relative to the specified weekday.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors; a parameterless one and one that takes a \u003ccode\u003eWeekDayOfMonth\u003c/code\u003e instance as an argument.\u003c/p\u003e\n"],["\u003cp\u003eIt is part of the \u003ccode\u003eGoogle.Cloud.OsConfig.V1\u003c/code\u003e namespace and is located within the \u003ccode\u003eGoogle.Cloud.OsConfig.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class WeekDayOfMonth (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.WeekDayOfMonth)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.WeekDayOfMonth) \n\n public sealed class WeekDayOfMonth : IMessage\u003cWeekDayOfMonth\u003e, IEquatable\u003cWeekDayOfMonth\u003e, IDeepCloneable\u003cWeekDayOfMonth\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class WeekDayOfMonth.\n\nRepresents one week day in a month. An example is \"the 4th Sunday\". \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e WeekDayOfMonth \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[WeekDayOfMonth](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WeekDayOfMonth), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[WeekDayOfMonth](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WeekDayOfMonth), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[WeekDayOfMonth](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WeekDayOfMonth), [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### WeekDayOfMonth()\n\n public WeekDayOfMonth()\n\n### WeekDayOfMonth(WeekDayOfMonth)\n\n public WeekDayOfMonth(WeekDayOfMonth other)\n\nProperties\n----------\n\n### DayOfWeek\n\n public DayOfWeek DayOfWeek { get; set; }\n\nRequired. A day of the week.\n\n### DayOffset\n\n public int DayOffset { get; set; }\n\nOptional. Represents the number of days before or after the given week day\nof month that the patch deployment is scheduled for. For example if\n`week_ordinal` and `day_of_week` values point to the second day of the\nmonth and this `day_offset` value is set to `3`, the patch deployment takes\nplace three days after the second Tuesday of the month. If this value is\nnegative, for example -5, the patches are deployed five days before before\nthe second Tuesday of the month. Allowed values are in range \\[-30, 30\\].\n\n### WeekOrdinal\n\n public int WeekOrdinal { get; set; }\n\nRequired. Week number in a month. 1-4 indicates the 1st to 4th week of the\nmonth. -1 indicates the last week of the month."]]