# Storage Transfer v1 API - Class Schedule (2.10.0)

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

- [2.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.9.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.8.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.7.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.6.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.5.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.4.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.3.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.2.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.1.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.0.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.2.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.1.0/Google.Cloud.StorageTransfer.V1.Schedule)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.0.0/Google.Cloud.StorageTransfer.V1.Schedule)

    public sealed class Schedule : IMessage<Schedule>, IEquatable<Schedule>, IDeepCloneable<Schedule>, IBufferMessage, IMessage

Reference documentation and code samples for the Storage Transfer v1 API class Schedule.

Transfers can be scheduled to recur or to run just once.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Schedule

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Schedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.Schedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Schedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.Schedule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Schedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.StorageTransfer.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1)

## Assembly

Google.Cloud.StorageTransfer.V1.dll

## Constructors

### Schedule()

    public Schedule()

### Schedule(Schedule)

    public Schedule(Schedule other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.Schedule` |

## Properties

### EndTimeOfDay

    public TimeOfDay EndTimeOfDay { get; set; }

The time in UTC that no further transfer operations are scheduled. Combined
with
\[schedule_end_date\]\[google.storagetransfer.v1.Schedule.schedule_end_date\],
`end_time_of_day` specifies the end date and time for starting new transfer
operations. This field must be greater than or equal to the timestamp
corresponding to the combination of
\[schedule_start_date\]\[google.storagetransfer.v1.Schedule.schedule_start_date\]
and
\[start_time_of_day\]\[google.storagetransfer.v1.Schedule.start_time_of_day\],
and is subject to the following:

- If `end_time_of_day` is not set and `schedule_end_date` is set, then
  a default value of `23:59:59` is used for `end_time_of_day`.

- If `end_time_of_day` is set and `schedule_end_date` is not set, then
  \[INVALID_ARGUMENT\]\[google.rpc.Code.INVALID_ARGUMENT\] is returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeOfDay.html` |   |

### RepeatInterval

    public Duration RepeatInterval { get; set; }

Interval between the start of each scheduled TransferOperation. If
unspecified, the default value is 24 hours. This value may not be less than
1 hour.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### ScheduleEndDate

    public Date ScheduleEndDate { get; set; }

The last day a transfer runs. Date boundaries are determined relative to
UTC time. A job runs once per 24 hours within the following guidelines:

- If `schedule_end_date` and \[schedule_start_date\]\[google.storagetransfer.v1.Schedule.schedule_start_date\] are the same and in the future relative to UTC, the transfer is executed only one time.
- If `schedule_end_date` is later than `schedule_start_date` and `schedule_end_date` is in the future relative to UTC, the job runs each day at \[start_time_of_day\]\[google.storagetransfer.v1.Schedule.start_time_of_day\] through `schedule_end_date`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.Date.html` |   |

### ScheduleStartDate

    public Date ScheduleStartDate { get; set; }

Required. The start date of a transfer. Date boundaries are determined
relative to UTC time. If `schedule_start_date` and
\[start_time_of_day\]\[google.storagetransfer.v1.Schedule.start_time_of_day\]
are in the past relative to the job's creation time, the transfer starts
the day after you schedule the transfer request.

**Note:** When starting jobs at or near midnight UTC it is possible that
a job starts later than expected. For example, if you send an outbound
request on June 1 one millisecond prior to midnight UTC and the Storage
Transfer Service server receives the request on June 2, then it creates
a TransferJob with `schedule_start_date` set to June 2 and a
`start_time_of_day` set to midnight UTC. The first scheduled
\[TransferOperation\]\[google.storagetransfer.v1.TransferOperation\] takes
place on June 3 at midnight UTC.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.Date.html` |   |

### StartTimeOfDay

    public TimeOfDay StartTimeOfDay { get; set; }

The time in UTC that a transfer job is scheduled to run. Transfers may
start later than this time.

If `start_time_of_day` is not specified:

- One-time transfers run immediately.
- Recurring transfers run immediately, and each day at midnight UTC, through \[schedule_end_date\]\[google.storagetransfer.v1.Schedule.schedule_end_date\].

If `start_time_of_day` is specified:

- One-time transfers run at the specified time.
- Recurring transfers run at the specified time each day, through `schedule_end_date`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.TimeOfDay.html` |   |