# ObjVerVersion

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

A version number, or a marker such as "latest", together with its type.

- **Full name:** `MFiles.ObjVerVersion`
- **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-type"></a>`type` | [`ObjVerVersionType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ObjVerVersionType/index.md) | 1 | What `internal_version` means. `OBJ_VER_VERSION_TYPE_SPECIFIC` for a version number. Values: `OBJ_VER_VERSION_TYPE_UNINITIALIZED` (0), `OBJ_VER_VERSION_TYPE_LATEST` (1), `OBJ_VER_VERSION_TYPE_ANY` (2), `OBJ_VER_VERSION_TYPE_ALL` (3), `OBJ_VER_VERSION_TYPE_SPECIFIC` (4), `OBJ_VER_VERSION_TYPE_VALUE_LIST_ITEM` (6), `OBJ_VER_VERSION_TYPE_OBJECT_LEVEL_REFERENCE` (7). |
| <a id="f-internal_version"></a>`internal_version` | `int32` | 2 | The version number, starting from 1, when `type` is `OBJ_VER_VERSION_TYPE_SPECIFIC`. The server returns -1 with `OBJ_VER_VERSION_TYPE_LATEST`. |
| <a id="f-external_repository_version"></a>`external_repository_version` | `string` | 3 | Used only for objects in external repositories. Leave empty. |
| <a id="f-external_repository_sort_key"></a>`external_repository_sort_key` | `int64` | 4 | Used only for objects in external repositories. Leave 0. |

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

## Used by methods

- [IRPCObjectOperations.DestroyObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/DestroyObject/index.md): Permanently destroys an object, or one version of it.
- [IRPCObjectOperations.GetLatestObjectVersion](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetLatestObjectVersion/index.md): Gets the number and GUID of the latest version of an object.
- [IRPCObjectOperations.GetObjectHistory](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectHistory/index.md): Lists the existing versions of an object, oldest first.
- [IRPCObjectOperations.GetObjectInfo](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectInfo/index.md): Gets the version information of one object without its property values.
- [IRPCObjectOperations.GetObjectInfoAndProperties](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectInfoAndProperties/index.md): Gets the version information and the property values of one object, either its latest version or a specific version.
- [IRPCObjectOperations.GetObjectInfoAndPropertiesWithMetadata](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectInfoAndPropertiesWithMetadata/index.md): Like GetObjectInfoAndProperties, but each property value also carries its value metadata.
- [IRPCObjectOperations.Rollback](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/Rollback/index.md): Rolls back to an older version. Creates a new version that is a copy of the specified old version.

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

## Used by messages

- [`Lookup`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Lookup/index.md): One selected value list item or object in a lookup value.
- [`LookupWithMetadata`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.LookupWithMetadata/index.md): Single-value lookup datatype.
- [`ObjIDInfoForMIX`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjIDInfoForMIX/index.md): Object ID info for metadata indexing.
- [`ObjVer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjVer/index.md): Identifies one version of an object.
- [`ObjectLevelInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectLevelInfo/index.md): Object-level information.
- [`ObjectVersion`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectVersion/index.md): Information about one version of an object: its version number, title, class, files and status flags, without the property values.
- [`ObjectVersionActivity`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectVersionActivity/index.md): Struct for ObjectVersionActivity.
- [`ObjectVersionActivityRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectVersionActivityRequest/index.md): Object version activity request.
