# ObjectTypeWithPropertyDefs

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

Object type with the property definitions that are based on the object type.

- **Full name:** `MFiles.ObjectTypeWithPropertyDefs`
- **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-object_type"></a>`object_type` | `int32` | 1 | Object type ID. |
| <a id="f-property_defs"></a>`property_defs` | repeated `int32` | 2 | The IDs of those propertydefs that are based on the object type. |

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

## Used by methods

- [IRPCIndexingDataSource.GetObjectTypesWithPropertyDefs](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/GetObjectTypesWithPropertyDefs/index.md): Gets object types with associated property defs.

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

## Used in fields

- [`GetObjectTypesWithPropertyDefsResponse.items`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/GetObjectTypesWithPropertyDefs/index.md#response): Items.
