1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     xds/type/matcher/v3/ip.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/type/matcher/v3/ip.upb.h"
14 #include "xds/annotations/v3/status.upb.h"
15 #include "xds/core/v3/cidr.upb.h"
16 #include "xds/type/matcher/v3/matcher.upb.h"
17 #include "validate/validate.upb.h"
18 
19 // Must be last.
20 #include "upb/port/def.inc"
21 
22 static const upb_MiniTableSub xds_type_matcher_v3_IPMatcher_submsgs[1] = {
23   {.submsg = &xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msg_init},
24 };
25 
26 static const upb_MiniTableField xds_type_matcher_v3_IPMatcher__fields[1] = {
27   {1, 0, 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
28 };
29 
30 const upb_MiniTable xds_type_matcher_v3_IPMatcher_msg_init = {
31   &xds_type_matcher_v3_IPMatcher_submsgs[0],
32   &xds_type_matcher_v3_IPMatcher__fields[0],
33   8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0,
34   UPB_FASTTABLE_INIT({
35     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
36     {0x000000003f00000a, &upb_prm_1bt_max64b},
37   })
38 };
39 
40 static const upb_MiniTableSub xds_type_matcher_v3_IPMatcher_IPRangeMatcher_submsgs[2] = {
41   {.submsg = &xds_core_v3_CidrRange_msg_init},
42   {.submsg = &xds_type_matcher_v3_Matcher_OnMatch_msg_init},
43 };
44 
45 static const upb_MiniTableField xds_type_matcher_v3_IPMatcher_IPRangeMatcher__fields[3] = {
46   {1, UPB_SIZE(4, 8), 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
47   {2, UPB_SIZE(8, 16), 1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
48   {3, UPB_SIZE(12, 1), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
49 };
50 
51 const upb_MiniTable xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msg_init = {
52   &xds_type_matcher_v3_IPMatcher_IPRangeMatcher_submsgs[0],
53   &xds_type_matcher_v3_IPMatcher_IPRangeMatcher__fields[0],
54   UPB_SIZE(16, 24), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0,
55   UPB_FASTTABLE_INIT({
56     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
57     {0x000800003f00000a, &upb_prm_1bt_maxmaxb},
58     {0x0010000001010012, &upb_psm_1bt_maxmaxb},
59     {0x000100003f000018, &upb_psb1_1bt},
60   })
61 };
62 
63 static const upb_MiniTable *messages_layout[2] = {
64   &xds_type_matcher_v3_IPMatcher_msg_init,
65   &xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msg_init,
66 };
67 
68 const upb_MiniTableFile xds_type_matcher_v3_ip_proto_upb_file_layout = {
69   messages_layout,
70   NULL,
71   NULL,
72   2,
73   0,
74   0,
75 };
76 
77 #include "upb/port/undef.inc"
78 
79