1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: fcp/secagg/server/secagg_server_enums.proto
3
4 #include "fcp/secagg/server/secagg_server_enums.pb.h"
5
6 #include <algorithm>
7 #include <cstdint>
8
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 // @@protoc_insertion_point(includes)
13 #include <google/protobuf/port_def.inc>
14
15 PROTOBUF_PRAGMA_INIT_SEG
16
17 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
18 namespace _pbi = _pb::internal;
19
20 namespace fcp {
21 namespace secagg {
22 } // namespace secagg
23 } // namespace fcp
24 namespace fcp {
25 namespace secagg {
SecAggServerStateKind_IsValid(int value)26 bool SecAggServerStateKind_IsValid(int value) {
27 switch (value) {
28 case 0:
29 case 1:
30 case 2:
31 case 3:
32 case 4:
33 case 5:
34 case 6:
35 case 7:
36 return true;
37 default:
38 return false;
39 }
40 }
41
42 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SecAggServerStateKind_strings[8] = {};
43
44 static const char SecAggServerStateKind_names[] =
45 "ABORTED"
46 "COMPLETED"
47 "PRNG_RUNNING"
48 "R0_ADVERTISE_KEYS"
49 "R1_SHARE_KEYS"
50 "R2_MASKED_INPUT_COLLECTION"
51 "R3_UNMASKING"
52 "UNKNOWN_STATE";
53
54 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SecAggServerStateKind_entries[] = {
55 { {SecAggServerStateKind_names + 0, 7}, 7 },
56 { {SecAggServerStateKind_names + 7, 9}, 6 },
57 { {SecAggServerStateKind_names + 16, 12}, 5 },
58 { {SecAggServerStateKind_names + 28, 17}, 1 },
59 { {SecAggServerStateKind_names + 45, 13}, 2 },
60 { {SecAggServerStateKind_names + 58, 26}, 3 },
61 { {SecAggServerStateKind_names + 84, 12}, 4 },
62 { {SecAggServerStateKind_names + 96, 13}, 0 },
63 };
64
65 static const int SecAggServerStateKind_entries_by_number[] = {
66 7, // 0 -> UNKNOWN_STATE
67 3, // 1 -> R0_ADVERTISE_KEYS
68 4, // 2 -> R1_SHARE_KEYS
69 5, // 3 -> R2_MASKED_INPUT_COLLECTION
70 6, // 4 -> R3_UNMASKING
71 2, // 5 -> PRNG_RUNNING
72 1, // 6 -> COMPLETED
73 0, // 7 -> ABORTED
74 };
75
SecAggServerStateKind_Name(SecAggServerStateKind value)76 const std::string& SecAggServerStateKind_Name(
77 SecAggServerStateKind value) {
78 static const bool dummy =
79 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
80 SecAggServerStateKind_entries,
81 SecAggServerStateKind_entries_by_number,
82 8, SecAggServerStateKind_strings);
83 (void) dummy;
84 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
85 SecAggServerStateKind_entries,
86 SecAggServerStateKind_entries_by_number,
87 8, value);
88 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
89 SecAggServerStateKind_strings[idx].get();
90 }
SecAggServerStateKind_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SecAggServerStateKind * value)91 bool SecAggServerStateKind_Parse(
92 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SecAggServerStateKind* value) {
93 int int_value;
94 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
95 SecAggServerStateKind_entries, 8, name, &int_value);
96 if (success) {
97 *value = static_cast<SecAggServerStateKind>(int_value);
98 }
99 return success;
100 }
ServerVariant_IsValid(int value)101 bool ServerVariant_IsValid(int value) {
102 switch (value) {
103 case 0:
104 case 1:
105 case 2:
106 case 3:
107 case 4:
108 return true;
109 default:
110 return false;
111 }
112 }
113
114 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ServerVariant_strings[5] = {};
115
116 static const char ServerVariant_names[] =
117 "NATIVE_SUBGRAPH"
118 "NATIVE_V1"
119 "OBSOLETE_JAVA"
120 "RLWE_HOMOMORPHIC_KEYS"
121 "UNKNOWN_VERSION";
122
123 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ServerVariant_entries[] = {
124 { {ServerVariant_names + 0, 15}, 4 },
125 { {ServerVariant_names + 15, 9}, 2 },
126 { {ServerVariant_names + 24, 13}, 1 },
127 { {ServerVariant_names + 37, 21}, 3 },
128 { {ServerVariant_names + 58, 15}, 0 },
129 };
130
131 static const int ServerVariant_entries_by_number[] = {
132 4, // 0 -> UNKNOWN_VERSION
133 2, // 1 -> OBSOLETE_JAVA
134 1, // 2 -> NATIVE_V1
135 3, // 3 -> RLWE_HOMOMORPHIC_KEYS
136 0, // 4 -> NATIVE_SUBGRAPH
137 };
138
ServerVariant_Name(ServerVariant value)139 const std::string& ServerVariant_Name(
140 ServerVariant value) {
141 static const bool dummy =
142 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
143 ServerVariant_entries,
144 ServerVariant_entries_by_number,
145 5, ServerVariant_strings);
146 (void) dummy;
147 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
148 ServerVariant_entries,
149 ServerVariant_entries_by_number,
150 5, value);
151 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
152 ServerVariant_strings[idx].get();
153 }
ServerVariant_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,ServerVariant * value)154 bool ServerVariant_Parse(
155 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerVariant* value) {
156 int int_value;
157 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
158 ServerVariant_entries, 5, name, &int_value);
159 if (success) {
160 *value = static_cast<ServerVariant>(int_value);
161 }
162 return success;
163 }
SecAggServerOutcome_IsValid(int value)164 bool SecAggServerOutcome_IsValid(int value) {
165 switch (value) {
166 case 0:
167 case 1:
168 case 2:
169 case 3:
170 return true;
171 default:
172 return false;
173 }
174 }
175
176 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SecAggServerOutcome_strings[4] = {};
177
178 static const char SecAggServerOutcome_names[] =
179 "EXTERNAL_REQUEST"
180 "NOT_ENOUGH_CLIENTS_REMAINING"
181 "SUCCESS"
182 "UNHANDLED_ERROR";
183
184 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SecAggServerOutcome_entries[] = {
185 { {SecAggServerOutcome_names + 0, 16}, 0 },
186 { {SecAggServerOutcome_names + 16, 28}, 1 },
187 { {SecAggServerOutcome_names + 44, 7}, 3 },
188 { {SecAggServerOutcome_names + 51, 15}, 2 },
189 };
190
191 static const int SecAggServerOutcome_entries_by_number[] = {
192 0, // 0 -> EXTERNAL_REQUEST
193 1, // 1 -> NOT_ENOUGH_CLIENTS_REMAINING
194 3, // 2 -> UNHANDLED_ERROR
195 2, // 3 -> SUCCESS
196 };
197
SecAggServerOutcome_Name(SecAggServerOutcome value)198 const std::string& SecAggServerOutcome_Name(
199 SecAggServerOutcome value) {
200 static const bool dummy =
201 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
202 SecAggServerOutcome_entries,
203 SecAggServerOutcome_entries_by_number,
204 4, SecAggServerOutcome_strings);
205 (void) dummy;
206 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
207 SecAggServerOutcome_entries,
208 SecAggServerOutcome_entries_by_number,
209 4, value);
210 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
211 SecAggServerOutcome_strings[idx].get();
212 }
SecAggServerOutcome_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,SecAggServerOutcome * value)213 bool SecAggServerOutcome_Parse(
214 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SecAggServerOutcome* value) {
215 int int_value;
216 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
217 SecAggServerOutcome_entries, 4, name, &int_value);
218 if (success) {
219 *value = static_cast<SecAggServerOutcome>(int_value);
220 }
221 return success;
222 }
ClientStatus_IsValid(int value)223 bool ClientStatus_IsValid(int value) {
224 switch (value) {
225 case 0:
226 case 1:
227 case 2:
228 case 3:
229 case 4:
230 case 5:
231 case 6:
232 case 7:
233 case 8:
234 case 9:
235 return true;
236 default:
237 return false;
238 }
239 }
240
241 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ClientStatus_strings[10] = {};
242
243 static const char ClientStatus_names[] =
244 "ADVERTISE_KEYS_RECEIVED"
245 "DEAD_AFTER_ADVERTISE_KEYS_RECEIVED"
246 "DEAD_AFTER_MASKED_INPUT_RESPONSE_RECEIVED"
247 "DEAD_AFTER_SHARE_KEYS_RECEIVED"
248 "DEAD_AFTER_UNMASKING_RESPONSE_RECEIVED"
249 "DEAD_BEFORE_SENDING_ANYTHING"
250 "MASKED_INPUT_RESPONSE_RECEIVED"
251 "READY_TO_START"
252 "SHARE_KEYS_RECEIVED"
253 "UNMASKING_RESPONSE_RECEIVED";
254
255 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ClientStatus_entries[] = {
256 { {ClientStatus_names + 0, 23}, 2 },
257 { {ClientStatus_names + 23, 34}, 3 },
258 { {ClientStatus_names + 57, 41}, 7 },
259 { {ClientStatus_names + 98, 30}, 5 },
260 { {ClientStatus_names + 128, 38}, 9 },
261 { {ClientStatus_names + 166, 28}, 1 },
262 { {ClientStatus_names + 194, 30}, 6 },
263 { {ClientStatus_names + 224, 14}, 0 },
264 { {ClientStatus_names + 238, 19}, 4 },
265 { {ClientStatus_names + 257, 27}, 8 },
266 };
267
268 static const int ClientStatus_entries_by_number[] = {
269 7, // 0 -> READY_TO_START
270 5, // 1 -> DEAD_BEFORE_SENDING_ANYTHING
271 0, // 2 -> ADVERTISE_KEYS_RECEIVED
272 1, // 3 -> DEAD_AFTER_ADVERTISE_KEYS_RECEIVED
273 8, // 4 -> SHARE_KEYS_RECEIVED
274 3, // 5 -> DEAD_AFTER_SHARE_KEYS_RECEIVED
275 6, // 6 -> MASKED_INPUT_RESPONSE_RECEIVED
276 2, // 7 -> DEAD_AFTER_MASKED_INPUT_RESPONSE_RECEIVED
277 9, // 8 -> UNMASKING_RESPONSE_RECEIVED
278 4, // 9 -> DEAD_AFTER_UNMASKING_RESPONSE_RECEIVED
279 };
280
ClientStatus_Name(ClientStatus value)281 const std::string& ClientStatus_Name(
282 ClientStatus value) {
283 static const bool dummy =
284 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
285 ClientStatus_entries,
286 ClientStatus_entries_by_number,
287 10, ClientStatus_strings);
288 (void) dummy;
289 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
290 ClientStatus_entries,
291 ClientStatus_entries_by_number,
292 10, value);
293 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
294 ClientStatus_strings[idx].get();
295 }
ClientStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,ClientStatus * value)296 bool ClientStatus_Parse(
297 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientStatus* value) {
298 int int_value;
299 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
300 ClientStatus_entries, 10, name, &int_value);
301 if (success) {
302 *value = static_cast<ClientStatus>(int_value);
303 }
304 return success;
305 }
ClientDropReason_IsValid(int value)306 bool ClientDropReason_IsValid(int value) {
307 switch (value) {
308 case 0:
309 case 1:
310 case 2:
311 case 3:
312 case 4:
313 case 5:
314 case 6:
315 case 7:
316 case 8:
317 case 9:
318 case 10:
319 case 11:
320 case 12:
321 case 13:
322 case 14:
323 case 15:
324 case 16:
325 case 17:
326 case 18:
327 case 19:
328 case 20:
329 case 21:
330 return true;
331 default:
332 return false;
333 }
334 }
335
336 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ClientDropReason_strings[22] = {};
337
338 static const char ClientDropReason_names[] =
339 "ADVERTISE_KEYS_UNEXPECTED"
340 "CONNECTION_CLOSED"
341 "EARLY_SUCCESS"
342 "EMPTY_PUBLIC_KEY"
343 "EXTRA_KEY_SHARE"
344 "INVALID_MASKED_INPUT"
345 "INVALID_PUBLIC_KEY"
346 "INVALID_SHARE_KEYS_RESPONSE"
347 "INVALID_UNMASKING_RESPONSE"
348 "MASKED_INPUT_UNEXPECTED"
349 "MISSING_KEY_SHARE"
350 "NO_ADVERTISE_KEYS"
351 "NO_MASKED_INPUT"
352 "NO_SHARE_KEYS"
353 "NO_UNMASKING_RESPONSE"
354 "SENT_ABORT_MESSAGE"
355 "SERVER_PROTOCOL_ABORT_CLIENT"
356 "SHARE_KEYS_UNEXPECTED"
357 "UNEXPECTED_MESSAGE_TYPE"
358 "UNKNOWN_MESSAGE_TYPE"
359 "UNMASKING_RESPONSE_UNEXPECTED"
360 "WRONG_NUMBER_OF_KEY_SHARES";
361
362 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ClientDropReason_entries[] = {
363 { {ClientDropReason_names + 0, 25}, 3 },
364 { {ClientDropReason_names + 25, 17}, 20 },
365 { {ClientDropReason_names + 42, 13}, 19 },
366 { {ClientDropReason_names + 55, 16}, 4 },
367 { {ClientDropReason_names + 71, 15}, 9 },
368 { {ClientDropReason_names + 86, 20}, 12 },
369 { {ClientDropReason_names + 106, 18}, 17 },
370 { {ClientDropReason_names + 124, 27}, 21 },
371 { {ClientDropReason_names + 151, 26}, 15 },
372 { {ClientDropReason_names + 177, 23}, 11 },
373 { {ClientDropReason_names + 200, 17}, 8 },
374 { {ClientDropReason_names + 217, 17}, 5 },
375 { {ClientDropReason_names + 234, 15}, 13 },
376 { {ClientDropReason_names + 249, 13}, 10 },
377 { {ClientDropReason_names + 262, 21}, 16 },
378 { {ClientDropReason_names + 283, 18}, 0 },
379 { {ClientDropReason_names + 301, 28}, 18 },
380 { {ClientDropReason_names + 329, 21}, 6 },
381 { {ClientDropReason_names + 350, 23}, 1 },
382 { {ClientDropReason_names + 373, 20}, 2 },
383 { {ClientDropReason_names + 393, 29}, 14 },
384 { {ClientDropReason_names + 422, 26}, 7 },
385 };
386
387 static const int ClientDropReason_entries_by_number[] = {
388 15, // 0 -> SENT_ABORT_MESSAGE
389 18, // 1 -> UNEXPECTED_MESSAGE_TYPE
390 19, // 2 -> UNKNOWN_MESSAGE_TYPE
391 0, // 3 -> ADVERTISE_KEYS_UNEXPECTED
392 3, // 4 -> EMPTY_PUBLIC_KEY
393 11, // 5 -> NO_ADVERTISE_KEYS
394 17, // 6 -> SHARE_KEYS_UNEXPECTED
395 21, // 7 -> WRONG_NUMBER_OF_KEY_SHARES
396 10, // 8 -> MISSING_KEY_SHARE
397 4, // 9 -> EXTRA_KEY_SHARE
398 13, // 10 -> NO_SHARE_KEYS
399 9, // 11 -> MASKED_INPUT_UNEXPECTED
400 5, // 12 -> INVALID_MASKED_INPUT
401 12, // 13 -> NO_MASKED_INPUT
402 20, // 14 -> UNMASKING_RESPONSE_UNEXPECTED
403 8, // 15 -> INVALID_UNMASKING_RESPONSE
404 14, // 16 -> NO_UNMASKING_RESPONSE
405 6, // 17 -> INVALID_PUBLIC_KEY
406 16, // 18 -> SERVER_PROTOCOL_ABORT_CLIENT
407 2, // 19 -> EARLY_SUCCESS
408 1, // 20 -> CONNECTION_CLOSED
409 7, // 21 -> INVALID_SHARE_KEYS_RESPONSE
410 };
411
ClientDropReason_Name(ClientDropReason value)412 const std::string& ClientDropReason_Name(
413 ClientDropReason value) {
414 static const bool dummy =
415 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
416 ClientDropReason_entries,
417 ClientDropReason_entries_by_number,
418 22, ClientDropReason_strings);
419 (void) dummy;
420 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
421 ClientDropReason_entries,
422 ClientDropReason_entries_by_number,
423 22, value);
424 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
425 ClientDropReason_strings[idx].get();
426 }
ClientDropReason_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,ClientDropReason * value)427 bool ClientDropReason_Parse(
428 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientDropReason* value) {
429 int int_value;
430 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
431 ClientDropReason_entries, 22, name, &int_value);
432 if (success) {
433 *value = static_cast<ClientDropReason>(int_value);
434 }
435 return success;
436 }
ClientAbortReason_IsValid(int value)437 bool ClientAbortReason_IsValid(int value) {
438 switch (value) {
439 case 0:
440 case 1:
441 case 2:
442 case 3:
443 return true;
444 default:
445 return false;
446 }
447 }
448
449 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ClientAbortReason_strings[4] = {};
450
451 static const char ClientAbortReason_names[] =
452 "CONNECTION_DROPPED"
453 "INVALID_MESSAGE"
454 "NOT_CHECKED_IN"
455 "OBSOLETE_VERSION";
456
457 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ClientAbortReason_entries[] = {
458 { {ClientAbortReason_names + 0, 18}, 2 },
459 { {ClientAbortReason_names + 18, 15}, 0 },
460 { {ClientAbortReason_names + 33, 14}, 1 },
461 { {ClientAbortReason_names + 47, 16}, 3 },
462 };
463
464 static const int ClientAbortReason_entries_by_number[] = {
465 1, // 0 -> INVALID_MESSAGE
466 2, // 1 -> NOT_CHECKED_IN
467 0, // 2 -> CONNECTION_DROPPED
468 3, // 3 -> OBSOLETE_VERSION
469 };
470
ClientAbortReason_Name(ClientAbortReason value)471 const std::string& ClientAbortReason_Name(
472 ClientAbortReason value) {
473 static const bool dummy =
474 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
475 ClientAbortReason_entries,
476 ClientAbortReason_entries_by_number,
477 4, ClientAbortReason_strings);
478 (void) dummy;
479 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
480 ClientAbortReason_entries,
481 ClientAbortReason_entries_by_number,
482 4, value);
483 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
484 ClientAbortReason_strings[idx].get();
485 }
ClientAbortReason_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,ClientAbortReason * value)486 bool ClientAbortReason_Parse(
487 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ClientAbortReason* value) {
488 int int_value;
489 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
490 ClientAbortReason_entries, 4, name, &int_value);
491 if (success) {
492 *value = static_cast<ClientAbortReason>(int_value);
493 }
494 return success;
495 }
AdversaryClass_IsValid(int value)496 bool AdversaryClass_IsValid(int value) {
497 switch (value) {
498 case 0:
499 case 1:
500 case 2:
501 return true;
502 default:
503 return false;
504 }
505 }
506
507 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> AdversaryClass_strings[3] = {};
508
509 static const char AdversaryClass_names[] =
510 "CURIOUS_SERVER"
511 "NONE"
512 "SEMI_MALICIOUS_SERVER";
513
514 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AdversaryClass_entries[] = {
515 { {AdversaryClass_names + 0, 14}, 1 },
516 { {AdversaryClass_names + 14, 4}, 0 },
517 { {AdversaryClass_names + 18, 21}, 2 },
518 };
519
520 static const int AdversaryClass_entries_by_number[] = {
521 1, // 0 -> NONE
522 0, // 1 -> CURIOUS_SERVER
523 2, // 2 -> SEMI_MALICIOUS_SERVER
524 };
525
AdversaryClass_Name(AdversaryClass value)526 const std::string& AdversaryClass_Name(
527 AdversaryClass value) {
528 static const bool dummy =
529 ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
530 AdversaryClass_entries,
531 AdversaryClass_entries_by_number,
532 3, AdversaryClass_strings);
533 (void) dummy;
534 int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
535 AdversaryClass_entries,
536 AdversaryClass_entries_by_number,
537 3, value);
538 return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
539 AdversaryClass_strings[idx].get();
540 }
AdversaryClass_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,AdversaryClass * value)541 bool AdversaryClass_Parse(
542 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AdversaryClass* value) {
543 int int_value;
544 bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
545 AdversaryClass_entries, 3, name, &int_value);
546 if (success) {
547 *value = static_cast<AdversaryClass>(int_value);
548 }
549 return success;
550 }
551
552 // @@protoc_insertion_point(namespace_scope)
553 } // namespace secagg
554 } // namespace fcp
555 PROTOBUF_NAMESPACE_OPEN
556 PROTOBUF_NAMESPACE_CLOSE
557
558 // @@protoc_insertion_point(global_scope)
559 #include <google/protobuf/port_undef.inc>
560