grpc 1.54.3 → 1.55.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Makefile +66 -37
- data/include/grpc/impl/grpc_types.h +2 -0
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +1 -1
- data/src/core/ext/filters/client_channel/backend_metric.cc +2 -1
- data/src/core/ext/filters/client_channel/client_channel.cc +19 -21
- data/src/core/ext/filters/client_channel/client_channel.h +20 -18
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +1 -1
- data/src/core/ext/filters/client_channel/client_channel_internal.h +8 -40
- data/src/core/ext/filters/client_channel/client_channel_service_config.cc +2 -2
- data/src/core/ext/filters/client_channel/config_selector.h +5 -17
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +1 -1
- data/src/core/ext/filters/client_channel/http_proxy.cc +34 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +2 -2
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +1 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +1 -1
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +5 -5
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +44 -45
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +2 -3
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +4 -4
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +9 -9
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +4 -4
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_wrr_locality.cc +5 -4
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +19 -118
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.h +30 -0
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.cc +60 -0
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.h +27 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +524 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.h +35 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.cc +97 -0
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.h +32 -0
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +2 -13
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.h +24 -0
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +3 -2
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +7 -34
- data/src/core/ext/filters/client_channel/retry_filter.cc +23 -55
- data/src/core/ext/filters/client_channel/retry_service_config.cc +8 -8
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.cc +1 -1
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +2 -2
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +68 -69
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +78 -23
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +21 -0
- data/src/core/ext/transport/chttp2/transport/context_list_entry.h +70 -0
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +1 -7
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +0 -3
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +1 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +1 -0
- data/src/core/ext/transport/chttp2/transport/internal.h +3 -4
- data/src/core/ext/transport/chttp2/transport/writing.cc +14 -3
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +87 -52
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +414 -181
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +121 -60
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +481 -224
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +90 -55
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +415 -188
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +357 -210
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +1572 -729
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +30 -17
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +144 -47
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +34 -21
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +160 -62
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +27 -14
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +78 -38
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +20 -11
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +48 -26
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +20 -11
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +48 -26
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +109 -62
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +566 -244
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +21 -12
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +45 -30
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +22 -19
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +82 -29
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +23 -16
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +45 -30
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +230 -143
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +733 -404
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +417 -264
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +1839 -899
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +74 -41
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +286 -148
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +531 -334
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +2017 -1131
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +21 -12
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +45 -30
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +89 -52
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +347 -232
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +264 -165
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +888 -476
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +139 -80
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +527 -274
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +22 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +50 -36
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +380 -221
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +1168 -611
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +166 -94
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +666 -292
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +37 -26
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +21 -12
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +45 -30
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +30 -17
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +144 -47
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +274 -167
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +789 -440
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +228 -137
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +1100 -501
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +22 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +60 -37
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +350 -211
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +1072 -646
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +33 -18
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +117 -51
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +34 -19
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +118 -56
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +38 -21
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +148 -64
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +31 -18
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +143 -65
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +22 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +51 -37
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +78 -43
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +265 -127
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +145 -88
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +438 -241
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +115 -62
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +559 -227
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +35 -26
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +175 -118
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +857 -442
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +172 -95
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +864 -374
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +48 -27
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +159 -110
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +39 -18
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +74 -56
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +28 -15
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +71 -45
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +131 -74
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +489 -249
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +135 -80
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +505 -245
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +248 -139
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +933 -433
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +80 -49
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +616 -201
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +1283 -776
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +5422 -2519
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +49 -28
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +164 -84
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +228 -141
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +738 -399
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +20 -11
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +48 -26
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +21 -12
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +45 -30
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +32 -19
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +70 -49
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +27 -14
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +110 -43
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +46 -25
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +259 -100
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +21 -12
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +45 -30
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +35 -26
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +42 -23
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +108 -70
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +7 -4
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +21 -16
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +43 -24
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +110 -75
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +30 -17
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +95 -50
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +16 -9
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +73 -23
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +60 -37
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +150 -108
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +74 -43
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +357 -167
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +44 -25
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +114 -80
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +41 -20
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +245 -82
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +32 -19
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +73 -51
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +474 -296
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +2121 -1076
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +35 -26
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +34 -21
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +112 -78
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +72 -45
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +193 -138
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +34 -21
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +119 -78
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +35 -26
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +7 -4
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +15 -10
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +184 -96
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +907 -360
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +56 -33
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +150 -101
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +188 -111
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +816 -419
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +32 -19
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +109 -53
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +10 -7
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +18 -14
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +300 -177
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +1284 -522
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +42 -23
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +188 -75
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +130 -83
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +510 -238
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +22 -13
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +55 -34
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +39 -26
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +124 -68
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +21 -12
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +47 -30
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +52 -29
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +92 -62
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +37 -20
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +133 -63
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +22 -13
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +91 -40
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +21 -12
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +50 -32
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +18 -11
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +37 -26
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +46 -27
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +101 -70
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +13 -10
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +25 -22
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +40 -23
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +161 -75
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +31 -18
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +114 -56
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +46 -29
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +139 -91
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +65 -42
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +200 -121
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +80 -45
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +208 -131
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +34 -21
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +74 -53
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +7 -4
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +13 -8
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +16 -9
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +28 -18
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +28 -15
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +55 -34
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +43 -22
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +91 -53
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +35 -20
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +92 -57
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +7 -4
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +13 -8
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +20 -11
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +48 -26
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +23 -14
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +61 -41
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +14 -11
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +30 -20
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +255 -154
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +934 -450
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +299 -180
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +946 -483
- data/src/core/ext/upb-generated/google/api/http.upb.c +68 -35
- data/src/core/ext/upb-generated/google/api/http.upb.h +284 -120
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +22 -13
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +95 -37
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +19 -10
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +38 -22
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +1018 -424
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +3851 -1412
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +19 -10
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +38 -22
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +10 -7
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +18 -14
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +62 -39
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +207 -102
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +19 -10
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +38 -22
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +90 -51
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +157 -107
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +22 -13
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +95 -37
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +59 -34
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +154 -92
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +43 -24
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +118 -60
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +250 -145
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +919 -415
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +34 -19
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +76 -51
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +25 -14
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +45 -30
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +144 -81
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +405 -217
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +51 -26
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +153 -61
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +173 -102
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +855 -298
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +68 -49
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +155 -104
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +26 -17
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +55 -34
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +12 -9
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +31 -14
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +26 -17
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +55 -34
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +23 -16
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +45 -30
- data/src/core/ext/upb-generated/validate/validate.upb.c +845 -455
- data/src/core/ext/upb-generated/validate/validate.upb.h +4347 -1908
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +68 -49
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +155 -104
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +26 -17
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +55 -34
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +12 -9
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +31 -14
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +65 -44
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +137 -91
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +23 -16
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +45 -30
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +16 -9
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +28 -18
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +21 -12
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +45 -30
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +37 -22
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +96 -63
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +26 -17
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +52 -29
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +21 -12
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +45 -30
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +23 -14
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +62 -42
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +44 -25
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +169 -79
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +27 -14
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +65 -38
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +69 -38
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +167 -76
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +21 -12
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +89 -34
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +18 -11
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +35 -26
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +32 -19
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +150 -54
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +10 -7
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +18 -14
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +34 -21
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +161 -63
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +162 -101
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +501 -293
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +85 -52
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +430 -164
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +24 -15
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +53 -37
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +40 -23
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +161 -75
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +37 -22
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +92 -66
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +43 -22
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +91 -53
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +21 -12
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +45 -30
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +252 -253
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +13 -12
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +11 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +44 -44
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +134 -128
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +11 -5
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +379 -376
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +138 -136
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +12 -13
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +329 -273
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +11 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.h +6 -5
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +6 -5
- data/src/core/ext/xds/certificate_provider_store.cc +4 -4
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +7 -7
- data/src/core/ext/xds/upb_utils.h +1 -1
- data/src/core/ext/xds/xds_api.cc +34 -14
- data/src/core/ext/xds/xds_api.h +2 -2
- data/src/core/ext/xds/xds_bootstrap.cc +3 -3
- data/src/core/ext/xds/xds_bootstrap_grpc.cc +15 -15
- data/src/core/ext/xds/xds_client.cc +24 -3
- data/src/core/ext/xds/xds_client.h +1 -1
- data/src/core/ext/xds/xds_cluster.cc +26 -34
- data/src/core/ext/xds/xds_cluster.h +1 -2
- data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +4 -3
- data/src/core/ext/xds/xds_cluster_specifier_plugin.h +2 -2
- data/src/core/ext/xds/xds_common_types.cc +5 -4
- data/src/core/ext/xds/xds_endpoint.cc +5 -2
- data/src/core/ext/xds/xds_endpoint.h +1 -1
- data/src/core/ext/xds/xds_http_fault_filter.cc +2 -2
- data/src/core/ext/xds/xds_http_fault_filter.h +1 -1
- data/src/core/ext/xds/xds_http_filters.h +3 -2
- data/src/core/ext/xds/xds_http_rbac_filter.cc +6 -8
- data/src/core/ext/xds/xds_http_rbac_filter.h +1 -1
- data/src/core/ext/xds/xds_http_stateful_session_filter.cc +2 -2
- data/src/core/ext/xds/xds_http_stateful_session_filter.h +1 -1
- data/src/core/ext/xds/xds_lb_policy_registry.cc +4 -22
- data/src/core/ext/xds/xds_listener.cc +10 -4
- data/src/core/ext/xds/xds_listener.h +1 -1
- data/src/core/ext/xds/xds_resource_type.h +2 -2
- data/src/core/ext/xds/xds_route_config.cc +8 -5
- data/src/core/ext/xds/xds_route_config.h +1 -1
- data/src/core/lib/channel/channelz.cc +5 -4
- data/src/core/lib/channel/channelz_registry.cc +7 -6
- data/src/core/lib/channel/connected_channel.cc +82 -27
- data/src/core/lib/channel/promise_based_filter.cc +2 -8
- data/src/core/lib/debug/trace.cc +16 -7
- data/src/core/lib/debug/trace.h +12 -4
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +8 -26
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +0 -1
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +0 -29
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.h +0 -3
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +6 -1
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +3 -0
- data/src/core/lib/event_engine/shim.cc +2 -0
- data/src/core/lib/event_engine/trace.cc +1 -0
- data/src/core/lib/event_engine/trace.h +6 -0
- data/src/core/lib/experiments/experiments.cc +3 -0
- data/src/core/lib/experiments/experiments.h +4 -1
- data/src/core/lib/gpr/posix/time.cc +5 -0
- data/src/core/lib/gprpp/status_helper.cc +2 -2
- data/src/core/lib/gprpp/validation_errors.cc +8 -3
- data/src/core/lib/gprpp/validation_errors.h +16 -9
- data/src/core/lib/iomgr/buffer_list.h +0 -1
- data/src/core/lib/iomgr/socket_utils_posix.cc +3 -0
- data/src/core/lib/iomgr/socket_utils_posix.h +3 -0
- data/src/core/lib/iomgr/tcp_client_posix.cc +4 -0
- data/src/core/lib/iomgr/tcp_server_posix.cc +14 -39
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +0 -12
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +0 -21
- data/src/core/lib/iomgr/timer_generic.cc +17 -16
- data/src/core/lib/json/json.h +61 -113
- data/src/core/lib/json/json_object_loader.cc +20 -20
- data/src/core/lib/json/json_object_loader.h +8 -3
- data/src/core/lib/json/json_reader.cc +58 -38
- data/src/core/lib/json/json_reader.h +34 -0
- data/src/core/lib/json/json_util.cc +6 -6
- data/src/core/lib/json/json_util.h +5 -4
- data/src/core/lib/json/json_writer.cc +19 -19
- data/src/core/lib/json/json_writer.h +33 -0
- data/src/core/lib/load_balancing/lb_policy_registry.cc +7 -7
- data/src/core/lib/promise/pipe.h +7 -0
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +35 -37
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +60 -62
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +22 -21
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +28 -27
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +4 -2
- data/src/core/lib/security/credentials/jwt/json_token.cc +6 -4
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +8 -5
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +39 -38
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +17 -16
- data/src/core/lib/security/util/json_util.cc +5 -5
- data/src/core/lib/service_config/service_config_impl.cc +11 -5
- data/src/core/lib/slice/slice.h +2 -0
- data/src/core/lib/surface/call.cc +71 -26
- data/src/core/lib/surface/call.h +1 -5
- data/src/core/lib/surface/completion_queue.cc +2 -1
- data/src/core/lib/surface/server.cc +47 -19
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/batch_builder.h +9 -1
- data/src/core/lib/transport/metadata_batch.h +2 -59
- data/src/core/lib/transport/metadata_compression_traits.h +67 -0
- data/src/core/lib/transport/simple_slice_based_metadata.h +48 -0
- data/src/core/lib/transport/transport.h +3 -0
- data/src/core/plugin_registry/grpc_plugin_registry.cc +2 -4
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/abseil-cpp/absl/base/config.h +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio_mem.c +33 -47
- data/third_party/boringssl-with-bazel/src/crypto/bio/fd.c +7 -4
- data/third_party/boringssl-with-bazel/src/crypto/kyber/internal.h +32 -2
- data/third_party/boringssl-with-bazel/src/crypto/kyber/keccak.c +11 -12
- data/third_party/boringssl-with-bazel/src/crypto/kyber/kyber.c +826 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +10 -12
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/voprf.c +8 -10
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_dir.c +2 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +2 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/policy.c +18 -14
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +17 -21
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +7 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +3 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +1 -72
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +4 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +4 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +7 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +4 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +8 -8
- data/third_party/boringssl-with-bazel/src/include/openssl/kyber.h +128 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/obj.h +8 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/stack.h +8 -12
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +1 -10
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +9 -2
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +17 -17
- data/third_party/boringssl-with-bazel/src/ssl/ssl_asn1.cc +8 -4
- data/third_party/boringssl-with-bazel/src/ssl/ssl_file.cc +2 -2
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +72 -5
- data/third_party/boringssl-with-bazel/src/ssl/ssl_session.cc +19 -21
- data/third_party/boringssl-with-bazel/src/ssl/tls13_both.cc +2 -1
- data/third_party/upb/upb/{table_internal.h → alloc.h} +6 -6
- data/third_party/upb/upb/arena.h +4 -193
- data/third_party/upb/upb/array.h +4 -51
- data/third_party/upb/upb/base/descriptor_constants.h +104 -0
- data/third_party/upb/upb/base/log2.h +57 -0
- data/third_party/upb/upb/{status.c → base/status.c} +2 -7
- data/third_party/upb/upb/base/status.h +66 -0
- data/third_party/upb/upb/base/string_view.h +75 -0
- data/third_party/upb/upb/{array.c → collections/array.c} +67 -36
- data/third_party/upb/upb/collections/array.h +85 -0
- data/third_party/upb/upb/collections/array_internal.h +135 -0
- data/third_party/upb/upb/{map.c → collections/map.c} +53 -26
- data/third_party/upb/upb/collections/map.h +135 -0
- data/third_party/upb/upb/collections/map_gencode_util.h +78 -0
- data/third_party/upb/upb/collections/map_internal.h +170 -0
- data/third_party/upb/upb/collections/map_sorter.c +166 -0
- data/third_party/upb/upb/collections/map_sorter_internal.h +109 -0
- data/third_party/upb/upb/{message_value.h → collections/message_value.h} +12 -13
- data/third_party/upb/upb/decode.h +3 -62
- data/third_party/upb/upb/def.h +4 -384
- data/third_party/upb/upb/def.hpp +3 -411
- data/third_party/upb/upb/encode.h +3 -48
- data/third_party/upb/upb/extension_registry.h +3 -52
- data/third_party/upb/upb/{table.c → hash/common.c} +52 -110
- data/third_party/upb/upb/hash/common.h +199 -0
- data/third_party/upb/upb/hash/int_table.h +102 -0
- data/third_party/upb/upb/hash/str_table.h +161 -0
- data/third_party/upb/upb/{json_decode.c → json/decode.c} +63 -98
- data/third_party/upb/upb/json/decode.h +52 -0
- data/third_party/upb/upb/{json_encode.c → json/encode.c} +69 -45
- data/third_party/upb/upb/json/encode.h +70 -0
- data/third_party/upb/upb/json_decode.h +4 -15
- data/third_party/upb/upb/json_encode.h +4 -33
- data/third_party/upb/upb/lex/atoi.c +68 -0
- data/third_party/upb/upb/lex/atoi.h +53 -0
- data/third_party/upb/upb/{upb.c → lex/round_trip.c} +2 -11
- data/third_party/upb/upb/{internal/upb.h → lex/round_trip.h} +17 -30
- data/third_party/upb/upb/lex/strtod.c +97 -0
- data/third_party/upb/upb/lex/strtod.h +46 -0
- data/third_party/upb/upb/lex/unicode.c +57 -0
- data/third_party/upb/upb/lex/unicode.h +77 -0
- data/third_party/upb/upb/map.h +4 -85
- data/third_party/upb/upb/mem/alloc.c +47 -0
- data/third_party/upb/upb/mem/alloc.h +98 -0
- data/third_party/upb/upb/mem/arena.c +367 -0
- data/third_party/upb/upb/mem/arena.h +160 -0
- data/third_party/upb/upb/mem/arena_internal.h +114 -0
- data/third_party/upb/upb/message/accessors.c +68 -0
- data/third_party/upb/upb/message/accessors.h +379 -0
- data/third_party/upb/upb/message/accessors_internal.h +325 -0
- data/third_party/upb/upb/message/extension_internal.h +83 -0
- data/third_party/upb/upb/message/internal.h +135 -0
- data/third_party/upb/upb/message/message.c +180 -0
- data/third_party/upb/upb/message/message.h +69 -0
- data/third_party/upb/upb/mini_table/common.c +128 -0
- data/third_party/upb/upb/mini_table/common.h +170 -0
- data/third_party/upb/upb/mini_table/common_internal.h +111 -0
- data/third_party/upb/upb/{mini_table.c → mini_table/decode.c} +513 -533
- data/third_party/upb/upb/mini_table/decode.h +179 -0
- data/third_party/upb/upb/mini_table/encode.c +300 -0
- data/third_party/upb/upb/mini_table/encode_internal.h +111 -0
- data/third_party/upb/upb/{mini_table.hpp → mini_table/encode_internal.hpp} +32 -8
- data/third_party/upb/upb/mini_table/enum_internal.h +88 -0
- data/third_party/upb/upb/mini_table/extension_internal.h +47 -0
- data/third_party/upb/upb/{extension_registry.c → mini_table/extension_registry.c} +27 -24
- data/third_party/upb/upb/mini_table/extension_registry.h +104 -0
- data/third_party/upb/upb/mini_table/field_internal.h +192 -0
- data/third_party/upb/upb/mini_table/file_internal.h +47 -0
- data/third_party/upb/upb/mini_table/message_internal.h +136 -0
- data/third_party/upb/upb/mini_table/sub_internal.h +38 -0
- data/third_party/upb/upb/mini_table/types.h +40 -0
- data/third_party/upb/upb/mini_table.h +4 -157
- data/third_party/upb/upb/msg.h +3 -38
- data/third_party/upb/upb/port/atomic.h +101 -0
- data/third_party/upb/upb/{port_def.inc → port/def.inc} +94 -27
- data/third_party/upb/upb/{port_undef.inc → port/undef.inc} +13 -3
- data/third_party/upb/upb/{internal → port}/vsnprintf_compat.h +5 -7
- data/third_party/upb/upb/reflection/common.h +67 -0
- data/third_party/upb/upb/reflection/def.h +42 -0
- data/third_party/upb/upb/reflection/def.hpp +610 -0
- data/third_party/upb/upb/reflection/def_builder.c +357 -0
- data/third_party/upb/upb/reflection/def_builder_internal.h +157 -0
- data/third_party/upb/upb/reflection/def_pool.c +462 -0
- data/third_party/upb/upb/reflection/def_pool.h +108 -0
- data/third_party/upb/upb/reflection/def_pool_internal.h +77 -0
- data/third_party/upb/upb/reflection/def_type.c +50 -0
- data/third_party/upb/upb/reflection/def_type.h +81 -0
- data/third_party/upb/upb/reflection/desc_state.c +53 -0
- data/third_party/upb/upb/reflection/desc_state_internal.h +64 -0
- data/third_party/upb/upb/reflection/enum_def.c +310 -0
- data/third_party/upb/upb/reflection/enum_def.h +80 -0
- data/third_party/upb/upb/reflection/enum_def_internal.h +56 -0
- data/third_party/upb/upb/reflection/enum_reserved_range.c +84 -0
- data/third_party/upb/upb/reflection/enum_reserved_range.h +51 -0
- data/third_party/upb/upb/reflection/enum_reserved_range_internal.h +55 -0
- data/third_party/upb/upb/reflection/enum_value_def.c +144 -0
- data/third_party/upb/upb/reflection/enum_value_def.h +57 -0
- data/third_party/upb/upb/reflection/enum_value_def_internal.h +57 -0
- data/third_party/upb/upb/reflection/extension_range.c +93 -0
- data/third_party/upb/upb/reflection/extension_range.h +55 -0
- data/third_party/upb/upb/reflection/extension_range_internal.h +54 -0
- data/third_party/upb/upb/reflection/field_def.c +930 -0
- data/third_party/upb/upb/reflection/field_def.h +91 -0
- data/third_party/upb/upb/reflection/field_def_internal.h +76 -0
- data/third_party/upb/upb/reflection/file_def.c +370 -0
- data/third_party/upb/upb/reflection/file_def.h +77 -0
- data/third_party/upb/upb/reflection/file_def_internal.h +57 -0
- data/third_party/upb/upb/reflection/message.c +233 -0
- data/third_party/upb/upb/reflection/message.h +102 -0
- data/third_party/upb/upb/reflection/message.hpp +37 -0
- data/third_party/upb/upb/reflection/message_def.c +718 -0
- data/third_party/upb/upb/reflection/message_def.h +174 -0
- data/third_party/upb/upb/reflection/message_def_internal.h +63 -0
- data/third_party/upb/upb/reflection/message_reserved_range.c +81 -0
- data/third_party/upb/upb/reflection/message_reserved_range.h +51 -0
- data/third_party/upb/upb/reflection/message_reserved_range_internal.h +55 -0
- data/third_party/upb/upb/reflection/method_def.c +124 -0
- data/third_party/upb/upb/reflection/method_def.h +59 -0
- data/third_party/upb/upb/reflection/method_def_internal.h +53 -0
- data/third_party/upb/upb/reflection/oneof_def.c +226 -0
- data/third_party/upb/upb/reflection/oneof_def.h +66 -0
- data/third_party/upb/upb/reflection/oneof_def_internal.h +57 -0
- data/third_party/upb/upb/reflection/service_def.c +128 -0
- data/third_party/upb/upb/reflection/service_def.h +60 -0
- data/third_party/upb/upb/reflection/service_def_internal.h +53 -0
- data/third_party/upb/upb/reflection.h +4 -78
- data/third_party/upb/upb/reflection.hpp +3 -7
- data/third_party/upb/upb/status.h +4 -34
- data/third_party/upb/upb/{collections.h → string_view.h} +7 -7
- data/third_party/upb/upb/{text_encode.c → text/encode.c} +74 -70
- data/third_party/upb/upb/text/encode.h +69 -0
- data/third_party/upb/upb/text_encode.h +4 -32
- data/third_party/upb/upb/upb.h +6 -151
- data/third_party/upb/upb/upb.hpp +10 -18
- data/third_party/upb/upb/wire/common.h +44 -0
- data/third_party/upb/upb/wire/common_internal.h +50 -0
- data/third_party/upb/upb/wire/decode.c +1343 -0
- data/third_party/upb/upb/wire/decode.h +108 -0
- data/third_party/upb/upb/{decode_fast.c → wire/decode_fast.c} +184 -225
- data/third_party/upb/upb/{decode_fast.h → wire/decode_fast.h} +21 -7
- data/third_party/upb/upb/{internal/decode.h → wire/decode_internal.h} +44 -92
- data/third_party/upb/upb/{encode.c → wire/encode.c} +114 -95
- data/third_party/upb/upb/wire/encode.h +92 -0
- data/third_party/upb/upb/wire/eps_copy_input_stream.c +39 -0
- data/third_party/upb/upb/wire/eps_copy_input_stream.h +425 -0
- data/third_party/upb/upb/wire/reader.c +67 -0
- data/third_party/upb/upb/wire/reader.h +227 -0
- data/third_party/upb/upb/wire/swap_internal.h +63 -0
- data/third_party/upb/upb/wire/types.h +41 -0
- data/third_party/{upb/third_party/utf8_range → utf8_range}/range2-neon.c +1 -1
- data/third_party/{upb/third_party/utf8_range → utf8_range}/utf8_range.h +12 -0
- metadata +155 -40
- data/src/core/ext/transport/chttp2/transport/context_list.cc +0 -71
- data/src/core/ext/transport/chttp2/transport/context_list.h +0 -54
- data/third_party/upb/upb/arena.c +0 -277
- data/third_party/upb/upb/decode.c +0 -1221
- data/third_party/upb/upb/def.c +0 -3269
- data/third_party/upb/upb/internal/table.h +0 -385
- data/third_party/upb/upb/msg.c +0 -368
- data/third_party/upb/upb/msg_internal.h +0 -837
- data/third_party/upb/upb/reflection.c +0 -323
- /data/third_party/{upb/third_party/utf8_range → utf8_range}/naive.c +0 -0
- /data/third_party/{upb/third_party/utf8_range → utf8_range}/range2-sse.c +0 -0
@@ -0,0 +1,930 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2009-2021, Google LLC
|
3
|
+
* All rights reserved.
|
4
|
+
*
|
5
|
+
* Redistribution and use in source and binary forms, with or without
|
6
|
+
* modification, are permitted provided that the following conditions are met:
|
7
|
+
* * Redistributions of source code must retain the above copyright
|
8
|
+
* notice, this list of conditions and the following disclaimer.
|
9
|
+
* * Redistributions in binary form must reproduce the above copyright
|
10
|
+
* notice, this list of conditions and the following disclaimer in the
|
11
|
+
* documentation and/or other materials provided with the distribution.
|
12
|
+
* * Neither the name of Google LLC nor the
|
13
|
+
* names of its contributors may be used to endorse or promote products
|
14
|
+
* derived from this software without specific prior written permission.
|
15
|
+
*
|
16
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
17
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
18
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
19
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL Google LLC BE LIABLE FOR ANY DIRECT,
|
20
|
+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
21
|
+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
22
|
+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
23
|
+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
24
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
25
|
+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
*/
|
27
|
+
|
28
|
+
#include <ctype.h>
|
29
|
+
#include <errno.h>
|
30
|
+
|
31
|
+
#include "upb/mini_table/decode.h"
|
32
|
+
#include "upb/reflection/def.h"
|
33
|
+
#include "upb/reflection/def_builder_internal.h"
|
34
|
+
#include "upb/reflection/def_pool.h"
|
35
|
+
#include "upb/reflection/def_type.h"
|
36
|
+
#include "upb/reflection/desc_state_internal.h"
|
37
|
+
#include "upb/reflection/enum_def_internal.h"
|
38
|
+
#include "upb/reflection/enum_value_def_internal.h"
|
39
|
+
#include "upb/reflection/field_def_internal.h"
|
40
|
+
#include "upb/reflection/file_def_internal.h"
|
41
|
+
#include "upb/reflection/message_def_internal.h"
|
42
|
+
#include "upb/reflection/oneof_def_internal.h"
|
43
|
+
|
44
|
+
// Must be last.
|
45
|
+
#include "upb/port/def.inc"
|
46
|
+
|
47
|
+
#define UPB_FIELD_TYPE_UNSPECIFIED 0
|
48
|
+
|
49
|
+
typedef struct {
|
50
|
+
size_t len;
|
51
|
+
char str[1]; // Null-terminated string data follows.
|
52
|
+
} str_t;
|
53
|
+
|
54
|
+
struct upb_FieldDef {
|
55
|
+
const UPB_DESC(FieldOptions) * opts;
|
56
|
+
const upb_FileDef* file;
|
57
|
+
const upb_MessageDef* msgdef;
|
58
|
+
const char* full_name;
|
59
|
+
const char* json_name;
|
60
|
+
union {
|
61
|
+
int64_t sint;
|
62
|
+
uint64_t uint;
|
63
|
+
double dbl;
|
64
|
+
float flt;
|
65
|
+
bool boolean;
|
66
|
+
str_t* str;
|
67
|
+
void* msg; // Always NULL.
|
68
|
+
} defaultval;
|
69
|
+
union {
|
70
|
+
const upb_OneofDef* oneof;
|
71
|
+
const upb_MessageDef* extension_scope;
|
72
|
+
} scope;
|
73
|
+
union {
|
74
|
+
const upb_MessageDef* msgdef;
|
75
|
+
const upb_EnumDef* enumdef;
|
76
|
+
const UPB_DESC(FieldDescriptorProto) * unresolved;
|
77
|
+
} sub;
|
78
|
+
uint32_t number_;
|
79
|
+
uint16_t index_;
|
80
|
+
uint16_t layout_index; // Index into msgdef->layout->fields or file->exts
|
81
|
+
bool has_default;
|
82
|
+
bool has_json_name;
|
83
|
+
bool has_presence;
|
84
|
+
bool is_extension;
|
85
|
+
bool is_packed;
|
86
|
+
bool is_proto3_optional;
|
87
|
+
upb_FieldType type_;
|
88
|
+
upb_Label label_;
|
89
|
+
#if UINTPTR_MAX == 0xffffffff
|
90
|
+
uint32_t padding; // Increase size to a multiple of 8.
|
91
|
+
#endif
|
92
|
+
};
|
93
|
+
|
94
|
+
upb_FieldDef* _upb_FieldDef_At(const upb_FieldDef* f, int i) {
|
95
|
+
return (upb_FieldDef*)&f[i];
|
96
|
+
}
|
97
|
+
|
98
|
+
const UPB_DESC(FieldOptions) * upb_FieldDef_Options(const upb_FieldDef* f) {
|
99
|
+
return f->opts;
|
100
|
+
}
|
101
|
+
|
102
|
+
bool upb_FieldDef_HasOptions(const upb_FieldDef* f) {
|
103
|
+
return f->opts != (void*)kUpbDefOptDefault;
|
104
|
+
}
|
105
|
+
|
106
|
+
const char* upb_FieldDef_FullName(const upb_FieldDef* f) {
|
107
|
+
return f->full_name;
|
108
|
+
}
|
109
|
+
|
110
|
+
upb_CType upb_FieldDef_CType(const upb_FieldDef* f) {
|
111
|
+
switch (f->type_) {
|
112
|
+
case kUpb_FieldType_Double:
|
113
|
+
return kUpb_CType_Double;
|
114
|
+
case kUpb_FieldType_Float:
|
115
|
+
return kUpb_CType_Float;
|
116
|
+
case kUpb_FieldType_Int64:
|
117
|
+
case kUpb_FieldType_SInt64:
|
118
|
+
case kUpb_FieldType_SFixed64:
|
119
|
+
return kUpb_CType_Int64;
|
120
|
+
case kUpb_FieldType_Int32:
|
121
|
+
case kUpb_FieldType_SFixed32:
|
122
|
+
case kUpb_FieldType_SInt32:
|
123
|
+
return kUpb_CType_Int32;
|
124
|
+
case kUpb_FieldType_UInt64:
|
125
|
+
case kUpb_FieldType_Fixed64:
|
126
|
+
return kUpb_CType_UInt64;
|
127
|
+
case kUpb_FieldType_UInt32:
|
128
|
+
case kUpb_FieldType_Fixed32:
|
129
|
+
return kUpb_CType_UInt32;
|
130
|
+
case kUpb_FieldType_Enum:
|
131
|
+
return kUpb_CType_Enum;
|
132
|
+
case kUpb_FieldType_Bool:
|
133
|
+
return kUpb_CType_Bool;
|
134
|
+
case kUpb_FieldType_String:
|
135
|
+
return kUpb_CType_String;
|
136
|
+
case kUpb_FieldType_Bytes:
|
137
|
+
return kUpb_CType_Bytes;
|
138
|
+
case kUpb_FieldType_Group:
|
139
|
+
case kUpb_FieldType_Message:
|
140
|
+
return kUpb_CType_Message;
|
141
|
+
}
|
142
|
+
UPB_UNREACHABLE();
|
143
|
+
}
|
144
|
+
|
145
|
+
upb_FieldType upb_FieldDef_Type(const upb_FieldDef* f) { return f->type_; }
|
146
|
+
|
147
|
+
uint32_t upb_FieldDef_Index(const upb_FieldDef* f) { return f->index_; }
|
148
|
+
|
149
|
+
upb_Label upb_FieldDef_Label(const upb_FieldDef* f) { return f->label_; }
|
150
|
+
|
151
|
+
uint32_t upb_FieldDef_Number(const upb_FieldDef* f) { return f->number_; }
|
152
|
+
|
153
|
+
bool upb_FieldDef_IsExtension(const upb_FieldDef* f) { return f->is_extension; }
|
154
|
+
|
155
|
+
bool upb_FieldDef_IsPacked(const upb_FieldDef* f) { return f->is_packed; }
|
156
|
+
|
157
|
+
const char* upb_FieldDef_Name(const upb_FieldDef* f) {
|
158
|
+
return _upb_DefBuilder_FullToShort(f->full_name);
|
159
|
+
}
|
160
|
+
|
161
|
+
const char* upb_FieldDef_JsonName(const upb_FieldDef* f) {
|
162
|
+
return f->json_name;
|
163
|
+
}
|
164
|
+
|
165
|
+
bool upb_FieldDef_HasJsonName(const upb_FieldDef* f) {
|
166
|
+
return f->has_json_name;
|
167
|
+
}
|
168
|
+
|
169
|
+
const upb_FileDef* upb_FieldDef_File(const upb_FieldDef* f) { return f->file; }
|
170
|
+
|
171
|
+
const upb_MessageDef* upb_FieldDef_ContainingType(const upb_FieldDef* f) {
|
172
|
+
return f->msgdef;
|
173
|
+
}
|
174
|
+
|
175
|
+
const upb_MessageDef* upb_FieldDef_ExtensionScope(const upb_FieldDef* f) {
|
176
|
+
return f->is_extension ? f->scope.extension_scope : NULL;
|
177
|
+
}
|
178
|
+
|
179
|
+
const upb_OneofDef* upb_FieldDef_ContainingOneof(const upb_FieldDef* f) {
|
180
|
+
return f->is_extension ? NULL : f->scope.oneof;
|
181
|
+
}
|
182
|
+
|
183
|
+
const upb_OneofDef* upb_FieldDef_RealContainingOneof(const upb_FieldDef* f) {
|
184
|
+
const upb_OneofDef* oneof = upb_FieldDef_ContainingOneof(f);
|
185
|
+
if (!oneof || upb_OneofDef_IsSynthetic(oneof)) return NULL;
|
186
|
+
return oneof;
|
187
|
+
}
|
188
|
+
|
189
|
+
upb_MessageValue upb_FieldDef_Default(const upb_FieldDef* f) {
|
190
|
+
upb_MessageValue ret;
|
191
|
+
|
192
|
+
if (upb_FieldDef_IsRepeated(f) || upb_FieldDef_IsSubMessage(f)) {
|
193
|
+
return (upb_MessageValue){.msg_val = NULL};
|
194
|
+
}
|
195
|
+
|
196
|
+
switch (upb_FieldDef_CType(f)) {
|
197
|
+
case kUpb_CType_Bool:
|
198
|
+
return (upb_MessageValue){.bool_val = f->defaultval.boolean};
|
199
|
+
case kUpb_CType_Int64:
|
200
|
+
return (upb_MessageValue){.int64_val = f->defaultval.sint};
|
201
|
+
case kUpb_CType_UInt64:
|
202
|
+
return (upb_MessageValue){.uint64_val = f->defaultval.uint};
|
203
|
+
case kUpb_CType_Enum:
|
204
|
+
case kUpb_CType_Int32:
|
205
|
+
return (upb_MessageValue){.int32_val = (int32_t)f->defaultval.sint};
|
206
|
+
case kUpb_CType_UInt32:
|
207
|
+
return (upb_MessageValue){.uint32_val = (uint32_t)f->defaultval.uint};
|
208
|
+
case kUpb_CType_Float:
|
209
|
+
return (upb_MessageValue){.float_val = f->defaultval.flt};
|
210
|
+
case kUpb_CType_Double:
|
211
|
+
return (upb_MessageValue){.double_val = f->defaultval.dbl};
|
212
|
+
case kUpb_CType_String:
|
213
|
+
case kUpb_CType_Bytes: {
|
214
|
+
str_t* str = f->defaultval.str;
|
215
|
+
if (str) {
|
216
|
+
return (upb_MessageValue){
|
217
|
+
.str_val = (upb_StringView){.data = str->str, .size = str->len}};
|
218
|
+
} else {
|
219
|
+
return (upb_MessageValue){
|
220
|
+
.str_val = (upb_StringView){.data = NULL, .size = 0}};
|
221
|
+
}
|
222
|
+
}
|
223
|
+
default:
|
224
|
+
UPB_UNREACHABLE();
|
225
|
+
}
|
226
|
+
|
227
|
+
return ret;
|
228
|
+
}
|
229
|
+
|
230
|
+
const upb_MessageDef* upb_FieldDef_MessageSubDef(const upb_FieldDef* f) {
|
231
|
+
return upb_FieldDef_CType(f) == kUpb_CType_Message ? f->sub.msgdef : NULL;
|
232
|
+
}
|
233
|
+
|
234
|
+
const upb_EnumDef* upb_FieldDef_EnumSubDef(const upb_FieldDef* f) {
|
235
|
+
return upb_FieldDef_CType(f) == kUpb_CType_Enum ? f->sub.enumdef : NULL;
|
236
|
+
}
|
237
|
+
|
238
|
+
const upb_MiniTableField* upb_FieldDef_MiniTable(const upb_FieldDef* f) {
|
239
|
+
if (upb_FieldDef_IsExtension(f)) {
|
240
|
+
const upb_FileDef* file = upb_FieldDef_File(f);
|
241
|
+
return (upb_MiniTableField*)_upb_FileDef_ExtensionMiniTable(
|
242
|
+
file, f->layout_index);
|
243
|
+
} else {
|
244
|
+
const upb_MiniTable* layout = upb_MessageDef_MiniTable(f->msgdef);
|
245
|
+
return &layout->fields[f->layout_index];
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
const upb_MiniTableExtension* _upb_FieldDef_ExtensionMiniTable(
|
250
|
+
const upb_FieldDef* f) {
|
251
|
+
UPB_ASSERT(upb_FieldDef_IsExtension(f));
|
252
|
+
const upb_FileDef* file = upb_FieldDef_File(f);
|
253
|
+
return _upb_FileDef_ExtensionMiniTable(file, f->layout_index);
|
254
|
+
}
|
255
|
+
|
256
|
+
bool _upb_FieldDef_IsClosedEnum(const upb_FieldDef* f) {
|
257
|
+
if (f->type_ != kUpb_FieldType_Enum) return false;
|
258
|
+
return upb_EnumDef_IsClosed(f->sub.enumdef);
|
259
|
+
}
|
260
|
+
|
261
|
+
bool _upb_FieldDef_IsProto3Optional(const upb_FieldDef* f) {
|
262
|
+
return f->is_proto3_optional;
|
263
|
+
}
|
264
|
+
|
265
|
+
int _upb_FieldDef_LayoutIndex(const upb_FieldDef* f) { return f->layout_index; }
|
266
|
+
|
267
|
+
uint64_t _upb_FieldDef_Modifiers(const upb_FieldDef* f) {
|
268
|
+
uint64_t out = f->is_packed ? kUpb_FieldModifier_IsPacked : 0;
|
269
|
+
|
270
|
+
switch (f->label_) {
|
271
|
+
case kUpb_Label_Optional:
|
272
|
+
if (!upb_FieldDef_HasPresence(f)) {
|
273
|
+
out |= kUpb_FieldModifier_IsProto3Singular;
|
274
|
+
}
|
275
|
+
break;
|
276
|
+
case kUpb_Label_Repeated:
|
277
|
+
out |= kUpb_FieldModifier_IsRepeated;
|
278
|
+
break;
|
279
|
+
case kUpb_Label_Required:
|
280
|
+
out |= kUpb_FieldModifier_IsRequired;
|
281
|
+
break;
|
282
|
+
}
|
283
|
+
|
284
|
+
if (_upb_FieldDef_IsClosedEnum(f)) {
|
285
|
+
out |= kUpb_FieldModifier_IsClosedEnum;
|
286
|
+
}
|
287
|
+
return out;
|
288
|
+
}
|
289
|
+
|
290
|
+
bool upb_FieldDef_HasDefault(const upb_FieldDef* f) { return f->has_default; }
|
291
|
+
bool upb_FieldDef_HasPresence(const upb_FieldDef* f) { return f->has_presence; }
|
292
|
+
|
293
|
+
bool upb_FieldDef_HasSubDef(const upb_FieldDef* f) {
|
294
|
+
return upb_FieldDef_IsSubMessage(f) ||
|
295
|
+
upb_FieldDef_CType(f) == kUpb_CType_Enum;
|
296
|
+
}
|
297
|
+
|
298
|
+
bool upb_FieldDef_IsMap(const upb_FieldDef* f) {
|
299
|
+
return upb_FieldDef_IsRepeated(f) && upb_FieldDef_IsSubMessage(f) &&
|
300
|
+
upb_MessageDef_IsMapEntry(upb_FieldDef_MessageSubDef(f));
|
301
|
+
}
|
302
|
+
|
303
|
+
bool upb_FieldDef_IsOptional(const upb_FieldDef* f) {
|
304
|
+
return upb_FieldDef_Label(f) == kUpb_Label_Optional;
|
305
|
+
}
|
306
|
+
|
307
|
+
bool upb_FieldDef_IsPrimitive(const upb_FieldDef* f) {
|
308
|
+
return !upb_FieldDef_IsString(f) && !upb_FieldDef_IsSubMessage(f);
|
309
|
+
}
|
310
|
+
|
311
|
+
bool upb_FieldDef_IsRepeated(const upb_FieldDef* f) {
|
312
|
+
return upb_FieldDef_Label(f) == kUpb_Label_Repeated;
|
313
|
+
}
|
314
|
+
|
315
|
+
bool upb_FieldDef_IsRequired(const upb_FieldDef* f) {
|
316
|
+
return upb_FieldDef_Label(f) == kUpb_Label_Required;
|
317
|
+
}
|
318
|
+
|
319
|
+
bool upb_FieldDef_IsString(const upb_FieldDef* f) {
|
320
|
+
return upb_FieldDef_CType(f) == kUpb_CType_String ||
|
321
|
+
upb_FieldDef_CType(f) == kUpb_CType_Bytes;
|
322
|
+
}
|
323
|
+
|
324
|
+
bool upb_FieldDef_IsSubMessage(const upb_FieldDef* f) {
|
325
|
+
return upb_FieldDef_CType(f) == kUpb_CType_Message;
|
326
|
+
}
|
327
|
+
|
328
|
+
static bool between(int32_t x, int32_t low, int32_t high) {
|
329
|
+
return x >= low && x <= high;
|
330
|
+
}
|
331
|
+
|
332
|
+
bool upb_FieldDef_checklabel(int32_t label) { return between(label, 1, 3); }
|
333
|
+
bool upb_FieldDef_checktype(int32_t type) { return between(type, 1, 11); }
|
334
|
+
bool upb_FieldDef_checkintfmt(int32_t fmt) { return between(fmt, 1, 3); }
|
335
|
+
|
336
|
+
bool upb_FieldDef_checkdescriptortype(int32_t type) {
|
337
|
+
return between(type, 1, 18);
|
338
|
+
}
|
339
|
+
|
340
|
+
static bool streql2(const char* a, size_t n, const char* b) {
|
341
|
+
return n == strlen(b) && memcmp(a, b, n) == 0;
|
342
|
+
}
|
343
|
+
|
344
|
+
// Implement the transformation as described in the spec:
|
345
|
+
// 1. upper case all letters after an underscore.
|
346
|
+
// 2. remove all underscores.
|
347
|
+
static char* make_json_name(const char* name, size_t size, upb_Arena* a) {
|
348
|
+
char* out = upb_Arena_Malloc(a, size + 1); // +1 is to add a trailing '\0'
|
349
|
+
if (out == NULL) return NULL;
|
350
|
+
|
351
|
+
bool ucase_next = false;
|
352
|
+
char* des = out;
|
353
|
+
for (size_t i = 0; i < size; i++) {
|
354
|
+
if (name[i] == '_') {
|
355
|
+
ucase_next = true;
|
356
|
+
} else {
|
357
|
+
*des++ = ucase_next ? toupper(name[i]) : name[i];
|
358
|
+
ucase_next = false;
|
359
|
+
}
|
360
|
+
}
|
361
|
+
*des++ = '\0';
|
362
|
+
return out;
|
363
|
+
}
|
364
|
+
|
365
|
+
static str_t* newstr(upb_DefBuilder* ctx, const char* data, size_t len) {
|
366
|
+
str_t* ret = _upb_DefBuilder_Alloc(ctx, sizeof(*ret) + len);
|
367
|
+
if (!ret) _upb_DefBuilder_OomErr(ctx);
|
368
|
+
ret->len = len;
|
369
|
+
if (len) memcpy(ret->str, data, len);
|
370
|
+
ret->str[len] = '\0';
|
371
|
+
return ret;
|
372
|
+
}
|
373
|
+
|
374
|
+
static str_t* unescape(upb_DefBuilder* ctx, const upb_FieldDef* f,
|
375
|
+
const char* data, size_t len) {
|
376
|
+
// Size here is an upper bound; escape sequences could ultimately shrink it.
|
377
|
+
str_t* ret = _upb_DefBuilder_Alloc(ctx, sizeof(*ret) + len);
|
378
|
+
char* dst = &ret->str[0];
|
379
|
+
const char* src = data;
|
380
|
+
const char* end = data + len;
|
381
|
+
|
382
|
+
while (src < end) {
|
383
|
+
if (*src == '\\') {
|
384
|
+
src++;
|
385
|
+
*dst++ = _upb_DefBuilder_ParseEscape(ctx, f, &src, end);
|
386
|
+
} else {
|
387
|
+
*dst++ = *src++;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
ret->len = dst - &ret->str[0];
|
392
|
+
return ret;
|
393
|
+
}
|
394
|
+
|
395
|
+
static void parse_default(upb_DefBuilder* ctx, const char* str, size_t len,
|
396
|
+
upb_FieldDef* f) {
|
397
|
+
char* end;
|
398
|
+
char nullz[64];
|
399
|
+
errno = 0;
|
400
|
+
|
401
|
+
switch (upb_FieldDef_CType(f)) {
|
402
|
+
case kUpb_CType_Int32:
|
403
|
+
case kUpb_CType_Int64:
|
404
|
+
case kUpb_CType_UInt32:
|
405
|
+
case kUpb_CType_UInt64:
|
406
|
+
case kUpb_CType_Double:
|
407
|
+
case kUpb_CType_Float:
|
408
|
+
// Standard C number parsing functions expect null-terminated strings.
|
409
|
+
if (len >= sizeof(nullz) - 1) {
|
410
|
+
_upb_DefBuilder_Errf(ctx, "Default too long: %.*s", (int)len, str);
|
411
|
+
}
|
412
|
+
memcpy(nullz, str, len);
|
413
|
+
nullz[len] = '\0';
|
414
|
+
str = nullz;
|
415
|
+
break;
|
416
|
+
default:
|
417
|
+
break;
|
418
|
+
}
|
419
|
+
|
420
|
+
switch (upb_FieldDef_CType(f)) {
|
421
|
+
case kUpb_CType_Int32: {
|
422
|
+
long val = strtol(str, &end, 0);
|
423
|
+
if (val > INT32_MAX || val < INT32_MIN || errno == ERANGE || *end) {
|
424
|
+
goto invalid;
|
425
|
+
}
|
426
|
+
f->defaultval.sint = val;
|
427
|
+
break;
|
428
|
+
}
|
429
|
+
case kUpb_CType_Enum: {
|
430
|
+
const upb_EnumDef* e = f->sub.enumdef;
|
431
|
+
const upb_EnumValueDef* ev =
|
432
|
+
upb_EnumDef_FindValueByNameWithSize(e, str, len);
|
433
|
+
if (!ev) {
|
434
|
+
goto invalid;
|
435
|
+
}
|
436
|
+
f->defaultval.sint = upb_EnumValueDef_Number(ev);
|
437
|
+
break;
|
438
|
+
}
|
439
|
+
case kUpb_CType_Int64: {
|
440
|
+
long long val = strtoll(str, &end, 0);
|
441
|
+
if (val > INT64_MAX || val < INT64_MIN || errno == ERANGE || *end) {
|
442
|
+
goto invalid;
|
443
|
+
}
|
444
|
+
f->defaultval.sint = val;
|
445
|
+
break;
|
446
|
+
}
|
447
|
+
case kUpb_CType_UInt32: {
|
448
|
+
unsigned long val = strtoul(str, &end, 0);
|
449
|
+
if (val > UINT32_MAX || errno == ERANGE || *end) {
|
450
|
+
goto invalid;
|
451
|
+
}
|
452
|
+
f->defaultval.uint = val;
|
453
|
+
break;
|
454
|
+
}
|
455
|
+
case kUpb_CType_UInt64: {
|
456
|
+
unsigned long long val = strtoull(str, &end, 0);
|
457
|
+
if (val > UINT64_MAX || errno == ERANGE || *end) {
|
458
|
+
goto invalid;
|
459
|
+
}
|
460
|
+
f->defaultval.uint = val;
|
461
|
+
break;
|
462
|
+
}
|
463
|
+
case kUpb_CType_Double: {
|
464
|
+
double val = strtod(str, &end);
|
465
|
+
if (errno == ERANGE || *end) {
|
466
|
+
goto invalid;
|
467
|
+
}
|
468
|
+
f->defaultval.dbl = val;
|
469
|
+
break;
|
470
|
+
}
|
471
|
+
case kUpb_CType_Float: {
|
472
|
+
float val = strtof(str, &end);
|
473
|
+
if (errno == ERANGE || *end) {
|
474
|
+
goto invalid;
|
475
|
+
}
|
476
|
+
f->defaultval.flt = val;
|
477
|
+
break;
|
478
|
+
}
|
479
|
+
case kUpb_CType_Bool: {
|
480
|
+
if (streql2(str, len, "false")) {
|
481
|
+
f->defaultval.boolean = false;
|
482
|
+
} else if (streql2(str, len, "true")) {
|
483
|
+
f->defaultval.boolean = true;
|
484
|
+
} else {
|
485
|
+
goto invalid;
|
486
|
+
}
|
487
|
+
break;
|
488
|
+
}
|
489
|
+
case kUpb_CType_String:
|
490
|
+
f->defaultval.str = newstr(ctx, str, len);
|
491
|
+
break;
|
492
|
+
case kUpb_CType_Bytes:
|
493
|
+
f->defaultval.str = unescape(ctx, f, str, len);
|
494
|
+
break;
|
495
|
+
case kUpb_CType_Message:
|
496
|
+
/* Should not have a default value. */
|
497
|
+
_upb_DefBuilder_Errf(ctx, "Message should not have a default (%s)",
|
498
|
+
upb_FieldDef_FullName(f));
|
499
|
+
}
|
500
|
+
|
501
|
+
return;
|
502
|
+
|
503
|
+
invalid:
|
504
|
+
_upb_DefBuilder_Errf(ctx, "Invalid default '%.*s' for field %s of type %d",
|
505
|
+
(int)len, str, upb_FieldDef_FullName(f),
|
506
|
+
(int)upb_FieldDef_Type(f));
|
507
|
+
}
|
508
|
+
|
509
|
+
static void set_default_default(upb_DefBuilder* ctx, upb_FieldDef* f) {
|
510
|
+
switch (upb_FieldDef_CType(f)) {
|
511
|
+
case kUpb_CType_Int32:
|
512
|
+
case kUpb_CType_Int64:
|
513
|
+
f->defaultval.sint = 0;
|
514
|
+
break;
|
515
|
+
case kUpb_CType_UInt64:
|
516
|
+
case kUpb_CType_UInt32:
|
517
|
+
f->defaultval.uint = 0;
|
518
|
+
break;
|
519
|
+
case kUpb_CType_Double:
|
520
|
+
case kUpb_CType_Float:
|
521
|
+
f->defaultval.dbl = 0;
|
522
|
+
break;
|
523
|
+
case kUpb_CType_String:
|
524
|
+
case kUpb_CType_Bytes:
|
525
|
+
f->defaultval.str = newstr(ctx, NULL, 0);
|
526
|
+
break;
|
527
|
+
case kUpb_CType_Bool:
|
528
|
+
f->defaultval.boolean = false;
|
529
|
+
break;
|
530
|
+
case kUpb_CType_Enum: {
|
531
|
+
const upb_EnumValueDef* v = upb_EnumDef_Value(f->sub.enumdef, 0);
|
532
|
+
f->defaultval.sint = upb_EnumValueDef_Number(v);
|
533
|
+
break;
|
534
|
+
}
|
535
|
+
case kUpb_CType_Message:
|
536
|
+
break;
|
537
|
+
}
|
538
|
+
}
|
539
|
+
|
540
|
+
static void _upb_FieldDef_Create(upb_DefBuilder* ctx, const char* prefix,
|
541
|
+
const UPB_DESC(FieldDescriptorProto) *
|
542
|
+
field_proto,
|
543
|
+
upb_MessageDef* m, upb_FieldDef* f) {
|
544
|
+
// Must happen before _upb_DefBuilder_Add()
|
545
|
+
f->file = _upb_DefBuilder_File(ctx);
|
546
|
+
|
547
|
+
if (!UPB_DESC(FieldDescriptorProto_has_name)(field_proto)) {
|
548
|
+
_upb_DefBuilder_Errf(ctx, "field has no name");
|
549
|
+
}
|
550
|
+
|
551
|
+
const upb_StringView name = UPB_DESC(FieldDescriptorProto_name)(field_proto);
|
552
|
+
|
553
|
+
f->full_name = _upb_DefBuilder_MakeFullName(ctx, prefix, name);
|
554
|
+
f->label_ = (int)UPB_DESC(FieldDescriptorProto_label)(field_proto);
|
555
|
+
f->number_ = UPB_DESC(FieldDescriptorProto_number)(field_proto);
|
556
|
+
f->is_proto3_optional =
|
557
|
+
UPB_DESC(FieldDescriptorProto_proto3_optional)(field_proto);
|
558
|
+
f->msgdef = m;
|
559
|
+
f->scope.oneof = NULL;
|
560
|
+
|
561
|
+
f->has_json_name = UPB_DESC(FieldDescriptorProto_has_json_name)(field_proto);
|
562
|
+
if (f->has_json_name) {
|
563
|
+
const upb_StringView sv =
|
564
|
+
UPB_DESC(FieldDescriptorProto_json_name)(field_proto);
|
565
|
+
f->json_name = upb_strdup2(sv.data, sv.size, ctx->arena);
|
566
|
+
} else {
|
567
|
+
f->json_name = make_json_name(name.data, name.size, ctx->arena);
|
568
|
+
}
|
569
|
+
if (!f->json_name) _upb_DefBuilder_OomErr(ctx);
|
570
|
+
|
571
|
+
const bool has_type = UPB_DESC(FieldDescriptorProto_has_type)(field_proto);
|
572
|
+
const bool has_type_name =
|
573
|
+
UPB_DESC(FieldDescriptorProto_has_type_name)(field_proto);
|
574
|
+
|
575
|
+
f->type_ = (int)UPB_DESC(FieldDescriptorProto_type)(field_proto);
|
576
|
+
|
577
|
+
if (has_type) {
|
578
|
+
switch (f->type_) {
|
579
|
+
case kUpb_FieldType_Message:
|
580
|
+
case kUpb_FieldType_Group:
|
581
|
+
case kUpb_FieldType_Enum:
|
582
|
+
if (!has_type_name) {
|
583
|
+
_upb_DefBuilder_Errf(ctx, "field of type %d requires type name (%s)",
|
584
|
+
(int)f->type_, f->full_name);
|
585
|
+
}
|
586
|
+
break;
|
587
|
+
default:
|
588
|
+
if (has_type_name) {
|
589
|
+
_upb_DefBuilder_Errf(
|
590
|
+
ctx, "invalid type for field with type_name set (%s, %d)",
|
591
|
+
f->full_name, (int)f->type_);
|
592
|
+
}
|
593
|
+
}
|
594
|
+
} else if (has_type_name) {
|
595
|
+
f->type_ =
|
596
|
+
UPB_FIELD_TYPE_UNSPECIFIED; // We'll assign this in resolve_fielddef()
|
597
|
+
}
|
598
|
+
|
599
|
+
if (f->type_ < kUpb_FieldType_Double || f->type_ > kUpb_FieldType_SInt64) {
|
600
|
+
_upb_DefBuilder_Errf(ctx, "invalid type for field %s (%d)", f->full_name,
|
601
|
+
f->type_);
|
602
|
+
}
|
603
|
+
|
604
|
+
if (f->label_ < kUpb_Label_Optional || f->label_ > kUpb_Label_Repeated) {
|
605
|
+
_upb_DefBuilder_Errf(ctx, "invalid label for field %s (%d)", f->full_name,
|
606
|
+
f->label_);
|
607
|
+
}
|
608
|
+
|
609
|
+
/* We can't resolve the subdef or (in the case of extensions) the containing
|
610
|
+
* message yet, because it may not have been defined yet. We stash a pointer
|
611
|
+
* to the field_proto until later when we can properly resolve it. */
|
612
|
+
f->sub.unresolved = field_proto;
|
613
|
+
|
614
|
+
if (f->label_ == kUpb_Label_Required &&
|
615
|
+
upb_FileDef_Syntax(f->file) == kUpb_Syntax_Proto3) {
|
616
|
+
_upb_DefBuilder_Errf(ctx, "proto3 fields cannot be required (%s)",
|
617
|
+
f->full_name);
|
618
|
+
}
|
619
|
+
|
620
|
+
if (UPB_DESC(FieldDescriptorProto_has_oneof_index)(field_proto)) {
|
621
|
+
uint32_t oneof_index =
|
622
|
+
UPB_DESC(FieldDescriptorProto_oneof_index)(field_proto);
|
623
|
+
|
624
|
+
if (upb_FieldDef_Label(f) != kUpb_Label_Optional) {
|
625
|
+
_upb_DefBuilder_Errf(ctx, "fields in oneof must have OPTIONAL label (%s)",
|
626
|
+
f->full_name);
|
627
|
+
}
|
628
|
+
|
629
|
+
if (!m) {
|
630
|
+
_upb_DefBuilder_Errf(ctx, "oneof field (%s) has no containing msg",
|
631
|
+
f->full_name);
|
632
|
+
}
|
633
|
+
|
634
|
+
if (oneof_index >= upb_MessageDef_OneofCount(m)) {
|
635
|
+
_upb_DefBuilder_Errf(ctx, "oneof_index out of range (%s)", f->full_name);
|
636
|
+
}
|
637
|
+
|
638
|
+
upb_OneofDef* oneof = (upb_OneofDef*)upb_MessageDef_Oneof(m, oneof_index);
|
639
|
+
f->scope.oneof = oneof;
|
640
|
+
|
641
|
+
_upb_OneofDef_Insert(ctx, oneof, f, name.data, name.size);
|
642
|
+
}
|
643
|
+
|
644
|
+
UPB_DEF_SET_OPTIONS(f->opts, FieldDescriptorProto, FieldOptions, field_proto);
|
645
|
+
|
646
|
+
if (UPB_DESC(FieldOptions_has_packed)(f->opts)) {
|
647
|
+
f->is_packed = UPB_DESC(FieldOptions_packed)(f->opts);
|
648
|
+
} else {
|
649
|
+
// Repeated fields default to packed for proto3 only.
|
650
|
+
f->is_packed = upb_FieldDef_IsPrimitive(f) &&
|
651
|
+
f->label_ == kUpb_Label_Repeated &&
|
652
|
+
upb_FileDef_Syntax(f->file) == kUpb_Syntax_Proto3;
|
653
|
+
}
|
654
|
+
|
655
|
+
f->has_presence =
|
656
|
+
(!upb_FieldDef_IsRepeated(f)) &&
|
657
|
+
(upb_FieldDef_IsSubMessage(f) || upb_FieldDef_ContainingOneof(f) ||
|
658
|
+
(upb_FileDef_Syntax(f->file) == kUpb_Syntax_Proto2));
|
659
|
+
}
|
660
|
+
|
661
|
+
static void _upb_FieldDef_CreateExt(upb_DefBuilder* ctx, const char* prefix,
|
662
|
+
const UPB_DESC(FieldDescriptorProto) *
|
663
|
+
field_proto,
|
664
|
+
upb_MessageDef* m, upb_FieldDef* f) {
|
665
|
+
f->is_extension = true;
|
666
|
+
_upb_FieldDef_Create(ctx, prefix, field_proto, m, f);
|
667
|
+
|
668
|
+
if (UPB_DESC(FieldDescriptorProto_has_oneof_index)(field_proto)) {
|
669
|
+
_upb_DefBuilder_Errf(ctx, "oneof_index provided for extension field (%s)",
|
670
|
+
f->full_name);
|
671
|
+
}
|
672
|
+
|
673
|
+
f->scope.extension_scope = m;
|
674
|
+
_upb_DefBuilder_Add(ctx, f->full_name, _upb_DefType_Pack(f, UPB_DEFTYPE_EXT));
|
675
|
+
f->layout_index = ctx->ext_count++;
|
676
|
+
|
677
|
+
if (ctx->layout) {
|
678
|
+
UPB_ASSERT(_upb_FieldDef_ExtensionMiniTable(f)->field.number == f->number_);
|
679
|
+
}
|
680
|
+
}
|
681
|
+
|
682
|
+
static void _upb_FieldDef_CreateNotExt(upb_DefBuilder* ctx, const char* prefix,
|
683
|
+
const UPB_DESC(FieldDescriptorProto) *
|
684
|
+
field_proto,
|
685
|
+
upb_MessageDef* m, upb_FieldDef* f) {
|
686
|
+
f->is_extension = false;
|
687
|
+
_upb_FieldDef_Create(ctx, prefix, field_proto, m, f);
|
688
|
+
|
689
|
+
if (!UPB_DESC(FieldDescriptorProto_has_oneof_index)(field_proto)) {
|
690
|
+
if (f->is_proto3_optional) {
|
691
|
+
_upb_DefBuilder_Errf(
|
692
|
+
ctx,
|
693
|
+
"non-extension field (%s) with proto3_optional was not in a oneof",
|
694
|
+
f->full_name);
|
695
|
+
}
|
696
|
+
}
|
697
|
+
|
698
|
+
_upb_MessageDef_InsertField(ctx, m, f);
|
699
|
+
}
|
700
|
+
|
701
|
+
upb_FieldDef* _upb_Extensions_New(
|
702
|
+
upb_DefBuilder* ctx, int n,
|
703
|
+
const UPB_DESC(FieldDescriptorProto) * const* protos, const char* prefix,
|
704
|
+
upb_MessageDef* m) {
|
705
|
+
_upb_DefType_CheckPadding(sizeof(upb_FieldDef));
|
706
|
+
upb_FieldDef* defs =
|
707
|
+
(upb_FieldDef*)_upb_DefBuilder_Alloc(ctx, sizeof(upb_FieldDef) * n);
|
708
|
+
|
709
|
+
for (int i = 0; i < n; i++) {
|
710
|
+
upb_FieldDef* f = &defs[i];
|
711
|
+
|
712
|
+
_upb_FieldDef_CreateExt(ctx, prefix, protos[i], m, f);
|
713
|
+
f->index_ = i;
|
714
|
+
}
|
715
|
+
|
716
|
+
return defs;
|
717
|
+
}
|
718
|
+
|
719
|
+
upb_FieldDef* _upb_FieldDefs_New(
|
720
|
+
upb_DefBuilder* ctx, int n,
|
721
|
+
const UPB_DESC(FieldDescriptorProto) * const* protos, const char* prefix,
|
722
|
+
upb_MessageDef* m, bool* is_sorted) {
|
723
|
+
_upb_DefType_CheckPadding(sizeof(upb_FieldDef));
|
724
|
+
upb_FieldDef* defs =
|
725
|
+
(upb_FieldDef*)_upb_DefBuilder_Alloc(ctx, sizeof(upb_FieldDef) * n);
|
726
|
+
|
727
|
+
uint32_t previous = 0;
|
728
|
+
for (int i = 0; i < n; i++) {
|
729
|
+
upb_FieldDef* f = &defs[i];
|
730
|
+
|
731
|
+
_upb_FieldDef_CreateNotExt(ctx, prefix, protos[i], m, f);
|
732
|
+
f->index_ = i;
|
733
|
+
if (!ctx->layout) {
|
734
|
+
// Speculate that the def fields are sorted. We will always sort the
|
735
|
+
// MiniTable fields, so if defs are sorted then indices will match.
|
736
|
+
//
|
737
|
+
// If this is incorrect, we will overwrite later.
|
738
|
+
f->layout_index = i;
|
739
|
+
}
|
740
|
+
|
741
|
+
const uint32_t current = f->number_;
|
742
|
+
if (previous > current) *is_sorted = false;
|
743
|
+
previous = current;
|
744
|
+
}
|
745
|
+
|
746
|
+
return defs;
|
747
|
+
}
|
748
|
+
|
749
|
+
static void resolve_subdef(upb_DefBuilder* ctx, const char* prefix,
|
750
|
+
upb_FieldDef* f) {
|
751
|
+
const UPB_DESC(FieldDescriptorProto)* field_proto = f->sub.unresolved;
|
752
|
+
upb_StringView name = UPB_DESC(FieldDescriptorProto_type_name)(field_proto);
|
753
|
+
bool has_name = UPB_DESC(FieldDescriptorProto_has_type_name)(field_proto);
|
754
|
+
switch ((int)f->type_) {
|
755
|
+
case UPB_FIELD_TYPE_UNSPECIFIED: {
|
756
|
+
// Type was not specified and must be inferred.
|
757
|
+
UPB_ASSERT(has_name);
|
758
|
+
upb_deftype_t type;
|
759
|
+
const void* def =
|
760
|
+
_upb_DefBuilder_ResolveAny(ctx, f->full_name, prefix, name, &type);
|
761
|
+
switch (type) {
|
762
|
+
case UPB_DEFTYPE_ENUM:
|
763
|
+
f->sub.enumdef = def;
|
764
|
+
f->type_ = kUpb_FieldType_Enum;
|
765
|
+
break;
|
766
|
+
case UPB_DEFTYPE_MSG:
|
767
|
+
f->sub.msgdef = def;
|
768
|
+
f->type_ = kUpb_FieldType_Message; // It appears there is no way of
|
769
|
+
// this being a group.
|
770
|
+
break;
|
771
|
+
default:
|
772
|
+
_upb_DefBuilder_Errf(ctx, "Couldn't resolve type name for field %s",
|
773
|
+
f->full_name);
|
774
|
+
}
|
775
|
+
}
|
776
|
+
case kUpb_FieldType_Message:
|
777
|
+
case kUpb_FieldType_Group:
|
778
|
+
UPB_ASSERT(has_name);
|
779
|
+
f->sub.msgdef = _upb_DefBuilder_Resolve(ctx, f->full_name, prefix, name,
|
780
|
+
UPB_DEFTYPE_MSG);
|
781
|
+
break;
|
782
|
+
case kUpb_FieldType_Enum:
|
783
|
+
UPB_ASSERT(has_name);
|
784
|
+
f->sub.enumdef = _upb_DefBuilder_Resolve(ctx, f->full_name, prefix, name,
|
785
|
+
UPB_DEFTYPE_ENUM);
|
786
|
+
break;
|
787
|
+
default:
|
788
|
+
// No resolution necessary.
|
789
|
+
break;
|
790
|
+
}
|
791
|
+
}
|
792
|
+
|
793
|
+
static int _upb_FieldDef_Compare(const void* p1, const void* p2) {
|
794
|
+
const uint32_t v1 = (*(upb_FieldDef**)p1)->number_;
|
795
|
+
const uint32_t v2 = (*(upb_FieldDef**)p2)->number_;
|
796
|
+
return (v1 < v2) ? -1 : (v1 > v2);
|
797
|
+
}
|
798
|
+
|
799
|
+
// _upb_FieldDefs_Sorted() is mostly a pure function of its inputs, but has one
|
800
|
+
// critical side effect that we depend on: it sets layout_index appropriately
|
801
|
+
// for non-sorted lists of fields.
|
802
|
+
const upb_FieldDef** _upb_FieldDefs_Sorted(const upb_FieldDef* f, int n,
|
803
|
+
upb_Arena* a) {
|
804
|
+
// TODO(salo): Replace this arena alloc with a persistent scratch buffer.
|
805
|
+
upb_FieldDef** out = (upb_FieldDef**)upb_Arena_Malloc(a, n * sizeof(void*));
|
806
|
+
if (!out) return NULL;
|
807
|
+
|
808
|
+
for (int i = 0; i < n; i++) {
|
809
|
+
out[i] = (upb_FieldDef*)&f[i];
|
810
|
+
}
|
811
|
+
qsort(out, n, sizeof(void*), _upb_FieldDef_Compare);
|
812
|
+
|
813
|
+
for (int i = 0; i < n; i++) {
|
814
|
+
out[i]->layout_index = i;
|
815
|
+
}
|
816
|
+
return (const upb_FieldDef**)out;
|
817
|
+
}
|
818
|
+
|
819
|
+
bool upb_FieldDef_MiniDescriptorEncode(const upb_FieldDef* f, upb_Arena* a,
|
820
|
+
upb_StringView* out) {
|
821
|
+
UPB_ASSERT(f->is_extension);
|
822
|
+
|
823
|
+
upb_DescState s;
|
824
|
+
_upb_DescState_Init(&s);
|
825
|
+
|
826
|
+
const int number = upb_FieldDef_Number(f);
|
827
|
+
const uint64_t modifiers = _upb_FieldDef_Modifiers(f);
|
828
|
+
|
829
|
+
if (!_upb_DescState_Grow(&s, a)) return false;
|
830
|
+
s.ptr = upb_MtDataEncoder_EncodeExtension(&s.e, s.ptr, f->type_, number,
|
831
|
+
modifiers);
|
832
|
+
*s.ptr = '\0';
|
833
|
+
|
834
|
+
out->data = s.buf;
|
835
|
+
out->size = s.ptr - s.buf;
|
836
|
+
return true;
|
837
|
+
}
|
838
|
+
|
839
|
+
static void resolve_extension(upb_DefBuilder* ctx, const char* prefix,
|
840
|
+
upb_FieldDef* f,
|
841
|
+
const UPB_DESC(FieldDescriptorProto) *
|
842
|
+
field_proto) {
|
843
|
+
if (!UPB_DESC(FieldDescriptorProto_has_extendee)(field_proto)) {
|
844
|
+
_upb_DefBuilder_Errf(ctx, "extension for field '%s' had no extendee",
|
845
|
+
f->full_name);
|
846
|
+
}
|
847
|
+
|
848
|
+
upb_StringView name = UPB_DESC(FieldDescriptorProto_extendee)(field_proto);
|
849
|
+
const upb_MessageDef* m =
|
850
|
+
_upb_DefBuilder_Resolve(ctx, f->full_name, prefix, name, UPB_DEFTYPE_MSG);
|
851
|
+
f->msgdef = m;
|
852
|
+
|
853
|
+
if (!_upb_MessageDef_IsValidExtensionNumber(m, f->number_)) {
|
854
|
+
_upb_DefBuilder_Errf(
|
855
|
+
ctx,
|
856
|
+
"field number %u in extension %s has no extension range in message %s",
|
857
|
+
(unsigned)f->number_, f->full_name, upb_MessageDef_FullName(m));
|
858
|
+
}
|
859
|
+
}
|
860
|
+
|
861
|
+
void _upb_FieldDef_BuildMiniTableExtension(upb_DefBuilder* ctx,
|
862
|
+
const upb_FieldDef* f) {
|
863
|
+
const upb_MiniTableExtension* ext = _upb_FieldDef_ExtensionMiniTable(f);
|
864
|
+
|
865
|
+
if (ctx->layout) {
|
866
|
+
UPB_ASSERT(upb_FieldDef_Number(f) == ext->field.number);
|
867
|
+
} else {
|
868
|
+
upb_StringView desc;
|
869
|
+
if (!upb_FieldDef_MiniDescriptorEncode(f, ctx->tmp_arena, &desc)) {
|
870
|
+
_upb_DefBuilder_OomErr(ctx);
|
871
|
+
}
|
872
|
+
|
873
|
+
upb_MiniTableExtension* mut_ext = (upb_MiniTableExtension*)ext;
|
874
|
+
upb_MiniTableSub sub = {NULL};
|
875
|
+
if (upb_FieldDef_IsSubMessage(f)) {
|
876
|
+
sub.submsg = upb_MessageDef_MiniTable(f->sub.msgdef);
|
877
|
+
} else if (_upb_FieldDef_IsClosedEnum(f)) {
|
878
|
+
sub.subenum = _upb_EnumDef_MiniTable(f->sub.enumdef);
|
879
|
+
}
|
880
|
+
bool ok2 = upb_MiniTableExtension_Init(desc.data, desc.size, mut_ext,
|
881
|
+
upb_MessageDef_MiniTable(f->msgdef),
|
882
|
+
sub, ctx->status);
|
883
|
+
if (!ok2) _upb_DefBuilder_Errf(ctx, "Could not build extension mini table");
|
884
|
+
}
|
885
|
+
|
886
|
+
bool ok = _upb_DefPool_InsertExt(ctx->symtab, ext, f);
|
887
|
+
if (!ok) _upb_DefBuilder_OomErr(ctx);
|
888
|
+
}
|
889
|
+
|
890
|
+
static void resolve_default(upb_DefBuilder* ctx, upb_FieldDef* f,
|
891
|
+
const UPB_DESC(FieldDescriptorProto) *
|
892
|
+
field_proto) {
|
893
|
+
// Have to delay resolving of the default value until now because of the enum
|
894
|
+
// case, since enum defaults are specified with a label.
|
895
|
+
if (UPB_DESC(FieldDescriptorProto_has_default_value)(field_proto)) {
|
896
|
+
upb_StringView defaultval =
|
897
|
+
UPB_DESC(FieldDescriptorProto_default_value)(field_proto);
|
898
|
+
|
899
|
+
if (upb_FileDef_Syntax(f->file) == kUpb_Syntax_Proto3) {
|
900
|
+
_upb_DefBuilder_Errf(ctx,
|
901
|
+
"proto3 fields cannot have explicit defaults (%s)",
|
902
|
+
f->full_name);
|
903
|
+
}
|
904
|
+
|
905
|
+
if (upb_FieldDef_IsSubMessage(f)) {
|
906
|
+
_upb_DefBuilder_Errf(ctx,
|
907
|
+
"message fields cannot have explicit defaults (%s)",
|
908
|
+
f->full_name);
|
909
|
+
}
|
910
|
+
|
911
|
+
parse_default(ctx, defaultval.data, defaultval.size, f);
|
912
|
+
f->has_default = true;
|
913
|
+
} else {
|
914
|
+
set_default_default(ctx, f);
|
915
|
+
f->has_default = false;
|
916
|
+
}
|
917
|
+
}
|
918
|
+
|
919
|
+
void _upb_FieldDef_Resolve(upb_DefBuilder* ctx, const char* prefix,
|
920
|
+
upb_FieldDef* f) {
|
921
|
+
// We have to stash this away since resolve_subdef() may overwrite it.
|
922
|
+
const UPB_DESC(FieldDescriptorProto)* field_proto = f->sub.unresolved;
|
923
|
+
|
924
|
+
resolve_subdef(ctx, prefix, f);
|
925
|
+
resolve_default(ctx, f, field_proto);
|
926
|
+
|
927
|
+
if (f->is_extension) {
|
928
|
+
resolve_extension(ctx, prefix, f, field_proto);
|
929
|
+
}
|
930
|
+
}
|