ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_media_download.pb-c.c
Go to the documentation of this file.
1
13
14/* Generated by the protocol buffer compiler. DO NOT EDIT! */
15/* Generated from: ra8_media_download.proto */
16
17/* Do not generate deprecated warnings for self */
18#ifndef PROTOBUF_C__NO_DEPRECATED
19#define PROTOBUF_C__NO_DEPRECATED
20#endif
21
24 (Ra8__Mdl__StartRequest *message)
25{
27 *message = init_value;
28}
30 (const Ra8__Mdl__StartRequest *message)
31{
32 assert(message->base.descriptor == &ra8__mdl__start_request__descriptor);
33 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
34}
36 (const Ra8__Mdl__StartRequest *message,
37 uint8_t *out)
38{
39 assert(message->base.descriptor == &ra8__mdl__start_request__descriptor);
40 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
41}
43 (const Ra8__Mdl__StartRequest *message,
44 ProtobufCBuffer *buffer)
45{
46 assert(message->base.descriptor == &ra8__mdl__start_request__descriptor);
47 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
48}
51 (ProtobufCAllocator *allocator,
52 size_t len,
53 const uint8_t *data)
54{
55 return (Ra8__Mdl__StartRequest *)
56 protobuf_c_message_unpack (&ra8__mdl__start_request__descriptor,
57 allocator, len, data);
58}
60 (Ra8__Mdl__StartRequest *message,
61 ProtobufCAllocator *allocator)
62{
63 if(!message)
64 return;
65 assert(message->base.descriptor == &ra8__mdl__start_request__descriptor);
66 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
67}
69 (Ra8__Mdl__Accepted *message)
70{
71 static const Ra8__Mdl__Accepted init_value = RA8__MDL__ACCEPTED__INIT;
72 *message = init_value;
73}
75 (const Ra8__Mdl__Accepted *message)
76{
77 assert(message->base.descriptor == &ra8__mdl__accepted__descriptor);
78 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
79}
81 (const Ra8__Mdl__Accepted *message,
82 uint8_t *out)
83{
84 assert(message->base.descriptor == &ra8__mdl__accepted__descriptor);
85 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
86}
88 (const Ra8__Mdl__Accepted *message,
89 ProtobufCBuffer *buffer)
90{
91 assert(message->base.descriptor == &ra8__mdl__accepted__descriptor);
92 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
93}
96 (ProtobufCAllocator *allocator,
97 size_t len,
98 const uint8_t *data)
99{
100 return (Ra8__Mdl__Accepted *)
101 protobuf_c_message_unpack (&ra8__mdl__accepted__descriptor,
102 allocator, len, data);
103}
105 (Ra8__Mdl__Accepted *message,
106 ProtobufCAllocator *allocator)
107{
108 if(!message)
109 return;
110 assert(message->base.descriptor == &ra8__mdl__accepted__descriptor);
111 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
112}
114 (Ra8__Mdl__NextRequest *message)
115{
116 static const Ra8__Mdl__NextRequest init_value = RA8__MDL__NEXT_REQUEST__INIT;
117 *message = init_value;
118}
120 (const Ra8__Mdl__NextRequest *message)
121{
122 assert(message->base.descriptor == &ra8__mdl__next_request__descriptor);
123 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
124}
126 (const Ra8__Mdl__NextRequest *message,
127 uint8_t *out)
128{
129 assert(message->base.descriptor == &ra8__mdl__next_request__descriptor);
130 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
131}
133 (const Ra8__Mdl__NextRequest *message,
134 ProtobufCBuffer *buffer)
135{
136 assert(message->base.descriptor == &ra8__mdl__next_request__descriptor);
137 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
138}
141 (ProtobufCAllocator *allocator,
142 size_t len,
143 const uint8_t *data)
144{
145 return (Ra8__Mdl__NextRequest *)
146 protobuf_c_message_unpack (&ra8__mdl__next_request__descriptor,
147 allocator, len, data);
148}
150 (Ra8__Mdl__NextRequest *message,
151 ProtobufCAllocator *allocator)
152{
153 if(!message)
154 return;
155 assert(message->base.descriptor == &ra8__mdl__next_request__descriptor);
156 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
157}
159 (Ra8__Mdl__Chunk *message)
160{
161 static const Ra8__Mdl__Chunk init_value = RA8__MDL__CHUNK__INIT;
162 *message = init_value;
163}
165 (const Ra8__Mdl__Chunk *message)
166{
167 assert(message->base.descriptor == &ra8__mdl__chunk__descriptor);
168 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
169}
171 (const Ra8__Mdl__Chunk *message,
172 uint8_t *out)
173{
174 assert(message->base.descriptor == &ra8__mdl__chunk__descriptor);
175 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
176}
178 (const Ra8__Mdl__Chunk *message,
179 ProtobufCBuffer *buffer)
180{
181 assert(message->base.descriptor == &ra8__mdl__chunk__descriptor);
182 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
183}
186 (ProtobufCAllocator *allocator,
187 size_t len,
188 const uint8_t *data)
189{
190 return (Ra8__Mdl__Chunk *)
191 protobuf_c_message_unpack (&ra8__mdl__chunk__descriptor,
192 allocator, len, data);
193}
195 (Ra8__Mdl__Chunk *message,
196 ProtobufCAllocator *allocator)
197{
198 if(!message)
199 return;
200 assert(message->base.descriptor == &ra8__mdl__chunk__descriptor);
201 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
202}
204 (Ra8__Mdl__CancelRequest *message)
205{
207 *message = init_value;
208}
210 (const Ra8__Mdl__CancelRequest *message)
211{
212 assert(message->base.descriptor == &ra8__mdl__cancel_request__descriptor);
213 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
214}
216 (const Ra8__Mdl__CancelRequest *message,
217 uint8_t *out)
218{
219 assert(message->base.descriptor == &ra8__mdl__cancel_request__descriptor);
220 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
221}
223 (const Ra8__Mdl__CancelRequest *message,
224 ProtobufCBuffer *buffer)
225{
226 assert(message->base.descriptor == &ra8__mdl__cancel_request__descriptor);
227 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
228}
231 (ProtobufCAllocator *allocator,
232 size_t len,
233 const uint8_t *data)
234{
235 return (Ra8__Mdl__CancelRequest *)
236 protobuf_c_message_unpack (&ra8__mdl__cancel_request__descriptor,
237 allocator, len, data);
238}
240 (Ra8__Mdl__CancelRequest *message,
241 ProtobufCAllocator *allocator)
242{
243 if(!message)
244 return;
245 assert(message->base.descriptor == &ra8__mdl__cancel_request__descriptor);
246 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
247}
249 (Ra8__Mdl__Cancelled *message)
250{
251 static const Ra8__Mdl__Cancelled init_value = RA8__MDL__CANCELLED__INIT;
252 *message = init_value;
253}
255 (const Ra8__Mdl__Cancelled *message)
256{
257 assert(message->base.descriptor == &ra8__mdl__cancelled__descriptor);
258 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
259}
261 (const Ra8__Mdl__Cancelled *message,
262 uint8_t *out)
263{
264 assert(message->base.descriptor == &ra8__mdl__cancelled__descriptor);
265 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
266}
268 (const Ra8__Mdl__Cancelled *message,
269 ProtobufCBuffer *buffer)
270{
271 assert(message->base.descriptor == &ra8__mdl__cancelled__descriptor);
272 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
273}
276 (ProtobufCAllocator *allocator,
277 size_t len,
278 const uint8_t *data)
279{
280 return (Ra8__Mdl__Cancelled *)
281 protobuf_c_message_unpack (&ra8__mdl__cancelled__descriptor,
282 allocator, len, data);
283}
285 (Ra8__Mdl__Cancelled *message,
286 ProtobufCAllocator *allocator)
287{
288 if(!message)
289 return;
290 assert(message->base.descriptor == &ra8__mdl__cancelled__descriptor);
291 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
292}
293static const ProtobufCFieldDescriptor ra8__mdl__start_request__field_descriptors[8] =
294{
295 {
296 "protocol_version",
297 1,
298 PROTOBUF_C_LABEL_NONE,
299 PROTOBUF_C_TYPE_UINT32,
300 0, /* quantifier_offset */
301 offsetof(Ra8__Mdl__StartRequest, protocol_version),
302 NULL,
303 NULL,
304 0, /* flags */
305 0,NULL,NULL /* reserved1,reserved2, etc */
306 },
307 {
308 "url",
309 2,
310 PROTOBUF_C_LABEL_NONE,
311 PROTOBUF_C_TYPE_STRING,
312 0, /* quantifier_offset */
313 offsetof(Ra8__Mdl__StartRequest, url),
314 NULL,
315 &protobuf_c_empty_string,
316 0, /* flags */
317 0,NULL,NULL /* reserved1,reserved2, etc */
318 },
319 {
320 "format",
321 3,
322 PROTOBUF_C_LABEL_NONE,
323 PROTOBUF_C_TYPE_ENUM,
324 0, /* quantifier_offset */
325 offsetof(Ra8__Mdl__StartRequest, format),
327 NULL,
328 0, /* flags */
329 0,NULL,NULL /* reserved1,reserved2, etc */
330 },
331 {
332 "user_agent",
333 4,
334 PROTOBUF_C_LABEL_NONE,
335 PROTOBUF_C_TYPE_STRING,
336 0, /* quantifier_offset */
337 offsetof(Ra8__Mdl__StartRequest, user_agent),
338 NULL,
339 &protobuf_c_empty_string,
340 0, /* flags */
341 0,NULL,NULL /* reserved1,reserved2, etc */
342 },
343 {
344 "referer",
345 5,
346 PROTOBUF_C_LABEL_NONE,
347 PROTOBUF_C_TYPE_STRING,
348 0, /* quantifier_offset */
349 offsetof(Ra8__Mdl__StartRequest, referer),
350 NULL,
351 &protobuf_c_empty_string,
352 0, /* flags */
353 0,NULL,NULL /* reserved1,reserved2, etc */
354 },
355 {
356 "if_none_match",
357 6,
358 PROTOBUF_C_LABEL_NONE,
359 PROTOBUF_C_TYPE_STRING,
360 0, /* quantifier_offset */
361 offsetof(Ra8__Mdl__StartRequest, if_none_match),
362 NULL,
363 &protobuf_c_empty_string,
364 0, /* flags */
365 0,NULL,NULL /* reserved1,reserved2, etc */
366 },
367 {
368 "if_modified_since",
369 7,
370 PROTOBUF_C_LABEL_NONE,
371 PROTOBUF_C_TYPE_STRING,
372 0, /* quantifier_offset */
373 offsetof(Ra8__Mdl__StartRequest, if_modified_since),
374 NULL,
375 &protobuf_c_empty_string,
376 0, /* flags */
377 0,NULL,NULL /* reserved1,reserved2, etc */
378 },
379 {
380 "timeout_ms",
381 8,
382 PROTOBUF_C_LABEL_NONE,
383 PROTOBUF_C_TYPE_UINT32,
384 0, /* quantifier_offset */
385 offsetof(Ra8__Mdl__StartRequest, timeout_ms),
386 NULL,
387 NULL,
388 0, /* flags */
389 0,NULL,NULL /* reserved1,reserved2, etc */
390 },
391};
393 2, /* field[2] = format */
394 6, /* field[6] = if_modified_since */
395 5, /* field[5] = if_none_match */
396 0, /* field[0] = protocol_version */
397 4, /* field[4] = referer */
398 7, /* field[7] = timeout_ms */
399 1, /* field[1] = url */
400 3, /* field[3] = user_agent */
401};
402static const ProtobufCIntRange ra8__mdl__start_request__number_ranges[1 + 1] =
403{
404 { 1, 0 },
405 { 0, 8 }
406};
407const ProtobufCMessageDescriptor ra8__mdl__start_request__descriptor =
408{
409 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
410 "ra8.mdl.StartRequest",
411 "StartRequest",
412 "Ra8__Mdl__StartRequest",
413 "ra8.mdl",
415 8,
419 (ProtobufCMessageInit) ra8__mdl__start_request__init,
420 NULL,NULL,NULL /* reserved[123] */
421};
422static const ProtobufCFieldDescriptor ra8__mdl__accepted__field_descriptors[4] =
423{
424 {
425 "protocol_version",
426 1,
427 PROTOBUF_C_LABEL_NONE,
428 PROTOBUF_C_TYPE_UINT32,
429 0, /* quantifier_offset */
430 offsetof(Ra8__Mdl__Accepted, protocol_version),
431 NULL,
432 NULL,
433 0, /* flags */
434 0,NULL,NULL /* reserved1,reserved2, etc */
435 },
436 {
437 "job_id",
438 2,
439 PROTOBUF_C_LABEL_NONE,
440 PROTOBUF_C_TYPE_UINT32,
441 0, /* quantifier_offset */
442 offsetof(Ra8__Mdl__Accepted, job_id),
443 NULL,
444 NULL,
445 0, /* flags */
446 0,NULL,NULL /* reserved1,reserved2, etc */
447 },
448 {
449 "max_chunk_bytes",
450 3,
451 PROTOBUF_C_LABEL_NONE,
452 PROTOBUF_C_TYPE_UINT32,
453 0, /* quantifier_offset */
454 offsetof(Ra8__Mdl__Accepted, max_chunk_bytes),
455 NULL,
456 NULL,
457 0, /* flags */
458 0,NULL,NULL /* reserved1,reserved2, etc */
459 },
460 {
461 "format",
462 4,
463 PROTOBUF_C_LABEL_NONE,
464 PROTOBUF_C_TYPE_ENUM,
465 0, /* quantifier_offset */
466 offsetof(Ra8__Mdl__Accepted, format),
468 NULL,
469 0, /* flags */
470 0,NULL,NULL /* reserved1,reserved2, etc */
471 },
472};
474 3, /* field[3] = format */
475 1, /* field[1] = job_id */
476 2, /* field[2] = max_chunk_bytes */
477 0, /* field[0] = protocol_version */
478};
479static const ProtobufCIntRange ra8__mdl__accepted__number_ranges[1 + 1] =
480{
481 { 1, 0 },
482 { 0, 4 }
483};
484const ProtobufCMessageDescriptor ra8__mdl__accepted__descriptor =
485{
486 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
487 "ra8.mdl.Accepted",
488 "Accepted",
489 "Ra8__Mdl__Accepted",
490 "ra8.mdl",
491 sizeof(Ra8__Mdl__Accepted),
492 4,
496 (ProtobufCMessageInit) ra8__mdl__accepted__init,
497 NULL,NULL,NULL /* reserved[123] */
498};
499static const ProtobufCFieldDescriptor ra8__mdl__next_request__field_descriptors[4] =
500{
501 {
502 "protocol_version",
503 1,
504 PROTOBUF_C_LABEL_NONE,
505 PROTOBUF_C_TYPE_UINT32,
506 0, /* quantifier_offset */
507 offsetof(Ra8__Mdl__NextRequest, protocol_version),
508 NULL,
509 NULL,
510 0, /* flags */
511 0,NULL,NULL /* reserved1,reserved2, etc */
512 },
513 {
514 "job_id",
515 2,
516 PROTOBUF_C_LABEL_NONE,
517 PROTOBUF_C_TYPE_UINT32,
518 0, /* quantifier_offset */
519 offsetof(Ra8__Mdl__NextRequest, job_id),
520 NULL,
521 NULL,
522 0, /* flags */
523 0,NULL,NULL /* reserved1,reserved2, etc */
524 },
525 {
526 "acknowledged_offset",
527 3,
528 PROTOBUF_C_LABEL_NONE,
529 PROTOBUF_C_TYPE_UINT64,
530 0, /* quantifier_offset */
531 offsetof(Ra8__Mdl__NextRequest, acknowledged_offset),
532 NULL,
533 NULL,
534 0, /* flags */
535 0,NULL,NULL /* reserved1,reserved2, etc */
536 },
537 {
538 "max_bytes",
539 4,
540 PROTOBUF_C_LABEL_NONE,
541 PROTOBUF_C_TYPE_UINT32,
542 0, /* quantifier_offset */
543 offsetof(Ra8__Mdl__NextRequest, max_bytes),
544 NULL,
545 NULL,
546 0, /* flags */
547 0,NULL,NULL /* reserved1,reserved2, etc */
548 },
549};
551 2, /* field[2] = acknowledged_offset */
552 1, /* field[1] = job_id */
553 3, /* field[3] = max_bytes */
554 0, /* field[0] = protocol_version */
555};
556static const ProtobufCIntRange ra8__mdl__next_request__number_ranges[1 + 1] =
557{
558 { 1, 0 },
559 { 0, 4 }
560};
561const ProtobufCMessageDescriptor ra8__mdl__next_request__descriptor =
562{
563 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
564 "ra8.mdl.NextRequest",
565 "NextRequest",
566 "Ra8__Mdl__NextRequest",
567 "ra8.mdl",
568 sizeof(Ra8__Mdl__NextRequest),
569 4,
573 (ProtobufCMessageInit) ra8__mdl__next_request__init,
574 NULL,NULL,NULL /* reserved[123] */
575};
576static const ProtobufCFieldDescriptor ra8__mdl__chunk__field_descriptors[14] =
577{
578 {
579 "protocol_version",
580 1,
581 PROTOBUF_C_LABEL_NONE,
582 PROTOBUF_C_TYPE_UINT32,
583 0, /* quantifier_offset */
584 offsetof(Ra8__Mdl__Chunk, protocol_version),
585 NULL,
586 NULL,
587 0, /* flags */
588 0,NULL,NULL /* reserved1,reserved2, etc */
589 },
590 {
591 "job_id",
592 2,
593 PROTOBUF_C_LABEL_NONE,
594 PROTOBUF_C_TYPE_UINT32,
595 0, /* quantifier_offset */
596 offsetof(Ra8__Mdl__Chunk, job_id),
597 NULL,
598 NULL,
599 0, /* flags */
600 0,NULL,NULL /* reserved1,reserved2, etc */
601 },
602 {
603 "sequence",
604 3,
605 PROTOBUF_C_LABEL_NONE,
606 PROTOBUF_C_TYPE_UINT32,
607 0, /* quantifier_offset */
608 offsetof(Ra8__Mdl__Chunk, sequence),
609 NULL,
610 NULL,
611 0, /* flags */
612 0,NULL,NULL /* reserved1,reserved2, etc */
613 },
614 {
615 "offset",
616 4,
617 PROTOBUF_C_LABEL_NONE,
618 PROTOBUF_C_TYPE_UINT64,
619 0, /* quantifier_offset */
620 offsetof(Ra8__Mdl__Chunk, offset),
621 NULL,
622 NULL,
623 0, /* flags */
624 0,NULL,NULL /* reserved1,reserved2, etc */
625 },
626 {
627 "data",
628 5,
629 PROTOBUF_C_LABEL_NONE,
630 PROTOBUF_C_TYPE_BYTES,
631 0, /* quantifier_offset */
632 offsetof(Ra8__Mdl__Chunk, data),
633 NULL,
634 NULL,
635 0, /* flags */
636 0,NULL,NULL /* reserved1,reserved2, etc */
637 },
638 {
639 "total_bytes",
640 6,
641 PROTOBUF_C_LABEL_NONE,
642 PROTOBUF_C_TYPE_UINT64,
643 0, /* quantifier_offset */
644 offsetof(Ra8__Mdl__Chunk, total_bytes),
645 NULL,
646 NULL,
647 0, /* flags */
648 0,NULL,NULL /* reserved1,reserved2, etc */
649 },
650 {
651 "state",
652 7,
653 PROTOBUF_C_LABEL_NONE,
654 PROTOBUF_C_TYPE_ENUM,
655 0, /* quantifier_offset */
656 offsetof(Ra8__Mdl__Chunk, state),
658 NULL,
659 0, /* flags */
660 0,NULL,NULL /* reserved1,reserved2, etc */
661 },
662 {
663 "status",
664 8,
665 PROTOBUF_C_LABEL_NONE,
666 PROTOBUF_C_TYPE_INT32,
667 0, /* quantifier_offset */
668 offsetof(Ra8__Mdl__Chunk, status),
669 NULL,
670 NULL,
671 0, /* flags */
672 0,NULL,NULL /* reserved1,reserved2, etc */
673 },
674 {
675 "sha256",
676 9,
677 PROTOBUF_C_LABEL_NONE,
678 PROTOBUF_C_TYPE_BYTES,
679 0, /* quantifier_offset */
680 offsetof(Ra8__Mdl__Chunk, sha256),
681 NULL,
682 NULL,
683 0, /* flags */
684 0,NULL,NULL /* reserved1,reserved2, etc */
685 },
686 {
687 "http_status",
688 10,
689 PROTOBUF_C_LABEL_NONE,
690 PROTOBUF_C_TYPE_INT32,
691 0, /* quantifier_offset */
692 offsetof(Ra8__Mdl__Chunk, http_status),
693 NULL,
694 NULL,
695 0, /* flags */
696 0,NULL,NULL /* reserved1,reserved2, etc */
697 },
698 {
699 "retry_after",
700 11,
701 PROTOBUF_C_LABEL_NONE,
702 PROTOBUF_C_TYPE_STRING,
703 0, /* quantifier_offset */
704 offsetof(Ra8__Mdl__Chunk, retry_after),
705 NULL,
706 &protobuf_c_empty_string,
707 0, /* flags */
708 0,NULL,NULL /* reserved1,reserved2, etc */
709 },
710 {
711 "etag",
712 12,
713 PROTOBUF_C_LABEL_NONE,
714 PROTOBUF_C_TYPE_STRING,
715 0, /* quantifier_offset */
716 offsetof(Ra8__Mdl__Chunk, etag),
717 NULL,
718 &protobuf_c_empty_string,
719 0, /* flags */
720 0,NULL,NULL /* reserved1,reserved2, etc */
721 },
722 {
723 "last_modified",
724 13,
725 PROTOBUF_C_LABEL_NONE,
726 PROTOBUF_C_TYPE_STRING,
727 0, /* quantifier_offset */
728 offsetof(Ra8__Mdl__Chunk, last_modified),
729 NULL,
730 &protobuf_c_empty_string,
731 0, /* flags */
732 0,NULL,NULL /* reserved1,reserved2, etc */
733 },
734 {
735 "content_type",
736 14,
737 PROTOBUF_C_LABEL_NONE,
738 PROTOBUF_C_TYPE_STRING,
739 0, /* quantifier_offset */
740 offsetof(Ra8__Mdl__Chunk, content_type),
741 NULL,
742 &protobuf_c_empty_string,
743 0, /* flags */
744 0,NULL,NULL /* reserved1,reserved2, etc */
745 },
746};
747static const unsigned ra8__mdl__chunk__field_indices_by_name[] = {
748 13, /* field[13] = content_type */
749 4, /* field[4] = data */
750 11, /* field[11] = etag */
751 9, /* field[9] = http_status */
752 1, /* field[1] = job_id */
753 12, /* field[12] = last_modified */
754 3, /* field[3] = offset */
755 0, /* field[0] = protocol_version */
756 10, /* field[10] = retry_after */
757 2, /* field[2] = sequence */
758 8, /* field[8] = sha256 */
759 6, /* field[6] = state */
760 7, /* field[7] = status */
761 5, /* field[5] = total_bytes */
762};
763static const ProtobufCIntRange ra8__mdl__chunk__number_ranges[1 + 1] =
764{
765 { 1, 0 },
766 { 0, 14 }
767};
768const ProtobufCMessageDescriptor ra8__mdl__chunk__descriptor =
769{
770 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
771 "ra8.mdl.Chunk",
772 "Chunk",
773 "Ra8__Mdl__Chunk",
774 "ra8.mdl",
775 sizeof(Ra8__Mdl__Chunk),
776 14,
780 (ProtobufCMessageInit) ra8__mdl__chunk__init,
781 NULL,NULL,NULL /* reserved[123] */
782};
783static const ProtobufCFieldDescriptor ra8__mdl__cancel_request__field_descriptors[2] =
784{
785 {
786 "protocol_version",
787 1,
788 PROTOBUF_C_LABEL_NONE,
789 PROTOBUF_C_TYPE_UINT32,
790 0, /* quantifier_offset */
791 offsetof(Ra8__Mdl__CancelRequest, protocol_version),
792 NULL,
793 NULL,
794 0, /* flags */
795 0,NULL,NULL /* reserved1,reserved2, etc */
796 },
797 {
798 "job_id",
799 2,
800 PROTOBUF_C_LABEL_NONE,
801 PROTOBUF_C_TYPE_UINT32,
802 0, /* quantifier_offset */
803 offsetof(Ra8__Mdl__CancelRequest, job_id),
804 NULL,
805 NULL,
806 0, /* flags */
807 0,NULL,NULL /* reserved1,reserved2, etc */
808 },
809};
811 1, /* field[1] = job_id */
812 0, /* field[0] = protocol_version */
813};
814static const ProtobufCIntRange ra8__mdl__cancel_request__number_ranges[1 + 1] =
815{
816 { 1, 0 },
817 { 0, 2 }
818};
819const ProtobufCMessageDescriptor ra8__mdl__cancel_request__descriptor =
820{
821 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
822 "ra8.mdl.CancelRequest",
823 "CancelRequest",
824 "Ra8__Mdl__CancelRequest",
825 "ra8.mdl",
827 2,
831 (ProtobufCMessageInit) ra8__mdl__cancel_request__init,
832 NULL,NULL,NULL /* reserved[123] */
833};
834static const ProtobufCFieldDescriptor ra8__mdl__cancelled__field_descriptors[3] =
835{
836 {
837 "protocol_version",
838 1,
839 PROTOBUF_C_LABEL_NONE,
840 PROTOBUF_C_TYPE_UINT32,
841 0, /* quantifier_offset */
842 offsetof(Ra8__Mdl__Cancelled, protocol_version),
843 NULL,
844 NULL,
845 0, /* flags */
846 0,NULL,NULL /* reserved1,reserved2, etc */
847 },
848 {
849 "job_id",
850 2,
851 PROTOBUF_C_LABEL_NONE,
852 PROTOBUF_C_TYPE_UINT32,
853 0, /* quantifier_offset */
854 offsetof(Ra8__Mdl__Cancelled, job_id),
855 NULL,
856 NULL,
857 0, /* flags */
858 0,NULL,NULL /* reserved1,reserved2, etc */
859 },
860 {
861 "status",
862 3,
863 PROTOBUF_C_LABEL_NONE,
864 PROTOBUF_C_TYPE_INT32,
865 0, /* quantifier_offset */
866 offsetof(Ra8__Mdl__Cancelled, status),
867 NULL,
868 NULL,
869 0, /* flags */
870 0,NULL,NULL /* reserved1,reserved2, etc */
871 },
872};
874 1, /* field[1] = job_id */
875 0, /* field[0] = protocol_version */
876 2, /* field[2] = status */
877};
878static const ProtobufCIntRange ra8__mdl__cancelled__number_ranges[1 + 1] =
879{
880 { 1, 0 },
881 { 0, 3 }
882};
883const ProtobufCMessageDescriptor ra8__mdl__cancelled__descriptor =
884{
885 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
886 "ra8.mdl.Cancelled",
887 "Cancelled",
888 "Ra8__Mdl__Cancelled",
889 "ra8.mdl",
890 sizeof(Ra8__Mdl__Cancelled),
891 3,
895 (ProtobufCMessageInit) ra8__mdl__cancelled__init,
896 NULL,NULL,NULL /* reserved[123] */
897};
898static const ProtobufCEnumValue ra8__mdl__format__enum_values_by_number[10] =
899{
900 { "FORMAT_LOOSE", "RA8__MDL__FORMAT__FORMAT_LOOSE", 0 },
901 { "FORMAT_CBZ", "RA8__MDL__FORMAT__FORMAT_CBZ", 1 },
902 { "FORMAT_CBT", "RA8__MDL__FORMAT__FORMAT_CBT", 2 },
903 { "FORMAT_CBR", "RA8__MDL__FORMAT__FORMAT_CBR", 3 },
904 { "FORMAT_CBT_XZ", "RA8__MDL__FORMAT__FORMAT_CBT_XZ", 4 },
905 { "FORMAT_CBT_GZ", "RA8__MDL__FORMAT__FORMAT_CBT_GZ", 5 },
906 { "FORMAT_EPUB", "RA8__MDL__FORMAT__FORMAT_EPUB", 6 },
907 { "FORMAT_JOF", "RA8__MDL__FORMAT__FORMAT_JOF", 7 },
908 { "FORMAT_RABOOK", "RA8__MDL__FORMAT__FORMAT_RABOOK", 8 },
909 { "FORMAT_INVALID", "RA8__MDL__FORMAT__FORMAT_INVALID", 255 },
910};
911static const ProtobufCIntRange ra8__mdl__format__value_ranges[] = {
912{0, 0},{255, 9},{0, 10}
913};
914static const ProtobufCEnumValueIndex ra8__mdl__format__enum_values_by_name[10] =
915{
916 { "FORMAT_CBR", 3 },
917 { "FORMAT_CBT", 2 },
918 { "FORMAT_CBT_GZ", 5 },
919 { "FORMAT_CBT_XZ", 4 },
920 { "FORMAT_CBZ", 1 },
921 { "FORMAT_EPUB", 6 },
922 { "FORMAT_INVALID", 9 },
923 { "FORMAT_JOF", 7 },
924 { "FORMAT_LOOSE", 0 },
925 { "FORMAT_RABOOK", 8 },
926};
927const ProtobufCEnumDescriptor ra8__mdl__format__descriptor =
928{
929 PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
930 "ra8.mdl.Format",
931 "Format",
932 "Ra8__Mdl__Format",
933 "ra8.mdl",
934 10,
936 10,
938 2,
940 NULL,NULL,NULL,NULL /* reserved[1234] */
941};
942static const ProtobufCEnumValue ra8__mdl__state__enum_values_by_number[6] =
943{
944 { "STATE_UNSPECIFIED", "RA8__MDL__STATE__STATE_UNSPECIFIED", 0 },
945 { "STATE_ACCEPTED", "RA8__MDL__STATE__STATE_ACCEPTED", 1 },
946 { "STATE_DOWNLOADING", "RA8__MDL__STATE__STATE_DOWNLOADING", 2 },
947 { "STATE_COMPLETE", "RA8__MDL__STATE__STATE_COMPLETE", 3 },
948 { "STATE_CANCELLED", "RA8__MDL__STATE__STATE_CANCELLED", 4 },
949 { "STATE_FAILED", "RA8__MDL__STATE__STATE_FAILED", 5 },
950};
951static const ProtobufCIntRange ra8__mdl__state__value_ranges[] = {
952{0, 0},{0, 6}
953};
954static const ProtobufCEnumValueIndex ra8__mdl__state__enum_values_by_name[6] =
955{
956 { "STATE_ACCEPTED", 1 },
957 { "STATE_CANCELLED", 4 },
958 { "STATE_COMPLETE", 3 },
959 { "STATE_DOWNLOADING", 2 },
960 { "STATE_FAILED", 5 },
961 { "STATE_UNSPECIFIED", 0 },
962};
963const ProtobufCEnumDescriptor ra8__mdl__state__descriptor =
964{
965 PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
966 "ra8.mdl.State",
967 "State",
968 "Ra8__Mdl__State",
969 "ra8.mdl",
970 6,
972 6,
974 1,
976 NULL,NULL,NULL,NULL /* reserved[1234] */
977};
#define assert(expr)
Route vendored ESP-hosted assertions through the RA8 assertion policy.
static const ProtobufCFieldDescriptor ra8__mdl__next_request__field_descriptors[4]
static const ProtobufCFieldDescriptor ra8__mdl__chunk__field_descriptors[14]
static const ProtobufCIntRange ra8__mdl__cancelled__number_ranges[1+1]
size_t ra8__mdl__accepted__pack_to_buffer(const Ra8__Mdl__Accepted *message, ProtobufCBuffer *buffer)
void ra8__mdl__cancel_request__init(Ra8__Mdl__CancelRequest *message)
void ra8__mdl__chunk__init(Ra8__Mdl__Chunk *message)
size_t ra8__mdl__cancel_request__pack_to_buffer(const Ra8__Mdl__CancelRequest *message, ProtobufCBuffer *buffer)
static const unsigned ra8__mdl__cancelled__field_indices_by_name[]
size_t ra8__mdl__start_request__pack(const Ra8__Mdl__StartRequest *message, uint8_t *out)
static const unsigned ra8__mdl__accepted__field_indices_by_name[]
Ra8__Mdl__Chunk * ra8__mdl__chunk__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
void ra8__mdl__accepted__free_unpacked(Ra8__Mdl__Accepted *message, ProtobufCAllocator *allocator)
void ra8__mdl__cancel_request__free_unpacked(Ra8__Mdl__CancelRequest *message, ProtobufCAllocator *allocator)
void ra8__mdl__next_request__init(Ra8__Mdl__NextRequest *message)
size_t ra8__mdl__next_request__pack_to_buffer(const Ra8__Mdl__NextRequest *message, ProtobufCBuffer *buffer)
size_t ra8__mdl__cancelled__pack(const Ra8__Mdl__Cancelled *message, uint8_t *out)
static const ProtobufCFieldDescriptor ra8__mdl__accepted__field_descriptors[4]
static const ProtobufCIntRange ra8__mdl__accepted__number_ranges[1+1]
Ra8__Mdl__Accepted * ra8__mdl__accepted__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
size_t ra8__mdl__cancelled__get_packed_size(const Ra8__Mdl__Cancelled *message)
size_t ra8__mdl__cancel_request__get_packed_size(const Ra8__Mdl__CancelRequest *message)
void ra8__mdl__chunk__free_unpacked(Ra8__Mdl__Chunk *message, ProtobufCAllocator *allocator)
size_t ra8__mdl__next_request__pack(const Ra8__Mdl__NextRequest *message, uint8_t *out)
size_t ra8__mdl__chunk__pack_to_buffer(const Ra8__Mdl__Chunk *message, ProtobufCBuffer *buffer)
static const ProtobufCIntRange ra8__mdl__cancel_request__number_ranges[1+1]
void ra8__mdl__cancelled__free_unpacked(Ra8__Mdl__Cancelled *message, ProtobufCAllocator *allocator)
size_t ra8__mdl__chunk__pack(const Ra8__Mdl__Chunk *message, uint8_t *out)
static const ProtobufCFieldDescriptor ra8__mdl__cancel_request__field_descriptors[2]
void ra8__mdl__cancelled__init(Ra8__Mdl__Cancelled *message)
size_t ra8__mdl__start_request__pack_to_buffer(const Ra8__Mdl__StartRequest *message, ProtobufCBuffer *buffer)
size_t ra8__mdl__start_request__get_packed_size(const Ra8__Mdl__StartRequest *message)
Ra8__Mdl__NextRequest * ra8__mdl__next_request__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
size_t ra8__mdl__cancelled__pack_to_buffer(const Ra8__Mdl__Cancelled *message, ProtobufCBuffer *buffer)
size_t ra8__mdl__accepted__pack(const Ra8__Mdl__Accepted *message, uint8_t *out)
size_t ra8__mdl__chunk__get_packed_size(const Ra8__Mdl__Chunk *message)
static const ProtobufCIntRange ra8__mdl__state__value_ranges[]
static const unsigned ra8__mdl__cancel_request__field_indices_by_name[]
static const ProtobufCEnumValue ra8__mdl__state__enum_values_by_number[6]
static const ProtobufCEnumValueIndex ra8__mdl__state__enum_values_by_name[6]
static const ProtobufCIntRange ra8__mdl__start_request__number_ranges[1+1]
Ra8__Mdl__Cancelled * ra8__mdl__cancelled__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
static const unsigned ra8__mdl__start_request__field_indices_by_name[]
static const ProtobufCEnumValue ra8__mdl__format__enum_values_by_number[10]
static const ProtobufCFieldDescriptor ra8__mdl__start_request__field_descriptors[8]
void ra8__mdl__start_request__init(Ra8__Mdl__StartRequest *message)
void ra8__mdl__start_request__free_unpacked(Ra8__Mdl__StartRequest *message, ProtobufCAllocator *allocator)
size_t ra8__mdl__next_request__get_packed_size(const Ra8__Mdl__NextRequest *message)
static const ProtobufCFieldDescriptor ra8__mdl__cancelled__field_descriptors[3]
static const ProtobufCEnumValueIndex ra8__mdl__format__enum_values_by_name[10]
static const unsigned ra8__mdl__chunk__field_indices_by_name[]
void ra8__mdl__accepted__init(Ra8__Mdl__Accepted *message)
void ra8__mdl__next_request__free_unpacked(Ra8__Mdl__NextRequest *message, ProtobufCAllocator *allocator)
size_t ra8__mdl__accepted__get_packed_size(const Ra8__Mdl__Accepted *message)
static const ProtobufCIntRange ra8__mdl__format__value_ranges[]
size_t ra8__mdl__cancel_request__pack(const Ra8__Mdl__CancelRequest *message, uint8_t *out)
static const unsigned ra8__mdl__next_request__field_indices_by_name[]
static const ProtobufCIntRange ra8__mdl__chunk__number_ranges[1+1]
Ra8__Mdl__CancelRequest * ra8__mdl__cancel_request__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Ra8__Mdl__StartRequest * ra8__mdl__start_request__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
static const ProtobufCIntRange ra8__mdl__next_request__number_ranges[1+1]
Generated protobuf-C declarations for the media-download protocol.
#define RA8__MDL__CANCEL_REQUEST__INIT
void ra8__mdl__cancel_request__init(Ra8__Mdl__CancelRequest *message)
void ra8__mdl__chunk__init(Ra8__Mdl__Chunk *message)
#define RA8__MDL__START_REQUEST__INIT
const ProtobufCMessageDescriptor ra8__mdl__accepted__descriptor
void ra8__mdl__next_request__init(Ra8__Mdl__NextRequest *message)
#define RA8__MDL__CHUNK__INIT
const ProtobufCMessageDescriptor ra8__mdl__start_request__descriptor
const ProtobufCMessageDescriptor ra8__mdl__cancelled__descriptor
const ProtobufCEnumDescriptor ra8__mdl__state__descriptor
const ProtobufCMessageDescriptor ra8__mdl__chunk__descriptor
const ProtobufCMessageDescriptor ra8__mdl__cancel_request__descriptor
#define RA8__MDL__CANCELLED__INIT
void ra8__mdl__cancelled__init(Ra8__Mdl__Cancelled *message)
const ProtobufCEnumDescriptor ra8__mdl__format__descriptor
const ProtobufCMessageDescriptor ra8__mdl__next_request__descriptor
void ra8__mdl__start_request__init(Ra8__Mdl__StartRequest *message)
#define RA8__MDL__NEXT_REQUEST__INIT
void ra8__mdl__accepted__init(Ra8__Mdl__Accepted *message)
#define RA8__MDL__ACCEPTED__INIT