# ViewsOrDeltaEx

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

Struct for views or delta (changes to views).

- **Full name:** `MFiles.ViewsOrDeltaEx`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)
- **Nested types:** [`ViewsOrDeltaEx.ViewsOrDeltaExType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ViewsOrDeltaEx.ViewsOrDeltaExType/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-invisible_views"></a>`invisible_views` | repeated `int32` | 3 | Invisible 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) | 4 | 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

- [IRPCViews.GetViewsOrDelta](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCViews/GetViewsOrDelta/index.md): Gets the calling user's whole view collection, or only the changes since a version the caller already has.

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

## Used in fields

- [`GetViewsOrDeltaResponse.views_or_delta`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCViews/GetViewsOrDelta/index.md#response): The full collection (`type` false) or the changes (`type` true). See [ViewsOrDeltaEx](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ViewsOrDeltaEx/index.md).
