• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     envoy/config/endpoint/v3/endpoint.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/endpoint/v3/endpoint.upb.h"
14 #include "envoy/config/endpoint/v3/endpoint_components.upb.h"
15 #include "envoy/type/v3/percent.upb.h"
16 #include "google/protobuf/duration.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_endpoint_v3_ClusterLoadAssignment_submsgs[3] = {
26   {.submsg = &envoy_config_endpoint_v3_LocalityLbEndpoints_msg_init},
27   {.submsg = &envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_msg_init},
28   {.submsg = &envoy_config_endpoint_v3_ClusterLoadAssignment_NamedEndpointsEntry_msg_init},
29 };
30 
31 static const upb_MiniTableField envoy_config_endpoint_v3_ClusterLoadAssignment__fields[4] = {
32   {1, UPB_SIZE(16, 8), 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
33   {2, UPB_SIZE(4, 24), 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
34   {4, UPB_SIZE(8, 32), 1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
35   {5, UPB_SIZE(12, 40), 0, 2, 11, kUpb_FieldMode_Map | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
36 };
37 
38 const upb_MiniTable envoy_config_endpoint_v3_ClusterLoadAssignment_msg_init = {
39   &envoy_config_endpoint_v3_ClusterLoadAssignment_submsgs[0],
40   &envoy_config_endpoint_v3_ClusterLoadAssignment__fields[0],
41   UPB_SIZE(24, 48), 4, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(56), 0,
42   UPB_FASTTABLE_INIT({
43     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
44     {0x000800003f00000a, &upb_pss_1bt},
45     {0x001800003f000012, &upb_prm_1bt_maxmaxb},
46     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
47     {0x0020000001010022, &upb_psm_1bt_max64b},
48     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
49     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
50     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
51   })
52 };
53 
54 static const upb_MiniTableSub envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_submsgs[3] = {
55   {.submsg = &envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_DropOverload_msg_init},
56   {.submsg = &google_protobuf_UInt32Value_msg_init},
57   {.submsg = &google_protobuf_Duration_msg_init},
58 };
59 
60 static const upb_MiniTableField envoy_config_endpoint_v3_ClusterLoadAssignment_Policy__fields[3] = {
61   {2, UPB_SIZE(4, 8), 0, 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
62   {3, UPB_SIZE(8, 16), 1, 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
63   {4, UPB_SIZE(12, 24), 2, 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
64 };
65 
66 const upb_MiniTable envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_msg_init = {
67   &envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_submsgs[0],
68   &envoy_config_endpoint_v3_ClusterLoadAssignment_Policy__fields[0],
69   UPB_SIZE(16, 32), 3, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(56), 0,
70   UPB_FASTTABLE_INIT({
71     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
72     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
73     {0x000800003f000012, &upb_prm_1bt_max64b},
74     {0x001000000101001a, &upb_psm_1bt_maxmaxb},
75     {0x0018000002020022, &upb_psm_1bt_maxmaxb},
76     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
77     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
78     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
79   })
80 };
81 
82 static const upb_MiniTableSub envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_DropOverload_submsgs[1] = {
83   {.submsg = &envoy_type_v3_FractionalPercent_msg_init},
84 };
85 
86 static const upb_MiniTableField envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_DropOverload__fields[2] = {
87   {1, 8, 0, kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
88   {2, UPB_SIZE(4, 24), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
89 };
90 
91 const upb_MiniTable envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_DropOverload_msg_init = {
92   &envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_DropOverload_submsgs[0],
93   &envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_DropOverload__fields[0],
94   UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
95   UPB_FASTTABLE_INIT({
96     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
97     {0x000800003f00000a, &upb_pss_1bt},
98     {0x0018000001000012, &upb_psm_1bt_maxmaxb},
99     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
100   })
101 };
102 
103 static const upb_MiniTableSub envoy_config_endpoint_v3_ClusterLoadAssignment_NamedEndpointsEntry_submsgs[1] = {
104   {.submsg = &envoy_config_endpoint_v3_Endpoint_msg_init},
105 };
106 
107 static const upb_MiniTableField envoy_config_endpoint_v3_ClusterLoadAssignment_NamedEndpointsEntry__fields[2] = {
108   {1, 8, 0, kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
109   {2, UPB_SIZE(16, 24), 1, 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
110 };
111 
112 const upb_MiniTable envoy_config_endpoint_v3_ClusterLoadAssignment_NamedEndpointsEntry_msg_init = {
113   &envoy_config_endpoint_v3_ClusterLoadAssignment_NamedEndpointsEntry_submsgs[0],
114   &envoy_config_endpoint_v3_ClusterLoadAssignment_NamedEndpointsEntry__fields[0],
115   UPB_SIZE(24, 40), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0,
116   UPB_FASTTABLE_INIT({
117     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
118     {0x000800003f00000a, &upb_pss_1bt},
119     {0x0018000001000012, &upb_psm_1bt_maxmaxb},
120     {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric},
121   })
122 };
123 
124 static const upb_MiniTable *messages_layout[4] = {
125   &envoy_config_endpoint_v3_ClusterLoadAssignment_msg_init,
126   &envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_msg_init,
127   &envoy_config_endpoint_v3_ClusterLoadAssignment_Policy_DropOverload_msg_init,
128   &envoy_config_endpoint_v3_ClusterLoadAssignment_NamedEndpointsEntry_msg_init,
129 };
130 
131 const upb_MiniTableFile envoy_config_endpoint_v3_endpoint_proto_upb_file_layout = {
132   messages_layout,
133   NULL,
134   NULL,
135   4,
136   0,
137   0,
138 };
139 
140 #include "upb/port/undef.inc"
141 
142