Property definitions and classes (IRPCPropertyDefs)

View as Markdown

An interface for retrieving property definitions.

Provides methods for read-only access to PropertyDefs.

gRPC serviceMFiles.IRPCPropertyDefs
Book and levelVault API, core
Methods4
Proto filemfiles/IRPCPropertyDefs.proto

Overview

Reads property definitions and classes: what metadata objects can have and how it is grouped.

Job Call
All property definitions (names, data types, lookup targets) GetPropertyDefs
One property definition GetPropertyDef
All classes and class groups GetObjectClassesAndGroups
One class, for example to build a metadata card GetObjectClass

ID spaces. Property definition IDs, class IDs, class group IDs and object type IDs are separate number spaces; the same number means different things in each.

IDs of custom property definitions and classes differ between vaults: resolve them by alias or GUID with GetMetadataStructureItemIdByAlias.

How property values are written and read is described in Properties and values.

All four calls are cacheable by the metadata structure version (mfiles-metadata-version-bin trailer). GetPropertyDefs and GetObjectClassesAndGroups also take a known_version, so a client that keeps a cache can ask for the data only when it has changed.

Highlighted methods

MethodSummaryFacts
GetPropertyDefsGets all property definitions that the user is allowed to see.read session or assertion idempotent returns metadata structure version
GetPropertyDefGets one property definition by ID.write session or assertion returns metadata structure version
GetObjectClassesAndGroupsGets all classes and class groups that the user is allowed to see.read session or assertion idempotent returns metadata structure version
GetObjectClassGets one class by ID, with the property definitions associated with it.read session or assertion idempotent returns metadata structure version