Reference documentation and code samples for the Google Cloud OsConfig V1 Client class WeekDayOfMonth.
Represents one week day in a month. An example is "the 4th Sunday".
Generated from protobuf messagegoogle.cloud.osconfig.v1.WeekDayOfMonth
Namespace
Google \ Cloud \ OsConfig \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ week_ordinal
int
Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
↳ day_of_week
int
Required. A day of the week.
↳ day_offset
int
Optional. Represents the number of days before or after the given week day of month that the patch deployment is scheduled for. For example ifweek_ordinalandday_of_weekvalues point to the second day of the month and thisday_offsetvalue is set to3, 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].
getWeekOrdinal
Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
month. -1 indicates the last week of the month.
Returns
Type
Description
int
setWeekOrdinal
Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
month. -1 indicates the last week of the month.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDayOfWeek
Required. A day of the week.
Returns
Type
Description
int
setDayOfWeek
Required. A day of the week.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDayOffset
Optional. Represents the number of days before or after the given week day
of month that the patch deployment is scheduled for. For example ifweek_ordinalandday_of_weekvalues point to the second day of the
month and thisday_offsetvalue is set to3, 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].
Returns
Type
Description
int
setDayOffset
Optional. Represents the number of days before or after the given week day
of month that the patch deployment is scheduled for. For example ifweek_ordinalandday_of_weekvalues point to the second day of the
month and thisday_offsetvalue is set to3, 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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud OsConfig V1 Client - Class WeekDayOfMonth (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.WeekDayOfMonth)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.WeekDayOfMonth)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.WeekDayOfMonth)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.WeekDayOfMonth)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.WeekDayOfMonth)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.WeekDayOfMonth) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class WeekDayOfMonth.\n\nRepresents one week day in a month. An example is \"the 4th Sunday\".\n\nGenerated from protobuf message `google.cloud.osconfig.v1.WeekDayOfMonth`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getWeekOrdinal\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.\n\n### setWeekOrdinal\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.\n\n### getDayOfWeek\n\nRequired. A day of the week.\n\n### setDayOfWeek\n\nRequired. A day of the week.\n\n### getDayOffset\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### setDayOffset\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\\]."]]