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
4845aa8e
Verified
Commit
4845aa8e
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
add message code
parent
eb4ccbfb
No related branches found
No related tags found
Loading
Pipeline
#10936
passed
3 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/caosdb/entity/v1alpha1/main.proto
+14
-1
14 additions, 1 deletion
proto/caosdb/entity/v1alpha1/main.proto
with
14 additions
and
1 deletion
proto/caosdb/entity/v1alpha1/main.proto
+
14
−
1
View file @
4845aa8e
...
...
@@ -24,12 +24,25 @@ option java_multiple_files = true;
option
java_package
=
"org.caosdb.api.entity.v1alpha1"
;
package
caosdb
.
entity.v1alpha1
;
// Entity messages codes.
enum
MessageCode
{
// Unspecific code. Use this for anything where a client is not expected to
// handle this message in a specific way.
MESSAGE_CODE_UNSPECIFIED
=
0
;
// Unknown code. This value is a fall-back which may be used when the message
// code was not in this list. An unknown error code is a sign of a wrong otr
// out-dated implementation on either side.
MESSAGE_CODE_UNKNOWN
=
1
;
// The requested entity (retrieve, delete, or update) does not exist.
MESSAGE_CODE_ENTITY_DOES_NOT_EXIST
=
2
;
}
// 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.
u
int32
code
=
1
;
int32
code
=
1
;
// A short description of the message which is indented for human readers.
string
description
=
2
;
}
...
...
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