grpc 1.30.0 → 1.31.1
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 +560 -619
- data/include/grpc/grpc_security.h +8 -0
- data/include/grpc/grpc_security_constants.h +3 -0
- data/include/grpc/impl/codegen/grpc_types.h +7 -5
- data/include/grpc/impl/codegen/port_platform.h +0 -32
- data/src/core/ext/filters/client_channel/backend_metric.cc +12 -9
- data/src/core/ext/filters/client_channel/client_channel.cc +406 -261
- data/src/core/ext/filters/client_channel/config_selector.cc +62 -0
- data/src/core/ext/filters/client_channel/config_selector.h +93 -0
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +24 -2
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +2 -0
- data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +6 -5
- data/src/core/ext/filters/client_channel/http_proxy.cc +6 -4
- data/src/core/ext/filters/client_channel/lb_policy.h +2 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +39 -23
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +4 -6
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +3 -4
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_routing.cc +381 -72
- data/src/core/ext/filters/client_channel/lb_policy_registry.cc +4 -5
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +5 -2
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.cc +6 -5
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_libuv.cc +8 -6
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +9 -7
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +7 -5
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +33 -48
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +6 -2
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +21 -18
- data/src/core/ext/filters/client_channel/resolver_registry.cc +13 -14
- data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +6 -7
- data/src/core/ext/filters/client_channel/resolving_lb_policy.cc +33 -28
- data/src/core/ext/filters/client_channel/resolving_lb_policy.h +39 -20
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +142 -0
- data/src/core/ext/filters/client_channel/subchannel.cc +1 -1
- data/src/core/ext/filters/client_channel/xds/xds_api.cc +327 -123
- data/src/core/ext/filters/client_channel/xds/xds_api.h +72 -7
- data/src/core/ext/filters/client_channel/xds/xds_bootstrap.cc +12 -23
- data/src/core/ext/filters/client_channel/xds/xds_client.cc +112 -33
- data/src/core/ext/filters/client_channel/xds/xds_client_stats.h +10 -10
- data/src/core/ext/filters/http/client/http_client_filter.cc +5 -5
- data/src/core/ext/filters/http/http_filters_plugin.cc +2 -1
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +74 -33
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.h +3 -1
- data/src/core/ext/filters/message_size/message_size_filter.cc +56 -80
- data/src/core/ext/filters/message_size/message_size_filter.h +6 -0
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +383 -347
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +6 -2
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc +1 -1
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc +7 -13
- data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc +7 -8
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +19 -4
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +22 -27
- data/src/core/ext/transport/chttp2/transport/flow_control.h +14 -16
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +9 -12
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +4 -6
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +5 -6
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +12 -13
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +6 -7
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +9 -12
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +25 -29
- data/src/core/ext/transport/chttp2/transport/hpack_table.cc +13 -17
- data/src/core/ext/transport/chttp2/transport/internal.h +13 -0
- data/src/core/ext/transport/chttp2/transport/parsing.cc +33 -43
- data/src/core/ext/transport/chttp2/transport/writing.cc +9 -14
- data/src/core/ext/transport/inproc/inproc_transport.cc +35 -15
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +0 -1
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +3 -4
- data/src/core/ext/upb-generated/envoy/api/v2/auth/cert.upb.h +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/auth/common.upb.h +80 -69
- data/src/core/ext/upb-generated/envoy/api/v2/auth/secret.upb.h +24 -23
- data/src/core/ext/upb-generated/envoy/api/v2/auth/tls.upb.h +66 -56
- data/src/core/ext/upb-generated/envoy/api/v2/cds.upb.h +1 -2
- data/src/core/ext/upb-generated/envoy/api/v2/cluster.upb.c +2 -2
- data/src/core/ext/upb-generated/envoy/api/v2/cluster.upb.h +317 -311
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/circuit_breaker.upb.h +42 -34
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/filter.upb.h +7 -7
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/outlier_detection.upb.h +79 -61
- data/src/core/ext/upb-generated/envoy/api/v2/core/address.upb.h +55 -49
- data/src/core/ext/upb-generated/envoy/api/v2/core/backoff.upb.h +9 -8
- data/src/core/ext/upb-generated/envoy/api/v2/core/base.upb.c +1 -1
- data/src/core/ext/upb-generated/envoy/api/v2/core/base.upb.h +163 -169
- data/src/core/ext/upb-generated/envoy/api/v2/core/config_source.upb.h +51 -45
- data/src/core/ext/upb-generated/envoy/api/v2/core/event_service_config.upb.h +4 -5
- data/src/core/ext/upb-generated/envoy/api/v2/core/grpc_service.upb.h +107 -100
- data/src/core/ext/upb-generated/envoy/api/v2/core/health_check.upb.h +137 -117
- data/src/core/ext/upb-generated/envoy/api/v2/core/http_uri.upb.h +9 -9
- data/src/core/ext/upb-generated/envoy/api/v2/core/protocol.upb.h +105 -87
- data/src/core/ext/upb-generated/envoy/api/v2/core/socket_option.upb.h +12 -13
- data/src/core/ext/upb-generated/envoy/api/v2/discovery.upb.c +1 -1
- data/src/core/ext/upb-generated/envoy/api/v2/discovery.upb.h +95 -101
- data/src/core/ext/upb-generated/envoy/api/v2/eds.upb.h +1 -2
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint.upb.c +1 -1
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint.upb.h +49 -65
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint.upb.h +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint_components.upb.h +49 -42
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/load_report.upb.h +70 -62
- data/src/core/ext/upb-generated/envoy/api/v2/lds.upb.h +1 -2
- data/src/core/ext/upb-generated/envoy/api/v2/listener.upb.h +81 -65
- data/src/core/ext/upb-generated/envoy/api/v2/listener/listener.upb.h +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/listener/listener_components.upb.c +1 -1
- data/src/core/ext/upb-generated/envoy/api/v2/listener/listener_components.upb.h +91 -80
- data/src/core/ext/upb-generated/envoy/api/v2/listener/udp_listener_config.upb.h +9 -10
- data/src/core/ext/upb-generated/envoy/api/v2/rds.upb.h +1 -2
- data/src/core/ext/upb-generated/envoy/api/v2/route.upb.h +36 -31
- data/src/core/ext/upb-generated/envoy/api/v2/route/route.upb.h +0 -1
- data/src/core/ext/upb-generated/envoy/api/v2/route/route_components.upb.c +7 -7
- data/src/core/ext/upb-generated/envoy/api/v2/route/route_components.upb.h +648 -696
- data/src/core/ext/upb-generated/envoy/api/v2/scoped_route.upb.h +16 -15
- data/src/core/ext/upb-generated/envoy/api/v2/srds.upb.h +1 -2
- data/src/core/ext/upb-generated/envoy/config/filter/accesslog/v2/accesslog.upb.c +1 -1
- data/src/core/ext/upb-generated/envoy/config/filter/accesslog/v2/accesslog.upb.h +95 -88
- data/src/core/ext/upb-generated/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.upb.h +234 -199
- data/src/core/ext/upb-generated/envoy/config/listener/v2/api_listener.upb.h +5 -5
- data/src/core/ext/upb-generated/envoy/config/trace/v2/http_tracer.upb.h +13 -13
- data/src/core/ext/upb-generated/envoy/service/discovery/v2/ads.upb.h +1 -2
- data/src/core/ext/upb-generated/envoy/service/load_stats/v2/lrs.upb.h +20 -18
- data/src/core/ext/upb-generated/envoy/type/http.upb.h +0 -1
- data/src/core/ext/upb-generated/envoy/type/matcher/regex.upb.h +18 -17
- data/src/core/ext/upb-generated/envoy/type/matcher/string.upb.h +14 -14
- data/src/core/ext/upb-generated/envoy/type/metadata/v2/metadata.upb.h +23 -23
- data/src/core/ext/upb-generated/envoy/type/percent.upb.h +8 -9
- data/src/core/ext/upb-generated/envoy/type/range.upb.h +15 -16
- data/src/core/ext/upb-generated/envoy/type/semantic_version.upb.h +7 -8
- data/src/core/ext/upb-generated/envoy/type/tracing/v2/custom_tag.upb.h +36 -35
- data/src/core/ext/upb-generated/gogoproto/gogo.upb.h +0 -1
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +0 -1
- data/src/core/ext/upb-generated/google/api/http.upb.h +29 -28
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +5 -6
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +3 -3
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +412 -386
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +5 -6
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +1 -2
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +1 -1
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +33 -54
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +5 -6
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +27 -28
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +8 -8
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +1 -1
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +32 -45
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +4 -4
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +157 -178
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +14 -13
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +6 -7
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +59 -56
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +11 -12
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +0 -1
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +5 -6
- data/src/core/ext/upb-generated/udpa/data/orca/v1/orca_load_report.upb.c +6 -6
- data/src/core/ext/upb-generated/udpa/data/orca/v1/orca_load_report.upb.h +41 -68
- data/src/core/ext/upb-generated/validate/validate.upb.h +536 -535
- data/src/core/lib/channel/channel_trace.cc +2 -6
- data/src/core/lib/channel/channelz.cc +5 -15
- data/src/core/lib/gpr/log_linux.cc +6 -8
- data/src/core/lib/gpr/log_posix.cc +6 -8
- data/src/core/lib/gpr/string.cc +10 -9
- data/src/core/lib/gpr/string.h +4 -2
- data/src/core/lib/gprpp/global_config_env.cc +8 -6
- data/src/core/lib/http/httpcli.cc +13 -10
- data/src/core/lib/http/httpcli_security_connector.cc +5 -5
- data/src/core/lib/iomgr/cfstream_handle.cc +1 -0
- data/src/core/lib/iomgr/endpoint_pair_posix.cc +10 -10
- data/src/core/lib/iomgr/error_cfstream.cc +9 -8
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +5 -6
- data/src/core/lib/iomgr/ev_epollex_linux.cc +15 -21
- data/src/core/lib/iomgr/ev_poll_posix.cc +6 -5
- data/src/core/lib/iomgr/ev_posix.cc +2 -0
- data/src/core/lib/iomgr/iomgr.cc +10 -0
- data/src/core/lib/iomgr/iomgr.h +10 -0
- data/src/core/lib/iomgr/is_epollexclusive_available.cc +14 -0
- data/src/core/lib/iomgr/port.h +1 -21
- data/src/core/lib/iomgr/resolve_address_custom.cc +13 -18
- data/src/core/lib/iomgr/resolve_address_windows.cc +8 -8
- data/src/core/lib/iomgr/resource_quota.cc +34 -31
- data/src/core/lib/iomgr/sockaddr_utils.cc +7 -5
- data/src/core/lib/iomgr/sockaddr_utils.h +1 -1
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +95 -55
- data/src/core/lib/iomgr/socket_windows.cc +4 -5
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +9 -11
- data/src/core/lib/iomgr/tcp_client_custom.cc +6 -9
- data/src/core/lib/iomgr/tcp_client_posix.cc +27 -36
- data/src/core/lib/iomgr/tcp_client_windows.cc +9 -9
- data/src/core/lib/iomgr/tcp_custom.cc +1 -1
- data/src/core/lib/iomgr/tcp_custom.h +1 -1
- data/src/core/lib/iomgr/tcp_server.cc +3 -4
- data/src/core/lib/iomgr/tcp_server.h +7 -5
- data/src/core/lib/iomgr/tcp_server_custom.cc +6 -14
- data/src/core/lib/iomgr/tcp_server_posix.cc +34 -41
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +3 -4
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +5 -7
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +4 -9
- data/src/core/lib/iomgr/tcp_server_windows.cc +16 -16
- data/src/core/lib/iomgr/timer_generic.cc +13 -12
- data/src/core/lib/iomgr/udp_server.cc +24 -23
- data/src/core/lib/iomgr/udp_server.h +5 -2
- data/src/core/lib/iomgr/unix_sockets_posix.cc +9 -14
- data/src/core/lib/iomgr/unix_sockets_posix.h +3 -1
- data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +5 -2
- data/src/core/lib/json/json_reader.cc +20 -21
- data/src/core/lib/security/credentials/credentials.h +5 -3
- data/src/core/lib/security/credentials/google_default/credentials_generic.cc +8 -6
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +12 -9
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +7 -4
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +19 -28
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +6 -6
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +20 -0
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +10 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +10 -0
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +10 -10
- data/src/core/lib/security/security_connector/security_connector.cc +2 -0
- data/src/core/lib/security/security_connector/security_connector.h +1 -1
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +18 -11
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +5 -0
- data/src/core/lib/security/security_connector/ssl_utils.cc +44 -23
- data/src/core/lib/security/security_connector/ssl_utils.h +6 -2
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +27 -24
- data/src/core/lib/security/transport/auth_filters.h +0 -5
- data/src/core/lib/security/transport/client_auth_filter.cc +10 -9
- data/src/core/lib/security/util/json_util.cc +12 -13
- data/src/core/lib/slice/slice.cc +38 -1
- data/src/core/lib/slice/slice_internal.h +1 -0
- data/src/core/lib/surface/call.cc +40 -41
- data/src/core/lib/surface/completion_queue.cc +271 -14
- data/src/core/lib/surface/completion_queue.h +8 -0
- data/src/core/lib/surface/init.cc +2 -0
- data/src/core/lib/surface/server.cc +565 -632
- data/src/core/lib/surface/server.h +34 -12
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/transport.h +6 -0
- data/src/core/lib/uri/uri_parser.cc +8 -15
- data/src/core/plugin_registry/grpc_plugin_registry.cc +4 -0
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +23 -13
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +2 -0
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +2 -0
- data/src/core/tsi/ssl_transport_security.cc +108 -11
- data/src/core/tsi/ssl_transport_security.h +14 -2
- data/src/core/tsi/transport_security_interface.h +5 -0
- data/src/ruby/bin/math_services_pb.rb +4 -4
- data/src/ruby/ext/grpc/extconf.rb +5 -2
- data/src/ruby/ext/grpc/rb_call.c +3 -2
- data/src/ruby/ext/grpc/rb_call.h +4 -0
- data/src/ruby/ext/grpc/rb_call_credentials.c +57 -12
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -0
- data/src/ruby/lib/grpc/generic/client_stub.rb +1 -1
- data/src/ruby/lib/grpc/generic/interceptors.rb +1 -1
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/v1/health_services_pb.rb +2 -2
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +5 -0
- data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +28 -12
- data/src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto +23 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto +2 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto +27 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto +29 -0
- data/src/ruby/spec/pb/codegen/package_option_spec.rb +25 -1
- data/src/ruby/spec/support/services.rb +10 -4
- data/src/ruby/spec/user_agent_spec.rb +74 -0
- data/third_party/boringssl-with-bazel/err_data.c +89 -83
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_bitstr.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_enum.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_int.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_object.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_type.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn_pack.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_enum.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_int.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_string.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/tls_cbc.c +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/hash_to_curve.c +12 -52
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/internal.h +0 -22
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_asn1.c +143 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/mode_wrappers.c +17 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +11 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h +2 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p224-64.c +13 -11
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-x86_64.c +24 -23
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256.c +20 -16
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple_mul.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/util.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/self_check.c +62 -0
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +29 -15
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +7 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +36 -5
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/internal.h +0 -29
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +116 -363
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +7 -45
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_strex.c +4 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/algorithm.c +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +4 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509.c +0 -67
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +13 -6
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_req.c +10 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_set.c +41 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +4 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +28 -9
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509cset.c +25 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +35 -13
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pubkey.c +0 -154
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +28 -6
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +5 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +74 -35
- data/third_party/boringssl-with-bazel/src/include/openssl/aes.h +16 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +22 -22
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +69 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +33 -16
- data/third_party/boringssl-with-bazel/src/include/openssl/trust_token.h +1 -10
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +789 -715
- data/third_party/boringssl-with-bazel/src/ssl/handoff.cc +3 -3
- data/third_party/boringssl-with-bazel/src/ssl/handshake.cc +9 -2
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +2 -2
- data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +9 -0
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +17 -14
- data/third_party/boringssl-with-bazel/src/ssl/ssl_asn1.cc +7 -7
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +28 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_session.cc +4 -24
- data/third_party/boringssl-with-bazel/src/ssl/ssl_versions.cc +5 -5
- data/third_party/boringssl-with-bazel/src/ssl/t1_enc.cc +45 -24
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +31 -21
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +12 -9
- data/third_party/re2/re2/bitmap256.h +117 -0
- data/third_party/re2/re2/bitstate.cc +385 -0
- data/third_party/re2/re2/compile.cc +1279 -0
- data/third_party/re2/re2/dfa.cc +2130 -0
- data/third_party/re2/re2/filtered_re2.cc +121 -0
- data/third_party/re2/re2/filtered_re2.h +109 -0
- data/third_party/re2/re2/mimics_pcre.cc +197 -0
- data/third_party/re2/re2/nfa.cc +713 -0
- data/third_party/re2/re2/onepass.cc +623 -0
- data/third_party/re2/re2/parse.cc +2464 -0
- data/third_party/re2/re2/perl_groups.cc +119 -0
- data/third_party/re2/re2/pod_array.h +55 -0
- data/third_party/re2/re2/prefilter.cc +710 -0
- data/third_party/re2/re2/prefilter.h +108 -0
- data/third_party/re2/re2/prefilter_tree.cc +407 -0
- data/third_party/re2/re2/prefilter_tree.h +139 -0
- data/third_party/re2/re2/prog.cc +988 -0
- data/third_party/re2/re2/prog.h +436 -0
- data/third_party/re2/re2/re2.cc +1362 -0
- data/third_party/re2/re2/re2.h +1002 -0
- data/third_party/re2/re2/regexp.cc +980 -0
- data/third_party/re2/re2/regexp.h +659 -0
- data/third_party/re2/re2/set.cc +154 -0
- data/third_party/re2/re2/set.h +80 -0
- data/third_party/re2/re2/simplify.cc +657 -0
- data/third_party/re2/re2/sparse_array.h +392 -0
- data/third_party/re2/re2/sparse_set.h +264 -0
- data/third_party/re2/re2/stringpiece.cc +65 -0
- data/third_party/re2/re2/stringpiece.h +210 -0
- data/third_party/re2/re2/tostring.cc +351 -0
- data/third_party/re2/re2/unicode_casefold.cc +582 -0
- data/third_party/re2/re2/unicode_casefold.h +78 -0
- data/third_party/re2/re2/unicode_groups.cc +6269 -0
- data/third_party/re2/re2/unicode_groups.h +67 -0
- data/third_party/re2/re2/walker-inl.h +246 -0
- data/third_party/re2/util/benchmark.h +156 -0
- data/third_party/re2/util/flags.h +26 -0
- data/third_party/re2/util/logging.h +109 -0
- data/third_party/re2/util/malloc_counter.h +19 -0
- data/third_party/re2/util/mix.h +41 -0
- data/third_party/re2/util/mutex.h +148 -0
- data/third_party/re2/util/pcre.cc +1025 -0
- data/third_party/re2/util/pcre.h +681 -0
- data/third_party/re2/util/rune.cc +260 -0
- data/third_party/re2/util/strutil.cc +149 -0
- data/third_party/re2/util/strutil.h +21 -0
- data/third_party/re2/util/test.h +50 -0
- data/third_party/re2/util/utf.h +44 -0
- data/third_party/re2/util/util.h +42 -0
- data/third_party/upb/upb/decode.c +467 -504
- data/third_party/upb/upb/encode.c +163 -121
- data/third_party/upb/upb/msg.c +130 -64
- data/third_party/upb/upb/msg.h +418 -14
- data/third_party/upb/upb/port_def.inc +35 -6
- data/third_party/upb/upb/port_undef.inc +8 -1
- data/third_party/upb/upb/table.c +53 -75
- data/third_party/upb/upb/table.int.h +11 -43
- data/third_party/upb/upb/upb.c +148 -124
- data/third_party/upb/upb/upb.h +65 -147
- data/third_party/upb/upb/upb.hpp +86 -0
- metadata +90 -30
- data/third_party/upb/upb/generated_util.h +0 -105
@@ -9,7 +9,6 @@
|
|
9
9
|
#ifndef UDPA_ANNOTATIONS_STATUS_PROTO_UPB_H_
|
10
10
|
#define UDPA_ANNOTATIONS_STATUS_PROTO_UPB_H_
|
11
11
|
|
12
|
-
#include "upb/generated_util.h"
|
13
12
|
#include "upb/msg.h"
|
14
13
|
#include "upb/decode.h"
|
15
14
|
#include "upb/encode.h"
|
@@ -35,7 +34,7 @@ typedef enum {
|
|
35
34
|
/* udpa.annotations.StatusAnnotation */
|
36
35
|
|
37
36
|
UPB_INLINE udpa_annotations_StatusAnnotation *udpa_annotations_StatusAnnotation_new(upb_arena *arena) {
|
38
|
-
return (udpa_annotations_StatusAnnotation *)
|
37
|
+
return (udpa_annotations_StatusAnnotation *)_upb_msg_new(&udpa_annotations_StatusAnnotation_msginit, arena);
|
39
38
|
}
|
40
39
|
UPB_INLINE udpa_annotations_StatusAnnotation *udpa_annotations_StatusAnnotation_parse(const char *buf, size_t size,
|
41
40
|
upb_arena *arena) {
|
@@ -46,14 +45,14 @@ UPB_INLINE char *udpa_annotations_StatusAnnotation_serialize(const udpa_annotati
|
|
46
45
|
return upb_encode(msg, &udpa_annotations_StatusAnnotation_msginit, arena, len);
|
47
46
|
}
|
48
47
|
|
49
|
-
UPB_INLINE bool udpa_annotations_StatusAnnotation_work_in_progress(const udpa_annotations_StatusAnnotation *msg) { return
|
50
|
-
UPB_INLINE int32_t udpa_annotations_StatusAnnotation_package_version_status(const udpa_annotations_StatusAnnotation *msg) { return
|
48
|
+
UPB_INLINE bool udpa_annotations_StatusAnnotation_work_in_progress(const udpa_annotations_StatusAnnotation *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); }
|
49
|
+
UPB_INLINE int32_t udpa_annotations_StatusAnnotation_package_version_status(const udpa_annotations_StatusAnnotation *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); }
|
51
50
|
|
52
51
|
UPB_INLINE void udpa_annotations_StatusAnnotation_set_work_in_progress(udpa_annotations_StatusAnnotation *msg, bool value) {
|
53
|
-
|
52
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value;
|
54
53
|
}
|
55
54
|
UPB_INLINE void udpa_annotations_StatusAnnotation_set_package_version_status(udpa_annotations_StatusAnnotation *msg, int32_t value) {
|
56
|
-
|
55
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value;
|
57
56
|
}
|
58
57
|
|
59
58
|
#ifdef __cplusplus
|
@@ -22,8 +22,8 @@ static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport__fields[5] = {
|
|
22
22
|
{1, UPB_SIZE(0, 0), 0, 0, 1, 1},
|
23
23
|
{2, UPB_SIZE(8, 8), 0, 0, 1, 1},
|
24
24
|
{3, UPB_SIZE(16, 16), 0, 0, 4, 1},
|
25
|
-
{4, UPB_SIZE(24, 24), 0, 0, 11,
|
26
|
-
{5, UPB_SIZE(28, 32), 0, 1, 11,
|
25
|
+
{4, UPB_SIZE(24, 24), 0, 0, 11, _UPB_LABEL_MAP},
|
26
|
+
{5, UPB_SIZE(28, 32), 0, 1, 11, _UPB_LABEL_MAP},
|
27
27
|
};
|
28
28
|
|
29
29
|
const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_msginit = {
|
@@ -33,8 +33,8 @@ const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_msginit = {
|
|
33
33
|
};
|
34
34
|
|
35
35
|
static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry__fields[2] = {
|
36
|
-
{1, UPB_SIZE(
|
37
|
-
{2, UPB_SIZE(
|
36
|
+
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
37
|
+
{2, UPB_SIZE(8, 16), 0, 0, 1, 1},
|
38
38
|
};
|
39
39
|
|
40
40
|
const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit = {
|
@@ -44,8 +44,8 @@ const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit =
|
|
44
44
|
};
|
45
45
|
|
46
46
|
static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry__fields[2] = {
|
47
|
-
{1, UPB_SIZE(
|
48
|
-
{2, UPB_SIZE(
|
47
|
+
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
48
|
+
{2, UPB_SIZE(8, 16), 0, 0, 1, 1},
|
49
49
|
};
|
50
50
|
|
51
51
|
const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit = {
|
@@ -9,7 +9,6 @@
|
|
9
9
|
#ifndef UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPB_H_
|
10
10
|
#define UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPB_H_
|
11
11
|
|
12
|
-
#include "upb/generated_util.h"
|
13
12
|
#include "upb/msg.h"
|
14
13
|
#include "upb/decode.h"
|
15
14
|
#include "upb/encode.h"
|
@@ -34,7 +33,7 @@ extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msg
|
|
34
33
|
/* udpa.data.orca.v1.OrcaLoadReport */
|
35
34
|
|
36
35
|
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport *udpa_data_orca_v1_OrcaLoadReport_new(upb_arena *arena) {
|
37
|
-
return (udpa_data_orca_v1_OrcaLoadReport *)
|
36
|
+
return (udpa_data_orca_v1_OrcaLoadReport *)_upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_msginit, arena);
|
38
37
|
}
|
39
38
|
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport *udpa_data_orca_v1_OrcaLoadReport_parse(const char *buf, size_t size,
|
40
39
|
upb_arena *arena) {
|
@@ -45,94 +44,68 @@ UPB_INLINE char *udpa_data_orca_v1_OrcaLoadReport_serialize(const udpa_data_orca
|
|
45
44
|
return upb_encode(msg, &udpa_data_orca_v1_OrcaLoadReport_msginit, arena, len);
|
46
45
|
}
|
47
46
|
|
48
|
-
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_cpu_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return
|
49
|
-
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_mem_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return
|
50
|
-
UPB_INLINE uint64_t udpa_data_orca_v1_OrcaLoadReport_rps(const udpa_data_orca_v1_OrcaLoadReport *msg) { return
|
51
|
-
UPB_INLINE
|
52
|
-
UPB_INLINE
|
47
|
+
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_cpu_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double); }
|
48
|
+
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_mem_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double); }
|
49
|
+
UPB_INLINE uint64_t udpa_data_orca_v1_OrcaLoadReport_rps(const udpa_data_orca_v1_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
|
50
|
+
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_has_request_cost(const udpa_data_orca_v1_OrcaLoadReport *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 24)); }
|
51
|
+
UPB_INLINE size_t udpa_data_orca_v1_OrcaLoadReport_request_cost_size(const udpa_data_orca_v1_OrcaLoadReport *msg) {return _upb_msg_map_size(msg, UPB_SIZE(24, 24)); }
|
52
|
+
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_request_cost_get(const udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key, double *val) { return _upb_msg_map_get(msg, UPB_SIZE(24, 24), &key, 0, val, sizeof(*val)); }
|
53
|
+
UPB_INLINE const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* udpa_data_orca_v1_OrcaLoadReport_request_cost_next(const udpa_data_orca_v1_OrcaLoadReport *msg, size_t* iter) { return (const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry*)_upb_msg_map_next(msg, UPB_SIZE(24, 24), iter); }
|
54
|
+
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_has_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 32)); }
|
55
|
+
UPB_INLINE size_t udpa_data_orca_v1_OrcaLoadReport_utilization_size(const udpa_data_orca_v1_OrcaLoadReport *msg) {return _upb_msg_map_size(msg, UPB_SIZE(28, 32)); }
|
56
|
+
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_utilization_get(const udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key, double *val) { return _upb_msg_map_get(msg, UPB_SIZE(28, 32), &key, 0, val, sizeof(*val)); }
|
57
|
+
UPB_INLINE const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* udpa_data_orca_v1_OrcaLoadReport_utilization_next(const udpa_data_orca_v1_OrcaLoadReport *msg, size_t* iter) { return (const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry*)_upb_msg_map_next(msg, UPB_SIZE(28, 32), iter); }
|
53
58
|
|
54
59
|
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_cpu_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, double value) {
|
55
|
-
|
60
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), double) = value;
|
56
61
|
}
|
57
62
|
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_mem_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, double value) {
|
58
|
-
|
63
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), double) = value;
|
59
64
|
}
|
60
65
|
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_rps(udpa_data_orca_v1_OrcaLoadReport *msg, uint64_t value) {
|
61
|
-
|
62
|
-
}
|
63
|
-
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry** udpa_data_orca_v1_OrcaLoadReport_mutable_request_cost(udpa_data_orca_v1_OrcaLoadReport *msg, size_t *len) {
|
64
|
-
return (udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry**)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
|
65
|
-
}
|
66
|
-
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry** udpa_data_orca_v1_OrcaLoadReport_resize_request_cost(udpa_data_orca_v1_OrcaLoadReport *msg, size_t len, upb_arena *arena) {
|
67
|
-
return (udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry**)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len, UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, arena);
|
68
|
-
}
|
69
|
-
UPB_INLINE struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* udpa_data_orca_v1_OrcaLoadReport_add_request_cost(udpa_data_orca_v1_OrcaLoadReport *msg, upb_arena *arena) {
|
70
|
-
struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* sub = (struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry*)upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit, arena);
|
71
|
-
bool ok = _upb_array_append_accessor(
|
72
|
-
msg, UPB_SIZE(24, 24), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
73
|
-
if (!ok) return NULL;
|
74
|
-
return sub;
|
75
|
-
}
|
76
|
-
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry** udpa_data_orca_v1_OrcaLoadReport_mutable_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, size_t *len) {
|
77
|
-
return (udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry**)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
|
78
|
-
}
|
79
|
-
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry** udpa_data_orca_v1_OrcaLoadReport_resize_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, size_t len, upb_arena *arena) {
|
80
|
-
return (udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry**)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len, UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, arena);
|
81
|
-
}
|
82
|
-
UPB_INLINE struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* udpa_data_orca_v1_OrcaLoadReport_add_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, upb_arena *arena) {
|
83
|
-
struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* sub = (struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry*)upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit, arena);
|
84
|
-
bool ok = _upb_array_append_accessor(
|
85
|
-
msg, UPB_SIZE(28, 32), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
86
|
-
if (!ok) return NULL;
|
87
|
-
return sub;
|
66
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
|
88
67
|
}
|
68
|
+
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_request_cost_clear(udpa_data_orca_v1_OrcaLoadReport *msg) { _upb_msg_map_clear(msg, UPB_SIZE(24, 24)); }
|
69
|
+
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_request_cost_set(udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key, double val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(24, 24), &key, 0, &val, sizeof(val), a); }
|
70
|
+
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_request_cost_delete(udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(24, 24), &key, 0); }
|
71
|
+
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* udpa_data_orca_v1_OrcaLoadReport_request_cost_nextmutable(udpa_data_orca_v1_OrcaLoadReport *msg, size_t* iter) { return (udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry*)_upb_msg_map_next(msg, UPB_SIZE(24, 24), iter); }
|
72
|
+
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_utilization_clear(udpa_data_orca_v1_OrcaLoadReport *msg) { _upb_msg_map_clear(msg, UPB_SIZE(28, 32)); }
|
73
|
+
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_utilization_set(udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key, double val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(28, 32), &key, 0, &val, sizeof(val), a); }
|
74
|
+
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_utilization_delete(udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(28, 32), &key, 0); }
|
75
|
+
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* udpa_data_orca_v1_OrcaLoadReport_utilization_nextmutable(udpa_data_orca_v1_OrcaLoadReport *msg, size_t* iter) { return (udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry*)_upb_msg_map_next(msg, UPB_SIZE(28, 32), iter); }
|
89
76
|
|
90
77
|
/* udpa.data.orca.v1.OrcaLoadReport.RequestCostEntry */
|
91
78
|
|
92
|
-
UPB_INLINE
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
upb_arena *arena) {
|
97
|
-
udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *ret = udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_new(arena);
|
98
|
-
return (ret && upb_decode(buf, size, ret, &udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit, arena)) ? ret : NULL;
|
79
|
+
UPB_INLINE upb_strview udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_key(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg) {
|
80
|
+
upb_strview ret;
|
81
|
+
_upb_msg_map_key(msg, &ret, 0);
|
82
|
+
return ret;
|
99
83
|
}
|
100
|
-
UPB_INLINE
|
101
|
-
|
84
|
+
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_value(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg) {
|
85
|
+
double ret;
|
86
|
+
_upb_msg_map_value(msg, &ret, sizeof(ret));
|
87
|
+
return ret;
|
102
88
|
}
|
103
89
|
|
104
|
-
UPB_INLINE upb_strview udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_key(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)); }
|
105
|
-
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_value(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)); }
|
106
|
-
|
107
|
-
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_set_key(udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg, upb_strview value) {
|
108
|
-
UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)) = value;
|
109
|
-
}
|
110
90
|
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_set_value(udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg, double value) {
|
111
|
-
|
91
|
+
_upb_msg_map_set_value(msg, &value, sizeof(double));
|
112
92
|
}
|
113
93
|
|
114
94
|
/* udpa.data.orca.v1.OrcaLoadReport.UtilizationEntry */
|
115
95
|
|
116
|
-
UPB_INLINE
|
117
|
-
|
96
|
+
UPB_INLINE upb_strview udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_key(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg) {
|
97
|
+
upb_strview ret;
|
98
|
+
_upb_msg_map_key(msg, &ret, 0);
|
99
|
+
return ret;
|
118
100
|
}
|
119
|
-
UPB_INLINE
|
120
|
-
|
121
|
-
|
122
|
-
return
|
101
|
+
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_value(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg) {
|
102
|
+
double ret;
|
103
|
+
_upb_msg_map_value(msg, &ret, sizeof(ret));
|
104
|
+
return ret;
|
123
105
|
}
|
124
|
-
UPB_INLINE char *udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_serialize(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg, upb_arena *arena, size_t *len) {
|
125
|
-
return upb_encode(msg, &udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit, arena, len);
|
126
|
-
}
|
127
|
-
|
128
|
-
UPB_INLINE upb_strview udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_key(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)); }
|
129
|
-
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_value(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)); }
|
130
106
|
|
131
|
-
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_set_key(udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg, upb_strview value) {
|
132
|
-
UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)) = value;
|
133
|
-
}
|
134
107
|
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_set_value(udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg, double value) {
|
135
|
-
|
108
|
+
_upb_msg_map_set_value(msg, &value, sizeof(double));
|
136
109
|
}
|
137
110
|
|
138
111
|
#ifdef __cplusplus
|
@@ -9,7 +9,6 @@
|
|
9
9
|
#ifndef VALIDATE_VALIDATE_PROTO_UPB_H_
|
10
10
|
#define VALIDATE_VALIDATE_PROTO_UPB_H_
|
11
11
|
|
12
|
-
#include "upb/generated_util.h"
|
13
12
|
#include "upb/msg.h"
|
14
13
|
#include "upb/decode.h"
|
15
14
|
#include "upb/encode.h"
|
@@ -104,7 +103,7 @@ typedef enum {
|
|
104
103
|
/* validate.FieldRules */
|
105
104
|
|
106
105
|
UPB_INLINE validate_FieldRules *validate_FieldRules_new(upb_arena *arena) {
|
107
|
-
return (validate_FieldRules *)
|
106
|
+
return (validate_FieldRules *)_upb_msg_new(&validate_FieldRules_msginit, arena);
|
108
107
|
}
|
109
108
|
UPB_INLINE validate_FieldRules *validate_FieldRules_parse(const char *buf, size_t size,
|
110
109
|
upb_arena *arena) {
|
@@ -139,51 +138,51 @@ typedef enum {
|
|
139
138
|
validate_FieldRules_type_timestamp = 22,
|
140
139
|
validate_FieldRules_type_NOT_SET = 0
|
141
140
|
} validate_FieldRules_type_oneofcases;
|
142
|
-
UPB_INLINE validate_FieldRules_type_oneofcases validate_FieldRules_type_case(const validate_FieldRules* msg) { return (validate_FieldRules_type_oneofcases)
|
141
|
+
UPB_INLINE validate_FieldRules_type_oneofcases validate_FieldRules_type_case(const validate_FieldRules* msg) { return (validate_FieldRules_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); }
|
143
142
|
|
144
|
-
UPB_INLINE bool validate_FieldRules_has_float(const validate_FieldRules *msg) { return
|
143
|
+
UPB_INLINE bool validate_FieldRules_has_float(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 1; }
|
145
144
|
UPB_INLINE const validate_FloatRules* validate_FieldRules_float(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_FloatRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 1, NULL); }
|
146
|
-
UPB_INLINE bool validate_FieldRules_has_double(const validate_FieldRules *msg) { return
|
145
|
+
UPB_INLINE bool validate_FieldRules_has_double(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 2; }
|
147
146
|
UPB_INLINE const validate_DoubleRules* validate_FieldRules_double(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_DoubleRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 2, NULL); }
|
148
|
-
UPB_INLINE bool validate_FieldRules_has_int32(const validate_FieldRules *msg) { return
|
147
|
+
UPB_INLINE bool validate_FieldRules_has_int32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; }
|
149
148
|
UPB_INLINE const validate_Int32Rules* validate_FieldRules_int32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_Int32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); }
|
150
|
-
UPB_INLINE bool validate_FieldRules_has_int64(const validate_FieldRules *msg) { return
|
149
|
+
UPB_INLINE bool validate_FieldRules_has_int64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 4; }
|
151
150
|
UPB_INLINE const validate_Int64Rules* validate_FieldRules_int64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_Int64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 4, NULL); }
|
152
|
-
UPB_INLINE bool validate_FieldRules_has_uint32(const validate_FieldRules *msg) { return
|
151
|
+
UPB_INLINE bool validate_FieldRules_has_uint32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 5; }
|
153
152
|
UPB_INLINE const validate_UInt32Rules* validate_FieldRules_uint32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_UInt32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 5, NULL); }
|
154
|
-
UPB_INLINE bool validate_FieldRules_has_uint64(const validate_FieldRules *msg) { return
|
153
|
+
UPB_INLINE bool validate_FieldRules_has_uint64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 6; }
|
155
154
|
UPB_INLINE const validate_UInt64Rules* validate_FieldRules_uint64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_UInt64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 6, NULL); }
|
156
|
-
UPB_INLINE bool validate_FieldRules_has_sint32(const validate_FieldRules *msg) { return
|
155
|
+
UPB_INLINE bool validate_FieldRules_has_sint32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 7; }
|
157
156
|
UPB_INLINE const validate_SInt32Rules* validate_FieldRules_sint32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_SInt32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 7, NULL); }
|
158
|
-
UPB_INLINE bool validate_FieldRules_has_sint64(const validate_FieldRules *msg) { return
|
157
|
+
UPB_INLINE bool validate_FieldRules_has_sint64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 8; }
|
159
158
|
UPB_INLINE const validate_SInt64Rules* validate_FieldRules_sint64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_SInt64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 8, NULL); }
|
160
|
-
UPB_INLINE bool validate_FieldRules_has_fixed32(const validate_FieldRules *msg) { return
|
159
|
+
UPB_INLINE bool validate_FieldRules_has_fixed32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 9; }
|
161
160
|
UPB_INLINE const validate_Fixed32Rules* validate_FieldRules_fixed32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_Fixed32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 9, NULL); }
|
162
|
-
UPB_INLINE bool validate_FieldRules_has_fixed64(const validate_FieldRules *msg) { return
|
161
|
+
UPB_INLINE bool validate_FieldRules_has_fixed64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 10; }
|
163
162
|
UPB_INLINE const validate_Fixed64Rules* validate_FieldRules_fixed64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_Fixed64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 10, NULL); }
|
164
|
-
UPB_INLINE bool validate_FieldRules_has_sfixed32(const validate_FieldRules *msg) { return
|
163
|
+
UPB_INLINE bool validate_FieldRules_has_sfixed32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 11; }
|
165
164
|
UPB_INLINE const validate_SFixed32Rules* validate_FieldRules_sfixed32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_SFixed32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 11, NULL); }
|
166
|
-
UPB_INLINE bool validate_FieldRules_has_sfixed64(const validate_FieldRules *msg) { return
|
165
|
+
UPB_INLINE bool validate_FieldRules_has_sfixed64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 12; }
|
167
166
|
UPB_INLINE const validate_SFixed64Rules* validate_FieldRules_sfixed64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_SFixed64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 12, NULL); }
|
168
|
-
UPB_INLINE bool validate_FieldRules_has_bool(const validate_FieldRules *msg) { return
|
167
|
+
UPB_INLINE bool validate_FieldRules_has_bool(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 13; }
|
169
168
|
UPB_INLINE const validate_BoolRules* validate_FieldRules_bool(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_BoolRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 13, NULL); }
|
170
|
-
UPB_INLINE bool validate_FieldRules_has_string(const validate_FieldRules *msg) { return
|
169
|
+
UPB_INLINE bool validate_FieldRules_has_string(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 14; }
|
171
170
|
UPB_INLINE const validate_StringRules* validate_FieldRules_string(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_StringRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 14, NULL); }
|
172
|
-
UPB_INLINE bool validate_FieldRules_has_bytes(const validate_FieldRules *msg) { return
|
171
|
+
UPB_INLINE bool validate_FieldRules_has_bytes(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 15; }
|
173
172
|
UPB_INLINE const validate_BytesRules* validate_FieldRules_bytes(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_BytesRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 15, NULL); }
|
174
|
-
UPB_INLINE bool validate_FieldRules_has_enum(const validate_FieldRules *msg) { return
|
173
|
+
UPB_INLINE bool validate_FieldRules_has_enum(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 16; }
|
175
174
|
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); }
|
176
|
-
UPB_INLINE bool validate_FieldRules_has_message(const validate_FieldRules *msg) { return
|
177
|
-
UPB_INLINE const validate_MessageRules* validate_FieldRules_message(const validate_FieldRules *msg) { return
|
178
|
-
UPB_INLINE bool validate_FieldRules_has_repeated(const validate_FieldRules *msg) { return
|
175
|
+
UPB_INLINE bool validate_FieldRules_has_message(const validate_FieldRules *msg) { return _upb_hasbit(msg, 1); }
|
176
|
+
UPB_INLINE const validate_MessageRules* validate_FieldRules_message(const validate_FieldRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const validate_MessageRules*); }
|
177
|
+
UPB_INLINE bool validate_FieldRules_has_repeated(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 18; }
|
179
178
|
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); }
|
180
|
-
UPB_INLINE bool validate_FieldRules_has_map(const validate_FieldRules *msg) { return
|
179
|
+
UPB_INLINE bool validate_FieldRules_has_map(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 19; }
|
181
180
|
UPB_INLINE const validate_MapRules* validate_FieldRules_map(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_MapRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 19, NULL); }
|
182
|
-
UPB_INLINE bool validate_FieldRules_has_any(const validate_FieldRules *msg) { return
|
181
|
+
UPB_INLINE bool validate_FieldRules_has_any(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 20; }
|
183
182
|
UPB_INLINE const validate_AnyRules* validate_FieldRules_any(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_AnyRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 20, NULL); }
|
184
|
-
UPB_INLINE bool validate_FieldRules_has_duration(const validate_FieldRules *msg) { return
|
183
|
+
UPB_INLINE bool validate_FieldRules_has_duration(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 21; }
|
185
184
|
UPB_INLINE const validate_DurationRules* validate_FieldRules_duration(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_DurationRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 21, NULL); }
|
186
|
-
UPB_INLINE bool validate_FieldRules_has_timestamp(const validate_FieldRules *msg) { return
|
185
|
+
UPB_INLINE bool validate_FieldRules_has_timestamp(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 22; }
|
187
186
|
UPB_INLINE const validate_TimestampRules* validate_FieldRules_timestamp(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_TimestampRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 22, NULL); }
|
188
187
|
|
189
188
|
UPB_INLINE void validate_FieldRules_set_float(validate_FieldRules *msg, validate_FloatRules* value) {
|
@@ -192,7 +191,7 @@ UPB_INLINE void validate_FieldRules_set_float(validate_FieldRules *msg, validate
|
|
192
191
|
UPB_INLINE struct validate_FloatRules* validate_FieldRules_mutable_float(validate_FieldRules *msg, upb_arena *arena) {
|
193
192
|
struct validate_FloatRules* sub = (struct validate_FloatRules*)validate_FieldRules_float(msg);
|
194
193
|
if (sub == NULL) {
|
195
|
-
sub = (struct validate_FloatRules*)
|
194
|
+
sub = (struct validate_FloatRules*)_upb_msg_new(&validate_FloatRules_msginit, arena);
|
196
195
|
if (!sub) return NULL;
|
197
196
|
validate_FieldRules_set_float(msg, sub);
|
198
197
|
}
|
@@ -204,7 +203,7 @@ UPB_INLINE void validate_FieldRules_set_double(validate_FieldRules *msg, validat
|
|
204
203
|
UPB_INLINE struct validate_DoubleRules* validate_FieldRules_mutable_double(validate_FieldRules *msg, upb_arena *arena) {
|
205
204
|
struct validate_DoubleRules* sub = (struct validate_DoubleRules*)validate_FieldRules_double(msg);
|
206
205
|
if (sub == NULL) {
|
207
|
-
sub = (struct validate_DoubleRules*)
|
206
|
+
sub = (struct validate_DoubleRules*)_upb_msg_new(&validate_DoubleRules_msginit, arena);
|
208
207
|
if (!sub) return NULL;
|
209
208
|
validate_FieldRules_set_double(msg, sub);
|
210
209
|
}
|
@@ -216,7 +215,7 @@ UPB_INLINE void validate_FieldRules_set_int32(validate_FieldRules *msg, validate
|
|
216
215
|
UPB_INLINE struct validate_Int32Rules* validate_FieldRules_mutable_int32(validate_FieldRules *msg, upb_arena *arena) {
|
217
216
|
struct validate_Int32Rules* sub = (struct validate_Int32Rules*)validate_FieldRules_int32(msg);
|
218
217
|
if (sub == NULL) {
|
219
|
-
sub = (struct validate_Int32Rules*)
|
218
|
+
sub = (struct validate_Int32Rules*)_upb_msg_new(&validate_Int32Rules_msginit, arena);
|
220
219
|
if (!sub) return NULL;
|
221
220
|
validate_FieldRules_set_int32(msg, sub);
|
222
221
|
}
|
@@ -228,7 +227,7 @@ UPB_INLINE void validate_FieldRules_set_int64(validate_FieldRules *msg, validate
|
|
228
227
|
UPB_INLINE struct validate_Int64Rules* validate_FieldRules_mutable_int64(validate_FieldRules *msg, upb_arena *arena) {
|
229
228
|
struct validate_Int64Rules* sub = (struct validate_Int64Rules*)validate_FieldRules_int64(msg);
|
230
229
|
if (sub == NULL) {
|
231
|
-
sub = (struct validate_Int64Rules*)
|
230
|
+
sub = (struct validate_Int64Rules*)_upb_msg_new(&validate_Int64Rules_msginit, arena);
|
232
231
|
if (!sub) return NULL;
|
233
232
|
validate_FieldRules_set_int64(msg, sub);
|
234
233
|
}
|
@@ -240,7 +239,7 @@ UPB_INLINE void validate_FieldRules_set_uint32(validate_FieldRules *msg, validat
|
|
240
239
|
UPB_INLINE struct validate_UInt32Rules* validate_FieldRules_mutable_uint32(validate_FieldRules *msg, upb_arena *arena) {
|
241
240
|
struct validate_UInt32Rules* sub = (struct validate_UInt32Rules*)validate_FieldRules_uint32(msg);
|
242
241
|
if (sub == NULL) {
|
243
|
-
sub = (struct validate_UInt32Rules*)
|
242
|
+
sub = (struct validate_UInt32Rules*)_upb_msg_new(&validate_UInt32Rules_msginit, arena);
|
244
243
|
if (!sub) return NULL;
|
245
244
|
validate_FieldRules_set_uint32(msg, sub);
|
246
245
|
}
|
@@ -252,7 +251,7 @@ UPB_INLINE void validate_FieldRules_set_uint64(validate_FieldRules *msg, validat
|
|
252
251
|
UPB_INLINE struct validate_UInt64Rules* validate_FieldRules_mutable_uint64(validate_FieldRules *msg, upb_arena *arena) {
|
253
252
|
struct validate_UInt64Rules* sub = (struct validate_UInt64Rules*)validate_FieldRules_uint64(msg);
|
254
253
|
if (sub == NULL) {
|
255
|
-
sub = (struct validate_UInt64Rules*)
|
254
|
+
sub = (struct validate_UInt64Rules*)_upb_msg_new(&validate_UInt64Rules_msginit, arena);
|
256
255
|
if (!sub) return NULL;
|
257
256
|
validate_FieldRules_set_uint64(msg, sub);
|
258
257
|
}
|
@@ -264,7 +263,7 @@ UPB_INLINE void validate_FieldRules_set_sint32(validate_FieldRules *msg, validat
|
|
264
263
|
UPB_INLINE struct validate_SInt32Rules* validate_FieldRules_mutable_sint32(validate_FieldRules *msg, upb_arena *arena) {
|
265
264
|
struct validate_SInt32Rules* sub = (struct validate_SInt32Rules*)validate_FieldRules_sint32(msg);
|
266
265
|
if (sub == NULL) {
|
267
|
-
sub = (struct validate_SInt32Rules*)
|
266
|
+
sub = (struct validate_SInt32Rules*)_upb_msg_new(&validate_SInt32Rules_msginit, arena);
|
268
267
|
if (!sub) return NULL;
|
269
268
|
validate_FieldRules_set_sint32(msg, sub);
|
270
269
|
}
|
@@ -276,7 +275,7 @@ UPB_INLINE void validate_FieldRules_set_sint64(validate_FieldRules *msg, validat
|
|
276
275
|
UPB_INLINE struct validate_SInt64Rules* validate_FieldRules_mutable_sint64(validate_FieldRules *msg, upb_arena *arena) {
|
277
276
|
struct validate_SInt64Rules* sub = (struct validate_SInt64Rules*)validate_FieldRules_sint64(msg);
|
278
277
|
if (sub == NULL) {
|
279
|
-
sub = (struct validate_SInt64Rules*)
|
278
|
+
sub = (struct validate_SInt64Rules*)_upb_msg_new(&validate_SInt64Rules_msginit, arena);
|
280
279
|
if (!sub) return NULL;
|
281
280
|
validate_FieldRules_set_sint64(msg, sub);
|
282
281
|
}
|
@@ -288,7 +287,7 @@ UPB_INLINE void validate_FieldRules_set_fixed32(validate_FieldRules *msg, valida
|
|
288
287
|
UPB_INLINE struct validate_Fixed32Rules* validate_FieldRules_mutable_fixed32(validate_FieldRules *msg, upb_arena *arena) {
|
289
288
|
struct validate_Fixed32Rules* sub = (struct validate_Fixed32Rules*)validate_FieldRules_fixed32(msg);
|
290
289
|
if (sub == NULL) {
|
291
|
-
sub = (struct validate_Fixed32Rules*)
|
290
|
+
sub = (struct validate_Fixed32Rules*)_upb_msg_new(&validate_Fixed32Rules_msginit, arena);
|
292
291
|
if (!sub) return NULL;
|
293
292
|
validate_FieldRules_set_fixed32(msg, sub);
|
294
293
|
}
|
@@ -300,7 +299,7 @@ UPB_INLINE void validate_FieldRules_set_fixed64(validate_FieldRules *msg, valida
|
|
300
299
|
UPB_INLINE struct validate_Fixed64Rules* validate_FieldRules_mutable_fixed64(validate_FieldRules *msg, upb_arena *arena) {
|
301
300
|
struct validate_Fixed64Rules* sub = (struct validate_Fixed64Rules*)validate_FieldRules_fixed64(msg);
|
302
301
|
if (sub == NULL) {
|
303
|
-
sub = (struct validate_Fixed64Rules*)
|
302
|
+
sub = (struct validate_Fixed64Rules*)_upb_msg_new(&validate_Fixed64Rules_msginit, arena);
|
304
303
|
if (!sub) return NULL;
|
305
304
|
validate_FieldRules_set_fixed64(msg, sub);
|
306
305
|
}
|
@@ -312,7 +311,7 @@ UPB_INLINE void validate_FieldRules_set_sfixed32(validate_FieldRules *msg, valid
|
|
312
311
|
UPB_INLINE struct validate_SFixed32Rules* validate_FieldRules_mutable_sfixed32(validate_FieldRules *msg, upb_arena *arena) {
|
313
312
|
struct validate_SFixed32Rules* sub = (struct validate_SFixed32Rules*)validate_FieldRules_sfixed32(msg);
|
314
313
|
if (sub == NULL) {
|
315
|
-
sub = (struct validate_SFixed32Rules*)
|
314
|
+
sub = (struct validate_SFixed32Rules*)_upb_msg_new(&validate_SFixed32Rules_msginit, arena);
|
316
315
|
if (!sub) return NULL;
|
317
316
|
validate_FieldRules_set_sfixed32(msg, sub);
|
318
317
|
}
|
@@ -324,7 +323,7 @@ UPB_INLINE void validate_FieldRules_set_sfixed64(validate_FieldRules *msg, valid
|
|
324
323
|
UPB_INLINE struct validate_SFixed64Rules* validate_FieldRules_mutable_sfixed64(validate_FieldRules *msg, upb_arena *arena) {
|
325
324
|
struct validate_SFixed64Rules* sub = (struct validate_SFixed64Rules*)validate_FieldRules_sfixed64(msg);
|
326
325
|
if (sub == NULL) {
|
327
|
-
sub = (struct validate_SFixed64Rules*)
|
326
|
+
sub = (struct validate_SFixed64Rules*)_upb_msg_new(&validate_SFixed64Rules_msginit, arena);
|
328
327
|
if (!sub) return NULL;
|
329
328
|
validate_FieldRules_set_sfixed64(msg, sub);
|
330
329
|
}
|
@@ -336,7 +335,7 @@ UPB_INLINE void validate_FieldRules_set_bool(validate_FieldRules *msg, validate_
|
|
336
335
|
UPB_INLINE struct validate_BoolRules* validate_FieldRules_mutable_bool(validate_FieldRules *msg, upb_arena *arena) {
|
337
336
|
struct validate_BoolRules* sub = (struct validate_BoolRules*)validate_FieldRules_bool(msg);
|
338
337
|
if (sub == NULL) {
|
339
|
-
sub = (struct validate_BoolRules*)
|
338
|
+
sub = (struct validate_BoolRules*)_upb_msg_new(&validate_BoolRules_msginit, arena);
|
340
339
|
if (!sub) return NULL;
|
341
340
|
validate_FieldRules_set_bool(msg, sub);
|
342
341
|
}
|
@@ -348,7 +347,7 @@ UPB_INLINE void validate_FieldRules_set_string(validate_FieldRules *msg, validat
|
|
348
347
|
UPB_INLINE struct validate_StringRules* validate_FieldRules_mutable_string(validate_FieldRules *msg, upb_arena *arena) {
|
349
348
|
struct validate_StringRules* sub = (struct validate_StringRules*)validate_FieldRules_string(msg);
|
350
349
|
if (sub == NULL) {
|
351
|
-
sub = (struct validate_StringRules*)
|
350
|
+
sub = (struct validate_StringRules*)_upb_msg_new(&validate_StringRules_msginit, arena);
|
352
351
|
if (!sub) return NULL;
|
353
352
|
validate_FieldRules_set_string(msg, sub);
|
354
353
|
}
|
@@ -360,7 +359,7 @@ UPB_INLINE void validate_FieldRules_set_bytes(validate_FieldRules *msg, validate
|
|
360
359
|
UPB_INLINE struct validate_BytesRules* validate_FieldRules_mutable_bytes(validate_FieldRules *msg, upb_arena *arena) {
|
361
360
|
struct validate_BytesRules* sub = (struct validate_BytesRules*)validate_FieldRules_bytes(msg);
|
362
361
|
if (sub == NULL) {
|
363
|
-
sub = (struct validate_BytesRules*)
|
362
|
+
sub = (struct validate_BytesRules*)_upb_msg_new(&validate_BytesRules_msginit, arena);
|
364
363
|
if (!sub) return NULL;
|
365
364
|
validate_FieldRules_set_bytes(msg, sub);
|
366
365
|
}
|
@@ -372,7 +371,7 @@ UPB_INLINE void validate_FieldRules_set_enum(validate_FieldRules *msg, validate_
|
|
372
371
|
UPB_INLINE struct validate_EnumRules* validate_FieldRules_mutable_enum(validate_FieldRules *msg, upb_arena *arena) {
|
373
372
|
struct validate_EnumRules* sub = (struct validate_EnumRules*)validate_FieldRules_enum(msg);
|
374
373
|
if (sub == NULL) {
|
375
|
-
sub = (struct validate_EnumRules*)
|
374
|
+
sub = (struct validate_EnumRules*)_upb_msg_new(&validate_EnumRules_msginit, arena);
|
376
375
|
if (!sub) return NULL;
|
377
376
|
validate_FieldRules_set_enum(msg, sub);
|
378
377
|
}
|
@@ -380,12 +379,12 @@ UPB_INLINE struct validate_EnumRules* validate_FieldRules_mutable_enum(validate_
|
|
380
379
|
}
|
381
380
|
UPB_INLINE void validate_FieldRules_set_message(validate_FieldRules *msg, validate_MessageRules* value) {
|
382
381
|
_upb_sethas(msg, 1);
|
383
|
-
|
382
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), validate_MessageRules*) = value;
|
384
383
|
}
|
385
384
|
UPB_INLINE struct validate_MessageRules* validate_FieldRules_mutable_message(validate_FieldRules *msg, upb_arena *arena) {
|
386
385
|
struct validate_MessageRules* sub = (struct validate_MessageRules*)validate_FieldRules_message(msg);
|
387
386
|
if (sub == NULL) {
|
388
|
-
sub = (struct validate_MessageRules*)
|
387
|
+
sub = (struct validate_MessageRules*)_upb_msg_new(&validate_MessageRules_msginit, arena);
|
389
388
|
if (!sub) return NULL;
|
390
389
|
validate_FieldRules_set_message(msg, sub);
|
391
390
|
}
|
@@ -397,7 +396,7 @@ UPB_INLINE void validate_FieldRules_set_repeated(validate_FieldRules *msg, valid
|
|
397
396
|
UPB_INLINE struct validate_RepeatedRules* validate_FieldRules_mutable_repeated(validate_FieldRules *msg, upb_arena *arena) {
|
398
397
|
struct validate_RepeatedRules* sub = (struct validate_RepeatedRules*)validate_FieldRules_repeated(msg);
|
399
398
|
if (sub == NULL) {
|
400
|
-
sub = (struct validate_RepeatedRules*)
|
399
|
+
sub = (struct validate_RepeatedRules*)_upb_msg_new(&validate_RepeatedRules_msginit, arena);
|
401
400
|
if (!sub) return NULL;
|
402
401
|
validate_FieldRules_set_repeated(msg, sub);
|
403
402
|
}
|
@@ -409,7 +408,7 @@ UPB_INLINE void validate_FieldRules_set_map(validate_FieldRules *msg, validate_M
|
|
409
408
|
UPB_INLINE struct validate_MapRules* validate_FieldRules_mutable_map(validate_FieldRules *msg, upb_arena *arena) {
|
410
409
|
struct validate_MapRules* sub = (struct validate_MapRules*)validate_FieldRules_map(msg);
|
411
410
|
if (sub == NULL) {
|
412
|
-
sub = (struct validate_MapRules*)
|
411
|
+
sub = (struct validate_MapRules*)_upb_msg_new(&validate_MapRules_msginit, arena);
|
413
412
|
if (!sub) return NULL;
|
414
413
|
validate_FieldRules_set_map(msg, sub);
|
415
414
|
}
|
@@ -421,7 +420,7 @@ UPB_INLINE void validate_FieldRules_set_any(validate_FieldRules *msg, validate_A
|
|
421
420
|
UPB_INLINE struct validate_AnyRules* validate_FieldRules_mutable_any(validate_FieldRules *msg, upb_arena *arena) {
|
422
421
|
struct validate_AnyRules* sub = (struct validate_AnyRules*)validate_FieldRules_any(msg);
|
423
422
|
if (sub == NULL) {
|
424
|
-
sub = (struct validate_AnyRules*)
|
423
|
+
sub = (struct validate_AnyRules*)_upb_msg_new(&validate_AnyRules_msginit, arena);
|
425
424
|
if (!sub) return NULL;
|
426
425
|
validate_FieldRules_set_any(msg, sub);
|
427
426
|
}
|
@@ -433,7 +432,7 @@ UPB_INLINE void validate_FieldRules_set_duration(validate_FieldRules *msg, valid
|
|
433
432
|
UPB_INLINE struct validate_DurationRules* validate_FieldRules_mutable_duration(validate_FieldRules *msg, upb_arena *arena) {
|
434
433
|
struct validate_DurationRules* sub = (struct validate_DurationRules*)validate_FieldRules_duration(msg);
|
435
434
|
if (sub == NULL) {
|
436
|
-
sub = (struct validate_DurationRules*)
|
435
|
+
sub = (struct validate_DurationRules*)_upb_msg_new(&validate_DurationRules_msginit, arena);
|
437
436
|
if (!sub) return NULL;
|
438
437
|
validate_FieldRules_set_duration(msg, sub);
|
439
438
|
}
|
@@ -445,7 +444,7 @@ UPB_INLINE void validate_FieldRules_set_timestamp(validate_FieldRules *msg, vali
|
|
445
444
|
UPB_INLINE struct validate_TimestampRules* validate_FieldRules_mutable_timestamp(validate_FieldRules *msg, upb_arena *arena) {
|
446
445
|
struct validate_TimestampRules* sub = (struct validate_TimestampRules*)validate_FieldRules_timestamp(msg);
|
447
446
|
if (sub == NULL) {
|
448
|
-
sub = (struct validate_TimestampRules*)
|
447
|
+
sub = (struct validate_TimestampRules*)_upb_msg_new(&validate_TimestampRules_msginit, arena);
|
449
448
|
if (!sub) return NULL;
|
450
449
|
validate_FieldRules_set_timestamp(msg, sub);
|
451
450
|
}
|
@@ -455,7 +454,7 @@ UPB_INLINE struct validate_TimestampRules* validate_FieldRules_mutable_timestamp
|
|
455
454
|
/* validate.FloatRules */
|
456
455
|
|
457
456
|
UPB_INLINE validate_FloatRules *validate_FloatRules_new(upb_arena *arena) {
|
458
|
-
return (validate_FloatRules *)
|
457
|
+
return (validate_FloatRules *)_upb_msg_new(&validate_FloatRules_msginit, arena);
|
459
458
|
}
|
460
459
|
UPB_INLINE validate_FloatRules *validate_FloatRules_parse(const char *buf, size_t size,
|
461
460
|
upb_arena *arena) {
|
@@ -466,64 +465,64 @@ UPB_INLINE char *validate_FloatRules_serialize(const validate_FloatRules *msg, u
|
|
466
465
|
return upb_encode(msg, &validate_FloatRules_msginit, arena, len);
|
467
466
|
}
|
468
467
|
|
469
|
-
UPB_INLINE bool validate_FloatRules_has_const(const validate_FloatRules *msg) { return
|
470
|
-
UPB_INLINE float validate_FloatRules_const(const validate_FloatRules *msg) { return
|
471
|
-
UPB_INLINE bool validate_FloatRules_has_lt(const validate_FloatRules *msg) { return
|
472
|
-
UPB_INLINE float validate_FloatRules_lt(const validate_FloatRules *msg) { return
|
473
|
-
UPB_INLINE bool validate_FloatRules_has_lte(const validate_FloatRules *msg) { return
|
474
|
-
UPB_INLINE float validate_FloatRules_lte(const validate_FloatRules *msg) { return
|
475
|
-
UPB_INLINE bool validate_FloatRules_has_gt(const validate_FloatRules *msg) { return
|
476
|
-
UPB_INLINE float validate_FloatRules_gt(const validate_FloatRules *msg) { return
|
477
|
-
UPB_INLINE bool validate_FloatRules_has_gte(const validate_FloatRules *msg) { return
|
478
|
-
UPB_INLINE float validate_FloatRules_gte(const validate_FloatRules *msg) { return
|
468
|
+
UPB_INLINE bool validate_FloatRules_has_const(const validate_FloatRules *msg) { return _upb_hasbit(msg, 1); }
|
469
|
+
UPB_INLINE float validate_FloatRules_const(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), float); }
|
470
|
+
UPB_INLINE bool validate_FloatRules_has_lt(const validate_FloatRules *msg) { return _upb_hasbit(msg, 2); }
|
471
|
+
UPB_INLINE float validate_FloatRules_lt(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), float); }
|
472
|
+
UPB_INLINE bool validate_FloatRules_has_lte(const validate_FloatRules *msg) { return _upb_hasbit(msg, 3); }
|
473
|
+
UPB_INLINE float validate_FloatRules_lte(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), float); }
|
474
|
+
UPB_INLINE bool validate_FloatRules_has_gt(const validate_FloatRules *msg) { return _upb_hasbit(msg, 4); }
|
475
|
+
UPB_INLINE float validate_FloatRules_gt(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), float); }
|
476
|
+
UPB_INLINE bool validate_FloatRules_has_gte(const validate_FloatRules *msg) { return _upb_hasbit(msg, 5); }
|
477
|
+
UPB_INLINE float validate_FloatRules_gte(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), float); }
|
479
478
|
UPB_INLINE float const* validate_FloatRules_in(const validate_FloatRules *msg, size_t *len) { return (float const*)_upb_array_accessor(msg, UPB_SIZE(24, 24), len); }
|
480
479
|
UPB_INLINE float const* validate_FloatRules_not_in(const validate_FloatRules *msg, size_t *len) { return (float const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
|
481
480
|
|
482
481
|
UPB_INLINE void validate_FloatRules_set_const(validate_FloatRules *msg, float value) {
|
483
482
|
_upb_sethas(msg, 1);
|
484
|
-
|
483
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), float) = value;
|
485
484
|
}
|
486
485
|
UPB_INLINE void validate_FloatRules_set_lt(validate_FloatRules *msg, float value) {
|
487
486
|
_upb_sethas(msg, 2);
|
488
|
-
|
487
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), float) = value;
|
489
488
|
}
|
490
489
|
UPB_INLINE void validate_FloatRules_set_lte(validate_FloatRules *msg, float value) {
|
491
490
|
_upb_sethas(msg, 3);
|
492
|
-
|
491
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), float) = value;
|
493
492
|
}
|
494
493
|
UPB_INLINE void validate_FloatRules_set_gt(validate_FloatRules *msg, float value) {
|
495
494
|
_upb_sethas(msg, 4);
|
496
|
-
|
495
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), float) = value;
|
497
496
|
}
|
498
497
|
UPB_INLINE void validate_FloatRules_set_gte(validate_FloatRules *msg, float value) {
|
499
498
|
_upb_sethas(msg, 5);
|
500
|
-
|
499
|
+
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), float) = value;
|
501
500
|
}
|
502
501
|
UPB_INLINE float* validate_FloatRules_mutable_in(validate_FloatRules *msg, size_t *len) {
|
503
502
|
return (float*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
|
504
503
|
}
|
505
504
|
UPB_INLINE float* validate_FloatRules_resize_in(validate_FloatRules *msg, size_t len, upb_arena *arena) {
|
506
|
-
return (float*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len,
|
505
|
+
return (float*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len, UPB_TYPE_FLOAT, arena);
|
507
506
|
}
|
508
507
|
UPB_INLINE bool validate_FloatRules_add_in(validate_FloatRules *msg, float val, upb_arena *arena) {
|
509
|
-
return _upb_array_append_accessor(
|
510
|
-
|
508
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(24, 24), UPB_SIZE(4, 4), UPB_TYPE_FLOAT, &val,
|
509
|
+
arena);
|
511
510
|
}
|
512
511
|
UPB_INLINE float* validate_FloatRules_mutable_not_in(validate_FloatRules *msg, size_t *len) {
|
513
512
|
return (float*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
|
514
513
|
}
|
515
514
|
UPB_INLINE float* validate_FloatRules_resize_not_in(validate_FloatRules *msg, size_t len, upb_arena *arena) {
|
516
|
-
return (float*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len,
|
515
|
+
return (float*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len, UPB_TYPE_FLOAT, arena);
|
517
516
|
}
|
518
517
|
UPB_INLINE bool validate_FloatRules_add_not_in(validate_FloatRules *msg, float val, upb_arena *arena) {
|
519
|
-
return _upb_array_append_accessor(
|
520
|
-
|
518
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(28, 32), UPB_SIZE(4, 4), UPB_TYPE_FLOAT, &val,
|
519
|
+
arena);
|
521
520
|
}
|
522
521
|
|
523
522
|
/* validate.DoubleRules */
|
524
523
|
|
525
524
|
UPB_INLINE validate_DoubleRules *validate_DoubleRules_new(upb_arena *arena) {
|
526
|
-
return (validate_DoubleRules *)
|
525
|
+
return (validate_DoubleRules *)_upb_msg_new(&validate_DoubleRules_msginit, arena);
|
527
526
|
}
|
528
527
|
UPB_INLINE validate_DoubleRules *validate_DoubleRules_parse(const char *buf, size_t size,
|
529
528
|
upb_arena *arena) {
|
@@ -534,64 +533,64 @@ UPB_INLINE char *validate_DoubleRules_serialize(const validate_DoubleRules *msg,
|
|
534
533
|
return upb_encode(msg, &validate_DoubleRules_msginit, arena, len);
|
535
534
|
}
|
536
535
|
|
537
|
-
UPB_INLINE bool validate_DoubleRules_has_const(const validate_DoubleRules *msg) { return
|
538
|
-
UPB_INLINE double validate_DoubleRules_const(const validate_DoubleRules *msg) { return
|
539
|
-
UPB_INLINE bool validate_DoubleRules_has_lt(const validate_DoubleRules *msg) { return
|
540
|
-
UPB_INLINE double validate_DoubleRules_lt(const validate_DoubleRules *msg) { return
|
541
|
-
UPB_INLINE bool validate_DoubleRules_has_lte(const validate_DoubleRules *msg) { return
|
542
|
-
UPB_INLINE double validate_DoubleRules_lte(const validate_DoubleRules *msg) { return
|
543
|
-
UPB_INLINE bool validate_DoubleRules_has_gt(const validate_DoubleRules *msg) { return
|
544
|
-
UPB_INLINE double validate_DoubleRules_gt(const validate_DoubleRules *msg) { return
|
545
|
-
UPB_INLINE bool validate_DoubleRules_has_gte(const validate_DoubleRules *msg) { return
|
546
|
-
UPB_INLINE double validate_DoubleRules_gte(const validate_DoubleRules *msg) { return
|
536
|
+
UPB_INLINE bool validate_DoubleRules_has_const(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 1); }
|
537
|
+
UPB_INLINE double validate_DoubleRules_const(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double); }
|
538
|
+
UPB_INLINE bool validate_DoubleRules_has_lt(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 2); }
|
539
|
+
UPB_INLINE double validate_DoubleRules_lt(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), double); }
|
540
|
+
UPB_INLINE bool validate_DoubleRules_has_lte(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 3); }
|
541
|
+
UPB_INLINE double validate_DoubleRules_lte(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), double); }
|
542
|
+
UPB_INLINE bool validate_DoubleRules_has_gt(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 4); }
|
543
|
+
UPB_INLINE double validate_DoubleRules_gt(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), double); }
|
544
|
+
UPB_INLINE bool validate_DoubleRules_has_gte(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 5); }
|
545
|
+
UPB_INLINE double validate_DoubleRules_gte(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), double); }
|
547
546
|
UPB_INLINE double const* validate_DoubleRules_in(const validate_DoubleRules *msg, size_t *len) { return (double const*)_upb_array_accessor(msg, UPB_SIZE(48, 48), len); }
|
548
547
|
UPB_INLINE double const* validate_DoubleRules_not_in(const validate_DoubleRules *msg, size_t *len) { return (double const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
|
549
548
|
|
550
549
|
UPB_INLINE void validate_DoubleRules_set_const(validate_DoubleRules *msg, double value) {
|
551
550
|
_upb_sethas(msg, 1);
|
552
|
-
|
551
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), double) = value;
|
553
552
|
}
|
554
553
|
UPB_INLINE void validate_DoubleRules_set_lt(validate_DoubleRules *msg, double value) {
|
555
554
|
_upb_sethas(msg, 2);
|
556
|
-
|
555
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), double) = value;
|
557
556
|
}
|
558
557
|
UPB_INLINE void validate_DoubleRules_set_lte(validate_DoubleRules *msg, double value) {
|
559
558
|
_upb_sethas(msg, 3);
|
560
|
-
|
559
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), double) = value;
|
561
560
|
}
|
562
561
|
UPB_INLINE void validate_DoubleRules_set_gt(validate_DoubleRules *msg, double value) {
|
563
562
|
_upb_sethas(msg, 4);
|
564
|
-
|
563
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), double) = value;
|
565
564
|
}
|
566
565
|
UPB_INLINE void validate_DoubleRules_set_gte(validate_DoubleRules *msg, double value) {
|
567
566
|
_upb_sethas(msg, 5);
|
568
|
-
|
567
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), double) = value;
|
569
568
|
}
|
570
569
|
UPB_INLINE double* validate_DoubleRules_mutable_in(validate_DoubleRules *msg, size_t *len) {
|
571
570
|
return (double*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
|
572
571
|
}
|
573
572
|
UPB_INLINE double* validate_DoubleRules_resize_in(validate_DoubleRules *msg, size_t len, upb_arena *arena) {
|
574
|
-
return (double*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len,
|
573
|
+
return (double*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len, UPB_TYPE_DOUBLE, arena);
|
575
574
|
}
|
576
575
|
UPB_INLINE bool validate_DoubleRules_add_in(validate_DoubleRules *msg, double val, upb_arena *arena) {
|
577
|
-
return _upb_array_append_accessor(
|
578
|
-
|
576
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(48, 48), UPB_SIZE(8, 8), UPB_TYPE_DOUBLE, &val,
|
577
|
+
arena);
|
579
578
|
}
|
580
579
|
UPB_INLINE double* validate_DoubleRules_mutable_not_in(validate_DoubleRules *msg, size_t *len) {
|
581
580
|
return (double*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
|
582
581
|
}
|
583
582
|
UPB_INLINE double* validate_DoubleRules_resize_not_in(validate_DoubleRules *msg, size_t len, upb_arena *arena) {
|
584
|
-
return (double*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len,
|
583
|
+
return (double*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len, UPB_TYPE_DOUBLE, arena);
|
585
584
|
}
|
586
585
|
UPB_INLINE bool validate_DoubleRules_add_not_in(validate_DoubleRules *msg, double val, upb_arena *arena) {
|
587
|
-
return _upb_array_append_accessor(
|
588
|
-
|
586
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(52, 56), UPB_SIZE(8, 8), UPB_TYPE_DOUBLE, &val,
|
587
|
+
arena);
|
589
588
|
}
|
590
589
|
|
591
590
|
/* validate.Int32Rules */
|
592
591
|
|
593
592
|
UPB_INLINE validate_Int32Rules *validate_Int32Rules_new(upb_arena *arena) {
|
594
|
-
return (validate_Int32Rules *)
|
593
|
+
return (validate_Int32Rules *)_upb_msg_new(&validate_Int32Rules_msginit, arena);
|
595
594
|
}
|
596
595
|
UPB_INLINE validate_Int32Rules *validate_Int32Rules_parse(const char *buf, size_t size,
|
597
596
|
upb_arena *arena) {
|
@@ -602,64 +601,64 @@ UPB_INLINE char *validate_Int32Rules_serialize(const validate_Int32Rules *msg, u
|
|
602
601
|
return upb_encode(msg, &validate_Int32Rules_msginit, arena, len);
|
603
602
|
}
|
604
603
|
|
605
|
-
UPB_INLINE bool validate_Int32Rules_has_const(const validate_Int32Rules *msg) { return
|
606
|
-
UPB_INLINE int32_t validate_Int32Rules_const(const validate_Int32Rules *msg) { return
|
607
|
-
UPB_INLINE bool validate_Int32Rules_has_lt(const validate_Int32Rules *msg) { return
|
608
|
-
UPB_INLINE int32_t validate_Int32Rules_lt(const validate_Int32Rules *msg) { return
|
609
|
-
UPB_INLINE bool validate_Int32Rules_has_lte(const validate_Int32Rules *msg) { return
|
610
|
-
UPB_INLINE int32_t validate_Int32Rules_lte(const validate_Int32Rules *msg) { return
|
611
|
-
UPB_INLINE bool validate_Int32Rules_has_gt(const validate_Int32Rules *msg) { return
|
612
|
-
UPB_INLINE int32_t validate_Int32Rules_gt(const validate_Int32Rules *msg) { return
|
613
|
-
UPB_INLINE bool validate_Int32Rules_has_gte(const validate_Int32Rules *msg) { return
|
614
|
-
UPB_INLINE int32_t validate_Int32Rules_gte(const validate_Int32Rules *msg) { return
|
604
|
+
UPB_INLINE bool validate_Int32Rules_has_const(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 1); }
|
605
|
+
UPB_INLINE int32_t validate_Int32Rules_const(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
|
606
|
+
UPB_INLINE bool validate_Int32Rules_has_lt(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 2); }
|
607
|
+
UPB_INLINE int32_t validate_Int32Rules_lt(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
|
608
|
+
UPB_INLINE bool validate_Int32Rules_has_lte(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 3); }
|
609
|
+
UPB_INLINE int32_t validate_Int32Rules_lte(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
|
610
|
+
UPB_INLINE bool validate_Int32Rules_has_gt(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 4); }
|
611
|
+
UPB_INLINE int32_t validate_Int32Rules_gt(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
|
612
|
+
UPB_INLINE bool validate_Int32Rules_has_gte(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 5); }
|
613
|
+
UPB_INLINE int32_t validate_Int32Rules_gte(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
|
615
614
|
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(24, 24), len); }
|
616
615
|
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(28, 32), len); }
|
617
616
|
|
618
617
|
UPB_INLINE void validate_Int32Rules_set_const(validate_Int32Rules *msg, int32_t value) {
|
619
618
|
_upb_sethas(msg, 1);
|
620
|
-
|
619
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
|
621
620
|
}
|
622
621
|
UPB_INLINE void validate_Int32Rules_set_lt(validate_Int32Rules *msg, int32_t value) {
|
623
622
|
_upb_sethas(msg, 2);
|
624
|
-
|
623
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value;
|
625
624
|
}
|
626
625
|
UPB_INLINE void validate_Int32Rules_set_lte(validate_Int32Rules *msg, int32_t value) {
|
627
626
|
_upb_sethas(msg, 3);
|
628
|
-
|
627
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t) = value;
|
629
628
|
}
|
630
629
|
UPB_INLINE void validate_Int32Rules_set_gt(validate_Int32Rules *msg, int32_t value) {
|
631
630
|
_upb_sethas(msg, 4);
|
632
|
-
|
631
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = value;
|
633
632
|
}
|
634
633
|
UPB_INLINE void validate_Int32Rules_set_gte(validate_Int32Rules *msg, int32_t value) {
|
635
634
|
_upb_sethas(msg, 5);
|
636
|
-
|
635
|
+
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t) = value;
|
637
636
|
}
|
638
637
|
UPB_INLINE int32_t* validate_Int32Rules_mutable_in(validate_Int32Rules *msg, size_t *len) {
|
639
638
|
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
|
640
639
|
}
|
641
640
|
UPB_INLINE int32_t* validate_Int32Rules_resize_in(validate_Int32Rules *msg, size_t len, upb_arena *arena) {
|
642
|
-
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len,
|
641
|
+
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len, UPB_TYPE_INT32, arena);
|
643
642
|
}
|
644
643
|
UPB_INLINE bool validate_Int32Rules_add_in(validate_Int32Rules *msg, int32_t val, upb_arena *arena) {
|
645
|
-
return _upb_array_append_accessor(
|
646
|
-
|
644
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(24, 24), UPB_SIZE(4, 4), UPB_TYPE_INT32, &val,
|
645
|
+
arena);
|
647
646
|
}
|
648
647
|
UPB_INLINE int32_t* validate_Int32Rules_mutable_not_in(validate_Int32Rules *msg, size_t *len) {
|
649
648
|
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
|
650
649
|
}
|
651
650
|
UPB_INLINE int32_t* validate_Int32Rules_resize_not_in(validate_Int32Rules *msg, size_t len, upb_arena *arena) {
|
652
|
-
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len,
|
651
|
+
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len, UPB_TYPE_INT32, arena);
|
653
652
|
}
|
654
653
|
UPB_INLINE bool validate_Int32Rules_add_not_in(validate_Int32Rules *msg, int32_t val, upb_arena *arena) {
|
655
|
-
return _upb_array_append_accessor(
|
656
|
-
|
654
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(28, 32), UPB_SIZE(4, 4), UPB_TYPE_INT32, &val,
|
655
|
+
arena);
|
657
656
|
}
|
658
657
|
|
659
658
|
/* validate.Int64Rules */
|
660
659
|
|
661
660
|
UPB_INLINE validate_Int64Rules *validate_Int64Rules_new(upb_arena *arena) {
|
662
|
-
return (validate_Int64Rules *)
|
661
|
+
return (validate_Int64Rules *)_upb_msg_new(&validate_Int64Rules_msginit, arena);
|
663
662
|
}
|
664
663
|
UPB_INLINE validate_Int64Rules *validate_Int64Rules_parse(const char *buf, size_t size,
|
665
664
|
upb_arena *arena) {
|
@@ -670,64 +669,64 @@ UPB_INLINE char *validate_Int64Rules_serialize(const validate_Int64Rules *msg, u
|
|
670
669
|
return upb_encode(msg, &validate_Int64Rules_msginit, arena, len);
|
671
670
|
}
|
672
671
|
|
673
|
-
UPB_INLINE bool validate_Int64Rules_has_const(const validate_Int64Rules *msg) { return
|
674
|
-
UPB_INLINE int64_t validate_Int64Rules_const(const validate_Int64Rules *msg) { return
|
675
|
-
UPB_INLINE bool validate_Int64Rules_has_lt(const validate_Int64Rules *msg) { return
|
676
|
-
UPB_INLINE int64_t validate_Int64Rules_lt(const validate_Int64Rules *msg) { return
|
677
|
-
UPB_INLINE bool validate_Int64Rules_has_lte(const validate_Int64Rules *msg) { return
|
678
|
-
UPB_INLINE int64_t validate_Int64Rules_lte(const validate_Int64Rules *msg) { return
|
679
|
-
UPB_INLINE bool validate_Int64Rules_has_gt(const validate_Int64Rules *msg) { return
|
680
|
-
UPB_INLINE int64_t validate_Int64Rules_gt(const validate_Int64Rules *msg) { return
|
681
|
-
UPB_INLINE bool validate_Int64Rules_has_gte(const validate_Int64Rules *msg) { return
|
682
|
-
UPB_INLINE int64_t validate_Int64Rules_gte(const validate_Int64Rules *msg) { return
|
672
|
+
UPB_INLINE bool validate_Int64Rules_has_const(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 1); }
|
673
|
+
UPB_INLINE int64_t validate_Int64Rules_const(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
|
674
|
+
UPB_INLINE bool validate_Int64Rules_has_lt(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 2); }
|
675
|
+
UPB_INLINE int64_t validate_Int64Rules_lt(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
|
676
|
+
UPB_INLINE bool validate_Int64Rules_has_lte(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 3); }
|
677
|
+
UPB_INLINE int64_t validate_Int64Rules_lte(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
|
678
|
+
UPB_INLINE bool validate_Int64Rules_has_gt(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 4); }
|
679
|
+
UPB_INLINE int64_t validate_Int64Rules_gt(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
|
680
|
+
UPB_INLINE bool validate_Int64Rules_has_gte(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 5); }
|
681
|
+
UPB_INLINE int64_t validate_Int64Rules_gte(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
|
683
682
|
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(48, 48), len); }
|
684
683
|
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(52, 56), len); }
|
685
684
|
|
686
685
|
UPB_INLINE void validate_Int64Rules_set_const(validate_Int64Rules *msg, int64_t value) {
|
687
686
|
_upb_sethas(msg, 1);
|
688
|
-
|
687
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
|
689
688
|
}
|
690
689
|
UPB_INLINE void validate_Int64Rules_set_lt(validate_Int64Rules *msg, int64_t value) {
|
691
690
|
_upb_sethas(msg, 2);
|
692
|
-
|
691
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = value;
|
693
692
|
}
|
694
693
|
UPB_INLINE void validate_Int64Rules_set_lte(validate_Int64Rules *msg, int64_t value) {
|
695
694
|
_upb_sethas(msg, 3);
|
696
|
-
|
695
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = value;
|
697
696
|
}
|
698
697
|
UPB_INLINE void validate_Int64Rules_set_gt(validate_Int64Rules *msg, int64_t value) {
|
699
698
|
_upb_sethas(msg, 4);
|
700
|
-
|
699
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t) = value;
|
701
700
|
}
|
702
701
|
UPB_INLINE void validate_Int64Rules_set_gte(validate_Int64Rules *msg, int64_t value) {
|
703
702
|
_upb_sethas(msg, 5);
|
704
|
-
|
703
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t) = value;
|
705
704
|
}
|
706
705
|
UPB_INLINE int64_t* validate_Int64Rules_mutable_in(validate_Int64Rules *msg, size_t *len) {
|
707
706
|
return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
|
708
707
|
}
|
709
708
|
UPB_INLINE int64_t* validate_Int64Rules_resize_in(validate_Int64Rules *msg, size_t len, upb_arena *arena) {
|
710
|
-
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len,
|
709
|
+
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len, UPB_TYPE_INT64, arena);
|
711
710
|
}
|
712
711
|
UPB_INLINE bool validate_Int64Rules_add_in(validate_Int64Rules *msg, int64_t val, upb_arena *arena) {
|
713
|
-
return _upb_array_append_accessor(
|
714
|
-
|
712
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(48, 48), UPB_SIZE(8, 8), UPB_TYPE_INT64, &val,
|
713
|
+
arena);
|
715
714
|
}
|
716
715
|
UPB_INLINE int64_t* validate_Int64Rules_mutable_not_in(validate_Int64Rules *msg, size_t *len) {
|
717
716
|
return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
|
718
717
|
}
|
719
718
|
UPB_INLINE int64_t* validate_Int64Rules_resize_not_in(validate_Int64Rules *msg, size_t len, upb_arena *arena) {
|
720
|
-
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len,
|
719
|
+
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len, UPB_TYPE_INT64, arena);
|
721
720
|
}
|
722
721
|
UPB_INLINE bool validate_Int64Rules_add_not_in(validate_Int64Rules *msg, int64_t val, upb_arena *arena) {
|
723
|
-
return _upb_array_append_accessor(
|
724
|
-
|
722
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(52, 56), UPB_SIZE(8, 8), UPB_TYPE_INT64, &val,
|
723
|
+
arena);
|
725
724
|
}
|
726
725
|
|
727
726
|
/* validate.UInt32Rules */
|
728
727
|
|
729
728
|
UPB_INLINE validate_UInt32Rules *validate_UInt32Rules_new(upb_arena *arena) {
|
730
|
-
return (validate_UInt32Rules *)
|
729
|
+
return (validate_UInt32Rules *)_upb_msg_new(&validate_UInt32Rules_msginit, arena);
|
731
730
|
}
|
732
731
|
UPB_INLINE validate_UInt32Rules *validate_UInt32Rules_parse(const char *buf, size_t size,
|
733
732
|
upb_arena *arena) {
|
@@ -738,64 +737,64 @@ UPB_INLINE char *validate_UInt32Rules_serialize(const validate_UInt32Rules *msg,
|
|
738
737
|
return upb_encode(msg, &validate_UInt32Rules_msginit, arena, len);
|
739
738
|
}
|
740
739
|
|
741
|
-
UPB_INLINE bool validate_UInt32Rules_has_const(const validate_UInt32Rules *msg) { return
|
742
|
-
UPB_INLINE uint32_t validate_UInt32Rules_const(const validate_UInt32Rules *msg) { return
|
743
|
-
UPB_INLINE bool validate_UInt32Rules_has_lt(const validate_UInt32Rules *msg) { return
|
744
|
-
UPB_INLINE uint32_t validate_UInt32Rules_lt(const validate_UInt32Rules *msg) { return
|
745
|
-
UPB_INLINE bool validate_UInt32Rules_has_lte(const validate_UInt32Rules *msg) { return
|
746
|
-
UPB_INLINE uint32_t validate_UInt32Rules_lte(const validate_UInt32Rules *msg) { return
|
747
|
-
UPB_INLINE bool validate_UInt32Rules_has_gt(const validate_UInt32Rules *msg) { return
|
748
|
-
UPB_INLINE uint32_t validate_UInt32Rules_gt(const validate_UInt32Rules *msg) { return
|
749
|
-
UPB_INLINE bool validate_UInt32Rules_has_gte(const validate_UInt32Rules *msg) { return
|
750
|
-
UPB_INLINE uint32_t validate_UInt32Rules_gte(const validate_UInt32Rules *msg) { return
|
740
|
+
UPB_INLINE bool validate_UInt32Rules_has_const(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 1); }
|
741
|
+
UPB_INLINE uint32_t validate_UInt32Rules_const(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); }
|
742
|
+
UPB_INLINE bool validate_UInt32Rules_has_lt(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 2); }
|
743
|
+
UPB_INLINE uint32_t validate_UInt32Rules_lt(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t); }
|
744
|
+
UPB_INLINE bool validate_UInt32Rules_has_lte(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 3); }
|
745
|
+
UPB_INLINE uint32_t validate_UInt32Rules_lte(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t); }
|
746
|
+
UPB_INLINE bool validate_UInt32Rules_has_gt(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 4); }
|
747
|
+
UPB_INLINE uint32_t validate_UInt32Rules_gt(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t); }
|
748
|
+
UPB_INLINE bool validate_UInt32Rules_has_gte(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 5); }
|
749
|
+
UPB_INLINE uint32_t validate_UInt32Rules_gte(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t); }
|
751
750
|
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(24, 24), len); }
|
752
751
|
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(28, 32), len); }
|
753
752
|
|
754
753
|
UPB_INLINE void validate_UInt32Rules_set_const(validate_UInt32Rules *msg, uint32_t value) {
|
755
754
|
_upb_sethas(msg, 1);
|
756
|
-
|
755
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value;
|
757
756
|
}
|
758
757
|
UPB_INLINE void validate_UInt32Rules_set_lt(validate_UInt32Rules *msg, uint32_t value) {
|
759
758
|
_upb_sethas(msg, 2);
|
760
|
-
|
759
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t) = value;
|
761
760
|
}
|
762
761
|
UPB_INLINE void validate_UInt32Rules_set_lte(validate_UInt32Rules *msg, uint32_t value) {
|
763
762
|
_upb_sethas(msg, 3);
|
764
|
-
|
763
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t) = value;
|
765
764
|
}
|
766
765
|
UPB_INLINE void validate_UInt32Rules_set_gt(validate_UInt32Rules *msg, uint32_t value) {
|
767
766
|
_upb_sethas(msg, 4);
|
768
|
-
|
767
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t) = value;
|
769
768
|
}
|
770
769
|
UPB_INLINE void validate_UInt32Rules_set_gte(validate_UInt32Rules *msg, uint32_t value) {
|
771
770
|
_upb_sethas(msg, 5);
|
772
|
-
|
771
|
+
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t) = value;
|
773
772
|
}
|
774
773
|
UPB_INLINE uint32_t* validate_UInt32Rules_mutable_in(validate_UInt32Rules *msg, size_t *len) {
|
775
774
|
return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
|
776
775
|
}
|
777
776
|
UPB_INLINE uint32_t* validate_UInt32Rules_resize_in(validate_UInt32Rules *msg, size_t len, upb_arena *arena) {
|
778
|
-
return (uint32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len,
|
777
|
+
return (uint32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len, UPB_TYPE_UINT32, arena);
|
779
778
|
}
|
780
779
|
UPB_INLINE bool validate_UInt32Rules_add_in(validate_UInt32Rules *msg, uint32_t val, upb_arena *arena) {
|
781
|
-
return _upb_array_append_accessor(
|
782
|
-
|
780
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(24, 24), UPB_SIZE(4, 4), UPB_TYPE_UINT32, &val,
|
781
|
+
arena);
|
783
782
|
}
|
784
783
|
UPB_INLINE uint32_t* validate_UInt32Rules_mutable_not_in(validate_UInt32Rules *msg, size_t *len) {
|
785
784
|
return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
|
786
785
|
}
|
787
786
|
UPB_INLINE uint32_t* validate_UInt32Rules_resize_not_in(validate_UInt32Rules *msg, size_t len, upb_arena *arena) {
|
788
|
-
return (uint32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len,
|
787
|
+
return (uint32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len, UPB_TYPE_UINT32, arena);
|
789
788
|
}
|
790
789
|
UPB_INLINE bool validate_UInt32Rules_add_not_in(validate_UInt32Rules *msg, uint32_t val, upb_arena *arena) {
|
791
|
-
return _upb_array_append_accessor(
|
792
|
-
|
790
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(28, 32), UPB_SIZE(4, 4), UPB_TYPE_UINT32, &val,
|
791
|
+
arena);
|
793
792
|
}
|
794
793
|
|
795
794
|
/* validate.UInt64Rules */
|
796
795
|
|
797
796
|
UPB_INLINE validate_UInt64Rules *validate_UInt64Rules_new(upb_arena *arena) {
|
798
|
-
return (validate_UInt64Rules *)
|
797
|
+
return (validate_UInt64Rules *)_upb_msg_new(&validate_UInt64Rules_msginit, arena);
|
799
798
|
}
|
800
799
|
UPB_INLINE validate_UInt64Rules *validate_UInt64Rules_parse(const char *buf, size_t size,
|
801
800
|
upb_arena *arena) {
|
@@ -806,64 +805,64 @@ UPB_INLINE char *validate_UInt64Rules_serialize(const validate_UInt64Rules *msg,
|
|
806
805
|
return upb_encode(msg, &validate_UInt64Rules_msginit, arena, len);
|
807
806
|
}
|
808
807
|
|
809
|
-
UPB_INLINE bool validate_UInt64Rules_has_const(const validate_UInt64Rules *msg) { return
|
810
|
-
UPB_INLINE uint64_t validate_UInt64Rules_const(const validate_UInt64Rules *msg) { return
|
811
|
-
UPB_INLINE bool validate_UInt64Rules_has_lt(const validate_UInt64Rules *msg) { return
|
812
|
-
UPB_INLINE uint64_t validate_UInt64Rules_lt(const validate_UInt64Rules *msg) { return
|
813
|
-
UPB_INLINE bool validate_UInt64Rules_has_lte(const validate_UInt64Rules *msg) { return
|
814
|
-
UPB_INLINE uint64_t validate_UInt64Rules_lte(const validate_UInt64Rules *msg) { return
|
815
|
-
UPB_INLINE bool validate_UInt64Rules_has_gt(const validate_UInt64Rules *msg) { return
|
816
|
-
UPB_INLINE uint64_t validate_UInt64Rules_gt(const validate_UInt64Rules *msg) { return
|
817
|
-
UPB_INLINE bool validate_UInt64Rules_has_gte(const validate_UInt64Rules *msg) { return
|
818
|
-
UPB_INLINE uint64_t validate_UInt64Rules_gte(const validate_UInt64Rules *msg) { return
|
808
|
+
UPB_INLINE bool validate_UInt64Rules_has_const(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 1); }
|
809
|
+
UPB_INLINE uint64_t validate_UInt64Rules_const(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
|
810
|
+
UPB_INLINE bool validate_UInt64Rules_has_lt(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 2); }
|
811
|
+
UPB_INLINE uint64_t validate_UInt64Rules_lt(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
|
812
|
+
UPB_INLINE bool validate_UInt64Rules_has_lte(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 3); }
|
813
|
+
UPB_INLINE uint64_t validate_UInt64Rules_lte(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
|
814
|
+
UPB_INLINE bool validate_UInt64Rules_has_gt(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 4); }
|
815
|
+
UPB_INLINE uint64_t validate_UInt64Rules_gt(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
|
816
|
+
UPB_INLINE bool validate_UInt64Rules_has_gte(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 5); }
|
817
|
+
UPB_INLINE uint64_t validate_UInt64Rules_gte(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
|
819
818
|
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(48, 48), len); }
|
820
819
|
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(52, 56), len); }
|
821
820
|
|
822
821
|
UPB_INLINE void validate_UInt64Rules_set_const(validate_UInt64Rules *msg, uint64_t value) {
|
823
822
|
_upb_sethas(msg, 1);
|
824
|
-
|
823
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
|
825
824
|
}
|
826
825
|
UPB_INLINE void validate_UInt64Rules_set_lt(validate_UInt64Rules *msg, uint64_t value) {
|
827
826
|
_upb_sethas(msg, 2);
|
828
|
-
|
827
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
|
829
828
|
}
|
830
829
|
UPB_INLINE void validate_UInt64Rules_set_lte(validate_UInt64Rules *msg, uint64_t value) {
|
831
830
|
_upb_sethas(msg, 3);
|
832
|
-
|
831
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
|
833
832
|
}
|
834
833
|
UPB_INLINE void validate_UInt64Rules_set_gt(validate_UInt64Rules *msg, uint64_t value) {
|
835
834
|
_upb_sethas(msg, 4);
|
836
|
-
|
835
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value;
|
837
836
|
}
|
838
837
|
UPB_INLINE void validate_UInt64Rules_set_gte(validate_UInt64Rules *msg, uint64_t value) {
|
839
838
|
_upb_sethas(msg, 5);
|
840
|
-
|
839
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t) = value;
|
841
840
|
}
|
842
841
|
UPB_INLINE uint64_t* validate_UInt64Rules_mutable_in(validate_UInt64Rules *msg, size_t *len) {
|
843
842
|
return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
|
844
843
|
}
|
845
844
|
UPB_INLINE uint64_t* validate_UInt64Rules_resize_in(validate_UInt64Rules *msg, size_t len, upb_arena *arena) {
|
846
|
-
return (uint64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len,
|
845
|
+
return (uint64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len, UPB_TYPE_UINT64, arena);
|
847
846
|
}
|
848
847
|
UPB_INLINE bool validate_UInt64Rules_add_in(validate_UInt64Rules *msg, uint64_t val, upb_arena *arena) {
|
849
|
-
return _upb_array_append_accessor(
|
850
|
-
|
848
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(48, 48), UPB_SIZE(8, 8), UPB_TYPE_UINT64, &val,
|
849
|
+
arena);
|
851
850
|
}
|
852
851
|
UPB_INLINE uint64_t* validate_UInt64Rules_mutable_not_in(validate_UInt64Rules *msg, size_t *len) {
|
853
852
|
return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
|
854
853
|
}
|
855
854
|
UPB_INLINE uint64_t* validate_UInt64Rules_resize_not_in(validate_UInt64Rules *msg, size_t len, upb_arena *arena) {
|
856
|
-
return (uint64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len,
|
855
|
+
return (uint64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len, UPB_TYPE_UINT64, arena);
|
857
856
|
}
|
858
857
|
UPB_INLINE bool validate_UInt64Rules_add_not_in(validate_UInt64Rules *msg, uint64_t val, upb_arena *arena) {
|
859
|
-
return _upb_array_append_accessor(
|
860
|
-
|
858
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(52, 56), UPB_SIZE(8, 8), UPB_TYPE_UINT64, &val,
|
859
|
+
arena);
|
861
860
|
}
|
862
861
|
|
863
862
|
/* validate.SInt32Rules */
|
864
863
|
|
865
864
|
UPB_INLINE validate_SInt32Rules *validate_SInt32Rules_new(upb_arena *arena) {
|
866
|
-
return (validate_SInt32Rules *)
|
865
|
+
return (validate_SInt32Rules *)_upb_msg_new(&validate_SInt32Rules_msginit, arena);
|
867
866
|
}
|
868
867
|
UPB_INLINE validate_SInt32Rules *validate_SInt32Rules_parse(const char *buf, size_t size,
|
869
868
|
upb_arena *arena) {
|
@@ -874,64 +873,64 @@ UPB_INLINE char *validate_SInt32Rules_serialize(const validate_SInt32Rules *msg,
|
|
874
873
|
return upb_encode(msg, &validate_SInt32Rules_msginit, arena, len);
|
875
874
|
}
|
876
875
|
|
877
|
-
UPB_INLINE bool validate_SInt32Rules_has_const(const validate_SInt32Rules *msg) { return
|
878
|
-
UPB_INLINE int32_t validate_SInt32Rules_const(const validate_SInt32Rules *msg) { return
|
879
|
-
UPB_INLINE bool validate_SInt32Rules_has_lt(const validate_SInt32Rules *msg) { return
|
880
|
-
UPB_INLINE int32_t validate_SInt32Rules_lt(const validate_SInt32Rules *msg) { return
|
881
|
-
UPB_INLINE bool validate_SInt32Rules_has_lte(const validate_SInt32Rules *msg) { return
|
882
|
-
UPB_INLINE int32_t validate_SInt32Rules_lte(const validate_SInt32Rules *msg) { return
|
883
|
-
UPB_INLINE bool validate_SInt32Rules_has_gt(const validate_SInt32Rules *msg) { return
|
884
|
-
UPB_INLINE int32_t validate_SInt32Rules_gt(const validate_SInt32Rules *msg) { return
|
885
|
-
UPB_INLINE bool validate_SInt32Rules_has_gte(const validate_SInt32Rules *msg) { return
|
886
|
-
UPB_INLINE int32_t validate_SInt32Rules_gte(const validate_SInt32Rules *msg) { return
|
876
|
+
UPB_INLINE bool validate_SInt32Rules_has_const(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 1); }
|
877
|
+
UPB_INLINE int32_t validate_SInt32Rules_const(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
|
878
|
+
UPB_INLINE bool validate_SInt32Rules_has_lt(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 2); }
|
879
|
+
UPB_INLINE int32_t validate_SInt32Rules_lt(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
|
880
|
+
UPB_INLINE bool validate_SInt32Rules_has_lte(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 3); }
|
881
|
+
UPB_INLINE int32_t validate_SInt32Rules_lte(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
|
882
|
+
UPB_INLINE bool validate_SInt32Rules_has_gt(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 4); }
|
883
|
+
UPB_INLINE int32_t validate_SInt32Rules_gt(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
|
884
|
+
UPB_INLINE bool validate_SInt32Rules_has_gte(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 5); }
|
885
|
+
UPB_INLINE int32_t validate_SInt32Rules_gte(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
|
887
886
|
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(24, 24), len); }
|
888
887
|
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(28, 32), len); }
|
889
888
|
|
890
889
|
UPB_INLINE void validate_SInt32Rules_set_const(validate_SInt32Rules *msg, int32_t value) {
|
891
890
|
_upb_sethas(msg, 1);
|
892
|
-
|
891
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
|
893
892
|
}
|
894
893
|
UPB_INLINE void validate_SInt32Rules_set_lt(validate_SInt32Rules *msg, int32_t value) {
|
895
894
|
_upb_sethas(msg, 2);
|
896
|
-
|
895
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value;
|
897
896
|
}
|
898
897
|
UPB_INLINE void validate_SInt32Rules_set_lte(validate_SInt32Rules *msg, int32_t value) {
|
899
898
|
_upb_sethas(msg, 3);
|
900
|
-
|
899
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t) = value;
|
901
900
|
}
|
902
901
|
UPB_INLINE void validate_SInt32Rules_set_gt(validate_SInt32Rules *msg, int32_t value) {
|
903
902
|
_upb_sethas(msg, 4);
|
904
|
-
|
903
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = value;
|
905
904
|
}
|
906
905
|
UPB_INLINE void validate_SInt32Rules_set_gte(validate_SInt32Rules *msg, int32_t value) {
|
907
906
|
_upb_sethas(msg, 5);
|
908
|
-
|
907
|
+
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t) = value;
|
909
908
|
}
|
910
909
|
UPB_INLINE int32_t* validate_SInt32Rules_mutable_in(validate_SInt32Rules *msg, size_t *len) {
|
911
910
|
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
|
912
911
|
}
|
913
912
|
UPB_INLINE int32_t* validate_SInt32Rules_resize_in(validate_SInt32Rules *msg, size_t len, upb_arena *arena) {
|
914
|
-
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len,
|
913
|
+
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len, UPB_TYPE_INT32, arena);
|
915
914
|
}
|
916
915
|
UPB_INLINE bool validate_SInt32Rules_add_in(validate_SInt32Rules *msg, int32_t val, upb_arena *arena) {
|
917
|
-
return _upb_array_append_accessor(
|
918
|
-
|
916
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(24, 24), UPB_SIZE(4, 4), UPB_TYPE_INT32, &val,
|
917
|
+
arena);
|
919
918
|
}
|
920
919
|
UPB_INLINE int32_t* validate_SInt32Rules_mutable_not_in(validate_SInt32Rules *msg, size_t *len) {
|
921
920
|
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
|
922
921
|
}
|
923
922
|
UPB_INLINE int32_t* validate_SInt32Rules_resize_not_in(validate_SInt32Rules *msg, size_t len, upb_arena *arena) {
|
924
|
-
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len,
|
923
|
+
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len, UPB_TYPE_INT32, arena);
|
925
924
|
}
|
926
925
|
UPB_INLINE bool validate_SInt32Rules_add_not_in(validate_SInt32Rules *msg, int32_t val, upb_arena *arena) {
|
927
|
-
return _upb_array_append_accessor(
|
928
|
-
|
926
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(28, 32), UPB_SIZE(4, 4), UPB_TYPE_INT32, &val,
|
927
|
+
arena);
|
929
928
|
}
|
930
929
|
|
931
930
|
/* validate.SInt64Rules */
|
932
931
|
|
933
932
|
UPB_INLINE validate_SInt64Rules *validate_SInt64Rules_new(upb_arena *arena) {
|
934
|
-
return (validate_SInt64Rules *)
|
933
|
+
return (validate_SInt64Rules *)_upb_msg_new(&validate_SInt64Rules_msginit, arena);
|
935
934
|
}
|
936
935
|
UPB_INLINE validate_SInt64Rules *validate_SInt64Rules_parse(const char *buf, size_t size,
|
937
936
|
upb_arena *arena) {
|
@@ -942,64 +941,64 @@ UPB_INLINE char *validate_SInt64Rules_serialize(const validate_SInt64Rules *msg,
|
|
942
941
|
return upb_encode(msg, &validate_SInt64Rules_msginit, arena, len);
|
943
942
|
}
|
944
943
|
|
945
|
-
UPB_INLINE bool validate_SInt64Rules_has_const(const validate_SInt64Rules *msg) { return
|
946
|
-
UPB_INLINE int64_t validate_SInt64Rules_const(const validate_SInt64Rules *msg) { return
|
947
|
-
UPB_INLINE bool validate_SInt64Rules_has_lt(const validate_SInt64Rules *msg) { return
|
948
|
-
UPB_INLINE int64_t validate_SInt64Rules_lt(const validate_SInt64Rules *msg) { return
|
949
|
-
UPB_INLINE bool validate_SInt64Rules_has_lte(const validate_SInt64Rules *msg) { return
|
950
|
-
UPB_INLINE int64_t validate_SInt64Rules_lte(const validate_SInt64Rules *msg) { return
|
951
|
-
UPB_INLINE bool validate_SInt64Rules_has_gt(const validate_SInt64Rules *msg) { return
|
952
|
-
UPB_INLINE int64_t validate_SInt64Rules_gt(const validate_SInt64Rules *msg) { return
|
953
|
-
UPB_INLINE bool validate_SInt64Rules_has_gte(const validate_SInt64Rules *msg) { return
|
954
|
-
UPB_INLINE int64_t validate_SInt64Rules_gte(const validate_SInt64Rules *msg) { return
|
944
|
+
UPB_INLINE bool validate_SInt64Rules_has_const(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 1); }
|
945
|
+
UPB_INLINE int64_t validate_SInt64Rules_const(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
|
946
|
+
UPB_INLINE bool validate_SInt64Rules_has_lt(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 2); }
|
947
|
+
UPB_INLINE int64_t validate_SInt64Rules_lt(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
|
948
|
+
UPB_INLINE bool validate_SInt64Rules_has_lte(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 3); }
|
949
|
+
UPB_INLINE int64_t validate_SInt64Rules_lte(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
|
950
|
+
UPB_INLINE bool validate_SInt64Rules_has_gt(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 4); }
|
951
|
+
UPB_INLINE int64_t validate_SInt64Rules_gt(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
|
952
|
+
UPB_INLINE bool validate_SInt64Rules_has_gte(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 5); }
|
953
|
+
UPB_INLINE int64_t validate_SInt64Rules_gte(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
|
955
954
|
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(48, 48), len); }
|
956
955
|
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(52, 56), len); }
|
957
956
|
|
958
957
|
UPB_INLINE void validate_SInt64Rules_set_const(validate_SInt64Rules *msg, int64_t value) {
|
959
958
|
_upb_sethas(msg, 1);
|
960
|
-
|
959
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
|
961
960
|
}
|
962
961
|
UPB_INLINE void validate_SInt64Rules_set_lt(validate_SInt64Rules *msg, int64_t value) {
|
963
962
|
_upb_sethas(msg, 2);
|
964
|
-
|
963
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = value;
|
965
964
|
}
|
966
965
|
UPB_INLINE void validate_SInt64Rules_set_lte(validate_SInt64Rules *msg, int64_t value) {
|
967
966
|
_upb_sethas(msg, 3);
|
968
|
-
|
967
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = value;
|
969
968
|
}
|
970
969
|
UPB_INLINE void validate_SInt64Rules_set_gt(validate_SInt64Rules *msg, int64_t value) {
|
971
970
|
_upb_sethas(msg, 4);
|
972
|
-
|
971
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t) = value;
|
973
972
|
}
|
974
973
|
UPB_INLINE void validate_SInt64Rules_set_gte(validate_SInt64Rules *msg, int64_t value) {
|
975
974
|
_upb_sethas(msg, 5);
|
976
|
-
|
975
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t) = value;
|
977
976
|
}
|
978
977
|
UPB_INLINE int64_t* validate_SInt64Rules_mutable_in(validate_SInt64Rules *msg, size_t *len) {
|
979
978
|
return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
|
980
979
|
}
|
981
980
|
UPB_INLINE int64_t* validate_SInt64Rules_resize_in(validate_SInt64Rules *msg, size_t len, upb_arena *arena) {
|
982
|
-
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len,
|
981
|
+
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len, UPB_TYPE_INT64, arena);
|
983
982
|
}
|
984
983
|
UPB_INLINE bool validate_SInt64Rules_add_in(validate_SInt64Rules *msg, int64_t val, upb_arena *arena) {
|
985
|
-
return _upb_array_append_accessor(
|
986
|
-
|
984
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(48, 48), UPB_SIZE(8, 8), UPB_TYPE_INT64, &val,
|
985
|
+
arena);
|
987
986
|
}
|
988
987
|
UPB_INLINE int64_t* validate_SInt64Rules_mutable_not_in(validate_SInt64Rules *msg, size_t *len) {
|
989
988
|
return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
|
990
989
|
}
|
991
990
|
UPB_INLINE int64_t* validate_SInt64Rules_resize_not_in(validate_SInt64Rules *msg, size_t len, upb_arena *arena) {
|
992
|
-
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len,
|
991
|
+
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len, UPB_TYPE_INT64, arena);
|
993
992
|
}
|
994
993
|
UPB_INLINE bool validate_SInt64Rules_add_not_in(validate_SInt64Rules *msg, int64_t val, upb_arena *arena) {
|
995
|
-
return _upb_array_append_accessor(
|
996
|
-
|
994
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(52, 56), UPB_SIZE(8, 8), UPB_TYPE_INT64, &val,
|
995
|
+
arena);
|
997
996
|
}
|
998
997
|
|
999
998
|
/* validate.Fixed32Rules */
|
1000
999
|
|
1001
1000
|
UPB_INLINE validate_Fixed32Rules *validate_Fixed32Rules_new(upb_arena *arena) {
|
1002
|
-
return (validate_Fixed32Rules *)
|
1001
|
+
return (validate_Fixed32Rules *)_upb_msg_new(&validate_Fixed32Rules_msginit, arena);
|
1003
1002
|
}
|
1004
1003
|
UPB_INLINE validate_Fixed32Rules *validate_Fixed32Rules_parse(const char *buf, size_t size,
|
1005
1004
|
upb_arena *arena) {
|
@@ -1010,64 +1009,64 @@ UPB_INLINE char *validate_Fixed32Rules_serialize(const validate_Fixed32Rules *ms
|
|
1010
1009
|
return upb_encode(msg, &validate_Fixed32Rules_msginit, arena, len);
|
1011
1010
|
}
|
1012
1011
|
|
1013
|
-
UPB_INLINE bool validate_Fixed32Rules_has_const(const validate_Fixed32Rules *msg) { return
|
1014
|
-
UPB_INLINE uint32_t validate_Fixed32Rules_const(const validate_Fixed32Rules *msg) { return
|
1015
|
-
UPB_INLINE bool validate_Fixed32Rules_has_lt(const validate_Fixed32Rules *msg) { return
|
1016
|
-
UPB_INLINE uint32_t validate_Fixed32Rules_lt(const validate_Fixed32Rules *msg) { return
|
1017
|
-
UPB_INLINE bool validate_Fixed32Rules_has_lte(const validate_Fixed32Rules *msg) { return
|
1018
|
-
UPB_INLINE uint32_t validate_Fixed32Rules_lte(const validate_Fixed32Rules *msg) { return
|
1019
|
-
UPB_INLINE bool validate_Fixed32Rules_has_gt(const validate_Fixed32Rules *msg) { return
|
1020
|
-
UPB_INLINE uint32_t validate_Fixed32Rules_gt(const validate_Fixed32Rules *msg) { return
|
1021
|
-
UPB_INLINE bool validate_Fixed32Rules_has_gte(const validate_Fixed32Rules *msg) { return
|
1022
|
-
UPB_INLINE uint32_t validate_Fixed32Rules_gte(const validate_Fixed32Rules *msg) { return
|
1012
|
+
UPB_INLINE bool validate_Fixed32Rules_has_const(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 1); }
|
1013
|
+
UPB_INLINE uint32_t validate_Fixed32Rules_const(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); }
|
1014
|
+
UPB_INLINE bool validate_Fixed32Rules_has_lt(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 2); }
|
1015
|
+
UPB_INLINE uint32_t validate_Fixed32Rules_lt(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t); }
|
1016
|
+
UPB_INLINE bool validate_Fixed32Rules_has_lte(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 3); }
|
1017
|
+
UPB_INLINE uint32_t validate_Fixed32Rules_lte(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t); }
|
1018
|
+
UPB_INLINE bool validate_Fixed32Rules_has_gt(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 4); }
|
1019
|
+
UPB_INLINE uint32_t validate_Fixed32Rules_gt(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t); }
|
1020
|
+
UPB_INLINE bool validate_Fixed32Rules_has_gte(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 5); }
|
1021
|
+
UPB_INLINE uint32_t validate_Fixed32Rules_gte(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t); }
|
1023
1022
|
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(24, 24), len); }
|
1024
1023
|
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(28, 32), len); }
|
1025
1024
|
|
1026
1025
|
UPB_INLINE void validate_Fixed32Rules_set_const(validate_Fixed32Rules *msg, uint32_t value) {
|
1027
1026
|
_upb_sethas(msg, 1);
|
1028
|
-
|
1027
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value;
|
1029
1028
|
}
|
1030
1029
|
UPB_INLINE void validate_Fixed32Rules_set_lt(validate_Fixed32Rules *msg, uint32_t value) {
|
1031
1030
|
_upb_sethas(msg, 2);
|
1032
|
-
|
1031
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t) = value;
|
1033
1032
|
}
|
1034
1033
|
UPB_INLINE void validate_Fixed32Rules_set_lte(validate_Fixed32Rules *msg, uint32_t value) {
|
1035
1034
|
_upb_sethas(msg, 3);
|
1036
|
-
|
1035
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t) = value;
|
1037
1036
|
}
|
1038
1037
|
UPB_INLINE void validate_Fixed32Rules_set_gt(validate_Fixed32Rules *msg, uint32_t value) {
|
1039
1038
|
_upb_sethas(msg, 4);
|
1040
|
-
|
1039
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t) = value;
|
1041
1040
|
}
|
1042
1041
|
UPB_INLINE void validate_Fixed32Rules_set_gte(validate_Fixed32Rules *msg, uint32_t value) {
|
1043
1042
|
_upb_sethas(msg, 5);
|
1044
|
-
|
1043
|
+
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t) = value;
|
1045
1044
|
}
|
1046
1045
|
UPB_INLINE uint32_t* validate_Fixed32Rules_mutable_in(validate_Fixed32Rules *msg, size_t *len) {
|
1047
1046
|
return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
|
1048
1047
|
}
|
1049
1048
|
UPB_INLINE uint32_t* validate_Fixed32Rules_resize_in(validate_Fixed32Rules *msg, size_t len, upb_arena *arena) {
|
1050
|
-
return (uint32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len,
|
1049
|
+
return (uint32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len, UPB_TYPE_UINT32, arena);
|
1051
1050
|
}
|
1052
1051
|
UPB_INLINE bool validate_Fixed32Rules_add_in(validate_Fixed32Rules *msg, uint32_t val, upb_arena *arena) {
|
1053
|
-
return _upb_array_append_accessor(
|
1054
|
-
|
1052
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(24, 24), UPB_SIZE(4, 4), UPB_TYPE_UINT32, &val,
|
1053
|
+
arena);
|
1055
1054
|
}
|
1056
1055
|
UPB_INLINE uint32_t* validate_Fixed32Rules_mutable_not_in(validate_Fixed32Rules *msg, size_t *len) {
|
1057
1056
|
return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
|
1058
1057
|
}
|
1059
1058
|
UPB_INLINE uint32_t* validate_Fixed32Rules_resize_not_in(validate_Fixed32Rules *msg, size_t len, upb_arena *arena) {
|
1060
|
-
return (uint32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len,
|
1059
|
+
return (uint32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len, UPB_TYPE_UINT32, arena);
|
1061
1060
|
}
|
1062
1061
|
UPB_INLINE bool validate_Fixed32Rules_add_not_in(validate_Fixed32Rules *msg, uint32_t val, upb_arena *arena) {
|
1063
|
-
return _upb_array_append_accessor(
|
1064
|
-
|
1062
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(28, 32), UPB_SIZE(4, 4), UPB_TYPE_UINT32, &val,
|
1063
|
+
arena);
|
1065
1064
|
}
|
1066
1065
|
|
1067
1066
|
/* validate.Fixed64Rules */
|
1068
1067
|
|
1069
1068
|
UPB_INLINE validate_Fixed64Rules *validate_Fixed64Rules_new(upb_arena *arena) {
|
1070
|
-
return (validate_Fixed64Rules *)
|
1069
|
+
return (validate_Fixed64Rules *)_upb_msg_new(&validate_Fixed64Rules_msginit, arena);
|
1071
1070
|
}
|
1072
1071
|
UPB_INLINE validate_Fixed64Rules *validate_Fixed64Rules_parse(const char *buf, size_t size,
|
1073
1072
|
upb_arena *arena) {
|
@@ -1078,64 +1077,64 @@ UPB_INLINE char *validate_Fixed64Rules_serialize(const validate_Fixed64Rules *ms
|
|
1078
1077
|
return upb_encode(msg, &validate_Fixed64Rules_msginit, arena, len);
|
1079
1078
|
}
|
1080
1079
|
|
1081
|
-
UPB_INLINE bool validate_Fixed64Rules_has_const(const validate_Fixed64Rules *msg) { return
|
1082
|
-
UPB_INLINE uint64_t validate_Fixed64Rules_const(const validate_Fixed64Rules *msg) { return
|
1083
|
-
UPB_INLINE bool validate_Fixed64Rules_has_lt(const validate_Fixed64Rules *msg) { return
|
1084
|
-
UPB_INLINE uint64_t validate_Fixed64Rules_lt(const validate_Fixed64Rules *msg) { return
|
1085
|
-
UPB_INLINE bool validate_Fixed64Rules_has_lte(const validate_Fixed64Rules *msg) { return
|
1086
|
-
UPB_INLINE uint64_t validate_Fixed64Rules_lte(const validate_Fixed64Rules *msg) { return
|
1087
|
-
UPB_INLINE bool validate_Fixed64Rules_has_gt(const validate_Fixed64Rules *msg) { return
|
1088
|
-
UPB_INLINE uint64_t validate_Fixed64Rules_gt(const validate_Fixed64Rules *msg) { return
|
1089
|
-
UPB_INLINE bool validate_Fixed64Rules_has_gte(const validate_Fixed64Rules *msg) { return
|
1090
|
-
UPB_INLINE uint64_t validate_Fixed64Rules_gte(const validate_Fixed64Rules *msg) { return
|
1080
|
+
UPB_INLINE bool validate_Fixed64Rules_has_const(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 1); }
|
1081
|
+
UPB_INLINE uint64_t validate_Fixed64Rules_const(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
|
1082
|
+
UPB_INLINE bool validate_Fixed64Rules_has_lt(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 2); }
|
1083
|
+
UPB_INLINE uint64_t validate_Fixed64Rules_lt(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
|
1084
|
+
UPB_INLINE bool validate_Fixed64Rules_has_lte(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 3); }
|
1085
|
+
UPB_INLINE uint64_t validate_Fixed64Rules_lte(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
|
1086
|
+
UPB_INLINE bool validate_Fixed64Rules_has_gt(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 4); }
|
1087
|
+
UPB_INLINE uint64_t validate_Fixed64Rules_gt(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
|
1088
|
+
UPB_INLINE bool validate_Fixed64Rules_has_gte(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 5); }
|
1089
|
+
UPB_INLINE uint64_t validate_Fixed64Rules_gte(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
|
1091
1090
|
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(48, 48), len); }
|
1092
1091
|
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(52, 56), len); }
|
1093
1092
|
|
1094
1093
|
UPB_INLINE void validate_Fixed64Rules_set_const(validate_Fixed64Rules *msg, uint64_t value) {
|
1095
1094
|
_upb_sethas(msg, 1);
|
1096
|
-
|
1095
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
|
1097
1096
|
}
|
1098
1097
|
UPB_INLINE void validate_Fixed64Rules_set_lt(validate_Fixed64Rules *msg, uint64_t value) {
|
1099
1098
|
_upb_sethas(msg, 2);
|
1100
|
-
|
1099
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
|
1101
1100
|
}
|
1102
1101
|
UPB_INLINE void validate_Fixed64Rules_set_lte(validate_Fixed64Rules *msg, uint64_t value) {
|
1103
1102
|
_upb_sethas(msg, 3);
|
1104
|
-
|
1103
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
|
1105
1104
|
}
|
1106
1105
|
UPB_INLINE void validate_Fixed64Rules_set_gt(validate_Fixed64Rules *msg, uint64_t value) {
|
1107
1106
|
_upb_sethas(msg, 4);
|
1108
|
-
|
1107
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value;
|
1109
1108
|
}
|
1110
1109
|
UPB_INLINE void validate_Fixed64Rules_set_gte(validate_Fixed64Rules *msg, uint64_t value) {
|
1111
1110
|
_upb_sethas(msg, 5);
|
1112
|
-
|
1111
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t) = value;
|
1113
1112
|
}
|
1114
1113
|
UPB_INLINE uint64_t* validate_Fixed64Rules_mutable_in(validate_Fixed64Rules *msg, size_t *len) {
|
1115
1114
|
return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
|
1116
1115
|
}
|
1117
1116
|
UPB_INLINE uint64_t* validate_Fixed64Rules_resize_in(validate_Fixed64Rules *msg, size_t len, upb_arena *arena) {
|
1118
|
-
return (uint64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len,
|
1117
|
+
return (uint64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len, UPB_TYPE_UINT64, arena);
|
1119
1118
|
}
|
1120
1119
|
UPB_INLINE bool validate_Fixed64Rules_add_in(validate_Fixed64Rules *msg, uint64_t val, upb_arena *arena) {
|
1121
|
-
return _upb_array_append_accessor(
|
1122
|
-
|
1120
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(48, 48), UPB_SIZE(8, 8), UPB_TYPE_UINT64, &val,
|
1121
|
+
arena);
|
1123
1122
|
}
|
1124
1123
|
UPB_INLINE uint64_t* validate_Fixed64Rules_mutable_not_in(validate_Fixed64Rules *msg, size_t *len) {
|
1125
1124
|
return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
|
1126
1125
|
}
|
1127
1126
|
UPB_INLINE uint64_t* validate_Fixed64Rules_resize_not_in(validate_Fixed64Rules *msg, size_t len, upb_arena *arena) {
|
1128
|
-
return (uint64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len,
|
1127
|
+
return (uint64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len, UPB_TYPE_UINT64, arena);
|
1129
1128
|
}
|
1130
1129
|
UPB_INLINE bool validate_Fixed64Rules_add_not_in(validate_Fixed64Rules *msg, uint64_t val, upb_arena *arena) {
|
1131
|
-
return _upb_array_append_accessor(
|
1132
|
-
|
1130
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(52, 56), UPB_SIZE(8, 8), UPB_TYPE_UINT64, &val,
|
1131
|
+
arena);
|
1133
1132
|
}
|
1134
1133
|
|
1135
1134
|
/* validate.SFixed32Rules */
|
1136
1135
|
|
1137
1136
|
UPB_INLINE validate_SFixed32Rules *validate_SFixed32Rules_new(upb_arena *arena) {
|
1138
|
-
return (validate_SFixed32Rules *)
|
1137
|
+
return (validate_SFixed32Rules *)_upb_msg_new(&validate_SFixed32Rules_msginit, arena);
|
1139
1138
|
}
|
1140
1139
|
UPB_INLINE validate_SFixed32Rules *validate_SFixed32Rules_parse(const char *buf, size_t size,
|
1141
1140
|
upb_arena *arena) {
|
@@ -1146,64 +1145,64 @@ UPB_INLINE char *validate_SFixed32Rules_serialize(const validate_SFixed32Rules *
|
|
1146
1145
|
return upb_encode(msg, &validate_SFixed32Rules_msginit, arena, len);
|
1147
1146
|
}
|
1148
1147
|
|
1149
|
-
UPB_INLINE bool validate_SFixed32Rules_has_const(const validate_SFixed32Rules *msg) { return
|
1150
|
-
UPB_INLINE int32_t validate_SFixed32Rules_const(const validate_SFixed32Rules *msg) { return
|
1151
|
-
UPB_INLINE bool validate_SFixed32Rules_has_lt(const validate_SFixed32Rules *msg) { return
|
1152
|
-
UPB_INLINE int32_t validate_SFixed32Rules_lt(const validate_SFixed32Rules *msg) { return
|
1153
|
-
UPB_INLINE bool validate_SFixed32Rules_has_lte(const validate_SFixed32Rules *msg) { return
|
1154
|
-
UPB_INLINE int32_t validate_SFixed32Rules_lte(const validate_SFixed32Rules *msg) { return
|
1155
|
-
UPB_INLINE bool validate_SFixed32Rules_has_gt(const validate_SFixed32Rules *msg) { return
|
1156
|
-
UPB_INLINE int32_t validate_SFixed32Rules_gt(const validate_SFixed32Rules *msg) { return
|
1157
|
-
UPB_INLINE bool validate_SFixed32Rules_has_gte(const validate_SFixed32Rules *msg) { return
|
1158
|
-
UPB_INLINE int32_t validate_SFixed32Rules_gte(const validate_SFixed32Rules *msg) { return
|
1148
|
+
UPB_INLINE bool validate_SFixed32Rules_has_const(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 1); }
|
1149
|
+
UPB_INLINE int32_t validate_SFixed32Rules_const(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
|
1150
|
+
UPB_INLINE bool validate_SFixed32Rules_has_lt(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 2); }
|
1151
|
+
UPB_INLINE int32_t validate_SFixed32Rules_lt(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
|
1152
|
+
UPB_INLINE bool validate_SFixed32Rules_has_lte(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 3); }
|
1153
|
+
UPB_INLINE int32_t validate_SFixed32Rules_lte(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
|
1154
|
+
UPB_INLINE bool validate_SFixed32Rules_has_gt(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 4); }
|
1155
|
+
UPB_INLINE int32_t validate_SFixed32Rules_gt(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
|
1156
|
+
UPB_INLINE bool validate_SFixed32Rules_has_gte(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 5); }
|
1157
|
+
UPB_INLINE int32_t validate_SFixed32Rules_gte(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
|
1159
1158
|
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(24, 24), len); }
|
1160
1159
|
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(28, 32), len); }
|
1161
1160
|
|
1162
1161
|
UPB_INLINE void validate_SFixed32Rules_set_const(validate_SFixed32Rules *msg, int32_t value) {
|
1163
1162
|
_upb_sethas(msg, 1);
|
1164
|
-
|
1163
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
|
1165
1164
|
}
|
1166
1165
|
UPB_INLINE void validate_SFixed32Rules_set_lt(validate_SFixed32Rules *msg, int32_t value) {
|
1167
1166
|
_upb_sethas(msg, 2);
|
1168
|
-
|
1167
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value;
|
1169
1168
|
}
|
1170
1169
|
UPB_INLINE void validate_SFixed32Rules_set_lte(validate_SFixed32Rules *msg, int32_t value) {
|
1171
1170
|
_upb_sethas(msg, 3);
|
1172
|
-
|
1171
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t) = value;
|
1173
1172
|
}
|
1174
1173
|
UPB_INLINE void validate_SFixed32Rules_set_gt(validate_SFixed32Rules *msg, int32_t value) {
|
1175
1174
|
_upb_sethas(msg, 4);
|
1176
|
-
|
1175
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = value;
|
1177
1176
|
}
|
1178
1177
|
UPB_INLINE void validate_SFixed32Rules_set_gte(validate_SFixed32Rules *msg, int32_t value) {
|
1179
1178
|
_upb_sethas(msg, 5);
|
1180
|
-
|
1179
|
+
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t) = value;
|
1181
1180
|
}
|
1182
1181
|
UPB_INLINE int32_t* validate_SFixed32Rules_mutable_in(validate_SFixed32Rules *msg, size_t *len) {
|
1183
1182
|
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
|
1184
1183
|
}
|
1185
1184
|
UPB_INLINE int32_t* validate_SFixed32Rules_resize_in(validate_SFixed32Rules *msg, size_t len, upb_arena *arena) {
|
1186
|
-
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len,
|
1185
|
+
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len, UPB_TYPE_INT32, arena);
|
1187
1186
|
}
|
1188
1187
|
UPB_INLINE bool validate_SFixed32Rules_add_in(validate_SFixed32Rules *msg, int32_t val, upb_arena *arena) {
|
1189
|
-
return _upb_array_append_accessor(
|
1190
|
-
|
1188
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(24, 24), UPB_SIZE(4, 4), UPB_TYPE_INT32, &val,
|
1189
|
+
arena);
|
1191
1190
|
}
|
1192
1191
|
UPB_INLINE int32_t* validate_SFixed32Rules_mutable_not_in(validate_SFixed32Rules *msg, size_t *len) {
|
1193
1192
|
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
|
1194
1193
|
}
|
1195
1194
|
UPB_INLINE int32_t* validate_SFixed32Rules_resize_not_in(validate_SFixed32Rules *msg, size_t len, upb_arena *arena) {
|
1196
|
-
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len,
|
1195
|
+
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len, UPB_TYPE_INT32, arena);
|
1197
1196
|
}
|
1198
1197
|
UPB_INLINE bool validate_SFixed32Rules_add_not_in(validate_SFixed32Rules *msg, int32_t val, upb_arena *arena) {
|
1199
|
-
return _upb_array_append_accessor(
|
1200
|
-
|
1198
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(28, 32), UPB_SIZE(4, 4), UPB_TYPE_INT32, &val,
|
1199
|
+
arena);
|
1201
1200
|
}
|
1202
1201
|
|
1203
1202
|
/* validate.SFixed64Rules */
|
1204
1203
|
|
1205
1204
|
UPB_INLINE validate_SFixed64Rules *validate_SFixed64Rules_new(upb_arena *arena) {
|
1206
|
-
return (validate_SFixed64Rules *)
|
1205
|
+
return (validate_SFixed64Rules *)_upb_msg_new(&validate_SFixed64Rules_msginit, arena);
|
1207
1206
|
}
|
1208
1207
|
UPB_INLINE validate_SFixed64Rules *validate_SFixed64Rules_parse(const char *buf, size_t size,
|
1209
1208
|
upb_arena *arena) {
|
@@ -1214,64 +1213,64 @@ UPB_INLINE char *validate_SFixed64Rules_serialize(const validate_SFixed64Rules *
|
|
1214
1213
|
return upb_encode(msg, &validate_SFixed64Rules_msginit, arena, len);
|
1215
1214
|
}
|
1216
1215
|
|
1217
|
-
UPB_INLINE bool validate_SFixed64Rules_has_const(const validate_SFixed64Rules *msg) { return
|
1218
|
-
UPB_INLINE int64_t validate_SFixed64Rules_const(const validate_SFixed64Rules *msg) { return
|
1219
|
-
UPB_INLINE bool validate_SFixed64Rules_has_lt(const validate_SFixed64Rules *msg) { return
|
1220
|
-
UPB_INLINE int64_t validate_SFixed64Rules_lt(const validate_SFixed64Rules *msg) { return
|
1221
|
-
UPB_INLINE bool validate_SFixed64Rules_has_lte(const validate_SFixed64Rules *msg) { return
|
1222
|
-
UPB_INLINE int64_t validate_SFixed64Rules_lte(const validate_SFixed64Rules *msg) { return
|
1223
|
-
UPB_INLINE bool validate_SFixed64Rules_has_gt(const validate_SFixed64Rules *msg) { return
|
1224
|
-
UPB_INLINE int64_t validate_SFixed64Rules_gt(const validate_SFixed64Rules *msg) { return
|
1225
|
-
UPB_INLINE bool validate_SFixed64Rules_has_gte(const validate_SFixed64Rules *msg) { return
|
1226
|
-
UPB_INLINE int64_t validate_SFixed64Rules_gte(const validate_SFixed64Rules *msg) { return
|
1216
|
+
UPB_INLINE bool validate_SFixed64Rules_has_const(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 1); }
|
1217
|
+
UPB_INLINE int64_t validate_SFixed64Rules_const(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
|
1218
|
+
UPB_INLINE bool validate_SFixed64Rules_has_lt(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 2); }
|
1219
|
+
UPB_INLINE int64_t validate_SFixed64Rules_lt(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
|
1220
|
+
UPB_INLINE bool validate_SFixed64Rules_has_lte(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 3); }
|
1221
|
+
UPB_INLINE int64_t validate_SFixed64Rules_lte(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
|
1222
|
+
UPB_INLINE bool validate_SFixed64Rules_has_gt(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 4); }
|
1223
|
+
UPB_INLINE int64_t validate_SFixed64Rules_gt(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
|
1224
|
+
UPB_INLINE bool validate_SFixed64Rules_has_gte(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 5); }
|
1225
|
+
UPB_INLINE int64_t validate_SFixed64Rules_gte(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
|
1227
1226
|
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(48, 48), len); }
|
1228
1227
|
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(52, 56), len); }
|
1229
1228
|
|
1230
1229
|
UPB_INLINE void validate_SFixed64Rules_set_const(validate_SFixed64Rules *msg, int64_t value) {
|
1231
1230
|
_upb_sethas(msg, 1);
|
1232
|
-
|
1231
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
|
1233
1232
|
}
|
1234
1233
|
UPB_INLINE void validate_SFixed64Rules_set_lt(validate_SFixed64Rules *msg, int64_t value) {
|
1235
1234
|
_upb_sethas(msg, 2);
|
1236
|
-
|
1235
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = value;
|
1237
1236
|
}
|
1238
1237
|
UPB_INLINE void validate_SFixed64Rules_set_lte(validate_SFixed64Rules *msg, int64_t value) {
|
1239
1238
|
_upb_sethas(msg, 3);
|
1240
|
-
|
1239
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = value;
|
1241
1240
|
}
|
1242
1241
|
UPB_INLINE void validate_SFixed64Rules_set_gt(validate_SFixed64Rules *msg, int64_t value) {
|
1243
1242
|
_upb_sethas(msg, 4);
|
1244
|
-
|
1243
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t) = value;
|
1245
1244
|
}
|
1246
1245
|
UPB_INLINE void validate_SFixed64Rules_set_gte(validate_SFixed64Rules *msg, int64_t value) {
|
1247
1246
|
_upb_sethas(msg, 5);
|
1248
|
-
|
1247
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t) = value;
|
1249
1248
|
}
|
1250
1249
|
UPB_INLINE int64_t* validate_SFixed64Rules_mutable_in(validate_SFixed64Rules *msg, size_t *len) {
|
1251
1250
|
return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
|
1252
1251
|
}
|
1253
1252
|
UPB_INLINE int64_t* validate_SFixed64Rules_resize_in(validate_SFixed64Rules *msg, size_t len, upb_arena *arena) {
|
1254
|
-
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len,
|
1253
|
+
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(48, 48), len, UPB_TYPE_INT64, arena);
|
1255
1254
|
}
|
1256
1255
|
UPB_INLINE bool validate_SFixed64Rules_add_in(validate_SFixed64Rules *msg, int64_t val, upb_arena *arena) {
|
1257
|
-
return _upb_array_append_accessor(
|
1258
|
-
|
1256
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(48, 48), UPB_SIZE(8, 8), UPB_TYPE_INT64, &val,
|
1257
|
+
arena);
|
1259
1258
|
}
|
1260
1259
|
UPB_INLINE int64_t* validate_SFixed64Rules_mutable_not_in(validate_SFixed64Rules *msg, size_t *len) {
|
1261
1260
|
return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
|
1262
1261
|
}
|
1263
1262
|
UPB_INLINE int64_t* validate_SFixed64Rules_resize_not_in(validate_SFixed64Rules *msg, size_t len, upb_arena *arena) {
|
1264
|
-
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len,
|
1263
|
+
return (int64_t*)_upb_array_resize_accessor(msg, UPB_SIZE(52, 56), len, UPB_TYPE_INT64, arena);
|
1265
1264
|
}
|
1266
1265
|
UPB_INLINE bool validate_SFixed64Rules_add_not_in(validate_SFixed64Rules *msg, int64_t val, upb_arena *arena) {
|
1267
|
-
return _upb_array_append_accessor(
|
1268
|
-
|
1266
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(52, 56), UPB_SIZE(8, 8), UPB_TYPE_INT64, &val,
|
1267
|
+
arena);
|
1269
1268
|
}
|
1270
1269
|
|
1271
1270
|
/* validate.BoolRules */
|
1272
1271
|
|
1273
1272
|
UPB_INLINE validate_BoolRules *validate_BoolRules_new(upb_arena *arena) {
|
1274
|
-
return (validate_BoolRules *)
|
1273
|
+
return (validate_BoolRules *)_upb_msg_new(&validate_BoolRules_msginit, arena);
|
1275
1274
|
}
|
1276
1275
|
UPB_INLINE validate_BoolRules *validate_BoolRules_parse(const char *buf, size_t size,
|
1277
1276
|
upb_arena *arena) {
|
@@ -1282,18 +1281,18 @@ UPB_INLINE char *validate_BoolRules_serialize(const validate_BoolRules *msg, upb
|
|
1282
1281
|
return upb_encode(msg, &validate_BoolRules_msginit, arena, len);
|
1283
1282
|
}
|
1284
1283
|
|
1285
|
-
UPB_INLINE bool validate_BoolRules_has_const(const validate_BoolRules *msg) { return
|
1286
|
-
UPB_INLINE bool validate_BoolRules_const(const validate_BoolRules *msg) { return
|
1284
|
+
UPB_INLINE bool validate_BoolRules_has_const(const validate_BoolRules *msg) { return _upb_hasbit(msg, 1); }
|
1285
|
+
UPB_INLINE bool validate_BoolRules_const(const validate_BoolRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
|
1287
1286
|
|
1288
1287
|
UPB_INLINE void validate_BoolRules_set_const(validate_BoolRules *msg, bool value) {
|
1289
1288
|
_upb_sethas(msg, 1);
|
1290
|
-
|
1289
|
+
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
|
1291
1290
|
}
|
1292
1291
|
|
1293
1292
|
/* validate.StringRules */
|
1294
1293
|
|
1295
1294
|
UPB_INLINE validate_StringRules *validate_StringRules_new(upb_arena *arena) {
|
1296
|
-
return (validate_StringRules *)
|
1295
|
+
return (validate_StringRules *)_upb_msg_new(&validate_StringRules_msginit, arena);
|
1297
1296
|
}
|
1298
1297
|
UPB_INLINE validate_StringRules *validate_StringRules_parse(const char *buf, size_t size,
|
1299
1298
|
upb_arena *arena) {
|
@@ -1317,112 +1316,112 @@ typedef enum {
|
|
1317
1316
|
validate_StringRules_well_known_well_known_regex = 24,
|
1318
1317
|
validate_StringRules_well_known_NOT_SET = 0
|
1319
1318
|
} validate_StringRules_well_known_oneofcases;
|
1320
|
-
UPB_INLINE validate_StringRules_well_known_oneofcases validate_StringRules_well_known_case(const validate_StringRules* msg) { return (validate_StringRules_well_known_oneofcases)
|
1321
|
-
|
1322
|
-
UPB_INLINE bool validate_StringRules_has_const(const validate_StringRules *msg) { return
|
1323
|
-
UPB_INLINE upb_strview validate_StringRules_const(const validate_StringRules *msg) { return
|
1324
|
-
UPB_INLINE bool validate_StringRules_has_min_len(const validate_StringRules *msg) { return
|
1325
|
-
UPB_INLINE uint64_t validate_StringRules_min_len(const validate_StringRules *msg) { return
|
1326
|
-
UPB_INLINE bool validate_StringRules_has_max_len(const validate_StringRules *msg) { return
|
1327
|
-
UPB_INLINE uint64_t validate_StringRules_max_len(const validate_StringRules *msg) { return
|
1328
|
-
UPB_INLINE bool validate_StringRules_has_min_bytes(const validate_StringRules *msg) { return
|
1329
|
-
UPB_INLINE uint64_t validate_StringRules_min_bytes(const validate_StringRules *msg) { return
|
1330
|
-
UPB_INLINE bool validate_StringRules_has_max_bytes(const validate_StringRules *msg) { return
|
1331
|
-
UPB_INLINE uint64_t validate_StringRules_max_bytes(const validate_StringRules *msg) { return
|
1332
|
-
UPB_INLINE bool validate_StringRules_has_pattern(const validate_StringRules *msg) { return
|
1333
|
-
UPB_INLINE upb_strview validate_StringRules_pattern(const validate_StringRules *msg) { return
|
1334
|
-
UPB_INLINE bool validate_StringRules_has_prefix(const validate_StringRules *msg) { return
|
1335
|
-
UPB_INLINE upb_strview validate_StringRules_prefix(const validate_StringRules *msg) { return
|
1336
|
-
UPB_INLINE bool validate_StringRules_has_suffix(const validate_StringRules *msg) { return
|
1337
|
-
UPB_INLINE upb_strview validate_StringRules_suffix(const validate_StringRules *msg) { return
|
1338
|
-
UPB_INLINE bool validate_StringRules_has_contains(const validate_StringRules *msg) { return
|
1339
|
-
UPB_INLINE upb_strview validate_StringRules_contains(const validate_StringRules *msg) { return
|
1319
|
+
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(128, 184), int32_t); }
|
1320
|
+
|
1321
|
+
UPB_INLINE bool validate_StringRules_has_const(const validate_StringRules *msg) { return _upb_hasbit(msg, 8); }
|
1322
|
+
UPB_INLINE upb_strview validate_StringRules_const(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(60, 64), upb_strview); }
|
1323
|
+
UPB_INLINE bool validate_StringRules_has_min_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 1); }
|
1324
|
+
UPB_INLINE uint64_t validate_StringRules_min_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
|
1325
|
+
UPB_INLINE bool validate_StringRules_has_max_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 2); }
|
1326
|
+
UPB_INLINE uint64_t validate_StringRules_max_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
|
1327
|
+
UPB_INLINE bool validate_StringRules_has_min_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 3); }
|
1328
|
+
UPB_INLINE uint64_t validate_StringRules_min_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
|
1329
|
+
UPB_INLINE bool validate_StringRules_has_max_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 4); }
|
1330
|
+
UPB_INLINE uint64_t validate_StringRules_max_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
|
1331
|
+
UPB_INLINE bool validate_StringRules_has_pattern(const validate_StringRules *msg) { return _upb_hasbit(msg, 9); }
|
1332
|
+
UPB_INLINE upb_strview validate_StringRules_pattern(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(68, 80), upb_strview); }
|
1333
|
+
UPB_INLINE bool validate_StringRules_has_prefix(const validate_StringRules *msg) { return _upb_hasbit(msg, 10); }
|
1334
|
+
UPB_INLINE upb_strview validate_StringRules_prefix(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(76, 96), upb_strview); }
|
1335
|
+
UPB_INLINE bool validate_StringRules_has_suffix(const validate_StringRules *msg) { return _upb_hasbit(msg, 11); }
|
1336
|
+
UPB_INLINE upb_strview validate_StringRules_suffix(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(84, 112), upb_strview); }
|
1337
|
+
UPB_INLINE bool validate_StringRules_has_contains(const validate_StringRules *msg) { return _upb_hasbit(msg, 12); }
|
1338
|
+
UPB_INLINE upb_strview validate_StringRules_contains(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(92, 128), upb_strview); }
|
1340
1339
|
UPB_INLINE upb_strview const* validate_StringRules_in(const validate_StringRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(108, 160), len); }
|
1341
1340
|
UPB_INLINE upb_strview const* validate_StringRules_not_in(const validate_StringRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(112, 168), len); }
|
1342
|
-
UPB_INLINE bool validate_StringRules_has_email(const validate_StringRules *msg) { return
|
1341
|
+
UPB_INLINE bool validate_StringRules_has_email(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 12; }
|
1343
1342
|
UPB_INLINE bool validate_StringRules_email(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 12, false); }
|
1344
|
-
UPB_INLINE bool validate_StringRules_has_hostname(const validate_StringRules *msg) { return
|
1343
|
+
UPB_INLINE bool validate_StringRules_has_hostname(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 13; }
|
1345
1344
|
UPB_INLINE bool validate_StringRules_hostname(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 13, false); }
|
1346
|
-
UPB_INLINE bool validate_StringRules_has_ip(const validate_StringRules *msg) { return
|
1345
|
+
UPB_INLINE bool validate_StringRules_has_ip(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 14; }
|
1347
1346
|
UPB_INLINE bool validate_StringRules_ip(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 14, false); }
|
1348
|
-
UPB_INLINE bool validate_StringRules_has_ipv4(const validate_StringRules *msg) { return
|
1347
|
+
UPB_INLINE bool validate_StringRules_has_ipv4(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 15; }
|
1349
1348
|
UPB_INLINE bool validate_StringRules_ipv4(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 15, false); }
|
1350
|
-
UPB_INLINE bool validate_StringRules_has_ipv6(const validate_StringRules *msg) { return
|
1349
|
+
UPB_INLINE bool validate_StringRules_has_ipv6(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 16; }
|
1351
1350
|
UPB_INLINE bool validate_StringRules_ipv6(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 16, false); }
|
1352
|
-
UPB_INLINE bool validate_StringRules_has_uri(const validate_StringRules *msg) { return
|
1351
|
+
UPB_INLINE bool validate_StringRules_has_uri(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 17; }
|
1353
1352
|
UPB_INLINE bool validate_StringRules_uri(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 17, false); }
|
1354
|
-
UPB_INLINE bool validate_StringRules_has_uri_ref(const validate_StringRules *msg) { return
|
1353
|
+
UPB_INLINE bool validate_StringRules_has_uri_ref(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 18; }
|
1355
1354
|
UPB_INLINE bool validate_StringRules_uri_ref(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 18, false); }
|
1356
|
-
UPB_INLINE bool validate_StringRules_has_len(const validate_StringRules *msg) { return
|
1357
|
-
UPB_INLINE uint64_t validate_StringRules_len(const validate_StringRules *msg) { return
|
1358
|
-
UPB_INLINE bool validate_StringRules_has_len_bytes(const validate_StringRules *msg) { return
|
1359
|
-
UPB_INLINE uint64_t validate_StringRules_len_bytes(const validate_StringRules *msg) { return
|
1360
|
-
UPB_INLINE bool validate_StringRules_has_address(const validate_StringRules *msg) { return
|
1355
|
+
UPB_INLINE bool validate_StringRules_has_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 5); }
|
1356
|
+
UPB_INLINE uint64_t validate_StringRules_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
|
1357
|
+
UPB_INLINE bool validate_StringRules_has_len_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 6); }
|
1358
|
+
UPB_INLINE uint64_t validate_StringRules_len_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), uint64_t); }
|
1359
|
+
UPB_INLINE bool validate_StringRules_has_address(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 21; }
|
1361
1360
|
UPB_INLINE bool validate_StringRules_address(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 21, false); }
|
1362
|
-
UPB_INLINE bool validate_StringRules_has_uuid(const validate_StringRules *msg) { return
|
1361
|
+
UPB_INLINE bool validate_StringRules_has_uuid(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 22; }
|
1363
1362
|
UPB_INLINE bool validate_StringRules_uuid(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 22, false); }
|
1364
|
-
UPB_INLINE bool validate_StringRules_has_not_contains(const validate_StringRules *msg) { return
|
1365
|
-
UPB_INLINE upb_strview validate_StringRules_not_contains(const validate_StringRules *msg) { return
|
1366
|
-
UPB_INLINE bool validate_StringRules_has_well_known_regex(const validate_StringRules *msg) { return
|
1363
|
+
UPB_INLINE bool validate_StringRules_has_not_contains(const validate_StringRules *msg) { return _upb_hasbit(msg, 13); }
|
1364
|
+
UPB_INLINE upb_strview validate_StringRules_not_contains(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(100, 144), upb_strview); }
|
1365
|
+
UPB_INLINE bool validate_StringRules_has_well_known_regex(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(128, 184)) == 24; }
|
1367
1366
|
UPB_INLINE int32_t validate_StringRules_well_known_regex(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, int32_t, UPB_SIZE(120, 176), UPB_SIZE(128, 184), 24, validate_UNKNOWN); }
|
1368
|
-
UPB_INLINE bool validate_StringRules_has_strict(const validate_StringRules *msg) { return
|
1369
|
-
UPB_INLINE bool validate_StringRules_strict(const validate_StringRules *msg) { return
|
1367
|
+
UPB_INLINE bool validate_StringRules_has_strict(const validate_StringRules *msg) { return _upb_hasbit(msg, 7); }
|
1368
|
+
UPB_INLINE bool validate_StringRules_strict(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(56, 56), bool); }
|
1370
1369
|
|
1371
1370
|
UPB_INLINE void validate_StringRules_set_const(validate_StringRules *msg, upb_strview value) {
|
1372
1371
|
_upb_sethas(msg, 8);
|
1373
|
-
|
1372
|
+
*UPB_PTR_AT(msg, UPB_SIZE(60, 64), upb_strview) = value;
|
1374
1373
|
}
|
1375
1374
|
UPB_INLINE void validate_StringRules_set_min_len(validate_StringRules *msg, uint64_t value) {
|
1376
1375
|
_upb_sethas(msg, 1);
|
1377
|
-
|
1376
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
|
1378
1377
|
}
|
1379
1378
|
UPB_INLINE void validate_StringRules_set_max_len(validate_StringRules *msg, uint64_t value) {
|
1380
1379
|
_upb_sethas(msg, 2);
|
1381
|
-
|
1380
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
|
1382
1381
|
}
|
1383
1382
|
UPB_INLINE void validate_StringRules_set_min_bytes(validate_StringRules *msg, uint64_t value) {
|
1384
1383
|
_upb_sethas(msg, 3);
|
1385
|
-
|
1384
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
|
1386
1385
|
}
|
1387
1386
|
UPB_INLINE void validate_StringRules_set_max_bytes(validate_StringRules *msg, uint64_t value) {
|
1388
1387
|
_upb_sethas(msg, 4);
|
1389
|
-
|
1388
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value;
|
1390
1389
|
}
|
1391
1390
|
UPB_INLINE void validate_StringRules_set_pattern(validate_StringRules *msg, upb_strview value) {
|
1392
1391
|
_upb_sethas(msg, 9);
|
1393
|
-
|
1392
|
+
*UPB_PTR_AT(msg, UPB_SIZE(68, 80), upb_strview) = value;
|
1394
1393
|
}
|
1395
1394
|
UPB_INLINE void validate_StringRules_set_prefix(validate_StringRules *msg, upb_strview value) {
|
1396
1395
|
_upb_sethas(msg, 10);
|
1397
|
-
|
1396
|
+
*UPB_PTR_AT(msg, UPB_SIZE(76, 96), upb_strview) = value;
|
1398
1397
|
}
|
1399
1398
|
UPB_INLINE void validate_StringRules_set_suffix(validate_StringRules *msg, upb_strview value) {
|
1400
1399
|
_upb_sethas(msg, 11);
|
1401
|
-
|
1400
|
+
*UPB_PTR_AT(msg, UPB_SIZE(84, 112), upb_strview) = value;
|
1402
1401
|
}
|
1403
1402
|
UPB_INLINE void validate_StringRules_set_contains(validate_StringRules *msg, upb_strview value) {
|
1404
1403
|
_upb_sethas(msg, 12);
|
1405
|
-
|
1404
|
+
*UPB_PTR_AT(msg, UPB_SIZE(92, 128), upb_strview) = value;
|
1406
1405
|
}
|
1407
1406
|
UPB_INLINE upb_strview* validate_StringRules_mutable_in(validate_StringRules *msg, size_t *len) {
|
1408
1407
|
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(108, 160), len);
|
1409
1408
|
}
|
1410
1409
|
UPB_INLINE upb_strview* validate_StringRules_resize_in(validate_StringRules *msg, size_t len, upb_arena *arena) {
|
1411
|
-
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(108, 160), len,
|
1410
|
+
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(108, 160), len, UPB_TYPE_STRING, arena);
|
1412
1411
|
}
|
1413
1412
|
UPB_INLINE bool validate_StringRules_add_in(validate_StringRules *msg, upb_strview val, upb_arena *arena) {
|
1414
|
-
return _upb_array_append_accessor(
|
1415
|
-
|
1413
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(108, 160), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val,
|
1414
|
+
arena);
|
1416
1415
|
}
|
1417
1416
|
UPB_INLINE upb_strview* validate_StringRules_mutable_not_in(validate_StringRules *msg, size_t *len) {
|
1418
1417
|
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(112, 168), len);
|
1419
1418
|
}
|
1420
1419
|
UPB_INLINE upb_strview* validate_StringRules_resize_not_in(validate_StringRules *msg, size_t len, upb_arena *arena) {
|
1421
|
-
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(112, 168), len,
|
1420
|
+
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(112, 168), len, UPB_TYPE_STRING, arena);
|
1422
1421
|
}
|
1423
1422
|
UPB_INLINE bool validate_StringRules_add_not_in(validate_StringRules *msg, upb_strview val, upb_arena *arena) {
|
1424
|
-
return _upb_array_append_accessor(
|
1425
|
-
|
1423
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(112, 168), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val,
|
1424
|
+
arena);
|
1426
1425
|
}
|
1427
1426
|
UPB_INLINE void validate_StringRules_set_email(validate_StringRules *msg, bool value) {
|
1428
1427
|
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(120, 176), value, UPB_SIZE(128, 184), 12);
|
@@ -1447,11 +1446,11 @@ UPB_INLINE void validate_StringRules_set_uri_ref(validate_StringRules *msg, bool
|
|
1447
1446
|
}
|
1448
1447
|
UPB_INLINE void validate_StringRules_set_len(validate_StringRules *msg, uint64_t value) {
|
1449
1448
|
_upb_sethas(msg, 5);
|
1450
|
-
|
1449
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t) = value;
|
1451
1450
|
}
|
1452
1451
|
UPB_INLINE void validate_StringRules_set_len_bytes(validate_StringRules *msg, uint64_t value) {
|
1453
1452
|
_upb_sethas(msg, 6);
|
1454
|
-
|
1453
|
+
*UPB_PTR_AT(msg, UPB_SIZE(48, 48), uint64_t) = value;
|
1455
1454
|
}
|
1456
1455
|
UPB_INLINE void validate_StringRules_set_address(validate_StringRules *msg, bool value) {
|
1457
1456
|
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(120, 176), value, UPB_SIZE(128, 184), 21);
|
@@ -1461,20 +1460,20 @@ UPB_INLINE void validate_StringRules_set_uuid(validate_StringRules *msg, bool va
|
|
1461
1460
|
}
|
1462
1461
|
UPB_INLINE void validate_StringRules_set_not_contains(validate_StringRules *msg, upb_strview value) {
|
1463
1462
|
_upb_sethas(msg, 13);
|
1464
|
-
|
1463
|
+
*UPB_PTR_AT(msg, UPB_SIZE(100, 144), upb_strview) = value;
|
1465
1464
|
}
|
1466
1465
|
UPB_INLINE void validate_StringRules_set_well_known_regex(validate_StringRules *msg, int32_t value) {
|
1467
1466
|
UPB_WRITE_ONEOF(msg, int32_t, UPB_SIZE(120, 176), value, UPB_SIZE(128, 184), 24);
|
1468
1467
|
}
|
1469
1468
|
UPB_INLINE void validate_StringRules_set_strict(validate_StringRules *msg, bool value) {
|
1470
1469
|
_upb_sethas(msg, 7);
|
1471
|
-
|
1470
|
+
*UPB_PTR_AT(msg, UPB_SIZE(56, 56), bool) = value;
|
1472
1471
|
}
|
1473
1472
|
|
1474
1473
|
/* validate.BytesRules */
|
1475
1474
|
|
1476
1475
|
UPB_INLINE validate_BytesRules *validate_BytesRules_new(upb_arena *arena) {
|
1477
|
-
return (validate_BytesRules *)
|
1476
|
+
return (validate_BytesRules *)_upb_msg_new(&validate_BytesRules_msginit, arena);
|
1478
1477
|
}
|
1479
1478
|
UPB_INLINE validate_BytesRules *validate_BytesRules_parse(const char *buf, size_t size,
|
1480
1479
|
upb_arena *arena) {
|
@@ -1491,80 +1490,80 @@ typedef enum {
|
|
1491
1490
|
validate_BytesRules_well_known_ipv6 = 12,
|
1492
1491
|
validate_BytesRules_well_known_NOT_SET = 0
|
1493
1492
|
} validate_BytesRules_well_known_oneofcases;
|
1494
|
-
UPB_INLINE validate_BytesRules_well_known_oneofcases validate_BytesRules_well_known_case(const validate_BytesRules* msg) { return (validate_BytesRules_well_known_oneofcases)
|
1495
|
-
|
1496
|
-
UPB_INLINE bool validate_BytesRules_has_const(const validate_BytesRules *msg) { return
|
1497
|
-
UPB_INLINE upb_strview validate_BytesRules_const(const validate_BytesRules *msg) { return
|
1498
|
-
UPB_INLINE bool validate_BytesRules_has_min_len(const validate_BytesRules *msg) { return
|
1499
|
-
UPB_INLINE uint64_t validate_BytesRules_min_len(const validate_BytesRules *msg) { return
|
1500
|
-
UPB_INLINE bool validate_BytesRules_has_max_len(const validate_BytesRules *msg) { return
|
1501
|
-
UPB_INLINE uint64_t validate_BytesRules_max_len(const validate_BytesRules *msg) { return
|
1502
|
-
UPB_INLINE bool validate_BytesRules_has_pattern(const validate_BytesRules *msg) { return
|
1503
|
-
UPB_INLINE upb_strview validate_BytesRules_pattern(const validate_BytesRules *msg) { return
|
1504
|
-
UPB_INLINE bool validate_BytesRules_has_prefix(const validate_BytesRules *msg) { return
|
1505
|
-
UPB_INLINE upb_strview validate_BytesRules_prefix(const validate_BytesRules *msg) { return
|
1506
|
-
UPB_INLINE bool validate_BytesRules_has_suffix(const validate_BytesRules *msg) { return
|
1507
|
-
UPB_INLINE upb_strview validate_BytesRules_suffix(const validate_BytesRules *msg) { return
|
1508
|
-
UPB_INLINE bool validate_BytesRules_has_contains(const validate_BytesRules *msg) { return
|
1509
|
-
UPB_INLINE upb_strview validate_BytesRules_contains(const validate_BytesRules *msg) { return
|
1493
|
+
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(84, 132), int32_t); }
|
1494
|
+
|
1495
|
+
UPB_INLINE bool validate_BytesRules_has_const(const validate_BytesRules *msg) { return _upb_hasbit(msg, 4); }
|
1496
|
+
UPB_INLINE upb_strview validate_BytesRules_const(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), upb_strview); }
|
1497
|
+
UPB_INLINE bool validate_BytesRules_has_min_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 1); }
|
1498
|
+
UPB_INLINE uint64_t validate_BytesRules_min_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
|
1499
|
+
UPB_INLINE bool validate_BytesRules_has_max_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 2); }
|
1500
|
+
UPB_INLINE uint64_t validate_BytesRules_max_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
|
1501
|
+
UPB_INLINE bool validate_BytesRules_has_pattern(const validate_BytesRules *msg) { return _upb_hasbit(msg, 5); }
|
1502
|
+
UPB_INLINE upb_strview validate_BytesRules_pattern(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 48), upb_strview); }
|
1503
|
+
UPB_INLINE bool validate_BytesRules_has_prefix(const validate_BytesRules *msg) { return _upb_hasbit(msg, 6); }
|
1504
|
+
UPB_INLINE upb_strview validate_BytesRules_prefix(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 64), upb_strview); }
|
1505
|
+
UPB_INLINE bool validate_BytesRules_has_suffix(const validate_BytesRules *msg) { return _upb_hasbit(msg, 7); }
|
1506
|
+
UPB_INLINE upb_strview validate_BytesRules_suffix(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(56, 80), upb_strview); }
|
1507
|
+
UPB_INLINE bool validate_BytesRules_has_contains(const validate_BytesRules *msg) { return _upb_hasbit(msg, 8); }
|
1508
|
+
UPB_INLINE upb_strview validate_BytesRules_contains(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(64, 96), upb_strview); }
|
1510
1509
|
UPB_INLINE upb_strview const* validate_BytesRules_in(const validate_BytesRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(72, 112), len); }
|
1511
1510
|
UPB_INLINE upb_strview const* validate_BytesRules_not_in(const validate_BytesRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(76, 120), len); }
|
1512
|
-
UPB_INLINE bool validate_BytesRules_has_ip(const validate_BytesRules *msg) { return
|
1511
|
+
UPB_INLINE bool validate_BytesRules_has_ip(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(84, 132)) == 10; }
|
1513
1512
|
UPB_INLINE bool validate_BytesRules_ip(const validate_BytesRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(80, 128), UPB_SIZE(84, 132), 10, false); }
|
1514
|
-
UPB_INLINE bool validate_BytesRules_has_ipv4(const validate_BytesRules *msg) { return
|
1513
|
+
UPB_INLINE bool validate_BytesRules_has_ipv4(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(84, 132)) == 11; }
|
1515
1514
|
UPB_INLINE bool validate_BytesRules_ipv4(const validate_BytesRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(80, 128), UPB_SIZE(84, 132), 11, false); }
|
1516
|
-
UPB_INLINE bool validate_BytesRules_has_ipv6(const validate_BytesRules *msg) { return
|
1515
|
+
UPB_INLINE bool validate_BytesRules_has_ipv6(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(84, 132)) == 12; }
|
1517
1516
|
UPB_INLINE bool validate_BytesRules_ipv6(const validate_BytesRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(80, 128), UPB_SIZE(84, 132), 12, false); }
|
1518
|
-
UPB_INLINE bool validate_BytesRules_has_len(const validate_BytesRules *msg) { return
|
1519
|
-
UPB_INLINE uint64_t validate_BytesRules_len(const validate_BytesRules *msg) { return
|
1517
|
+
UPB_INLINE bool validate_BytesRules_has_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 3); }
|
1518
|
+
UPB_INLINE uint64_t validate_BytesRules_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
|
1520
1519
|
|
1521
1520
|
UPB_INLINE void validate_BytesRules_set_const(validate_BytesRules *msg, upb_strview value) {
|
1522
1521
|
_upb_sethas(msg, 4);
|
1523
|
-
|
1522
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), upb_strview) = value;
|
1524
1523
|
}
|
1525
1524
|
UPB_INLINE void validate_BytesRules_set_min_len(validate_BytesRules *msg, uint64_t value) {
|
1526
1525
|
_upb_sethas(msg, 1);
|
1527
|
-
|
1526
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
|
1528
1527
|
}
|
1529
1528
|
UPB_INLINE void validate_BytesRules_set_max_len(validate_BytesRules *msg, uint64_t value) {
|
1530
1529
|
_upb_sethas(msg, 2);
|
1531
|
-
|
1530
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
|
1532
1531
|
}
|
1533
1532
|
UPB_INLINE void validate_BytesRules_set_pattern(validate_BytesRules *msg, upb_strview value) {
|
1534
1533
|
_upb_sethas(msg, 5);
|
1535
|
-
|
1534
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 48), upb_strview) = value;
|
1536
1535
|
}
|
1537
1536
|
UPB_INLINE void validate_BytesRules_set_prefix(validate_BytesRules *msg, upb_strview value) {
|
1538
1537
|
_upb_sethas(msg, 6);
|
1539
|
-
|
1538
|
+
*UPB_PTR_AT(msg, UPB_SIZE(48, 64), upb_strview) = value;
|
1540
1539
|
}
|
1541
1540
|
UPB_INLINE void validate_BytesRules_set_suffix(validate_BytesRules *msg, upb_strview value) {
|
1542
1541
|
_upb_sethas(msg, 7);
|
1543
|
-
|
1542
|
+
*UPB_PTR_AT(msg, UPB_SIZE(56, 80), upb_strview) = value;
|
1544
1543
|
}
|
1545
1544
|
UPB_INLINE void validate_BytesRules_set_contains(validate_BytesRules *msg, upb_strview value) {
|
1546
1545
|
_upb_sethas(msg, 8);
|
1547
|
-
|
1546
|
+
*UPB_PTR_AT(msg, UPB_SIZE(64, 96), upb_strview) = value;
|
1548
1547
|
}
|
1549
1548
|
UPB_INLINE upb_strview* validate_BytesRules_mutable_in(validate_BytesRules *msg, size_t *len) {
|
1550
1549
|
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(72, 112), len);
|
1551
1550
|
}
|
1552
1551
|
UPB_INLINE upb_strview* validate_BytesRules_resize_in(validate_BytesRules *msg, size_t len, upb_arena *arena) {
|
1553
|
-
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(72, 112), len,
|
1552
|
+
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(72, 112), len, UPB_TYPE_STRING, arena);
|
1554
1553
|
}
|
1555
1554
|
UPB_INLINE bool validate_BytesRules_add_in(validate_BytesRules *msg, upb_strview val, upb_arena *arena) {
|
1556
|
-
return _upb_array_append_accessor(
|
1557
|
-
|
1555
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(72, 112), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val,
|
1556
|
+
arena);
|
1558
1557
|
}
|
1559
1558
|
UPB_INLINE upb_strview* validate_BytesRules_mutable_not_in(validate_BytesRules *msg, size_t *len) {
|
1560
1559
|
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(76, 120), len);
|
1561
1560
|
}
|
1562
1561
|
UPB_INLINE upb_strview* validate_BytesRules_resize_not_in(validate_BytesRules *msg, size_t len, upb_arena *arena) {
|
1563
|
-
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(76, 120), len,
|
1562
|
+
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(76, 120), len, UPB_TYPE_STRING, arena);
|
1564
1563
|
}
|
1565
1564
|
UPB_INLINE bool validate_BytesRules_add_not_in(validate_BytesRules *msg, upb_strview val, upb_arena *arena) {
|
1566
|
-
return _upb_array_append_accessor(
|
1567
|
-
|
1565
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(76, 120), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val,
|
1566
|
+
arena);
|
1568
1567
|
}
|
1569
1568
|
UPB_INLINE void validate_BytesRules_set_ip(validate_BytesRules *msg, bool value) {
|
1570
1569
|
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(80, 128), value, UPB_SIZE(84, 132), 10);
|
@@ -1577,13 +1576,13 @@ UPB_INLINE void validate_BytesRules_set_ipv6(validate_BytesRules *msg, bool valu
|
|
1577
1576
|
}
|
1578
1577
|
UPB_INLINE void validate_BytesRules_set_len(validate_BytesRules *msg, uint64_t value) {
|
1579
1578
|
_upb_sethas(msg, 3);
|
1580
|
-
|
1579
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
|
1581
1580
|
}
|
1582
1581
|
|
1583
1582
|
/* validate.EnumRules */
|
1584
1583
|
|
1585
1584
|
UPB_INLINE validate_EnumRules *validate_EnumRules_new(upb_arena *arena) {
|
1586
|
-
return (validate_EnumRules *)
|
1585
|
+
return (validate_EnumRules *)_upb_msg_new(&validate_EnumRules_msginit, arena);
|
1587
1586
|
}
|
1588
1587
|
UPB_INLINE validate_EnumRules *validate_EnumRules_parse(const char *buf, size_t size,
|
1589
1588
|
upb_arena *arena) {
|
@@ -1594,46 +1593,46 @@ UPB_INLINE char *validate_EnumRules_serialize(const validate_EnumRules *msg, upb
|
|
1594
1593
|
return upb_encode(msg, &validate_EnumRules_msginit, arena, len);
|
1595
1594
|
}
|
1596
1595
|
|
1597
|
-
UPB_INLINE bool validate_EnumRules_has_const(const validate_EnumRules *msg) { return
|
1598
|
-
UPB_INLINE int32_t validate_EnumRules_const(const validate_EnumRules *msg) { return
|
1599
|
-
UPB_INLINE bool validate_EnumRules_has_defined_only(const validate_EnumRules *msg) { return
|
1600
|
-
UPB_INLINE bool validate_EnumRules_defined_only(const validate_EnumRules *msg) { return
|
1596
|
+
UPB_INLINE bool validate_EnumRules_has_const(const validate_EnumRules *msg) { return _upb_hasbit(msg, 1); }
|
1597
|
+
UPB_INLINE int32_t validate_EnumRules_const(const validate_EnumRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
|
1598
|
+
UPB_INLINE bool validate_EnumRules_has_defined_only(const validate_EnumRules *msg) { return _upb_hasbit(msg, 2); }
|
1599
|
+
UPB_INLINE bool validate_EnumRules_defined_only(const validate_EnumRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); }
|
1601
1600
|
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); }
|
1602
1601
|
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); }
|
1603
1602
|
|
1604
1603
|
UPB_INLINE void validate_EnumRules_set_const(validate_EnumRules *msg, int32_t value) {
|
1605
1604
|
_upb_sethas(msg, 1);
|
1606
|
-
|
1605
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
|
1607
1606
|
}
|
1608
1607
|
UPB_INLINE void validate_EnumRules_set_defined_only(validate_EnumRules *msg, bool value) {
|
1609
1608
|
_upb_sethas(msg, 2);
|
1610
|
-
|
1609
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value;
|
1611
1610
|
}
|
1612
1611
|
UPB_INLINE int32_t* validate_EnumRules_mutable_in(validate_EnumRules *msg, size_t *len) {
|
1613
1612
|
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 16), len);
|
1614
1613
|
}
|
1615
1614
|
UPB_INLINE int32_t* validate_EnumRules_resize_in(validate_EnumRules *msg, size_t len, upb_arena *arena) {
|
1616
|
-
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(12, 16), len,
|
1615
|
+
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(12, 16), len, UPB_TYPE_INT32, arena);
|
1617
1616
|
}
|
1618
1617
|
UPB_INLINE bool validate_EnumRules_add_in(validate_EnumRules *msg, int32_t val, upb_arena *arena) {
|
1619
|
-
return _upb_array_append_accessor(
|
1620
|
-
|
1618
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(12, 16), UPB_SIZE(4, 4), UPB_TYPE_INT32, &val,
|
1619
|
+
arena);
|
1621
1620
|
}
|
1622
1621
|
UPB_INLINE int32_t* validate_EnumRules_mutable_not_in(validate_EnumRules *msg, size_t *len) {
|
1623
1622
|
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(16, 24), len);
|
1624
1623
|
}
|
1625
1624
|
UPB_INLINE int32_t* validate_EnumRules_resize_not_in(validate_EnumRules *msg, size_t len, upb_arena *arena) {
|
1626
|
-
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(16, 24), len,
|
1625
|
+
return (int32_t*)_upb_array_resize_accessor(msg, UPB_SIZE(16, 24), len, UPB_TYPE_INT32, arena);
|
1627
1626
|
}
|
1628
1627
|
UPB_INLINE bool validate_EnumRules_add_not_in(validate_EnumRules *msg, int32_t val, upb_arena *arena) {
|
1629
|
-
return _upb_array_append_accessor(
|
1630
|
-
|
1628
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(16, 24), UPB_SIZE(4, 4), UPB_TYPE_INT32, &val,
|
1629
|
+
arena);
|
1631
1630
|
}
|
1632
1631
|
|
1633
1632
|
/* validate.MessageRules */
|
1634
1633
|
|
1635
1634
|
UPB_INLINE validate_MessageRules *validate_MessageRules_new(upb_arena *arena) {
|
1636
|
-
return (validate_MessageRules *)
|
1635
|
+
return (validate_MessageRules *)_upb_msg_new(&validate_MessageRules_msginit, arena);
|
1637
1636
|
}
|
1638
1637
|
UPB_INLINE validate_MessageRules *validate_MessageRules_parse(const char *buf, size_t size,
|
1639
1638
|
upb_arena *arena) {
|
@@ -1644,24 +1643,24 @@ UPB_INLINE char *validate_MessageRules_serialize(const validate_MessageRules *ms
|
|
1644
1643
|
return upb_encode(msg, &validate_MessageRules_msginit, arena, len);
|
1645
1644
|
}
|
1646
1645
|
|
1647
|
-
UPB_INLINE bool validate_MessageRules_has_skip(const validate_MessageRules *msg) { return
|
1648
|
-
UPB_INLINE bool validate_MessageRules_skip(const validate_MessageRules *msg) { return
|
1649
|
-
UPB_INLINE bool validate_MessageRules_has_required(const validate_MessageRules *msg) { return
|
1650
|
-
UPB_INLINE bool validate_MessageRules_required(const validate_MessageRules *msg) { return
|
1646
|
+
UPB_INLINE bool validate_MessageRules_has_skip(const validate_MessageRules *msg) { return _upb_hasbit(msg, 1); }
|
1647
|
+
UPB_INLINE bool validate_MessageRules_skip(const validate_MessageRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
|
1648
|
+
UPB_INLINE bool validate_MessageRules_has_required(const validate_MessageRules *msg) { return _upb_hasbit(msg, 2); }
|
1649
|
+
UPB_INLINE bool validate_MessageRules_required(const validate_MessageRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool); }
|
1651
1650
|
|
1652
1651
|
UPB_INLINE void validate_MessageRules_set_skip(validate_MessageRules *msg, bool value) {
|
1653
1652
|
_upb_sethas(msg, 1);
|
1654
|
-
|
1653
|
+
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
|
1655
1654
|
}
|
1656
1655
|
UPB_INLINE void validate_MessageRules_set_required(validate_MessageRules *msg, bool value) {
|
1657
1656
|
_upb_sethas(msg, 2);
|
1658
|
-
|
1657
|
+
*UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = value;
|
1659
1658
|
}
|
1660
1659
|
|
1661
1660
|
/* validate.RepeatedRules */
|
1662
1661
|
|
1663
1662
|
UPB_INLINE validate_RepeatedRules *validate_RepeatedRules_new(upb_arena *arena) {
|
1664
|
-
return (validate_RepeatedRules *)
|
1663
|
+
return (validate_RepeatedRules *)_upb_msg_new(&validate_RepeatedRules_msginit, arena);
|
1665
1664
|
}
|
1666
1665
|
UPB_INLINE validate_RepeatedRules *validate_RepeatedRules_parse(const char *buf, size_t size,
|
1667
1666
|
upb_arena *arena) {
|
@@ -1672,35 +1671,35 @@ UPB_INLINE char *validate_RepeatedRules_serialize(const validate_RepeatedRules *
|
|
1672
1671
|
return upb_encode(msg, &validate_RepeatedRules_msginit, arena, len);
|
1673
1672
|
}
|
1674
1673
|
|
1675
|
-
UPB_INLINE bool validate_RepeatedRules_has_min_items(const validate_RepeatedRules *msg) { return
|
1676
|
-
UPB_INLINE uint64_t validate_RepeatedRules_min_items(const validate_RepeatedRules *msg) { return
|
1677
|
-
UPB_INLINE bool validate_RepeatedRules_has_max_items(const validate_RepeatedRules *msg) { return
|
1678
|
-
UPB_INLINE uint64_t validate_RepeatedRules_max_items(const validate_RepeatedRules *msg) { return
|
1679
|
-
UPB_INLINE bool validate_RepeatedRules_has_unique(const validate_RepeatedRules *msg) { return
|
1680
|
-
UPB_INLINE bool validate_RepeatedRules_unique(const validate_RepeatedRules *msg) { return
|
1681
|
-
UPB_INLINE bool validate_RepeatedRules_has_items(const validate_RepeatedRules *msg) { return
|
1682
|
-
UPB_INLINE const validate_FieldRules* validate_RepeatedRules_items(const validate_RepeatedRules *msg) { return
|
1674
|
+
UPB_INLINE bool validate_RepeatedRules_has_min_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 1); }
|
1675
|
+
UPB_INLINE uint64_t validate_RepeatedRules_min_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
|
1676
|
+
UPB_INLINE bool validate_RepeatedRules_has_max_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 2); }
|
1677
|
+
UPB_INLINE uint64_t validate_RepeatedRules_max_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
|
1678
|
+
UPB_INLINE bool validate_RepeatedRules_has_unique(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 3); }
|
1679
|
+
UPB_INLINE bool validate_RepeatedRules_unique(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
|
1680
|
+
UPB_INLINE bool validate_RepeatedRules_has_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 4); }
|
1681
|
+
UPB_INLINE const validate_FieldRules* validate_RepeatedRules_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 32), const validate_FieldRules*); }
|
1683
1682
|
|
1684
1683
|
UPB_INLINE void validate_RepeatedRules_set_min_items(validate_RepeatedRules *msg, uint64_t value) {
|
1685
1684
|
_upb_sethas(msg, 1);
|
1686
|
-
|
1685
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
|
1687
1686
|
}
|
1688
1687
|
UPB_INLINE void validate_RepeatedRules_set_max_items(validate_RepeatedRules *msg, uint64_t value) {
|
1689
1688
|
_upb_sethas(msg, 2);
|
1690
|
-
|
1689
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
|
1691
1690
|
}
|
1692
1691
|
UPB_INLINE void validate_RepeatedRules_set_unique(validate_RepeatedRules *msg, bool value) {
|
1693
1692
|
_upb_sethas(msg, 3);
|
1694
|
-
|
1693
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool) = value;
|
1695
1694
|
}
|
1696
1695
|
UPB_INLINE void validate_RepeatedRules_set_items(validate_RepeatedRules *msg, validate_FieldRules* value) {
|
1697
1696
|
_upb_sethas(msg, 4);
|
1698
|
-
|
1697
|
+
*UPB_PTR_AT(msg, UPB_SIZE(28, 32), validate_FieldRules*) = value;
|
1699
1698
|
}
|
1700
1699
|
UPB_INLINE struct validate_FieldRules* validate_RepeatedRules_mutable_items(validate_RepeatedRules *msg, upb_arena *arena) {
|
1701
1700
|
struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_RepeatedRules_items(msg);
|
1702
1701
|
if (sub == NULL) {
|
1703
|
-
sub = (struct validate_FieldRules*)
|
1702
|
+
sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
|
1704
1703
|
if (!sub) return NULL;
|
1705
1704
|
validate_RepeatedRules_set_items(msg, sub);
|
1706
1705
|
}
|
@@ -1710,7 +1709,7 @@ UPB_INLINE struct validate_FieldRules* validate_RepeatedRules_mutable_items(vali
|
|
1710
1709
|
/* validate.MapRules */
|
1711
1710
|
|
1712
1711
|
UPB_INLINE validate_MapRules *validate_MapRules_new(upb_arena *arena) {
|
1713
|
-
return (validate_MapRules *)
|
1712
|
+
return (validate_MapRules *)_upb_msg_new(&validate_MapRules_msginit, arena);
|
1714
1713
|
}
|
1715
1714
|
UPB_INLINE validate_MapRules *validate_MapRules_parse(const char *buf, size_t size,
|
1716
1715
|
upb_arena *arena) {
|
@@ -1721,37 +1720,37 @@ UPB_INLINE char *validate_MapRules_serialize(const validate_MapRules *msg, upb_a
|
|
1721
1720
|
return upb_encode(msg, &validate_MapRules_msginit, arena, len);
|
1722
1721
|
}
|
1723
1722
|
|
1724
|
-
UPB_INLINE bool validate_MapRules_has_min_pairs(const validate_MapRules *msg) { return
|
1725
|
-
UPB_INLINE uint64_t validate_MapRules_min_pairs(const validate_MapRules *msg) { return
|
1726
|
-
UPB_INLINE bool validate_MapRules_has_max_pairs(const validate_MapRules *msg) { return
|
1727
|
-
UPB_INLINE uint64_t validate_MapRules_max_pairs(const validate_MapRules *msg) { return
|
1728
|
-
UPB_INLINE bool validate_MapRules_has_no_sparse(const validate_MapRules *msg) { return
|
1729
|
-
UPB_INLINE bool validate_MapRules_no_sparse(const validate_MapRules *msg) { return
|
1730
|
-
UPB_INLINE bool validate_MapRules_has_keys(const validate_MapRules *msg) { return
|
1731
|
-
UPB_INLINE const validate_FieldRules* validate_MapRules_keys(const validate_MapRules *msg) { return
|
1732
|
-
UPB_INLINE bool validate_MapRules_has_values(const validate_MapRules *msg) { return
|
1733
|
-
UPB_INLINE const validate_FieldRules* validate_MapRules_values(const validate_MapRules *msg) { return
|
1723
|
+
UPB_INLINE bool validate_MapRules_has_min_pairs(const validate_MapRules *msg) { return _upb_hasbit(msg, 1); }
|
1724
|
+
UPB_INLINE uint64_t validate_MapRules_min_pairs(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
|
1725
|
+
UPB_INLINE bool validate_MapRules_has_max_pairs(const validate_MapRules *msg) { return _upb_hasbit(msg, 2); }
|
1726
|
+
UPB_INLINE uint64_t validate_MapRules_max_pairs(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
|
1727
|
+
UPB_INLINE bool validate_MapRules_has_no_sparse(const validate_MapRules *msg) { return _upb_hasbit(msg, 3); }
|
1728
|
+
UPB_INLINE bool validate_MapRules_no_sparse(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
|
1729
|
+
UPB_INLINE bool validate_MapRules_has_keys(const validate_MapRules *msg) { return _upb_hasbit(msg, 4); }
|
1730
|
+
UPB_INLINE const validate_FieldRules* validate_MapRules_keys(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 32), const validate_FieldRules*); }
|
1731
|
+
UPB_INLINE bool validate_MapRules_has_values(const validate_MapRules *msg) { return _upb_hasbit(msg, 5); }
|
1732
|
+
UPB_INLINE const validate_FieldRules* validate_MapRules_values(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 40), const validate_FieldRules*); }
|
1734
1733
|
|
1735
1734
|
UPB_INLINE void validate_MapRules_set_min_pairs(validate_MapRules *msg, uint64_t value) {
|
1736
1735
|
_upb_sethas(msg, 1);
|
1737
|
-
|
1736
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
|
1738
1737
|
}
|
1739
1738
|
UPB_INLINE void validate_MapRules_set_max_pairs(validate_MapRules *msg, uint64_t value) {
|
1740
1739
|
_upb_sethas(msg, 2);
|
1741
|
-
|
1740
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
|
1742
1741
|
}
|
1743
1742
|
UPB_INLINE void validate_MapRules_set_no_sparse(validate_MapRules *msg, bool value) {
|
1744
1743
|
_upb_sethas(msg, 3);
|
1745
|
-
|
1744
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool) = value;
|
1746
1745
|
}
|
1747
1746
|
UPB_INLINE void validate_MapRules_set_keys(validate_MapRules *msg, validate_FieldRules* value) {
|
1748
1747
|
_upb_sethas(msg, 4);
|
1749
|
-
|
1748
|
+
*UPB_PTR_AT(msg, UPB_SIZE(28, 32), validate_FieldRules*) = value;
|
1750
1749
|
}
|
1751
1750
|
UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_keys(validate_MapRules *msg, upb_arena *arena) {
|
1752
1751
|
struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_MapRules_keys(msg);
|
1753
1752
|
if (sub == NULL) {
|
1754
|
-
sub = (struct validate_FieldRules*)
|
1753
|
+
sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
|
1755
1754
|
if (!sub) return NULL;
|
1756
1755
|
validate_MapRules_set_keys(msg, sub);
|
1757
1756
|
}
|
@@ -1759,12 +1758,12 @@ UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_keys(validate_M
|
|
1759
1758
|
}
|
1760
1759
|
UPB_INLINE void validate_MapRules_set_values(validate_MapRules *msg, validate_FieldRules* value) {
|
1761
1760
|
_upb_sethas(msg, 5);
|
1762
|
-
|
1761
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 40), validate_FieldRules*) = value;
|
1763
1762
|
}
|
1764
1763
|
UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_values(validate_MapRules *msg, upb_arena *arena) {
|
1765
1764
|
struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_MapRules_values(msg);
|
1766
1765
|
if (sub == NULL) {
|
1767
|
-
sub = (struct validate_FieldRules*)
|
1766
|
+
sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
|
1768
1767
|
if (!sub) return NULL;
|
1769
1768
|
validate_MapRules_set_values(msg, sub);
|
1770
1769
|
}
|
@@ -1774,7 +1773,7 @@ UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_values(validate
|
|
1774
1773
|
/* validate.AnyRules */
|
1775
1774
|
|
1776
1775
|
UPB_INLINE validate_AnyRules *validate_AnyRules_new(upb_arena *arena) {
|
1777
|
-
return (validate_AnyRules *)
|
1776
|
+
return (validate_AnyRules *)_upb_msg_new(&validate_AnyRules_msginit, arena);
|
1778
1777
|
}
|
1779
1778
|
UPB_INLINE validate_AnyRules *validate_AnyRules_parse(const char *buf, size_t size,
|
1780
1779
|
upb_arena *arena) {
|
@@ -1785,40 +1784,40 @@ UPB_INLINE char *validate_AnyRules_serialize(const validate_AnyRules *msg, upb_a
|
|
1785
1784
|
return upb_encode(msg, &validate_AnyRules_msginit, arena, len);
|
1786
1785
|
}
|
1787
1786
|
|
1788
|
-
UPB_INLINE bool validate_AnyRules_has_required(const validate_AnyRules *msg) { return
|
1789
|
-
UPB_INLINE bool validate_AnyRules_required(const validate_AnyRules *msg) { return
|
1787
|
+
UPB_INLINE bool validate_AnyRules_has_required(const validate_AnyRules *msg) { return _upb_hasbit(msg, 1); }
|
1788
|
+
UPB_INLINE bool validate_AnyRules_required(const validate_AnyRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
|
1790
1789
|
UPB_INLINE upb_strview const* validate_AnyRules_in(const validate_AnyRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); }
|
1791
1790
|
UPB_INLINE upb_strview const* validate_AnyRules_not_in(const validate_AnyRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); }
|
1792
1791
|
|
1793
1792
|
UPB_INLINE void validate_AnyRules_set_required(validate_AnyRules *msg, bool value) {
|
1794
1793
|
_upb_sethas(msg, 1);
|
1795
|
-
|
1794
|
+
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
|
1796
1795
|
}
|
1797
1796
|
UPB_INLINE upb_strview* validate_AnyRules_mutable_in(validate_AnyRules *msg, size_t *len) {
|
1798
1797
|
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len);
|
1799
1798
|
}
|
1800
1799
|
UPB_INLINE upb_strview* validate_AnyRules_resize_in(validate_AnyRules *msg, size_t len, upb_arena *arena) {
|
1801
|
-
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(4, 8), len,
|
1800
|
+
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(4, 8), len, UPB_TYPE_STRING, arena);
|
1802
1801
|
}
|
1803
1802
|
UPB_INLINE bool validate_AnyRules_add_in(validate_AnyRules *msg, upb_strview val, upb_arena *arena) {
|
1804
|
-
return _upb_array_append_accessor(
|
1805
|
-
|
1803
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(4, 8), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val,
|
1804
|
+
arena);
|
1806
1805
|
}
|
1807
1806
|
UPB_INLINE upb_strview* validate_AnyRules_mutable_not_in(validate_AnyRules *msg, size_t *len) {
|
1808
1807
|
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len);
|
1809
1808
|
}
|
1810
1809
|
UPB_INLINE upb_strview* validate_AnyRules_resize_not_in(validate_AnyRules *msg, size_t len, upb_arena *arena) {
|
1811
|
-
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(8, 16), len,
|
1810
|
+
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(8, 16), len, UPB_TYPE_STRING, arena);
|
1812
1811
|
}
|
1813
1812
|
UPB_INLINE bool validate_AnyRules_add_not_in(validate_AnyRules *msg, upb_strview val, upb_arena *arena) {
|
1814
|
-
return _upb_array_append_accessor(
|
1815
|
-
|
1813
|
+
return _upb_array_append_accessor(msg, UPB_SIZE(8, 16), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val,
|
1814
|
+
arena);
|
1816
1815
|
}
|
1817
1816
|
|
1818
1817
|
/* validate.DurationRules */
|
1819
1818
|
|
1820
1819
|
UPB_INLINE validate_DurationRules *validate_DurationRules_new(upb_arena *arena) {
|
1821
|
-
return (validate_DurationRules *)
|
1820
|
+
return (validate_DurationRules *)_upb_msg_new(&validate_DurationRules_msginit, arena);
|
1822
1821
|
}
|
1823
1822
|
UPB_INLINE validate_DurationRules *validate_DurationRules_parse(const char *buf, size_t size,
|
1824
1823
|
upb_arena *arena) {
|
@@ -1829,33 +1828,35 @@ UPB_INLINE char *validate_DurationRules_serialize(const validate_DurationRules *
|
|
1829
1828
|
return upb_encode(msg, &validate_DurationRules_msginit, arena, len);
|
1830
1829
|
}
|
1831
1830
|
|
1832
|
-
UPB_INLINE bool validate_DurationRules_has_required(const validate_DurationRules *msg) { return
|
1833
|
-
UPB_INLINE bool validate_DurationRules_required(const validate_DurationRules *msg) { return
|
1834
|
-
UPB_INLINE bool validate_DurationRules_has_const(const validate_DurationRules *msg) { return
|
1835
|
-
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_const(const validate_DurationRules *msg) { return
|
1836
|
-
UPB_INLINE bool validate_DurationRules_has_lt(const validate_DurationRules *msg) { return
|
1837
|
-
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lt(const validate_DurationRules *msg) { return
|
1838
|
-
UPB_INLINE bool validate_DurationRules_has_lte(const validate_DurationRules *msg) { return
|
1839
|
-
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lte(const validate_DurationRules *msg) { return
|
1840
|
-
UPB_INLINE bool validate_DurationRules_has_gt(const validate_DurationRules *msg) { return
|
1841
|
-
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gt(const validate_DurationRules *msg) { return
|
1842
|
-
UPB_INLINE bool validate_DurationRules_has_gte(const validate_DurationRules *msg) { return
|
1843
|
-
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gte(const validate_DurationRules *msg) { return
|
1831
|
+
UPB_INLINE bool validate_DurationRules_has_required(const validate_DurationRules *msg) { return _upb_hasbit(msg, 1); }
|
1832
|
+
UPB_INLINE bool validate_DurationRules_required(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
|
1833
|
+
UPB_INLINE bool validate_DurationRules_has_const(const validate_DurationRules *msg) { return _upb_hasbit(msg, 2); }
|
1834
|
+
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_const(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Duration*); }
|
1835
|
+
UPB_INLINE bool validate_DurationRules_has_lt(const validate_DurationRules *msg) { return _upb_hasbit(msg, 3); }
|
1836
|
+
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lt(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Duration*); }
|
1837
|
+
UPB_INLINE bool validate_DurationRules_has_lte(const validate_DurationRules *msg) { return _upb_hasbit(msg, 4); }
|
1838
|
+
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lte(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Duration*); }
|
1839
|
+
UPB_INLINE bool validate_DurationRules_has_gt(const validate_DurationRules *msg) { return _upb_hasbit(msg, 5); }
|
1840
|
+
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gt(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct google_protobuf_Duration*); }
|
1841
|
+
UPB_INLINE bool validate_DurationRules_has_gte(const validate_DurationRules *msg) { return _upb_hasbit(msg, 6); }
|
1842
|
+
UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gte(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct google_protobuf_Duration*); }
|
1843
|
+
UPB_INLINE bool validate_DurationRules_has_in(const validate_DurationRules *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 48)); }
|
1844
1844
|
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); }
|
1845
|
+
UPB_INLINE bool validate_DurationRules_has_not_in(const validate_DurationRules *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 56)); }
|
1845
1846
|
UPB_INLINE const struct google_protobuf_Duration* const* validate_DurationRules_not_in(const validate_DurationRules *msg, size_t *len) { return (const struct google_protobuf_Duration* const*)_upb_array_accessor(msg, UPB_SIZE(28, 56), len); }
|
1846
1847
|
|
1847
1848
|
UPB_INLINE void validate_DurationRules_set_required(validate_DurationRules *msg, bool value) {
|
1848
1849
|
_upb_sethas(msg, 1);
|
1849
|
-
|
1850
|
+
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
|
1850
1851
|
}
|
1851
1852
|
UPB_INLINE void validate_DurationRules_set_const(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
|
1852
1853
|
_upb_sethas(msg, 2);
|
1853
|
-
|
1854
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Duration*) = value;
|
1854
1855
|
}
|
1855
1856
|
UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_const(validate_DurationRules *msg, upb_arena *arena) {
|
1856
1857
|
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_const(msg);
|
1857
1858
|
if (sub == NULL) {
|
1858
|
-
sub = (struct google_protobuf_Duration*)
|
1859
|
+
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
|
1859
1860
|
if (!sub) return NULL;
|
1860
1861
|
validate_DurationRules_set_const(msg, sub);
|
1861
1862
|
}
|
@@ -1863,12 +1864,12 @@ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_const
|
|
1863
1864
|
}
|
1864
1865
|
UPB_INLINE void validate_DurationRules_set_lt(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
|
1865
1866
|
_upb_sethas(msg, 3);
|
1866
|
-
|
1867
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_Duration*) = value;
|
1867
1868
|
}
|
1868
1869
|
UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lt(validate_DurationRules *msg, upb_arena *arena) {
|
1869
1870
|
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_lt(msg);
|
1870
1871
|
if (sub == NULL) {
|
1871
|
-
sub = (struct google_protobuf_Duration*)
|
1872
|
+
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
|
1872
1873
|
if (!sub) return NULL;
|
1873
1874
|
validate_DurationRules_set_lt(msg, sub);
|
1874
1875
|
}
|
@@ -1876,12 +1877,12 @@ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lt(va
|
|
1876
1877
|
}
|
1877
1878
|
UPB_INLINE void validate_DurationRules_set_lte(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
|
1878
1879
|
_upb_sethas(msg, 4);
|
1879
|
-
|
1880
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_Duration*) = value;
|
1880
1881
|
}
|
1881
1882
|
UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lte(validate_DurationRules *msg, upb_arena *arena) {
|
1882
1883
|
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_lte(msg);
|
1883
1884
|
if (sub == NULL) {
|
1884
|
-
sub = (struct google_protobuf_Duration*)
|
1885
|
+
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
|
1885
1886
|
if (!sub) return NULL;
|
1886
1887
|
validate_DurationRules_set_lte(msg, sub);
|
1887
1888
|
}
|
@@ -1889,12 +1890,12 @@ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lte(v
|
|
1889
1890
|
}
|
1890
1891
|
UPB_INLINE void validate_DurationRules_set_gt(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
|
1891
1892
|
_upb_sethas(msg, 5);
|
1892
|
-
|
1893
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct google_protobuf_Duration*) = value;
|
1893
1894
|
}
|
1894
1895
|
UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gt(validate_DurationRules *msg, upb_arena *arena) {
|
1895
1896
|
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_gt(msg);
|
1896
1897
|
if (sub == NULL) {
|
1897
|
-
sub = (struct google_protobuf_Duration*)
|
1898
|
+
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
|
1898
1899
|
if (!sub) return NULL;
|
1899
1900
|
validate_DurationRules_set_gt(msg, sub);
|
1900
1901
|
}
|
@@ -1902,12 +1903,12 @@ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gt(va
|
|
1902
1903
|
}
|
1903
1904
|
UPB_INLINE void validate_DurationRules_set_gte(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
|
1904
1905
|
_upb_sethas(msg, 6);
|
1905
|
-
|
1906
|
+
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct google_protobuf_Duration*) = value;
|
1906
1907
|
}
|
1907
1908
|
UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gte(validate_DurationRules *msg, upb_arena *arena) {
|
1908
1909
|
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_gte(msg);
|
1909
1910
|
if (sub == NULL) {
|
1910
|
-
sub = (struct google_protobuf_Duration*)
|
1911
|
+
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
|
1911
1912
|
if (!sub) return NULL;
|
1912
1913
|
validate_DurationRules_set_gte(msg, sub);
|
1913
1914
|
}
|
@@ -1917,10 +1918,10 @@ UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_mutable_in(v
|
|
1917
1918
|
return (struct google_protobuf_Duration**)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 48), len);
|
1918
1919
|
}
|
1919
1920
|
UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_resize_in(validate_DurationRules *msg, size_t len, upb_arena *arena) {
|
1920
|
-
return (struct google_protobuf_Duration**)_upb_array_resize_accessor(msg, UPB_SIZE(24, 48), len,
|
1921
|
+
return (struct google_protobuf_Duration**)_upb_array_resize_accessor(msg, UPB_SIZE(24, 48), len, UPB_TYPE_MESSAGE, arena);
|
1921
1922
|
}
|
1922
1923
|
UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_in(validate_DurationRules *msg, upb_arena *arena) {
|
1923
|
-
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)
|
1924
|
+
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
|
1924
1925
|
bool ok = _upb_array_append_accessor(
|
1925
1926
|
msg, UPB_SIZE(24, 48), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
1926
1927
|
if (!ok) return NULL;
|
@@ -1930,10 +1931,10 @@ UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_mutable_not_
|
|
1930
1931
|
return (struct google_protobuf_Duration**)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 56), len);
|
1931
1932
|
}
|
1932
1933
|
UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_resize_not_in(validate_DurationRules *msg, size_t len, upb_arena *arena) {
|
1933
|
-
return (struct google_protobuf_Duration**)_upb_array_resize_accessor(msg, UPB_SIZE(28, 56), len,
|
1934
|
+
return (struct google_protobuf_Duration**)_upb_array_resize_accessor(msg, UPB_SIZE(28, 56), len, UPB_TYPE_MESSAGE, arena);
|
1934
1935
|
}
|
1935
1936
|
UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_not_in(validate_DurationRules *msg, upb_arena *arena) {
|
1936
|
-
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)
|
1937
|
+
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
|
1937
1938
|
bool ok = _upb_array_append_accessor(
|
1938
1939
|
msg, UPB_SIZE(28, 56), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
1939
1940
|
if (!ok) return NULL;
|
@@ -1943,7 +1944,7 @@ UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_not_in(va
|
|
1943
1944
|
/* validate.TimestampRules */
|
1944
1945
|
|
1945
1946
|
UPB_INLINE validate_TimestampRules *validate_TimestampRules_new(upb_arena *arena) {
|
1946
|
-
return (validate_TimestampRules *)
|
1947
|
+
return (validate_TimestampRules *)_upb_msg_new(&validate_TimestampRules_msginit, arena);
|
1947
1948
|
}
|
1948
1949
|
UPB_INLINE validate_TimestampRules *validate_TimestampRules_parse(const char *buf, size_t size,
|
1949
1950
|
upb_arena *arena) {
|
@@ -1954,37 +1955,37 @@ UPB_INLINE char *validate_TimestampRules_serialize(const validate_TimestampRules
|
|
1954
1955
|
return upb_encode(msg, &validate_TimestampRules_msginit, arena, len);
|
1955
1956
|
}
|
1956
1957
|
|
1957
|
-
UPB_INLINE bool validate_TimestampRules_has_required(const validate_TimestampRules *msg) { return
|
1958
|
-
UPB_INLINE bool validate_TimestampRules_required(const validate_TimestampRules *msg) { return
|
1959
|
-
UPB_INLINE bool validate_TimestampRules_has_const(const validate_TimestampRules *msg) { return
|
1960
|
-
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_const(const validate_TimestampRules *msg) { return
|
1961
|
-
UPB_INLINE bool validate_TimestampRules_has_lt(const validate_TimestampRules *msg) { return
|
1962
|
-
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lt(const validate_TimestampRules *msg) { return
|
1963
|
-
UPB_INLINE bool validate_TimestampRules_has_lte(const validate_TimestampRules *msg) { return
|
1964
|
-
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lte(const validate_TimestampRules *msg) { return
|
1965
|
-
UPB_INLINE bool validate_TimestampRules_has_gt(const validate_TimestampRules *msg) { return
|
1966
|
-
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gt(const validate_TimestampRules *msg) { return
|
1967
|
-
UPB_INLINE bool validate_TimestampRules_has_gte(const validate_TimestampRules *msg) { return
|
1968
|
-
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gte(const validate_TimestampRules *msg) { return
|
1969
|
-
UPB_INLINE bool validate_TimestampRules_has_lt_now(const validate_TimestampRules *msg) { return
|
1970
|
-
UPB_INLINE bool validate_TimestampRules_lt_now(const validate_TimestampRules *msg) { return
|
1971
|
-
UPB_INLINE bool validate_TimestampRules_has_gt_now(const validate_TimestampRules *msg) { return
|
1972
|
-
UPB_INLINE bool validate_TimestampRules_gt_now(const validate_TimestampRules *msg) { return
|
1973
|
-
UPB_INLINE bool validate_TimestampRules_has_within(const validate_TimestampRules *msg) { return
|
1974
|
-
UPB_INLINE const struct google_protobuf_Duration* validate_TimestampRules_within(const validate_TimestampRules *msg) { return
|
1958
|
+
UPB_INLINE bool validate_TimestampRules_has_required(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 1); }
|
1959
|
+
UPB_INLINE bool validate_TimestampRules_required(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool); }
|
1960
|
+
UPB_INLINE bool validate_TimestampRules_has_const(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 4); }
|
1961
|
+
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_const(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const struct google_protobuf_Timestamp*); }
|
1962
|
+
UPB_INLINE bool validate_TimestampRules_has_lt(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 5); }
|
1963
|
+
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lt(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct google_protobuf_Timestamp*); }
|
1964
|
+
UPB_INLINE bool validate_TimestampRules_has_lte(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 6); }
|
1965
|
+
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lte(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const struct google_protobuf_Timestamp*); }
|
1966
|
+
UPB_INLINE bool validate_TimestampRules_has_gt(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 7); }
|
1967
|
+
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gt(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const struct google_protobuf_Timestamp*); }
|
1968
|
+
UPB_INLINE bool validate_TimestampRules_has_gte(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 8); }
|
1969
|
+
UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gte(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const struct google_protobuf_Timestamp*); }
|
1970
|
+
UPB_INLINE bool validate_TimestampRules_has_lt_now(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 2); }
|
1971
|
+
UPB_INLINE bool validate_TimestampRules_lt_now(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool); }
|
1972
|
+
UPB_INLINE bool validate_TimestampRules_has_gt_now(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 3); }
|
1973
|
+
UPB_INLINE bool validate_TimestampRules_gt_now(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool); }
|
1974
|
+
UPB_INLINE bool validate_TimestampRules_has_within(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 9); }
|
1975
|
+
UPB_INLINE const struct google_protobuf_Duration* validate_TimestampRules_within(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), const struct google_protobuf_Duration*); }
|
1975
1976
|
|
1976
1977
|
UPB_INLINE void validate_TimestampRules_set_required(validate_TimestampRules *msg, bool value) {
|
1977
1978
|
_upb_sethas(msg, 1);
|
1978
|
-
|
1979
|
+
*UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = value;
|
1979
1980
|
}
|
1980
1981
|
UPB_INLINE void validate_TimestampRules_set_const(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
|
1981
1982
|
_upb_sethas(msg, 4);
|
1982
|
-
|
1983
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), struct google_protobuf_Timestamp*) = value;
|
1983
1984
|
}
|
1984
1985
|
UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_const(validate_TimestampRules *msg, upb_arena *arena) {
|
1985
1986
|
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_const(msg);
|
1986
1987
|
if (sub == NULL) {
|
1987
|
-
sub = (struct google_protobuf_Timestamp*)
|
1988
|
+
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
|
1988
1989
|
if (!sub) return NULL;
|
1989
1990
|
validate_TimestampRules_set_const(msg, sub);
|
1990
1991
|
}
|
@@ -1992,12 +1993,12 @@ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_con
|
|
1992
1993
|
}
|
1993
1994
|
UPB_INLINE void validate_TimestampRules_set_lt(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
|
1994
1995
|
_upb_sethas(msg, 5);
|
1995
|
-
|
1996
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct google_protobuf_Timestamp*) = value;
|
1996
1997
|
}
|
1997
1998
|
UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lt(validate_TimestampRules *msg, upb_arena *arena) {
|
1998
1999
|
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_lt(msg);
|
1999
2000
|
if (sub == NULL) {
|
2000
|
-
sub = (struct google_protobuf_Timestamp*)
|
2001
|
+
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
|
2001
2002
|
if (!sub) return NULL;
|
2002
2003
|
validate_TimestampRules_set_lt(msg, sub);
|
2003
2004
|
}
|
@@ -2005,12 +2006,12 @@ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lt(
|
|
2005
2006
|
}
|
2006
2007
|
UPB_INLINE void validate_TimestampRules_set_lte(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
|
2007
2008
|
_upb_sethas(msg, 6);
|
2008
|
-
|
2009
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), struct google_protobuf_Timestamp*) = value;
|
2009
2010
|
}
|
2010
2011
|
UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lte(validate_TimestampRules *msg, upb_arena *arena) {
|
2011
2012
|
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_lte(msg);
|
2012
2013
|
if (sub == NULL) {
|
2013
|
-
sub = (struct google_protobuf_Timestamp*)
|
2014
|
+
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
|
2014
2015
|
if (!sub) return NULL;
|
2015
2016
|
validate_TimestampRules_set_lte(msg, sub);
|
2016
2017
|
}
|
@@ -2018,12 +2019,12 @@ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lte
|
|
2018
2019
|
}
|
2019
2020
|
UPB_INLINE void validate_TimestampRules_set_gt(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
|
2020
2021
|
_upb_sethas(msg, 7);
|
2021
|
-
|
2022
|
+
*UPB_PTR_AT(msg, UPB_SIZE(20, 32), struct google_protobuf_Timestamp*) = value;
|
2022
2023
|
}
|
2023
2024
|
UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gt(validate_TimestampRules *msg, upb_arena *arena) {
|
2024
2025
|
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_gt(msg);
|
2025
2026
|
if (sub == NULL) {
|
2026
|
-
sub = (struct google_protobuf_Timestamp*)
|
2027
|
+
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
|
2027
2028
|
if (!sub) return NULL;
|
2028
2029
|
validate_TimestampRules_set_gt(msg, sub);
|
2029
2030
|
}
|
@@ -2031,12 +2032,12 @@ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gt(
|
|
2031
2032
|
}
|
2032
2033
|
UPB_INLINE void validate_TimestampRules_set_gte(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
|
2033
2034
|
_upb_sethas(msg, 8);
|
2034
|
-
|
2035
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), struct google_protobuf_Timestamp*) = value;
|
2035
2036
|
}
|
2036
2037
|
UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gte(validate_TimestampRules *msg, upb_arena *arena) {
|
2037
2038
|
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_gte(msg);
|
2038
2039
|
if (sub == NULL) {
|
2039
|
-
sub = (struct google_protobuf_Timestamp*)
|
2040
|
+
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
|
2040
2041
|
if (!sub) return NULL;
|
2041
2042
|
validate_TimestampRules_set_gte(msg, sub);
|
2042
2043
|
}
|
@@ -2044,20 +2045,20 @@ UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gte
|
|
2044
2045
|
}
|
2045
2046
|
UPB_INLINE void validate_TimestampRules_set_lt_now(validate_TimestampRules *msg, bool value) {
|
2046
2047
|
_upb_sethas(msg, 2);
|
2047
|
-
|
2048
|
+
*UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool) = value;
|
2048
2049
|
}
|
2049
2050
|
UPB_INLINE void validate_TimestampRules_set_gt_now(validate_TimestampRules *msg, bool value) {
|
2050
2051
|
_upb_sethas(msg, 3);
|
2051
|
-
|
2052
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool) = value;
|
2052
2053
|
}
|
2053
2054
|
UPB_INLINE void validate_TimestampRules_set_within(validate_TimestampRules *msg, struct google_protobuf_Duration* value) {
|
2054
2055
|
_upb_sethas(msg, 9);
|
2055
|
-
|
2056
|
+
*UPB_PTR_AT(msg, UPB_SIZE(28, 48), struct google_protobuf_Duration*) = value;
|
2056
2057
|
}
|
2057
2058
|
UPB_INLINE struct google_protobuf_Duration* validate_TimestampRules_mutable_within(validate_TimestampRules *msg, upb_arena *arena) {
|
2058
2059
|
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_TimestampRules_within(msg);
|
2059
2060
|
if (sub == NULL) {
|
2060
|
-
sub = (struct google_protobuf_Duration*)
|
2061
|
+
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
|
2061
2062
|
if (!sub) return NULL;
|
2062
2063
|
validate_TimestampRules_set_within(msg, sub);
|
2063
2064
|
}
|