Reference documentation and code samples for the Google Cloud Game Servers V1 Client class Schedule.
The schedule of a recurring or one time event. The event's time span is
specified by start_time and end_time. If the scheduled event's timespan is
larger than the cron_spec + cron_job_duration, the event will be recurring.
If only cron_spec + cron_job_duration are specified, the event is effective
starting at the local time specified by cron_spec, and is recurring.
[[["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 Game Servers V1 Client - Class Schedule (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-game-servers/latest/V1.Schedule)\n- [1.2.5](/php/docs/reference/cloud-game-servers/1.2.5/V1.Schedule)\n- [1.1.1](/php/docs/reference/cloud-game-servers/1.1.1/V1.Schedule)\n- [1.0.5](/php/docs/reference/cloud-game-servers/1.0.5/V1.Schedule) \nReference documentation and code samples for the Google Cloud Game Servers V1 Client class Schedule.\n\nThe schedule of a recurring or one time event. The event's time span is\nspecified by start_time and end_time. If the scheduled event's timespan is\nlarger than the cron_spec + cron_job_duration, the event will be recurring.\n\nIf only cron_spec + cron_job_duration are specified, the event is effective\nstarting at the local time specified by cron_spec, and is recurring. \n\n start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time\n cron job: cron spec start time + duration\n\nGenerated from protobuf message `google.cloud.gaming.v1.Schedule`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Gaming \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getStartTime\n\nThe start time of the event.\n\n### hasStartTime\n\n### clearStartTime\n\n### setStartTime\n\nThe start time of the event.\n\n### getEndTime\n\nThe end time of the event.\n\n### hasEndTime\n\n### clearEndTime\n\n### setEndTime\n\nThe end time of the event.\n\n### getCronJobDuration\n\nThe duration for the cron job event. The duration of the event is effective\nafter the cron job's start time.\n\n### hasCronJobDuration\n\n### clearCronJobDuration\n\n### setCronJobDuration\n\nThe duration for the cron job event. The duration of the event is effective\nafter the cron job's start time.\n\n### getCronSpec\n\nThe cron definition of the scheduled event. See\n\u003chttps://en.wikipedia.org/wiki/Cron\u003e. Cron spec specifies the local time as\ndefined by the realm.\n\n### setCronSpec\n\nThe cron definition of the scheduled event. See\n\u003chttps://en.wikipedia.org/wiki/Cron\u003e. Cron spec specifies the local time as\ndefined by the realm."]]