public sealed class Schedule : IMessage<Schedule>, IEquatable<Schedule>, IDeepCloneable<Schedule>, IBufferMessage, IMessage
Reference documentation and code samples for the Game Services v1 API 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"]],[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSchedule\u003c/code\u003e class in the Game Services v1 API defines the timing for recurring or one-time events, using \u003ccode\u003estart_time\u003c/code\u003e and \u003ccode\u003eend_time\u003c/code\u003e to specify the event's duration.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSchedule\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities in handling messages, comparing objects, cloning, and managing buffers.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eCronJobDuration\u003c/code\u003e, \u003ccode\u003eCronSpec\u003c/code\u003e, \u003ccode\u003eEndTime\u003c/code\u003e, and \u003ccode\u003eStartTime\u003c/code\u003e, which allow for detailed configuration of the event's timing and duration.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCronSpec\u003c/code\u003e property specifies the event's local time based on a cron definition, allowing for recurring events as specified by the user.\u003c/p\u003e\n"],["\u003cp\u003eThe most recent version of the \u003ccode\u003eSchedule\u003c/code\u003e class is version 2.2.0, with previous versions from 2.1.0 to 1.1.0 available.\u003c/p\u003e\n"]]],[],null,["# Game Services v1 API - Class Schedule (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1.Schedule)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/2.1.0/Google.Cloud.Gaming.V1.Schedule)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/2.0.0/Google.Cloud.Gaming.V1.Schedule)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/1.4.0/Google.Cloud.Gaming.V1.Schedule)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/1.3.0/Google.Cloud.Gaming.V1.Schedule)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/1.2.0/Google.Cloud.Gaming.V1.Schedule)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/1.1.0/Google.Cloud.Gaming.V1.Schedule) \n\n public sealed class Schedule : IMessage\u003cSchedule\u003e, IEquatable\u003cSchedule\u003e, IDeepCloneable\u003cSchedule\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Game Services v1 API 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.\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\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Schedule \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Schedule](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1.Schedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Schedule](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1.Schedule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Schedule](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1.Schedule), [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.Gaming.V1](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Gaming.V1.dll\n\nConstructors\n------------\n\n### Schedule()\n\n public Schedule()\n\n### Schedule(Schedule)\n\n public Schedule(Schedule other)\n\nProperties\n----------\n\n### CronJobDuration\n\n public Duration CronJobDuration { get; set; }\n\nThe duration for the cron job event. The duration of the event is effective\nafter the cron job's start time.\n\n### CronSpec\n\n public string CronSpec { get; set; }\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### EndTime\n\n public Timestamp EndTime { get; set; }\n\nThe end time of the event.\n\n### StartTime\n\n public Timestamp StartTime { get; set; }\n\nThe start time of the event."]]