1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     envoy/config/rbac/v3/rbac.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/msg.h"
11 #include "envoy/config/rbac/v3/rbac.upb.h"
12 #include "envoy/config/core/v3/address.upb.h"
13 #include "envoy/config/route/v3/route_components.upb.h"
14 #include "envoy/type/matcher/v3/metadata.upb.h"
15 #include "envoy/type/matcher/v3/path.upb.h"
16 #include "envoy/type/matcher/v3/string.upb.h"
17 #include "google/api/expr/v1alpha1/checked.upb.h"
18 #include "google/api/expr/v1alpha1/syntax.upb.h"
19 #include "udpa/annotations/migrate.upb.h"
20 #include "udpa/annotations/status.upb.h"
21 #include "udpa/annotations/versioning.upb.h"
22 #include "validate/validate.upb.h"
23 
24 #include "upb/port_def.inc"
25 
26 static const upb_msglayout *const envoy_config_rbac_v3_RBAC_submsgs[1] = {
27   &envoy_config_rbac_v3_RBAC_PoliciesEntry_msginit,
28 };
29 
30 static const upb_msglayout_field envoy_config_rbac_v3_RBAC__fields[2] = {
31   {1, UPB_SIZE(0, 0), 0, 0, 14, 1},
32   {2, UPB_SIZE(4, 8), 0, 0, 11, _UPB_LABEL_MAP},
33 };
34 
35 const upb_msglayout envoy_config_rbac_v3_RBAC_msginit = {
36   &envoy_config_rbac_v3_RBAC_submsgs[0],
37   &envoy_config_rbac_v3_RBAC__fields[0],
38   UPB_SIZE(8, 16), 2, false, 255,
39 };
40 
41 static const upb_msglayout *const envoy_config_rbac_v3_RBAC_PoliciesEntry_submsgs[1] = {
42   &envoy_config_rbac_v3_Policy_msginit,
43 };
44 
45 static const upb_msglayout_field envoy_config_rbac_v3_RBAC_PoliciesEntry__fields[2] = {
46   {1, UPB_SIZE(0, 0), 0, 0, 9, 1},
47   {2, UPB_SIZE(8, 16), 0, 0, 11, 1},
48 };
49 
50 const upb_msglayout envoy_config_rbac_v3_RBAC_PoliciesEntry_msginit = {
51   &envoy_config_rbac_v3_RBAC_PoliciesEntry_submsgs[0],
52   &envoy_config_rbac_v3_RBAC_PoliciesEntry__fields[0],
53   UPB_SIZE(16, 32), 2, false, 255,
54 };
55 
56 static const upb_msglayout *const envoy_config_rbac_v3_Policy_submsgs[4] = {
57   &envoy_config_rbac_v3_Permission_msginit,
58   &envoy_config_rbac_v3_Principal_msginit,
59   &google_api_expr_v1alpha1_CheckedExpr_msginit,
60   &google_api_expr_v1alpha1_Expr_msginit,
61 };
62 
63 static const upb_msglayout_field envoy_config_rbac_v3_Policy__fields[4] = {
64   {1, UPB_SIZE(12, 24), 0, 0, 11, 3},
65   {2, UPB_SIZE(16, 32), 0, 1, 11, 3},
66   {3, UPB_SIZE(4, 8), 1, 3, 11, 1},
67   {4, UPB_SIZE(8, 16), 2, 2, 11, 1},
68 };
69 
70 const upb_msglayout envoy_config_rbac_v3_Policy_msginit = {
71   &envoy_config_rbac_v3_Policy_submsgs[0],
72   &envoy_config_rbac_v3_Policy__fields[0],
73   UPB_SIZE(24, 40), 4, false, 255,
74 };
75 
76 static const upb_msglayout *const envoy_config_rbac_v3_Permission_submsgs[7] = {
77   &envoy_config_core_v3_CidrRange_msginit,
78   &envoy_config_rbac_v3_Permission_msginit,
79   &envoy_config_rbac_v3_Permission_Set_msginit,
80   &envoy_config_route_v3_HeaderMatcher_msginit,
81   &envoy_type_matcher_v3_MetadataMatcher_msginit,
82   &envoy_type_matcher_v3_PathMatcher_msginit,
83   &envoy_type_matcher_v3_StringMatcher_msginit,
84 };
85 
86 static const upb_msglayout_field envoy_config_rbac_v3_Permission__fields[10] = {
87   {1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, 1},
88   {2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, 1},
89   {3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 8, 1},
90   {4, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, 1},
91   {5, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
92   {6, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 13, 1},
93   {7, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 4, 11, 1},
94   {8, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, 1},
95   {9, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 6, 11, 1},
96   {10, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 5, 11, 1},
97 };
98 
99 const upb_msglayout envoy_config_rbac_v3_Permission_msginit = {
100   &envoy_config_rbac_v3_Permission_submsgs[0],
101   &envoy_config_rbac_v3_Permission__fields[0],
102   UPB_SIZE(8, 16), 10, false, 255,
103 };
104 
105 static const upb_msglayout *const envoy_config_rbac_v3_Permission_Set_submsgs[1] = {
106   &envoy_config_rbac_v3_Permission_msginit,
107 };
108 
109 static const upb_msglayout_field envoy_config_rbac_v3_Permission_Set__fields[1] = {
110   {1, UPB_SIZE(0, 0), 0, 0, 11, 3},
111 };
112 
113 const upb_msglayout envoy_config_rbac_v3_Permission_Set_msginit = {
114   &envoy_config_rbac_v3_Permission_Set_submsgs[0],
115   &envoy_config_rbac_v3_Permission_Set__fields[0],
116   UPB_SIZE(8, 8), 1, false, 255,
117 };
118 
119 static const upb_msglayout *const envoy_config_rbac_v3_Principal_submsgs[7] = {
120   &envoy_config_core_v3_CidrRange_msginit,
121   &envoy_config_rbac_v3_Principal_msginit,
122   &envoy_config_rbac_v3_Principal_Authenticated_msginit,
123   &envoy_config_rbac_v3_Principal_Set_msginit,
124   &envoy_config_route_v3_HeaderMatcher_msginit,
125   &envoy_type_matcher_v3_MetadataMatcher_msginit,
126   &envoy_type_matcher_v3_PathMatcher_msginit,
127 };
128 
129 static const upb_msglayout_field envoy_config_rbac_v3_Principal__fields[11] = {
130   {1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, 1},
131   {2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, 1},
132   {3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 8, 1},
133   {4, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, 1},
134   {5, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
135   {6, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 4, 11, 1},
136   {7, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 5, 11, 1},
137   {8, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, 1},
138   {9, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 6, 11, 1},
139   {10, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
140   {11, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
141 };
142 
143 const upb_msglayout envoy_config_rbac_v3_Principal_msginit = {
144   &envoy_config_rbac_v3_Principal_submsgs[0],
145   &envoy_config_rbac_v3_Principal__fields[0],
146   UPB_SIZE(8, 16), 11, false, 255,
147 };
148 
149 static const upb_msglayout *const envoy_config_rbac_v3_Principal_Set_submsgs[1] = {
150   &envoy_config_rbac_v3_Principal_msginit,
151 };
152 
153 static const upb_msglayout_field envoy_config_rbac_v3_Principal_Set__fields[1] = {
154   {1, UPB_SIZE(0, 0), 0, 0, 11, 3},
155 };
156 
157 const upb_msglayout envoy_config_rbac_v3_Principal_Set_msginit = {
158   &envoy_config_rbac_v3_Principal_Set_submsgs[0],
159   &envoy_config_rbac_v3_Principal_Set__fields[0],
160   UPB_SIZE(8, 8), 1, false, 255,
161 };
162 
163 static const upb_msglayout *const envoy_config_rbac_v3_Principal_Authenticated_submsgs[1] = {
164   &envoy_type_matcher_v3_StringMatcher_msginit,
165 };
166 
167 static const upb_msglayout_field envoy_config_rbac_v3_Principal_Authenticated__fields[1] = {
168   {2, UPB_SIZE(4, 8), 1, 0, 11, 1},
169 };
170 
171 const upb_msglayout envoy_config_rbac_v3_Principal_Authenticated_msginit = {
172   &envoy_config_rbac_v3_Principal_Authenticated_submsgs[0],
173   &envoy_config_rbac_v3_Principal_Authenticated__fields[0],
174   UPB_SIZE(8, 16), 1, false, 255,
175 };
176 
177 #include "upb/port_undef.inc"
178 
179