Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-proto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-proto
Commits
9b3923c9
Verified
Commit
9b3923c9
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Add errors, warnings, info messages to entity
parent
12f07226
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#10591
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/caosdb/entity/v1alpha1/main.proto
+42
-8
42 additions, 8 deletions
proto/caosdb/entity/v1alpha1/main.proto
with
42 additions
and
8 deletions
proto/caosdb/entity/v1alpha1/main.proto
+
42
−
8
View file @
9b3923c9
...
...
@@ -24,6 +24,16 @@ option java_multiple_files = true;
option
java_package
=
"org.caosdb.api.entity.v1alpha1"
;
package
caosdb
.
entity.v1alpha1
;
// Messages are used by server's or client's to transport *transient*
// information, e.g. general information about a transaction, warnings, or
// errors.
message
Message
{
// The code is a machine-readable identifier.
string
code
=
1
;
// A short description of the message which is indented for human readers.
string
description
=
2
;
}
// Version of an entity.
message
Version
{
// Version id
...
...
@@ -32,13 +42,20 @@ message Version {
// This is the main class for CaosDB's entities.
message
Entity
{
// Entity ID
// Entity ID
. The entity id is the primary key for all entities.
string
id
=
1
;
// Entity name
// Entity name. The entity name is a possibly ambiguous identifier which is
// intended for human readers. In some cases, names can be restricted to be
// unique when this makes sense, but only as means to prevent the creation of
// duplicates.
string
name
=
2
;
// Entity description
// Entity description. A short description of the purpose and meaning of an
// entity which is intended for human readers.
string
description
=
3
;
// Entity version
// Entity version. This entity message represents only one version of a
// multitude of versions of the same entity (i.e. they have the same Entity
// ID). The different versions represent the change of an entity through
// transactions.
Version
version
=
4
;
// Entity role (e.g. RecordType, Property, Record)
string
role
=
5
;
...
...
@@ -46,10 +63,27 @@ message Entity {
string
unit
=
6
;
// Default datatype of this entity (only used by properties).
string
datatype
=
7
;
// Default value of this entity (only used by properties).
string
value
=
8
;
// Properties of this entity.
repeated
Property
properties
=
8
;
repeated
Property
properties
=
9
;
// Parents of this entity.
repeated
Parent
parents
=
9
;
repeated
Parent
parents
=
10
;
// Errors for this entity which occurred during the current transaction. The
// presence of errors indicates that a transaction was not successful and the
// errors describe why this is the case.
repeated
Message
errors
=
11
;
// Warnings for this entity which occurred during the current transaction,
// but the transaction was nevertheless successful. The presence of warnings
// indicates that the entity is in an undesired or non-standard state itself
// or in an undesired or non-standard relation to other entities or the
// server's state or configuration. This might cause errors in the future
// and should be remedied if possible.
repeated
Message
warnings
=
12
;
// Info messages for this entity which may inform the client about anything
// related to the transaction or the new state of the entity itself or in
// relation to other entities or the server's state or configuration.
repeated
Message
infos
=
13
;
}
// Property of an entity. Don't confuse with an Entity with role="Property"
...
...
@@ -89,7 +123,7 @@ message ByIdRequest {
// Response to a retrieve request
message
RetrieveResponse
{
//
p
ayload of the retrieval
//
P
ayload of the retrieval
Entity
entity
=
1
;
}
...
...
@@ -99,7 +133,7 @@ message RetrieveResponse {
message
RetrieveRequest
{
// Wrapped special kind of request.
oneof
wrapped_request
{
// A single retrieve
// A single retrieve
ByIdRequest
by_id
=
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment