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