1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     xds/core/v3/resource_locator.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #include <stddef.h>
10 #include "upb/collections/array_internal.h"
11 #include "upb/message/internal.h"
12 #include "upb/mini_table/enum_internal.h"
13 #include "xds/core/v3/resource_locator.upb.h"
14 #include "xds/annotations/v3/status.upb.h"
15 #include "xds/core/v3/context_params.upb.h"
16 #include "validate/validate.upb.h"
17 
18 // Must be last.
19 #include "upb/port/def.inc"
20 
21 static const upb_MiniTableSub xds_core_v3_ResourceLocator_submsgs[2] = {
22   {.submsg = &xds_core_v3_ContextParams_msg_init},
23   {.submsg = &xds_core_v3_ResourceLocator_Directive_msg_init},
24 };
25 
26 static const upb_MiniTableField xds_core_v3_ResourceLocator__fields[6] = {
27   {1, 0, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
28   {2, UPB_SIZE(16, 8), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
29   {3, 24, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
30   {4, UPB_SIZE(32, 40), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
31   {5, UPB_SIZE(12, 64), -5, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
32   {6, UPB_SIZE(8, 56), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
33 };
34 
35 const upb_MiniTable xds_core_v3_ResourceLocator_msg_init = {
36   &xds_core_v3_ResourceLocator_submsgs[0],
37   &xds_core_v3_ResourceLocator__fields[0],
38   UPB_SIZE(40, 72), 6, kUpb_ExtMode_NonExtendable, 6, UPB_FASTTABLE_MASK(56), 0,
39   UPB_FASTTABLE_INIT({
40     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
41     {0x000000003f000008, &upb_psv4_1bt},
42     {0x000800003f000012, &upb_pss_1bt},
43     {0x001800003f00001a, &upb_pss_1bt},
44     {0x002800003f000022, &upb_pss_1bt},
45     {0x004000040500002a, &upb_pom_1bt_maxmaxb},
46     {0x003800003f010032, &upb_prm_1bt_max64b},
47     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
48   })
49 };
50 
51 static const upb_MiniTableSub xds_core_v3_ResourceLocator_Directive_submsgs[1] = {
52   {.submsg = &xds_core_v3_ResourceLocator_msg_init},
53 };
54 
55 static const upb_MiniTableField xds_core_v3_ResourceLocator_Directive__fields[2] = {
56   {1, UPB_SIZE(4, 8), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
57   {2, UPB_SIZE(4, 8), -1, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
58 };
59 
60 const upb_MiniTable xds_core_v3_ResourceLocator_Directive_msg_init = {
61   &xds_core_v3_ResourceLocator_Directive_submsgs[0],
62   &xds_core_v3_ResourceLocator_Directive__fields[0],
63   UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
64   UPB_FASTTABLE_INIT({
65     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
66     {0x000800000100000a, &upb_pom_1bt_max128b},
67     {0x0008000002000012, &upb_pos_1bt},
68     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
69   })
70 };
71 
72 static const upb_MiniTable *messages_layout[2] = {
73   &xds_core_v3_ResourceLocator_msg_init,
74   &xds_core_v3_ResourceLocator_Directive_msg_init,
75 };
76 
77 const upb_MiniTableFile xds_core_v3_resource_locator_proto_upb_file_layout = {
78   messages_layout,
79   NULL,
80   NULL,
81   2,
82   0,
83   0,
84 };
85 
86 #include "upb/port/undef.inc"
87 
88