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