Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sudo-project
GitHub Repository: sudo-project/sudo
Path: blob/main/src/intercept.pb-c.c
1532 views
1
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
2
/* Generated from: intercept.proto */
3
4
/* Do not generate deprecated warnings for self */
5
#ifndef PROTOBUF_C__NO_DEPRECATED
6
#define PROTOBUF_C__NO_DEPRECATED
7
#endif
8
9
#include <intercept.pb-c.h>
10
void intercept_request__init
11
(InterceptRequest *message)
12
{
13
static const InterceptRequest init_value = INTERCEPT_REQUEST__INIT;
14
*message = init_value;
15
}
16
size_t intercept_request__get_packed_size
17
(const InterceptRequest *message)
18
{
19
assert(message->base.descriptor == &intercept_request__descriptor);
20
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
21
}
22
size_t intercept_request__pack
23
(const InterceptRequest *message,
24
uint8_t *out)
25
{
26
assert(message->base.descriptor == &intercept_request__descriptor);
27
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
28
}
29
size_t intercept_request__pack_to_buffer
30
(const InterceptRequest *message,
31
ProtobufCBuffer *buffer)
32
{
33
assert(message->base.descriptor == &intercept_request__descriptor);
34
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
35
}
36
InterceptRequest *
37
intercept_request__unpack
38
(ProtobufCAllocator *allocator,
39
size_t len,
40
const uint8_t *data)
41
{
42
return (InterceptRequest *)
43
protobuf_c_message_unpack (&intercept_request__descriptor,
44
allocator, len, data);
45
}
46
void intercept_request__free_unpacked
47
(InterceptRequest *message,
48
ProtobufCAllocator *allocator)
49
{
50
if(!message)
51
return;
52
assert(message->base.descriptor == &intercept_request__descriptor);
53
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
54
}
55
void intercept_hello__init
56
(InterceptHello *message)
57
{
58
static const InterceptHello init_value = INTERCEPT_HELLO__INIT;
59
*message = init_value;
60
}
61
size_t intercept_hello__get_packed_size
62
(const InterceptHello *message)
63
{
64
assert(message->base.descriptor == &intercept_hello__descriptor);
65
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
66
}
67
size_t intercept_hello__pack
68
(const InterceptHello *message,
69
uint8_t *out)
70
{
71
assert(message->base.descriptor == &intercept_hello__descriptor);
72
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
73
}
74
size_t intercept_hello__pack_to_buffer
75
(const InterceptHello *message,
76
ProtobufCBuffer *buffer)
77
{
78
assert(message->base.descriptor == &intercept_hello__descriptor);
79
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
80
}
81
InterceptHello *
82
intercept_hello__unpack
83
(ProtobufCAllocator *allocator,
84
size_t len,
85
const uint8_t *data)
86
{
87
return (InterceptHello *)
88
protobuf_c_message_unpack (&intercept_hello__descriptor,
89
allocator, len, data);
90
}
91
void intercept_hello__free_unpacked
92
(InterceptHello *message,
93
ProtobufCAllocator *allocator)
94
{
95
if(!message)
96
return;
97
assert(message->base.descriptor == &intercept_hello__descriptor);
98
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
99
}
100
void hello_response__init
101
(HelloResponse *message)
102
{
103
static const HelloResponse init_value = HELLO_RESPONSE__INIT;
104
*message = init_value;
105
}
106
size_t hello_response__get_packed_size
107
(const HelloResponse *message)
108
{
109
assert(message->base.descriptor == &hello_response__descriptor);
110
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
111
}
112
size_t hello_response__pack
113
(const HelloResponse *message,
114
uint8_t *out)
115
{
116
assert(message->base.descriptor == &hello_response__descriptor);
117
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
118
}
119
size_t hello_response__pack_to_buffer
120
(const HelloResponse *message,
121
ProtobufCBuffer *buffer)
122
{
123
assert(message->base.descriptor == &hello_response__descriptor);
124
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
125
}
126
HelloResponse *
127
hello_response__unpack
128
(ProtobufCAllocator *allocator,
129
size_t len,
130
const uint8_t *data)
131
{
132
return (HelloResponse *)
133
protobuf_c_message_unpack (&hello_response__descriptor,
134
allocator, len, data);
135
}
136
void hello_response__free_unpacked
137
(HelloResponse *message,
138
ProtobufCAllocator *allocator)
139
{
140
if(!message)
141
return;
142
assert(message->base.descriptor == &hello_response__descriptor);
143
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
144
}
145
void policy_check_request__init
146
(PolicyCheckRequest *message)
147
{
148
static const PolicyCheckRequest init_value = POLICY_CHECK_REQUEST__INIT;
149
*message = init_value;
150
}
151
size_t policy_check_request__get_packed_size
152
(const PolicyCheckRequest *message)
153
{
154
assert(message->base.descriptor == &policy_check_request__descriptor);
155
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
156
}
157
size_t policy_check_request__pack
158
(const PolicyCheckRequest *message,
159
uint8_t *out)
160
{
161
assert(message->base.descriptor == &policy_check_request__descriptor);
162
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
163
}
164
size_t policy_check_request__pack_to_buffer
165
(const PolicyCheckRequest *message,
166
ProtobufCBuffer *buffer)
167
{
168
assert(message->base.descriptor == &policy_check_request__descriptor);
169
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
170
}
171
PolicyCheckRequest *
172
policy_check_request__unpack
173
(ProtobufCAllocator *allocator,
174
size_t len,
175
const uint8_t *data)
176
{
177
return (PolicyCheckRequest *)
178
protobuf_c_message_unpack (&policy_check_request__descriptor,
179
allocator, len, data);
180
}
181
void policy_check_request__free_unpacked
182
(PolicyCheckRequest *message,
183
ProtobufCAllocator *allocator)
184
{
185
if(!message)
186
return;
187
assert(message->base.descriptor == &policy_check_request__descriptor);
188
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
189
}
190
void policy_accept_message__init
191
(PolicyAcceptMessage *message)
192
{
193
static const PolicyAcceptMessage init_value = POLICY_ACCEPT_MESSAGE__INIT;
194
*message = init_value;
195
}
196
size_t policy_accept_message__get_packed_size
197
(const PolicyAcceptMessage *message)
198
{
199
assert(message->base.descriptor == &policy_accept_message__descriptor);
200
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
201
}
202
size_t policy_accept_message__pack
203
(const PolicyAcceptMessage *message,
204
uint8_t *out)
205
{
206
assert(message->base.descriptor == &policy_accept_message__descriptor);
207
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
208
}
209
size_t policy_accept_message__pack_to_buffer
210
(const PolicyAcceptMessage *message,
211
ProtobufCBuffer *buffer)
212
{
213
assert(message->base.descriptor == &policy_accept_message__descriptor);
214
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
215
}
216
PolicyAcceptMessage *
217
policy_accept_message__unpack
218
(ProtobufCAllocator *allocator,
219
size_t len,
220
const uint8_t *data)
221
{
222
return (PolicyAcceptMessage *)
223
protobuf_c_message_unpack (&policy_accept_message__descriptor,
224
allocator, len, data);
225
}
226
void policy_accept_message__free_unpacked
227
(PolicyAcceptMessage *message,
228
ProtobufCAllocator *allocator)
229
{
230
if(!message)
231
return;
232
assert(message->base.descriptor == &policy_accept_message__descriptor);
233
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
234
}
235
void policy_reject_message__init
236
(PolicyRejectMessage *message)
237
{
238
static const PolicyRejectMessage init_value = POLICY_REJECT_MESSAGE__INIT;
239
*message = init_value;
240
}
241
size_t policy_reject_message__get_packed_size
242
(const PolicyRejectMessage *message)
243
{
244
assert(message->base.descriptor == &policy_reject_message__descriptor);
245
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
246
}
247
size_t policy_reject_message__pack
248
(const PolicyRejectMessage *message,
249
uint8_t *out)
250
{
251
assert(message->base.descriptor == &policy_reject_message__descriptor);
252
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
253
}
254
size_t policy_reject_message__pack_to_buffer
255
(const PolicyRejectMessage *message,
256
ProtobufCBuffer *buffer)
257
{
258
assert(message->base.descriptor == &policy_reject_message__descriptor);
259
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
260
}
261
PolicyRejectMessage *
262
policy_reject_message__unpack
263
(ProtobufCAllocator *allocator,
264
size_t len,
265
const uint8_t *data)
266
{
267
return (PolicyRejectMessage *)
268
protobuf_c_message_unpack (&policy_reject_message__descriptor,
269
allocator, len, data);
270
}
271
void policy_reject_message__free_unpacked
272
(PolicyRejectMessage *message,
273
ProtobufCAllocator *allocator)
274
{
275
if(!message)
276
return;
277
assert(message->base.descriptor == &policy_reject_message__descriptor);
278
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
279
}
280
void policy_error_message__init
281
(PolicyErrorMessage *message)
282
{
283
static const PolicyErrorMessage init_value = POLICY_ERROR_MESSAGE__INIT;
284
*message = init_value;
285
}
286
size_t policy_error_message__get_packed_size
287
(const PolicyErrorMessage *message)
288
{
289
assert(message->base.descriptor == &policy_error_message__descriptor);
290
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
291
}
292
size_t policy_error_message__pack
293
(const PolicyErrorMessage *message,
294
uint8_t *out)
295
{
296
assert(message->base.descriptor == &policy_error_message__descriptor);
297
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
298
}
299
size_t policy_error_message__pack_to_buffer
300
(const PolicyErrorMessage *message,
301
ProtobufCBuffer *buffer)
302
{
303
assert(message->base.descriptor == &policy_error_message__descriptor);
304
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
305
}
306
PolicyErrorMessage *
307
policy_error_message__unpack
308
(ProtobufCAllocator *allocator,
309
size_t len,
310
const uint8_t *data)
311
{
312
return (PolicyErrorMessage *)
313
protobuf_c_message_unpack (&policy_error_message__descriptor,
314
allocator, len, data);
315
}
316
void policy_error_message__free_unpacked
317
(PolicyErrorMessage *message,
318
ProtobufCAllocator *allocator)
319
{
320
if(!message)
321
return;
322
assert(message->base.descriptor == &policy_error_message__descriptor);
323
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
324
}
325
void intercept_response__init
326
(InterceptResponse *message)
327
{
328
static const InterceptResponse init_value = INTERCEPT_RESPONSE__INIT;
329
*message = init_value;
330
}
331
size_t intercept_response__get_packed_size
332
(const InterceptResponse *message)
333
{
334
assert(message->base.descriptor == &intercept_response__descriptor);
335
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
336
}
337
size_t intercept_response__pack
338
(const InterceptResponse *message,
339
uint8_t *out)
340
{
341
assert(message->base.descriptor == &intercept_response__descriptor);
342
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
343
}
344
size_t intercept_response__pack_to_buffer
345
(const InterceptResponse *message,
346
ProtobufCBuffer *buffer)
347
{
348
assert(message->base.descriptor == &intercept_response__descriptor);
349
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
350
}
351
InterceptResponse *
352
intercept_response__unpack
353
(ProtobufCAllocator *allocator,
354
size_t len,
355
const uint8_t *data)
356
{
357
return (InterceptResponse *)
358
protobuf_c_message_unpack (&intercept_response__descriptor,
359
allocator, len, data);
360
}
361
void intercept_response__free_unpacked
362
(InterceptResponse *message,
363
ProtobufCAllocator *allocator)
364
{
365
if(!message)
366
return;
367
assert(message->base.descriptor == &intercept_response__descriptor);
368
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
369
}
370
static const ProtobufCFieldDescriptor intercept_request__field_descriptors[2] =
371
{
372
{
373
"policy_check_req",
374
1,
375
PROTOBUF_C_LABEL_NONE,
376
PROTOBUF_C_TYPE_MESSAGE,
377
offsetof(InterceptRequest, type_case),
378
offsetof(InterceptRequest, u.policy_check_req),
379
&policy_check_request__descriptor,
380
NULL,
381
PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
382
0,NULL,NULL /* reserved1,reserved2, etc */
383
},
384
{
385
"hello",
386
2,
387
PROTOBUF_C_LABEL_NONE,
388
PROTOBUF_C_TYPE_MESSAGE,
389
offsetof(InterceptRequest, type_case),
390
offsetof(InterceptRequest, u.hello),
391
&intercept_hello__descriptor,
392
NULL,
393
PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
394
0,NULL,NULL /* reserved1,reserved2, etc */
395
},
396
};
397
static const unsigned intercept_request__field_indices_by_name[] = {
398
1, /* field[1] = hello */
399
0, /* field[0] = policy_check_req */
400
};
401
static const ProtobufCIntRange intercept_request__number_ranges[1 + 1] =
402
{
403
{ 1, 0 },
404
{ 0, 2 }
405
};
406
const ProtobufCMessageDescriptor intercept_request__descriptor =
407
{
408
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
409
"InterceptRequest",
410
"InterceptRequest",
411
"InterceptRequest",
412
"",
413
sizeof(InterceptRequest),
414
2,
415
intercept_request__field_descriptors,
416
intercept_request__field_indices_by_name,
417
1, intercept_request__number_ranges,
418
(ProtobufCMessageInit) intercept_request__init,
419
NULL,NULL,NULL /* reserved[123] */
420
};
421
static const ProtobufCFieldDescriptor intercept_hello__field_descriptors[1] =
422
{
423
{
424
"pid",
425
1,
426
PROTOBUF_C_LABEL_NONE,
427
PROTOBUF_C_TYPE_INT32,
428
0, /* quantifier_offset */
429
offsetof(InterceptHello, pid),
430
NULL,
431
NULL,
432
0, /* flags */
433
0,NULL,NULL /* reserved1,reserved2, etc */
434
},
435
};
436
static const unsigned intercept_hello__field_indices_by_name[] = {
437
0, /* field[0] = pid */
438
};
439
static const ProtobufCIntRange intercept_hello__number_ranges[1 + 1] =
440
{
441
{ 1, 0 },
442
{ 0, 1 }
443
};
444
const ProtobufCMessageDescriptor intercept_hello__descriptor =
445
{
446
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
447
"InterceptHello",
448
"InterceptHello",
449
"InterceptHello",
450
"",
451
sizeof(InterceptHello),
452
1,
453
intercept_hello__field_descriptors,
454
intercept_hello__field_indices_by_name,
455
1, intercept_hello__number_ranges,
456
(ProtobufCMessageInit) intercept_hello__init,
457
NULL,NULL,NULL /* reserved[123] */
458
};
459
static const ProtobufCFieldDescriptor hello_response__field_descriptors[4] =
460
{
461
{
462
"token_lo",
463
1,
464
PROTOBUF_C_LABEL_NONE,
465
PROTOBUF_C_TYPE_FIXED64,
466
0, /* quantifier_offset */
467
offsetof(HelloResponse, token_lo),
468
NULL,
469
NULL,
470
0, /* flags */
471
0,NULL,NULL /* reserved1,reserved2, etc */
472
},
473
{
474
"token_hi",
475
2,
476
PROTOBUF_C_LABEL_NONE,
477
PROTOBUF_C_TYPE_FIXED64,
478
0, /* quantifier_offset */
479
offsetof(HelloResponse, token_hi),
480
NULL,
481
NULL,
482
0, /* flags */
483
0,NULL,NULL /* reserved1,reserved2, etc */
484
},
485
{
486
"portno",
487
3,
488
PROTOBUF_C_LABEL_NONE,
489
PROTOBUF_C_TYPE_INT32,
490
0, /* quantifier_offset */
491
offsetof(HelloResponse, portno),
492
NULL,
493
NULL,
494
0, /* flags */
495
0,NULL,NULL /* reserved1,reserved2, etc */
496
},
497
{
498
"log_only",
499
4,
500
PROTOBUF_C_LABEL_NONE,
501
PROTOBUF_C_TYPE_BOOL,
502
0, /* quantifier_offset */
503
offsetof(HelloResponse, log_only),
504
NULL,
505
NULL,
506
0, /* flags */
507
0,NULL,NULL /* reserved1,reserved2, etc */
508
},
509
};
510
static const unsigned hello_response__field_indices_by_name[] = {
511
3, /* field[3] = log_only */
512
2, /* field[2] = portno */
513
1, /* field[1] = token_hi */
514
0, /* field[0] = token_lo */
515
};
516
static const ProtobufCIntRange hello_response__number_ranges[1 + 1] =
517
{
518
{ 1, 0 },
519
{ 0, 4 }
520
};
521
const ProtobufCMessageDescriptor hello_response__descriptor =
522
{
523
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
524
"HelloResponse",
525
"HelloResponse",
526
"HelloResponse",
527
"",
528
sizeof(HelloResponse),
529
4,
530
hello_response__field_descriptors,
531
hello_response__field_indices_by_name,
532
1, hello_response__number_ranges,
533
(ProtobufCMessageInit) hello_response__init,
534
NULL,NULL,NULL /* reserved[123] */
535
};
536
static const ProtobufCFieldDescriptor policy_check_request__field_descriptors[5] =
537
{
538
{
539
"command",
540
1,
541
PROTOBUF_C_LABEL_NONE,
542
PROTOBUF_C_TYPE_STRING,
543
0, /* quantifier_offset */
544
offsetof(PolicyCheckRequest, command),
545
NULL,
546
&protobuf_c_empty_string,
547
0, /* flags */
548
0,NULL,NULL /* reserved1,reserved2, etc */
549
},
550
{
551
"cwd",
552
2,
553
PROTOBUF_C_LABEL_NONE,
554
PROTOBUF_C_TYPE_STRING,
555
0, /* quantifier_offset */
556
offsetof(PolicyCheckRequest, cwd),
557
NULL,
558
&protobuf_c_empty_string,
559
0, /* flags */
560
0,NULL,NULL /* reserved1,reserved2, etc */
561
},
562
{
563
"argv",
564
3,
565
PROTOBUF_C_LABEL_REPEATED,
566
PROTOBUF_C_TYPE_STRING,
567
offsetof(PolicyCheckRequest, n_argv),
568
offsetof(PolicyCheckRequest, argv),
569
NULL,
570
&protobuf_c_empty_string,
571
0, /* flags */
572
0,NULL,NULL /* reserved1,reserved2, etc */
573
},
574
{
575
"envp",
576
4,
577
PROTOBUF_C_LABEL_REPEATED,
578
PROTOBUF_C_TYPE_STRING,
579
offsetof(PolicyCheckRequest, n_envp),
580
offsetof(PolicyCheckRequest, envp),
581
NULL,
582
&protobuf_c_empty_string,
583
0, /* flags */
584
0,NULL,NULL /* reserved1,reserved2, etc */
585
},
586
{
587
"intercept_fd",
588
5,
589
PROTOBUF_C_LABEL_NONE,
590
PROTOBUF_C_TYPE_INT32,
591
0, /* quantifier_offset */
592
offsetof(PolicyCheckRequest, intercept_fd),
593
NULL,
594
NULL,
595
0, /* flags */
596
0,NULL,NULL /* reserved1,reserved2, etc */
597
},
598
};
599
static const unsigned policy_check_request__field_indices_by_name[] = {
600
2, /* field[2] = argv */
601
0, /* field[0] = command */
602
1, /* field[1] = cwd */
603
3, /* field[3] = envp */
604
4, /* field[4] = intercept_fd */
605
};
606
static const ProtobufCIntRange policy_check_request__number_ranges[1 + 1] =
607
{
608
{ 1, 0 },
609
{ 0, 5 }
610
};
611
const ProtobufCMessageDescriptor policy_check_request__descriptor =
612
{
613
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
614
"PolicyCheckRequest",
615
"PolicyCheckRequest",
616
"PolicyCheckRequest",
617
"",
618
sizeof(PolicyCheckRequest),
619
5,
620
policy_check_request__field_descriptors,
621
policy_check_request__field_indices_by_name,
622
1, policy_check_request__number_ranges,
623
(ProtobufCMessageInit) policy_check_request__init,
624
NULL,NULL,NULL /* reserved[123] */
625
};
626
static const ProtobufCFieldDescriptor policy_accept_message__field_descriptors[3] =
627
{
628
{
629
"run_command",
630
1,
631
PROTOBUF_C_LABEL_NONE,
632
PROTOBUF_C_TYPE_STRING,
633
0, /* quantifier_offset */
634
offsetof(PolicyAcceptMessage, run_command),
635
NULL,
636
&protobuf_c_empty_string,
637
0, /* flags */
638
0,NULL,NULL /* reserved1,reserved2, etc */
639
},
640
{
641
"run_argv",
642
2,
643
PROTOBUF_C_LABEL_REPEATED,
644
PROTOBUF_C_TYPE_STRING,
645
offsetof(PolicyAcceptMessage, n_run_argv),
646
offsetof(PolicyAcceptMessage, run_argv),
647
NULL,
648
&protobuf_c_empty_string,
649
0, /* flags */
650
0,NULL,NULL /* reserved1,reserved2, etc */
651
},
652
{
653
"run_envp",
654
3,
655
PROTOBUF_C_LABEL_REPEATED,
656
PROTOBUF_C_TYPE_STRING,
657
offsetof(PolicyAcceptMessage, n_run_envp),
658
offsetof(PolicyAcceptMessage, run_envp),
659
NULL,
660
&protobuf_c_empty_string,
661
0, /* flags */
662
0,NULL,NULL /* reserved1,reserved2, etc */
663
},
664
};
665
static const unsigned policy_accept_message__field_indices_by_name[] = {
666
1, /* field[1] = run_argv */
667
0, /* field[0] = run_command */
668
2, /* field[2] = run_envp */
669
};
670
static const ProtobufCIntRange policy_accept_message__number_ranges[1 + 1] =
671
{
672
{ 1, 0 },
673
{ 0, 3 }
674
};
675
const ProtobufCMessageDescriptor policy_accept_message__descriptor =
676
{
677
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
678
"PolicyAcceptMessage",
679
"PolicyAcceptMessage",
680
"PolicyAcceptMessage",
681
"",
682
sizeof(PolicyAcceptMessage),
683
3,
684
policy_accept_message__field_descriptors,
685
policy_accept_message__field_indices_by_name,
686
1, policy_accept_message__number_ranges,
687
(ProtobufCMessageInit) policy_accept_message__init,
688
NULL,NULL,NULL /* reserved[123] */
689
};
690
static const ProtobufCFieldDescriptor policy_reject_message__field_descriptors[1] =
691
{
692
{
693
"reject_message",
694
1,
695
PROTOBUF_C_LABEL_NONE,
696
PROTOBUF_C_TYPE_STRING,
697
0, /* quantifier_offset */
698
offsetof(PolicyRejectMessage, reject_message),
699
NULL,
700
&protobuf_c_empty_string,
701
0, /* flags */
702
0,NULL,NULL /* reserved1,reserved2, etc */
703
},
704
};
705
static const unsigned policy_reject_message__field_indices_by_name[] = {
706
0, /* field[0] = reject_message */
707
};
708
static const ProtobufCIntRange policy_reject_message__number_ranges[1 + 1] =
709
{
710
{ 1, 0 },
711
{ 0, 1 }
712
};
713
const ProtobufCMessageDescriptor policy_reject_message__descriptor =
714
{
715
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
716
"PolicyRejectMessage",
717
"PolicyRejectMessage",
718
"PolicyRejectMessage",
719
"",
720
sizeof(PolicyRejectMessage),
721
1,
722
policy_reject_message__field_descriptors,
723
policy_reject_message__field_indices_by_name,
724
1, policy_reject_message__number_ranges,
725
(ProtobufCMessageInit) policy_reject_message__init,
726
NULL,NULL,NULL /* reserved[123] */
727
};
728
static const ProtobufCFieldDescriptor policy_error_message__field_descriptors[1] =
729
{
730
{
731
"error_message",
732
1,
733
PROTOBUF_C_LABEL_NONE,
734
PROTOBUF_C_TYPE_STRING,
735
0, /* quantifier_offset */
736
offsetof(PolicyErrorMessage, error_message),
737
NULL,
738
&protobuf_c_empty_string,
739
0, /* flags */
740
0,NULL,NULL /* reserved1,reserved2, etc */
741
},
742
};
743
static const unsigned policy_error_message__field_indices_by_name[] = {
744
0, /* field[0] = error_message */
745
};
746
static const ProtobufCIntRange policy_error_message__number_ranges[1 + 1] =
747
{
748
{ 1, 0 },
749
{ 0, 1 }
750
};
751
const ProtobufCMessageDescriptor policy_error_message__descriptor =
752
{
753
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
754
"PolicyErrorMessage",
755
"PolicyErrorMessage",
756
"PolicyErrorMessage",
757
"",
758
sizeof(PolicyErrorMessage),
759
1,
760
policy_error_message__field_descriptors,
761
policy_error_message__field_indices_by_name,
762
1, policy_error_message__number_ranges,
763
(ProtobufCMessageInit) policy_error_message__init,
764
NULL,NULL,NULL /* reserved[123] */
765
};
766
static const ProtobufCFieldDescriptor intercept_response__field_descriptors[4] =
767
{
768
{
769
"hello_resp",
770
1,
771
PROTOBUF_C_LABEL_NONE,
772
PROTOBUF_C_TYPE_MESSAGE,
773
offsetof(InterceptResponse, type_case),
774
offsetof(InterceptResponse, u.hello_resp),
775
&hello_response__descriptor,
776
NULL,
777
PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
778
0,NULL,NULL /* reserved1,reserved2, etc */
779
},
780
{
781
"accept_msg",
782
2,
783
PROTOBUF_C_LABEL_NONE,
784
PROTOBUF_C_TYPE_MESSAGE,
785
offsetof(InterceptResponse, type_case),
786
offsetof(InterceptResponse, u.accept_msg),
787
&policy_accept_message__descriptor,
788
NULL,
789
PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
790
0,NULL,NULL /* reserved1,reserved2, etc */
791
},
792
{
793
"reject_msg",
794
3,
795
PROTOBUF_C_LABEL_NONE,
796
PROTOBUF_C_TYPE_MESSAGE,
797
offsetof(InterceptResponse, type_case),
798
offsetof(InterceptResponse, u.reject_msg),
799
&policy_reject_message__descriptor,
800
NULL,
801
PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
802
0,NULL,NULL /* reserved1,reserved2, etc */
803
},
804
{
805
"error_msg",
806
4,
807
PROTOBUF_C_LABEL_NONE,
808
PROTOBUF_C_TYPE_MESSAGE,
809
offsetof(InterceptResponse, type_case),
810
offsetof(InterceptResponse, u.error_msg),
811
&policy_error_message__descriptor,
812
NULL,
813
PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
814
0,NULL,NULL /* reserved1,reserved2, etc */
815
},
816
};
817
static const unsigned intercept_response__field_indices_by_name[] = {
818
1, /* field[1] = accept_msg */
819
3, /* field[3] = error_msg */
820
0, /* field[0] = hello_resp */
821
2, /* field[2] = reject_msg */
822
};
823
static const ProtobufCIntRange intercept_response__number_ranges[1 + 1] =
824
{
825
{ 1, 0 },
826
{ 0, 4 }
827
};
828
const ProtobufCMessageDescriptor intercept_response__descriptor =
829
{
830
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
831
"InterceptResponse",
832
"InterceptResponse",
833
"InterceptResponse",
834
"",
835
sizeof(InterceptResponse),
836
4,
837
intercept_response__field_descriptors,
838
intercept_response__field_indices_by_name,
839
1, intercept_response__number_ranges,
840
(ProtobufCMessageInit) intercept_response__init,
841
NULL,NULL,NULL /* reserved[123] */
842
};
843
844