// The name of the record type which defines the scope of the reference.
stringname=1;
// The id of the record type which defines the scope of the reference.
stringid=2;
// The description of the record type which defines the scope of the reference.
stringdescription=3;
}
// Data type for list value.
messageListDataType{
// A list can be a list of atomic data types or references.
oneofcontent{
// List of atomic data types (e.g. List of DOUBLE)
AtomicDataTypeatomic_data_type=1;
// List of reference (e.g. List of Person(s))
ReferenceDataTypereference_data_type=2;
}
}
// Atomic data types.
enumAtomicDataType{
// The data type is unset/unknown.
ATOMIC_DATA_TYPE_UNSPECIFIED=0;
// TEXT data type.
ATOMIC_DATA_TYPE_TEXT=1;
// DOUBLE data type.
ATOMIC_DATA_TYPE_DOUBLE=2;
// DATETIME data type.
ATOMIC_DATA_TYPE_DATETIME=3;
// INTEGER data type.
ATOMIC_DATA_TYPE_INTEGER=4;
// BOOLEAN data type.
ATOMIC_DATA_TYPE_BOOLEAN=5;
// FILE data type.
ATOMIC_DATA_TYPE_FILE=6;
}
// The property value's data type.
messageDataType{
// Wraps atomic types, LIST and REFERENCE
oneofcontent{
// The atomic data types.
AtomicDataTypeatomic_type=1;
// A list data type.
ListDataTypelist_type=2;
// A reference data type.
ReferenceDataTypereference_type=3;
}
}
// Represents collection values (e.g. for lists).
messageCollectionValues{
// List of scalar values.
repeatedScalarValuevalues=1;
}
// Represents special values which are otherwise hard to tranfer via protobuf.
enumSpecialValue{
// Not set.
SPECIAL_VALUE_UNSPECIFIED=0;
// The NULL value.
SPECIAL_VALUE_NULL=1;
// The empty string.
SPECIAL_VALUE_EMPTY_STRING=2;
}
// A scalar property value.
messageScalarValue{
// Wraps different optimized representations of a single value.
oneofcontent{
// The value as integer
int64integer_value=1;
// The value as double
doubledouble_value=2;
// The value as bool
boolboolean_value=3;
// The value as string
stringstring_value=4;
// The value is a special value (e.g. NULL or the empty string)
SpecialValuespecial_value=5;
}
}
// The value of a property.
messageValue{
// Wraps scalar and multi-dimensional values.
oneofcontent{
// The scalar values.
ScalarValuescalar_value=1;
// The list values.
CollectionValueslist_values=2;
}
}
// The roles of entities.
enumEntityRole{
// Unspecified role.
ENTITY_ROLE_UNSPECIFIED=0;
// RecordType
ENTITY_ROLE_RECORD_TYPE=1;
// Record
ENTITY_ROLE_RECORD=2;
// Property
ENTITY_ROLE_PROPERTY=3;
// File
ENTITY_ROLE_FILE=4;
}
// Messages codes. Entities and transactions contain errors, warnings and info
// messages which use these codes.
enumMessageCode{
...
...
@@ -318,13 +428,13 @@ message Entity {
// transactions.
Versionversion=4;
// Entity role (e.g. RecordType, Property, Record)
stringrole=5;
EntityRolerole=5;
// Default unit of this entity (only used by properties).
stringunit=6;
// Default datatype of this entity (only used by properties).
stringdatatype=7;
DataTypedatatype=7;
// Default value of this entity (only used by properties).
stringvalue=8;
Valuevalue=8;
// Properties of this entity.
repeatedPropertyproperties=9;
// Parents of this entity.
...
...
@@ -346,6 +456,20 @@ message Entity {
repeatedMessageinfos=13;
}
// The property importance.
enumImportance{
// The importance is unset/unknown.
IMPORTANCE_UNSPECIFIED=0;
// The property is obligatory for children of this entity. The server will flag an error when an obligatory property of a parent is missing during updates or insertions of a child entity. It says: "YOU MUST!"
IMPORTANCE_OBLIGATORY=1;
// The property is recommended for children of this entity. The server will flag a warning when a recommended property of a parent is missing during updates or insertions of a child entity. It says: "YOU SHOULD!"
IMPORTANCE_RECOMMENDED=2;
// The property is merely suggested for children of this entity. It says: "YOU MAY WANT TO?"
IMPORTANCE_SUGGESTED=3;
// The property is fix and child entities should not add this property to themselves (This is a bit like static in object-oriented programming languages). It says: "KINDLY IGNORE THIS ONE FOR CHILDREN OF THIS ENTITY"
IMPORTANCE_FIX=4;
}
// Property of an entity. Don't confuse with an Entity with role="Property"