IRPCObjectOperations.GetAutomaticMetadata

View as Markdown

Vault API / core read session or assertion idempotent returns metadata structure version

Gets automatic metadata from the vault's metadata providers, for an object about to be created (from its uploaded files) or for an existing object version.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/GetAutomaticMetadata
HTTP (mf-http-grpc)POST /grpc/v1/get-automatic-metadata
RequestGetAutomaticMetadataRequest
ResponseGetAutomaticMetadataResponse
Book and levelVault API, core
Kindread
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Request: GetAutomaticMetadataRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
requestAutomaticMetadataRequestThe automatic metadata extraction request.
request.upload_ids[]repeated int32The upload session IDs associated with the metadata request. If the metadata request is pointed for existing object, the existing files are used instead.
request.object_type_idint32The object type of object that is about to be created.
request.obj_verObjVerThe object version if the automatic metadata request is pointed for existing object.
request.obj_ver.obj_idObjIDThe object.
request.obj_ver.versionObjVerVersionThe version. Usually OBJ_VER_VERSION_TYPE_SPECIFIC with internal_version.
request.properties[]repeated PropertyValueThe property values of the object.
request.properties[].property_defint32The property definition ID, for example 0 for "Name or title" or 100 for "Class".
request.properties[].valueTypedValueThe value. Its type must match the data type of the property definition.
request.services[]repeated stringList of requested metadata providers. Empty if all metadata providers are applied.
request.custom_datastringThe custom data for metadata providers.
request.uploaded_files[]repeated UploadedFileFiles of stateless uploads (fileRef, title and extension) used like the upload session IDs. Only uploaded files with a file_ref are accepted.
request.uploaded_files[].upload_idint32The upload session ID from UploadTempFile, committed with UploadTempFileCommit. Zero if file_ref is set.
request.uploaded_files[].titlestringThe title of the file.
request.uploaded_files[].extensionstringFile extension, not including the dot (e.g. "doc").
request.uploaded_files[].sizeint64The logical size of the file in bytes.
request.uploaded_files[].file_refstringThe file_ref of a stateless upload (FileUploadWhole or FileUploadEnd). Empty if upload_id is set. Exactly one of upload_id and file_ref must be set.

Response: GetAutomaticMetadataResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page. Fields marked (recursive) refer to a type already on their path.

FieldTypeDescription
responseAutomaticMetadataResultReceives the automatic metadata.
response.property_value_suggestions[]repeated PropertyValueSuggestionProperty value suggestions.
response.property_value_suggestions[].property_definition_idint32The property definition ID.
response.property_value_suggestions[].valueTypedValueThe typed value.
response.property_value_suggestions[].display_valuestringDisplay value for the suggestion. Can be empty.
response.property_value_suggestions[].confidencefloatThe projected quality of the suggestion.
response.property_value_suggestions[].is_factboolTrue if the suggestion is a fact (i.e. known to be valid for sure).
response.property_value_suggestions[].is_new_value_list_itemboolTrue if the suggestion depicts a new value for value lists.
response.property_value_suggestions[].new_value_list_item_property_suggestions[]repeated PropertyValueSuggestion (recursive)Suggestions that should be used when new object is created with this suggestion.
response.property_value_suggestions[].reasonstringRationale explaining why the suggestion is being made. Can be empty.
response.property_value_suggestions[].suggested_namestringDisplay name of a not-yet-created property (discovery-origin only). Empty otherwise.
response.property_value_suggestions[].suggested_data_typeint32MFDataType of the suggested new property (discovery-origin only). Zero otherwise.
response.property_value_suggestions[].instructionstringLLM-authored extraction instruction for a discovery-origin property. Empty otherwise.