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