Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions common/proto3/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
cmake_minimum_required(VERSION 3.17.0)

# Collect proto files from the new 1-1-1 structure
file(GLOB_RECURSE ProtoFiles
"${CMAKE_CURRENT_SOURCE_DIR}/enums/*.proto"
"${CMAKE_CURRENT_SOURCE_DIR}/messages/*.proto"
"${CMAKE_CURRENT_SOURCE_DIR}/anon/*.proto"
"${CMAKE_CURRENT_SOURCE_DIR}/auth/*.proto"
"${CMAKE_CURRENT_SOURCE_DIR}/envelope.proto"
)

# Generate C++ from protos
protobuf_generate(
LANGUAGE cpp
Expand Down
18 changes: 9 additions & 9 deletions common/proto3/common/enums/error_code.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ package SDMS;
option cc_enable_arenas = true;

enum ErrorCode {
ERROR_CODE_UNSPECIFIED = 0;
ERROR_CODE_BAD_REQUEST = 1;
ERROR_CODE_INTERNAL_ERROR = 2;
ERROR_CODE_CLIENT_ERROR = 3;
ERROR_CODE_SERVICE_ERROR = 4;
ERROR_CODE_AUTHN_REQUIRED = 5;
ERROR_CODE_AUTHN_ERROR = 6;
ERROR_CODE_DEST_PATH_ERROR = 7;
ERROR_CODE_DEST_FILE_ERROR = 8;
UNSPECIFIED = 0;
BAD_REQUEST = 1;
INTERNAL_ERROR = 2;
CLIENT_ERROR = 3;
SERVICE_ERROR = 4;
AUTHN_REQUIRED = 5;
AUTHN_ERROR = 6;
DEST_PATH_ERROR = 7;
DEST_FILE_ERROR = 8;
}