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.
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.
Returns
Type
Description
int
hasMonthDay
setMonthDay
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"]],[["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 MonthlySchedule (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.MonthlySchedule)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.MonthlySchedule)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.MonthlySchedule)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.MonthlySchedule)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.MonthlySchedule)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.MonthlySchedule) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client 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\nGenerated from protobuf message `google.cloud.osconfig.v1.MonthlySchedule`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getWeekDayOfMonth\n\nRequired. Week day in a month.\n\n### hasWeekDayOfMonth\n\n### setWeekDayOfMonth\n\nRequired. Week day in a month.\n\n### getMonthDay\n\nRequired. One day of the month. 1-31 indicates the 1st to the 31st day.\n\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### hasMonthDay\n\n### setMonthDay\n\nRequired. One day of the month. 1-31 indicates the 1st to the 31st day.\n\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### getDayOfMonth"]]