1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     envoy/config/metrics/v3/stats.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 "envoy/config/metrics/v3/stats.upb.h"
14 #include "envoy/config/core/v3/address.upb.h"
15 #include "envoy/type/matcher/v3/string.upb.h"
16 #include "google/protobuf/any.upb.h"
17 #include "google/protobuf/wrappers.upb.h"
18 #include "udpa/annotations/status.upb.h"
19 #include "udpa/annotations/versioning.upb.h"
20 #include "validate/validate.upb.h"
21 
22 // Must be last.
23 #include "upb/port/def.inc"
24 
25 static const upb_MiniTableSub envoy_config_metrics_v3_StatsSink_submsgs[1] = {
26   {.submsg = &google_protobuf_Any_msg_init},
27 };
28 
29 static const upb_MiniTableField envoy_config_metrics_v3_StatsSink__fields[2] = {
30   {1, 8, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
31   {3, UPB_SIZE(4, 24), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
32 };
33 
34 const upb_MiniTable envoy_config_metrics_v3_StatsSink_msg_init = {
35   &envoy_config_metrics_v3_StatsSink_submsgs[0],
36   &envoy_config_metrics_v3_StatsSink__fields[0],
37   UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(24), 0,
38   UPB_FASTTABLE_INIT({
39     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
40     {0x000800003f00000a, &upb_pss_1bt},
41     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
42     {0x001800000300001a, &upb_pom_1bt_maxmaxb},
43   })
44 };
45 
46 static const upb_MiniTableSub envoy_config_metrics_v3_StatsConfig_submsgs[4] = {
47   {.submsg = &envoy_config_metrics_v3_TagSpecifier_msg_init},
48   {.submsg = &google_protobuf_BoolValue_msg_init},
49   {.submsg = &envoy_config_metrics_v3_StatsMatcher_msg_init},
50   {.submsg = &envoy_config_metrics_v3_HistogramBucketSettings_msg_init},
51 };
52 
53 static const upb_MiniTableField envoy_config_metrics_v3_StatsConfig__fields[4] = {
54   {1, UPB_SIZE(4, 8), 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
55   {2, UPB_SIZE(8, 16), 1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
56   {3, UPB_SIZE(12, 24), 2, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
57   {4, UPB_SIZE(16, 32), 0, 3, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
58 };
59 
60 const upb_MiniTable envoy_config_metrics_v3_StatsConfig_msg_init = {
61   &envoy_config_metrics_v3_StatsConfig_submsgs[0],
62   &envoy_config_metrics_v3_StatsConfig__fields[0],
63   UPB_SIZE(24, 40), 4, kUpb_ExtMode_NonExtendable, 4, UPB_FASTTABLE_MASK(56), 0,
64   UPB_FASTTABLE_INIT({
65     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
66     {0x000800003f00000a, &upb_prm_1bt_max64b},
67     {0x0010000001010012, &upb_psm_1bt_maxmaxb},
68     {0x001800000202001a, &upb_psm_1bt_max64b},
69     {0x002000003f030022, &upb_prm_1bt_max64b},
70     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
71     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
72     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
73   })
74 };
75 
76 static const upb_MiniTableSub envoy_config_metrics_v3_StatsMatcher_submsgs[2] = {
77   {.submsg = &envoy_type_matcher_v3_ListStringMatcher_msg_init},
78   {.submsg = &envoy_type_matcher_v3_ListStringMatcher_msg_init},
79 };
80 
81 static const upb_MiniTableField envoy_config_metrics_v3_StatsMatcher__fields[3] = {
82   {1, UPB_SIZE(4, 8), -1, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
83   {2, UPB_SIZE(4, 8), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
84   {3, UPB_SIZE(4, 8), -1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
85 };
86 
87 const upb_MiniTable envoy_config_metrics_v3_StatsMatcher_msg_init = {
88   &envoy_config_metrics_v3_StatsMatcher_submsgs[0],
89   &envoy_config_metrics_v3_StatsMatcher__fields[0],
90   UPB_SIZE(8, 16), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0,
91   UPB_FASTTABLE_INIT({
92     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
93     {0x0008000001000008, &upb_pob1_1bt},
94     {0x0008000002000012, &upb_pom_1bt_maxmaxb},
95     {0x000800000301001a, &upb_pom_1bt_maxmaxb},
96   })
97 };
98 
99 static const upb_MiniTableField envoy_config_metrics_v3_TagSpecifier__fields[3] = {
100   {1, UPB_SIZE(12, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
101   {2, UPB_SIZE(4, 8), -1, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
102   {3, UPB_SIZE(4, 8), -1, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
103 };
104 
105 const upb_MiniTable envoy_config_metrics_v3_TagSpecifier_msg_init = {
106   NULL,
107   &envoy_config_metrics_v3_TagSpecifier__fields[0],
108   UPB_SIZE(24, 40), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0,
109   UPB_FASTTABLE_INIT({
110     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
111     {0x001800003f00000a, &upb_pss_1bt},
112     {0x0008000002000012, &upb_pos_1bt},
113     {0x000800000300001a, &upb_pos_1bt},
114   })
115 };
116 
117 static const upb_MiniTableSub envoy_config_metrics_v3_HistogramBucketSettings_submsgs[1] = {
118   {.submsg = &envoy_type_matcher_v3_StringMatcher_msg_init},
119 };
120 
121 static const upb_MiniTableField envoy_config_metrics_v3_HistogramBucketSettings__fields[2] = {
122   {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
123   {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 1, kUpb_FieldMode_Array | kUpb_LabelFlags_IsPacked | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
124 };
125 
126 const upb_MiniTable envoy_config_metrics_v3_HistogramBucketSettings_msg_init = {
127   &envoy_config_metrics_v3_HistogramBucketSettings_submsgs[0],
128   &envoy_config_metrics_v3_HistogramBucketSettings__fields[0],
129   UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
130   UPB_FASTTABLE_INIT({
131     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
132     {0x000800000100000a, &upb_psm_1bt_maxmaxb},
133     {0x001000003f000012, &upb_ppf8_1bt},
134     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
135   })
136 };
137 
138 static const upb_MiniTableSub envoy_config_metrics_v3_StatsdSink_submsgs[1] = {
139   {.submsg = &envoy_config_core_v3_Address_msg_init},
140 };
141 
142 static const upb_MiniTableField envoy_config_metrics_v3_StatsdSink__fields[3] = {
143   {1, UPB_SIZE(4, 8), -1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
144   {2, UPB_SIZE(4, 8), -1, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
145   {3, UPB_SIZE(12, 24), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
146 };
147 
148 const upb_MiniTable envoy_config_metrics_v3_StatsdSink_msg_init = {
149   &envoy_config_metrics_v3_StatsdSink_submsgs[0],
150   &envoy_config_metrics_v3_StatsdSink__fields[0],
151   UPB_SIZE(24, 40), 3, kUpb_ExtMode_NonExtendable, 3, UPB_FASTTABLE_MASK(24), 0,
152   UPB_FASTTABLE_INIT({
153     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
154     {0x000800000100000a, &upb_pom_1bt_maxmaxb},
155     {0x0008000002000012, &upb_pos_1bt},
156     {0x001800003f00001a, &upb_pss_1bt},
157   })
158 };
159 
160 static const upb_MiniTableSub envoy_config_metrics_v3_DogStatsdSink_submsgs[2] = {
161   {.submsg = &envoy_config_core_v3_Address_msg_init},
162   {.submsg = &google_protobuf_UInt64Value_msg_init},
163 };
164 
165 static const upb_MiniTableField envoy_config_metrics_v3_DogStatsdSink__fields[3] = {
166   {1, UPB_SIZE(12, 32), -5, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
167   {3, UPB_SIZE(16, 8), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
168   {4, UPB_SIZE(8, 24), 1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
169 };
170 
171 const upb_MiniTable envoy_config_metrics_v3_DogStatsdSink_msg_init = {
172   &envoy_config_metrics_v3_DogStatsdSink_submsgs[0],
173   &envoy_config_metrics_v3_DogStatsdSink__fields[0],
174   UPB_SIZE(24, 40), 3, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(56), 0,
175   UPB_FASTTABLE_INIT({
176     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
177     {0x002000040100000a, &upb_pom_1bt_maxmaxb},
178     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
179     {0x000800003f00001a, &upb_pss_1bt},
180     {0x0018000001010022, &upb_psm_1bt_maxmaxb},
181     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
182     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
183     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
184   })
185 };
186 
187 static const upb_MiniTableField envoy_config_metrics_v3_HystrixSink__fields[1] = {
188   {1, 0, 0, kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
189 };
190 
191 const upb_MiniTable envoy_config_metrics_v3_HystrixSink_msg_init = {
192   NULL,
193   &envoy_config_metrics_v3_HystrixSink__fields[0],
194   8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0,
195   UPB_FASTTABLE_INIT({
196     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
197     {0x000000003f000008, &upb_psv8_1bt},
198   })
199 };
200 
201 static const upb_MiniTable *messages_layout[8] = {
202   &envoy_config_metrics_v3_StatsSink_msg_init,
203   &envoy_config_metrics_v3_StatsConfig_msg_init,
204   &envoy_config_metrics_v3_StatsMatcher_msg_init,
205   &envoy_config_metrics_v3_TagSpecifier_msg_init,
206   &envoy_config_metrics_v3_HistogramBucketSettings_msg_init,
207   &envoy_config_metrics_v3_StatsdSink_msg_init,
208   &envoy_config_metrics_v3_DogStatsdSink_msg_init,
209   &envoy_config_metrics_v3_HystrixSink_msg_init,
210 };
211 
212 const upb_MiniTableFile envoy_config_metrics_v3_stats_proto_upb_file_layout = {
213   messages_layout,
214   NULL,
215   NULL,
216   8,
217   0,
218   0,
219 };
220 
221 #include "upb/port/undef.inc"
222 
223