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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-proto
Commits
063b0942
Verified
Commit
063b0942
authored
Nov 8, 2021
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
REL: Fix MESSAGE_CODE enum
parent
36d91802
No related branches found
No related tags found
1 merge request
!5
Release 0.1
Pipeline
#15779
passed with warnings
Nov 8, 2021
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/caosdb/entity/v1/main.proto
+119
-190
119 additions, 190 deletions
proto/caosdb/entity/v1/main.proto
with
119 additions
and
190 deletions
proto/caosdb/entity/v1/main.proto
+
119
−
190
View file @
063b0942
...
@@ -137,258 +137,189 @@ enum MessageCode {
...
@@ -137,258 +137,189 @@ enum MessageCode {
// code was not in this list. An unknown error code is a sign of a wrong otr
// code was not in this list. An unknown error code is a sign of a wrong otr
// out-dated implementation on either side.
// out-dated implementation on either side.
MESSAGE_CODE_UNKNOWN
=
1
;
MESSAGE_CODE_UNKNOWN
=
1
;
// The requested entity (retrieve, delete, or update) does not exist.
// The requested entity (retrieve, delete, or update) does not exist.
MESSAGE_CODE_ENTITY_DOES_NOT_EXIST
=
2
;
MESSAGE_CODE_ENTITY_DOES_NOT_EXIST
=
2
;
// The entity has no properties.
// The entity has no properties.
MESSAGE_CODE_ENTITY_HAS_NO_PROPERTIES
=
3
;
MESSAGE_CODE_ENTITY_HAS_NO_PROPERTIES
=
3
;
// TODO(tf) This entity has been deleted successfully.
// This entity has been deleted successfully.
MESSAGE_CODE_ENTITY_HAS_BEEN_DELETED_SUCCESSFULLY
=
5
;
MESSAGE_CODE_ENTITY_HAS_BEEN_DELETED_SUCCESSFULLY
=
4
;
// TODO(tf) Entity has unqualified properties.
MESSAGE_CODE_ENTITY_HAS_UNQUALIFIED_PROPERTIES
=
6
;
// TODO(tf) Entity has unqualified parents.
MESSAGE_CODE_ENTITY_HAS_UNQUALIFIED_PARENTS
=
7
;
// TODO(tf) DESCRIPTION!!!
MESSAGE_CODE_PARSING_FAILED
=
8
;
// TODO(tf) Unknown datatype.
MESSAGE_CODE_UNKNOWN_DATATYPE
=
9
;
//
TODO(tf) Unknown importance
.
//
On insert or update: Entity has unqualified properties
.
MESSAGE_CODE_
UNKNOWN_IMPORTANCE
=
10
;
MESSAGE_CODE_
ENTITY_HAS_UNQUALIFIED_PROPERTIES
=
5
;
//
TODO(tf) Entity has no ID
.
//
On insert or update: Entity has unqualified parents
.
MESSAGE_CODE_ENTITY_HAS_
NO_ID
=
11
;
MESSAGE_CODE_ENTITY_HAS_
UNQUALIFIED_PARENTS
=
6
;
// TODO(tf) Entity is required by other entities which are not to be deleted.
// On update: Entity, Property or Parent has no ID and the server is
MESSAGE_CODE_REQUIRED_BY_PERSISTENT_ENTITY
=
12
;
// configured to require a valid ID for all entities which are to be updated
// and their properties and parents as well.
MESSAGE_CODE_ENTITY_HAS_NO_ID
=
7
;
//
TODO(tf) Property has no datatype
.
//
Entity is required by other entities which are not to be deleted
.
MESSAGE_CODE_
NO_DATATYPE
=
13
;
MESSAGE_CODE_
REQUIRED_BY_PERSISTENT_ENTITY
=
8
;
//
TODO(tf) Enti
ty has no d
escription
.
//
Proper
ty has no d
atatype
.
MESSAGE_CODE_
ENTI
TY_HAS_NO_D
ESCRIPTION
=
14
;
MESSAGE_CODE_
PROPER
TY_HAS_NO_D
ATA_TYPE
=
9
;
//
TODO(tf)
Entity has no
name
.
// Entity has no
description
.
MESSAGE_CODE_ENTITY_HAS_NO_
NAME
=
1
5
;
MESSAGE_CODE_ENTITY_HAS_NO_
DESCRIPTION
=
1
0
;
//
TODO(tf) An obligatory property is missing
.
//
Entity has no name
.
MESSAGE_CODE_
OBLIGATORY_PROPERTY_MISSING
=
1
6
;
MESSAGE_CODE_
ENTITY_HAS_NO_NAME
=
1
1
;
//
TODO(tf) Entity has no parents
.
//
On insert or update: An obligatory property is missing
.
MESSAGE_CODE_
ENTITY_HAS_NO_PARENTS
=
1
7
;
MESSAGE_CODE_
OBLIGATORY_PROPERTY_MISSING
=
1
2
;
//
TODO(tf) Entity can not be identified due to name duplicate
s.
//
On insert or update: Entity has no parent
s.
MESSAGE_CODE_
NAME_DUPLICATE
S
=
1
8
;
MESSAGE_CODE_
ENTITY_HAS_NO_PARENT
S
=
1
3
;
//
TODO(tf) Entity has no name and no ID
.
//
No target path specified
.
MESSAGE_CODE_
ENTITY
_HAS_NO_
NAME_AND_NO_ID
=
1
9
;
MESSAGE_CODE_
FILE
_HAS_NO_
TARGET_PATH
=
1
4
;
// T
ODO(tf) Reference property has no refi
d.
// T
his target path is not allowe
d.
MESSAGE_CODE_
REFERENCE_HAS_NO_REFI
D
=
20
;
MESSAGE_CODE_
TARGET_PATH_NOT_ALLOWE
D
=
15
;
// T
ODO(tf) No
target path
specified
.
// T
his
target path
does already exist
.
MESSAGE_CODE_
NO_
TARGET_PATH
=
2
1
;
MESSAGE_CODE_TARGET_PATH
_EXISTS
=
1
6
;
//
TODO(tf) This target path is not allowed
.
//
Property has no unit
.
MESSAGE_CODE_
TARGET_PATH_NOT_ALLOWED
=
22
;
MESSAGE_CODE_
PROPERTY_HAS_NO_UNIT
=
17
;
//
TODO(tf) This target path does already exist
.
//
Cannot parse value
.
MESSAGE_CODE_
TARGET_PATH_EXISTS
=
23
;
MESSAGE_CODE_
CANNOT_PARSE_VALUE
=
18
;
//
TODO(tf) Entity has no unit
.
//
Checksum test failed. File is corrupted
.
MESSAGE_CODE_
ENTITY_HAS_NO_UNIT
=
24
;
MESSAGE_CODE_
CHECKSUM_TEST_FAILED
=
19
;
//
TODO(tf) Cannot parse value
.
//
Size test failed. File is corrupted
.
MESSAGE_CODE_
CANNOT_PARSE_VALUE
=
2
5
;
MESSAGE_CODE_
SIZE_TEST_FAILED
=
2
0
;
//
TODO(tf) Checksum test failed. File is corrup
te
d
.
//
Cannot create parent folder in the file sys
te
m
.
MESSAGE_CODE_C
HECKSUM_TEST_FAILED
=
2
6
;
MESSAGE_CODE_C
ANNOT_CREATE_PARENT_FOLDER
=
2
1
;
//
TODO(tf) Size test failed. File is corrupt
ed.
//
File has not been upload
ed.
MESSAGE_CODE_
SIZE_TEST_FAIL
ED
=
2
7
;
MESSAGE_CODE_
FILE_HAS_NOT_BEEN_UPLOA
ED
=
2
2
;
//
TODO(tf) Could not create parent folder in the file system
.
//
Cannot move file to it's target folder
.
MESSAGE_CODE_CANNOT_
CREATE_PARENT_FOLDER
=
2
8
;
MESSAGE_CODE_CANNOT_
MOVE_FILE_TO_TARGET_PATH
=
2
3
;
//
TODO(tf) Fil
e
h
as
not been uploaded
.
//
Cannot parse valu
e as
datetime value
.
MESSAGE_CODE_
FILE_HAS_NOT_BEEN_UPLOAED
=
2
9
;
MESSAGE_CODE_
CANNOT_PARSE_DATETIME_VALUE
=
2
4
;
//
TODO(tf) Thumbnail has not been uploaded
.
//
Cannot parse value as double value
.
MESSAGE_CODE_
THUMBNAIL_HAS_NOT_BEEN_UPLOAED
=
30
;
MESSAGE_CODE_
CANNOT_PARSE_DOUBLE_VALUE
=
25
;
//
TODO(tf) Could not move file to it's target folder
.
//
Cannot parse value as integer value
.
MESSAGE_CODE_CANNOT_
MOVE_FILE_TO_TARGET_PATH
=
31
;
MESSAGE_CODE_CANNOT_
PARSE_INT_VALUE
=
26
;
// TODO(tf) Cannot parse value to datetime format
// Cannot parse value as boolean value (either 'true' or 'false', ignoring
// (yyyy-mm-dd'T'hh:mm:ss[.fffffffff][TimeZone]).
MESSAGE_CODE_CANNOT_PARSE_DATETIME_VALUE
=
32
;
// TODO(tf) Cannot parse value to double.
MESSAGE_CODE_CANNOT_PARSE_DOUBLE_VALUE
=
33
;
// TODO(tf) Cannot parse value to integer.
MESSAGE_CODE_CANNOT_PARSE_INT_VALUE
=
34
;
// TODO(tf) Cannot parse value to boolean (either 'true' or 'false', ignoring
// case).
// case).
MESSAGE_CODE_CANNOT_PARSE_BOOL_VALUE
=
35
;
MESSAGE_CODE_CANNOT_PARSE_BOOL_VALUE
=
27
;
// TODO(tf) Could not connect to MySQL server.
MESSAGE_CODE_CANNOT_CONNECT_TO_DATABASE
=
36
;
// TODO(tf) Please check if your MySQL has all required procedures installed.
MESSAGE_CODE_MYSQL_PROCEDURE_EXCEPTION
=
37
;
// TODO(tf) This error occurred while parsing the xml. Probably it has a wrong
// encoding.
MESSAGE_CODE_REQUEST_HAS_WRONG_ENCODING
=
38
;
// TODO(tf) Request body didn't contain the expected Elements.
MESSAGE_CODE_REQUEST_DOESNT_CONTAIN_EXPECTED_ELEMENTS
=
39
;
// TODO(tf) File is not in drop-off box.
MESSAGE_CODE_FILE_NOT_IN_DROPOFFBOX
=
40
;
// TODO(tf) File could not be found.
MESSAGE_CODE_FILE_NOT_FOUND
=
41
;
// TODO(tf) Could not move file to tmp folder.
MESSAGE_CODE_CANNOT_MOVE_FILE_TO_TMP
=
42
;
// TODO(tf) Insufficient read permission for this file. Please make it
// readable.
MESSAGE_CODE_CANNOT_READ_FILE
=
43
;
// TODO(tf) Insufficient read permission for this file's thumbnail. Please
// make it readable.
MESSAGE_CODE_CANNOT_READ_THUMBNAIL
=
44
;
// TODO(tf) No file representation submitted.
MESSAGE_CODE_NO_FILE_REPRESENTATION_SUBMITTED
=
45
;
// TODO(tf) DESCRIPTION?
MESSAGE_CODE_FILE_IS_EMPTY
=
46
;
// TODO(tf) A warning occured while processing an entity with the strict flag.
MESSAGE_CODE_WARNING_OCCURED
=
47
;
// TODO(tf) DESCRIPTION?
MESSAGE_CODE_UNKNOWN_JOB
=
48
;
// TODO(tf) Name is already in use. Choose a different name or reuse an
// existing entity.
MESSAGE_CODE_NAME_IS_NOT_UNIQUE
=
49
;
// TODO(tf) This entity cannot be identified uniquely due to name dublicates
MESSAGE_CODE_CANNOT_IDENTIFY_ENTITY_UNIQUELY
=
50
;
//
TODO(tf) This query finished with errors
.
//
File could not be found
.
MESSAGE_CODE_
QUERY_EXCEPTION
=
51
;
MESSAGE_CODE_
FILE_NOT_FOUND
=
28
;
//
TODO(tf) This entity is empty
.
//
A warning occured while processing an entity with the strict flag
.
MESSAGE_CODE_
ENTITY_IS_EMPTY
=
5
2
;
MESSAGE_CODE_
WARNING_OCCURED
=
2
9
;
//
TODO(tf) An unknown error occured during the transaction and it was rolled
//
On insert or update: Name is already in use. Choose a different name or
//
back
.
//
reuse an existing entity
.
MESSAGE_CODE_
TRANSACTION_ROLL_BACK
=
5
3
;
MESSAGE_CODE_
ENTITY_NAME_IS_NOT_UNIQUE
=
3
0
;
// T
ODO(tf) The file upload failed for an unknown reason
.
// T
his query finished with errors
.
MESSAGE_CODE_
FILE_UPLOAD_FAILED
=
54
;
MESSAGE_CODE_
QUERY_EXCEPTION
=
31
;
// TODO(tf) Unknown unit. Values with this unit cannot be converted to other
// An unknown error occured during the transaction and it was rolled back.
// units when used in search queries.
MESSAGE_CODE_TRANSACTION_ROLL_BACK
=
32
;
MESSAGE_CODE_UNKNOWN_UNIT
=
55
;
// TODO(tf) You are not allowed to do this.
// Unknown unit. Values with this unit cannot be converted to other units
MESSAGE_CODE_AUTHORIZATION_ERROR
=
56
;
// when used in search queries.
MESSAGE_CODE_UNKNOWN_UNIT
=
34
;
// TODO(tf) Reference not qualified. The value of this Reference Property is
// You are not allowed to do this.
// to be a child of its data type.
MESSAGE_CODE_AUTHORIZATION_ERROR
=
35
;
MESSAGE_CODE_REFERENCE_IS_NOT_ALLOWED_BY_DATATYPE
=
57
;
// TODO(tf) Cannot parse EntityACL.
// Reference not qualified. The value of this Reference Property is to be a
MESSAGE_CODE_CANNOT_PARSE_ENTITY_ACL
=
58
;
// child of its data type.
MESSAGE_CODE_REFERENCE_IS_NOT_ALLOWED_BY_DATA_TYPE
=
36
;
//
TODO(tf)
This entity cannot be identified due to name duplicates.
// This entity cannot be identified due to name duplicates.
MESSAGE_CODE_ENTITY_NAME_DUPLICATES
=
59
;
MESSAGE_CODE_ENTITY_NAME_DUPLICATES
=
37
;
//
TODO(tf)
This data type cannot be identified due to name duplicates.
// This data type cannot be identified due to name duplicates.
MESSAGE_CODE_DATA_TYPE_NAME_DUPLICATES
=
60
;
MESSAGE_CODE_DATA_TYPE_NAME_DUPLICATES
=
38
;
// TODO(tf) This entity cannot be identified as it didn't come with a name or
// This entity cannot be identified as it didn't come with a name or id.
// id.
MESSAGE_CODE_ENTITY_HAS_NO_NAME_OR_ID
=
39
;
MESSAGE_CODE_ENTITY_HAS_NO_NAME_OR_ID
=
61
;
//
TODO(tf)
Affiliation is not defined for this child-parent constellation.
// Affiliation is not defined for this child-parent constellation.
MESSAGE_CODE_AFFILIATION_ERROR
=
62
;
MESSAGE_CODE_AFFILIATION_ERROR
=
40
;
//
TODO(tf)
An error occured during the parsing of this query. Maybe you use a
// An error occured during the parsing of this query. Maybe you use a
wrong
//
wrong
syntax?
// syntax?
MESSAGE_CODE_QUERY_PARSING_ERROR
=
63
;
MESSAGE_CODE_QUERY_PARSING_ERROR
=
41
;
// TODO(tf) A property which has 'name' as its parent must have a TEXT data
// A property which has 'name' as its parent must have a TEXT data type.
// type.
MESSAGE_CODE_NAME_PROPERTIES_MUST_BE_TEXT
=
42
;
MESSAGE_CODE_NAME_PROPERTIES_MUST_BE_TEXT
=
64
;
//
TODO(tf)
This entity had parent duplicates. That is meaningless and only
// This entity had parent duplicates. That is meaningless and only
one parent
//
one parent
had been inserted.
// had been inserted.
MESSAGE_CODE_PARENT_DUPLICATES_WARNING
=
65
;
MESSAGE_CODE_PARENT_DUPLICATES_WARNING
=
43
;
//
TODO(tf)
This entity had parent duplicates. Parent duplicates are
// This entity had parent duplicates. Parent duplicates are
meaningless and
//
meaningless and
would be ignored (and inserted only once). But these
// would be ignored (and inserted only once). But these
parents had diverging
//
parents had diverging
inheritance instructions which cannot be processed.
// inheritance instructions which cannot be processed.
MESSAGE_CODE_PARENT_DUPLICATES_ERROR
=
66
;
MESSAGE_CODE_PARENT_DUPLICATES_ERROR
=
44
;
//
TODO(tf)
One or more entities are not qualified. None of them have been
// One or more entities are not qualified. None of them have been
// inserted/updated/deleted.
// inserted/updated/deleted.
MESSAGE_CODE_ATOMICITY_ERROR
=
67
;
MESSAGE_CODE_ATOMICITY_ERROR
=
45
;
//
TODO(tf)
There is no such role
'" + role + "'
.
// There is no such role.
MESSAGE_CODE_NO_SUCH_ENTITY_ROLE
=
6
8
;
MESSAGE_CODE_NO_SUCH_ENTITY_ROLE
=
4
6
;
//
TODO(tf)
This entity cannot be deleted due to dependency problems
// This entity cannot be deleted due to dependency problems
MESSAGE_CODE_REQUIRED_BY_UNQUALIFIED
=
69
;
MESSAGE_CODE_REQUIRED_BY_UNQUALIFIED
=
47
;
// TODO(tf) This entity has an invalid reference.
// This entity has an unqualified reference. I.e. the referenced entity is
MESSAGE_CODE_ENTITY_HAS_INVALID_REFERENCE
=
70
;
// not qualified for the transaction.
MESSAGE_CODE_ENTITY_HAS_UNQUALIFIED_REFERENCE
=
48
;
//
TODO(tf)
Referenced entity does not exist.
// Referenced entity does not exist.
MESSAGE_CODE_REFERENCED_ENTITY_DOES_NOT_EXIST
=
71
;
MESSAGE_CODE_REFERENCED_ENTITY_DOES_NOT_EXIST
=
49
;
//
TODO(tf)
This reference cannot be identified due to name duplicates.
// This reference cannot be identified due to name duplicates.
MESSAGE_CODE_REFERENCE_NAME_DUPLICATES
=
72
;
MESSAGE_CODE_REFERENCE_NAME_DUPLICATES
=
50
;
// TODO(tf) The datatype which is to be inherited could not be detected due to
// The datatype which is to be inherited could not be detected due to divergent datatypes of at least two parents.
// divergent datatypes of at least two parents.
MESSAGE_CODE_DATA_TYPE_INHERITANCE_AMBIGUOUS
=
51
;
MESSAGE_CODE_DATATYPE_INHERITANCE_AMBIGUOUS
=
73
;
//
TODO(tf)
This datatype does not accept collections of values (e.g. Lists).
// This datatype does not accept collections of values (e.g. Lists).
MESSAGE_CODE_DATA_TYPE_DOES_NOT_ACCEPT_COLLECTION_VALUES
=
74
;
MESSAGE_CODE_DATA_TYPE_DOES_NOT_ACCEPT_COLLECTION_VALUES
=
52
;
//
TODO(tf)
This unit cannot be parsed.
// This unit cannot be parsed.
MESSAGE_CODE_CANNOT_PARSE_UNIT
=
7
5
;
MESSAGE_CODE_CANNOT_PARSE_UNIT
=
5
3
;
//
TODO(tf)
This property is an additional property which has no corresponding
// This property is an additional property which has no corresponding
// property among the properties of the parents.
// property among the properties of the parents.
MESSAGE_CODE_ADDITIONAL_PROPERTY
=
76
;
MESSAGE_CODE_ADDITIONAL_PROPERTY
=
54
;
//
TODO(tf)
This property overrides the datatype.
// This property overrides the datatype.
MESSAGE_CODE_PROPERTY_WITH_DATATYPE_OVERRIDE
=
77
;
MESSAGE_CODE_PROPERTY_WITH_DATA
_
TYPE_OVERRIDE
=
55
;
//
TODO(tf)
This property overrides the description.
// This property overrides the description.
MESSAGE_CODE_PROPERTY_WITH_DESC_OVERRIDE
=
78
;
MESSAGE_CODE_PROPERTY_WITH_DESC
RIPTION
_OVERRIDE
=
56
;
//
TODO(tf)
This property overrides the name.
// This property overrides the name.
MESSAGE_CODE_PROPERTY_WITH_NAME_OVERRIDE
=
7
9
;
MESSAGE_CODE_PROPERTY_WITH_NAME_OVERRIDE
=
5
7
;
// Indicates that this server cannot process this integer value because it is
// Indicates that this server cannot process this integer value because it is
// out of range. The integer range is an implementation detail and thus this
// out of range. The integer range is an implementation detail and thus this
// can happen even though the API allows the value.
// can happen even though the API allows the value.
MESSAGE_CODE_INTEGER_VALUE_OUT_OF_RANGE
=
8
0
;
MESSAGE_CODE_INTEGER_VALUE_OUT_OF_RANGE
=
5
8
;
}
}
// Messages are used by server's or client's to transport *transient*
// Messages are used by server's or client's to transport *transient*
...
@@ -631,8 +562,6 @@ message RetrieveRequest {
...
@@ -631,8 +562,6 @@ message RetrieveRequest {
// Is the client requesting to download the file associated with the
// Is the client requesting to download the file associated with the
// retrieved entity or query results?
// retrieved entity or query results?
bool
register_file_download
=
3
;
bool
register_file_download
=
3
;
// TODO Settings for the download. Ignored if register_file_download is false.
// FileTransmissionSettings download_settings = 4;
}
}
// Response to a retrieve request
// Response to a retrieve request
...
...
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