1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     envoy/config/cluster/v3/circuit_breaker.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/cluster/v3/circuit_breaker.upb.h"
14 #include "envoy/config/core/v3/base.upb.h"
15 #include "envoy/type/v3/percent.upb.h"
16 #include "google/protobuf/wrappers.upb.h"
17 #include "udpa/annotations/status.upb.h"
18 #include "udpa/annotations/versioning.upb.h"
19 #include "validate/validate.upb.h"
20 
21 // Must be last.
22 #include "upb/port/def.inc"
23 
24 static const upb_MiniTableSub envoy_config_cluster_v3_CircuitBreakers_submsgs[2] = {
25   {.submsg = &envoy_config_cluster_v3_CircuitBreakers_Thresholds_msg_init},
26   {.submsg = &envoy_config_cluster_v3_CircuitBreakers_Thresholds_msg_init},
27 };
28 
29 static const upb_MiniTableField envoy_config_cluster_v3_CircuitBreakers__fields[2] = {
30   {1, 0, 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
31   {2, UPB_SIZE(4, 8), 0, 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
32 };
33 
34 const upb_MiniTable envoy_config_cluster_v3_CircuitBreakers_msg_init = {
35   &envoy_config_cluster_v3_CircuitBreakers_submsgs[0],
36   &envoy_config_cluster_v3_CircuitBreakers__fields[0],
37   UPB_SIZE(8, 16), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
38   UPB_FASTTABLE_INIT({
39     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
40     {0x000000003f00000a, &upb_prm_1bt_max128b},
41     {0x000800003f010012, &upb_prm_1bt_max128b},
42     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
43   })
44 };
45 
46 static const upb_MiniTableSub envoy_config_cluster_v3_CircuitBreakers_Thresholds_submsgs[6] = {
47   {.submsg = &google_protobuf_UInt32Value_msg_init},
48   {.submsg = &google_protobuf_UInt32Value_msg_init},
49   {.submsg = &google_protobuf_UInt32Value_msg_init},
50   {.submsg = &google_protobuf_UInt32Value_msg_init},
51   {.submsg = &google_protobuf_UInt32Value_msg_init},
52   {.submsg = &envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_msg_init},
53 };
54 
55 static const upb_MiniTableField envoy_config_cluster_v3_CircuitBreakers_Thresholds__fields[8] = {
56   {1, 4, 0, kUpb_NoSub, 5, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
57   {2, UPB_SIZE(8, 16), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
58   {3, UPB_SIZE(12, 24), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
59   {4, UPB_SIZE(16, 32), 3, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
60   {5, UPB_SIZE(20, 40), 4, 3, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
61   {6, UPB_SIZE(24, 8), 0, kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
62   {7, UPB_SIZE(28, 48), 5, 4, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
63   {8, UPB_SIZE(32, 56), 6, 5, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
64 };
65 
66 const upb_MiniTable envoy_config_cluster_v3_CircuitBreakers_Thresholds_msg_init = {
67   &envoy_config_cluster_v3_CircuitBreakers_Thresholds_submsgs[0],
68   &envoy_config_cluster_v3_CircuitBreakers_Thresholds__fields[0],
69   UPB_SIZE(40, 64), 8, kUpb_ExtMode_NonExtendable, 8, UPB_FASTTABLE_MASK(120), 0,
70   UPB_FASTTABLE_INIT({
71     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
72     {0x000400003f000008, &upb_psv4_1bt},
73     {0x0010000001000012, &upb_psm_1bt_maxmaxb},
74     {0x001800000201001a, &upb_psm_1bt_maxmaxb},
75     {0x0020000003020022, &upb_psm_1bt_maxmaxb},
76     {0x002800000403002a, &upb_psm_1bt_maxmaxb},
77     {0x000800003f000030, &upb_psb1_1bt},
78     {0x003000000504003a, &upb_psm_1bt_maxmaxb},
79     {0x0038000006050042, &upb_psm_1bt_max64b},
80     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
81     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
82     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
83     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
84     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
85     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
86     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
87   })
88 };
89 
90 static const upb_MiniTableSub envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_submsgs[2] = {
91   {.submsg = &envoy_type_v3_Percent_msg_init},
92   {.submsg = &google_protobuf_UInt32Value_msg_init},
93 };
94 
95 static const upb_MiniTableField envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget__fields[2] = {
96   {1, UPB_SIZE(4, 8), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
97   {2, UPB_SIZE(8, 16), 2, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
98 };
99 
100 const upb_MiniTable envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_msg_init = {
101   &envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_submsgs[0],
102   &envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget__fields[0],
103   UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
104   UPB_FASTTABLE_INIT({
105     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
106     {0x000800000100000a, &upb_psm_1bt_maxmaxb},
107     {0x0010000002010012, &upb_psm_1bt_maxmaxb},
108     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
109   })
110 };
111 
112 static const upb_MiniTable *messages_layout[3] = {
113   &envoy_config_cluster_v3_CircuitBreakers_msg_init,
114   &envoy_config_cluster_v3_CircuitBreakers_Thresholds_msg_init,
115   &envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_msg_init,
116 };
117 
118 const upb_MiniTableFile envoy_config_cluster_v3_circuit_breaker_proto_upb_file_layout = {
119   messages_layout,
120   NULL,
121   NULL,
122   3,
123   0,
124   0,
125 };
126 
127 #include "upb/port/undef.inc"
128 
129