TypedValueMetadata

View as Markdown

Property value metadata namespace.

Metadata stored with a property value by the ...WithPropertyMetadata and ...WithMetadata methods. The server parses confidence as a number: when creating an object with CreateNewObjectWithPropertyMetadata or AddObjectWithFilesWithPropertyMetadata, a value without value_metadata, or with an empty confidence, fails with "Type mismatch." Metadata whose fields are all empty, unset or zero is not stored.

Full nameMFiles.TypedValueMetadata
Proto filemfiles/structs.proto

Fields

FieldTypeNumberDescription
set_byPropertySetByType1Who or what set the value. PROPERTY_SET_BY_TYPE_UNDEFINED stores nothing for this field.Values: PROPERTY_SET_BY_TYPE_UNDEFINED (0), PROPERTY_SET_BY_TYPE_SYSTEM (1), PROPERTY_SET_BY_TYPE_USER (2), PROPERTY_SET_BY_TYPE_AI (3).
reasonstring2Why the value was set, as free text. Optional.
confidencestring3The confidence of the value as a decimal number in a string, for example "0.9". Must be a number; send "0" when there is none. Zero or less stores no confidence.
batch_idstring4The GUID of the batch process that set the value, in braces. Optional.

Used in fields