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