# ViewsOrDelta

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.ViewsOrDelta/

Struct for views or delta (changes to views).

- **Full name:** `MFiles.ViewsOrDelta`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)
- **Nested types:** [`ViewsOrDelta.ViewsOrDeltaType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ViewsOrDelta.ViewsOrDeltaType/index.md)

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

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-type"></a>`type` | `bool` | 1 | True if this struct represents a delta (i.e. just the occurred changes to views). |
| <a id="f-removed_views"></a>`removed_views` | repeated `int32` | 2 | Removed views. This contains data only when this struct represents a delta. Otherwise it must be an empty array. |
| <a id="f-views"></a>`views` | repeated [`View`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.View/index.md) | 3 | Views. This contains inserted or updated views if this struct represents a delta, otherwise it contains just a "normal" array of views. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCSearch.GetFolderContentsOrDelta](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderContentsOrDelta/index.md): Gets the contents of the specified folder, or a delta that indicates changes to document vault data since the logical timestamp known by the caller.

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

## Used in fields

- [`GetFolderContentsOrDeltaResponse.views_or_delta`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderContentsOrDelta/index.md#response): Views or delta.
