1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: fcp/secagg/server/secagg_server_enums.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_fcp_2fsecagg_2fserver_2fsecagg_5fserver_5fenums_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_fcp_2fsecagg_2fserver_2fsecagg_5fserver_5fenums_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
30 #include <google/protobuf/extension_set.h> // IWYU pragma: export
31 #include <google/protobuf/generated_enum_util.h>
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_fcp_2fsecagg_2fserver_2fsecagg_5fserver_5fenums_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 } // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_fcp_2fsecagg_2fserver_2fsecagg_5fserver_5fenums_2eproto {
43 static const ::uint32_t offsets[];
44 };
45 PROTOBUF_NAMESPACE_OPEN
46 PROTOBUF_NAMESPACE_CLOSE
47 namespace fcp {
48 namespace secagg {
49
50 enum SecAggServerStateKind : int {
51 UNKNOWN_STATE = 0,
52 R0_ADVERTISE_KEYS = 1,
53 R1_SHARE_KEYS = 2,
54 R2_MASKED_INPUT_COLLECTION = 3,
55 R3_UNMASKING = 4,
56 PRNG_RUNNING = 5,
57 COMPLETED = 6,
58 ABORTED = 7,
59 SecAggServerStateKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
60 SecAggServerStateKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
61 };
62 bool SecAggServerStateKind_IsValid(int value);
63 constexpr SecAggServerStateKind SecAggServerStateKind_MIN = UNKNOWN_STATE;
64 constexpr SecAggServerStateKind SecAggServerStateKind_MAX = ABORTED;
65 constexpr int SecAggServerStateKind_ARRAYSIZE = SecAggServerStateKind_MAX + 1;
66
67 const std::string& SecAggServerStateKind_Name(SecAggServerStateKind value);
68 template<typename T>
SecAggServerStateKind_Name(T enum_t_value)69 inline const std::string& SecAggServerStateKind_Name(T enum_t_value) {
70 static_assert(::std::is_same<T, SecAggServerStateKind>::value ||
71 ::std::is_integral<T>::value,
72 "Incorrect type passed to function SecAggServerStateKind_Name.");
73 return SecAggServerStateKind_Name(static_cast<SecAggServerStateKind>(enum_t_value));
74 }
75 bool SecAggServerStateKind_Parse(
76 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SecAggServerStateKind* value);
77 enum ServerVariant : int {
78 UNKNOWN_VERSION = 0,
79 OBSOLETE_JAVA = 1,
80 NATIVE_V1 = 2,
81 RLWE_HOMOMORPHIC_KEYS = 3,
82 NATIVE_SUBGRAPH = 4,
83 ServerVariant_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
84 ServerVariant_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
85 };
86 bool ServerVariant_IsValid(int value);
87 constexpr ServerVariant ServerVariant_MIN = UNKNOWN_VERSION;
88 constexpr ServerVariant ServerVariant_MAX = NATIVE_SUBGRAPH;
89 constexpr int ServerVariant_ARRAYSIZE = ServerVariant_MAX + 1;
90
91 const std::string& ServerVariant_Name(ServerVariant value);
92 template<typename T>
ServerVariant_Name(T enum_t_value)93 inline const std::string& ServerVariant_Name(T enum_t_value) {
94 static_assert(::std::is_same<T, ServerVariant>::value ||
95 ::std::is_integral<T>::value,
96 "Incorrect type passed to function ServerVariant_Name.");
97 return ServerVariant_Name(static_cast<ServerVariant>(enum_t_value));
98 }
99 bool ServerVariant_Parse(
100 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerVariant* value);
101 enum SecAggServerOutcome : int {
102 EXTERNAL_REQUEST = 0,
103 NOT_ENOUGH_CLIENTS_REMAINING = 1,
104 UNHANDLED_ERROR = 2,
105 SUCCESS = 3,
106 SecAggServerOutcome_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
107 SecAggServerOutcome_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
108 };
109 bool SecAggServerOutcome_IsValid(int value);
110 constexpr SecAggServerOutcome SecAggServerOutcome_MIN = EXTERNAL_REQUEST;
111 constexpr SecAggServerOutcome SecAggServerOutcome_MAX = SUCCESS;
112 constexpr int SecAggServerOutcome_ARRAYSIZE = SecAggServerOutcome_MAX + 1;
113
114 const std::string& SecAggServerOutcome_Name(SecAggServerOutcome value);
115 template<typename T>
SecAggServerOutcome_Name(T enum_t_value)116 inline const std::string& SecAggServerOutcome_Name(T enum_t_value) {
117 static_assert(::std::is_same<T, SecAggServerOutcome>::value ||
118 ::std::is_integral<T>::value,
119 "Incorrect type passed to function SecAggServerOutcome_Name.");
120 return SecAggServerOutcome_Name(static_cast<SecAggServerOutcome>(enum_t_value));
121 }
122 bool SecAggServerOutcome_Parse(
123 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SecAggServerOutcome* value);
124 enum ClientStatus : int {
125 READY_TO_START = 0,
126 DEAD_BEFORE_SENDING_ANYTHING = 1,
127 ADVERTISE_KEYS_RECEIVED = 2,
128 DEAD_AFTER_ADVERTISE_KEYS_RECEIVED = 3,
129 SHARE_KEYS_RECEIVED = 4,
130 DEAD_AFTER_SHARE_KEYS_RECEIVED = 5,
131 MASKED_INPUT_RESPONSE_RECEIVED = 6,
132 DEAD_AFTER_MASKED_INPUT_RESPONSE_RECEIVED = 7,
133 UNMASKING_RESPONSE_RECEIVED = 8,
134 DEAD_AFTER_UNMASKING_RESPONSE_RECEIVED = 9,
135 ClientStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
136 ClientStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
137 };
138 bool ClientStatus_IsValid(int value);
139 constexpr ClientStatus ClientStatus_MIN = READY_TO_START;
140 constexpr ClientStatus ClientStatus_MAX = DEAD_AFTER_UNMASKING_RESPONSE_RECEIVED;
141 constexpr int ClientStatus_ARRAYSIZE = ClientStatus_MAX + 1;
142
143 const std::string& ClientStatus_Name(ClientStatus value);
144 template<typename T>
ClientStatus_Name(T enum_t_value)145 inline const std::string& ClientStatus_Name(T enum_t_value) {
146 static_assert(::std::is_same<T, ClientStatus>::value ||
147 ::std::is_integral<T>::value,
148 "Incorrect type passed to function ClientStatus_Name.");
149 return ClientStatus_Name(static_cast<ClientStatus>(enum_t_value));
150 }
151 bool ClientStatus_Parse(
152 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientStatus* value);
153 enum ClientDropReason : int {
154 SENT_ABORT_MESSAGE = 0,
155 UNEXPECTED_MESSAGE_TYPE = 1,
156 UNKNOWN_MESSAGE_TYPE = 2,
157 ADVERTISE_KEYS_UNEXPECTED = 3,
158 EMPTY_PUBLIC_KEY = 4,
159 NO_ADVERTISE_KEYS = 5,
160 SHARE_KEYS_UNEXPECTED = 6,
161 WRONG_NUMBER_OF_KEY_SHARES PROTOBUF_DEPRECATED_ENUM = 7,
162 MISSING_KEY_SHARE PROTOBUF_DEPRECATED_ENUM = 8,
163 EXTRA_KEY_SHARE PROTOBUF_DEPRECATED_ENUM = 9,
164 NO_SHARE_KEYS = 10,
165 MASKED_INPUT_UNEXPECTED = 11,
166 INVALID_MASKED_INPUT = 12,
167 NO_MASKED_INPUT = 13,
168 UNMASKING_RESPONSE_UNEXPECTED = 14,
169 INVALID_UNMASKING_RESPONSE = 15,
170 NO_UNMASKING_RESPONSE = 16,
171 INVALID_PUBLIC_KEY = 17,
172 SERVER_PROTOCOL_ABORT_CLIENT = 18,
173 EARLY_SUCCESS = 19,
174 CONNECTION_CLOSED = 20,
175 INVALID_SHARE_KEYS_RESPONSE = 21,
176 ClientDropReason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
177 ClientDropReason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
178 };
179 bool ClientDropReason_IsValid(int value);
180 constexpr ClientDropReason ClientDropReason_MIN = SENT_ABORT_MESSAGE;
181 constexpr ClientDropReason ClientDropReason_MAX = INVALID_SHARE_KEYS_RESPONSE;
182 constexpr int ClientDropReason_ARRAYSIZE = ClientDropReason_MAX + 1;
183
184 const std::string& ClientDropReason_Name(ClientDropReason value);
185 template<typename T>
ClientDropReason_Name(T enum_t_value)186 inline const std::string& ClientDropReason_Name(T enum_t_value) {
187 static_assert(::std::is_same<T, ClientDropReason>::value ||
188 ::std::is_integral<T>::value,
189 "Incorrect type passed to function ClientDropReason_Name.");
190 return ClientDropReason_Name(static_cast<ClientDropReason>(enum_t_value));
191 }
192 bool ClientDropReason_Parse(
193 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientDropReason* value);
194 enum ClientAbortReason : int {
195 INVALID_MESSAGE = 0,
196 NOT_CHECKED_IN = 1,
197 CONNECTION_DROPPED = 2,
198 OBSOLETE_VERSION PROTOBUF_DEPRECATED_ENUM = 3,
199 ClientAbortReason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
200 ClientAbortReason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
201 };
202 bool ClientAbortReason_IsValid(int value);
203 constexpr ClientAbortReason ClientAbortReason_MIN = INVALID_MESSAGE;
204 constexpr ClientAbortReason ClientAbortReason_MAX = OBSOLETE_VERSION;
205 constexpr int ClientAbortReason_ARRAYSIZE = ClientAbortReason_MAX + 1;
206
207 const std::string& ClientAbortReason_Name(ClientAbortReason value);
208 template<typename T>
ClientAbortReason_Name(T enum_t_value)209 inline const std::string& ClientAbortReason_Name(T enum_t_value) {
210 static_assert(::std::is_same<T, ClientAbortReason>::value ||
211 ::std::is_integral<T>::value,
212 "Incorrect type passed to function ClientAbortReason_Name.");
213 return ClientAbortReason_Name(static_cast<ClientAbortReason>(enum_t_value));
214 }
215 bool ClientAbortReason_Parse(
216 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientAbortReason* value);
217 enum AdversaryClass : int {
218 NONE = 0,
219 CURIOUS_SERVER = 1,
220 SEMI_MALICIOUS_SERVER = 2,
221 AdversaryClass_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
222 AdversaryClass_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
223 };
224 bool AdversaryClass_IsValid(int value);
225 constexpr AdversaryClass AdversaryClass_MIN = NONE;
226 constexpr AdversaryClass AdversaryClass_MAX = SEMI_MALICIOUS_SERVER;
227 constexpr int AdversaryClass_ARRAYSIZE = AdversaryClass_MAX + 1;
228
229 const std::string& AdversaryClass_Name(AdversaryClass value);
230 template<typename T>
AdversaryClass_Name(T enum_t_value)231 inline const std::string& AdversaryClass_Name(T enum_t_value) {
232 static_assert(::std::is_same<T, AdversaryClass>::value ||
233 ::std::is_integral<T>::value,
234 "Incorrect type passed to function AdversaryClass_Name.");
235 return AdversaryClass_Name(static_cast<AdversaryClass>(enum_t_value));
236 }
237 bool AdversaryClass_Parse(
238 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AdversaryClass* value);
239 // ===================================================================
240
241
242 // ===================================================================
243
244
245 // ===================================================================
246
247 #ifdef __GNUC__
248 #pragma GCC diagnostic push
249 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
250 #endif // __GNUC__
251 #ifdef __GNUC__
252 #pragma GCC diagnostic pop
253 #endif // __GNUC__
254
255 // @@protoc_insertion_point(namespace_scope)
256
257 } // namespace secagg
258 } // namespace fcp
259
260 PROTOBUF_NAMESPACE_OPEN
261
262 template <> struct is_proto_enum< ::fcp::secagg::SecAggServerStateKind> : ::std::true_type {};
263 template <> struct is_proto_enum< ::fcp::secagg::ServerVariant> : ::std::true_type {};
264 template <> struct is_proto_enum< ::fcp::secagg::SecAggServerOutcome> : ::std::true_type {};
265 template <> struct is_proto_enum< ::fcp::secagg::ClientStatus> : ::std::true_type {};
266 template <> struct is_proto_enum< ::fcp::secagg::ClientDropReason> : ::std::true_type {};
267 template <> struct is_proto_enum< ::fcp::secagg::ClientAbortReason> : ::std::true_type {};
268 template <> struct is_proto_enum< ::fcp::secagg::AdversaryClass> : ::std::true_type {};
269
270 PROTOBUF_NAMESPACE_CLOSE
271
272 // @@protoc_insertion_point(global_scope)
273
274 #include <google/protobuf/port_undef.inc>
275 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_fcp_2fsecagg_2fserver_2fsecagg_5fserver_5fenums_2eproto
276