# Cloud Gaming V1 API - Class Google::Cloud::Gaming::V1::Schedule (v0.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.7.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Cloud-Gaming-V1-Schedule)
- [0.6.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.6.0/Google-Cloud-Gaming-V1-Schedule)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.5.0/Google-Cloud-Gaming-V1-Schedule)
- [0.4.4](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.4.4/Google-Cloud-Gaming-V1-Schedule)
Reference documentation and code samples for the Cloud Gaming V1 API class Google::Cloud::Gaming::V1::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.


<br />

`
start_time|---[cron job]---[cron job]---[cron job]---|end_time
cron job: cron spec start time + duration
`

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cron_job_duration

    def cron_job_duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Duration)) --- The duration for the cron job event. The duration of the event is effective after the cron job's start time.

### #cron_job_duration=

    def cron_job_duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Duration)) --- The duration for the cron job event. The duration of the event is effective after the cron job's start time.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Duration)) --- The duration for the cron job event. The duration of the event is effective after the cron job's start time.

### #cron_spec

    def cron_spec() -> ::String

**Returns**

- (::String) --- The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.

### #cron_spec=

    def cron_spec=(value) -> ::String

**Parameter**

- **value** (::String) --- The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.
**Returns**

- (::String) --- The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Timestamp)) --- The end time of the event.

### #end_time=

    def end_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Timestamp)) --- The end time of the event.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Timestamp)) --- The end time of the event.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Timestamp)) --- The start time of the event.

### #start_time=

    def start_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Timestamp)) --- The start time of the event.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Protobuf-Timestamp)) --- The start time of the event.