# OptimizeVaultAutoCancelOptions

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OptimizeVaultAutoCancelOptions/

Struct for a vault optimization job's auto-cancel options.

- **Full name:** `MFiles.OptimizeVaultAutoCancelOptions`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-auto_cancel"></a>`auto_cancel` | `bool` | 1 | True if auto-cancel is enabled. |
| <a id="f-auto_cancel_day"></a>`auto_cancel_day` | [`Weekday`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.Weekday/index.md) | 2 | Day when the job is auto-cancelled. Values: `WEEKDAY_NONE` (0), `WEEKDAY_MONDAY` (1), `WEEKDAY_TUESDAY` (2), `WEEKDAY_WEDNESDAY` (3), `WEEKDAY_THURSDAY` (4), `WEEKDAY_FRIDAY` (5), `WEEKDAY_SATURDAY` (6), `WEEKDAY_SUNDAY` (7). |
| <a id="f-auto_cancel_time"></a>`auto_cancel_time` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | 3 | Time when the job is auto-cancelled. |
| <a id="f-continuable"></a>`continuable` | `bool` | 4 | True if a cancelled optimization job can be continued on the next run. |

<a id="used-in-fields"></a>

## Used in fields

- [`OptimizeVaultJob.auto_cancel_options`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OptimizeVaultJob/index.md#f-auto_cancel_options): Auto-cancel options.
