grpc 1.44.0.pre2 → 1.45.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

Files changed (1072) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +291 -178
  3. data/include/grpc/event_engine/event_engine.h +2 -2
  4. data/include/grpc/grpc.h +40 -14
  5. data/include/grpc/grpc_posix.h +20 -19
  6. data/include/grpc/grpc_security.h +26 -50
  7. data/include/grpc/impl/codegen/grpc_types.h +11 -8
  8. data/include/grpc/impl/codegen/port_platform.h +2 -2
  9. data/include/grpc/impl/codegen/slice.h +4 -1
  10. data/include/grpc/slice.h +0 -11
  11. data/src/core/ext/filters/client_channel/backend_metric.cc +3 -3
  12. data/src/core/ext/filters/client_channel/backup_poller.cc +12 -8
  13. data/src/core/ext/filters/client_channel/channel_connectivity.cc +5 -5
  14. data/src/core/ext/filters/client_channel/client_channel.cc +79 -57
  15. data/src/core/ext/filters/client_channel/client_channel.h +30 -29
  16. data/src/core/ext/filters/client_channel/client_channel_plugin.cc +5 -11
  17. data/src/core/ext/filters/client_channel/connector.h +1 -1
  18. data/src/core/ext/filters/client_channel/dynamic_filters.cc +1 -2
  19. data/src/core/ext/filters/client_channel/dynamic_filters.h +1 -1
  20. data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +2 -22
  21. data/src/core/ext/filters/client_channel/global_subchannel_pool.h +3 -15
  22. data/src/core/ext/filters/client_channel/health/health_check_client.cc +16 -17
  23. data/src/core/ext/filters/client_channel/health/health_check_client.h +1 -1
  24. data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +9 -12
  25. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +1 -0
  26. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +68 -47
  27. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +15 -15
  28. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +4 -4
  29. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +7 -3
  30. data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +22 -17
  31. data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +119 -82
  32. data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +2 -2
  33. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +9 -4
  34. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +51 -24
  35. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +2 -1
  36. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +19 -12
  37. data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +7 -13
  38. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +62 -49
  39. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +18 -19
  40. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +41 -43
  41. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +8 -7
  42. data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +82 -57
  43. data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +35 -34
  44. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +35 -36
  45. data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +7 -10
  46. data/src/core/ext/filters/client_channel/resolver_result_parsing.h +11 -5
  47. data/src/core/ext/filters/client_channel/retry_filter.cc +219 -125
  48. data/src/core/ext/filters/client_channel/retry_service_config.cc +15 -17
  49. data/src/core/ext/filters/client_channel/retry_service_config.h +17 -11
  50. data/src/core/ext/filters/client_channel/retry_throttle.cc +9 -23
  51. data/src/core/ext/filters/client_channel/retry_throttle.h +11 -5
  52. data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +7 -6
  53. data/src/core/ext/filters/client_channel/subchannel.cc +35 -38
  54. data/src/core/ext/filters/client_channel/subchannel.h +5 -4
  55. data/src/core/ext/filters/client_idle/client_idle_filter.cc +96 -159
  56. data/src/core/ext/filters/client_idle/idle_filter_state.h +2 -2
  57. data/src/core/ext/filters/deadline/deadline_filter.cc +15 -14
  58. data/src/core/ext/filters/deadline/deadline_filter.h +3 -2
  59. data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +17 -11
  60. data/src/core/ext/filters/fault_injection/service_config_parser.cc +5 -5
  61. data/src/core/ext/filters/fault_injection/service_config_parser.h +9 -3
  62. data/src/core/ext/filters/http/client/http_client_filter.cc +7 -3
  63. data/src/core/ext/filters/http/client_authority_filter.cc +28 -71
  64. data/src/core/ext/filters/http/client_authority_filter.h +23 -5
  65. data/src/core/ext/filters/http/http_filters_plugin.cc +11 -12
  66. data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +1 -0
  67. data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +10 -2
  68. data/src/core/ext/filters/http/server/http_server_filter.cc +1 -0
  69. data/src/core/ext/filters/max_age/max_age_filter.cc +46 -40
  70. data/src/core/ext/filters/message_size/message_size_filter.cc +26 -34
  71. data/src/core/ext/filters/message_size/message_size_filter.h +9 -2
  72. data/src/core/ext/filters/rbac/rbac_filter.cc +13 -8
  73. data/src/core/ext/filters/rbac/rbac_filter.h +2 -0
  74. data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +6 -5
  75. data/src/core/ext/filters/rbac/rbac_service_config_parser.h +6 -1
  76. data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +1 -0
  77. data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +234 -0
  78. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +149 -7
  79. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +110 -47
  80. data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +8 -2
  81. data/src/core/ext/transport/chttp2/transport/flow_control.cc +2 -2
  82. data/src/core/ext/transport/chttp2/transport/flow_control.h +3 -3
  83. data/src/core/ext/transport/chttp2/transport/frame_ping.cc +4 -4
  84. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +5 -0
  85. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +1 -2
  86. data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +1 -1
  87. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +15 -51
  88. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +2 -2
  89. data/src/core/ext/transport/chttp2/transport/internal.h +6 -6
  90. data/src/core/ext/transport/chttp2/transport/parsing.cc +3 -3
  91. data/src/core/ext/transport/chttp2/transport/writing.cc +15 -12
  92. data/src/core/ext/transport/inproc/inproc_transport.cc +16 -12
  93. data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +114 -0
  94. data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +402 -0
  95. data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +119 -0
  96. data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +453 -0
  97. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +165 -163
  98. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +798 -575
  99. data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +56 -0
  100. data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +138 -0
  101. data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +62 -0
  102. data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +146 -0
  103. data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +46 -0
  104. data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +106 -0
  105. data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +43 -0
  106. data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +93 -0
  107. data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +43 -0
  108. data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +88 -0
  109. data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +103 -0
  110. data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +466 -0
  111. data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +48 -0
  112. data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +95 -0
  113. data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +22 -20
  114. data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +17 -16
  115. data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +15 -13
  116. data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +31 -23
  117. data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +90 -88
  118. data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +421 -317
  119. data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +156 -152
  120. data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +787 -571
  121. data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +27 -25
  122. data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +115 -79
  123. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +206 -204
  124. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +954 -662
  125. data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +10 -8
  126. data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +33 -23
  127. data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +29 -27
  128. data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +127 -79
  129. data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +290 -0
  130. data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +1122 -0
  131. data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +49 -47
  132. data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +221 -159
  133. data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +10 -8
  134. data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +33 -23
  135. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +154 -151
  136. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +691 -499
  137. data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +39 -37
  138. data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +178 -130
  139. data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +9 -7
  140. data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +25 -19
  141. data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +18 -16
  142. data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +74 -53
  143. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +58 -0
  144. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +138 -0
  145. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +100 -98
  146. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +449 -329
  147. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +77 -75
  148. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +365 -264
  149. data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +11 -9
  150. data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +36 -26
  151. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +140 -105
  152. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +675 -345
  153. data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +8 -6
  154. data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +25 -17
  155. data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +15 -13
  156. data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +59 -42
  157. data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +13 -11
  158. data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +39 -25
  159. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +14 -12
  160. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +45 -35
  161. data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +10 -8
  162. data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +34 -24
  163. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +31 -29
  164. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +113 -85
  165. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +47 -45
  166. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +210 -151
  167. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +48 -46
  168. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +210 -142
  169. data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +9 -7
  170. data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +28 -20
  171. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +58 -54
  172. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +282 -193
  173. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +64 -62
  174. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +286 -218
  175. data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +15 -13
  176. data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +62 -42
  177. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +12 -10
  178. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +54 -39
  179. data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +53 -0
  180. data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +120 -0
  181. data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +55 -53
  182. data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +244 -185
  183. data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +57 -55
  184. data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +260 -192
  185. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +70 -68
  186. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +235 -191
  187. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +30 -28
  188. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +142 -112
  189. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +435 -428
  190. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +2037 -1507
  191. data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +25 -19
  192. data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +107 -64
  193. data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +216 -0
  194. data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +870 -0
  195. data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +44 -0
  196. data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +82 -0
  197. data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +49 -0
  198. data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +95 -0
  199. data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +15 -13
  200. data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +55 -40
  201. data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +52 -0
  202. data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +119 -0
  203. data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +62 -0
  204. data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +203 -0
  205. data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +47 -0
  206. data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +89 -0
  207. data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +69 -0
  208. data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +184 -0
  209. data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +32 -0
  210. data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +42 -0
  211. data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +71 -0
  212. data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +192 -0
  213. data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +54 -0
  214. data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +126 -0
  215. data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +8 -6
  216. data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +29 -23
  217. data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +26 -24
  218. data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +125 -93
  219. data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +33 -31
  220. data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +149 -105
  221. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +16 -14
  222. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +63 -44
  223. data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +15 -13
  224. data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +53 -37
  225. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +175 -173
  226. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +803 -559
  227. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +3 -1
  228. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +2 -1
  229. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +75 -52
  230. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +368 -194
  231. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +24 -22
  232. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +95 -71
  233. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +60 -58
  234. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +266 -193
  235. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +62 -0
  236. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +146 -0
  237. data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +6 -4
  238. data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +22 -16
  239. data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +64 -62
  240. data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +297 -218
  241. data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +18 -16
  242. data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +73 -54
  243. data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +46 -44
  244. data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +197 -145
  245. data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +48 -0
  246. data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +101 -0
  247. data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +19 -17
  248. data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +91 -70
  249. data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +74 -0
  250. data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +202 -0
  251. data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +16 -14
  252. data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +64 -47
  253. data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +10 -8
  254. data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +34 -26
  255. data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +10 -8
  256. data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +25 -19
  257. data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +9 -7
  258. data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +25 -19
  259. data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +21 -19
  260. data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +85 -61
  261. data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +19 -17
  262. data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +65 -52
  263. data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +14 -12
  264. data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +56 -43
  265. data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +21 -19
  266. data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +74 -58
  267. data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +30 -28
  268. data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +163 -125
  269. data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +34 -32
  270. data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +157 -113
  271. data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +66 -0
  272. data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +183 -0
  273. data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +3 -1
  274. data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +2 -1
  275. data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +42 -0
  276. data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +136 -0
  277. data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +13 -11
  278. data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +51 -34
  279. data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +19 -17
  280. data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +80 -52
  281. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +26 -0
  282. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +41 -0
  283. data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +10 -8
  284. data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +31 -19
  285. data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +51 -0
  286. data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +114 -0
  287. data/src/core/ext/upb-generated/google/api/annotations.upb.c +10 -8
  288. data/src/core/ext/upb-generated/google/api/annotations.upb.h +6 -5
  289. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +100 -98
  290. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +371 -281
  291. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +110 -108
  292. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +409 -298
  293. data/src/core/ext/upb-generated/google/api/http.upb.c +29 -27
  294. data/src/core/ext/upb-generated/google/api/http.upb.h +117 -89
  295. data/src/core/ext/upb-generated/google/api/httpbody.upb.c +46 -0
  296. data/src/core/ext/upb-generated/google/api/httpbody.upb.h +99 -0
  297. data/src/core/ext/upb-generated/google/protobuf/any.upb.c +9 -7
  298. data/src/core/ext/upb-generated/google/protobuf/any.upb.h +32 -22
  299. data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +287 -234
  300. data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +1088 -764
  301. data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +9 -7
  302. data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +28 -18
  303. data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +6 -4
  304. data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +22 -16
  305. data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +30 -28
  306. data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +80 -64
  307. data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +9 -7
  308. data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +28 -18
  309. data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +40 -38
  310. data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +213 -149
  311. data/src/core/ext/upb-generated/google/rpc/status.upb.c +11 -9
  312. data/src/core/ext/upb-generated/google/rpc/status.upb.h +36 -26
  313. data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +84 -0
  314. data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +276 -0
  315. data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +20 -18
  316. data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +60 -42
  317. data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +95 -93
  318. data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +396 -285
  319. data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +15 -13
  320. data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +58 -39
  321. data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +12 -10
  322. data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +50 -35
  323. data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +55 -53
  324. data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +255 -183
  325. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +22 -20
  326. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +76 -57
  327. data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +46 -44
  328. data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +102 -78
  329. data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +16 -14
  330. data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +32 -22
  331. data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +9 -7
  332. data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +6 -5
  333. data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +16 -14
  334. data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +32 -22
  335. data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +15 -13
  336. data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +31 -23
  337. data/src/core/ext/upb-generated/validate/validate.upb.c +320 -304
  338. data/src/core/ext/upb-generated/validate/validate.upb.h +1114 -741
  339. data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +110 -0
  340. data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +191 -0
  341. data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +55 -0
  342. data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +87 -0
  343. data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +38 -0
  344. data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +38 -0
  345. data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +40 -38
  346. data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +109 -78
  347. data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +53 -0
  348. data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +81 -0
  349. data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +8 -6
  350. data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +27 -19
  351. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +17 -15
  352. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +63 -46
  353. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +14 -12
  354. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +31 -25
  355. data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +46 -0
  356. data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +95 -0
  357. data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +11 -9
  358. data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +39 -27
  359. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +20 -18
  360. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +73 -54
  361. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +12 -10
  362. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +43 -29
  363. data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +23 -21
  364. data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +43 -31
  365. data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +203 -0
  366. data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +726 -0
  367. data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +52 -0
  368. data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +132 -0
  369. data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +65 -0
  370. data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +173 -0
  371. data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +10 -8
  372. data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +33 -23
  373. data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +84 -0
  374. data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +55 -0
  375. data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +127 -0
  376. data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +50 -0
  377. data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +14 -12
  378. data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +67 -67
  379. data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +43 -0
  380. data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +40 -0
  381. data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +53 -0
  382. data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +40 -0
  383. data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +49 -0
  384. data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +35 -0
  385. data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +46 -0
  386. data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +35 -0
  387. data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +46 -0
  388. data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +35 -0
  389. data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +142 -0
  390. data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +40 -0
  391. data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +51 -0
  392. data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +35 -0
  393. data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +8 -6
  394. data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +1 -1
  395. data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +8 -6
  396. data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +4 -4
  397. data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +20 -17
  398. data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +46 -46
  399. data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +248 -240
  400. data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +55 -55
  401. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +16 -13
  402. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +10 -10
  403. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +375 -371
  404. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +76 -76
  405. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +14 -11
  406. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +4 -4
  407. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +16 -13
  408. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +4 -4
  409. data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +206 -0
  410. data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +105 -0
  411. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +15 -13
  412. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +22 -22
  413. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +15 -12
  414. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +4 -4
  415. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +85 -80
  416. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +73 -73
  417. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +18 -16
  418. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +16 -16
  419. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +14 -12
  420. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +4 -4
  421. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +15 -12
  422. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +7 -7
  423. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +53 -0
  424. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +40 -0
  425. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +21 -18
  426. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +43 -43
  427. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +23 -20
  428. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +25 -25
  429. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +14 -12
  430. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +4 -4
  431. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +250 -221
  432. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +53 -43
  433. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +12 -9
  434. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +4 -4
  435. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +14 -11
  436. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +7 -7
  437. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +14 -11
  438. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +4 -4
  439. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +18 -15
  440. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +4 -4
  441. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +13 -11
  442. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +4 -4
  443. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +18 -15
  444. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +13 -13
  445. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +19 -16
  446. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +19 -19
  447. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +18 -15
  448. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +16 -16
  449. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +14 -11
  450. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +4 -4
  451. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +52 -45
  452. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +19 -19
  453. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +23 -20
  454. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +22 -22
  455. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +19 -16
  456. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +4 -4
  457. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +15 -12
  458. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +7 -7
  459. data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +69 -0
  460. data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +35 -0
  461. data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +17 -14
  462. data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +25 -25
  463. data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +17 -14
  464. data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +28 -28
  465. data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +23 -21
  466. data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +25 -25
  467. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +19 -16
  468. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +10 -10
  469. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +816 -801
  470. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +160 -160
  471. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +52 -37
  472. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +10 -10
  473. data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +188 -0
  474. data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +85 -0
  475. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +54 -0
  476. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +35 -0
  477. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +57 -0
  478. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +35 -0
  479. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +15 -12
  480. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +7 -7
  481. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +72 -0
  482. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +35 -0
  483. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +99 -0
  484. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +35 -0
  485. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +52 -0
  486. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +35 -0
  487. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +71 -0
  488. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +40 -0
  489. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +57 -0
  490. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +30 -0
  491. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +75 -0
  492. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +40 -0
  493. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +77 -0
  494. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +35 -0
  495. data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +15 -11
  496. data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +4 -4
  497. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +17 -14
  498. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +16 -16
  499. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +18 -15
  500. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +10 -10
  501. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +14 -11
  502. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +7 -7
  503. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +17 -13
  504. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +4 -4
  505. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +135 -130
  506. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +58 -58
  507. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +15 -11
  508. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +1 -1
  509. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +169 -140
  510. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +24 -19
  511. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +19 -16
  512. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +10 -10
  513. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +21 -17
  514. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +19 -19
  515. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +58 -0
  516. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +40 -0
  517. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +14 -11
  518. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +4 -4
  519. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +17 -14
  520. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +22 -22
  521. data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +16 -13
  522. data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +7 -7
  523. data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +20 -17
  524. data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +16 -16
  525. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +46 -0
  526. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +35 -0
  527. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +13 -10
  528. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +13 -13
  529. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +52 -0
  530. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +50 -0
  531. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +15 -12
  532. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +7 -7
  533. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +15 -12
  534. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +4 -4
  535. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +15 -12
  536. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +4 -4
  537. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +15 -12
  538. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +4 -4
  539. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +15 -12
  540. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +10 -10
  541. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +15 -12
  542. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +7 -7
  543. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +14 -12
  544. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +7 -7
  545. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +16 -13
  546. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +10 -10
  547. data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +13 -10
  548. data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +22 -22
  549. data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +14 -11
  550. data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +16 -16
  551. data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +53 -0
  552. data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +45 -0
  553. data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +10 -8
  554. data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +1 -1
  555. data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +94 -0
  556. data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +35 -0
  557. data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +12 -10
  558. data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +7 -7
  559. data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +11 -8
  560. data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +10 -10
  561. data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +38 -0
  562. data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +30 -0
  563. data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +11 -9
  564. data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +4 -4
  565. data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +57 -0
  566. data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +35 -0
  567. data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +5 -5
  568. data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +1 -1
  569. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +6 -6
  570. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +40 -40
  571. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +6 -6
  572. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +43 -43
  573. data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +3 -3
  574. data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +10 -10
  575. data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +39 -0
  576. data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +35 -0
  577. data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +3 -3
  578. data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +4 -4
  579. data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +3 -3
  580. data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +82 -82
  581. data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +3 -3
  582. data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +4 -4
  583. data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +3 -3
  584. data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +4 -4
  585. data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +3 -3
  586. data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +13 -13
  587. data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +3 -3
  588. data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +4 -4
  589. data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +3 -3
  590. data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +28 -28
  591. data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +4 -4
  592. data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +4 -4
  593. data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +67 -0
  594. data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +50 -0
  595. data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +4 -4
  596. data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +10 -10
  597. data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +5 -5
  598. data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +4 -4
  599. data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +4 -4
  600. data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +1 -1
  601. data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +4 -4
  602. data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +4 -4
  603. data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +4 -4
  604. data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +4 -4
  605. data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +6 -6
  606. data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +70 -70
  607. data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +63 -0
  608. data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +45 -0
  609. data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +47 -0
  610. data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +35 -0
  611. data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +35 -0
  612. data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +30 -0
  613. data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +4 -4
  614. data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +13 -13
  615. data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +40 -0
  616. data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +35 -0
  617. data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +5 -5
  618. data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +4 -4
  619. data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +7 -7
  620. data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +7 -7
  621. data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +4 -4
  622. data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +7 -7
  623. data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +41 -0
  624. data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +35 -0
  625. data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +6 -6
  626. data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +4 -4
  627. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +6 -6
  628. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +7 -7
  629. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +6 -6
  630. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +4 -4
  631. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +126 -0
  632. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +80 -0
  633. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +40 -0
  634. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +40 -0
  635. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +52 -0
  636. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +40 -0
  637. data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +5 -5
  638. data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +4 -4
  639. data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +4 -4
  640. data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +2 -2
  641. data/src/core/ext/xds/upb_utils.h +8 -6
  642. data/src/core/ext/xds/xds_api.cc +52 -35
  643. data/src/core/ext/xds/xds_api.h +4 -4
  644. data/src/core/ext/xds/xds_bootstrap.cc +35 -3
  645. data/src/core/ext/xds/xds_bootstrap.h +11 -0
  646. data/src/core/ext/xds/xds_channel_stack_modifier.cc +14 -17
  647. data/src/core/ext/xds/xds_channel_stack_modifier.h +4 -3
  648. data/src/core/ext/xds/xds_client.cc +141 -106
  649. data/src/core/ext/xds/xds_client.h +23 -15
  650. data/src/core/ext/xds/xds_client_stats.cc +15 -15
  651. data/src/core/ext/xds/xds_client_stats.h +5 -4
  652. data/src/core/ext/xds/xds_cluster.cc +18 -16
  653. data/src/core/ext/xds/xds_cluster.h +3 -6
  654. data/src/core/ext/xds/xds_common_types.cc +1 -1
  655. data/src/core/ext/xds/xds_common_types.h +5 -20
  656. data/src/core/ext/xds/xds_endpoint.cc +2 -2
  657. data/src/core/ext/xds/xds_endpoint.h +1 -1
  658. data/src/core/ext/xds/xds_http_fault_filter.cc +6 -6
  659. data/src/core/ext/xds/xds_http_fault_filter.h +3 -3
  660. data/src/core/ext/xds/xds_http_filters.cc +6 -5
  661. data/src/core/ext/xds/xds_http_filters.h +4 -4
  662. data/src/core/ext/xds/xds_http_rbac_filter.cc +5 -5
  663. data/src/core/ext/xds/xds_http_rbac_filter.h +3 -3
  664. data/src/core/ext/xds/xds_listener.cc +14 -11
  665. data/src/core/ext/xds/xds_listener.h +1 -1
  666. data/src/core/ext/xds/xds_resource_type.h +1 -1
  667. data/src/core/ext/xds/xds_route_config.cc +13 -21
  668. data/src/core/ext/xds/xds_route_config.h +1 -1
  669. data/src/core/ext/xds/xds_routing.cc +1 -1
  670. data/src/core/ext/xds/xds_server_config_fetcher.cc +3 -2
  671. data/src/core/lib/backoff/backoff.cc +7 -10
  672. data/src/core/lib/backoff/backoff.h +8 -8
  673. data/src/core/lib/channel/call_finalization.h +86 -0
  674. data/src/core/lib/channel/channel_args.cc +60 -0
  675. data/src/core/lib/channel/channel_args.h +2 -0
  676. data/src/core/lib/channel/channel_args_preconditioning.cc +1 -0
  677. data/src/core/lib/channel/channel_stack.cc +2 -3
  678. data/src/core/lib/channel/channel_stack.h +41 -5
  679. data/src/core/lib/channel/channel_stack_builder.cc +66 -244
  680. data/src/core/lib/channel/channel_stack_builder.h +95 -144
  681. data/src/core/lib/channel/channel_trace.cc +3 -6
  682. data/src/core/lib/channel/connected_channel.cc +9 -4
  683. data/src/core/lib/channel/connected_channel.h +1 -1
  684. data/src/core/lib/channel/context.h +11 -0
  685. data/src/core/lib/channel/handshaker.cc +1 -1
  686. data/src/core/lib/channel/handshaker.h +1 -1
  687. data/src/core/lib/channel/promise_based_filter.cc +669 -0
  688. data/src/core/lib/channel/promise_based_filter.h +423 -0
  689. data/src/core/lib/compression/compression.cc +1 -1
  690. data/src/core/lib/compression/compression_internal.cc +1 -1
  691. data/src/core/lib/config/core_configuration.cc +8 -2
  692. data/src/core/lib/config/core_configuration.h +39 -0
  693. data/src/core/lib/event_engine/default_event_engine_factory.cc +27 -0
  694. data/src/core/lib/event_engine/event_engine.cc +23 -8
  695. data/src/core/lib/event_engine/event_engine_factory.h +3 -0
  696. data/src/core/lib/event_engine/memory_allocator.cc +9 -13
  697. data/src/core/lib/event_engine/{event_engine_factory.cc → resolved_address.cc} +10 -20
  698. data/src/core/lib/gpr/sync_posix.cc +1 -0
  699. data/src/core/lib/gpr/time.cc +2 -1
  700. data/src/core/lib/gpr/useful.h +14 -0
  701. data/src/core/lib/gprpp/capture.h +76 -0
  702. data/src/core/lib/gprpp/debug_location.h +2 -0
  703. data/src/core/lib/gprpp/status_helper.cc +12 -12
  704. data/src/core/lib/gprpp/status_helper.h +4 -4
  705. data/src/core/lib/gprpp/time.cc +186 -0
  706. data/src/core/lib/gprpp/time.h +292 -0
  707. data/src/core/lib/http/format_request.cc +27 -23
  708. data/src/core/lib/http/format_request.h +7 -6
  709. data/src/core/lib/http/httpcli.cc +306 -229
  710. data/src/core/lib/http/httpcli.h +182 -77
  711. data/src/core/lib/http/httpcli_security_connector.cc +62 -73
  712. data/src/core/lib/http/httpcli_ssl_credentials.h +37 -0
  713. data/src/core/lib/http/parser.h +1 -1
  714. data/src/core/lib/iomgr/buffer_list.h +5 -5
  715. data/src/core/lib/iomgr/error.cc +13 -12
  716. data/src/core/lib/iomgr/error.h +0 -5
  717. data/src/core/lib/iomgr/ev_apple.cc +6 -5
  718. data/src/core/lib/iomgr/ev_epoll1_linux.cc +8 -7
  719. data/src/core/lib/iomgr/ev_epollex_linux.cc +12 -9
  720. data/src/core/lib/iomgr/ev_poll_posix.cc +7 -7
  721. data/src/core/lib/iomgr/ev_posix.cc +3 -3
  722. data/src/core/lib/iomgr/ev_posix.h +1 -1
  723. data/src/core/lib/iomgr/event_engine/pollset.cc +2 -3
  724. data/src/core/lib/iomgr/event_engine/resolver.cc +1 -1
  725. data/src/core/lib/iomgr/event_engine/tcp.cc +4 -3
  726. data/src/core/lib/iomgr/event_engine/timer.cc +3 -4
  727. data/src/core/lib/iomgr/exec_ctx.cc +3 -88
  728. data/src/core/lib/iomgr/exec_ctx.h +7 -23
  729. data/src/core/lib/iomgr/iocp_windows.cc +9 -9
  730. data/src/core/lib/iomgr/iocp_windows.h +1 -1
  731. data/src/core/lib/iomgr/polling_entity.h +6 -0
  732. data/src/core/lib/iomgr/pollset.cc +1 -1
  733. data/src/core/lib/iomgr/pollset.h +4 -4
  734. data/src/core/lib/iomgr/pollset_windows.cc +2 -2
  735. data/src/core/lib/iomgr/port.h +4 -7
  736. data/src/core/lib/iomgr/resolve_address_posix.cc +1 -1
  737. data/src/core/lib/iomgr/sockaddr_utils_posix.cc +62 -0
  738. data/src/core/lib/iomgr/socket_utils_common_posix.cc +0 -17
  739. data/src/core/lib/iomgr/tcp_client.cc +1 -1
  740. data/src/core/lib/iomgr/tcp_client.h +3 -2
  741. data/src/core/lib/iomgr/tcp_client_cfstream.cc +1 -1
  742. data/src/core/lib/iomgr/tcp_client_posix.cc +2 -2
  743. data/src/core/lib/iomgr/tcp_client_posix.h +1 -1
  744. data/src/core/lib/iomgr/tcp_client_windows.cc +1 -1
  745. data/src/core/lib/iomgr/tcp_posix.cc +2 -1
  746. data/src/core/lib/iomgr/tcp_windows.cc +17 -10
  747. data/src/core/lib/iomgr/timer.cc +2 -2
  748. data/src/core/lib/iomgr/timer.h +11 -6
  749. data/src/core/lib/iomgr/timer_generic.cc +96 -77
  750. data/src/core/lib/iomgr/timer_manager.cc +15 -14
  751. data/src/core/lib/iomgr/work_serializer.cc +15 -10
  752. data/src/core/lib/json/json_util.cc +4 -4
  753. data/src/core/lib/json/json_util.h +2 -2
  754. data/src/core/lib/promise/activity.cc +14 -8
  755. data/src/core/lib/promise/activity.h +143 -131
  756. data/src/core/lib/promise/arena_promise.h +188 -0
  757. data/src/core/lib/promise/detail/basic_seq.h +92 -3
  758. data/src/core/lib/promise/detail/promise_factory.h +1 -1
  759. data/src/core/lib/promise/loop.h +34 -8
  760. data/src/core/lib/promise/poll.h +6 -0
  761. data/src/core/lib/promise/promise.h +95 -0
  762. data/src/core/lib/promise/seq.h +19 -1
  763. data/src/core/lib/promise/sleep.cc +74 -0
  764. data/src/core/lib/promise/sleep.h +66 -0
  765. data/src/core/lib/promise/try_seq.h +157 -0
  766. data/src/core/lib/resolver/resolver_factory.h +22 -26
  767. data/src/core/lib/resolver/resolver_registry.cc +98 -137
  768. data/src/core/lib/resolver/resolver_registry.h +59 -33
  769. data/src/core/lib/resource_quota/memory_quota.cc +118 -94
  770. data/src/core/lib/resource_quota/memory_quota.h +100 -64
  771. data/src/core/lib/security/authorization/evaluate_args.cc +1 -11
  772. data/src/core/lib/security/authorization/evaluate_args.h +0 -1
  773. data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +109 -0
  774. data/src/core/lib/security/authorization/grpc_server_authz_filter.h +51 -0
  775. data/src/core/lib/security/authorization/matchers.cc +5 -5
  776. data/src/core/lib/security/authorization/matchers.h +2 -2
  777. data/src/core/lib/security/authorization/rbac_policy.cc +3 -3
  778. data/src/core/lib/security/authorization/rbac_policy.h +3 -2
  779. data/src/core/lib/security/credentials/alts/alts_credentials.h +6 -0
  780. data/src/core/lib/security/credentials/call_creds_util.cc +87 -0
  781. data/src/core/lib/security/credentials/call_creds_util.h +42 -0
  782. data/src/core/lib/security/credentials/channel_creds_registry.h +97 -0
  783. data/src/core/lib/security/credentials/channel_creds_registry_init.cc +70 -0
  784. data/src/core/lib/security/credentials/composite/composite_credentials.cc +17 -81
  785. data/src/core/lib/security/credentials/composite/composite_credentials.h +21 -10
  786. data/src/core/lib/security/credentials/credentials.cc +2 -3
  787. data/src/core/lib/security/credentials/credentials.h +64 -43
  788. data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +46 -27
  789. data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +1 -0
  790. data/src/core/lib/security/credentials/external/external_account_credentials.cc +49 -29
  791. data/src/core/lib/security/credentials/external/external_account_credentials.h +4 -3
  792. data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +0 -1
  793. data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +33 -12
  794. data/src/core/lib/security/credentials/external/url_external_account_credentials.h +1 -0
  795. data/src/core/lib/security/credentials/fake/fake_credentials.cc +18 -19
  796. data/src/core/lib/security/credentials/fake/fake_credentials.h +11 -14
  797. data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +15 -9
  798. data/src/core/lib/security/credentials/google_default/google_default_credentials.h +6 -0
  799. data/src/core/lib/security/credentials/iam/iam_credentials.cc +12 -17
  800. data/src/core/lib/security/credentials/iam/iam_credentials.h +10 -9
  801. data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +13 -7
  802. data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +18 -22
  803. data/src/core/lib/security/credentials/jwt/jwt_credentials.h +9 -9
  804. data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +50 -30
  805. data/src/core/lib/security/credentials/jwt/jwt_verifier.h +1 -1
  806. data/src/core/lib/security/credentials/local/local_credentials.h +6 -0
  807. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +117 -125
  808. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +49 -28
  809. data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +95 -152
  810. data/src/core/lib/security/credentials/plugin/plugin_credentials.h +54 -28
  811. data/src/core/lib/security/credentials/ssl/ssl_credentials.h +6 -3
  812. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +19 -0
  813. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +10 -1
  814. data/src/core/lib/security/credentials/tls/tls_credentials.h +6 -0
  815. data/src/core/lib/security/credentials/xds/xds_credentials.h +5 -0
  816. data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +8 -14
  817. data/src/core/lib/security/security_connector/alts/alts_security_connector.h +1 -1
  818. data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +4 -12
  819. data/src/core/lib/security/security_connector/fake/fake_security_connector.h +0 -2
  820. data/src/core/lib/security/security_connector/insecure/insecure_security_connector.cc +6 -16
  821. data/src/core/lib/security/security_connector/insecure/insecure_security_connector.h +4 -9
  822. data/src/core/lib/security/security_connector/local/local_security_connector.cc +8 -16
  823. data/src/core/lib/security/security_connector/security_connector.cc +3 -11
  824. data/src/core/lib/security/security_connector/security_connector.h +11 -20
  825. data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +6 -11
  826. data/src/core/lib/security/security_connector/ssl_utils.cc +15 -7
  827. data/src/core/lib/security/security_connector/ssl_utils.h +8 -3
  828. data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +23 -14
  829. data/src/core/lib/security/security_connector/tls/tls_security_connector.h +6 -6
  830. data/src/core/lib/security/transport/auth_filters.h +30 -4
  831. data/src/core/lib/security/transport/client_auth_filter.cc +73 -364
  832. data/src/core/lib/security/transport/security_handshaker.cc +14 -6
  833. data/src/core/lib/security/transport/server_auth_filter.cc +1 -0
  834. data/src/core/lib/service_config/service_config.h +6 -51
  835. data/src/core/lib/service_config/{service_config.cc → service_config_impl.cc} +19 -16
  836. data/src/core/lib/service_config/service_config_impl.h +125 -0
  837. data/src/core/lib/service_config/service_config_parser.cc +30 -26
  838. data/src/core/lib/service_config/service_config_parser.h +36 -27
  839. data/src/core/lib/slice/slice.cc +76 -181
  840. data/src/core/lib/slice/slice.h +28 -15
  841. data/src/core/lib/slice/slice_internal.h +12 -30
  842. data/src/core/lib/slice/slice_refcount.cc +18 -0
  843. data/src/core/lib/slice/slice_refcount.h +2 -72
  844. data/src/core/lib/slice/slice_refcount_base.h +16 -120
  845. data/src/core/lib/surface/builtins.cc +6 -6
  846. data/src/core/lib/surface/call.cc +14 -7
  847. data/src/core/lib/surface/call.h +1 -1
  848. data/src/core/lib/surface/channel.cc +26 -31
  849. data/src/core/lib/surface/channel.h +6 -7
  850. data/src/core/lib/surface/channel_init.cc +1 -1
  851. data/src/core/lib/surface/channel_init.h +4 -4
  852. data/src/core/lib/surface/completion_queue.cc +10 -9
  853. data/src/core/lib/surface/init.cc +78 -7
  854. data/src/core/lib/surface/init.h +0 -2
  855. data/src/core/lib/surface/lame_client.cc +2 -1
  856. data/src/core/lib/surface/server.cc +11 -22
  857. data/src/core/lib/surface/server.h +3 -3
  858. data/src/core/lib/surface/version.cc +2 -2
  859. data/src/core/lib/transport/bdp_estimator.cc +9 -10
  860. data/src/core/lib/transport/bdp_estimator.h +2 -2
  861. data/src/core/lib/transport/error_utils.cc +5 -3
  862. data/src/core/lib/transport/error_utils.h +2 -15
  863. data/src/core/lib/transport/metadata_batch.h +275 -97
  864. data/src/core/lib/transport/parsed_metadata.h +33 -17
  865. data/src/core/lib/transport/status_conversion.cc +2 -2
  866. data/src/core/lib/transport/status_conversion.h +1 -1
  867. data/src/core/lib/transport/timeout_encoding.cc +32 -29
  868. data/src/core/lib/transport/timeout_encoding.h +3 -3
  869. data/src/core/lib/transport/transport.cc +3 -1
  870. data/src/core/lib/transport/transport.h +87 -2
  871. data/src/core/lib/transport/transport_impl.h +13 -0
  872. data/src/core/lib/transport/transport_op_string.cc +5 -14
  873. data/src/core/lib/uri/uri_parser.cc +4 -0
  874. data/src/core/lib/uri/uri_parser.h +1 -0
  875. data/src/core/plugin_registry/grpc_plugin_registry.cc +19 -88
  876. data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +85 -0
  877. data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +26 -21
  878. data/src/core/tsi/alts/handshaker/alts_shared_resource.cc +9 -1
  879. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +19 -11
  880. data/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +2 -2
  881. data/src/core/tsi/alts/handshaker/alts_tsi_utils.h +1 -1
  882. data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +2 -2
  883. data/src/core/tsi/alts/handshaker/transport_security_common_api.h +2 -2
  884. data/src/core/tsi/local_transport_security.cc +3 -11
  885. data/src/core/tsi/local_transport_security.h +1 -4
  886. data/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +141 -0
  887. data/src/core/tsi/ssl/key_logging/ssl_key_logging.h +81 -0
  888. data/src/core/tsi/ssl_transport_security.cc +52 -1
  889. data/src/core/tsi/ssl_transport_security.h +20 -0
  890. data/src/ruby/ext/grpc/extconf.rb +1 -1
  891. data/src/ruby/ext/grpc/rb_channel.c +5 -2
  892. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +18 -24
  893. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +27 -36
  894. data/src/ruby/ext/grpc/rb_server.c +7 -4
  895. data/src/ruby/lib/grpc/version.rb +1 -1
  896. data/third_party/cares/cares/{ares.h → include/ares.h} +73 -1
  897. data/third_party/cares/cares/{ares_dns.h → include/ares_dns.h} +9 -0
  898. data/third_party/cares/cares/{ares_rules.h → include/ares_rules.h} +0 -0
  899. data/third_party/cares/cares/{ares_version.h → include/ares_version.h} +3 -3
  900. data/third_party/cares/cares/{ares__close_sockets.c → src/lib/ares__close_sockets.c} +2 -2
  901. data/third_party/cares/cares/{ares__get_hostent.c → src/lib/ares__get_hostent.c} +1 -2
  902. data/third_party/cares/cares/src/lib/ares__parse_into_addrinfo.c +260 -0
  903. data/third_party/cares/cares/{ares__read_line.c → src/lib/ares__read_line.c} +0 -0
  904. data/third_party/cares/cares/src/lib/ares__readaddrinfo.c +264 -0
  905. data/third_party/cares/cares/src/lib/ares__sortaddrinfo.c +499 -0
  906. data/third_party/cares/cares/{ares__timeval.c → src/lib/ares__timeval.c} +0 -0
  907. data/third_party/cares/cares/src/lib/ares_android.c +444 -0
  908. data/third_party/cares/cares/src/lib/ares_android.h +27 -0
  909. data/third_party/cares/cares/{ares_cancel.c → src/lib/ares_cancel.c} +0 -0
  910. data/third_party/cares/cares/{ares_create_query.c → src/lib/ares_create_query.c} +8 -17
  911. data/third_party/cares/cares/{ares_data.c → src/lib/ares_data.c} +18 -0
  912. data/third_party/cares/cares/{ares_data.h → src/lib/ares_data.h} +2 -0
  913. data/third_party/cares/cares/{ares_destroy.c → src/lib/ares_destroy.c} +0 -0
  914. data/third_party/cares/cares/{ares_expand_name.c → src/lib/ares_expand_name.c} +114 -23
  915. data/third_party/cares/cares/{ares_expand_string.c → src/lib/ares_expand_string.c} +2 -5
  916. data/third_party/cares/cares/{ares_fds.c → src/lib/ares_fds.c} +0 -0
  917. data/third_party/cares/cares/{ares_free_hostent.c → src/lib/ares_free_hostent.c} +6 -4
  918. data/third_party/cares/cares/{ares_free_string.c → src/lib/ares_free_string.c} +0 -0
  919. data/third_party/cares/cares/src/lib/ares_freeaddrinfo.c +59 -0
  920. data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +772 -0
  921. data/third_party/cares/cares/{ares_getenv.c → src/lib/ares_getenv.c} +0 -2
  922. data/third_party/cares/cares/{ares_getenv.h → src/lib/ares_getenv.h} +0 -0
  923. data/third_party/cares/cares/{ares_gethostbyaddr.c → src/lib/ares_gethostbyaddr.c} +2 -9
  924. data/third_party/cares/cares/{ares_gethostbyname.c → src/lib/ares_gethostbyname.c} +25 -20
  925. data/third_party/cares/cares/{ares_getnameinfo.c → src/lib/ares_getnameinfo.c} +4 -10
  926. data/third_party/cares/cares/{ares_getsock.c → src/lib/ares_getsock.c} +0 -0
  927. data/third_party/cares/cares/{ares_inet_net_pton.h → src/lib/ares_inet_net_pton.h} +0 -0
  928. data/third_party/cares/cares/{ares_init.c → src/lib/ares_init.c} +79 -40
  929. data/third_party/cares/cares/{ares_iphlpapi.h → src/lib/ares_iphlpapi.h} +0 -0
  930. data/third_party/cares/cares/{ares_ipv6.h → src/lib/ares_ipv6.h} +7 -0
  931. data/third_party/cares/cares/{ares_library_init.c → src/lib/ares_library_init.c} +7 -2
  932. data/third_party/cares/cares/{ares_library_init.h → src/lib/ares_library_init.h} +1 -1
  933. data/third_party/cares/cares/{ares_llist.c → src/lib/ares_llist.c} +0 -0
  934. data/third_party/cares/cares/{ares_llist.h → src/lib/ares_llist.h} +0 -0
  935. data/third_party/cares/cares/{ares_mkquery.c → src/lib/ares_mkquery.c} +0 -0
  936. data/third_party/cares/cares/src/lib/ares_nameser.h +482 -0
  937. data/third_party/cares/cares/{ares_nowarn.c → src/lib/ares_nowarn.c} +0 -0
  938. data/third_party/cares/cares/{ares_nowarn.h → src/lib/ares_nowarn.h} +0 -0
  939. data/third_party/cares/cares/{ares_options.c → src/lib/ares_options.c} +0 -0
  940. data/third_party/cares/cares/src/lib/ares_parse_a_reply.c +209 -0
  941. data/third_party/cares/cares/src/lib/ares_parse_aaaa_reply.c +212 -0
  942. data/third_party/cares/cares/src/lib/ares_parse_caa_reply.c +199 -0
  943. data/third_party/cares/cares/{ares_parse_mx_reply.c → src/lib/ares_parse_mx_reply.c} +2 -8
  944. data/third_party/cares/cares/{ares_parse_naptr_reply.c → src/lib/ares_parse_naptr_reply.c} +2 -13
  945. data/third_party/cares/cares/{ares_parse_ns_reply.c → src/lib/ares_parse_ns_reply.c} +5 -11
  946. data/third_party/cares/cares/{ares_parse_ptr_reply.c → src/lib/ares_parse_ptr_reply.c} +53 -46
  947. data/third_party/cares/cares/src/lib/ares_parse_soa_reply.c +179 -0
  948. data/third_party/cares/cares/{ares_parse_srv_reply.c → src/lib/ares_parse_srv_reply.c} +2 -13
  949. data/third_party/cares/cares/{ares_parse_txt_reply.c → src/lib/ares_parse_txt_reply.c} +3 -9
  950. data/third_party/cares/cares/{ares_platform.c → src/lib/ares_platform.c} +0 -0
  951. data/third_party/cares/cares/{ares_platform.h → src/lib/ares_platform.h} +0 -0
  952. data/third_party/cares/cares/{ares_private.h → src/lib/ares_private.h} +52 -11
  953. data/third_party/cares/cares/{ares_process.c → src/lib/ares_process.c} +127 -52
  954. data/third_party/cares/cares/{ares_query.c → src/lib/ares_query.c} +3 -9
  955. data/third_party/cares/cares/{ares_search.c → src/lib/ares_search.c} +5 -7
  956. data/third_party/cares/cares/{ares_send.c → src/lib/ares_send.c} +2 -8
  957. data/third_party/cares/cares/{ares_setup.h → src/lib/ares_setup.h} +4 -1
  958. data/third_party/cares/cares/{ares_strcasecmp.c → src/lib/ares_strcasecmp.c} +0 -0
  959. data/third_party/cares/cares/{ares_strcasecmp.h → src/lib/ares_strcasecmp.h} +0 -0
  960. data/third_party/cares/cares/{ares_strdup.c → src/lib/ares_strdup.c} +0 -0
  961. data/third_party/cares/cares/{ares_strdup.h → src/lib/ares_strdup.h} +0 -0
  962. data/third_party/cares/cares/{ares_strerror.c → src/lib/ares_strerror.c} +0 -0
  963. data/third_party/cares/cares/{ares_strsplit.c → src/lib/ares_strsplit.c} +4 -0
  964. data/third_party/cares/cares/{ares_strsplit.h → src/lib/ares_strsplit.h} +0 -0
  965. data/third_party/cares/cares/{ares_timeout.c → src/lib/ares_timeout.c} +0 -0
  966. data/third_party/cares/cares/{ares_version.c → src/lib/ares_version.c} +0 -0
  967. data/third_party/cares/cares/{ares_writev.c → src/lib/ares_writev.c} +0 -0
  968. data/third_party/cares/cares/src/lib/ares_writev.h +36 -0
  969. data/third_party/cares/cares/{bitncmp.c → src/lib/bitncmp.c} +0 -0
  970. data/third_party/cares/cares/{bitncmp.h → src/lib/bitncmp.h} +0 -0
  971. data/third_party/cares/cares/src/lib/config-dos.h +115 -0
  972. data/third_party/cares/cares/{config-win32.h → src/lib/config-win32.h} +0 -0
  973. data/third_party/cares/cares/{inet_net_pton.c → src/lib/inet_net_pton.c} +2 -8
  974. data/third_party/cares/cares/{inet_ntop.c → src/lib/inet_ntop.c} +2 -8
  975. data/third_party/cares/cares/{setup_once.h → src/lib/setup_once.h} +0 -0
  976. data/third_party/cares/cares/{windows_port.c → src/lib/windows_port.c} +0 -0
  977. data/third_party/upb/third_party/utf8_range/naive.c +92 -0
  978. data/third_party/upb/third_party/utf8_range/range2-neon.c +157 -0
  979. data/third_party/upb/third_party/utf8_range/range2-sse.c +170 -0
  980. data/third_party/upb/third_party/utf8_range/utf8_range.h +9 -0
  981. data/third_party/upb/upb/decode.c +526 -319
  982. data/third_party/upb/upb/decode.h +43 -17
  983. data/third_party/upb/upb/decode_fast.c +303 -301
  984. data/third_party/upb/upb/decode_fast.h +18 -18
  985. data/third_party/upb/upb/decode_internal.h +73 -56
  986. data/third_party/upb/upb/def.c +1863 -1078
  987. data/third_party/upb/upb/def.h +318 -286
  988. data/third_party/upb/upb/def.hpp +129 -172
  989. data/third_party/upb/upb/encode.c +202 -175
  990. data/third_party/upb/upb/encode.h +15 -17
  991. data/third_party/upb/upb/msg.c +144 -124
  992. data/third_party/upb/upb/msg.h +40 -33
  993. data/third_party/upb/upb/msg_internal.h +321 -272
  994. data/third_party/upb/upb/reflection.c +239 -199
  995. data/third_party/upb/upb/reflection.h +87 -67
  996. data/third_party/upb/upb/reflection.hpp +6 -6
  997. data/third_party/upb/upb/table.c +222 -142
  998. data/third_party/upb/upb/table_internal.h +128 -96
  999. data/third_party/upb/upb/text_encode.c +113 -90
  1000. data/third_party/upb/upb/text_encode.h +10 -10
  1001. data/third_party/upb/upb/upb.c +111 -72
  1002. data/third_party/upb/upb/upb.h +120 -144
  1003. data/third_party/upb/upb/upb.hpp +31 -28
  1004. data/third_party/upb/upb/upb_internal.h +21 -11
  1005. metadata +301 -170
  1006. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +0 -44
  1007. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +0 -83
  1008. data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +0 -122
  1009. data/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc +0 -92
  1010. data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +0 -192
  1011. data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc +0 -52
  1012. data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc +0 -79
  1013. data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc +0 -125
  1014. data/src/core/ext/transport/chttp2/transport/chttp2_plugin.cc +0 -36
  1015. data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.c +0 -38
  1016. data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.h +0 -64
  1017. data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.c +0 -38
  1018. data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.h +0 -64
  1019. data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.c +0 -38
  1020. data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.h +0 -64
  1021. data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.c +0 -38
  1022. data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.h +0 -64
  1023. data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.c +0 -38
  1024. data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.h +0 -64
  1025. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/eval.upb.c +0 -102
  1026. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/eval.upb.h +0 -306
  1027. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/explain.upb.c +0 -56
  1028. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/explain.upb.h +0 -135
  1029. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/value.upb.c +0 -115
  1030. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/value.upb.h +0 -371
  1031. data/src/core/ext/upbdefs-generated/envoy/service/cluster/v3/cds.upbdefs.c +0 -67
  1032. data/src/core/ext/upbdefs-generated/envoy/service/cluster/v3/cds.upbdefs.h +0 -35
  1033. data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.c +0 -68
  1034. data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.h +0 -35
  1035. data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.c +0 -67
  1036. data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.h +0 -35
  1037. data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.c +0 -75
  1038. data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.h +0 -35
  1039. data/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.c +0 -69
  1040. data/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.h +0 -35
  1041. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/eval.upbdefs.c +0 -58
  1042. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/eval.upbdefs.h +0 -55
  1043. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/explain.upbdefs.c +0 -44
  1044. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/explain.upbdefs.h +0 -40
  1045. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/value.upbdefs.c +0 -75
  1046. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/value.upbdefs.h +0 -55
  1047. data/src/core/ext/xds/xds_channel_creds.cc +0 -108
  1048. data/src/core/ext/xds/xds_channel_creds.h +0 -50
  1049. data/src/core/lib/iomgr/iomgr_custom.cc +0 -82
  1050. data/src/core/lib/iomgr/iomgr_custom.h +0 -49
  1051. data/src/core/lib/iomgr/pollset_custom.cc +0 -105
  1052. data/src/core/lib/iomgr/pollset_custom.h +0 -37
  1053. data/src/core/lib/iomgr/pollset_set_custom.cc +0 -47
  1054. data/src/core/lib/iomgr/pollset_set_custom.h +0 -26
  1055. data/src/core/lib/iomgr/resolve_address_custom.cc +0 -191
  1056. data/src/core/lib/iomgr/resolve_address_custom.h +0 -126
  1057. data/src/core/lib/iomgr/tcp_client_custom.cc +0 -146
  1058. data/src/core/lib/iomgr/tcp_custom.cc +0 -350
  1059. data/src/core/lib/iomgr/tcp_custom.h +0 -85
  1060. data/src/core/lib/iomgr/tcp_server_custom.cc +0 -457
  1061. data/src/core/lib/iomgr/timer_custom.cc +0 -96
  1062. data/src/core/lib/iomgr/timer_custom.h +0 -43
  1063. data/src/core/lib/security/authorization/sdk_server_authz_filter.cc +0 -173
  1064. data/src/core/lib/security/authorization/sdk_server_authz_filter.h +0 -67
  1065. data/src/core/lib/slice/slice_intern.cc +0 -269
  1066. data/src/core/lib/slice/slice_utils.h +0 -200
  1067. data/src/core/lib/surface/init_secure.cc +0 -103
  1068. data/third_party/cares/cares/ares_getopt.c +0 -122
  1069. data/third_party/cares/cares/ares_getopt.h +0 -53
  1070. data/third_party/cares/cares/ares_parse_a_reply.c +0 -264
  1071. data/third_party/cares/cares/ares_parse_aaaa_reply.c +0 -264
  1072. data/third_party/cares/cares/ares_parse_soa_reply.c +0 -133
@@ -66,43 +66,43 @@ typedef struct validate_MapRules validate_MapRules;
66
66
  typedef struct validate_AnyRules validate_AnyRules;
67
67
  typedef struct validate_DurationRules validate_DurationRules;
68
68
  typedef struct validate_TimestampRules validate_TimestampRules;
69
- extern const upb_msglayout validate_FieldRules_msginit;
70
- extern const upb_msglayout validate_FloatRules_msginit;
71
- extern const upb_msglayout validate_DoubleRules_msginit;
72
- extern const upb_msglayout validate_Int32Rules_msginit;
73
- extern const upb_msglayout validate_Int64Rules_msginit;
74
- extern const upb_msglayout validate_UInt32Rules_msginit;
75
- extern const upb_msglayout validate_UInt64Rules_msginit;
76
- extern const upb_msglayout validate_SInt32Rules_msginit;
77
- extern const upb_msglayout validate_SInt64Rules_msginit;
78
- extern const upb_msglayout validate_Fixed32Rules_msginit;
79
- extern const upb_msglayout validate_Fixed64Rules_msginit;
80
- extern const upb_msglayout validate_SFixed32Rules_msginit;
81
- extern const upb_msglayout validate_SFixed64Rules_msginit;
82
- extern const upb_msglayout validate_BoolRules_msginit;
83
- extern const upb_msglayout validate_StringRules_msginit;
84
- extern const upb_msglayout validate_BytesRules_msginit;
85
- extern const upb_msglayout validate_EnumRules_msginit;
86
- extern const upb_msglayout validate_MessageRules_msginit;
87
- extern const upb_msglayout validate_RepeatedRules_msginit;
88
- extern const upb_msglayout validate_MapRules_msginit;
89
- extern const upb_msglayout validate_AnyRules_msginit;
90
- extern const upb_msglayout validate_DurationRules_msginit;
91
- extern const upb_msglayout validate_TimestampRules_msginit;
92
- extern const upb_msglayout_ext validate_disabled_ext;
93
- extern const upb_msglayout_ext validate_ignored_ext;
94
- extern const upb_msglayout_ext validate_required_ext;
95
- extern const upb_msglayout_ext validate_rules_ext;
69
+ extern const upb_MiniTable validate_FieldRules_msginit;
70
+ extern const upb_MiniTable validate_FloatRules_msginit;
71
+ extern const upb_MiniTable validate_DoubleRules_msginit;
72
+ extern const upb_MiniTable validate_Int32Rules_msginit;
73
+ extern const upb_MiniTable validate_Int64Rules_msginit;
74
+ extern const upb_MiniTable validate_UInt32Rules_msginit;
75
+ extern const upb_MiniTable validate_UInt64Rules_msginit;
76
+ extern const upb_MiniTable validate_SInt32Rules_msginit;
77
+ extern const upb_MiniTable validate_SInt64Rules_msginit;
78
+ extern const upb_MiniTable validate_Fixed32Rules_msginit;
79
+ extern const upb_MiniTable validate_Fixed64Rules_msginit;
80
+ extern const upb_MiniTable validate_SFixed32Rules_msginit;
81
+ extern const upb_MiniTable validate_SFixed64Rules_msginit;
82
+ extern const upb_MiniTable validate_BoolRules_msginit;
83
+ extern const upb_MiniTable validate_StringRules_msginit;
84
+ extern const upb_MiniTable validate_BytesRules_msginit;
85
+ extern const upb_MiniTable validate_EnumRules_msginit;
86
+ extern const upb_MiniTable validate_MessageRules_msginit;
87
+ extern const upb_MiniTable validate_RepeatedRules_msginit;
88
+ extern const upb_MiniTable validate_MapRules_msginit;
89
+ extern const upb_MiniTable validate_AnyRules_msginit;
90
+ extern const upb_MiniTable validate_DurationRules_msginit;
91
+ extern const upb_MiniTable validate_TimestampRules_msginit;
92
+ extern const upb_MiniTable_Extension validate_disabled_ext;
93
+ extern const upb_MiniTable_Extension validate_ignored_ext;
94
+ extern const upb_MiniTable_Extension validate_required_ext;
95
+ extern const upb_MiniTable_Extension validate_rules_ext;
96
96
  struct google_protobuf_Duration;
97
97
  struct google_protobuf_FieldOptions;
98
98
  struct google_protobuf_MessageOptions;
99
99
  struct google_protobuf_OneofOptions;
100
100
  struct google_protobuf_Timestamp;
101
- extern const upb_msglayout google_protobuf_Duration_msginit;
102
- extern const upb_msglayout google_protobuf_FieldOptions_msginit;
103
- extern const upb_msglayout google_protobuf_MessageOptions_msginit;
104
- extern const upb_msglayout google_protobuf_OneofOptions_msginit;
105
- extern const upb_msglayout google_protobuf_Timestamp_msginit;
101
+ extern const upb_MiniTable google_protobuf_Duration_msginit;
102
+ extern const upb_MiniTable google_protobuf_FieldOptions_msginit;
103
+ extern const upb_MiniTable google_protobuf_MessageOptions_msginit;
104
+ extern const upb_MiniTable google_protobuf_OneofOptions_msginit;
105
+ extern const upb_MiniTable google_protobuf_Timestamp_msginit;
106
106
 
107
107
  typedef enum {
108
108
  validate_UNKNOWN = 0,
@@ -111,32 +111,39 @@ typedef enum {
111
111
  } validate_KnownRegex;
112
112
 
113
113
 
114
+ extern const upb_MiniTable_Enum validate_KnownRegex_enuminit;
115
+
114
116
  /* validate.FieldRules */
115
117
 
116
- UPB_INLINE validate_FieldRules *validate_FieldRules_new(upb_arena *arena) {
117
- return (validate_FieldRules *)_upb_msg_new(&validate_FieldRules_msginit, arena);
118
+ UPB_INLINE validate_FieldRules* validate_FieldRules_new(upb_Arena* arena) {
119
+ return (validate_FieldRules*)_upb_Message_New(&validate_FieldRules_msginit, arena);
118
120
  }
119
- UPB_INLINE validate_FieldRules *validate_FieldRules_parse(const char *buf, size_t size,
120
- upb_arena *arena) {
121
- validate_FieldRules *ret = validate_FieldRules_new(arena);
121
+ UPB_INLINE validate_FieldRules* validate_FieldRules_parse(const char* buf, size_t size, upb_Arena* arena) {
122
+ validate_FieldRules* ret = validate_FieldRules_new(arena);
122
123
  if (!ret) return NULL;
123
- if (!upb_decode(buf, size, ret, &validate_FieldRules_msginit, arena)) return NULL;
124
+ if (upb_Decode(buf, size, ret, &validate_FieldRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
125
+ return NULL;
126
+ }
124
127
  return ret;
125
128
  }
126
- UPB_INLINE validate_FieldRules *validate_FieldRules_parse_ex(const char *buf, size_t size,
127
- const upb_extreg *extreg, int options,
128
- upb_arena *arena) {
129
- validate_FieldRules *ret = validate_FieldRules_new(arena);
129
+ UPB_INLINE validate_FieldRules* validate_FieldRules_parse_ex(const char* buf, size_t size,
130
+ const upb_ExtensionRegistry* extreg,
131
+ int options, upb_Arena* arena) {
132
+ validate_FieldRules* ret = validate_FieldRules_new(arena);
130
133
  if (!ret) return NULL;
131
- if (!_upb_decode(buf, size, ret, &validate_FieldRules_msginit, extreg, options, arena)) {
134
+ if (upb_Decode(buf, size, ret, &validate_FieldRules_msginit, extreg, options, arena) !=
135
+ kUpb_DecodeStatus_Ok) {
132
136
  return NULL;
133
137
  }
134
138
  return ret;
135
139
  }
136
- UPB_INLINE char *validate_FieldRules_serialize(const validate_FieldRules *msg, upb_arena *arena, size_t *len) {
137
- return upb_encode(msg, &validate_FieldRules_msginit, arena, len);
140
+ UPB_INLINE char* validate_FieldRules_serialize(const validate_FieldRules* msg, upb_Arena* arena, size_t* len) {
141
+ return upb_Encode(msg, &validate_FieldRules_msginit, 0, arena, len);
142
+ }
143
+ UPB_INLINE char* validate_FieldRules_serialize_ex(const validate_FieldRules* msg, int options,
144
+ upb_Arena* arena, size_t* len) {
145
+ return upb_Encode(msg, &validate_FieldRules_msginit, options, arena, len);
138
146
  }
139
-
140
147
  typedef enum {
141
148
  validate_FieldRules_type_float = 1,
142
149
  validate_FieldRules_type_double = 2,
@@ -196,7 +203,9 @@ UPB_INLINE const validate_BytesRules* validate_FieldRules_bytes(const validate_F
196
203
  UPB_INLINE bool validate_FieldRules_has_enum(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 16; }
197
204
  UPB_INLINE const validate_EnumRules* validate_FieldRules_enum(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_EnumRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 16, NULL); }
198
205
  UPB_INLINE bool validate_FieldRules_has_message(const validate_FieldRules *msg) { return _upb_hasbit(msg, 1); }
199
- UPB_INLINE const validate_MessageRules* validate_FieldRules_message(const validate_FieldRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const validate_MessageRules*); }
206
+ UPB_INLINE const validate_MessageRules* validate_FieldRules_message(const validate_FieldRules* msg) {
207
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const validate_MessageRules*);
208
+ }
200
209
  UPB_INLINE bool validate_FieldRules_has_repeated(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 18; }
201
210
  UPB_INLINE const validate_RepeatedRules* validate_FieldRules_repeated(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_RepeatedRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 18, NULL); }
202
211
  UPB_INLINE bool validate_FieldRules_has_map(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 19; }
@@ -211,10 +220,10 @@ UPB_INLINE const validate_TimestampRules* validate_FieldRules_timestamp(const va
211
220
  UPB_INLINE void validate_FieldRules_set_float(validate_FieldRules *msg, validate_FloatRules* value) {
212
221
  UPB_WRITE_ONEOF(msg, validate_FloatRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 1);
213
222
  }
214
- UPB_INLINE struct validate_FloatRules* validate_FieldRules_mutable_float(validate_FieldRules *msg, upb_arena *arena) {
223
+ UPB_INLINE struct validate_FloatRules* validate_FieldRules_mutable_float(validate_FieldRules *msg, upb_Arena *arena) {
215
224
  struct validate_FloatRules* sub = (struct validate_FloatRules*)validate_FieldRules_float(msg);
216
225
  if (sub == NULL) {
217
- sub = (struct validate_FloatRules*)_upb_msg_new(&validate_FloatRules_msginit, arena);
226
+ sub = (struct validate_FloatRules*)_upb_Message_New(&validate_FloatRules_msginit, arena);
218
227
  if (!sub) return NULL;
219
228
  validate_FieldRules_set_float(msg, sub);
220
229
  }
@@ -223,10 +232,10 @@ UPB_INLINE struct validate_FloatRules* validate_FieldRules_mutable_float(validat
223
232
  UPB_INLINE void validate_FieldRules_set_double(validate_FieldRules *msg, validate_DoubleRules* value) {
224
233
  UPB_WRITE_ONEOF(msg, validate_DoubleRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 2);
225
234
  }
226
- UPB_INLINE struct validate_DoubleRules* validate_FieldRules_mutable_double(validate_FieldRules *msg, upb_arena *arena) {
235
+ UPB_INLINE struct validate_DoubleRules* validate_FieldRules_mutable_double(validate_FieldRules *msg, upb_Arena *arena) {
227
236
  struct validate_DoubleRules* sub = (struct validate_DoubleRules*)validate_FieldRules_double(msg);
228
237
  if (sub == NULL) {
229
- sub = (struct validate_DoubleRules*)_upb_msg_new(&validate_DoubleRules_msginit, arena);
238
+ sub = (struct validate_DoubleRules*)_upb_Message_New(&validate_DoubleRules_msginit, arena);
230
239
  if (!sub) return NULL;
231
240
  validate_FieldRules_set_double(msg, sub);
232
241
  }
@@ -235,10 +244,10 @@ UPB_INLINE struct validate_DoubleRules* validate_FieldRules_mutable_double(valid
235
244
  UPB_INLINE void validate_FieldRules_set_int32(validate_FieldRules *msg, validate_Int32Rules* value) {
236
245
  UPB_WRITE_ONEOF(msg, validate_Int32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3);
237
246
  }
238
- UPB_INLINE struct validate_Int32Rules* validate_FieldRules_mutable_int32(validate_FieldRules *msg, upb_arena *arena) {
247
+ UPB_INLINE struct validate_Int32Rules* validate_FieldRules_mutable_int32(validate_FieldRules *msg, upb_Arena *arena) {
239
248
  struct validate_Int32Rules* sub = (struct validate_Int32Rules*)validate_FieldRules_int32(msg);
240
249
  if (sub == NULL) {
241
- sub = (struct validate_Int32Rules*)_upb_msg_new(&validate_Int32Rules_msginit, arena);
250
+ sub = (struct validate_Int32Rules*)_upb_Message_New(&validate_Int32Rules_msginit, arena);
242
251
  if (!sub) return NULL;
243
252
  validate_FieldRules_set_int32(msg, sub);
244
253
  }
@@ -247,10 +256,10 @@ UPB_INLINE struct validate_Int32Rules* validate_FieldRules_mutable_int32(validat
247
256
  UPB_INLINE void validate_FieldRules_set_int64(validate_FieldRules *msg, validate_Int64Rules* value) {
248
257
  UPB_WRITE_ONEOF(msg, validate_Int64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 4);
249
258
  }
250
- UPB_INLINE struct validate_Int64Rules* validate_FieldRules_mutable_int64(validate_FieldRules *msg, upb_arena *arena) {
259
+ UPB_INLINE struct validate_Int64Rules* validate_FieldRules_mutable_int64(validate_FieldRules *msg, upb_Arena *arena) {
251
260
  struct validate_Int64Rules* sub = (struct validate_Int64Rules*)validate_FieldRules_int64(msg);
252
261
  if (sub == NULL) {
253
- sub = (struct validate_Int64Rules*)_upb_msg_new(&validate_Int64Rules_msginit, arena);
262
+ sub = (struct validate_Int64Rules*)_upb_Message_New(&validate_Int64Rules_msginit, arena);
254
263
  if (!sub) return NULL;
255
264
  validate_FieldRules_set_int64(msg, sub);
256
265
  }
@@ -259,10 +268,10 @@ UPB_INLINE struct validate_Int64Rules* validate_FieldRules_mutable_int64(validat
259
268
  UPB_INLINE void validate_FieldRules_set_uint32(validate_FieldRules *msg, validate_UInt32Rules* value) {
260
269
  UPB_WRITE_ONEOF(msg, validate_UInt32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 5);
261
270
  }
262
- UPB_INLINE struct validate_UInt32Rules* validate_FieldRules_mutable_uint32(validate_FieldRules *msg, upb_arena *arena) {
271
+ UPB_INLINE struct validate_UInt32Rules* validate_FieldRules_mutable_uint32(validate_FieldRules *msg, upb_Arena *arena) {
263
272
  struct validate_UInt32Rules* sub = (struct validate_UInt32Rules*)validate_FieldRules_uint32(msg);
264
273
  if (sub == NULL) {
265
- sub = (struct validate_UInt32Rules*)_upb_msg_new(&validate_UInt32Rules_msginit, arena);
274
+ sub = (struct validate_UInt32Rules*)_upb_Message_New(&validate_UInt32Rules_msginit, arena);
266
275
  if (!sub) return NULL;
267
276
  validate_FieldRules_set_uint32(msg, sub);
268
277
  }
@@ -271,10 +280,10 @@ UPB_INLINE struct validate_UInt32Rules* validate_FieldRules_mutable_uint32(valid
271
280
  UPB_INLINE void validate_FieldRules_set_uint64(validate_FieldRules *msg, validate_UInt64Rules* value) {
272
281
  UPB_WRITE_ONEOF(msg, validate_UInt64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 6);
273
282
  }
274
- UPB_INLINE struct validate_UInt64Rules* validate_FieldRules_mutable_uint64(validate_FieldRules *msg, upb_arena *arena) {
283
+ UPB_INLINE struct validate_UInt64Rules* validate_FieldRules_mutable_uint64(validate_FieldRules *msg, upb_Arena *arena) {
275
284
  struct validate_UInt64Rules* sub = (struct validate_UInt64Rules*)validate_FieldRules_uint64(msg);
276
285
  if (sub == NULL) {
277
- sub = (struct validate_UInt64Rules*)_upb_msg_new(&validate_UInt64Rules_msginit, arena);
286
+ sub = (struct validate_UInt64Rules*)_upb_Message_New(&validate_UInt64Rules_msginit, arena);
278
287
  if (!sub) return NULL;
279
288
  validate_FieldRules_set_uint64(msg, sub);
280
289
  }
@@ -283,10 +292,10 @@ UPB_INLINE struct validate_UInt64Rules* validate_FieldRules_mutable_uint64(valid
283
292
  UPB_INLINE void validate_FieldRules_set_sint32(validate_FieldRules *msg, validate_SInt32Rules* value) {
284
293
  UPB_WRITE_ONEOF(msg, validate_SInt32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 7);
285
294
  }
286
- UPB_INLINE struct validate_SInt32Rules* validate_FieldRules_mutable_sint32(validate_FieldRules *msg, upb_arena *arena) {
295
+ UPB_INLINE struct validate_SInt32Rules* validate_FieldRules_mutable_sint32(validate_FieldRules *msg, upb_Arena *arena) {
287
296
  struct validate_SInt32Rules* sub = (struct validate_SInt32Rules*)validate_FieldRules_sint32(msg);
288
297
  if (sub == NULL) {
289
- sub = (struct validate_SInt32Rules*)_upb_msg_new(&validate_SInt32Rules_msginit, arena);
298
+ sub = (struct validate_SInt32Rules*)_upb_Message_New(&validate_SInt32Rules_msginit, arena);
290
299
  if (!sub) return NULL;
291
300
  validate_FieldRules_set_sint32(msg, sub);
292
301
  }
@@ -295,10 +304,10 @@ UPB_INLINE struct validate_SInt32Rules* validate_FieldRules_mutable_sint32(valid
295
304
  UPB_INLINE void validate_FieldRules_set_sint64(validate_FieldRules *msg, validate_SInt64Rules* value) {
296
305
  UPB_WRITE_ONEOF(msg, validate_SInt64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 8);
297
306
  }
298
- UPB_INLINE struct validate_SInt64Rules* validate_FieldRules_mutable_sint64(validate_FieldRules *msg, upb_arena *arena) {
307
+ UPB_INLINE struct validate_SInt64Rules* validate_FieldRules_mutable_sint64(validate_FieldRules *msg, upb_Arena *arena) {
299
308
  struct validate_SInt64Rules* sub = (struct validate_SInt64Rules*)validate_FieldRules_sint64(msg);
300
309
  if (sub == NULL) {
301
- sub = (struct validate_SInt64Rules*)_upb_msg_new(&validate_SInt64Rules_msginit, arena);
310
+ sub = (struct validate_SInt64Rules*)_upb_Message_New(&validate_SInt64Rules_msginit, arena);
302
311
  if (!sub) return NULL;
303
312
  validate_FieldRules_set_sint64(msg, sub);
304
313
  }
@@ -307,10 +316,10 @@ UPB_INLINE struct validate_SInt64Rules* validate_FieldRules_mutable_sint64(valid
307
316
  UPB_INLINE void validate_FieldRules_set_fixed32(validate_FieldRules *msg, validate_Fixed32Rules* value) {
308
317
  UPB_WRITE_ONEOF(msg, validate_Fixed32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 9);
309
318
  }
310
- UPB_INLINE struct validate_Fixed32Rules* validate_FieldRules_mutable_fixed32(validate_FieldRules *msg, upb_arena *arena) {
319
+ UPB_INLINE struct validate_Fixed32Rules* validate_FieldRules_mutable_fixed32(validate_FieldRules *msg, upb_Arena *arena) {
311
320
  struct validate_Fixed32Rules* sub = (struct validate_Fixed32Rules*)validate_FieldRules_fixed32(msg);
312
321
  if (sub == NULL) {
313
- sub = (struct validate_Fixed32Rules*)_upb_msg_new(&validate_Fixed32Rules_msginit, arena);
322
+ sub = (struct validate_Fixed32Rules*)_upb_Message_New(&validate_Fixed32Rules_msginit, arena);
314
323
  if (!sub) return NULL;
315
324
  validate_FieldRules_set_fixed32(msg, sub);
316
325
  }
@@ -319,10 +328,10 @@ UPB_INLINE struct validate_Fixed32Rules* validate_FieldRules_mutable_fixed32(val
319
328
  UPB_INLINE void validate_FieldRules_set_fixed64(validate_FieldRules *msg, validate_Fixed64Rules* value) {
320
329
  UPB_WRITE_ONEOF(msg, validate_Fixed64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 10);
321
330
  }
322
- UPB_INLINE struct validate_Fixed64Rules* validate_FieldRules_mutable_fixed64(validate_FieldRules *msg, upb_arena *arena) {
331
+ UPB_INLINE struct validate_Fixed64Rules* validate_FieldRules_mutable_fixed64(validate_FieldRules *msg, upb_Arena *arena) {
323
332
  struct validate_Fixed64Rules* sub = (struct validate_Fixed64Rules*)validate_FieldRules_fixed64(msg);
324
333
  if (sub == NULL) {
325
- sub = (struct validate_Fixed64Rules*)_upb_msg_new(&validate_Fixed64Rules_msginit, arena);
334
+ sub = (struct validate_Fixed64Rules*)_upb_Message_New(&validate_Fixed64Rules_msginit, arena);
326
335
  if (!sub) return NULL;
327
336
  validate_FieldRules_set_fixed64(msg, sub);
328
337
  }
@@ -331,10 +340,10 @@ UPB_INLINE struct validate_Fixed64Rules* validate_FieldRules_mutable_fixed64(val
331
340
  UPB_INLINE void validate_FieldRules_set_sfixed32(validate_FieldRules *msg, validate_SFixed32Rules* value) {
332
341
  UPB_WRITE_ONEOF(msg, validate_SFixed32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 11);
333
342
  }
334
- UPB_INLINE struct validate_SFixed32Rules* validate_FieldRules_mutable_sfixed32(validate_FieldRules *msg, upb_arena *arena) {
343
+ UPB_INLINE struct validate_SFixed32Rules* validate_FieldRules_mutable_sfixed32(validate_FieldRules *msg, upb_Arena *arena) {
335
344
  struct validate_SFixed32Rules* sub = (struct validate_SFixed32Rules*)validate_FieldRules_sfixed32(msg);
336
345
  if (sub == NULL) {
337
- sub = (struct validate_SFixed32Rules*)_upb_msg_new(&validate_SFixed32Rules_msginit, arena);
346
+ sub = (struct validate_SFixed32Rules*)_upb_Message_New(&validate_SFixed32Rules_msginit, arena);
338
347
  if (!sub) return NULL;
339
348
  validate_FieldRules_set_sfixed32(msg, sub);
340
349
  }
@@ -343,10 +352,10 @@ UPB_INLINE struct validate_SFixed32Rules* validate_FieldRules_mutable_sfixed32(v
343
352
  UPB_INLINE void validate_FieldRules_set_sfixed64(validate_FieldRules *msg, validate_SFixed64Rules* value) {
344
353
  UPB_WRITE_ONEOF(msg, validate_SFixed64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 12);
345
354
  }
346
- UPB_INLINE struct validate_SFixed64Rules* validate_FieldRules_mutable_sfixed64(validate_FieldRules *msg, upb_arena *arena) {
355
+ UPB_INLINE struct validate_SFixed64Rules* validate_FieldRules_mutable_sfixed64(validate_FieldRules *msg, upb_Arena *arena) {
347
356
  struct validate_SFixed64Rules* sub = (struct validate_SFixed64Rules*)validate_FieldRules_sfixed64(msg);
348
357
  if (sub == NULL) {
349
- sub = (struct validate_SFixed64Rules*)_upb_msg_new(&validate_SFixed64Rules_msginit, arena);
358
+ sub = (struct validate_SFixed64Rules*)_upb_Message_New(&validate_SFixed64Rules_msginit, arena);
350
359
  if (!sub) return NULL;
351
360
  validate_FieldRules_set_sfixed64(msg, sub);
352
361
  }
@@ -355,10 +364,10 @@ UPB_INLINE struct validate_SFixed64Rules* validate_FieldRules_mutable_sfixed64(v
355
364
  UPB_INLINE void validate_FieldRules_set_bool(validate_FieldRules *msg, validate_BoolRules* value) {
356
365
  UPB_WRITE_ONEOF(msg, validate_BoolRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 13);
357
366
  }
358
- UPB_INLINE struct validate_BoolRules* validate_FieldRules_mutable_bool(validate_FieldRules *msg, upb_arena *arena) {
367
+ UPB_INLINE struct validate_BoolRules* validate_FieldRules_mutable_bool(validate_FieldRules *msg, upb_Arena *arena) {
359
368
  struct validate_BoolRules* sub = (struct validate_BoolRules*)validate_FieldRules_bool(msg);
360
369
  if (sub == NULL) {
361
- sub = (struct validate_BoolRules*)_upb_msg_new(&validate_BoolRules_msginit, arena);
370
+ sub = (struct validate_BoolRules*)_upb_Message_New(&validate_BoolRules_msginit, arena);
362
371
  if (!sub) return NULL;
363
372
  validate_FieldRules_set_bool(msg, sub);
364
373
  }
@@ -367,10 +376,10 @@ UPB_INLINE struct validate_BoolRules* validate_FieldRules_mutable_bool(validate_
367
376
  UPB_INLINE void validate_FieldRules_set_string(validate_FieldRules *msg, validate_StringRules* value) {
368
377
  UPB_WRITE_ONEOF(msg, validate_StringRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 14);
369
378
  }
370
- UPB_INLINE struct validate_StringRules* validate_FieldRules_mutable_string(validate_FieldRules *msg, upb_arena *arena) {
379
+ UPB_INLINE struct validate_StringRules* validate_FieldRules_mutable_string(validate_FieldRules *msg, upb_Arena *arena) {
371
380
  struct validate_StringRules* sub = (struct validate_StringRules*)validate_FieldRules_string(msg);
372
381
  if (sub == NULL) {
373
- sub = (struct validate_StringRules*)_upb_msg_new(&validate_StringRules_msginit, arena);
382
+ sub = (struct validate_StringRules*)_upb_Message_New(&validate_StringRules_msginit, arena);
374
383
  if (!sub) return NULL;
375
384
  validate_FieldRules_set_string(msg, sub);
376
385
  }
@@ -379,10 +388,10 @@ UPB_INLINE struct validate_StringRules* validate_FieldRules_mutable_string(valid
379
388
  UPB_INLINE void validate_FieldRules_set_bytes(validate_FieldRules *msg, validate_BytesRules* value) {
380
389
  UPB_WRITE_ONEOF(msg, validate_BytesRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 15);
381
390
  }
382
- UPB_INLINE struct validate_BytesRules* validate_FieldRules_mutable_bytes(validate_FieldRules *msg, upb_arena *arena) {
391
+ UPB_INLINE struct validate_BytesRules* validate_FieldRules_mutable_bytes(validate_FieldRules *msg, upb_Arena *arena) {
383
392
  struct validate_BytesRules* sub = (struct validate_BytesRules*)validate_FieldRules_bytes(msg);
384
393
  if (sub == NULL) {
385
- sub = (struct validate_BytesRules*)_upb_msg_new(&validate_BytesRules_msginit, arena);
394
+ sub = (struct validate_BytesRules*)_upb_Message_New(&validate_BytesRules_msginit, arena);
386
395
  if (!sub) return NULL;
387
396
  validate_FieldRules_set_bytes(msg, sub);
388
397
  }
@@ -391,10 +400,10 @@ UPB_INLINE struct validate_BytesRules* validate_FieldRules_mutable_bytes(validat
391
400
  UPB_INLINE void validate_FieldRules_set_enum(validate_FieldRules *msg, validate_EnumRules* value) {
392
401
  UPB_WRITE_ONEOF(msg, validate_EnumRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 16);
393
402
  }
394
- UPB_INLINE struct validate_EnumRules* validate_FieldRules_mutable_enum(validate_FieldRules *msg, upb_arena *arena) {
403
+ UPB_INLINE struct validate_EnumRules* validate_FieldRules_mutable_enum(validate_FieldRules *msg, upb_Arena *arena) {
395
404
  struct validate_EnumRules* sub = (struct validate_EnumRules*)validate_FieldRules_enum(msg);
396
405
  if (sub == NULL) {
397
- sub = (struct validate_EnumRules*)_upb_msg_new(&validate_EnumRules_msginit, arena);
406
+ sub = (struct validate_EnumRules*)_upb_Message_New(&validate_EnumRules_msginit, arena);
398
407
  if (!sub) return NULL;
399
408
  validate_FieldRules_set_enum(msg, sub);
400
409
  }
@@ -404,10 +413,10 @@ UPB_INLINE void validate_FieldRules_set_message(validate_FieldRules *msg, valida
404
413
  _upb_sethas(msg, 1);
405
414
  *UPB_PTR_AT(msg, UPB_SIZE(4, 8), validate_MessageRules*) = value;
406
415
  }
407
- UPB_INLINE struct validate_MessageRules* validate_FieldRules_mutable_message(validate_FieldRules *msg, upb_arena *arena) {
416
+ UPB_INLINE struct validate_MessageRules* validate_FieldRules_mutable_message(validate_FieldRules *msg, upb_Arena *arena) {
408
417
  struct validate_MessageRules* sub = (struct validate_MessageRules*)validate_FieldRules_message(msg);
409
418
  if (sub == NULL) {
410
- sub = (struct validate_MessageRules*)_upb_msg_new(&validate_MessageRules_msginit, arena);
419
+ sub = (struct validate_MessageRules*)_upb_Message_New(&validate_MessageRules_msginit, arena);
411
420
  if (!sub) return NULL;
412
421
  validate_FieldRules_set_message(msg, sub);
413
422
  }
@@ -416,10 +425,10 @@ UPB_INLINE struct validate_MessageRules* validate_FieldRules_mutable_message(val
416
425
  UPB_INLINE void validate_FieldRules_set_repeated(validate_FieldRules *msg, validate_RepeatedRules* value) {
417
426
  UPB_WRITE_ONEOF(msg, validate_RepeatedRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 18);
418
427
  }
419
- UPB_INLINE struct validate_RepeatedRules* validate_FieldRules_mutable_repeated(validate_FieldRules *msg, upb_arena *arena) {
428
+ UPB_INLINE struct validate_RepeatedRules* validate_FieldRules_mutable_repeated(validate_FieldRules *msg, upb_Arena *arena) {
420
429
  struct validate_RepeatedRules* sub = (struct validate_RepeatedRules*)validate_FieldRules_repeated(msg);
421
430
  if (sub == NULL) {
422
- sub = (struct validate_RepeatedRules*)_upb_msg_new(&validate_RepeatedRules_msginit, arena);
431
+ sub = (struct validate_RepeatedRules*)_upb_Message_New(&validate_RepeatedRules_msginit, arena);
423
432
  if (!sub) return NULL;
424
433
  validate_FieldRules_set_repeated(msg, sub);
425
434
  }
@@ -428,10 +437,10 @@ UPB_INLINE struct validate_RepeatedRules* validate_FieldRules_mutable_repeated(v
428
437
  UPB_INLINE void validate_FieldRules_set_map(validate_FieldRules *msg, validate_MapRules* value) {
429
438
  UPB_WRITE_ONEOF(msg, validate_MapRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 19);
430
439
  }
431
- UPB_INLINE struct validate_MapRules* validate_FieldRules_mutable_map(validate_FieldRules *msg, upb_arena *arena) {
440
+ UPB_INLINE struct validate_MapRules* validate_FieldRules_mutable_map(validate_FieldRules *msg, upb_Arena *arena) {
432
441
  struct validate_MapRules* sub = (struct validate_MapRules*)validate_FieldRules_map(msg);
433
442
  if (sub == NULL) {
434
- sub = (struct validate_MapRules*)_upb_msg_new(&validate_MapRules_msginit, arena);
443
+ sub = (struct validate_MapRules*)_upb_Message_New(&validate_MapRules_msginit, arena);
435
444
  if (!sub) return NULL;
436
445
  validate_FieldRules_set_map(msg, sub);
437
446
  }
@@ -440,10 +449,10 @@ UPB_INLINE struct validate_MapRules* validate_FieldRules_mutable_map(validate_Fi
440
449
  UPB_INLINE void validate_FieldRules_set_any(validate_FieldRules *msg, validate_AnyRules* value) {
441
450
  UPB_WRITE_ONEOF(msg, validate_AnyRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 20);
442
451
  }
443
- UPB_INLINE struct validate_AnyRules* validate_FieldRules_mutable_any(validate_FieldRules *msg, upb_arena *arena) {
452
+ UPB_INLINE struct validate_AnyRules* validate_FieldRules_mutable_any(validate_FieldRules *msg, upb_Arena *arena) {
444
453
  struct validate_AnyRules* sub = (struct validate_AnyRules*)validate_FieldRules_any(msg);
445
454
  if (sub == NULL) {
446
- sub = (struct validate_AnyRules*)_upb_msg_new(&validate_AnyRules_msginit, arena);
455
+ sub = (struct validate_AnyRules*)_upb_Message_New(&validate_AnyRules_msginit, arena);
447
456
  if (!sub) return NULL;
448
457
  validate_FieldRules_set_any(msg, sub);
449
458
  }
@@ -452,10 +461,10 @@ UPB_INLINE struct validate_AnyRules* validate_FieldRules_mutable_any(validate_Fi
452
461
  UPB_INLINE void validate_FieldRules_set_duration(validate_FieldRules *msg, validate_DurationRules* value) {
453
462
  UPB_WRITE_ONEOF(msg, validate_DurationRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 21);
454
463
  }
455
- UPB_INLINE struct validate_DurationRules* validate_FieldRules_mutable_duration(validate_FieldRules *msg, upb_arena *arena) {
464
+ UPB_INLINE struct validate_DurationRules* validate_FieldRules_mutable_duration(validate_FieldRules *msg, upb_Arena *arena) {
456
465
  struct validate_DurationRules* sub = (struct validate_DurationRules*)validate_FieldRules_duration(msg);
457
466
  if (sub == NULL) {
458
- sub = (struct validate_DurationRules*)_upb_msg_new(&validate_DurationRules_msginit, arena);
467
+ sub = (struct validate_DurationRules*)_upb_Message_New(&validate_DurationRules_msginit, arena);
459
468
  if (!sub) return NULL;
460
469
  validate_FieldRules_set_duration(msg, sub);
461
470
  }
@@ -464,10 +473,10 @@ UPB_INLINE struct validate_DurationRules* validate_FieldRules_mutable_duration(v
464
473
  UPB_INLINE void validate_FieldRules_set_timestamp(validate_FieldRules *msg, validate_TimestampRules* value) {
465
474
  UPB_WRITE_ONEOF(msg, validate_TimestampRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 22);
466
475
  }
467
- UPB_INLINE struct validate_TimestampRules* validate_FieldRules_mutable_timestamp(validate_FieldRules *msg, upb_arena *arena) {
476
+ UPB_INLINE struct validate_TimestampRules* validate_FieldRules_mutable_timestamp(validate_FieldRules *msg, upb_Arena *arena) {
468
477
  struct validate_TimestampRules* sub = (struct validate_TimestampRules*)validate_FieldRules_timestamp(msg);
469
478
  if (sub == NULL) {
470
- sub = (struct validate_TimestampRules*)_upb_msg_new(&validate_TimestampRules_msginit, arena);
479
+ sub = (struct validate_TimestampRules*)_upb_Message_New(&validate_TimestampRules_msginit, arena);
471
480
  if (!sub) return NULL;
472
481
  validate_FieldRules_set_timestamp(msg, sub);
473
482
  }
@@ -476,44 +485,61 @@ UPB_INLINE struct validate_TimestampRules* validate_FieldRules_mutable_timestamp
476
485
 
477
486
  /* validate.FloatRules */
478
487
 
479
- UPB_INLINE validate_FloatRules *validate_FloatRules_new(upb_arena *arena) {
480
- return (validate_FloatRules *)_upb_msg_new(&validate_FloatRules_msginit, arena);
488
+ UPB_INLINE validate_FloatRules* validate_FloatRules_new(upb_Arena* arena) {
489
+ return (validate_FloatRules*)_upb_Message_New(&validate_FloatRules_msginit, arena);
481
490
  }
482
- UPB_INLINE validate_FloatRules *validate_FloatRules_parse(const char *buf, size_t size,
483
- upb_arena *arena) {
484
- validate_FloatRules *ret = validate_FloatRules_new(arena);
491
+ UPB_INLINE validate_FloatRules* validate_FloatRules_parse(const char* buf, size_t size, upb_Arena* arena) {
492
+ validate_FloatRules* ret = validate_FloatRules_new(arena);
485
493
  if (!ret) return NULL;
486
- if (!upb_decode(buf, size, ret, &validate_FloatRules_msginit, arena)) return NULL;
494
+ if (upb_Decode(buf, size, ret, &validate_FloatRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
495
+ return NULL;
496
+ }
487
497
  return ret;
488
498
  }
489
- UPB_INLINE validate_FloatRules *validate_FloatRules_parse_ex(const char *buf, size_t size,
490
- const upb_extreg *extreg, int options,
491
- upb_arena *arena) {
492
- validate_FloatRules *ret = validate_FloatRules_new(arena);
499
+ UPB_INLINE validate_FloatRules* validate_FloatRules_parse_ex(const char* buf, size_t size,
500
+ const upb_ExtensionRegistry* extreg,
501
+ int options, upb_Arena* arena) {
502
+ validate_FloatRules* ret = validate_FloatRules_new(arena);
493
503
  if (!ret) return NULL;
494
- if (!_upb_decode(buf, size, ret, &validate_FloatRules_msginit, extreg, options, arena)) {
504
+ if (upb_Decode(buf, size, ret, &validate_FloatRules_msginit, extreg, options, arena) !=
505
+ kUpb_DecodeStatus_Ok) {
495
506
  return NULL;
496
507
  }
497
508
  return ret;
498
509
  }
499
- UPB_INLINE char *validate_FloatRules_serialize(const validate_FloatRules *msg, upb_arena *arena, size_t *len) {
500
- return upb_encode(msg, &validate_FloatRules_msginit, arena, len);
510
+ UPB_INLINE char* validate_FloatRules_serialize(const validate_FloatRules* msg, upb_Arena* arena, size_t* len) {
511
+ return upb_Encode(msg, &validate_FloatRules_msginit, 0, arena, len);
512
+ }
513
+ UPB_INLINE char* validate_FloatRules_serialize_ex(const validate_FloatRules* msg, int options,
514
+ upb_Arena* arena, size_t* len) {
515
+ return upb_Encode(msg, &validate_FloatRules_msginit, options, arena, len);
501
516
  }
502
-
503
517
  UPB_INLINE bool validate_FloatRules_has_const(const validate_FloatRules *msg) { return _upb_hasbit(msg, 1); }
504
- UPB_INLINE float validate_FloatRules_const(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), float); }
518
+ UPB_INLINE float validate_FloatRules_const(const validate_FloatRules* msg) {
519
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), float);
520
+ }
505
521
  UPB_INLINE bool validate_FloatRules_has_lt(const validate_FloatRules *msg) { return _upb_hasbit(msg, 2); }
506
- UPB_INLINE float validate_FloatRules_lt(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), float); }
522
+ UPB_INLINE float validate_FloatRules_lt(const validate_FloatRules* msg) {
523
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), float);
524
+ }
507
525
  UPB_INLINE bool validate_FloatRules_has_lte(const validate_FloatRules *msg) { return _upb_hasbit(msg, 3); }
508
- UPB_INLINE float validate_FloatRules_lte(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), float); }
526
+ UPB_INLINE float validate_FloatRules_lte(const validate_FloatRules* msg) {
527
+ return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), float);
528
+ }
509
529
  UPB_INLINE bool validate_FloatRules_has_gt(const validate_FloatRules *msg) { return _upb_hasbit(msg, 4); }
510
- UPB_INLINE float validate_FloatRules_gt(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), float); }
530
+ UPB_INLINE float validate_FloatRules_gt(const validate_FloatRules* msg) {
531
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), float);
532
+ }
511
533
  UPB_INLINE bool validate_FloatRules_has_gte(const validate_FloatRules *msg) { return _upb_hasbit(msg, 5); }
512
- UPB_INLINE float validate_FloatRules_gte(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), float); }
534
+ UPB_INLINE float validate_FloatRules_gte(const validate_FloatRules* msg) {
535
+ return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), float);
536
+ }
513
537
  UPB_INLINE float const* validate_FloatRules_in(const validate_FloatRules *msg, size_t *len) { return (float const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
514
538
  UPB_INLINE float const* validate_FloatRules_not_in(const validate_FloatRules *msg, size_t *len) { return (float const*)_upb_array_accessor(msg, UPB_SIZE(32, 40), len); }
515
539
  UPB_INLINE bool validate_FloatRules_has_ignore_empty(const validate_FloatRules *msg) { return _upb_hasbit(msg, 6); }
516
- UPB_INLINE bool validate_FloatRules_ignore_empty(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
540
+ UPB_INLINE bool validate_FloatRules_ignore_empty(const validate_FloatRules* msg) {
541
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool);
542
+ }
517
543
 
518
544
  UPB_INLINE void validate_FloatRules_set_const(validate_FloatRules *msg, float value) {
519
545
  _upb_sethas(msg, 1);
@@ -538,21 +564,21 @@ UPB_INLINE void validate_FloatRules_set_gte(validate_FloatRules *msg, float valu
538
564
  UPB_INLINE float* validate_FloatRules_mutable_in(validate_FloatRules *msg, size_t *len) {
539
565
  return (float*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
540
566
  }
541
- UPB_INLINE float* validate_FloatRules_resize_in(validate_FloatRules *msg, size_t len, upb_arena *arena) {
542
- return (float*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
567
+ UPB_INLINE float* validate_FloatRules_resize_in(validate_FloatRules *msg, size_t len, upb_Arena *arena) {
568
+ return (float*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
543
569
  }
544
- UPB_INLINE bool validate_FloatRules_add_in(validate_FloatRules *msg, float val, upb_arena *arena) {
545
- return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
570
+ UPB_INLINE bool validate_FloatRules_add_in(validate_FloatRules *msg, float val, upb_Arena *arena) {
571
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
546
572
  arena);
547
573
  }
548
574
  UPB_INLINE float* validate_FloatRules_mutable_not_in(validate_FloatRules *msg, size_t *len) {
549
575
  return (float*)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 40), len);
550
576
  }
551
- UPB_INLINE float* validate_FloatRules_resize_not_in(validate_FloatRules *msg, size_t len, upb_arena *arena) {
552
- return (float*)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
577
+ UPB_INLINE float* validate_FloatRules_resize_not_in(validate_FloatRules *msg, size_t len, upb_Arena *arena) {
578
+ return (float*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
553
579
  }
554
- UPB_INLINE bool validate_FloatRules_add_not_in(validate_FloatRules *msg, float val, upb_arena *arena) {
555
- return _upb_array_append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
580
+ UPB_INLINE bool validate_FloatRules_add_not_in(validate_FloatRules *msg, float val, upb_Arena *arena) {
581
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
556
582
  arena);
557
583
  }
558
584
  UPB_INLINE void validate_FloatRules_set_ignore_empty(validate_FloatRules *msg, bool value) {
@@ -562,44 +588,61 @@ UPB_INLINE void validate_FloatRules_set_ignore_empty(validate_FloatRules *msg, b
562
588
 
563
589
  /* validate.DoubleRules */
564
590
 
565
- UPB_INLINE validate_DoubleRules *validate_DoubleRules_new(upb_arena *arena) {
566
- return (validate_DoubleRules *)_upb_msg_new(&validate_DoubleRules_msginit, arena);
591
+ UPB_INLINE validate_DoubleRules* validate_DoubleRules_new(upb_Arena* arena) {
592
+ return (validate_DoubleRules*)_upb_Message_New(&validate_DoubleRules_msginit, arena);
567
593
  }
568
- UPB_INLINE validate_DoubleRules *validate_DoubleRules_parse(const char *buf, size_t size,
569
- upb_arena *arena) {
570
- validate_DoubleRules *ret = validate_DoubleRules_new(arena);
594
+ UPB_INLINE validate_DoubleRules* validate_DoubleRules_parse(const char* buf, size_t size, upb_Arena* arena) {
595
+ validate_DoubleRules* ret = validate_DoubleRules_new(arena);
571
596
  if (!ret) return NULL;
572
- if (!upb_decode(buf, size, ret, &validate_DoubleRules_msginit, arena)) return NULL;
597
+ if (upb_Decode(buf, size, ret, &validate_DoubleRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
598
+ return NULL;
599
+ }
573
600
  return ret;
574
601
  }
575
- UPB_INLINE validate_DoubleRules *validate_DoubleRules_parse_ex(const char *buf, size_t size,
576
- const upb_extreg *extreg, int options,
577
- upb_arena *arena) {
578
- validate_DoubleRules *ret = validate_DoubleRules_new(arena);
602
+ UPB_INLINE validate_DoubleRules* validate_DoubleRules_parse_ex(const char* buf, size_t size,
603
+ const upb_ExtensionRegistry* extreg,
604
+ int options, upb_Arena* arena) {
605
+ validate_DoubleRules* ret = validate_DoubleRules_new(arena);
579
606
  if (!ret) return NULL;
580
- if (!_upb_decode(buf, size, ret, &validate_DoubleRules_msginit, extreg, options, arena)) {
607
+ if (upb_Decode(buf, size, ret, &validate_DoubleRules_msginit, extreg, options, arena) !=
608
+ kUpb_DecodeStatus_Ok) {
581
609
  return NULL;
582
610
  }
583
611
  return ret;
584
612
  }
585
- UPB_INLINE char *validate_DoubleRules_serialize(const validate_DoubleRules *msg, upb_arena *arena, size_t *len) {
586
- return upb_encode(msg, &validate_DoubleRules_msginit, arena, len);
613
+ UPB_INLINE char* validate_DoubleRules_serialize(const validate_DoubleRules* msg, upb_Arena* arena, size_t* len) {
614
+ return upb_Encode(msg, &validate_DoubleRules_msginit, 0, arena, len);
615
+ }
616
+ UPB_INLINE char* validate_DoubleRules_serialize_ex(const validate_DoubleRules* msg, int options,
617
+ upb_Arena* arena, size_t* len) {
618
+ return upb_Encode(msg, &validate_DoubleRules_msginit, options, arena, len);
587
619
  }
588
-
589
620
  UPB_INLINE bool validate_DoubleRules_has_const(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 1); }
590
- UPB_INLINE double validate_DoubleRules_const(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double); }
621
+ UPB_INLINE double validate_DoubleRules_const(const validate_DoubleRules* msg) {
622
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double);
623
+ }
591
624
  UPB_INLINE bool validate_DoubleRules_has_lt(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 2); }
592
- UPB_INLINE double validate_DoubleRules_lt(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), double); }
625
+ UPB_INLINE double validate_DoubleRules_lt(const validate_DoubleRules* msg) {
626
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), double);
627
+ }
593
628
  UPB_INLINE bool validate_DoubleRules_has_lte(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 3); }
594
- UPB_INLINE double validate_DoubleRules_lte(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), double); }
629
+ UPB_INLINE double validate_DoubleRules_lte(const validate_DoubleRules* msg) {
630
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), double);
631
+ }
595
632
  UPB_INLINE bool validate_DoubleRules_has_gt(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 4); }
596
- UPB_INLINE double validate_DoubleRules_gt(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), double); }
633
+ UPB_INLINE double validate_DoubleRules_gt(const validate_DoubleRules* msg) {
634
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), double);
635
+ }
597
636
  UPB_INLINE bool validate_DoubleRules_has_gte(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 5); }
598
- UPB_INLINE double validate_DoubleRules_gte(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), double); }
637
+ UPB_INLINE double validate_DoubleRules_gte(const validate_DoubleRules* msg) {
638
+ return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), double);
639
+ }
599
640
  UPB_INLINE double const* validate_DoubleRules_in(const validate_DoubleRules *msg, size_t *len) { return (double const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
600
641
  UPB_INLINE double const* validate_DoubleRules_not_in(const validate_DoubleRules *msg, size_t *len) { return (double const*)_upb_array_accessor(msg, UPB_SIZE(56, 64), len); }
601
642
  UPB_INLINE bool validate_DoubleRules_has_ignore_empty(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 6); }
602
- UPB_INLINE bool validate_DoubleRules_ignore_empty(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool); }
643
+ UPB_INLINE bool validate_DoubleRules_ignore_empty(const validate_DoubleRules* msg) {
644
+ return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool);
645
+ }
603
646
 
604
647
  UPB_INLINE void validate_DoubleRules_set_const(validate_DoubleRules *msg, double value) {
605
648
  _upb_sethas(msg, 1);
@@ -624,21 +667,21 @@ UPB_INLINE void validate_DoubleRules_set_gte(validate_DoubleRules *msg, double v
624
667
  UPB_INLINE double* validate_DoubleRules_mutable_in(validate_DoubleRules *msg, size_t *len) {
625
668
  return (double*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
626
669
  }
627
- UPB_INLINE double* validate_DoubleRules_resize_in(validate_DoubleRules *msg, size_t len, upb_arena *arena) {
628
- return (double*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
670
+ UPB_INLINE double* validate_DoubleRules_resize_in(validate_DoubleRules *msg, size_t len, upb_Arena *arena) {
671
+ return (double*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
629
672
  }
630
- UPB_INLINE bool validate_DoubleRules_add_in(validate_DoubleRules *msg, double val, upb_arena *arena) {
631
- return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
673
+ UPB_INLINE bool validate_DoubleRules_add_in(validate_DoubleRules *msg, double val, upb_Arena *arena) {
674
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
632
675
  arena);
633
676
  }
634
677
  UPB_INLINE double* validate_DoubleRules_mutable_not_in(validate_DoubleRules *msg, size_t *len) {
635
678
  return (double*)_upb_array_mutable_accessor(msg, UPB_SIZE(56, 64), len);
636
679
  }
637
- UPB_INLINE double* validate_DoubleRules_resize_not_in(validate_DoubleRules *msg, size_t len, upb_arena *arena) {
638
- return (double*)_upb_array_resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
680
+ UPB_INLINE double* validate_DoubleRules_resize_not_in(validate_DoubleRules *msg, size_t len, upb_Arena *arena) {
681
+ return (double*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
639
682
  }
640
- UPB_INLINE bool validate_DoubleRules_add_not_in(validate_DoubleRules *msg, double val, upb_arena *arena) {
641
- return _upb_array_append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
683
+ UPB_INLINE bool validate_DoubleRules_add_not_in(validate_DoubleRules *msg, double val, upb_Arena *arena) {
684
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
642
685
  arena);
643
686
  }
644
687
  UPB_INLINE void validate_DoubleRules_set_ignore_empty(validate_DoubleRules *msg, bool value) {
@@ -648,44 +691,61 @@ UPB_INLINE void validate_DoubleRules_set_ignore_empty(validate_DoubleRules *msg,
648
691
 
649
692
  /* validate.Int32Rules */
650
693
 
651
- UPB_INLINE validate_Int32Rules *validate_Int32Rules_new(upb_arena *arena) {
652
- return (validate_Int32Rules *)_upb_msg_new(&validate_Int32Rules_msginit, arena);
694
+ UPB_INLINE validate_Int32Rules* validate_Int32Rules_new(upb_Arena* arena) {
695
+ return (validate_Int32Rules*)_upb_Message_New(&validate_Int32Rules_msginit, arena);
653
696
  }
654
- UPB_INLINE validate_Int32Rules *validate_Int32Rules_parse(const char *buf, size_t size,
655
- upb_arena *arena) {
656
- validate_Int32Rules *ret = validate_Int32Rules_new(arena);
697
+ UPB_INLINE validate_Int32Rules* validate_Int32Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
698
+ validate_Int32Rules* ret = validate_Int32Rules_new(arena);
657
699
  if (!ret) return NULL;
658
- if (!upb_decode(buf, size, ret, &validate_Int32Rules_msginit, arena)) return NULL;
700
+ if (upb_Decode(buf, size, ret, &validate_Int32Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
701
+ return NULL;
702
+ }
659
703
  return ret;
660
704
  }
661
- UPB_INLINE validate_Int32Rules *validate_Int32Rules_parse_ex(const char *buf, size_t size,
662
- const upb_extreg *extreg, int options,
663
- upb_arena *arena) {
664
- validate_Int32Rules *ret = validate_Int32Rules_new(arena);
705
+ UPB_INLINE validate_Int32Rules* validate_Int32Rules_parse_ex(const char* buf, size_t size,
706
+ const upb_ExtensionRegistry* extreg,
707
+ int options, upb_Arena* arena) {
708
+ validate_Int32Rules* ret = validate_Int32Rules_new(arena);
665
709
  if (!ret) return NULL;
666
- if (!_upb_decode(buf, size, ret, &validate_Int32Rules_msginit, extreg, options, arena)) {
710
+ if (upb_Decode(buf, size, ret, &validate_Int32Rules_msginit, extreg, options, arena) !=
711
+ kUpb_DecodeStatus_Ok) {
667
712
  return NULL;
668
713
  }
669
714
  return ret;
670
715
  }
671
- UPB_INLINE char *validate_Int32Rules_serialize(const validate_Int32Rules *msg, upb_arena *arena, size_t *len) {
672
- return upb_encode(msg, &validate_Int32Rules_msginit, arena, len);
716
+ UPB_INLINE char* validate_Int32Rules_serialize(const validate_Int32Rules* msg, upb_Arena* arena, size_t* len) {
717
+ return upb_Encode(msg, &validate_Int32Rules_msginit, 0, arena, len);
718
+ }
719
+ UPB_INLINE char* validate_Int32Rules_serialize_ex(const validate_Int32Rules* msg, int options,
720
+ upb_Arena* arena, size_t* len) {
721
+ return upb_Encode(msg, &validate_Int32Rules_msginit, options, arena, len);
673
722
  }
674
-
675
723
  UPB_INLINE bool validate_Int32Rules_has_const(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 1); }
676
- UPB_INLINE int32_t validate_Int32Rules_const(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
724
+ UPB_INLINE int32_t validate_Int32Rules_const(const validate_Int32Rules* msg) {
725
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t);
726
+ }
677
727
  UPB_INLINE bool validate_Int32Rules_has_lt(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 2); }
678
- UPB_INLINE int32_t validate_Int32Rules_lt(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
728
+ UPB_INLINE int32_t validate_Int32Rules_lt(const validate_Int32Rules* msg) {
729
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t);
730
+ }
679
731
  UPB_INLINE bool validate_Int32Rules_has_lte(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 3); }
680
- UPB_INLINE int32_t validate_Int32Rules_lte(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
732
+ UPB_INLINE int32_t validate_Int32Rules_lte(const validate_Int32Rules* msg) {
733
+ return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t);
734
+ }
681
735
  UPB_INLINE bool validate_Int32Rules_has_gt(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 4); }
682
- UPB_INLINE int32_t validate_Int32Rules_gt(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
736
+ UPB_INLINE int32_t validate_Int32Rules_gt(const validate_Int32Rules* msg) {
737
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t);
738
+ }
683
739
  UPB_INLINE bool validate_Int32Rules_has_gte(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 5); }
684
- UPB_INLINE int32_t validate_Int32Rules_gte(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
740
+ UPB_INLINE int32_t validate_Int32Rules_gte(const validate_Int32Rules* msg) {
741
+ return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t);
742
+ }
685
743
  UPB_INLINE int32_t const* validate_Int32Rules_in(const validate_Int32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
686
744
  UPB_INLINE int32_t const* validate_Int32Rules_not_in(const validate_Int32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(32, 40), len); }
687
745
  UPB_INLINE bool validate_Int32Rules_has_ignore_empty(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 6); }
688
- UPB_INLINE bool validate_Int32Rules_ignore_empty(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
746
+ UPB_INLINE bool validate_Int32Rules_ignore_empty(const validate_Int32Rules* msg) {
747
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool);
748
+ }
689
749
 
690
750
  UPB_INLINE void validate_Int32Rules_set_const(validate_Int32Rules *msg, int32_t value) {
691
751
  _upb_sethas(msg, 1);
@@ -710,21 +770,21 @@ UPB_INLINE void validate_Int32Rules_set_gte(validate_Int32Rules *msg, int32_t va
710
770
  UPB_INLINE int32_t* validate_Int32Rules_mutable_in(validate_Int32Rules *msg, size_t *len) {
711
771
  return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
712
772
  }
713
- UPB_INLINE int32_t* validate_Int32Rules_resize_in(validate_Int32Rules *msg, size_t len, upb_arena *arena) {
714
- return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
773
+ UPB_INLINE int32_t* validate_Int32Rules_resize_in(validate_Int32Rules *msg, size_t len, upb_Arena *arena) {
774
+ return (int32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
715
775
  }
716
- UPB_INLINE bool validate_Int32Rules_add_in(validate_Int32Rules *msg, int32_t val, upb_arena *arena) {
717
- return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
776
+ UPB_INLINE bool validate_Int32Rules_add_in(validate_Int32Rules *msg, int32_t val, upb_Arena *arena) {
777
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
718
778
  arena);
719
779
  }
720
780
  UPB_INLINE int32_t* validate_Int32Rules_mutable_not_in(validate_Int32Rules *msg, size_t *len) {
721
781
  return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 40), len);
722
782
  }
723
- UPB_INLINE int32_t* validate_Int32Rules_resize_not_in(validate_Int32Rules *msg, size_t len, upb_arena *arena) {
724
- return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
783
+ UPB_INLINE int32_t* validate_Int32Rules_resize_not_in(validate_Int32Rules *msg, size_t len, upb_Arena *arena) {
784
+ return (int32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
725
785
  }
726
- UPB_INLINE bool validate_Int32Rules_add_not_in(validate_Int32Rules *msg, int32_t val, upb_arena *arena) {
727
- return _upb_array_append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
786
+ UPB_INLINE bool validate_Int32Rules_add_not_in(validate_Int32Rules *msg, int32_t val, upb_Arena *arena) {
787
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
728
788
  arena);
729
789
  }
730
790
  UPB_INLINE void validate_Int32Rules_set_ignore_empty(validate_Int32Rules *msg, bool value) {
@@ -734,44 +794,61 @@ UPB_INLINE void validate_Int32Rules_set_ignore_empty(validate_Int32Rules *msg, b
734
794
 
735
795
  /* validate.Int64Rules */
736
796
 
737
- UPB_INLINE validate_Int64Rules *validate_Int64Rules_new(upb_arena *arena) {
738
- return (validate_Int64Rules *)_upb_msg_new(&validate_Int64Rules_msginit, arena);
797
+ UPB_INLINE validate_Int64Rules* validate_Int64Rules_new(upb_Arena* arena) {
798
+ return (validate_Int64Rules*)_upb_Message_New(&validate_Int64Rules_msginit, arena);
739
799
  }
740
- UPB_INLINE validate_Int64Rules *validate_Int64Rules_parse(const char *buf, size_t size,
741
- upb_arena *arena) {
742
- validate_Int64Rules *ret = validate_Int64Rules_new(arena);
800
+ UPB_INLINE validate_Int64Rules* validate_Int64Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
801
+ validate_Int64Rules* ret = validate_Int64Rules_new(arena);
743
802
  if (!ret) return NULL;
744
- if (!upb_decode(buf, size, ret, &validate_Int64Rules_msginit, arena)) return NULL;
803
+ if (upb_Decode(buf, size, ret, &validate_Int64Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
804
+ return NULL;
805
+ }
745
806
  return ret;
746
807
  }
747
- UPB_INLINE validate_Int64Rules *validate_Int64Rules_parse_ex(const char *buf, size_t size,
748
- const upb_extreg *extreg, int options,
749
- upb_arena *arena) {
750
- validate_Int64Rules *ret = validate_Int64Rules_new(arena);
808
+ UPB_INLINE validate_Int64Rules* validate_Int64Rules_parse_ex(const char* buf, size_t size,
809
+ const upb_ExtensionRegistry* extreg,
810
+ int options, upb_Arena* arena) {
811
+ validate_Int64Rules* ret = validate_Int64Rules_new(arena);
751
812
  if (!ret) return NULL;
752
- if (!_upb_decode(buf, size, ret, &validate_Int64Rules_msginit, extreg, options, arena)) {
813
+ if (upb_Decode(buf, size, ret, &validate_Int64Rules_msginit, extreg, options, arena) !=
814
+ kUpb_DecodeStatus_Ok) {
753
815
  return NULL;
754
816
  }
755
817
  return ret;
756
818
  }
757
- UPB_INLINE char *validate_Int64Rules_serialize(const validate_Int64Rules *msg, upb_arena *arena, size_t *len) {
758
- return upb_encode(msg, &validate_Int64Rules_msginit, arena, len);
819
+ UPB_INLINE char* validate_Int64Rules_serialize(const validate_Int64Rules* msg, upb_Arena* arena, size_t* len) {
820
+ return upb_Encode(msg, &validate_Int64Rules_msginit, 0, arena, len);
821
+ }
822
+ UPB_INLINE char* validate_Int64Rules_serialize_ex(const validate_Int64Rules* msg, int options,
823
+ upb_Arena* arena, size_t* len) {
824
+ return upb_Encode(msg, &validate_Int64Rules_msginit, options, arena, len);
759
825
  }
760
-
761
826
  UPB_INLINE bool validate_Int64Rules_has_const(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 1); }
762
- UPB_INLINE int64_t validate_Int64Rules_const(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
827
+ UPB_INLINE int64_t validate_Int64Rules_const(const validate_Int64Rules* msg) {
828
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t);
829
+ }
763
830
  UPB_INLINE bool validate_Int64Rules_has_lt(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 2); }
764
- UPB_INLINE int64_t validate_Int64Rules_lt(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
831
+ UPB_INLINE int64_t validate_Int64Rules_lt(const validate_Int64Rules* msg) {
832
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t);
833
+ }
765
834
  UPB_INLINE bool validate_Int64Rules_has_lte(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 3); }
766
- UPB_INLINE int64_t validate_Int64Rules_lte(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
835
+ UPB_INLINE int64_t validate_Int64Rules_lte(const validate_Int64Rules* msg) {
836
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t);
837
+ }
767
838
  UPB_INLINE bool validate_Int64Rules_has_gt(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 4); }
768
- UPB_INLINE int64_t validate_Int64Rules_gt(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
839
+ UPB_INLINE int64_t validate_Int64Rules_gt(const validate_Int64Rules* msg) {
840
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t);
841
+ }
769
842
  UPB_INLINE bool validate_Int64Rules_has_gte(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 5); }
770
- UPB_INLINE int64_t validate_Int64Rules_gte(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
843
+ UPB_INLINE int64_t validate_Int64Rules_gte(const validate_Int64Rules* msg) {
844
+ return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t);
845
+ }
771
846
  UPB_INLINE int64_t const* validate_Int64Rules_in(const validate_Int64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
772
847
  UPB_INLINE int64_t const* validate_Int64Rules_not_in(const validate_Int64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(56, 64), len); }
773
848
  UPB_INLINE bool validate_Int64Rules_has_ignore_empty(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 6); }
774
- UPB_INLINE bool validate_Int64Rules_ignore_empty(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool); }
849
+ UPB_INLINE bool validate_Int64Rules_ignore_empty(const validate_Int64Rules* msg) {
850
+ return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool);
851
+ }
775
852
 
776
853
  UPB_INLINE void validate_Int64Rules_set_const(validate_Int64Rules *msg, int64_t value) {
777
854
  _upb_sethas(msg, 1);
@@ -796,21 +873,21 @@ UPB_INLINE void validate_Int64Rules_set_gte(validate_Int64Rules *msg, int64_t va
796
873
  UPB_INLINE int64_t* validate_Int64Rules_mutable_in(validate_Int64Rules *msg, size_t *len) {
797
874
  return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
798
875
  }
799
- UPB_INLINE int64_t* validate_Int64Rules_resize_in(validate_Int64Rules *msg, size_t len, upb_arena *arena) {
800
- return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
876
+ UPB_INLINE int64_t* validate_Int64Rules_resize_in(validate_Int64Rules *msg, size_t len, upb_Arena *arena) {
877
+ return (int64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
801
878
  }
802
- UPB_INLINE bool validate_Int64Rules_add_in(validate_Int64Rules *msg, int64_t val, upb_arena *arena) {
803
- return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
879
+ UPB_INLINE bool validate_Int64Rules_add_in(validate_Int64Rules *msg, int64_t val, upb_Arena *arena) {
880
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
804
881
  arena);
805
882
  }
806
883
  UPB_INLINE int64_t* validate_Int64Rules_mutable_not_in(validate_Int64Rules *msg, size_t *len) {
807
884
  return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(56, 64), len);
808
885
  }
809
- UPB_INLINE int64_t* validate_Int64Rules_resize_not_in(validate_Int64Rules *msg, size_t len, upb_arena *arena) {
810
- return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
886
+ UPB_INLINE int64_t* validate_Int64Rules_resize_not_in(validate_Int64Rules *msg, size_t len, upb_Arena *arena) {
887
+ return (int64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
811
888
  }
812
- UPB_INLINE bool validate_Int64Rules_add_not_in(validate_Int64Rules *msg, int64_t val, upb_arena *arena) {
813
- return _upb_array_append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
889
+ UPB_INLINE bool validate_Int64Rules_add_not_in(validate_Int64Rules *msg, int64_t val, upb_Arena *arena) {
890
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
814
891
  arena);
815
892
  }
816
893
  UPB_INLINE void validate_Int64Rules_set_ignore_empty(validate_Int64Rules *msg, bool value) {
@@ -820,44 +897,61 @@ UPB_INLINE void validate_Int64Rules_set_ignore_empty(validate_Int64Rules *msg, b
820
897
 
821
898
  /* validate.UInt32Rules */
822
899
 
823
- UPB_INLINE validate_UInt32Rules *validate_UInt32Rules_new(upb_arena *arena) {
824
- return (validate_UInt32Rules *)_upb_msg_new(&validate_UInt32Rules_msginit, arena);
900
+ UPB_INLINE validate_UInt32Rules* validate_UInt32Rules_new(upb_Arena* arena) {
901
+ return (validate_UInt32Rules*)_upb_Message_New(&validate_UInt32Rules_msginit, arena);
825
902
  }
826
- UPB_INLINE validate_UInt32Rules *validate_UInt32Rules_parse(const char *buf, size_t size,
827
- upb_arena *arena) {
828
- validate_UInt32Rules *ret = validate_UInt32Rules_new(arena);
903
+ UPB_INLINE validate_UInt32Rules* validate_UInt32Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
904
+ validate_UInt32Rules* ret = validate_UInt32Rules_new(arena);
829
905
  if (!ret) return NULL;
830
- if (!upb_decode(buf, size, ret, &validate_UInt32Rules_msginit, arena)) return NULL;
906
+ if (upb_Decode(buf, size, ret, &validate_UInt32Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
907
+ return NULL;
908
+ }
831
909
  return ret;
832
910
  }
833
- UPB_INLINE validate_UInt32Rules *validate_UInt32Rules_parse_ex(const char *buf, size_t size,
834
- const upb_extreg *extreg, int options,
835
- upb_arena *arena) {
836
- validate_UInt32Rules *ret = validate_UInt32Rules_new(arena);
911
+ UPB_INLINE validate_UInt32Rules* validate_UInt32Rules_parse_ex(const char* buf, size_t size,
912
+ const upb_ExtensionRegistry* extreg,
913
+ int options, upb_Arena* arena) {
914
+ validate_UInt32Rules* ret = validate_UInt32Rules_new(arena);
837
915
  if (!ret) return NULL;
838
- if (!_upb_decode(buf, size, ret, &validate_UInt32Rules_msginit, extreg, options, arena)) {
916
+ if (upb_Decode(buf, size, ret, &validate_UInt32Rules_msginit, extreg, options, arena) !=
917
+ kUpb_DecodeStatus_Ok) {
839
918
  return NULL;
840
919
  }
841
920
  return ret;
842
921
  }
843
- UPB_INLINE char *validate_UInt32Rules_serialize(const validate_UInt32Rules *msg, upb_arena *arena, size_t *len) {
844
- return upb_encode(msg, &validate_UInt32Rules_msginit, arena, len);
922
+ UPB_INLINE char* validate_UInt32Rules_serialize(const validate_UInt32Rules* msg, upb_Arena* arena, size_t* len) {
923
+ return upb_Encode(msg, &validate_UInt32Rules_msginit, 0, arena, len);
924
+ }
925
+ UPB_INLINE char* validate_UInt32Rules_serialize_ex(const validate_UInt32Rules* msg, int options,
926
+ upb_Arena* arena, size_t* len) {
927
+ return upb_Encode(msg, &validate_UInt32Rules_msginit, options, arena, len);
845
928
  }
846
-
847
929
  UPB_INLINE bool validate_UInt32Rules_has_const(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 1); }
848
- UPB_INLINE uint32_t validate_UInt32Rules_const(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); }
930
+ UPB_INLINE uint32_t validate_UInt32Rules_const(const validate_UInt32Rules* msg) {
931
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t);
932
+ }
849
933
  UPB_INLINE bool validate_UInt32Rules_has_lt(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 2); }
850
- UPB_INLINE uint32_t validate_UInt32Rules_lt(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t); }
934
+ UPB_INLINE uint32_t validate_UInt32Rules_lt(const validate_UInt32Rules* msg) {
935
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t);
936
+ }
851
937
  UPB_INLINE bool validate_UInt32Rules_has_lte(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 3); }
852
- UPB_INLINE uint32_t validate_UInt32Rules_lte(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t); }
938
+ UPB_INLINE uint32_t validate_UInt32Rules_lte(const validate_UInt32Rules* msg) {
939
+ return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t);
940
+ }
853
941
  UPB_INLINE bool validate_UInt32Rules_has_gt(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 4); }
854
- UPB_INLINE uint32_t validate_UInt32Rules_gt(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t); }
942
+ UPB_INLINE uint32_t validate_UInt32Rules_gt(const validate_UInt32Rules* msg) {
943
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t);
944
+ }
855
945
  UPB_INLINE bool validate_UInt32Rules_has_gte(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 5); }
856
- UPB_INLINE uint32_t validate_UInt32Rules_gte(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t); }
946
+ UPB_INLINE uint32_t validate_UInt32Rules_gte(const validate_UInt32Rules* msg) {
947
+ return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t);
948
+ }
857
949
  UPB_INLINE uint32_t const* validate_UInt32Rules_in(const validate_UInt32Rules *msg, size_t *len) { return (uint32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
858
950
  UPB_INLINE uint32_t const* validate_UInt32Rules_not_in(const validate_UInt32Rules *msg, size_t *len) { return (uint32_t const*)_upb_array_accessor(msg, UPB_SIZE(32, 40), len); }
859
951
  UPB_INLINE bool validate_UInt32Rules_has_ignore_empty(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 6); }
860
- UPB_INLINE bool validate_UInt32Rules_ignore_empty(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
952
+ UPB_INLINE bool validate_UInt32Rules_ignore_empty(const validate_UInt32Rules* msg) {
953
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool);
954
+ }
861
955
 
862
956
  UPB_INLINE void validate_UInt32Rules_set_const(validate_UInt32Rules *msg, uint32_t value) {
863
957
  _upb_sethas(msg, 1);
@@ -882,21 +976,21 @@ UPB_INLINE void validate_UInt32Rules_set_gte(validate_UInt32Rules *msg, uint32_t
882
976
  UPB_INLINE uint32_t* validate_UInt32Rules_mutable_in(validate_UInt32Rules *msg, size_t *len) {
883
977
  return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
884
978
  }
885
- UPB_INLINE uint32_t* validate_UInt32Rules_resize_in(validate_UInt32Rules *msg, size_t len, upb_arena *arena) {
886
- return (uint32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
979
+ UPB_INLINE uint32_t* validate_UInt32Rules_resize_in(validate_UInt32Rules *msg, size_t len, upb_Arena *arena) {
980
+ return (uint32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
887
981
  }
888
- UPB_INLINE bool validate_UInt32Rules_add_in(validate_UInt32Rules *msg, uint32_t val, upb_arena *arena) {
889
- return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
982
+ UPB_INLINE bool validate_UInt32Rules_add_in(validate_UInt32Rules *msg, uint32_t val, upb_Arena *arena) {
983
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
890
984
  arena);
891
985
  }
892
986
  UPB_INLINE uint32_t* validate_UInt32Rules_mutable_not_in(validate_UInt32Rules *msg, size_t *len) {
893
987
  return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 40), len);
894
988
  }
895
- UPB_INLINE uint32_t* validate_UInt32Rules_resize_not_in(validate_UInt32Rules *msg, size_t len, upb_arena *arena) {
896
- return (uint32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
989
+ UPB_INLINE uint32_t* validate_UInt32Rules_resize_not_in(validate_UInt32Rules *msg, size_t len, upb_Arena *arena) {
990
+ return (uint32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
897
991
  }
898
- UPB_INLINE bool validate_UInt32Rules_add_not_in(validate_UInt32Rules *msg, uint32_t val, upb_arena *arena) {
899
- return _upb_array_append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
992
+ UPB_INLINE bool validate_UInt32Rules_add_not_in(validate_UInt32Rules *msg, uint32_t val, upb_Arena *arena) {
993
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
900
994
  arena);
901
995
  }
902
996
  UPB_INLINE void validate_UInt32Rules_set_ignore_empty(validate_UInt32Rules *msg, bool value) {
@@ -906,44 +1000,61 @@ UPB_INLINE void validate_UInt32Rules_set_ignore_empty(validate_UInt32Rules *msg,
906
1000
 
907
1001
  /* validate.UInt64Rules */
908
1002
 
909
- UPB_INLINE validate_UInt64Rules *validate_UInt64Rules_new(upb_arena *arena) {
910
- return (validate_UInt64Rules *)_upb_msg_new(&validate_UInt64Rules_msginit, arena);
1003
+ UPB_INLINE validate_UInt64Rules* validate_UInt64Rules_new(upb_Arena* arena) {
1004
+ return (validate_UInt64Rules*)_upb_Message_New(&validate_UInt64Rules_msginit, arena);
911
1005
  }
912
- UPB_INLINE validate_UInt64Rules *validate_UInt64Rules_parse(const char *buf, size_t size,
913
- upb_arena *arena) {
914
- validate_UInt64Rules *ret = validate_UInt64Rules_new(arena);
1006
+ UPB_INLINE validate_UInt64Rules* validate_UInt64Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
1007
+ validate_UInt64Rules* ret = validate_UInt64Rules_new(arena);
915
1008
  if (!ret) return NULL;
916
- if (!upb_decode(buf, size, ret, &validate_UInt64Rules_msginit, arena)) return NULL;
1009
+ if (upb_Decode(buf, size, ret, &validate_UInt64Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1010
+ return NULL;
1011
+ }
917
1012
  return ret;
918
1013
  }
919
- UPB_INLINE validate_UInt64Rules *validate_UInt64Rules_parse_ex(const char *buf, size_t size,
920
- const upb_extreg *extreg, int options,
921
- upb_arena *arena) {
922
- validate_UInt64Rules *ret = validate_UInt64Rules_new(arena);
1014
+ UPB_INLINE validate_UInt64Rules* validate_UInt64Rules_parse_ex(const char* buf, size_t size,
1015
+ const upb_ExtensionRegistry* extreg,
1016
+ int options, upb_Arena* arena) {
1017
+ validate_UInt64Rules* ret = validate_UInt64Rules_new(arena);
923
1018
  if (!ret) return NULL;
924
- if (!_upb_decode(buf, size, ret, &validate_UInt64Rules_msginit, extreg, options, arena)) {
1019
+ if (upb_Decode(buf, size, ret, &validate_UInt64Rules_msginit, extreg, options, arena) !=
1020
+ kUpb_DecodeStatus_Ok) {
925
1021
  return NULL;
926
1022
  }
927
1023
  return ret;
928
1024
  }
929
- UPB_INLINE char *validate_UInt64Rules_serialize(const validate_UInt64Rules *msg, upb_arena *arena, size_t *len) {
930
- return upb_encode(msg, &validate_UInt64Rules_msginit, arena, len);
1025
+ UPB_INLINE char* validate_UInt64Rules_serialize(const validate_UInt64Rules* msg, upb_Arena* arena, size_t* len) {
1026
+ return upb_Encode(msg, &validate_UInt64Rules_msginit, 0, arena, len);
1027
+ }
1028
+ UPB_INLINE char* validate_UInt64Rules_serialize_ex(const validate_UInt64Rules* msg, int options,
1029
+ upb_Arena* arena, size_t* len) {
1030
+ return upb_Encode(msg, &validate_UInt64Rules_msginit, options, arena, len);
931
1031
  }
932
-
933
1032
  UPB_INLINE bool validate_UInt64Rules_has_const(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 1); }
934
- UPB_INLINE uint64_t validate_UInt64Rules_const(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
1033
+ UPB_INLINE uint64_t validate_UInt64Rules_const(const validate_UInt64Rules* msg) {
1034
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t);
1035
+ }
935
1036
  UPB_INLINE bool validate_UInt64Rules_has_lt(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 2); }
936
- UPB_INLINE uint64_t validate_UInt64Rules_lt(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
1037
+ UPB_INLINE uint64_t validate_UInt64Rules_lt(const validate_UInt64Rules* msg) {
1038
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t);
1039
+ }
937
1040
  UPB_INLINE bool validate_UInt64Rules_has_lte(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 3); }
938
- UPB_INLINE uint64_t validate_UInt64Rules_lte(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
1041
+ UPB_INLINE uint64_t validate_UInt64Rules_lte(const validate_UInt64Rules* msg) {
1042
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t);
1043
+ }
939
1044
  UPB_INLINE bool validate_UInt64Rules_has_gt(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 4); }
940
- UPB_INLINE uint64_t validate_UInt64Rules_gt(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
1045
+ UPB_INLINE uint64_t validate_UInt64Rules_gt(const validate_UInt64Rules* msg) {
1046
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t);
1047
+ }
941
1048
  UPB_INLINE bool validate_UInt64Rules_has_gte(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 5); }
942
- UPB_INLINE uint64_t validate_UInt64Rules_gte(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
1049
+ UPB_INLINE uint64_t validate_UInt64Rules_gte(const validate_UInt64Rules* msg) {
1050
+ return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t);
1051
+ }
943
1052
  UPB_INLINE uint64_t const* validate_UInt64Rules_in(const validate_UInt64Rules *msg, size_t *len) { return (uint64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
944
1053
  UPB_INLINE uint64_t const* validate_UInt64Rules_not_in(const validate_UInt64Rules *msg, size_t *len) { return (uint64_t const*)_upb_array_accessor(msg, UPB_SIZE(56, 64), len); }
945
1054
  UPB_INLINE bool validate_UInt64Rules_has_ignore_empty(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 6); }
946
- UPB_INLINE bool validate_UInt64Rules_ignore_empty(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool); }
1055
+ UPB_INLINE bool validate_UInt64Rules_ignore_empty(const validate_UInt64Rules* msg) {
1056
+ return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool);
1057
+ }
947
1058
 
948
1059
  UPB_INLINE void validate_UInt64Rules_set_const(validate_UInt64Rules *msg, uint64_t value) {
949
1060
  _upb_sethas(msg, 1);
@@ -968,21 +1079,21 @@ UPB_INLINE void validate_UInt64Rules_set_gte(validate_UInt64Rules *msg, uint64_t
968
1079
  UPB_INLINE uint64_t* validate_UInt64Rules_mutable_in(validate_UInt64Rules *msg, size_t *len) {
969
1080
  return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
970
1081
  }
971
- UPB_INLINE uint64_t* validate_UInt64Rules_resize_in(validate_UInt64Rules *msg, size_t len, upb_arena *arena) {
972
- return (uint64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1082
+ UPB_INLINE uint64_t* validate_UInt64Rules_resize_in(validate_UInt64Rules *msg, size_t len, upb_Arena *arena) {
1083
+ return (uint64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
973
1084
  }
974
- UPB_INLINE bool validate_UInt64Rules_add_in(validate_UInt64Rules *msg, uint64_t val, upb_arena *arena) {
975
- return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1085
+ UPB_INLINE bool validate_UInt64Rules_add_in(validate_UInt64Rules *msg, uint64_t val, upb_Arena *arena) {
1086
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
976
1087
  arena);
977
1088
  }
978
1089
  UPB_INLINE uint64_t* validate_UInt64Rules_mutable_not_in(validate_UInt64Rules *msg, size_t *len) {
979
1090
  return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(56, 64), len);
980
1091
  }
981
- UPB_INLINE uint64_t* validate_UInt64Rules_resize_not_in(validate_UInt64Rules *msg, size_t len, upb_arena *arena) {
982
- return (uint64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
1092
+ UPB_INLINE uint64_t* validate_UInt64Rules_resize_not_in(validate_UInt64Rules *msg, size_t len, upb_Arena *arena) {
1093
+ return (uint64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
983
1094
  }
984
- UPB_INLINE bool validate_UInt64Rules_add_not_in(validate_UInt64Rules *msg, uint64_t val, upb_arena *arena) {
985
- return _upb_array_append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
1095
+ UPB_INLINE bool validate_UInt64Rules_add_not_in(validate_UInt64Rules *msg, uint64_t val, upb_Arena *arena) {
1096
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
986
1097
  arena);
987
1098
  }
988
1099
  UPB_INLINE void validate_UInt64Rules_set_ignore_empty(validate_UInt64Rules *msg, bool value) {
@@ -992,44 +1103,61 @@ UPB_INLINE void validate_UInt64Rules_set_ignore_empty(validate_UInt64Rules *msg,
992
1103
 
993
1104
  /* validate.SInt32Rules */
994
1105
 
995
- UPB_INLINE validate_SInt32Rules *validate_SInt32Rules_new(upb_arena *arena) {
996
- return (validate_SInt32Rules *)_upb_msg_new(&validate_SInt32Rules_msginit, arena);
1106
+ UPB_INLINE validate_SInt32Rules* validate_SInt32Rules_new(upb_Arena* arena) {
1107
+ return (validate_SInt32Rules*)_upb_Message_New(&validate_SInt32Rules_msginit, arena);
997
1108
  }
998
- UPB_INLINE validate_SInt32Rules *validate_SInt32Rules_parse(const char *buf, size_t size,
999
- upb_arena *arena) {
1000
- validate_SInt32Rules *ret = validate_SInt32Rules_new(arena);
1109
+ UPB_INLINE validate_SInt32Rules* validate_SInt32Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
1110
+ validate_SInt32Rules* ret = validate_SInt32Rules_new(arena);
1001
1111
  if (!ret) return NULL;
1002
- if (!upb_decode(buf, size, ret, &validate_SInt32Rules_msginit, arena)) return NULL;
1112
+ if (upb_Decode(buf, size, ret, &validate_SInt32Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1113
+ return NULL;
1114
+ }
1003
1115
  return ret;
1004
1116
  }
1005
- UPB_INLINE validate_SInt32Rules *validate_SInt32Rules_parse_ex(const char *buf, size_t size,
1006
- const upb_extreg *extreg, int options,
1007
- upb_arena *arena) {
1008
- validate_SInt32Rules *ret = validate_SInt32Rules_new(arena);
1117
+ UPB_INLINE validate_SInt32Rules* validate_SInt32Rules_parse_ex(const char* buf, size_t size,
1118
+ const upb_ExtensionRegistry* extreg,
1119
+ int options, upb_Arena* arena) {
1120
+ validate_SInt32Rules* ret = validate_SInt32Rules_new(arena);
1009
1121
  if (!ret) return NULL;
1010
- if (!_upb_decode(buf, size, ret, &validate_SInt32Rules_msginit, extreg, options, arena)) {
1122
+ if (upb_Decode(buf, size, ret, &validate_SInt32Rules_msginit, extreg, options, arena) !=
1123
+ kUpb_DecodeStatus_Ok) {
1011
1124
  return NULL;
1012
1125
  }
1013
1126
  return ret;
1014
1127
  }
1015
- UPB_INLINE char *validate_SInt32Rules_serialize(const validate_SInt32Rules *msg, upb_arena *arena, size_t *len) {
1016
- return upb_encode(msg, &validate_SInt32Rules_msginit, arena, len);
1128
+ UPB_INLINE char* validate_SInt32Rules_serialize(const validate_SInt32Rules* msg, upb_Arena* arena, size_t* len) {
1129
+ return upb_Encode(msg, &validate_SInt32Rules_msginit, 0, arena, len);
1130
+ }
1131
+ UPB_INLINE char* validate_SInt32Rules_serialize_ex(const validate_SInt32Rules* msg, int options,
1132
+ upb_Arena* arena, size_t* len) {
1133
+ return upb_Encode(msg, &validate_SInt32Rules_msginit, options, arena, len);
1017
1134
  }
1018
-
1019
1135
  UPB_INLINE bool validate_SInt32Rules_has_const(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 1); }
1020
- UPB_INLINE int32_t validate_SInt32Rules_const(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
1136
+ UPB_INLINE int32_t validate_SInt32Rules_const(const validate_SInt32Rules* msg) {
1137
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t);
1138
+ }
1021
1139
  UPB_INLINE bool validate_SInt32Rules_has_lt(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 2); }
1022
- UPB_INLINE int32_t validate_SInt32Rules_lt(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
1140
+ UPB_INLINE int32_t validate_SInt32Rules_lt(const validate_SInt32Rules* msg) {
1141
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t);
1142
+ }
1023
1143
  UPB_INLINE bool validate_SInt32Rules_has_lte(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 3); }
1024
- UPB_INLINE int32_t validate_SInt32Rules_lte(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
1144
+ UPB_INLINE int32_t validate_SInt32Rules_lte(const validate_SInt32Rules* msg) {
1145
+ return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t);
1146
+ }
1025
1147
  UPB_INLINE bool validate_SInt32Rules_has_gt(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 4); }
1026
- UPB_INLINE int32_t validate_SInt32Rules_gt(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
1148
+ UPB_INLINE int32_t validate_SInt32Rules_gt(const validate_SInt32Rules* msg) {
1149
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t);
1150
+ }
1027
1151
  UPB_INLINE bool validate_SInt32Rules_has_gte(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 5); }
1028
- UPB_INLINE int32_t validate_SInt32Rules_gte(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
1152
+ UPB_INLINE int32_t validate_SInt32Rules_gte(const validate_SInt32Rules* msg) {
1153
+ return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t);
1154
+ }
1029
1155
  UPB_INLINE int32_t const* validate_SInt32Rules_in(const validate_SInt32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
1030
1156
  UPB_INLINE int32_t const* validate_SInt32Rules_not_in(const validate_SInt32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(32, 40), len); }
1031
1157
  UPB_INLINE bool validate_SInt32Rules_has_ignore_empty(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 6); }
1032
- UPB_INLINE bool validate_SInt32Rules_ignore_empty(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
1158
+ UPB_INLINE bool validate_SInt32Rules_ignore_empty(const validate_SInt32Rules* msg) {
1159
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool);
1160
+ }
1033
1161
 
1034
1162
  UPB_INLINE void validate_SInt32Rules_set_const(validate_SInt32Rules *msg, int32_t value) {
1035
1163
  _upb_sethas(msg, 1);
@@ -1054,21 +1182,21 @@ UPB_INLINE void validate_SInt32Rules_set_gte(validate_SInt32Rules *msg, int32_t
1054
1182
  UPB_INLINE int32_t* validate_SInt32Rules_mutable_in(validate_SInt32Rules *msg, size_t *len) {
1055
1183
  return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
1056
1184
  }
1057
- UPB_INLINE int32_t* validate_SInt32Rules_resize_in(validate_SInt32Rules *msg, size_t len, upb_arena *arena) {
1058
- return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
1185
+ UPB_INLINE int32_t* validate_SInt32Rules_resize_in(validate_SInt32Rules *msg, size_t len, upb_Arena *arena) {
1186
+ return (int32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
1059
1187
  }
1060
- UPB_INLINE bool validate_SInt32Rules_add_in(validate_SInt32Rules *msg, int32_t val, upb_arena *arena) {
1061
- return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
1188
+ UPB_INLINE bool validate_SInt32Rules_add_in(validate_SInt32Rules *msg, int32_t val, upb_Arena *arena) {
1189
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
1062
1190
  arena);
1063
1191
  }
1064
1192
  UPB_INLINE int32_t* validate_SInt32Rules_mutable_not_in(validate_SInt32Rules *msg, size_t *len) {
1065
1193
  return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 40), len);
1066
1194
  }
1067
- UPB_INLINE int32_t* validate_SInt32Rules_resize_not_in(validate_SInt32Rules *msg, size_t len, upb_arena *arena) {
1068
- return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
1195
+ UPB_INLINE int32_t* validate_SInt32Rules_resize_not_in(validate_SInt32Rules *msg, size_t len, upb_Arena *arena) {
1196
+ return (int32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
1069
1197
  }
1070
- UPB_INLINE bool validate_SInt32Rules_add_not_in(validate_SInt32Rules *msg, int32_t val, upb_arena *arena) {
1071
- return _upb_array_append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
1198
+ UPB_INLINE bool validate_SInt32Rules_add_not_in(validate_SInt32Rules *msg, int32_t val, upb_Arena *arena) {
1199
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
1072
1200
  arena);
1073
1201
  }
1074
1202
  UPB_INLINE void validate_SInt32Rules_set_ignore_empty(validate_SInt32Rules *msg, bool value) {
@@ -1078,44 +1206,61 @@ UPB_INLINE void validate_SInt32Rules_set_ignore_empty(validate_SInt32Rules *msg,
1078
1206
 
1079
1207
  /* validate.SInt64Rules */
1080
1208
 
1081
- UPB_INLINE validate_SInt64Rules *validate_SInt64Rules_new(upb_arena *arena) {
1082
- return (validate_SInt64Rules *)_upb_msg_new(&validate_SInt64Rules_msginit, arena);
1209
+ UPB_INLINE validate_SInt64Rules* validate_SInt64Rules_new(upb_Arena* arena) {
1210
+ return (validate_SInt64Rules*)_upb_Message_New(&validate_SInt64Rules_msginit, arena);
1083
1211
  }
1084
- UPB_INLINE validate_SInt64Rules *validate_SInt64Rules_parse(const char *buf, size_t size,
1085
- upb_arena *arena) {
1086
- validate_SInt64Rules *ret = validate_SInt64Rules_new(arena);
1212
+ UPB_INLINE validate_SInt64Rules* validate_SInt64Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
1213
+ validate_SInt64Rules* ret = validate_SInt64Rules_new(arena);
1087
1214
  if (!ret) return NULL;
1088
- if (!upb_decode(buf, size, ret, &validate_SInt64Rules_msginit, arena)) return NULL;
1215
+ if (upb_Decode(buf, size, ret, &validate_SInt64Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1216
+ return NULL;
1217
+ }
1089
1218
  return ret;
1090
1219
  }
1091
- UPB_INLINE validate_SInt64Rules *validate_SInt64Rules_parse_ex(const char *buf, size_t size,
1092
- const upb_extreg *extreg, int options,
1093
- upb_arena *arena) {
1094
- validate_SInt64Rules *ret = validate_SInt64Rules_new(arena);
1220
+ UPB_INLINE validate_SInt64Rules* validate_SInt64Rules_parse_ex(const char* buf, size_t size,
1221
+ const upb_ExtensionRegistry* extreg,
1222
+ int options, upb_Arena* arena) {
1223
+ validate_SInt64Rules* ret = validate_SInt64Rules_new(arena);
1095
1224
  if (!ret) return NULL;
1096
- if (!_upb_decode(buf, size, ret, &validate_SInt64Rules_msginit, extreg, options, arena)) {
1225
+ if (upb_Decode(buf, size, ret, &validate_SInt64Rules_msginit, extreg, options, arena) !=
1226
+ kUpb_DecodeStatus_Ok) {
1097
1227
  return NULL;
1098
1228
  }
1099
1229
  return ret;
1100
1230
  }
1101
- UPB_INLINE char *validate_SInt64Rules_serialize(const validate_SInt64Rules *msg, upb_arena *arena, size_t *len) {
1102
- return upb_encode(msg, &validate_SInt64Rules_msginit, arena, len);
1231
+ UPB_INLINE char* validate_SInt64Rules_serialize(const validate_SInt64Rules* msg, upb_Arena* arena, size_t* len) {
1232
+ return upb_Encode(msg, &validate_SInt64Rules_msginit, 0, arena, len);
1233
+ }
1234
+ UPB_INLINE char* validate_SInt64Rules_serialize_ex(const validate_SInt64Rules* msg, int options,
1235
+ upb_Arena* arena, size_t* len) {
1236
+ return upb_Encode(msg, &validate_SInt64Rules_msginit, options, arena, len);
1103
1237
  }
1104
-
1105
1238
  UPB_INLINE bool validate_SInt64Rules_has_const(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 1); }
1106
- UPB_INLINE int64_t validate_SInt64Rules_const(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
1239
+ UPB_INLINE int64_t validate_SInt64Rules_const(const validate_SInt64Rules* msg) {
1240
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t);
1241
+ }
1107
1242
  UPB_INLINE bool validate_SInt64Rules_has_lt(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 2); }
1108
- UPB_INLINE int64_t validate_SInt64Rules_lt(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
1243
+ UPB_INLINE int64_t validate_SInt64Rules_lt(const validate_SInt64Rules* msg) {
1244
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t);
1245
+ }
1109
1246
  UPB_INLINE bool validate_SInt64Rules_has_lte(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 3); }
1110
- UPB_INLINE int64_t validate_SInt64Rules_lte(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
1247
+ UPB_INLINE int64_t validate_SInt64Rules_lte(const validate_SInt64Rules* msg) {
1248
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t);
1249
+ }
1111
1250
  UPB_INLINE bool validate_SInt64Rules_has_gt(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 4); }
1112
- UPB_INLINE int64_t validate_SInt64Rules_gt(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
1251
+ UPB_INLINE int64_t validate_SInt64Rules_gt(const validate_SInt64Rules* msg) {
1252
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t);
1253
+ }
1113
1254
  UPB_INLINE bool validate_SInt64Rules_has_gte(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 5); }
1114
- UPB_INLINE int64_t validate_SInt64Rules_gte(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
1255
+ UPB_INLINE int64_t validate_SInt64Rules_gte(const validate_SInt64Rules* msg) {
1256
+ return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t);
1257
+ }
1115
1258
  UPB_INLINE int64_t const* validate_SInt64Rules_in(const validate_SInt64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
1116
1259
  UPB_INLINE int64_t const* validate_SInt64Rules_not_in(const validate_SInt64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(56, 64), len); }
1117
1260
  UPB_INLINE bool validate_SInt64Rules_has_ignore_empty(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 6); }
1118
- UPB_INLINE bool validate_SInt64Rules_ignore_empty(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool); }
1261
+ UPB_INLINE bool validate_SInt64Rules_ignore_empty(const validate_SInt64Rules* msg) {
1262
+ return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool);
1263
+ }
1119
1264
 
1120
1265
  UPB_INLINE void validate_SInt64Rules_set_const(validate_SInt64Rules *msg, int64_t value) {
1121
1266
  _upb_sethas(msg, 1);
@@ -1140,21 +1285,21 @@ UPB_INLINE void validate_SInt64Rules_set_gte(validate_SInt64Rules *msg, int64_t
1140
1285
  UPB_INLINE int64_t* validate_SInt64Rules_mutable_in(validate_SInt64Rules *msg, size_t *len) {
1141
1286
  return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
1142
1287
  }
1143
- UPB_INLINE int64_t* validate_SInt64Rules_resize_in(validate_SInt64Rules *msg, size_t len, upb_arena *arena) {
1144
- return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1288
+ UPB_INLINE int64_t* validate_SInt64Rules_resize_in(validate_SInt64Rules *msg, size_t len, upb_Arena *arena) {
1289
+ return (int64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1145
1290
  }
1146
- UPB_INLINE bool validate_SInt64Rules_add_in(validate_SInt64Rules *msg, int64_t val, upb_arena *arena) {
1147
- return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1291
+ UPB_INLINE bool validate_SInt64Rules_add_in(validate_SInt64Rules *msg, int64_t val, upb_Arena *arena) {
1292
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1148
1293
  arena);
1149
1294
  }
1150
1295
  UPB_INLINE int64_t* validate_SInt64Rules_mutable_not_in(validate_SInt64Rules *msg, size_t *len) {
1151
1296
  return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(56, 64), len);
1152
1297
  }
1153
- UPB_INLINE int64_t* validate_SInt64Rules_resize_not_in(validate_SInt64Rules *msg, size_t len, upb_arena *arena) {
1154
- return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
1298
+ UPB_INLINE int64_t* validate_SInt64Rules_resize_not_in(validate_SInt64Rules *msg, size_t len, upb_Arena *arena) {
1299
+ return (int64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
1155
1300
  }
1156
- UPB_INLINE bool validate_SInt64Rules_add_not_in(validate_SInt64Rules *msg, int64_t val, upb_arena *arena) {
1157
- return _upb_array_append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
1301
+ UPB_INLINE bool validate_SInt64Rules_add_not_in(validate_SInt64Rules *msg, int64_t val, upb_Arena *arena) {
1302
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
1158
1303
  arena);
1159
1304
  }
1160
1305
  UPB_INLINE void validate_SInt64Rules_set_ignore_empty(validate_SInt64Rules *msg, bool value) {
@@ -1164,44 +1309,61 @@ UPB_INLINE void validate_SInt64Rules_set_ignore_empty(validate_SInt64Rules *msg,
1164
1309
 
1165
1310
  /* validate.Fixed32Rules */
1166
1311
 
1167
- UPB_INLINE validate_Fixed32Rules *validate_Fixed32Rules_new(upb_arena *arena) {
1168
- return (validate_Fixed32Rules *)_upb_msg_new(&validate_Fixed32Rules_msginit, arena);
1312
+ UPB_INLINE validate_Fixed32Rules* validate_Fixed32Rules_new(upb_Arena* arena) {
1313
+ return (validate_Fixed32Rules*)_upb_Message_New(&validate_Fixed32Rules_msginit, arena);
1169
1314
  }
1170
- UPB_INLINE validate_Fixed32Rules *validate_Fixed32Rules_parse(const char *buf, size_t size,
1171
- upb_arena *arena) {
1172
- validate_Fixed32Rules *ret = validate_Fixed32Rules_new(arena);
1315
+ UPB_INLINE validate_Fixed32Rules* validate_Fixed32Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
1316
+ validate_Fixed32Rules* ret = validate_Fixed32Rules_new(arena);
1173
1317
  if (!ret) return NULL;
1174
- if (!upb_decode(buf, size, ret, &validate_Fixed32Rules_msginit, arena)) return NULL;
1318
+ if (upb_Decode(buf, size, ret, &validate_Fixed32Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1319
+ return NULL;
1320
+ }
1175
1321
  return ret;
1176
1322
  }
1177
- UPB_INLINE validate_Fixed32Rules *validate_Fixed32Rules_parse_ex(const char *buf, size_t size,
1178
- const upb_extreg *extreg, int options,
1179
- upb_arena *arena) {
1180
- validate_Fixed32Rules *ret = validate_Fixed32Rules_new(arena);
1323
+ UPB_INLINE validate_Fixed32Rules* validate_Fixed32Rules_parse_ex(const char* buf, size_t size,
1324
+ const upb_ExtensionRegistry* extreg,
1325
+ int options, upb_Arena* arena) {
1326
+ validate_Fixed32Rules* ret = validate_Fixed32Rules_new(arena);
1181
1327
  if (!ret) return NULL;
1182
- if (!_upb_decode(buf, size, ret, &validate_Fixed32Rules_msginit, extreg, options, arena)) {
1328
+ if (upb_Decode(buf, size, ret, &validate_Fixed32Rules_msginit, extreg, options, arena) !=
1329
+ kUpb_DecodeStatus_Ok) {
1183
1330
  return NULL;
1184
1331
  }
1185
1332
  return ret;
1186
1333
  }
1187
- UPB_INLINE char *validate_Fixed32Rules_serialize(const validate_Fixed32Rules *msg, upb_arena *arena, size_t *len) {
1188
- return upb_encode(msg, &validate_Fixed32Rules_msginit, arena, len);
1334
+ UPB_INLINE char* validate_Fixed32Rules_serialize(const validate_Fixed32Rules* msg, upb_Arena* arena, size_t* len) {
1335
+ return upb_Encode(msg, &validate_Fixed32Rules_msginit, 0, arena, len);
1336
+ }
1337
+ UPB_INLINE char* validate_Fixed32Rules_serialize_ex(const validate_Fixed32Rules* msg, int options,
1338
+ upb_Arena* arena, size_t* len) {
1339
+ return upb_Encode(msg, &validate_Fixed32Rules_msginit, options, arena, len);
1189
1340
  }
1190
-
1191
1341
  UPB_INLINE bool validate_Fixed32Rules_has_const(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 1); }
1192
- UPB_INLINE uint32_t validate_Fixed32Rules_const(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); }
1342
+ UPB_INLINE uint32_t validate_Fixed32Rules_const(const validate_Fixed32Rules* msg) {
1343
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t);
1344
+ }
1193
1345
  UPB_INLINE bool validate_Fixed32Rules_has_lt(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 2); }
1194
- UPB_INLINE uint32_t validate_Fixed32Rules_lt(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t); }
1346
+ UPB_INLINE uint32_t validate_Fixed32Rules_lt(const validate_Fixed32Rules* msg) {
1347
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t);
1348
+ }
1195
1349
  UPB_INLINE bool validate_Fixed32Rules_has_lte(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 3); }
1196
- UPB_INLINE uint32_t validate_Fixed32Rules_lte(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t); }
1350
+ UPB_INLINE uint32_t validate_Fixed32Rules_lte(const validate_Fixed32Rules* msg) {
1351
+ return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t);
1352
+ }
1197
1353
  UPB_INLINE bool validate_Fixed32Rules_has_gt(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 4); }
1198
- UPB_INLINE uint32_t validate_Fixed32Rules_gt(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t); }
1354
+ UPB_INLINE uint32_t validate_Fixed32Rules_gt(const validate_Fixed32Rules* msg) {
1355
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t);
1356
+ }
1199
1357
  UPB_INLINE bool validate_Fixed32Rules_has_gte(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 5); }
1200
- UPB_INLINE uint32_t validate_Fixed32Rules_gte(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t); }
1358
+ UPB_INLINE uint32_t validate_Fixed32Rules_gte(const validate_Fixed32Rules* msg) {
1359
+ return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t);
1360
+ }
1201
1361
  UPB_INLINE uint32_t const* validate_Fixed32Rules_in(const validate_Fixed32Rules *msg, size_t *len) { return (uint32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
1202
1362
  UPB_INLINE uint32_t const* validate_Fixed32Rules_not_in(const validate_Fixed32Rules *msg, size_t *len) { return (uint32_t const*)_upb_array_accessor(msg, UPB_SIZE(32, 40), len); }
1203
1363
  UPB_INLINE bool validate_Fixed32Rules_has_ignore_empty(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 6); }
1204
- UPB_INLINE bool validate_Fixed32Rules_ignore_empty(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
1364
+ UPB_INLINE bool validate_Fixed32Rules_ignore_empty(const validate_Fixed32Rules* msg) {
1365
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool);
1366
+ }
1205
1367
 
1206
1368
  UPB_INLINE void validate_Fixed32Rules_set_const(validate_Fixed32Rules *msg, uint32_t value) {
1207
1369
  _upb_sethas(msg, 1);
@@ -1226,21 +1388,21 @@ UPB_INLINE void validate_Fixed32Rules_set_gte(validate_Fixed32Rules *msg, uint32
1226
1388
  UPB_INLINE uint32_t* validate_Fixed32Rules_mutable_in(validate_Fixed32Rules *msg, size_t *len) {
1227
1389
  return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
1228
1390
  }
1229
- UPB_INLINE uint32_t* validate_Fixed32Rules_resize_in(validate_Fixed32Rules *msg, size_t len, upb_arena *arena) {
1230
- return (uint32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
1391
+ UPB_INLINE uint32_t* validate_Fixed32Rules_resize_in(validate_Fixed32Rules *msg, size_t len, upb_Arena *arena) {
1392
+ return (uint32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
1231
1393
  }
1232
- UPB_INLINE bool validate_Fixed32Rules_add_in(validate_Fixed32Rules *msg, uint32_t val, upb_arena *arena) {
1233
- return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
1394
+ UPB_INLINE bool validate_Fixed32Rules_add_in(validate_Fixed32Rules *msg, uint32_t val, upb_Arena *arena) {
1395
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
1234
1396
  arena);
1235
1397
  }
1236
1398
  UPB_INLINE uint32_t* validate_Fixed32Rules_mutable_not_in(validate_Fixed32Rules *msg, size_t *len) {
1237
1399
  return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 40), len);
1238
1400
  }
1239
- UPB_INLINE uint32_t* validate_Fixed32Rules_resize_not_in(validate_Fixed32Rules *msg, size_t len, upb_arena *arena) {
1240
- return (uint32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
1401
+ UPB_INLINE uint32_t* validate_Fixed32Rules_resize_not_in(validate_Fixed32Rules *msg, size_t len, upb_Arena *arena) {
1402
+ return (uint32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
1241
1403
  }
1242
- UPB_INLINE bool validate_Fixed32Rules_add_not_in(validate_Fixed32Rules *msg, uint32_t val, upb_arena *arena) {
1243
- return _upb_array_append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
1404
+ UPB_INLINE bool validate_Fixed32Rules_add_not_in(validate_Fixed32Rules *msg, uint32_t val, upb_Arena *arena) {
1405
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
1244
1406
  arena);
1245
1407
  }
1246
1408
  UPB_INLINE void validate_Fixed32Rules_set_ignore_empty(validate_Fixed32Rules *msg, bool value) {
@@ -1250,44 +1412,61 @@ UPB_INLINE void validate_Fixed32Rules_set_ignore_empty(validate_Fixed32Rules *ms
1250
1412
 
1251
1413
  /* validate.Fixed64Rules */
1252
1414
 
1253
- UPB_INLINE validate_Fixed64Rules *validate_Fixed64Rules_new(upb_arena *arena) {
1254
- return (validate_Fixed64Rules *)_upb_msg_new(&validate_Fixed64Rules_msginit, arena);
1415
+ UPB_INLINE validate_Fixed64Rules* validate_Fixed64Rules_new(upb_Arena* arena) {
1416
+ return (validate_Fixed64Rules*)_upb_Message_New(&validate_Fixed64Rules_msginit, arena);
1255
1417
  }
1256
- UPB_INLINE validate_Fixed64Rules *validate_Fixed64Rules_parse(const char *buf, size_t size,
1257
- upb_arena *arena) {
1258
- validate_Fixed64Rules *ret = validate_Fixed64Rules_new(arena);
1418
+ UPB_INLINE validate_Fixed64Rules* validate_Fixed64Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
1419
+ validate_Fixed64Rules* ret = validate_Fixed64Rules_new(arena);
1259
1420
  if (!ret) return NULL;
1260
- if (!upb_decode(buf, size, ret, &validate_Fixed64Rules_msginit, arena)) return NULL;
1421
+ if (upb_Decode(buf, size, ret, &validate_Fixed64Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1422
+ return NULL;
1423
+ }
1261
1424
  return ret;
1262
1425
  }
1263
- UPB_INLINE validate_Fixed64Rules *validate_Fixed64Rules_parse_ex(const char *buf, size_t size,
1264
- const upb_extreg *extreg, int options,
1265
- upb_arena *arena) {
1266
- validate_Fixed64Rules *ret = validate_Fixed64Rules_new(arena);
1426
+ UPB_INLINE validate_Fixed64Rules* validate_Fixed64Rules_parse_ex(const char* buf, size_t size,
1427
+ const upb_ExtensionRegistry* extreg,
1428
+ int options, upb_Arena* arena) {
1429
+ validate_Fixed64Rules* ret = validate_Fixed64Rules_new(arena);
1267
1430
  if (!ret) return NULL;
1268
- if (!_upb_decode(buf, size, ret, &validate_Fixed64Rules_msginit, extreg, options, arena)) {
1431
+ if (upb_Decode(buf, size, ret, &validate_Fixed64Rules_msginit, extreg, options, arena) !=
1432
+ kUpb_DecodeStatus_Ok) {
1269
1433
  return NULL;
1270
1434
  }
1271
1435
  return ret;
1272
1436
  }
1273
- UPB_INLINE char *validate_Fixed64Rules_serialize(const validate_Fixed64Rules *msg, upb_arena *arena, size_t *len) {
1274
- return upb_encode(msg, &validate_Fixed64Rules_msginit, arena, len);
1437
+ UPB_INLINE char* validate_Fixed64Rules_serialize(const validate_Fixed64Rules* msg, upb_Arena* arena, size_t* len) {
1438
+ return upb_Encode(msg, &validate_Fixed64Rules_msginit, 0, arena, len);
1439
+ }
1440
+ UPB_INLINE char* validate_Fixed64Rules_serialize_ex(const validate_Fixed64Rules* msg, int options,
1441
+ upb_Arena* arena, size_t* len) {
1442
+ return upb_Encode(msg, &validate_Fixed64Rules_msginit, options, arena, len);
1275
1443
  }
1276
-
1277
1444
  UPB_INLINE bool validate_Fixed64Rules_has_const(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 1); }
1278
- UPB_INLINE uint64_t validate_Fixed64Rules_const(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
1445
+ UPB_INLINE uint64_t validate_Fixed64Rules_const(const validate_Fixed64Rules* msg) {
1446
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t);
1447
+ }
1279
1448
  UPB_INLINE bool validate_Fixed64Rules_has_lt(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 2); }
1280
- UPB_INLINE uint64_t validate_Fixed64Rules_lt(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
1449
+ UPB_INLINE uint64_t validate_Fixed64Rules_lt(const validate_Fixed64Rules* msg) {
1450
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t);
1451
+ }
1281
1452
  UPB_INLINE bool validate_Fixed64Rules_has_lte(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 3); }
1282
- UPB_INLINE uint64_t validate_Fixed64Rules_lte(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
1453
+ UPB_INLINE uint64_t validate_Fixed64Rules_lte(const validate_Fixed64Rules* msg) {
1454
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t);
1455
+ }
1283
1456
  UPB_INLINE bool validate_Fixed64Rules_has_gt(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 4); }
1284
- UPB_INLINE uint64_t validate_Fixed64Rules_gt(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
1457
+ UPB_INLINE uint64_t validate_Fixed64Rules_gt(const validate_Fixed64Rules* msg) {
1458
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t);
1459
+ }
1285
1460
  UPB_INLINE bool validate_Fixed64Rules_has_gte(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 5); }
1286
- UPB_INLINE uint64_t validate_Fixed64Rules_gte(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
1461
+ UPB_INLINE uint64_t validate_Fixed64Rules_gte(const validate_Fixed64Rules* msg) {
1462
+ return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t);
1463
+ }
1287
1464
  UPB_INLINE uint64_t const* validate_Fixed64Rules_in(const validate_Fixed64Rules *msg, size_t *len) { return (uint64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
1288
1465
  UPB_INLINE uint64_t const* validate_Fixed64Rules_not_in(const validate_Fixed64Rules *msg, size_t *len) { return (uint64_t const*)_upb_array_accessor(msg, UPB_SIZE(56, 64), len); }
1289
1466
  UPB_INLINE bool validate_Fixed64Rules_has_ignore_empty(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 6); }
1290
- UPB_INLINE bool validate_Fixed64Rules_ignore_empty(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool); }
1467
+ UPB_INLINE bool validate_Fixed64Rules_ignore_empty(const validate_Fixed64Rules* msg) {
1468
+ return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool);
1469
+ }
1291
1470
 
1292
1471
  UPB_INLINE void validate_Fixed64Rules_set_const(validate_Fixed64Rules *msg, uint64_t value) {
1293
1472
  _upb_sethas(msg, 1);
@@ -1312,21 +1491,21 @@ UPB_INLINE void validate_Fixed64Rules_set_gte(validate_Fixed64Rules *msg, uint64
1312
1491
  UPB_INLINE uint64_t* validate_Fixed64Rules_mutable_in(validate_Fixed64Rules *msg, size_t *len) {
1313
1492
  return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
1314
1493
  }
1315
- UPB_INLINE uint64_t* validate_Fixed64Rules_resize_in(validate_Fixed64Rules *msg, size_t len, upb_arena *arena) {
1316
- return (uint64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1494
+ UPB_INLINE uint64_t* validate_Fixed64Rules_resize_in(validate_Fixed64Rules *msg, size_t len, upb_Arena *arena) {
1495
+ return (uint64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1317
1496
  }
1318
- UPB_INLINE bool validate_Fixed64Rules_add_in(validate_Fixed64Rules *msg, uint64_t val, upb_arena *arena) {
1319
- return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1497
+ UPB_INLINE bool validate_Fixed64Rules_add_in(validate_Fixed64Rules *msg, uint64_t val, upb_Arena *arena) {
1498
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1320
1499
  arena);
1321
1500
  }
1322
1501
  UPB_INLINE uint64_t* validate_Fixed64Rules_mutable_not_in(validate_Fixed64Rules *msg, size_t *len) {
1323
1502
  return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(56, 64), len);
1324
1503
  }
1325
- UPB_INLINE uint64_t* validate_Fixed64Rules_resize_not_in(validate_Fixed64Rules *msg, size_t len, upb_arena *arena) {
1326
- return (uint64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
1504
+ UPB_INLINE uint64_t* validate_Fixed64Rules_resize_not_in(validate_Fixed64Rules *msg, size_t len, upb_Arena *arena) {
1505
+ return (uint64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
1327
1506
  }
1328
- UPB_INLINE bool validate_Fixed64Rules_add_not_in(validate_Fixed64Rules *msg, uint64_t val, upb_arena *arena) {
1329
- return _upb_array_append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
1507
+ UPB_INLINE bool validate_Fixed64Rules_add_not_in(validate_Fixed64Rules *msg, uint64_t val, upb_Arena *arena) {
1508
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
1330
1509
  arena);
1331
1510
  }
1332
1511
  UPB_INLINE void validate_Fixed64Rules_set_ignore_empty(validate_Fixed64Rules *msg, bool value) {
@@ -1336,44 +1515,61 @@ UPB_INLINE void validate_Fixed64Rules_set_ignore_empty(validate_Fixed64Rules *ms
1336
1515
 
1337
1516
  /* validate.SFixed32Rules */
1338
1517
 
1339
- UPB_INLINE validate_SFixed32Rules *validate_SFixed32Rules_new(upb_arena *arena) {
1340
- return (validate_SFixed32Rules *)_upb_msg_new(&validate_SFixed32Rules_msginit, arena);
1518
+ UPB_INLINE validate_SFixed32Rules* validate_SFixed32Rules_new(upb_Arena* arena) {
1519
+ return (validate_SFixed32Rules*)_upb_Message_New(&validate_SFixed32Rules_msginit, arena);
1341
1520
  }
1342
- UPB_INLINE validate_SFixed32Rules *validate_SFixed32Rules_parse(const char *buf, size_t size,
1343
- upb_arena *arena) {
1344
- validate_SFixed32Rules *ret = validate_SFixed32Rules_new(arena);
1521
+ UPB_INLINE validate_SFixed32Rules* validate_SFixed32Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
1522
+ validate_SFixed32Rules* ret = validate_SFixed32Rules_new(arena);
1345
1523
  if (!ret) return NULL;
1346
- if (!upb_decode(buf, size, ret, &validate_SFixed32Rules_msginit, arena)) return NULL;
1524
+ if (upb_Decode(buf, size, ret, &validate_SFixed32Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1525
+ return NULL;
1526
+ }
1347
1527
  return ret;
1348
1528
  }
1349
- UPB_INLINE validate_SFixed32Rules *validate_SFixed32Rules_parse_ex(const char *buf, size_t size,
1350
- const upb_extreg *extreg, int options,
1351
- upb_arena *arena) {
1352
- validate_SFixed32Rules *ret = validate_SFixed32Rules_new(arena);
1529
+ UPB_INLINE validate_SFixed32Rules* validate_SFixed32Rules_parse_ex(const char* buf, size_t size,
1530
+ const upb_ExtensionRegistry* extreg,
1531
+ int options, upb_Arena* arena) {
1532
+ validate_SFixed32Rules* ret = validate_SFixed32Rules_new(arena);
1353
1533
  if (!ret) return NULL;
1354
- if (!_upb_decode(buf, size, ret, &validate_SFixed32Rules_msginit, extreg, options, arena)) {
1534
+ if (upb_Decode(buf, size, ret, &validate_SFixed32Rules_msginit, extreg, options, arena) !=
1535
+ kUpb_DecodeStatus_Ok) {
1355
1536
  return NULL;
1356
1537
  }
1357
1538
  return ret;
1358
1539
  }
1359
- UPB_INLINE char *validate_SFixed32Rules_serialize(const validate_SFixed32Rules *msg, upb_arena *arena, size_t *len) {
1360
- return upb_encode(msg, &validate_SFixed32Rules_msginit, arena, len);
1540
+ UPB_INLINE char* validate_SFixed32Rules_serialize(const validate_SFixed32Rules* msg, upb_Arena* arena, size_t* len) {
1541
+ return upb_Encode(msg, &validate_SFixed32Rules_msginit, 0, arena, len);
1542
+ }
1543
+ UPB_INLINE char* validate_SFixed32Rules_serialize_ex(const validate_SFixed32Rules* msg, int options,
1544
+ upb_Arena* arena, size_t* len) {
1545
+ return upb_Encode(msg, &validate_SFixed32Rules_msginit, options, arena, len);
1361
1546
  }
1362
-
1363
1547
  UPB_INLINE bool validate_SFixed32Rules_has_const(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 1); }
1364
- UPB_INLINE int32_t validate_SFixed32Rules_const(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
1548
+ UPB_INLINE int32_t validate_SFixed32Rules_const(const validate_SFixed32Rules* msg) {
1549
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t);
1550
+ }
1365
1551
  UPB_INLINE bool validate_SFixed32Rules_has_lt(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 2); }
1366
- UPB_INLINE int32_t validate_SFixed32Rules_lt(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
1552
+ UPB_INLINE int32_t validate_SFixed32Rules_lt(const validate_SFixed32Rules* msg) {
1553
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t);
1554
+ }
1367
1555
  UPB_INLINE bool validate_SFixed32Rules_has_lte(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 3); }
1368
- UPB_INLINE int32_t validate_SFixed32Rules_lte(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
1556
+ UPB_INLINE int32_t validate_SFixed32Rules_lte(const validate_SFixed32Rules* msg) {
1557
+ return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t);
1558
+ }
1369
1559
  UPB_INLINE bool validate_SFixed32Rules_has_gt(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 4); }
1370
- UPB_INLINE int32_t validate_SFixed32Rules_gt(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
1560
+ UPB_INLINE int32_t validate_SFixed32Rules_gt(const validate_SFixed32Rules* msg) {
1561
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t);
1562
+ }
1371
1563
  UPB_INLINE bool validate_SFixed32Rules_has_gte(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 5); }
1372
- UPB_INLINE int32_t validate_SFixed32Rules_gte(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
1564
+ UPB_INLINE int32_t validate_SFixed32Rules_gte(const validate_SFixed32Rules* msg) {
1565
+ return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t);
1566
+ }
1373
1567
  UPB_INLINE int32_t const* validate_SFixed32Rules_in(const validate_SFixed32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
1374
1568
  UPB_INLINE int32_t const* validate_SFixed32Rules_not_in(const validate_SFixed32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(32, 40), len); }
1375
1569
  UPB_INLINE bool validate_SFixed32Rules_has_ignore_empty(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 6); }
1376
- UPB_INLINE bool validate_SFixed32Rules_ignore_empty(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
1570
+ UPB_INLINE bool validate_SFixed32Rules_ignore_empty(const validate_SFixed32Rules* msg) {
1571
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool);
1572
+ }
1377
1573
 
1378
1574
  UPB_INLINE void validate_SFixed32Rules_set_const(validate_SFixed32Rules *msg, int32_t value) {
1379
1575
  _upb_sethas(msg, 1);
@@ -1398,21 +1594,21 @@ UPB_INLINE void validate_SFixed32Rules_set_gte(validate_SFixed32Rules *msg, int3
1398
1594
  UPB_INLINE int32_t* validate_SFixed32Rules_mutable_in(validate_SFixed32Rules *msg, size_t *len) {
1399
1595
  return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
1400
1596
  }
1401
- UPB_INLINE int32_t* validate_SFixed32Rules_resize_in(validate_SFixed32Rules *msg, size_t len, upb_arena *arena) {
1402
- return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
1597
+ UPB_INLINE int32_t* validate_SFixed32Rules_resize_in(validate_SFixed32Rules *msg, size_t len, upb_Arena *arena) {
1598
+ return (int32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
1403
1599
  }
1404
- UPB_INLINE bool validate_SFixed32Rules_add_in(validate_SFixed32Rules *msg, int32_t val, upb_arena *arena) {
1405
- return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
1600
+ UPB_INLINE bool validate_SFixed32Rules_add_in(validate_SFixed32Rules *msg, int32_t val, upb_Arena *arena) {
1601
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
1406
1602
  arena);
1407
1603
  }
1408
1604
  UPB_INLINE int32_t* validate_SFixed32Rules_mutable_not_in(validate_SFixed32Rules *msg, size_t *len) {
1409
1605
  return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 40), len);
1410
1606
  }
1411
- UPB_INLINE int32_t* validate_SFixed32Rules_resize_not_in(validate_SFixed32Rules *msg, size_t len, upb_arena *arena) {
1412
- return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
1607
+ UPB_INLINE int32_t* validate_SFixed32Rules_resize_not_in(validate_SFixed32Rules *msg, size_t len, upb_Arena *arena) {
1608
+ return (int32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(32, 40), len, 2, arena);
1413
1609
  }
1414
- UPB_INLINE bool validate_SFixed32Rules_add_not_in(validate_SFixed32Rules *msg, int32_t val, upb_arena *arena) {
1415
- return _upb_array_append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
1610
+ UPB_INLINE bool validate_SFixed32Rules_add_not_in(validate_SFixed32Rules *msg, int32_t val, upb_Arena *arena) {
1611
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(32, 40), 2, &val,
1416
1612
  arena);
1417
1613
  }
1418
1614
  UPB_INLINE void validate_SFixed32Rules_set_ignore_empty(validate_SFixed32Rules *msg, bool value) {
@@ -1422,44 +1618,61 @@ UPB_INLINE void validate_SFixed32Rules_set_ignore_empty(validate_SFixed32Rules *
1422
1618
 
1423
1619
  /* validate.SFixed64Rules */
1424
1620
 
1425
- UPB_INLINE validate_SFixed64Rules *validate_SFixed64Rules_new(upb_arena *arena) {
1426
- return (validate_SFixed64Rules *)_upb_msg_new(&validate_SFixed64Rules_msginit, arena);
1621
+ UPB_INLINE validate_SFixed64Rules* validate_SFixed64Rules_new(upb_Arena* arena) {
1622
+ return (validate_SFixed64Rules*)_upb_Message_New(&validate_SFixed64Rules_msginit, arena);
1427
1623
  }
1428
- UPB_INLINE validate_SFixed64Rules *validate_SFixed64Rules_parse(const char *buf, size_t size,
1429
- upb_arena *arena) {
1430
- validate_SFixed64Rules *ret = validate_SFixed64Rules_new(arena);
1624
+ UPB_INLINE validate_SFixed64Rules* validate_SFixed64Rules_parse(const char* buf, size_t size, upb_Arena* arena) {
1625
+ validate_SFixed64Rules* ret = validate_SFixed64Rules_new(arena);
1431
1626
  if (!ret) return NULL;
1432
- if (!upb_decode(buf, size, ret, &validate_SFixed64Rules_msginit, arena)) return NULL;
1627
+ if (upb_Decode(buf, size, ret, &validate_SFixed64Rules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1628
+ return NULL;
1629
+ }
1433
1630
  return ret;
1434
1631
  }
1435
- UPB_INLINE validate_SFixed64Rules *validate_SFixed64Rules_parse_ex(const char *buf, size_t size,
1436
- const upb_extreg *extreg, int options,
1437
- upb_arena *arena) {
1438
- validate_SFixed64Rules *ret = validate_SFixed64Rules_new(arena);
1632
+ UPB_INLINE validate_SFixed64Rules* validate_SFixed64Rules_parse_ex(const char* buf, size_t size,
1633
+ const upb_ExtensionRegistry* extreg,
1634
+ int options, upb_Arena* arena) {
1635
+ validate_SFixed64Rules* ret = validate_SFixed64Rules_new(arena);
1439
1636
  if (!ret) return NULL;
1440
- if (!_upb_decode(buf, size, ret, &validate_SFixed64Rules_msginit, extreg, options, arena)) {
1637
+ if (upb_Decode(buf, size, ret, &validate_SFixed64Rules_msginit, extreg, options, arena) !=
1638
+ kUpb_DecodeStatus_Ok) {
1441
1639
  return NULL;
1442
1640
  }
1443
1641
  return ret;
1444
1642
  }
1445
- UPB_INLINE char *validate_SFixed64Rules_serialize(const validate_SFixed64Rules *msg, upb_arena *arena, size_t *len) {
1446
- return upb_encode(msg, &validate_SFixed64Rules_msginit, arena, len);
1643
+ UPB_INLINE char* validate_SFixed64Rules_serialize(const validate_SFixed64Rules* msg, upb_Arena* arena, size_t* len) {
1644
+ return upb_Encode(msg, &validate_SFixed64Rules_msginit, 0, arena, len);
1645
+ }
1646
+ UPB_INLINE char* validate_SFixed64Rules_serialize_ex(const validate_SFixed64Rules* msg, int options,
1647
+ upb_Arena* arena, size_t* len) {
1648
+ return upb_Encode(msg, &validate_SFixed64Rules_msginit, options, arena, len);
1447
1649
  }
1448
-
1449
1650
  UPB_INLINE bool validate_SFixed64Rules_has_const(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 1); }
1450
- UPB_INLINE int64_t validate_SFixed64Rules_const(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
1651
+ UPB_INLINE int64_t validate_SFixed64Rules_const(const validate_SFixed64Rules* msg) {
1652
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t);
1653
+ }
1451
1654
  UPB_INLINE bool validate_SFixed64Rules_has_lt(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 2); }
1452
- UPB_INLINE int64_t validate_SFixed64Rules_lt(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
1655
+ UPB_INLINE int64_t validate_SFixed64Rules_lt(const validate_SFixed64Rules* msg) {
1656
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t);
1657
+ }
1453
1658
  UPB_INLINE bool validate_SFixed64Rules_has_lte(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 3); }
1454
- UPB_INLINE int64_t validate_SFixed64Rules_lte(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
1659
+ UPB_INLINE int64_t validate_SFixed64Rules_lte(const validate_SFixed64Rules* msg) {
1660
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t);
1661
+ }
1455
1662
  UPB_INLINE bool validate_SFixed64Rules_has_gt(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 4); }
1456
- UPB_INLINE int64_t validate_SFixed64Rules_gt(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
1663
+ UPB_INLINE int64_t validate_SFixed64Rules_gt(const validate_SFixed64Rules* msg) {
1664
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t);
1665
+ }
1457
1666
  UPB_INLINE bool validate_SFixed64Rules_has_gte(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 5); }
1458
- UPB_INLINE int64_t validate_SFixed64Rules_gte(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
1667
+ UPB_INLINE int64_t validate_SFixed64Rules_gte(const validate_SFixed64Rules* msg) {
1668
+ return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t);
1669
+ }
1459
1670
  UPB_INLINE int64_t const* validate_SFixed64Rules_in(const validate_SFixed64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
1460
1671
  UPB_INLINE int64_t const* validate_SFixed64Rules_not_in(const validate_SFixed64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(56, 64), len); }
1461
1672
  UPB_INLINE bool validate_SFixed64Rules_has_ignore_empty(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 6); }
1462
- UPB_INLINE bool validate_SFixed64Rules_ignore_empty(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool); }
1673
+ UPB_INLINE bool validate_SFixed64Rules_ignore_empty(const validate_SFixed64Rules* msg) {
1674
+ return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool);
1675
+ }
1463
1676
 
1464
1677
  UPB_INLINE void validate_SFixed64Rules_set_const(validate_SFixed64Rules *msg, int64_t value) {
1465
1678
  _upb_sethas(msg, 1);
@@ -1484,21 +1697,21 @@ UPB_INLINE void validate_SFixed64Rules_set_gte(validate_SFixed64Rules *msg, int6
1484
1697
  UPB_INLINE int64_t* validate_SFixed64Rules_mutable_in(validate_SFixed64Rules *msg, size_t *len) {
1485
1698
  return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
1486
1699
  }
1487
- UPB_INLINE int64_t* validate_SFixed64Rules_resize_in(validate_SFixed64Rules *msg, size_t len, upb_arena *arena) {
1488
- return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1700
+ UPB_INLINE int64_t* validate_SFixed64Rules_resize_in(validate_SFixed64Rules *msg, size_t len, upb_Arena *arena) {
1701
+ return (int64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1489
1702
  }
1490
- UPB_INLINE bool validate_SFixed64Rules_add_in(validate_SFixed64Rules *msg, int64_t val, upb_arena *arena) {
1491
- return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1703
+ UPB_INLINE bool validate_SFixed64Rules_add_in(validate_SFixed64Rules *msg, int64_t val, upb_Arena *arena) {
1704
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1492
1705
  arena);
1493
1706
  }
1494
1707
  UPB_INLINE int64_t* validate_SFixed64Rules_mutable_not_in(validate_SFixed64Rules *msg, size_t *len) {
1495
1708
  return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(56, 64), len);
1496
1709
  }
1497
- UPB_INLINE int64_t* validate_SFixed64Rules_resize_not_in(validate_SFixed64Rules *msg, size_t len, upb_arena *arena) {
1498
- return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
1710
+ UPB_INLINE int64_t* validate_SFixed64Rules_resize_not_in(validate_SFixed64Rules *msg, size_t len, upb_Arena *arena) {
1711
+ return (int64_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(56, 64), len, 3, arena);
1499
1712
  }
1500
- UPB_INLINE bool validate_SFixed64Rules_add_not_in(validate_SFixed64Rules *msg, int64_t val, upb_arena *arena) {
1501
- return _upb_array_append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
1713
+ UPB_INLINE bool validate_SFixed64Rules_add_not_in(validate_SFixed64Rules *msg, int64_t val, upb_Arena *arena) {
1714
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(56, 64), 3, &val,
1502
1715
  arena);
1503
1716
  }
1504
1717
  UPB_INLINE void validate_SFixed64Rules_set_ignore_empty(validate_SFixed64Rules *msg, bool value) {
@@ -1508,32 +1721,39 @@ UPB_INLINE void validate_SFixed64Rules_set_ignore_empty(validate_SFixed64Rules *
1508
1721
 
1509
1722
  /* validate.BoolRules */
1510
1723
 
1511
- UPB_INLINE validate_BoolRules *validate_BoolRules_new(upb_arena *arena) {
1512
- return (validate_BoolRules *)_upb_msg_new(&validate_BoolRules_msginit, arena);
1724
+ UPB_INLINE validate_BoolRules* validate_BoolRules_new(upb_Arena* arena) {
1725
+ return (validate_BoolRules*)_upb_Message_New(&validate_BoolRules_msginit, arena);
1513
1726
  }
1514
- UPB_INLINE validate_BoolRules *validate_BoolRules_parse(const char *buf, size_t size,
1515
- upb_arena *arena) {
1516
- validate_BoolRules *ret = validate_BoolRules_new(arena);
1727
+ UPB_INLINE validate_BoolRules* validate_BoolRules_parse(const char* buf, size_t size, upb_Arena* arena) {
1728
+ validate_BoolRules* ret = validate_BoolRules_new(arena);
1517
1729
  if (!ret) return NULL;
1518
- if (!upb_decode(buf, size, ret, &validate_BoolRules_msginit, arena)) return NULL;
1730
+ if (upb_Decode(buf, size, ret, &validate_BoolRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1731
+ return NULL;
1732
+ }
1519
1733
  return ret;
1520
1734
  }
1521
- UPB_INLINE validate_BoolRules *validate_BoolRules_parse_ex(const char *buf, size_t size,
1522
- const upb_extreg *extreg, int options,
1523
- upb_arena *arena) {
1524
- validate_BoolRules *ret = validate_BoolRules_new(arena);
1735
+ UPB_INLINE validate_BoolRules* validate_BoolRules_parse_ex(const char* buf, size_t size,
1736
+ const upb_ExtensionRegistry* extreg,
1737
+ int options, upb_Arena* arena) {
1738
+ validate_BoolRules* ret = validate_BoolRules_new(arena);
1525
1739
  if (!ret) return NULL;
1526
- if (!_upb_decode(buf, size, ret, &validate_BoolRules_msginit, extreg, options, arena)) {
1740
+ if (upb_Decode(buf, size, ret, &validate_BoolRules_msginit, extreg, options, arena) !=
1741
+ kUpb_DecodeStatus_Ok) {
1527
1742
  return NULL;
1528
1743
  }
1529
1744
  return ret;
1530
1745
  }
1531
- UPB_INLINE char *validate_BoolRules_serialize(const validate_BoolRules *msg, upb_arena *arena, size_t *len) {
1532
- return upb_encode(msg, &validate_BoolRules_msginit, arena, len);
1746
+ UPB_INLINE char* validate_BoolRules_serialize(const validate_BoolRules* msg, upb_Arena* arena, size_t* len) {
1747
+ return upb_Encode(msg, &validate_BoolRules_msginit, 0, arena, len);
1748
+ }
1749
+ UPB_INLINE char* validate_BoolRules_serialize_ex(const validate_BoolRules* msg, int options,
1750
+ upb_Arena* arena, size_t* len) {
1751
+ return upb_Encode(msg, &validate_BoolRules_msginit, options, arena, len);
1533
1752
  }
1534
-
1535
1753
  UPB_INLINE bool validate_BoolRules_has_const(const validate_BoolRules *msg) { return _upb_hasbit(msg, 1); }
1536
- UPB_INLINE bool validate_BoolRules_const(const validate_BoolRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
1754
+ UPB_INLINE bool validate_BoolRules_const(const validate_BoolRules* msg) {
1755
+ return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool);
1756
+ }
1537
1757
 
1538
1758
  UPB_INLINE void validate_BoolRules_set_const(validate_BoolRules *msg, bool value) {
1539
1759
  _upb_sethas(msg, 1);
@@ -1542,30 +1762,35 @@ UPB_INLINE void validate_BoolRules_set_const(validate_BoolRules *msg, bool value
1542
1762
 
1543
1763
  /* validate.StringRules */
1544
1764
 
1545
- UPB_INLINE validate_StringRules *validate_StringRules_new(upb_arena *arena) {
1546
- return (validate_StringRules *)_upb_msg_new(&validate_StringRules_msginit, arena);
1765
+ UPB_INLINE validate_StringRules* validate_StringRules_new(upb_Arena* arena) {
1766
+ return (validate_StringRules*)_upb_Message_New(&validate_StringRules_msginit, arena);
1547
1767
  }
1548
- UPB_INLINE validate_StringRules *validate_StringRules_parse(const char *buf, size_t size,
1549
- upb_arena *arena) {
1550
- validate_StringRules *ret = validate_StringRules_new(arena);
1768
+ UPB_INLINE validate_StringRules* validate_StringRules_parse(const char* buf, size_t size, upb_Arena* arena) {
1769
+ validate_StringRules* ret = validate_StringRules_new(arena);
1551
1770
  if (!ret) return NULL;
1552
- if (!upb_decode(buf, size, ret, &validate_StringRules_msginit, arena)) return NULL;
1771
+ if (upb_Decode(buf, size, ret, &validate_StringRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
1772
+ return NULL;
1773
+ }
1553
1774
  return ret;
1554
1775
  }
1555
- UPB_INLINE validate_StringRules *validate_StringRules_parse_ex(const char *buf, size_t size,
1556
- const upb_extreg *extreg, int options,
1557
- upb_arena *arena) {
1558
- validate_StringRules *ret = validate_StringRules_new(arena);
1776
+ UPB_INLINE validate_StringRules* validate_StringRules_parse_ex(const char* buf, size_t size,
1777
+ const upb_ExtensionRegistry* extreg,
1778
+ int options, upb_Arena* arena) {
1779
+ validate_StringRules* ret = validate_StringRules_new(arena);
1559
1780
  if (!ret) return NULL;
1560
- if (!_upb_decode(buf, size, ret, &validate_StringRules_msginit, extreg, options, arena)) {
1781
+ if (upb_Decode(buf, size, ret, &validate_StringRules_msginit, extreg, options, arena) !=
1782
+ kUpb_DecodeStatus_Ok) {
1561
1783
  return NULL;
1562
1784
  }
1563
1785
  return ret;
1564
1786
  }
1565
- UPB_INLINE char *validate_StringRules_serialize(const validate_StringRules *msg, upb_arena *arena, size_t *len) {
1566
- return upb_encode(msg, &validate_StringRules_msginit, arena, len);
1787
+ UPB_INLINE char* validate_StringRules_serialize(const validate_StringRules* msg, upb_Arena* arena, size_t* len) {
1788
+ return upb_Encode(msg, &validate_StringRules_msginit, 0, arena, len);
1789
+ }
1790
+ UPB_INLINE char* validate_StringRules_serialize_ex(const validate_StringRules* msg, int options,
1791
+ upb_Arena* arena, size_t* len) {
1792
+ return upb_Encode(msg, &validate_StringRules_msginit, options, arena, len);
1567
1793
  }
1568
-
1569
1794
  typedef enum {
1570
1795
  validate_StringRules_well_known_email = 12,
1571
1796
  validate_StringRules_well_known_hostname = 13,
@@ -1582,25 +1807,43 @@ typedef enum {
1582
1807
  UPB_INLINE validate_StringRules_well_known_oneofcases validate_StringRules_well_known_case(const validate_StringRules* msg) { return (validate_StringRules_well_known_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(120, 180), int32_t); }
1583
1808
 
1584
1809
  UPB_INLINE bool validate_StringRules_has_const(const validate_StringRules *msg) { return _upb_hasbit(msg, 1); }
1585
- UPB_INLINE upb_strview validate_StringRules_const(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(60, 64), upb_strview); }
1810
+ UPB_INLINE upb_StringView validate_StringRules_const(const validate_StringRules* msg) {
1811
+ return *UPB_PTR_AT(msg, UPB_SIZE(60, 64), upb_StringView);
1812
+ }
1586
1813
  UPB_INLINE bool validate_StringRules_has_min_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 2); }
1587
- UPB_INLINE uint64_t validate_StringRules_min_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
1814
+ UPB_INLINE uint64_t validate_StringRules_min_len(const validate_StringRules* msg) {
1815
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t);
1816
+ }
1588
1817
  UPB_INLINE bool validate_StringRules_has_max_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 3); }
1589
- UPB_INLINE uint64_t validate_StringRules_max_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
1818
+ UPB_INLINE uint64_t validate_StringRules_max_len(const validate_StringRules* msg) {
1819
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t);
1820
+ }
1590
1821
  UPB_INLINE bool validate_StringRules_has_min_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 4); }
1591
- UPB_INLINE uint64_t validate_StringRules_min_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
1822
+ UPB_INLINE uint64_t validate_StringRules_min_bytes(const validate_StringRules* msg) {
1823
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t);
1824
+ }
1592
1825
  UPB_INLINE bool validate_StringRules_has_max_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 5); }
1593
- UPB_INLINE uint64_t validate_StringRules_max_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
1826
+ UPB_INLINE uint64_t validate_StringRules_max_bytes(const validate_StringRules* msg) {
1827
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t);
1828
+ }
1594
1829
  UPB_INLINE bool validate_StringRules_has_pattern(const validate_StringRules *msg) { return _upb_hasbit(msg, 6); }
1595
- UPB_INLINE upb_strview validate_StringRules_pattern(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(68, 80), upb_strview); }
1830
+ UPB_INLINE upb_StringView validate_StringRules_pattern(const validate_StringRules* msg) {
1831
+ return *UPB_PTR_AT(msg, UPB_SIZE(68, 80), upb_StringView);
1832
+ }
1596
1833
  UPB_INLINE bool validate_StringRules_has_prefix(const validate_StringRules *msg) { return _upb_hasbit(msg, 7); }
1597
- UPB_INLINE upb_strview validate_StringRules_prefix(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(76, 96), upb_strview); }
1834
+ UPB_INLINE upb_StringView validate_StringRules_prefix(const validate_StringRules* msg) {
1835
+ return *UPB_PTR_AT(msg, UPB_SIZE(76, 96), upb_StringView);
1836
+ }
1598
1837
  UPB_INLINE bool validate_StringRules_has_suffix(const validate_StringRules *msg) { return _upb_hasbit(msg, 8); }
1599
- UPB_INLINE upb_strview validate_StringRules_suffix(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(84, 112), upb_strview); }
1838
+ UPB_INLINE upb_StringView validate_StringRules_suffix(const validate_StringRules* msg) {
1839
+ return *UPB_PTR_AT(msg, UPB_SIZE(84, 112), upb_StringView);
1840
+ }
1600
1841
  UPB_INLINE bool validate_StringRules_has_contains(const validate_StringRules *msg) { return _upb_hasbit(msg, 9); }
1601
- UPB_INLINE upb_strview validate_StringRules_contains(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(92, 128), upb_strview); }
1602
- UPB_INLINE upb_strview const* validate_StringRules_in(const validate_StringRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(108, 160), len); }
1603
- UPB_INLINE upb_strview const* validate_StringRules_not_in(const validate_StringRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(112, 168), len); }
1842
+ UPB_INLINE upb_StringView validate_StringRules_contains(const validate_StringRules* msg) {
1843
+ return *UPB_PTR_AT(msg, UPB_SIZE(92, 128), upb_StringView);
1844
+ }
1845
+ UPB_INLINE upb_StringView const* validate_StringRules_in(const validate_StringRules *msg, size_t *len) { return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(108, 160), len); }
1846
+ UPB_INLINE upb_StringView const* validate_StringRules_not_in(const validate_StringRules *msg, size_t *len) { return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(112, 168), len); }
1604
1847
  UPB_INLINE bool validate_StringRules_has_email(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 12; }
1605
1848
  UPB_INLINE bool validate_StringRules_email(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 12, false); }
1606
1849
  UPB_INLINE bool validate_StringRules_has_hostname(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 13; }
@@ -1616,25 +1859,35 @@ UPB_INLINE bool validate_StringRules_uri(const validate_StringRules *msg) { retu
1616
1859
  UPB_INLINE bool validate_StringRules_has_uri_ref(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 18; }
1617
1860
  UPB_INLINE bool validate_StringRules_uri_ref(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 18, false); }
1618
1861
  UPB_INLINE bool validate_StringRules_has_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 10); }
1619
- UPB_INLINE uint64_t validate_StringRules_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
1862
+ UPB_INLINE uint64_t validate_StringRules_len(const validate_StringRules* msg) {
1863
+ return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t);
1864
+ }
1620
1865
  UPB_INLINE bool validate_StringRules_has_len_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 11); }
1621
- UPB_INLINE uint64_t validate_StringRules_len_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), uint64_t); }
1866
+ UPB_INLINE uint64_t validate_StringRules_len_bytes(const validate_StringRules* msg) {
1867
+ return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), uint64_t);
1868
+ }
1622
1869
  UPB_INLINE bool validate_StringRules_has_address(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 21; }
1623
1870
  UPB_INLINE bool validate_StringRules_address(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 21, false); }
1624
1871
  UPB_INLINE bool validate_StringRules_has_uuid(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 22; }
1625
1872
  UPB_INLINE bool validate_StringRules_uuid(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 22, false); }
1626
1873
  UPB_INLINE bool validate_StringRules_has_not_contains(const validate_StringRules *msg) { return _upb_hasbit(msg, 12); }
1627
- UPB_INLINE upb_strview validate_StringRules_not_contains(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(100, 144), upb_strview); }
1874
+ UPB_INLINE upb_StringView validate_StringRules_not_contains(const validate_StringRules* msg) {
1875
+ return *UPB_PTR_AT(msg, UPB_SIZE(100, 144), upb_StringView);
1876
+ }
1628
1877
  UPB_INLINE bool validate_StringRules_has_well_known_regex(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 24; }
1629
1878
  UPB_INLINE int32_t validate_StringRules_well_known_regex(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, int32_t, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 24, 0); }
1630
1879
  UPB_INLINE bool validate_StringRules_has_strict(const validate_StringRules *msg) { return _upb_hasbit(msg, 13); }
1631
- UPB_INLINE bool validate_StringRules_strict(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(56, 56), bool); }
1880
+ UPB_INLINE bool validate_StringRules_strict(const validate_StringRules* msg) {
1881
+ return validate_StringRules_has_strict(msg) ? *UPB_PTR_AT(msg, UPB_SIZE(56, 56), bool) : true;
1882
+ }
1632
1883
  UPB_INLINE bool validate_StringRules_has_ignore_empty(const validate_StringRules *msg) { return _upb_hasbit(msg, 14); }
1633
- UPB_INLINE bool validate_StringRules_ignore_empty(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(57, 57), bool); }
1884
+ UPB_INLINE bool validate_StringRules_ignore_empty(const validate_StringRules* msg) {
1885
+ return *UPB_PTR_AT(msg, UPB_SIZE(57, 57), bool);
1886
+ }
1634
1887
 
1635
- UPB_INLINE void validate_StringRules_set_const(validate_StringRules *msg, upb_strview value) {
1888
+ UPB_INLINE void validate_StringRules_set_const(validate_StringRules *msg, upb_StringView value) {
1636
1889
  _upb_sethas(msg, 1);
1637
- *UPB_PTR_AT(msg, UPB_SIZE(60, 64), upb_strview) = value;
1890
+ *UPB_PTR_AT(msg, UPB_SIZE(60, 64), upb_StringView) = value;
1638
1891
  }
1639
1892
  UPB_INLINE void validate_StringRules_set_min_len(validate_StringRules *msg, uint64_t value) {
1640
1893
  _upb_sethas(msg, 2);
@@ -1652,40 +1905,40 @@ UPB_INLINE void validate_StringRules_set_max_bytes(validate_StringRules *msg, ui
1652
1905
  _upb_sethas(msg, 5);
1653
1906
  *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value;
1654
1907
  }
1655
- UPB_INLINE void validate_StringRules_set_pattern(validate_StringRules *msg, upb_strview value) {
1908
+ UPB_INLINE void validate_StringRules_set_pattern(validate_StringRules *msg, upb_StringView value) {
1656
1909
  _upb_sethas(msg, 6);
1657
- *UPB_PTR_AT(msg, UPB_SIZE(68, 80), upb_strview) = value;
1910
+ *UPB_PTR_AT(msg, UPB_SIZE(68, 80), upb_StringView) = value;
1658
1911
  }
1659
- UPB_INLINE void validate_StringRules_set_prefix(validate_StringRules *msg, upb_strview value) {
1912
+ UPB_INLINE void validate_StringRules_set_prefix(validate_StringRules *msg, upb_StringView value) {
1660
1913
  _upb_sethas(msg, 7);
1661
- *UPB_PTR_AT(msg, UPB_SIZE(76, 96), upb_strview) = value;
1914
+ *UPB_PTR_AT(msg, UPB_SIZE(76, 96), upb_StringView) = value;
1662
1915
  }
1663
- UPB_INLINE void validate_StringRules_set_suffix(validate_StringRules *msg, upb_strview value) {
1916
+ UPB_INLINE void validate_StringRules_set_suffix(validate_StringRules *msg, upb_StringView value) {
1664
1917
  _upb_sethas(msg, 8);
1665
- *UPB_PTR_AT(msg, UPB_SIZE(84, 112), upb_strview) = value;
1918
+ *UPB_PTR_AT(msg, UPB_SIZE(84, 112), upb_StringView) = value;
1666
1919
  }
1667
- UPB_INLINE void validate_StringRules_set_contains(validate_StringRules *msg, upb_strview value) {
1920
+ UPB_INLINE void validate_StringRules_set_contains(validate_StringRules *msg, upb_StringView value) {
1668
1921
  _upb_sethas(msg, 9);
1669
- *UPB_PTR_AT(msg, UPB_SIZE(92, 128), upb_strview) = value;
1922
+ *UPB_PTR_AT(msg, UPB_SIZE(92, 128), upb_StringView) = value;
1670
1923
  }
1671
- UPB_INLINE upb_strview* validate_StringRules_mutable_in(validate_StringRules *msg, size_t *len) {
1672
- return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(108, 160), len);
1924
+ UPB_INLINE upb_StringView* validate_StringRules_mutable_in(validate_StringRules *msg, size_t *len) {
1925
+ return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(108, 160), len);
1673
1926
  }
1674
- UPB_INLINE upb_strview* validate_StringRules_resize_in(validate_StringRules *msg, size_t len, upb_arena *arena) {
1675
- return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(108, 160), len, UPB_SIZE(3, 4), arena);
1927
+ UPB_INLINE upb_StringView* validate_StringRules_resize_in(validate_StringRules *msg, size_t len, upb_Arena *arena) {
1928
+ return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(108, 160), len, UPB_SIZE(3, 4), arena);
1676
1929
  }
1677
- UPB_INLINE bool validate_StringRules_add_in(validate_StringRules *msg, upb_strview val, upb_arena *arena) {
1678
- return _upb_array_append_accessor2(msg, UPB_SIZE(108, 160), UPB_SIZE(3, 4), &val,
1930
+ UPB_INLINE bool validate_StringRules_add_in(validate_StringRules *msg, upb_StringView val, upb_Arena *arena) {
1931
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(108, 160), UPB_SIZE(3, 4), &val,
1679
1932
  arena);
1680
1933
  }
1681
- UPB_INLINE upb_strview* validate_StringRules_mutable_not_in(validate_StringRules *msg, size_t *len) {
1682
- return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(112, 168), len);
1934
+ UPB_INLINE upb_StringView* validate_StringRules_mutable_not_in(validate_StringRules *msg, size_t *len) {
1935
+ return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(112, 168), len);
1683
1936
  }
1684
- UPB_INLINE upb_strview* validate_StringRules_resize_not_in(validate_StringRules *msg, size_t len, upb_arena *arena) {
1685
- return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(112, 168), len, UPB_SIZE(3, 4), arena);
1937
+ UPB_INLINE upb_StringView* validate_StringRules_resize_not_in(validate_StringRules *msg, size_t len, upb_Arena *arena) {
1938
+ return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(112, 168), len, UPB_SIZE(3, 4), arena);
1686
1939
  }
1687
- UPB_INLINE bool validate_StringRules_add_not_in(validate_StringRules *msg, upb_strview val, upb_arena *arena) {
1688
- return _upb_array_append_accessor2(msg, UPB_SIZE(112, 168), UPB_SIZE(3, 4), &val,
1940
+ UPB_INLINE bool validate_StringRules_add_not_in(validate_StringRules *msg, upb_StringView val, upb_Arena *arena) {
1941
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(112, 168), UPB_SIZE(3, 4), &val,
1689
1942
  arena);
1690
1943
  }
1691
1944
  UPB_INLINE void validate_StringRules_set_email(validate_StringRules *msg, bool value) {
@@ -1723,9 +1976,9 @@ UPB_INLINE void validate_StringRules_set_address(validate_StringRules *msg, bool
1723
1976
  UPB_INLINE void validate_StringRules_set_uuid(validate_StringRules *msg, bool value) {
1724
1977
  UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 22);
1725
1978
  }
1726
- UPB_INLINE void validate_StringRules_set_not_contains(validate_StringRules *msg, upb_strview value) {
1979
+ UPB_INLINE void validate_StringRules_set_not_contains(validate_StringRules *msg, upb_StringView value) {
1727
1980
  _upb_sethas(msg, 12);
1728
- *UPB_PTR_AT(msg, UPB_SIZE(100, 144), upb_strview) = value;
1981
+ *UPB_PTR_AT(msg, UPB_SIZE(100, 144), upb_StringView) = value;
1729
1982
  }
1730
1983
  UPB_INLINE void validate_StringRules_set_well_known_regex(validate_StringRules *msg, int32_t value) {
1731
1984
  UPB_WRITE_ONEOF(msg, int32_t, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 24);
@@ -1741,30 +1994,35 @@ UPB_INLINE void validate_StringRules_set_ignore_empty(validate_StringRules *msg,
1741
1994
 
1742
1995
  /* validate.BytesRules */
1743
1996
 
1744
- UPB_INLINE validate_BytesRules *validate_BytesRules_new(upb_arena *arena) {
1745
- return (validate_BytesRules *)_upb_msg_new(&validate_BytesRules_msginit, arena);
1997
+ UPB_INLINE validate_BytesRules* validate_BytesRules_new(upb_Arena* arena) {
1998
+ return (validate_BytesRules*)_upb_Message_New(&validate_BytesRules_msginit, arena);
1746
1999
  }
1747
- UPB_INLINE validate_BytesRules *validate_BytesRules_parse(const char *buf, size_t size,
1748
- upb_arena *arena) {
1749
- validate_BytesRules *ret = validate_BytesRules_new(arena);
2000
+ UPB_INLINE validate_BytesRules* validate_BytesRules_parse(const char* buf, size_t size, upb_Arena* arena) {
2001
+ validate_BytesRules* ret = validate_BytesRules_new(arena);
1750
2002
  if (!ret) return NULL;
1751
- if (!upb_decode(buf, size, ret, &validate_BytesRules_msginit, arena)) return NULL;
2003
+ if (upb_Decode(buf, size, ret, &validate_BytesRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
2004
+ return NULL;
2005
+ }
1752
2006
  return ret;
1753
2007
  }
1754
- UPB_INLINE validate_BytesRules *validate_BytesRules_parse_ex(const char *buf, size_t size,
1755
- const upb_extreg *extreg, int options,
1756
- upb_arena *arena) {
1757
- validate_BytesRules *ret = validate_BytesRules_new(arena);
2008
+ UPB_INLINE validate_BytesRules* validate_BytesRules_parse_ex(const char* buf, size_t size,
2009
+ const upb_ExtensionRegistry* extreg,
2010
+ int options, upb_Arena* arena) {
2011
+ validate_BytesRules* ret = validate_BytesRules_new(arena);
1758
2012
  if (!ret) return NULL;
1759
- if (!_upb_decode(buf, size, ret, &validate_BytesRules_msginit, extreg, options, arena)) {
2013
+ if (upb_Decode(buf, size, ret, &validate_BytesRules_msginit, extreg, options, arena) !=
2014
+ kUpb_DecodeStatus_Ok) {
1760
2015
  return NULL;
1761
2016
  }
1762
2017
  return ret;
1763
2018
  }
1764
- UPB_INLINE char *validate_BytesRules_serialize(const validate_BytesRules *msg, upb_arena *arena, size_t *len) {
1765
- return upb_encode(msg, &validate_BytesRules_msginit, arena, len);
2019
+ UPB_INLINE char* validate_BytesRules_serialize(const validate_BytesRules* msg, upb_Arena* arena, size_t* len) {
2020
+ return upb_Encode(msg, &validate_BytesRules_msginit, 0, arena, len);
2021
+ }
2022
+ UPB_INLINE char* validate_BytesRules_serialize_ex(const validate_BytesRules* msg, int options,
2023
+ upb_Arena* arena, size_t* len) {
2024
+ return upb_Encode(msg, &validate_BytesRules_msginit, options, arena, len);
1766
2025
  }
1767
-
1768
2026
  typedef enum {
1769
2027
  validate_BytesRules_well_known_ip = 10,
1770
2028
  validate_BytesRules_well_known_ipv4 = 11,
@@ -1774,21 +2032,35 @@ typedef enum {
1774
2032
  UPB_INLINE validate_BytesRules_well_known_oneofcases validate_BytesRules_well_known_case(const validate_BytesRules* msg) { return (validate_BytesRules_well_known_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(88, 140), int32_t); }
1775
2033
 
1776
2034
  UPB_INLINE bool validate_BytesRules_has_const(const validate_BytesRules *msg) { return _upb_hasbit(msg, 1); }
1777
- UPB_INLINE upb_strview validate_BytesRules_const(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 40), upb_strview); }
2035
+ UPB_INLINE upb_StringView validate_BytesRules_const(const validate_BytesRules* msg) {
2036
+ return *UPB_PTR_AT(msg, UPB_SIZE(36, 40), upb_StringView);
2037
+ }
1778
2038
  UPB_INLINE bool validate_BytesRules_has_min_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 2); }
1779
- UPB_INLINE uint64_t validate_BytesRules_min_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
2039
+ UPB_INLINE uint64_t validate_BytesRules_min_len(const validate_BytesRules* msg) {
2040
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t);
2041
+ }
1780
2042
  UPB_INLINE bool validate_BytesRules_has_max_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 3); }
1781
- UPB_INLINE uint64_t validate_BytesRules_max_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
2043
+ UPB_INLINE uint64_t validate_BytesRules_max_len(const validate_BytesRules* msg) {
2044
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t);
2045
+ }
1782
2046
  UPB_INLINE bool validate_BytesRules_has_pattern(const validate_BytesRules *msg) { return _upb_hasbit(msg, 4); }
1783
- UPB_INLINE upb_strview validate_BytesRules_pattern(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(44, 56), upb_strview); }
2047
+ UPB_INLINE upb_StringView validate_BytesRules_pattern(const validate_BytesRules* msg) {
2048
+ return *UPB_PTR_AT(msg, UPB_SIZE(44, 56), upb_StringView);
2049
+ }
1784
2050
  UPB_INLINE bool validate_BytesRules_has_prefix(const validate_BytesRules *msg) { return _upb_hasbit(msg, 5); }
1785
- UPB_INLINE upb_strview validate_BytesRules_prefix(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(52, 72), upb_strview); }
2051
+ UPB_INLINE upb_StringView validate_BytesRules_prefix(const validate_BytesRules* msg) {
2052
+ return *UPB_PTR_AT(msg, UPB_SIZE(52, 72), upb_StringView);
2053
+ }
1786
2054
  UPB_INLINE bool validate_BytesRules_has_suffix(const validate_BytesRules *msg) { return _upb_hasbit(msg, 6); }
1787
- UPB_INLINE upb_strview validate_BytesRules_suffix(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(60, 88), upb_strview); }
2055
+ UPB_INLINE upb_StringView validate_BytesRules_suffix(const validate_BytesRules* msg) {
2056
+ return *UPB_PTR_AT(msg, UPB_SIZE(60, 88), upb_StringView);
2057
+ }
1788
2058
  UPB_INLINE bool validate_BytesRules_has_contains(const validate_BytesRules *msg) { return _upb_hasbit(msg, 7); }
1789
- UPB_INLINE upb_strview validate_BytesRules_contains(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(68, 104), upb_strview); }
1790
- UPB_INLINE upb_strview const* validate_BytesRules_in(const validate_BytesRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(76, 120), len); }
1791
- UPB_INLINE upb_strview const* validate_BytesRules_not_in(const validate_BytesRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(80, 128), len); }
2059
+ UPB_INLINE upb_StringView validate_BytesRules_contains(const validate_BytesRules* msg) {
2060
+ return *UPB_PTR_AT(msg, UPB_SIZE(68, 104), upb_StringView);
2061
+ }
2062
+ UPB_INLINE upb_StringView const* validate_BytesRules_in(const validate_BytesRules *msg, size_t *len) { return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(76, 120), len); }
2063
+ UPB_INLINE upb_StringView const* validate_BytesRules_not_in(const validate_BytesRules *msg, size_t *len) { return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(80, 128), len); }
1792
2064
  UPB_INLINE bool validate_BytesRules_has_ip(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(88, 140)) == 10; }
1793
2065
  UPB_INLINE bool validate_BytesRules_ip(const validate_BytesRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(84, 136), UPB_SIZE(88, 140), 10, false); }
1794
2066
  UPB_INLINE bool validate_BytesRules_has_ipv4(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(88, 140)) == 11; }
@@ -1796,13 +2068,17 @@ UPB_INLINE bool validate_BytesRules_ipv4(const validate_BytesRules *msg) { retur
1796
2068
  UPB_INLINE bool validate_BytesRules_has_ipv6(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(88, 140)) == 12; }
1797
2069
  UPB_INLINE bool validate_BytesRules_ipv6(const validate_BytesRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(84, 136), UPB_SIZE(88, 140), 12, false); }
1798
2070
  UPB_INLINE bool validate_BytesRules_has_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 8); }
1799
- UPB_INLINE uint64_t validate_BytesRules_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
2071
+ UPB_INLINE uint64_t validate_BytesRules_len(const validate_BytesRules* msg) {
2072
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t);
2073
+ }
1800
2074
  UPB_INLINE bool validate_BytesRules_has_ignore_empty(const validate_BytesRules *msg) { return _upb_hasbit(msg, 9); }
1801
- UPB_INLINE bool validate_BytesRules_ignore_empty(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), bool); }
2075
+ UPB_INLINE bool validate_BytesRules_ignore_empty(const validate_BytesRules* msg) {
2076
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), bool);
2077
+ }
1802
2078
 
1803
- UPB_INLINE void validate_BytesRules_set_const(validate_BytesRules *msg, upb_strview value) {
2079
+ UPB_INLINE void validate_BytesRules_set_const(validate_BytesRules *msg, upb_StringView value) {
1804
2080
  _upb_sethas(msg, 1);
1805
- *UPB_PTR_AT(msg, UPB_SIZE(36, 40), upb_strview) = value;
2081
+ *UPB_PTR_AT(msg, UPB_SIZE(36, 40), upb_StringView) = value;
1806
2082
  }
1807
2083
  UPB_INLINE void validate_BytesRules_set_min_len(validate_BytesRules *msg, uint64_t value) {
1808
2084
  _upb_sethas(msg, 2);
@@ -1812,40 +2088,40 @@ UPB_INLINE void validate_BytesRules_set_max_len(validate_BytesRules *msg, uint64
1812
2088
  _upb_sethas(msg, 3);
1813
2089
  *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
1814
2090
  }
1815
- UPB_INLINE void validate_BytesRules_set_pattern(validate_BytesRules *msg, upb_strview value) {
2091
+ UPB_INLINE void validate_BytesRules_set_pattern(validate_BytesRules *msg, upb_StringView value) {
1816
2092
  _upb_sethas(msg, 4);
1817
- *UPB_PTR_AT(msg, UPB_SIZE(44, 56), upb_strview) = value;
2093
+ *UPB_PTR_AT(msg, UPB_SIZE(44, 56), upb_StringView) = value;
1818
2094
  }
1819
- UPB_INLINE void validate_BytesRules_set_prefix(validate_BytesRules *msg, upb_strview value) {
2095
+ UPB_INLINE void validate_BytesRules_set_prefix(validate_BytesRules *msg, upb_StringView value) {
1820
2096
  _upb_sethas(msg, 5);
1821
- *UPB_PTR_AT(msg, UPB_SIZE(52, 72), upb_strview) = value;
2097
+ *UPB_PTR_AT(msg, UPB_SIZE(52, 72), upb_StringView) = value;
1822
2098
  }
1823
- UPB_INLINE void validate_BytesRules_set_suffix(validate_BytesRules *msg, upb_strview value) {
2099
+ UPB_INLINE void validate_BytesRules_set_suffix(validate_BytesRules *msg, upb_StringView value) {
1824
2100
  _upb_sethas(msg, 6);
1825
- *UPB_PTR_AT(msg, UPB_SIZE(60, 88), upb_strview) = value;
2101
+ *UPB_PTR_AT(msg, UPB_SIZE(60, 88), upb_StringView) = value;
1826
2102
  }
1827
- UPB_INLINE void validate_BytesRules_set_contains(validate_BytesRules *msg, upb_strview value) {
2103
+ UPB_INLINE void validate_BytesRules_set_contains(validate_BytesRules *msg, upb_StringView value) {
1828
2104
  _upb_sethas(msg, 7);
1829
- *UPB_PTR_AT(msg, UPB_SIZE(68, 104), upb_strview) = value;
2105
+ *UPB_PTR_AT(msg, UPB_SIZE(68, 104), upb_StringView) = value;
1830
2106
  }
1831
- UPB_INLINE upb_strview* validate_BytesRules_mutable_in(validate_BytesRules *msg, size_t *len) {
1832
- return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(76, 120), len);
2107
+ UPB_INLINE upb_StringView* validate_BytesRules_mutable_in(validate_BytesRules *msg, size_t *len) {
2108
+ return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(76, 120), len);
1833
2109
  }
1834
- UPB_INLINE upb_strview* validate_BytesRules_resize_in(validate_BytesRules *msg, size_t len, upb_arena *arena) {
1835
- return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(76, 120), len, UPB_SIZE(3, 4), arena);
2110
+ UPB_INLINE upb_StringView* validate_BytesRules_resize_in(validate_BytesRules *msg, size_t len, upb_Arena *arena) {
2111
+ return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(76, 120), len, UPB_SIZE(3, 4), arena);
1836
2112
  }
1837
- UPB_INLINE bool validate_BytesRules_add_in(validate_BytesRules *msg, upb_strview val, upb_arena *arena) {
1838
- return _upb_array_append_accessor2(msg, UPB_SIZE(76, 120), UPB_SIZE(3, 4), &val,
2113
+ UPB_INLINE bool validate_BytesRules_add_in(validate_BytesRules *msg, upb_StringView val, upb_Arena *arena) {
2114
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(76, 120), UPB_SIZE(3, 4), &val,
1839
2115
  arena);
1840
2116
  }
1841
- UPB_INLINE upb_strview* validate_BytesRules_mutable_not_in(validate_BytesRules *msg, size_t *len) {
1842
- return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(80, 128), len);
2117
+ UPB_INLINE upb_StringView* validate_BytesRules_mutable_not_in(validate_BytesRules *msg, size_t *len) {
2118
+ return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(80, 128), len);
1843
2119
  }
1844
- UPB_INLINE upb_strview* validate_BytesRules_resize_not_in(validate_BytesRules *msg, size_t len, upb_arena *arena) {
1845
- return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(80, 128), len, UPB_SIZE(3, 4), arena);
2120
+ UPB_INLINE upb_StringView* validate_BytesRules_resize_not_in(validate_BytesRules *msg, size_t len, upb_Arena *arena) {
2121
+ return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(80, 128), len, UPB_SIZE(3, 4), arena);
1846
2122
  }
1847
- UPB_INLINE bool validate_BytesRules_add_not_in(validate_BytesRules *msg, upb_strview val, upb_arena *arena) {
1848
- return _upb_array_append_accessor2(msg, UPB_SIZE(80, 128), UPB_SIZE(3, 4), &val,
2123
+ UPB_INLINE bool validate_BytesRules_add_not_in(validate_BytesRules *msg, upb_StringView val, upb_Arena *arena) {
2124
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(80, 128), UPB_SIZE(3, 4), &val,
1849
2125
  arena);
1850
2126
  }
1851
2127
  UPB_INLINE void validate_BytesRules_set_ip(validate_BytesRules *msg, bool value) {
@@ -1868,34 +2144,43 @@ UPB_INLINE void validate_BytesRules_set_ignore_empty(validate_BytesRules *msg, b
1868
2144
 
1869
2145
  /* validate.EnumRules */
1870
2146
 
1871
- UPB_INLINE validate_EnumRules *validate_EnumRules_new(upb_arena *arena) {
1872
- return (validate_EnumRules *)_upb_msg_new(&validate_EnumRules_msginit, arena);
2147
+ UPB_INLINE validate_EnumRules* validate_EnumRules_new(upb_Arena* arena) {
2148
+ return (validate_EnumRules*)_upb_Message_New(&validate_EnumRules_msginit, arena);
1873
2149
  }
1874
- UPB_INLINE validate_EnumRules *validate_EnumRules_parse(const char *buf, size_t size,
1875
- upb_arena *arena) {
1876
- validate_EnumRules *ret = validate_EnumRules_new(arena);
2150
+ UPB_INLINE validate_EnumRules* validate_EnumRules_parse(const char* buf, size_t size, upb_Arena* arena) {
2151
+ validate_EnumRules* ret = validate_EnumRules_new(arena);
1877
2152
  if (!ret) return NULL;
1878
- if (!upb_decode(buf, size, ret, &validate_EnumRules_msginit, arena)) return NULL;
2153
+ if (upb_Decode(buf, size, ret, &validate_EnumRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
2154
+ return NULL;
2155
+ }
1879
2156
  return ret;
1880
2157
  }
1881
- UPB_INLINE validate_EnumRules *validate_EnumRules_parse_ex(const char *buf, size_t size,
1882
- const upb_extreg *extreg, int options,
1883
- upb_arena *arena) {
1884
- validate_EnumRules *ret = validate_EnumRules_new(arena);
2158
+ UPB_INLINE validate_EnumRules* validate_EnumRules_parse_ex(const char* buf, size_t size,
2159
+ const upb_ExtensionRegistry* extreg,
2160
+ int options, upb_Arena* arena) {
2161
+ validate_EnumRules* ret = validate_EnumRules_new(arena);
1885
2162
  if (!ret) return NULL;
1886
- if (!_upb_decode(buf, size, ret, &validate_EnumRules_msginit, extreg, options, arena)) {
2163
+ if (upb_Decode(buf, size, ret, &validate_EnumRules_msginit, extreg, options, arena) !=
2164
+ kUpb_DecodeStatus_Ok) {
1887
2165
  return NULL;
1888
2166
  }
1889
2167
  return ret;
1890
2168
  }
1891
- UPB_INLINE char *validate_EnumRules_serialize(const validate_EnumRules *msg, upb_arena *arena, size_t *len) {
1892
- return upb_encode(msg, &validate_EnumRules_msginit, arena, len);
2169
+ UPB_INLINE char* validate_EnumRules_serialize(const validate_EnumRules* msg, upb_Arena* arena, size_t* len) {
2170
+ return upb_Encode(msg, &validate_EnumRules_msginit, 0, arena, len);
2171
+ }
2172
+ UPB_INLINE char* validate_EnumRules_serialize_ex(const validate_EnumRules* msg, int options,
2173
+ upb_Arena* arena, size_t* len) {
2174
+ return upb_Encode(msg, &validate_EnumRules_msginit, options, arena, len);
1893
2175
  }
1894
-
1895
2176
  UPB_INLINE bool validate_EnumRules_has_const(const validate_EnumRules *msg) { return _upb_hasbit(msg, 1); }
1896
- UPB_INLINE int32_t validate_EnumRules_const(const validate_EnumRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
2177
+ UPB_INLINE int32_t validate_EnumRules_const(const validate_EnumRules* msg) {
2178
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t);
2179
+ }
1897
2180
  UPB_INLINE bool validate_EnumRules_has_defined_only(const validate_EnumRules *msg) { return _upb_hasbit(msg, 2); }
1898
- UPB_INLINE bool validate_EnumRules_defined_only(const validate_EnumRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); }
2181
+ UPB_INLINE bool validate_EnumRules_defined_only(const validate_EnumRules* msg) {
2182
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool);
2183
+ }
1899
2184
  UPB_INLINE int32_t const* validate_EnumRules_in(const validate_EnumRules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(12, 16), len); }
1900
2185
  UPB_INLINE int32_t const* validate_EnumRules_not_in(const validate_EnumRules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(16, 24), len); }
1901
2186
 
@@ -1910,54 +2195,63 @@ UPB_INLINE void validate_EnumRules_set_defined_only(validate_EnumRules *msg, boo
1910
2195
  UPB_INLINE int32_t* validate_EnumRules_mutable_in(validate_EnumRules *msg, size_t *len) {
1911
2196
  return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 16), len);
1912
2197
  }
1913
- UPB_INLINE int32_t* validate_EnumRules_resize_in(validate_EnumRules *msg, size_t len, upb_arena *arena) {
1914
- return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(12, 16), len, 2, arena);
2198
+ UPB_INLINE int32_t* validate_EnumRules_resize_in(validate_EnumRules *msg, size_t len, upb_Arena *arena) {
2199
+ return (int32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(12, 16), len, 2, arena);
1915
2200
  }
1916
- UPB_INLINE bool validate_EnumRules_add_in(validate_EnumRules *msg, int32_t val, upb_arena *arena) {
1917
- return _upb_array_append_accessor2(msg, UPB_SIZE(12, 16), 2, &val,
2201
+ UPB_INLINE bool validate_EnumRules_add_in(validate_EnumRules *msg, int32_t val, upb_Arena *arena) {
2202
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(12, 16), 2, &val,
1918
2203
  arena);
1919
2204
  }
1920
2205
  UPB_INLINE int32_t* validate_EnumRules_mutable_not_in(validate_EnumRules *msg, size_t *len) {
1921
2206
  return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(16, 24), len);
1922
2207
  }
1923
- UPB_INLINE int32_t* validate_EnumRules_resize_not_in(validate_EnumRules *msg, size_t len, upb_arena *arena) {
1924
- return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(16, 24), len, 2, arena);
2208
+ UPB_INLINE int32_t* validate_EnumRules_resize_not_in(validate_EnumRules *msg, size_t len, upb_Arena *arena) {
2209
+ return (int32_t*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(16, 24), len, 2, arena);
1925
2210
  }
1926
- UPB_INLINE bool validate_EnumRules_add_not_in(validate_EnumRules *msg, int32_t val, upb_arena *arena) {
1927
- return _upb_array_append_accessor2(msg, UPB_SIZE(16, 24), 2, &val,
2211
+ UPB_INLINE bool validate_EnumRules_add_not_in(validate_EnumRules *msg, int32_t val, upb_Arena *arena) {
2212
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(16, 24), 2, &val,
1928
2213
  arena);
1929
2214
  }
1930
2215
 
1931
2216
  /* validate.MessageRules */
1932
2217
 
1933
- UPB_INLINE validate_MessageRules *validate_MessageRules_new(upb_arena *arena) {
1934
- return (validate_MessageRules *)_upb_msg_new(&validate_MessageRules_msginit, arena);
2218
+ UPB_INLINE validate_MessageRules* validate_MessageRules_new(upb_Arena* arena) {
2219
+ return (validate_MessageRules*)_upb_Message_New(&validate_MessageRules_msginit, arena);
1935
2220
  }
1936
- UPB_INLINE validate_MessageRules *validate_MessageRules_parse(const char *buf, size_t size,
1937
- upb_arena *arena) {
1938
- validate_MessageRules *ret = validate_MessageRules_new(arena);
2221
+ UPB_INLINE validate_MessageRules* validate_MessageRules_parse(const char* buf, size_t size, upb_Arena* arena) {
2222
+ validate_MessageRules* ret = validate_MessageRules_new(arena);
1939
2223
  if (!ret) return NULL;
1940
- if (!upb_decode(buf, size, ret, &validate_MessageRules_msginit, arena)) return NULL;
2224
+ if (upb_Decode(buf, size, ret, &validate_MessageRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
2225
+ return NULL;
2226
+ }
1941
2227
  return ret;
1942
2228
  }
1943
- UPB_INLINE validate_MessageRules *validate_MessageRules_parse_ex(const char *buf, size_t size,
1944
- const upb_extreg *extreg, int options,
1945
- upb_arena *arena) {
1946
- validate_MessageRules *ret = validate_MessageRules_new(arena);
2229
+ UPB_INLINE validate_MessageRules* validate_MessageRules_parse_ex(const char* buf, size_t size,
2230
+ const upb_ExtensionRegistry* extreg,
2231
+ int options, upb_Arena* arena) {
2232
+ validate_MessageRules* ret = validate_MessageRules_new(arena);
1947
2233
  if (!ret) return NULL;
1948
- if (!_upb_decode(buf, size, ret, &validate_MessageRules_msginit, extreg, options, arena)) {
2234
+ if (upb_Decode(buf, size, ret, &validate_MessageRules_msginit, extreg, options, arena) !=
2235
+ kUpb_DecodeStatus_Ok) {
1949
2236
  return NULL;
1950
2237
  }
1951
2238
  return ret;
1952
2239
  }
1953
- UPB_INLINE char *validate_MessageRules_serialize(const validate_MessageRules *msg, upb_arena *arena, size_t *len) {
1954
- return upb_encode(msg, &validate_MessageRules_msginit, arena, len);
2240
+ UPB_INLINE char* validate_MessageRules_serialize(const validate_MessageRules* msg, upb_Arena* arena, size_t* len) {
2241
+ return upb_Encode(msg, &validate_MessageRules_msginit, 0, arena, len);
2242
+ }
2243
+ UPB_INLINE char* validate_MessageRules_serialize_ex(const validate_MessageRules* msg, int options,
2244
+ upb_Arena* arena, size_t* len) {
2245
+ return upb_Encode(msg, &validate_MessageRules_msginit, options, arena, len);
1955
2246
  }
1956
-
1957
2247
  UPB_INLINE bool validate_MessageRules_has_skip(const validate_MessageRules *msg) { return _upb_hasbit(msg, 1); }
1958
- UPB_INLINE bool validate_MessageRules_skip(const validate_MessageRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
2248
+ UPB_INLINE bool validate_MessageRules_skip(const validate_MessageRules* msg) {
2249
+ return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool);
2250
+ }
1959
2251
  UPB_INLINE bool validate_MessageRules_has_required(const validate_MessageRules *msg) { return _upb_hasbit(msg, 2); }
1960
- UPB_INLINE bool validate_MessageRules_required(const validate_MessageRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool); }
2252
+ UPB_INLINE bool validate_MessageRules_required(const validate_MessageRules* msg) {
2253
+ return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool);
2254
+ }
1961
2255
 
1962
2256
  UPB_INLINE void validate_MessageRules_set_skip(validate_MessageRules *msg, bool value) {
1963
2257
  _upb_sethas(msg, 1);
@@ -1970,40 +2264,55 @@ UPB_INLINE void validate_MessageRules_set_required(validate_MessageRules *msg, b
1970
2264
 
1971
2265
  /* validate.RepeatedRules */
1972
2266
 
1973
- UPB_INLINE validate_RepeatedRules *validate_RepeatedRules_new(upb_arena *arena) {
1974
- return (validate_RepeatedRules *)_upb_msg_new(&validate_RepeatedRules_msginit, arena);
2267
+ UPB_INLINE validate_RepeatedRules* validate_RepeatedRules_new(upb_Arena* arena) {
2268
+ return (validate_RepeatedRules*)_upb_Message_New(&validate_RepeatedRules_msginit, arena);
1975
2269
  }
1976
- UPB_INLINE validate_RepeatedRules *validate_RepeatedRules_parse(const char *buf, size_t size,
1977
- upb_arena *arena) {
1978
- validate_RepeatedRules *ret = validate_RepeatedRules_new(arena);
2270
+ UPB_INLINE validate_RepeatedRules* validate_RepeatedRules_parse(const char* buf, size_t size, upb_Arena* arena) {
2271
+ validate_RepeatedRules* ret = validate_RepeatedRules_new(arena);
1979
2272
  if (!ret) return NULL;
1980
- if (!upb_decode(buf, size, ret, &validate_RepeatedRules_msginit, arena)) return NULL;
2273
+ if (upb_Decode(buf, size, ret, &validate_RepeatedRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
2274
+ return NULL;
2275
+ }
1981
2276
  return ret;
1982
2277
  }
1983
- UPB_INLINE validate_RepeatedRules *validate_RepeatedRules_parse_ex(const char *buf, size_t size,
1984
- const upb_extreg *extreg, int options,
1985
- upb_arena *arena) {
1986
- validate_RepeatedRules *ret = validate_RepeatedRules_new(arena);
2278
+ UPB_INLINE validate_RepeatedRules* validate_RepeatedRules_parse_ex(const char* buf, size_t size,
2279
+ const upb_ExtensionRegistry* extreg,
2280
+ int options, upb_Arena* arena) {
2281
+ validate_RepeatedRules* ret = validate_RepeatedRules_new(arena);
1987
2282
  if (!ret) return NULL;
1988
- if (!_upb_decode(buf, size, ret, &validate_RepeatedRules_msginit, extreg, options, arena)) {
2283
+ if (upb_Decode(buf, size, ret, &validate_RepeatedRules_msginit, extreg, options, arena) !=
2284
+ kUpb_DecodeStatus_Ok) {
1989
2285
  return NULL;
1990
2286
  }
1991
2287
  return ret;
1992
2288
  }
1993
- UPB_INLINE char *validate_RepeatedRules_serialize(const validate_RepeatedRules *msg, upb_arena *arena, size_t *len) {
1994
- return upb_encode(msg, &validate_RepeatedRules_msginit, arena, len);
2289
+ UPB_INLINE char* validate_RepeatedRules_serialize(const validate_RepeatedRules* msg, upb_Arena* arena, size_t* len) {
2290
+ return upb_Encode(msg, &validate_RepeatedRules_msginit, 0, arena, len);
2291
+ }
2292
+ UPB_INLINE char* validate_RepeatedRules_serialize_ex(const validate_RepeatedRules* msg, int options,
2293
+ upb_Arena* arena, size_t* len) {
2294
+ return upb_Encode(msg, &validate_RepeatedRules_msginit, options, arena, len);
1995
2295
  }
1996
-
1997
2296
  UPB_INLINE bool validate_RepeatedRules_has_min_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 1); }
1998
- UPB_INLINE uint64_t validate_RepeatedRules_min_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
2297
+ UPB_INLINE uint64_t validate_RepeatedRules_min_items(const validate_RepeatedRules* msg) {
2298
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t);
2299
+ }
1999
2300
  UPB_INLINE bool validate_RepeatedRules_has_max_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 2); }
2000
- UPB_INLINE uint64_t validate_RepeatedRules_max_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
2301
+ UPB_INLINE uint64_t validate_RepeatedRules_max_items(const validate_RepeatedRules* msg) {
2302
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t);
2303
+ }
2001
2304
  UPB_INLINE bool validate_RepeatedRules_has_unique(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 3); }
2002
- UPB_INLINE bool validate_RepeatedRules_unique(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
2305
+ UPB_INLINE bool validate_RepeatedRules_unique(const validate_RepeatedRules* msg) {
2306
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool);
2307
+ }
2003
2308
  UPB_INLINE bool validate_RepeatedRules_has_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 4); }
2004
- UPB_INLINE const validate_FieldRules* validate_RepeatedRules_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 32), const validate_FieldRules*); }
2309
+ UPB_INLINE const validate_FieldRules* validate_RepeatedRules_items(const validate_RepeatedRules* msg) {
2310
+ return *UPB_PTR_AT(msg, UPB_SIZE(28, 32), const validate_FieldRules*);
2311
+ }
2005
2312
  UPB_INLINE bool validate_RepeatedRules_has_ignore_empty(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 5); }
2006
- UPB_INLINE bool validate_RepeatedRules_ignore_empty(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(25, 25), bool); }
2313
+ UPB_INLINE bool validate_RepeatedRules_ignore_empty(const validate_RepeatedRules* msg) {
2314
+ return *UPB_PTR_AT(msg, UPB_SIZE(25, 25), bool);
2315
+ }
2007
2316
 
2008
2317
  UPB_INLINE void validate_RepeatedRules_set_min_items(validate_RepeatedRules *msg, uint64_t value) {
2009
2318
  _upb_sethas(msg, 1);
@@ -2021,10 +2330,10 @@ UPB_INLINE void validate_RepeatedRules_set_items(validate_RepeatedRules *msg, va
2021
2330
  _upb_sethas(msg, 4);
2022
2331
  *UPB_PTR_AT(msg, UPB_SIZE(28, 32), validate_FieldRules*) = value;
2023
2332
  }
2024
- UPB_INLINE struct validate_FieldRules* validate_RepeatedRules_mutable_items(validate_RepeatedRules *msg, upb_arena *arena) {
2333
+ UPB_INLINE struct validate_FieldRules* validate_RepeatedRules_mutable_items(validate_RepeatedRules *msg, upb_Arena *arena) {
2025
2334
  struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_RepeatedRules_items(msg);
2026
2335
  if (sub == NULL) {
2027
- sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
2336
+ sub = (struct validate_FieldRules*)_upb_Message_New(&validate_FieldRules_msginit, arena);
2028
2337
  if (!sub) return NULL;
2029
2338
  validate_RepeatedRules_set_items(msg, sub);
2030
2339
  }
@@ -2037,42 +2346,59 @@ UPB_INLINE void validate_RepeatedRules_set_ignore_empty(validate_RepeatedRules *
2037
2346
 
2038
2347
  /* validate.MapRules */
2039
2348
 
2040
- UPB_INLINE validate_MapRules *validate_MapRules_new(upb_arena *arena) {
2041
- return (validate_MapRules *)_upb_msg_new(&validate_MapRules_msginit, arena);
2349
+ UPB_INLINE validate_MapRules* validate_MapRules_new(upb_Arena* arena) {
2350
+ return (validate_MapRules*)_upb_Message_New(&validate_MapRules_msginit, arena);
2042
2351
  }
2043
- UPB_INLINE validate_MapRules *validate_MapRules_parse(const char *buf, size_t size,
2044
- upb_arena *arena) {
2045
- validate_MapRules *ret = validate_MapRules_new(arena);
2352
+ UPB_INLINE validate_MapRules* validate_MapRules_parse(const char* buf, size_t size, upb_Arena* arena) {
2353
+ validate_MapRules* ret = validate_MapRules_new(arena);
2046
2354
  if (!ret) return NULL;
2047
- if (!upb_decode(buf, size, ret, &validate_MapRules_msginit, arena)) return NULL;
2355
+ if (upb_Decode(buf, size, ret, &validate_MapRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
2356
+ return NULL;
2357
+ }
2048
2358
  return ret;
2049
2359
  }
2050
- UPB_INLINE validate_MapRules *validate_MapRules_parse_ex(const char *buf, size_t size,
2051
- const upb_extreg *extreg, int options,
2052
- upb_arena *arena) {
2053
- validate_MapRules *ret = validate_MapRules_new(arena);
2360
+ UPB_INLINE validate_MapRules* validate_MapRules_parse_ex(const char* buf, size_t size,
2361
+ const upb_ExtensionRegistry* extreg,
2362
+ int options, upb_Arena* arena) {
2363
+ validate_MapRules* ret = validate_MapRules_new(arena);
2054
2364
  if (!ret) return NULL;
2055
- if (!_upb_decode(buf, size, ret, &validate_MapRules_msginit, extreg, options, arena)) {
2365
+ if (upb_Decode(buf, size, ret, &validate_MapRules_msginit, extreg, options, arena) !=
2366
+ kUpb_DecodeStatus_Ok) {
2056
2367
  return NULL;
2057
2368
  }
2058
2369
  return ret;
2059
2370
  }
2060
- UPB_INLINE char *validate_MapRules_serialize(const validate_MapRules *msg, upb_arena *arena, size_t *len) {
2061
- return upb_encode(msg, &validate_MapRules_msginit, arena, len);
2371
+ UPB_INLINE char* validate_MapRules_serialize(const validate_MapRules* msg, upb_Arena* arena, size_t* len) {
2372
+ return upb_Encode(msg, &validate_MapRules_msginit, 0, arena, len);
2373
+ }
2374
+ UPB_INLINE char* validate_MapRules_serialize_ex(const validate_MapRules* msg, int options,
2375
+ upb_Arena* arena, size_t* len) {
2376
+ return upb_Encode(msg, &validate_MapRules_msginit, options, arena, len);
2062
2377
  }
2063
-
2064
2378
  UPB_INLINE bool validate_MapRules_has_min_pairs(const validate_MapRules *msg) { return _upb_hasbit(msg, 1); }
2065
- UPB_INLINE uint64_t validate_MapRules_min_pairs(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
2379
+ UPB_INLINE uint64_t validate_MapRules_min_pairs(const validate_MapRules* msg) {
2380
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t);
2381
+ }
2066
2382
  UPB_INLINE bool validate_MapRules_has_max_pairs(const validate_MapRules *msg) { return _upb_hasbit(msg, 2); }
2067
- UPB_INLINE uint64_t validate_MapRules_max_pairs(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
2383
+ UPB_INLINE uint64_t validate_MapRules_max_pairs(const validate_MapRules* msg) {
2384
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t);
2385
+ }
2068
2386
  UPB_INLINE bool validate_MapRules_has_no_sparse(const validate_MapRules *msg) { return _upb_hasbit(msg, 3); }
2069
- UPB_INLINE bool validate_MapRules_no_sparse(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
2387
+ UPB_INLINE bool validate_MapRules_no_sparse(const validate_MapRules* msg) {
2388
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool);
2389
+ }
2070
2390
  UPB_INLINE bool validate_MapRules_has_keys(const validate_MapRules *msg) { return _upb_hasbit(msg, 4); }
2071
- UPB_INLINE const validate_FieldRules* validate_MapRules_keys(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 32), const validate_FieldRules*); }
2391
+ UPB_INLINE const validate_FieldRules* validate_MapRules_keys(const validate_MapRules* msg) {
2392
+ return *UPB_PTR_AT(msg, UPB_SIZE(28, 32), const validate_FieldRules*);
2393
+ }
2072
2394
  UPB_INLINE bool validate_MapRules_has_values(const validate_MapRules *msg) { return _upb_hasbit(msg, 5); }
2073
- UPB_INLINE const validate_FieldRules* validate_MapRules_values(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 40), const validate_FieldRules*); }
2395
+ UPB_INLINE const validate_FieldRules* validate_MapRules_values(const validate_MapRules* msg) {
2396
+ return *UPB_PTR_AT(msg, UPB_SIZE(32, 40), const validate_FieldRules*);
2397
+ }
2074
2398
  UPB_INLINE bool validate_MapRules_has_ignore_empty(const validate_MapRules *msg) { return _upb_hasbit(msg, 6); }
2075
- UPB_INLINE bool validate_MapRules_ignore_empty(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(25, 25), bool); }
2399
+ UPB_INLINE bool validate_MapRules_ignore_empty(const validate_MapRules* msg) {
2400
+ return *UPB_PTR_AT(msg, UPB_SIZE(25, 25), bool);
2401
+ }
2076
2402
 
2077
2403
  UPB_INLINE void validate_MapRules_set_min_pairs(validate_MapRules *msg, uint64_t value) {
2078
2404
  _upb_sethas(msg, 1);
@@ -2090,10 +2416,10 @@ UPB_INLINE void validate_MapRules_set_keys(validate_MapRules *msg, validate_Fiel
2090
2416
  _upb_sethas(msg, 4);
2091
2417
  *UPB_PTR_AT(msg, UPB_SIZE(28, 32), validate_FieldRules*) = value;
2092
2418
  }
2093
- UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_keys(validate_MapRules *msg, upb_arena *arena) {
2419
+ UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_keys(validate_MapRules *msg, upb_Arena *arena) {
2094
2420
  struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_MapRules_keys(msg);
2095
2421
  if (sub == NULL) {
2096
- sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
2422
+ sub = (struct validate_FieldRules*)_upb_Message_New(&validate_FieldRules_msginit, arena);
2097
2423
  if (!sub) return NULL;
2098
2424
  validate_MapRules_set_keys(msg, sub);
2099
2425
  }
@@ -2103,10 +2429,10 @@ UPB_INLINE void validate_MapRules_set_values(validate_MapRules *msg, validate_Fi
2103
2429
  _upb_sethas(msg, 5);
2104
2430
  *UPB_PTR_AT(msg, UPB_SIZE(32, 40), validate_FieldRules*) = value;
2105
2431
  }
2106
- UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_values(validate_MapRules *msg, upb_arena *arena) {
2432
+ UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_values(validate_MapRules *msg, upb_Arena *arena) {
2107
2433
  struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_MapRules_values(msg);
2108
2434
  if (sub == NULL) {
2109
- sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
2435
+ sub = (struct validate_FieldRules*)_upb_Message_New(&validate_FieldRules_msginit, arena);
2110
2436
  if (!sub) return NULL;
2111
2437
  validate_MapRules_set_values(msg, sub);
2112
2438
  }
@@ -2119,98 +2445,122 @@ UPB_INLINE void validate_MapRules_set_ignore_empty(validate_MapRules *msg, bool
2119
2445
 
2120
2446
  /* validate.AnyRules */
2121
2447
 
2122
- UPB_INLINE validate_AnyRules *validate_AnyRules_new(upb_arena *arena) {
2123
- return (validate_AnyRules *)_upb_msg_new(&validate_AnyRules_msginit, arena);
2448
+ UPB_INLINE validate_AnyRules* validate_AnyRules_new(upb_Arena* arena) {
2449
+ return (validate_AnyRules*)_upb_Message_New(&validate_AnyRules_msginit, arena);
2124
2450
  }
2125
- UPB_INLINE validate_AnyRules *validate_AnyRules_parse(const char *buf, size_t size,
2126
- upb_arena *arena) {
2127
- validate_AnyRules *ret = validate_AnyRules_new(arena);
2451
+ UPB_INLINE validate_AnyRules* validate_AnyRules_parse(const char* buf, size_t size, upb_Arena* arena) {
2452
+ validate_AnyRules* ret = validate_AnyRules_new(arena);
2128
2453
  if (!ret) return NULL;
2129
- if (!upb_decode(buf, size, ret, &validate_AnyRules_msginit, arena)) return NULL;
2454
+ if (upb_Decode(buf, size, ret, &validate_AnyRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
2455
+ return NULL;
2456
+ }
2130
2457
  return ret;
2131
2458
  }
2132
- UPB_INLINE validate_AnyRules *validate_AnyRules_parse_ex(const char *buf, size_t size,
2133
- const upb_extreg *extreg, int options,
2134
- upb_arena *arena) {
2135
- validate_AnyRules *ret = validate_AnyRules_new(arena);
2459
+ UPB_INLINE validate_AnyRules* validate_AnyRules_parse_ex(const char* buf, size_t size,
2460
+ const upb_ExtensionRegistry* extreg,
2461
+ int options, upb_Arena* arena) {
2462
+ validate_AnyRules* ret = validate_AnyRules_new(arena);
2136
2463
  if (!ret) return NULL;
2137
- if (!_upb_decode(buf, size, ret, &validate_AnyRules_msginit, extreg, options, arena)) {
2464
+ if (upb_Decode(buf, size, ret, &validate_AnyRules_msginit, extreg, options, arena) !=
2465
+ kUpb_DecodeStatus_Ok) {
2138
2466
  return NULL;
2139
2467
  }
2140
2468
  return ret;
2141
2469
  }
2142
- UPB_INLINE char *validate_AnyRules_serialize(const validate_AnyRules *msg, upb_arena *arena, size_t *len) {
2143
- return upb_encode(msg, &validate_AnyRules_msginit, arena, len);
2470
+ UPB_INLINE char* validate_AnyRules_serialize(const validate_AnyRules* msg, upb_Arena* arena, size_t* len) {
2471
+ return upb_Encode(msg, &validate_AnyRules_msginit, 0, arena, len);
2472
+ }
2473
+ UPB_INLINE char* validate_AnyRules_serialize_ex(const validate_AnyRules* msg, int options,
2474
+ upb_Arena* arena, size_t* len) {
2475
+ return upb_Encode(msg, &validate_AnyRules_msginit, options, arena, len);
2144
2476
  }
2145
-
2146
2477
  UPB_INLINE bool validate_AnyRules_has_required(const validate_AnyRules *msg) { return _upb_hasbit(msg, 1); }
2147
- UPB_INLINE bool validate_AnyRules_required(const validate_AnyRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
2148
- UPB_INLINE upb_strview const* validate_AnyRules_in(const validate_AnyRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); }
2149
- UPB_INLINE upb_strview const* validate_AnyRules_not_in(const validate_AnyRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); }
2478
+ UPB_INLINE bool validate_AnyRules_required(const validate_AnyRules* msg) {
2479
+ return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool);
2480
+ }
2481
+ UPB_INLINE upb_StringView const* validate_AnyRules_in(const validate_AnyRules *msg, size_t *len) { return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); }
2482
+ UPB_INLINE upb_StringView const* validate_AnyRules_not_in(const validate_AnyRules *msg, size_t *len) { return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); }
2150
2483
 
2151
2484
  UPB_INLINE void validate_AnyRules_set_required(validate_AnyRules *msg, bool value) {
2152
2485
  _upb_sethas(msg, 1);
2153
2486
  *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
2154
2487
  }
2155
- UPB_INLINE upb_strview* validate_AnyRules_mutable_in(validate_AnyRules *msg, size_t *len) {
2156
- return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len);
2488
+ UPB_INLINE upb_StringView* validate_AnyRules_mutable_in(validate_AnyRules *msg, size_t *len) {
2489
+ return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len);
2157
2490
  }
2158
- UPB_INLINE upb_strview* validate_AnyRules_resize_in(validate_AnyRules *msg, size_t len, upb_arena *arena) {
2159
- return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(3, 4), arena);
2491
+ UPB_INLINE upb_StringView* validate_AnyRules_resize_in(validate_AnyRules *msg, size_t len, upb_Arena *arena) {
2492
+ return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(3, 4), arena);
2160
2493
  }
2161
- UPB_INLINE bool validate_AnyRules_add_in(validate_AnyRules *msg, upb_strview val, upb_arena *arena) {
2162
- return _upb_array_append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(3, 4), &val,
2494
+ UPB_INLINE bool validate_AnyRules_add_in(validate_AnyRules *msg, upb_StringView val, upb_Arena *arena) {
2495
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(3, 4), &val,
2163
2496
  arena);
2164
2497
  }
2165
- UPB_INLINE upb_strview* validate_AnyRules_mutable_not_in(validate_AnyRules *msg, size_t *len) {
2166
- return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len);
2498
+ UPB_INLINE upb_StringView* validate_AnyRules_mutable_not_in(validate_AnyRules *msg, size_t *len) {
2499
+ return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len);
2167
2500
  }
2168
- UPB_INLINE upb_strview* validate_AnyRules_resize_not_in(validate_AnyRules *msg, size_t len, upb_arena *arena) {
2169
- return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(3, 4), arena);
2501
+ UPB_INLINE upb_StringView* validate_AnyRules_resize_not_in(validate_AnyRules *msg, size_t len, upb_Arena *arena) {
2502
+ return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(3, 4), arena);
2170
2503
  }
2171
- UPB_INLINE bool validate_AnyRules_add_not_in(validate_AnyRules *msg, upb_strview val, upb_arena *arena) {
2172
- return _upb_array_append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(3, 4), &val,
2504
+ UPB_INLINE bool validate_AnyRules_add_not_in(validate_AnyRules *msg, upb_StringView val, upb_Arena *arena) {
2505
+ return _upb_Array_Append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(3, 4), &val,
2173
2506
  arena);
2174
2507
  }
2175
2508
 
2176
2509
  /* validate.DurationRules */
2177
2510
 
2178
- UPB_INLINE validate_DurationRules *validate_DurationRules_new(upb_arena *arena) {
2179
- return (validate_DurationRules *)_upb_msg_new(&validate_DurationRules_msginit, arena);
2511
+ UPB_INLINE validate_DurationRules* validate_DurationRules_new(upb_Arena* arena) {
2512
+ return (validate_DurationRules*)_upb_Message_New(&validate_DurationRules_msginit, arena);
2180
2513
  }
2181
- UPB_INLINE validate_DurationRules *validate_DurationRules_parse(const char *buf, size_t size,
2182
- upb_arena *arena) {
2183
- validate_DurationRules *ret = validate_DurationRules_new(arena);
2514
+ UPB_INLINE validate_DurationRules* validate_DurationRules_parse(const char* buf, size_t size, upb_Arena* arena) {
2515
+ validate_DurationRules* ret = validate_DurationRules_new(arena);
2184
2516
  if (!ret) return NULL;
2185
- if (!upb_decode(buf, size, ret, &validate_DurationRules_msginit, arena)) return NULL;
2517
+ if (upb_Decode(buf, size, ret, &validate_DurationRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
2518
+ return NULL;
2519
+ }
2186
2520
  return ret;
2187
2521
  }
2188
- UPB_INLINE validate_DurationRules *validate_DurationRules_parse_ex(const char *buf, size_t size,
2189
- const upb_extreg *extreg, int options,
2190
- upb_arena *arena) {
2191
- validate_DurationRules *ret = validate_DurationRules_new(arena);
2522
+ UPB_INLINE validate_DurationRules* validate_DurationRules_parse_ex(const char* buf, size_t size,
2523
+ const upb_ExtensionRegistry* extreg,
2524
+ int options, upb_Arena* arena) {
2525
+ validate_DurationRules* ret = validate_DurationRules_new(arena);
2192
2526
  if (!ret) return NULL;
2193
- if (!_upb_decode(buf, size, ret, &validate_DurationRules_msginit, extreg, options, arena)) {
2527
+ if (upb_Decode(buf, size, ret, &validate_DurationRules_msginit, extreg, options, arena) !=
2528
+ kUpb_DecodeStatus_Ok) {
2194
2529
  return NULL;
2195
2530
  }
2196
2531
  return ret;
2197
2532
  }
2198
- UPB_INLINE char *validate_DurationRules_serialize(const validate_DurationRules *msg, upb_arena *arena, size_t *len) {
2199
- return upb_encode(msg, &validate_DurationRules_msginit, arena, len);
2533
+ UPB_INLINE char* validate_DurationRules_serialize(const validate_DurationRules* msg, upb_Arena* arena, size_t* len) {
2534
+ return upb_Encode(msg, &validate_DurationRules_msginit, 0, arena, len);
2535
+ }
2536
+ UPB_INLINE char* validate_DurationRules_serialize_ex(const validate_DurationRules* msg, int options,
2537
+ upb_Arena* arena, size_t* len) {
2538
+ return upb_Encode(msg, &validate_DurationRules_msginit, options, arena, len);
2200
2539
  }
2201
-
2202
2540
  UPB_INLINE bool validate_DurationRules_has_required(const validate_DurationRules *msg) { return _upb_hasbit(msg, 1); }
2203
- UPB_INLINE bool validate_DurationRules_required(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
2541
+ UPB_INLINE bool validate_DurationRules_required(const validate_DurationRules* msg) {
2542
+ return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool);
2543
+ }
2204
2544
  UPB_INLINE bool validate_DurationRules_has_const(const validate_DurationRules *msg) { return _upb_hasbit(msg, 2); }
2205
- UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_const(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Duration*); }
2545
+ UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_const(const validate_DurationRules* msg) {
2546
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Duration*);
2547
+ }
2206
2548
  UPB_INLINE bool validate_DurationRules_has_lt(const validate_DurationRules *msg) { return _upb_hasbit(msg, 3); }
2207
- UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lt(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Duration*); }
2549
+ UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lt(const validate_DurationRules* msg) {
2550
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Duration*);
2551
+ }
2208
2552
  UPB_INLINE bool validate_DurationRules_has_lte(const validate_DurationRules *msg) { return _upb_hasbit(msg, 4); }
2209
- UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lte(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Duration*); }
2553
+ UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lte(const validate_DurationRules* msg) {
2554
+ return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Duration*);
2555
+ }
2210
2556
  UPB_INLINE bool validate_DurationRules_has_gt(const validate_DurationRules *msg) { return _upb_hasbit(msg, 5); }
2211
- UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gt(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct google_protobuf_Duration*); }
2557
+ UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gt(const validate_DurationRules* msg) {
2558
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct google_protobuf_Duration*);
2559
+ }
2212
2560
  UPB_INLINE bool validate_DurationRules_has_gte(const validate_DurationRules *msg) { return _upb_hasbit(msg, 6); }
2213
- UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gte(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct google_protobuf_Duration*); }
2561
+ UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gte(const validate_DurationRules* msg) {
2562
+ return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct google_protobuf_Duration*);
2563
+ }
2214
2564
  UPB_INLINE bool validate_DurationRules_has_in(const validate_DurationRules *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 48)); }
2215
2565
  UPB_INLINE const struct google_protobuf_Duration* const* validate_DurationRules_in(const validate_DurationRules *msg, size_t *len) { return (const struct google_protobuf_Duration* const*)_upb_array_accessor(msg, UPB_SIZE(24, 48), len); }
2216
2566
  UPB_INLINE bool validate_DurationRules_has_not_in(const validate_DurationRules *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 56)); }
@@ -2224,10 +2574,10 @@ UPB_INLINE void validate_DurationRules_set_const(validate_DurationRules *msg, st
2224
2574
  _upb_sethas(msg, 2);
2225
2575
  *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Duration*) = value;
2226
2576
  }
2227
- UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_const(validate_DurationRules *msg, upb_arena *arena) {
2577
+ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_const(validate_DurationRules *msg, upb_Arena *arena) {
2228
2578
  struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_const(msg);
2229
2579
  if (sub == NULL) {
2230
- sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2580
+ sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena);
2231
2581
  if (!sub) return NULL;
2232
2582
  validate_DurationRules_set_const(msg, sub);
2233
2583
  }
@@ -2237,10 +2587,10 @@ UPB_INLINE void validate_DurationRules_set_lt(validate_DurationRules *msg, struc
2237
2587
  _upb_sethas(msg, 3);
2238
2588
  *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_Duration*) = value;
2239
2589
  }
2240
- UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lt(validate_DurationRules *msg, upb_arena *arena) {
2590
+ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lt(validate_DurationRules *msg, upb_Arena *arena) {
2241
2591
  struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_lt(msg);
2242
2592
  if (sub == NULL) {
2243
- sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2593
+ sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena);
2244
2594
  if (!sub) return NULL;
2245
2595
  validate_DurationRules_set_lt(msg, sub);
2246
2596
  }
@@ -2250,10 +2600,10 @@ UPB_INLINE void validate_DurationRules_set_lte(validate_DurationRules *msg, stru
2250
2600
  _upb_sethas(msg, 4);
2251
2601
  *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_Duration*) = value;
2252
2602
  }
2253
- UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lte(validate_DurationRules *msg, upb_arena *arena) {
2603
+ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lte(validate_DurationRules *msg, upb_Arena *arena) {
2254
2604
  struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_lte(msg);
2255
2605
  if (sub == NULL) {
2256
- sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2606
+ sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena);
2257
2607
  if (!sub) return NULL;
2258
2608
  validate_DurationRules_set_lte(msg, sub);
2259
2609
  }
@@ -2263,10 +2613,10 @@ UPB_INLINE void validate_DurationRules_set_gt(validate_DurationRules *msg, struc
2263
2613
  _upb_sethas(msg, 5);
2264
2614
  *UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct google_protobuf_Duration*) = value;
2265
2615
  }
2266
- UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gt(validate_DurationRules *msg, upb_arena *arena) {
2616
+ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gt(validate_DurationRules *msg, upb_Arena *arena) {
2267
2617
  struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_gt(msg);
2268
2618
  if (sub == NULL) {
2269
- sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2619
+ sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena);
2270
2620
  if (!sub) return NULL;
2271
2621
  validate_DurationRules_set_gt(msg, sub);
2272
2622
  }
@@ -2276,10 +2626,10 @@ UPB_INLINE void validate_DurationRules_set_gte(validate_DurationRules *msg, stru
2276
2626
  _upb_sethas(msg, 6);
2277
2627
  *UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct google_protobuf_Duration*) = value;
2278
2628
  }
2279
- UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gte(validate_DurationRules *msg, upb_arena *arena) {
2629
+ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gte(validate_DurationRules *msg, upb_Arena *arena) {
2280
2630
  struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_gte(msg);
2281
2631
  if (sub == NULL) {
2282
- sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2632
+ sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena);
2283
2633
  if (!sub) return NULL;
2284
2634
  validate_DurationRules_set_gte(msg, sub);
2285
2635
  }
@@ -2288,12 +2638,12 @@ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gte(v
2288
2638
  UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_mutable_in(validate_DurationRules *msg, size_t *len) {
2289
2639
  return (struct google_protobuf_Duration**)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 48), len);
2290
2640
  }
2291
- UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_resize_in(validate_DurationRules *msg, size_t len, upb_arena *arena) {
2292
- return (struct google_protobuf_Duration**)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 48), len, UPB_SIZE(2, 3), arena);
2641
+ UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_resize_in(validate_DurationRules *msg, size_t len, upb_Arena *arena) {
2642
+ return (struct google_protobuf_Duration**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(24, 48), len, UPB_SIZE(2, 3), arena);
2293
2643
  }
2294
- UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_in(validate_DurationRules *msg, upb_arena *arena) {
2295
- struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2296
- bool ok = _upb_array_append_accessor2(
2644
+ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_in(validate_DurationRules *msg, upb_Arena *arena) {
2645
+ struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena);
2646
+ bool ok = _upb_Array_Append_accessor2(
2297
2647
  msg, UPB_SIZE(24, 48), UPB_SIZE(2, 3), &sub, arena);
2298
2648
  if (!ok) return NULL;
2299
2649
  return sub;
@@ -2301,12 +2651,12 @@ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_in(valida
2301
2651
  UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_mutable_not_in(validate_DurationRules *msg, size_t *len) {
2302
2652
  return (struct google_protobuf_Duration**)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 56), len);
2303
2653
  }
2304
- UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_resize_not_in(validate_DurationRules *msg, size_t len, upb_arena *arena) {
2305
- return (struct google_protobuf_Duration**)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 56), len, UPB_SIZE(2, 3), arena);
2654
+ UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_resize_not_in(validate_DurationRules *msg, size_t len, upb_Arena *arena) {
2655
+ return (struct google_protobuf_Duration**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 56), len, UPB_SIZE(2, 3), arena);
2306
2656
  }
2307
- UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_not_in(validate_DurationRules *msg, upb_arena *arena) {
2308
- struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2309
- bool ok = _upb_array_append_accessor2(
2657
+ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_not_in(validate_DurationRules *msg, upb_Arena *arena) {
2658
+ struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena);
2659
+ bool ok = _upb_Array_Append_accessor2(
2310
2660
  msg, UPB_SIZE(28, 56), UPB_SIZE(2, 3), &sub, arena);
2311
2661
  if (!ok) return NULL;
2312
2662
  return sub;
@@ -2314,48 +2664,71 @@ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_not_in(va
2314
2664
 
2315
2665
  /* validate.TimestampRules */
2316
2666
 
2317
- UPB_INLINE validate_TimestampRules *validate_TimestampRules_new(upb_arena *arena) {
2318
- return (validate_TimestampRules *)_upb_msg_new(&validate_TimestampRules_msginit, arena);
2667
+ UPB_INLINE validate_TimestampRules* validate_TimestampRules_new(upb_Arena* arena) {
2668
+ return (validate_TimestampRules*)_upb_Message_New(&validate_TimestampRules_msginit, arena);
2319
2669
  }
2320
- UPB_INLINE validate_TimestampRules *validate_TimestampRules_parse(const char *buf, size_t size,
2321
- upb_arena *arena) {
2322
- validate_TimestampRules *ret = validate_TimestampRules_new(arena);
2670
+ UPB_INLINE validate_TimestampRules* validate_TimestampRules_parse(const char* buf, size_t size, upb_Arena* arena) {
2671
+ validate_TimestampRules* ret = validate_TimestampRules_new(arena);
2323
2672
  if (!ret) return NULL;
2324
- if (!upb_decode(buf, size, ret, &validate_TimestampRules_msginit, arena)) return NULL;
2673
+ if (upb_Decode(buf, size, ret, &validate_TimestampRules_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
2674
+ return NULL;
2675
+ }
2325
2676
  return ret;
2326
2677
  }
2327
- UPB_INLINE validate_TimestampRules *validate_TimestampRules_parse_ex(const char *buf, size_t size,
2328
- const upb_extreg *extreg, int options,
2329
- upb_arena *arena) {
2330
- validate_TimestampRules *ret = validate_TimestampRules_new(arena);
2678
+ UPB_INLINE validate_TimestampRules* validate_TimestampRules_parse_ex(const char* buf, size_t size,
2679
+ const upb_ExtensionRegistry* extreg,
2680
+ int options, upb_Arena* arena) {
2681
+ validate_TimestampRules* ret = validate_TimestampRules_new(arena);
2331
2682
  if (!ret) return NULL;
2332
- if (!_upb_decode(buf, size, ret, &validate_TimestampRules_msginit, extreg, options, arena)) {
2683
+ if (upb_Decode(buf, size, ret, &validate_TimestampRules_msginit, extreg, options, arena) !=
2684
+ kUpb_DecodeStatus_Ok) {
2333
2685
  return NULL;
2334
2686
  }
2335
2687
  return ret;
2336
2688
  }
2337
- UPB_INLINE char *validate_TimestampRules_serialize(const validate_TimestampRules *msg, upb_arena *arena, size_t *len) {
2338
- return upb_encode(msg, &validate_TimestampRules_msginit, arena, len);
2689
+ UPB_INLINE char* validate_TimestampRules_serialize(const validate_TimestampRules* msg, upb_Arena* arena, size_t* len) {
2690
+ return upb_Encode(msg, &validate_TimestampRules_msginit, 0, arena, len);
2691
+ }
2692
+ UPB_INLINE char* validate_TimestampRules_serialize_ex(const validate_TimestampRules* msg, int options,
2693
+ upb_Arena* arena, size_t* len) {
2694
+ return upb_Encode(msg, &validate_TimestampRules_msginit, options, arena, len);
2339
2695
  }
2340
-
2341
2696
  UPB_INLINE bool validate_TimestampRules_has_required(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 1); }
2342
- UPB_INLINE bool validate_TimestampRules_required(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool); }
2697
+ UPB_INLINE bool validate_TimestampRules_required(const validate_TimestampRules* msg) {
2698
+ return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool);
2699
+ }
2343
2700
  UPB_INLINE bool validate_TimestampRules_has_const(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 2); }
2344
- UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_const(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const struct google_protobuf_Timestamp*); }
2701
+ UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_const(const validate_TimestampRules* msg) {
2702
+ return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const struct google_protobuf_Timestamp*);
2703
+ }
2345
2704
  UPB_INLINE bool validate_TimestampRules_has_lt(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 3); }
2346
- UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lt(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct google_protobuf_Timestamp*); }
2705
+ UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lt(const validate_TimestampRules* msg) {
2706
+ return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct google_protobuf_Timestamp*);
2707
+ }
2347
2708
  UPB_INLINE bool validate_TimestampRules_has_lte(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 4); }
2348
- UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lte(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const struct google_protobuf_Timestamp*); }
2709
+ UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lte(const validate_TimestampRules* msg) {
2710
+ return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const struct google_protobuf_Timestamp*);
2711
+ }
2349
2712
  UPB_INLINE bool validate_TimestampRules_has_gt(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 5); }
2350
- UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gt(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const struct google_protobuf_Timestamp*); }
2713
+ UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gt(const validate_TimestampRules* msg) {
2714
+ return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const struct google_protobuf_Timestamp*);
2715
+ }
2351
2716
  UPB_INLINE bool validate_TimestampRules_has_gte(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 6); }
2352
- UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gte(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const struct google_protobuf_Timestamp*); }
2717
+ UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gte(const validate_TimestampRules* msg) {
2718
+ return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const struct google_protobuf_Timestamp*);
2719
+ }
2353
2720
  UPB_INLINE bool validate_TimestampRules_has_lt_now(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 7); }
2354
- UPB_INLINE bool validate_TimestampRules_lt_now(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool); }
2721
+ UPB_INLINE bool validate_TimestampRules_lt_now(const validate_TimestampRules* msg) {
2722
+ return *UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool);
2723
+ }
2355
2724
  UPB_INLINE bool validate_TimestampRules_has_gt_now(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 8); }
2356
- UPB_INLINE bool validate_TimestampRules_gt_now(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool); }
2725
+ UPB_INLINE bool validate_TimestampRules_gt_now(const validate_TimestampRules* msg) {
2726
+ return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool);
2727
+ }
2357
2728
  UPB_INLINE bool validate_TimestampRules_has_within(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 9); }
2358
- UPB_INLINE const struct google_protobuf_Duration* validate_TimestampRules_within(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), const struct google_protobuf_Duration*); }
2729
+ UPB_INLINE const struct google_protobuf_Duration* validate_TimestampRules_within(const validate_TimestampRules* msg) {
2730
+ return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), const struct google_protobuf_Duration*);
2731
+ }
2359
2732
 
2360
2733
  UPB_INLINE void validate_TimestampRules_set_required(validate_TimestampRules *msg, bool value) {
2361
2734
  _upb_sethas(msg, 1);
@@ -2365,10 +2738,10 @@ UPB_INLINE void validate_TimestampRules_set_const(validate_TimestampRules *msg,
2365
2738
  _upb_sethas(msg, 2);
2366
2739
  *UPB_PTR_AT(msg, UPB_SIZE(8, 8), struct google_protobuf_Timestamp*) = value;
2367
2740
  }
2368
- UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_const(validate_TimestampRules *msg, upb_arena *arena) {
2741
+ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_const(validate_TimestampRules *msg, upb_Arena *arena) {
2369
2742
  struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_const(msg);
2370
2743
  if (sub == NULL) {
2371
- sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2744
+ sub = (struct google_protobuf_Timestamp*)_upb_Message_New(&google_protobuf_Timestamp_msginit, arena);
2372
2745
  if (!sub) return NULL;
2373
2746
  validate_TimestampRules_set_const(msg, sub);
2374
2747
  }
@@ -2378,10 +2751,10 @@ UPB_INLINE void validate_TimestampRules_set_lt(validate_TimestampRules *msg, str
2378
2751
  _upb_sethas(msg, 3);
2379
2752
  *UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct google_protobuf_Timestamp*) = value;
2380
2753
  }
2381
- UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lt(validate_TimestampRules *msg, upb_arena *arena) {
2754
+ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lt(validate_TimestampRules *msg, upb_Arena *arena) {
2382
2755
  struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_lt(msg);
2383
2756
  if (sub == NULL) {
2384
- sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2757
+ sub = (struct google_protobuf_Timestamp*)_upb_Message_New(&google_protobuf_Timestamp_msginit, arena);
2385
2758
  if (!sub) return NULL;
2386
2759
  validate_TimestampRules_set_lt(msg, sub);
2387
2760
  }
@@ -2391,10 +2764,10 @@ UPB_INLINE void validate_TimestampRules_set_lte(validate_TimestampRules *msg, st
2391
2764
  _upb_sethas(msg, 4);
2392
2765
  *UPB_PTR_AT(msg, UPB_SIZE(16, 24), struct google_protobuf_Timestamp*) = value;
2393
2766
  }
2394
- UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lte(validate_TimestampRules *msg, upb_arena *arena) {
2767
+ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lte(validate_TimestampRules *msg, upb_Arena *arena) {
2395
2768
  struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_lte(msg);
2396
2769
  if (sub == NULL) {
2397
- sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2770
+ sub = (struct google_protobuf_Timestamp*)_upb_Message_New(&google_protobuf_Timestamp_msginit, arena);
2398
2771
  if (!sub) return NULL;
2399
2772
  validate_TimestampRules_set_lte(msg, sub);
2400
2773
  }
@@ -2404,10 +2777,10 @@ UPB_INLINE void validate_TimestampRules_set_gt(validate_TimestampRules *msg, str
2404
2777
  _upb_sethas(msg, 5);
2405
2778
  *UPB_PTR_AT(msg, UPB_SIZE(20, 32), struct google_protobuf_Timestamp*) = value;
2406
2779
  }
2407
- UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gt(validate_TimestampRules *msg, upb_arena *arena) {
2780
+ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gt(validate_TimestampRules *msg, upb_Arena *arena) {
2408
2781
  struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_gt(msg);
2409
2782
  if (sub == NULL) {
2410
- sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2783
+ sub = (struct google_protobuf_Timestamp*)_upb_Message_New(&google_protobuf_Timestamp_msginit, arena);
2411
2784
  if (!sub) return NULL;
2412
2785
  validate_TimestampRules_set_gt(msg, sub);
2413
2786
  }
@@ -2417,10 +2790,10 @@ UPB_INLINE void validate_TimestampRules_set_gte(validate_TimestampRules *msg, st
2417
2790
  _upb_sethas(msg, 6);
2418
2791
  *UPB_PTR_AT(msg, UPB_SIZE(24, 40), struct google_protobuf_Timestamp*) = value;
2419
2792
  }
2420
- UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gte(validate_TimestampRules *msg, upb_arena *arena) {
2793
+ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gte(validate_TimestampRules *msg, upb_Arena *arena) {
2421
2794
  struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_gte(msg);
2422
2795
  if (sub == NULL) {
2423
- sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2796
+ sub = (struct google_protobuf_Timestamp*)_upb_Message_New(&google_protobuf_Timestamp_msginit, arena);
2424
2797
  if (!sub) return NULL;
2425
2798
  validate_TimestampRules_set_gte(msg, sub);
2426
2799
  }
@@ -2438,25 +2811,25 @@ UPB_INLINE void validate_TimestampRules_set_within(validate_TimestampRules *msg,
2438
2811
  _upb_sethas(msg, 9);
2439
2812
  *UPB_PTR_AT(msg, UPB_SIZE(28, 48), struct google_protobuf_Duration*) = value;
2440
2813
  }
2441
- UPB_INLINE struct google_protobuf_Duration* validate_TimestampRules_mutable_within(validate_TimestampRules *msg, upb_arena *arena) {
2814
+ UPB_INLINE struct google_protobuf_Duration* validate_TimestampRules_mutable_within(validate_TimestampRules *msg, upb_Arena *arena) {
2442
2815
  struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_TimestampRules_within(msg);
2443
2816
  if (sub == NULL) {
2444
- sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2817
+ sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena);
2445
2818
  if (!sub) return NULL;
2446
2819
  validate_TimestampRules_set_within(msg, sub);
2447
2820
  }
2448
2821
  return sub;
2449
2822
  }
2450
2823
 
2451
- UPB_INLINE bool validate_has_disabled(const struct google_protobuf_MessageOptions *msg) { return _upb_msg_getext(msg, &validate_disabled_ext) != NULL; }
2452
- UPB_INLINE bool validate_disabled(const struct google_protobuf_MessageOptions *msg) { const upb_msg_ext *ext = _upb_msg_getext(msg, &validate_disabled_ext); return ext ? *UPB_PTR_AT(&ext->data, 0, bool) : false; }
2453
- UPB_INLINE bool validate_has_ignored(const struct google_protobuf_MessageOptions *msg) { return _upb_msg_getext(msg, &validate_ignored_ext) != NULL; }
2454
- UPB_INLINE bool validate_ignored(const struct google_protobuf_MessageOptions *msg) { const upb_msg_ext *ext = _upb_msg_getext(msg, &validate_ignored_ext); return ext ? *UPB_PTR_AT(&ext->data, 0, bool) : false; }
2455
- UPB_INLINE bool validate_has_required(const struct google_protobuf_OneofOptions *msg) { return _upb_msg_getext(msg, &validate_required_ext) != NULL; }
2456
- UPB_INLINE bool validate_required(const struct google_protobuf_OneofOptions *msg) { const upb_msg_ext *ext = _upb_msg_getext(msg, &validate_required_ext); return ext ? *UPB_PTR_AT(&ext->data, 0, bool) : false; }
2457
- UPB_INLINE bool validate_has_rules(const struct google_protobuf_FieldOptions *msg) { return _upb_msg_getext(msg, &validate_rules_ext) != NULL; }
2458
- UPB_INLINE const validate_FieldRules* validate_rules(const struct google_protobuf_FieldOptions *msg) { const upb_msg_ext *ext = _upb_msg_getext(msg, &validate_rules_ext); UPB_ASSERT(ext); return *UPB_PTR_AT(&ext->data, 0, const validate_FieldRules*); }
2459
- extern const upb_msglayout_file validate_validate_proto_upb_file_layout;
2824
+ UPB_INLINE bool validate_has_disabled(const struct google_protobuf_MessageOptions *msg) { return _upb_Message_Getext(msg, &validate_disabled_ext) != NULL; }
2825
+ UPB_INLINE bool validate_disabled(const struct google_protobuf_MessageOptions *msg) { const upb_Message_Extension *ext = _upb_Message_Getext(msg, &validate_disabled_ext); return ext ? *UPB_PTR_AT(&ext->data, 0, bool) : false; }
2826
+ UPB_INLINE bool validate_has_ignored(const struct google_protobuf_MessageOptions *msg) { return _upb_Message_Getext(msg, &validate_ignored_ext) != NULL; }
2827
+ UPB_INLINE bool validate_ignored(const struct google_protobuf_MessageOptions *msg) { const upb_Message_Extension *ext = _upb_Message_Getext(msg, &validate_ignored_ext); return ext ? *UPB_PTR_AT(&ext->data, 0, bool) : false; }
2828
+ UPB_INLINE bool validate_has_required(const struct google_protobuf_OneofOptions *msg) { return _upb_Message_Getext(msg, &validate_required_ext) != NULL; }
2829
+ UPB_INLINE bool validate_required(const struct google_protobuf_OneofOptions *msg) { const upb_Message_Extension *ext = _upb_Message_Getext(msg, &validate_required_ext); return ext ? *UPB_PTR_AT(&ext->data, 0, bool) : false; }
2830
+ UPB_INLINE bool validate_has_rules(const struct google_protobuf_FieldOptions *msg) { return _upb_Message_Getext(msg, &validate_rules_ext) != NULL; }
2831
+ UPB_INLINE const validate_FieldRules* validate_rules(const struct google_protobuf_FieldOptions *msg) { const upb_Message_Extension *ext = _upb_Message_Getext(msg, &validate_rules_ext); UPB_ASSERT(ext); return *UPB_PTR_AT(&ext->data, 0, const validate_FieldRules*); }
2832
+ extern const upb_MiniTable_File validate_validate_proto_upb_file_layout;
2460
2833
 
2461
2834
  #ifdef __cplusplus
2462
2835
  } /* extern "C" */