grpc 1.59.2 → 1.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +1065 -955
- data/include/grpc/event_engine/event_engine.h +25 -16
- data/include/grpc/event_engine/extensible.h +68 -0
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +6 -0
- data/include/grpc/event_engine/internal/slice_cast.h +12 -0
- data/include/grpc/event_engine/memory_allocator.h +3 -1
- data/include/grpc/event_engine/slice.h +5 -0
- data/include/grpc/grpc_crl_provider.h +94 -0
- data/include/grpc/grpc_security.h +38 -1
- data/include/grpc/impl/call.h +29 -0
- data/include/grpc/impl/channel_arg_names.h +26 -1
- data/include/grpc/impl/slice_type.h +1 -1
- data/include/grpc/module.modulemap +2 -0
- data/include/grpc/support/port_platform.h +12 -20
- data/src/core/client_channel/backend_metric.cc +95 -0
- data/src/core/client_channel/backend_metric.h +47 -0
- data/src/core/client_channel/backup_poller.cc +178 -0
- data/src/core/client_channel/backup_poller.h +37 -0
- data/src/core/client_channel/channel_connectivity.cc +265 -0
- data/src/core/client_channel/client_channel_channelz.cc +93 -0
- data/src/core/client_channel/client_channel_channelz.h +85 -0
- data/src/core/client_channel/client_channel_factory.cc +32 -0
- data/src/core/client_channel/client_channel_factory.h +46 -0
- data/src/core/client_channel/client_channel_filter.cc +3654 -0
- data/src/core/client_channel/client_channel_filter.h +636 -0
- data/src/core/client_channel/client_channel_internal.h +79 -0
- data/src/core/client_channel/client_channel_plugin.cc +55 -0
- data/src/core/client_channel/client_channel_service_config.cc +153 -0
- data/src/core/client_channel/client_channel_service_config.h +111 -0
- data/src/core/client_channel/config_selector.cc +60 -0
- data/src/core/client_channel/config_selector.h +125 -0
- data/src/core/client_channel/connector.h +87 -0
- data/src/core/client_channel/dynamic_filters.cc +174 -0
- data/src/core/client_channel/dynamic_filters.h +110 -0
- data/src/core/client_channel/global_subchannel_pool.cc +65 -0
- data/src/core/client_channel/global_subchannel_pool.h +63 -0
- data/src/core/client_channel/http_proxy_mapper.cc +305 -0
- data/src/core/client_channel/http_proxy_mapper.h +53 -0
- data/src/core/client_channel/local_subchannel_pool.cc +60 -0
- data/src/core/client_channel/local_subchannel_pool.h +59 -0
- data/src/core/client_channel/retry_filter.cc +160 -0
- data/src/core/client_channel/retry_filter.h +122 -0
- data/src/core/client_channel/retry_filter_legacy_call_data.cc +2054 -0
- data/src/core/client_channel/retry_filter_legacy_call_data.h +443 -0
- data/src/core/client_channel/retry_service_config.cc +283 -0
- data/src/core/client_channel/retry_service_config.h +105 -0
- data/src/core/client_channel/retry_throttle.cc +139 -0
- data/src/core/client_channel/retry_throttle.h +92 -0
- data/src/core/client_channel/service_config_channel_arg_filter.cc +136 -0
- data/src/core/client_channel/subchannel.cc +812 -0
- data/src/core/client_channel/subchannel.h +387 -0
- data/src/core/client_channel/subchannel_interface_internal.h +41 -0
- data/src/core/client_channel/subchannel_pool_interface.cc +66 -0
- data/src/core/client_channel/subchannel_pool_interface.h +100 -0
- data/src/core/client_channel/subchannel_stream_client.cc +468 -0
- data/src/core/client_channel/subchannel_stream_client.h +225 -0
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +55 -15
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.h +20 -6
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +28 -39
- data/src/core/ext/filters/channel_idle/channel_idle_filter.h +18 -10
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +326 -0
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h +143 -0
- data/src/core/ext/filters/deadline/deadline_filter.cc +20 -23
- data/src/core/ext/filters/deadline/deadline_filter.h +0 -4
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +19 -14
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +13 -4
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h +1 -1
- data/src/core/ext/filters/http/client/http_client_filter.cc +29 -39
- data/src/core/ext/filters/http/client/http_client_filter.h +10 -5
- data/src/core/ext/filters/http/client_authority_filter.cc +22 -24
- data/src/core/ext/filters/http/client_authority_filter.h +12 -4
- data/src/core/ext/filters/http/http_filters_plugin.cc +58 -38
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +55 -84
- data/src/core/ext/filters/http/message_compress/compression_filter.h +54 -12
- data/src/core/ext/filters/http/message_compress/legacy_compression_filter.cc +325 -0
- data/src/core/ext/filters/http/message_compress/legacy_compression_filter.h +139 -0
- data/src/core/ext/filters/http/server/http_server_filter.cc +41 -43
- data/src/core/ext/filters/http/server/http_server_filter.h +11 -4
- data/src/core/ext/filters/message_size/message_size_filter.cc +79 -109
- data/src/core/ext/filters/message_size/message_size_filter.h +36 -24
- data/src/core/ext/filters/rbac/rbac_filter.cc +24 -20
- data/src/core/ext/filters/rbac/rbac_filter.h +11 -4
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +1 -1
- data/src/core/ext/filters/server_config_selector/server_config_selector.h +2 -2
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +28 -15
- data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +60 -65
- data/src/core/ext/filters/stateful_session/stateful_session_filter.h +43 -9
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h +1 -1
- data/src/core/ext/gcp/metadata_query.cc +0 -1
- data/src/core/ext/transport/chttp2/alpn/alpn.cc +5 -2
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +9 -12
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +1 -1
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +20 -19
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +240 -273
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +47 -4
- data/src/core/ext/transport/chttp2/transport/context_list_entry.h +12 -2
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +45 -83
- data/src/core/ext/transport/chttp2/transport/flow_control.h +58 -8
- data/src/core/ext/transport/chttp2/transport/frame.cc +506 -0
- data/src/core/ext/transport/chttp2/transport/frame.h +214 -0
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +4 -3
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +0 -2
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +0 -2
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +1 -3
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +33 -81
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +4 -7
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +1 -3
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +15 -21
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +12 -3
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +3 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +37 -29
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +61 -36
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +7 -5
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +3 -1
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +122 -32
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +142 -37
- data/src/core/ext/transport/chttp2/transport/internal.h +63 -61
- data/src/core/ext/transport/chttp2/transport/parsing.cc +35 -39
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +2 -2
- data/src/core/ext/transport/chttp2/transport/writing.cc +45 -61
- data/src/core/ext/transport/inproc/inproc_transport.cc +168 -1237
- data/src/core/ext/transport/inproc/inproc_transport.h +8 -4
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +1303 -0
- data/src/core/ext/transport/inproc/legacy_inproc_transport.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb.h +725 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.c +149 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +827 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +180 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb.h +733 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.c +157 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb.h +2772 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.c +532 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.h +48 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb.h +248 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.c +66 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb.h +280 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.c +74 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb.h +162 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.c +56 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb.h +122 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +928 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +150 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb.h +122 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb.h +1753 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.c +375 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +3607 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +651 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +51 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +526 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +125 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +3934 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +737 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +53 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb.h +146 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.c +57 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +687 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +125 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb.h +1829 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.c +394 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.h +44 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +1070 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +227 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb.h +129 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +2436 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +578 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +53 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb.h +1130 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.c +225 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb.h +110 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb.h +116 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb.h +250 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.c +68 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb.h +1688 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.c +378 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb.h +1938 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.c +315 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +166 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb.h +144 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +2275 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +483 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb.h +238 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb.h +232 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +287 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb.h +335 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.c +83 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb.h +129 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb.h +504 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.c +139 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +993 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +229 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb.h +911 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.c +179 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +1613 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +268 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb.h +1447 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.c +260 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb.h +327 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.c +86 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb.h +197 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.c +77 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb.h +183 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.c +64 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +974 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +219 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +1183 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +250 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb.h +1704 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.c +348 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.h +40 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb.h +885 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.c +151 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +9754 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +1670 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +87 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb.h +341 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.c +97 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb.h +1545 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.c +328 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.h +41 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb.h +119 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb.h +119 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.c +56 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb.h +190 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.c +73 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb.h +202 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.c +62 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb.h +409 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.c +81 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +237 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +65 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb.h +102 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb.h +254 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.c +85 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb.h +49 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.c +33 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb.h +256 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.c +87 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +201 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +65 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +2709 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.c +556 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +134 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb.h +428 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.c +116 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +656 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +141 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +266 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.c +87 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +463 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +102 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +209 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +75 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +3985 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +682 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +239 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +67 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +488 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +135 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +86 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.c +44 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +250 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.c +68 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +39 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.c +28 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +1484 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +267 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +361 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.c +108 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +1509 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.c +270 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +217 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h +712 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.c +151 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb.h +73 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.c +38 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb.h +2141 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.c +402 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb.h +324 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb.h +940 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.c +188 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb.h +131 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb.h +312 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.c +86 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb.h +124 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb.h +299 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.c +105 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb.h +260 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb.h +166 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb.h +130 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb.h +110 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb.h +271 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.c +96 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +43 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb.h +306 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.c +81 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb.h +230 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb.h +476 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.c +113 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb.h +525 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.c +127 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb.h +506 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.c +139 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb.h +227 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb.h +38 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.c +26 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.h +29 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb.h +148 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb.h +162 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.c +64 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb.h +238 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb.h +232 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.c +75 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb.h +42 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.c +26 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.h +29 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb.h +146 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.c +57 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb.h +56 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.c +38 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb.h +1743 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.c +369 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.h +42 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb.h +1829 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.c +399 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/google/api/http.upb.h +496 -0
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.c +111 -0
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb.h +165 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb.h +6397 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c +1357 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.h +78 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb.h +69 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.c +35 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb.h +422 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.c +115 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb.h +508 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.c +163 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb.h +165 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb.h +385 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.c +106 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb.h +237 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb.h +1658 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.c +342 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.h +41 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb.h +197 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.c +69 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb.h +144 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb.h +877 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.c +221 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb.h +297 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.c +92 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb.h +1333 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.c +243 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb.h +322 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.c +118 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb.h +125 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb.h +55 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.c +37 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb.h +131 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb.h +109 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/validate/validate.upb.h +6507 -0
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.c +943 -0
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.h +57 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h +322 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c +118 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h +125 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h +55 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c +37 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h +336 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c +117 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h +109 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb.h +87 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.c +45 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb.h +116 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb.h +234 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.c +78 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb.h +134 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.c +62 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb.h +115 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb.h +144 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb.h +331 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb.h +146 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb.h +350 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.c +126 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb.h +161 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb.h +116 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb.h +263 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb.h +71 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.c +36 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb.h +282 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.c +75 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb.h +1107 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.c +265 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb.h +726 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.c +157 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.h +35 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb.h +159 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb.h +304 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb.h +233 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb.h +235 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.c +82 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb.h +114 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.c +83 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +127 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.c +101 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.c +276 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.h +125 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.c +42 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.c +48 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.c +37 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.c +233 -0
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +444 -0
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +140 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +97 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +574 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +150 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +142 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.c +201 -0
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.h +105 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +139 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +274 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +150 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.c +167 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.c +236 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.c +244 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +314 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.c +48 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.c +101 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +139 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.c +135 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +231 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.c +189 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.c +100 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +124 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.c +222 -0
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.h +85 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.c +125 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +984 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +320 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.c +205 -0
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.h +90 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.c +71 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.c +104 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +66 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.c +74 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +78 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +404 -0
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +49 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +91 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +122 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +79 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +108 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +605 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +135 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +49 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +216 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +90 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +263 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.c +133 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.c +199 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.c +155 -0
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.c +64 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.c +81 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.c +77 -0
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.c +84 -0
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.c +93 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.c +68 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.c +43 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.c +153 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.h +95 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.c +152 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.c +33 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.c +488 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.h +190 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.c +31 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.c +36 -0
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.c +66 -0
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +98 -0
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.c +61 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.c +33 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.c +282 -0
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.h +145 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.c +62 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.c +37 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.c +125 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.h +60 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c +59 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c +36 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h +35 -0
- data/src/core/ext/xds/certificate_provider_store.cc +2 -1
- data/src/core/ext/xds/certificate_provider_store.h +0 -5
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +0 -1
- data/src/core/ext/xds/xds_api.cc +92 -167
- data/src/core/ext/xds/xds_api.h +4 -9
- data/src/core/ext/xds/xds_bootstrap.h +6 -4
- data/src/core/ext/xds/xds_bootstrap_grpc.cc +4 -16
- data/src/core/ext/xds/xds_bootstrap_grpc.h +2 -1
- data/src/core/ext/xds/xds_certificate_provider.cc +88 -287
- data/src/core/ext/xds/xds_certificate_provider.h +44 -111
- data/src/core/ext/xds/xds_channel_stack_modifier.cc +17 -28
- data/src/core/ext/xds/xds_channel_stack_modifier.h +3 -5
- data/src/core/ext/xds/xds_client.cc +527 -468
- data/src/core/ext/xds/xds_client.h +50 -36
- data/src/core/ext/xds/xds_client_grpc.cc +56 -16
- data/src/core/ext/xds/xds_client_grpc.h +4 -1
- data/src/core/ext/xds/xds_client_stats.cc +11 -11
- data/src/core/ext/xds/xds_client_stats.h +8 -14
- data/src/core/ext/xds/xds_cluster.cc +105 -12
- data/src/core/ext/xds/xds_cluster.h +12 -2
- data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +9 -5
- data/src/core/ext/xds/xds_common_types.cc +14 -11
- data/src/core/ext/xds/xds_endpoint.cc +95 -49
- data/src/core/ext/xds/xds_endpoint.h +7 -3
- data/src/core/ext/xds/xds_health_status.cc +14 -2
- data/src/core/ext/xds/xds_health_status.h +5 -3
- data/src/core/ext/xds/xds_http_filters.cc +0 -1
- data/src/core/ext/xds/xds_http_rbac_filter.cc +5 -3
- data/src/core/ext/xds/xds_lb_policy_registry.cc +1 -1
- data/src/core/ext/xds/xds_listener.cc +15 -11
- data/src/core/ext/xds/xds_resource_type_impl.h +6 -4
- data/src/core/ext/xds/xds_route_config.cc +35 -24
- data/src/core/ext/xds/xds_route_config.h +1 -0
- data/src/core/ext/xds/xds_server_config_fetcher.cc +63 -59
- data/src/core/ext/xds/xds_transport.h +3 -0
- data/src/core/ext/xds/xds_transport_grpc.cc +53 -55
- data/src/core/ext/xds/xds_transport_grpc.h +4 -0
- data/src/core/lib/address_utils/sockaddr_utils.cc +0 -1
- data/src/core/lib/avl/avl.h +1 -0
- data/src/core/lib/channel/call_tracer.cc +20 -1
- data/src/core/lib/channel/call_tracer.h +24 -3
- data/src/core/lib/channel/channel_args.cc +24 -15
- data/src/core/lib/channel/channel_args.h +89 -14
- data/src/core/lib/channel/channel_args_preconditioning.cc +0 -1
- data/src/core/lib/channel/channel_stack.cc +36 -1
- data/src/core/lib/channel/channel_stack.h +10 -10
- data/src/core/lib/channel/channel_stack_builder.h +4 -15
- data/src/core/lib/channel/channel_stack_builder_impl.cc +1 -19
- data/src/core/lib/channel/channel_stack_trace.cc +19 -0
- data/src/core/lib/channel/channel_stack_trace.h +24 -0
- data/src/core/lib/channel/channel_trace.cc +1 -1
- data/src/core/lib/channel/connected_channel.cc +151 -91
- data/src/core/lib/channel/context.h +3 -0
- data/src/core/lib/channel/promise_based_filter.cc +10 -6
- data/src/core/lib/channel/promise_based_filter.h +1040 -2
- data/src/core/lib/channel/server_call_tracer_filter.cc +43 -42
- data/src/core/lib/channel/status_util.cc +0 -1
- data/src/core/lib/channel/tcp_tracer.h +140 -0
- data/src/core/lib/compression/compression_internal.cc +2 -3
- data/src/core/lib/config/config_vars.cc +0 -1
- data/src/core/lib/config/config_vars_non_generated.cc +0 -2
- data/src/core/lib/config/core_configuration.cc +0 -1
- data/src/core/lib/config/core_configuration.h +3 -3
- data/src/core/lib/event_engine/ares_resolver.cc +163 -90
- data/src/core/lib/event_engine/ares_resolver.h +13 -12
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +4 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +9 -1
- data/src/core/lib/event_engine/channel_args_endpoint_config.cc +2 -0
- data/src/core/lib/event_engine/event_engine.cc +0 -2
- data/src/core/lib/event_engine/extensions/can_track_errors.h +40 -0
- data/src/core/lib/event_engine/extensions/supports_fd.h +160 -0
- data/src/core/lib/event_engine/forkable.cc +40 -57
- data/src/core/lib/event_engine/forkable.h +33 -27
- data/src/core/lib/event_engine/grpc_polled_fd.h +23 -4
- data/src/core/lib/event_engine/posix.h +11 -122
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +6 -8
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h +2 -3
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +11 -16
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +4 -11
- data/src/core/lib/event_engine/posix_engine/event_poller.h +3 -1
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc +23 -4
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.h +3 -1
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +12 -4
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.cc +0 -2
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc +132 -0
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h +57 -0
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +32 -9
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +1 -1
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +89 -51
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +25 -27
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +14 -6
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +21 -3
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +9 -4
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +7 -0
- data/src/core/lib/event_engine/posix_engine/timer_manager.cc +17 -27
- data/src/core/lib/event_engine/posix_engine/timer_manager.h +0 -3
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc +0 -1
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc +0 -1
- data/src/core/lib/event_engine/query_extensions.h +85 -0
- data/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h +55 -0
- data/src/core/lib/event_engine/shim.cc +5 -17
- data/src/core/lib/event_engine/shim.h +0 -2
- data/src/core/lib/event_engine/slice_buffer.cc +0 -1
- data/src/core/lib/event_engine/tcp_socket_utils.cc +0 -1
- data/src/core/lib/event_engine/thread_pool/thread_count.cc +28 -7
- data/src/core/lib/event_engine/thread_pool/thread_count.h +6 -1
- data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +20 -6
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +116 -8
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h +9 -0
- data/src/core/lib/event_engine/utils.cc +2 -1
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc +824 -0
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h +75 -0
- data/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc +115 -0
- data/src/core/lib/event_engine/windows/native_windows_dns_resolver.h +51 -0
- data/src/core/lib/event_engine/windows/win_socket.cc +20 -13
- data/src/core/lib/event_engine/windows/win_socket.h +19 -7
- data/src/core/lib/event_engine/windows/windows_endpoint.cc +32 -33
- data/src/core/lib/event_engine/windows/windows_endpoint.h +1 -1
- data/src/core/lib/event_engine/windows/windows_engine.cc +83 -38
- data/src/core/lib/event_engine/windows/windows_engine.h +16 -2
- data/src/core/lib/event_engine/windows/windows_listener.cc +2 -3
- data/src/core/lib/event_engine/work_queue/basic_work_queue.cc +2 -0
- data/src/core/lib/event_engine/work_queue/basic_work_queue.h +4 -1
- data/src/core/lib/event_engine/work_queue/work_queue.h +4 -0
- data/src/core/lib/experiments/config.cc +23 -2
- data/src/core/lib/experiments/config.h +9 -0
- data/src/core/lib/experiments/experiments.cc +642 -553
- data/src/core/lib/experiments/experiments.h +261 -270
- data/src/core/lib/gpr/alloc.cc +1 -0
- data/src/core/lib/gpr/posix/sync.cc +2 -2
- data/src/core/lib/gpr/posix/time.cc +0 -5
- data/src/core/lib/gpr/windows/sync.cc +2 -2
- data/src/core/lib/gprpp/debug_location.h +15 -0
- data/src/core/lib/gprpp/directory_reader.h +48 -0
- data/src/core/lib/gprpp/down_cast.h +49 -0
- data/src/core/lib/gprpp/dual_ref_counted.h +36 -7
- data/src/core/lib/gprpp/host_port.cc +0 -2
- data/src/core/lib/gprpp/linux/env.cc +1 -19
- data/src/core/lib/gprpp/load_file.cc +2 -1
- data/src/core/lib/gprpp/load_file.h +2 -1
- data/src/core/lib/gprpp/match.h +1 -1
- data/src/core/lib/gprpp/orphanable.h +27 -0
- data/src/core/lib/gprpp/posix/directory_reader.cc +82 -0
- data/src/core/lib/gprpp/posix/stat.cc +0 -1
- data/src/core/lib/gprpp/posix/thd.cc +27 -2
- data/src/core/lib/gprpp/ref_counted.h +63 -22
- data/src/core/lib/gprpp/ref_counted_ptr.h +70 -27
- data/src/core/lib/gprpp/ref_counted_string.h +15 -0
- data/src/core/lib/gprpp/status_helper.cc +1 -3
- data/src/core/lib/gprpp/strerror.cc +0 -2
- data/src/core/lib/gprpp/thd.h +8 -0
- data/src/core/lib/gprpp/time.cc +0 -1
- data/src/core/lib/gprpp/time.h +4 -3
- data/src/core/lib/gprpp/validation_errors.cc +0 -1
- data/src/core/lib/gprpp/windows/directory_reader.cc +81 -0
- data/src/core/lib/gprpp/windows/thd.cc +10 -1
- data/src/core/lib/gprpp/work_serializer.cc +3 -0
- data/src/core/lib/gprpp/xxhash_inline.h +29 -0
- data/src/core/lib/http/format_request.cc +0 -1
- data/src/core/lib/http/httpcli.cc +0 -2
- data/src/core/lib/iomgr/combiner.cc +16 -52
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +53 -14
- data/src/core/lib/iomgr/event_engine_shims/endpoint.h +16 -0
- data/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +3 -2
- data/src/core/lib/iomgr/grpc_if_nametoindex_posix.cc +2 -2
- data/src/core/lib/iomgr/grpc_if_nametoindex_unsupported.cc +2 -2
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +13 -0
- data/src/core/lib/iomgr/tcp_client_posix.cc +4 -3
- data/src/core/lib/iomgr/tcp_posix.cc +7 -1
- data/src/core/lib/iomgr/tcp_server_posix.cc +65 -50
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +12 -0
- data/src/core/lib/iomgr/timer_manager.cc +7 -1
- data/src/core/lib/iomgr/timer_manager.h +2 -0
- data/src/core/lib/json/json_object_loader.h +0 -1
- data/src/core/lib/json/json_reader.cc +0 -1
- data/src/core/lib/json/json_writer.cc +1 -1
- data/src/core/lib/matchers/matchers.cc +0 -1
- data/src/core/lib/promise/activity.cc +17 -3
- data/src/core/lib/promise/activity.h +13 -6
- data/src/core/lib/promise/all_ok.h +80 -0
- data/src/core/lib/promise/cancel_callback.h +0 -2
- data/src/core/lib/promise/context.h +45 -8
- data/src/core/lib/promise/detail/join_state.h +2077 -0
- data/src/core/lib/promise/detail/promise_like.h +8 -1
- data/src/core/lib/promise/detail/seq_state.h +3458 -151
- data/src/core/lib/promise/detail/status.h +42 -5
- data/src/core/lib/promise/for_each.h +13 -6
- data/src/core/lib/promise/if.h +4 -1
- data/src/core/lib/promise/interceptor_list.h +13 -6
- data/src/core/lib/promise/latch.h +9 -8
- data/src/core/lib/promise/loop.h +1 -1
- data/src/core/lib/promise/map.h +0 -1
- data/src/core/lib/promise/party.cc +45 -33
- data/src/core/lib/promise/party.h +176 -10
- data/src/core/lib/promise/pipe.h +6 -10
- data/src/core/lib/promise/poll.h +39 -13
- data/src/core/lib/promise/prioritized_race.h +0 -1
- data/src/core/lib/promise/promise.h +4 -1
- data/src/core/lib/promise/race.h +0 -1
- data/src/core/lib/promise/seq.h +107 -8
- data/src/core/lib/promise/sleep.cc +1 -1
- data/src/core/lib/promise/status_flag.h +226 -0
- data/src/core/lib/promise/try_join.h +132 -0
- data/src/core/lib/promise/try_seq.h +132 -10
- data/src/core/lib/resource_quota/arena.h +2 -2
- data/src/core/lib/resource_quota/memory_quota.cc +74 -22
- data/src/core/lib/resource_quota/memory_quota.h +8 -11
- data/src/core/lib/security/authorization/audit_logging.cc +0 -1
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +15 -12
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +14 -5
- data/src/core/lib/security/authorization/matchers.cc +0 -1
- data/src/core/lib/security/authorization/rbac_policy.cc +0 -2
- data/src/core/lib/security/authorization/stdout_logger.cc +0 -1
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +0 -2
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +1 -1
- data/src/core/lib/security/credentials/composite/composite_credentials.h +1 -1
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +4 -1
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +0 -2
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +28 -22
- data/src/core/lib/security/credentials/external/external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +9 -11
- data/src/core/lib/security/credentials/external/file_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +5 -3
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +11 -11
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +0 -1
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +0 -2
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +0 -1
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +1 -2
- data/src/core/lib/security/credentials/local/local_credentials.cc +0 -2
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +9 -7
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +0 -1
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +2 -2
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +1 -1
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +0 -1
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +0 -2
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +16 -24
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +0 -3
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +33 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +23 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.cc +255 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.h +129 -0
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +25 -1
- data/src/core/lib/security/credentials/tls/tls_utils.cc +2 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +22 -30
- data/src/core/lib/security/credentials/xds/xds_credentials.h +2 -4
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +1 -2
- data/src/core/lib/security/security_connector/load_system_roots_supported.cc +3 -7
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +1 -1
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +0 -2
- data/src/core/lib/security/security_connector/ssl_utils.cc +34 -19
- data/src/core/lib/security/security_connector/ssl_utils.h +4 -0
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +7 -6
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +2 -2
- data/src/core/lib/security/transport/auth_filters.h +71 -4
- data/src/core/lib/security/transport/client_auth_filter.cc +2 -5
- data/src/core/lib/security/transport/legacy_server_auth_filter.cc +244 -0
- data/src/core/lib/security/transport/secure_endpoint.cc +3 -6
- data/src/core/lib/security/transport/security_handshaker.cc +1 -11
- data/src/core/lib/security/transport/security_handshaker.h +0 -6
- data/src/core/lib/security/transport/server_auth_filter.cc +70 -94
- data/src/core/lib/slice/slice.h +6 -1
- data/src/core/lib/slice/slice_buffer.h +6 -1
- data/src/core/lib/surface/builtins.cc +6 -25
- data/src/core/lib/surface/call.cc +824 -217
- data/src/core/lib/surface/call.h +26 -13
- data/src/core/lib/surface/call_log_batch.cc +0 -2
- data/src/core/lib/surface/call_trace.cc +46 -6
- data/src/core/lib/surface/channel.cc +18 -29
- data/src/core/lib/surface/channel.h +6 -28
- data/src/core/lib/surface/channel_init.cc +441 -14
- data/src/core/lib/surface/channel_init.h +272 -26
- data/src/core/lib/surface/completion_queue.cc +0 -7
- data/src/core/lib/surface/event_string.cc +0 -1
- data/src/core/lib/surface/init.cc +21 -48
- data/src/core/lib/surface/lame_client.cc +8 -1
- data/src/core/lib/surface/server.cc +438 -265
- data/src/core/lib/surface/server.h +52 -26
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/surface/wait_for_cq_end_op.cc +75 -0
- data/src/core/lib/surface/wait_for_cq_end_op.h +72 -0
- data/src/core/lib/transport/batch_builder.cc +6 -7
- data/src/core/lib/transport/batch_builder.h +2 -4
- data/src/core/lib/transport/bdp_estimator.cc +2 -2
- data/src/core/lib/transport/bdp_estimator.h +2 -2
- data/src/core/lib/transport/call_factory.cc +41 -0
- data/src/core/lib/transport/call_factory.h +56 -0
- data/src/core/lib/transport/call_filters.cc +371 -0
- data/src/core/lib/transport/call_filters.h +1500 -0
- data/src/core/lib/transport/call_final_info.cc +38 -0
- data/src/core/lib/transport/call_final_info.h +54 -0
- data/src/core/lib/transport/call_size_estimator.cc +41 -0
- data/src/core/lib/transport/call_size_estimator.h +52 -0
- data/src/core/lib/transport/call_spine.cc +107 -0
- data/src/core/lib/transport/call_spine.h +429 -0
- data/src/core/lib/transport/connectivity_state.cc +3 -4
- data/src/core/lib/transport/connectivity_state.h +4 -0
- data/src/core/lib/transport/error_utils.cc +0 -2
- data/src/core/lib/transport/handshaker.cc +0 -10
- data/src/core/lib/transport/handshaker.h +0 -7
- data/src/core/lib/transport/message.cc +45 -0
- data/src/core/lib/transport/message.h +61 -0
- data/src/core/lib/transport/metadata.cc +37 -0
- data/src/core/lib/transport/metadata.h +78 -0
- data/src/core/lib/transport/metadata_batch.cc +4 -3
- data/src/core/lib/transport/metadata_batch.h +9 -4
- data/src/core/lib/transport/tcp_connect_handshaker.cc +0 -1
- data/src/core/lib/transport/timeout_encoding.h +2 -2
- data/src/core/lib/transport/transport.cc +13 -105
- data/src/core/lib/transport/transport.h +105 -157
- data/src/core/lib/transport/transport_fwd.h +3 -1
- data/src/core/lib/transport/transport_op_string.cc +0 -2
- data/src/core/lib/uri/uri_parser.cc +0 -1
- data/src/core/load_balancing/address_filtering.cc +108 -0
- data/src/core/load_balancing/address_filtering.h +118 -0
- data/src/core/load_balancing/backend_metric_data.h +57 -0
- data/src/core/load_balancing/child_policy_handler.cc +317 -0
- data/src/core/load_balancing/child_policy_handler.h +88 -0
- data/src/core/load_balancing/delegating_helper.h +116 -0
- data/src/core/load_balancing/endpoint_list.cc +187 -0
- data/src/core/load_balancing/endpoint_list.h +220 -0
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.cc +83 -0
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.h +46 -0
- data/src/core/load_balancing/grpclb/grpclb.cc +1935 -0
- data/src/core/load_balancing/grpclb/grpclb.h +39 -0
- data/src/core/load_balancing/grpclb/grpclb_balancer_addresses.cc +89 -0
- data/src/core/load_balancing/grpclb/grpclb_balancer_addresses.h +39 -0
- data/src/core/load_balancing/grpclb/grpclb_client_stats.cc +90 -0
- data/src/core/load_balancing/grpclb/grpclb_client_stats.h +81 -0
- data/src/core/load_balancing/grpclb/load_balancer_api.cc +202 -0
- data/src/core/load_balancing/grpclb/load_balancer_api.h +77 -0
- data/src/core/load_balancing/health_check_client.cc +520 -0
- data/src/core/load_balancing/health_check_client.h +52 -0
- data/src/core/load_balancing/health_check_client_internal.h +204 -0
- data/src/core/load_balancing/lb_policy.cc +98 -0
- data/src/core/load_balancing/lb_policy.h +481 -0
- data/src/core/load_balancing/lb_policy_factory.h +49 -0
- data/src/core/load_balancing/lb_policy_registry.cc +142 -0
- data/src/core/load_balancing/lb_policy_registry.h +82 -0
- data/src/core/load_balancing/oob_backend_metric.cc +340 -0
- data/src/core/load_balancing/oob_backend_metric.h +57 -0
- data/src/core/load_balancing/oob_backend_metric_internal.h +119 -0
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +1208 -0
- data/src/core/load_balancing/outlier_detection/outlier_detection.h +94 -0
- data/src/core/load_balancing/pick_first/pick_first.cc +1232 -0
- data/src/core/load_balancing/pick_first/pick_first.h +36 -0
- data/src/core/load_balancing/priority/priority.cc +900 -0
- data/src/core/load_balancing/ring_hash/ring_hash.cc +878 -0
- data/src/core/load_balancing/ring_hash/ring_hash.h +62 -0
- data/src/core/load_balancing/rls/rls.cc +2477 -0
- data/src/core/load_balancing/round_robin/round_robin.cc +916 -0
- data/src/core/load_balancing/subchannel_interface.h +141 -0
- data/src/core/load_balancing/subchannel_list.h +455 -0
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.cc +198 -0
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h +71 -0
- data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +1819 -0
- data/src/core/load_balancing/weighted_target/weighted_target.cc +755 -0
- data/src/core/load_balancing/xds/cds.cc +757 -0
- data/src/core/load_balancing/xds/xds_channel_args.h +37 -0
- data/src/core/load_balancing/xds/xds_cluster_impl.cc +863 -0
- data/src/core/load_balancing/xds/xds_cluster_manager.cc +652 -0
- data/src/core/load_balancing/xds/xds_override_host.cc +1313 -0
- data/src/core/load_balancing/xds/xds_override_host.h +63 -0
- data/src/core/load_balancing/xds/xds_wrr_locality.cc +300 -0
- data/src/core/plugin_registry/grpc_plugin_registry.cc +5 -0
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -3
- data/src/core/resolver/binder/binder_resolver.cc +147 -0
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.cc +758 -0
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.h +30 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h +90 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +206 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +818 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc +1219 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h +140 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +29 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +35 -0
- data/src/core/resolver/dns/dns_resolver_plugin.cc +68 -0
- data/src/core/resolver/dns/dns_resolver_plugin.h +27 -0
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +588 -0
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h +35 -0
- data/src/core/resolver/dns/event_engine/service_config_helper.cc +97 -0
- data/src/core/resolver/dns/event_engine/service_config_helper.h +32 -0
- data/src/core/resolver/dns/native/dns_resolver.cc +183 -0
- data/src/core/resolver/dns/native/dns_resolver.h +24 -0
- data/src/core/resolver/endpoint_addresses.cc +147 -0
- data/src/core/resolver/endpoint_addresses.h +164 -0
- data/src/core/resolver/fake/fake_resolver.cc +255 -0
- data/src/core/resolver/fake/fake_resolver.h +129 -0
- data/src/core/resolver/google_c2p/google_c2p_resolver.cc +326 -0
- data/src/core/resolver/polling_resolver.cc +272 -0
- data/src/core/resolver/polling_resolver.h +121 -0
- data/src/core/resolver/resolver.cc +37 -0
- data/src/core/resolver/resolver.h +139 -0
- data/src/core/resolver/resolver_factory.h +78 -0
- data/src/core/resolver/resolver_registry.cc +162 -0
- data/src/core/resolver/resolver_registry.h +123 -0
- data/src/core/resolver/server_address.h +35 -0
- data/src/core/resolver/sockaddr/sockaddr_resolver.cc +202 -0
- data/src/core/resolver/xds/xds_dependency_manager.cc +1031 -0
- data/src/core/resolver/xds/xds_dependency_manager.h +277 -0
- data/src/core/resolver/xds/xds_resolver.cc +1135 -0
- data/src/core/resolver/xds/xds_resolver_attributes.h +62 -0
- data/src/core/resolver/xds/xds_resolver_trace.cc +25 -0
- data/src/core/resolver/xds/xds_resolver_trace.h +30 -0
- data/src/core/service_config/service_config.h +89 -0
- data/src/core/service_config/service_config_call_data.h +116 -0
- data/src/core/service_config/service_config_impl.cc +198 -0
- data/src/core/service_config/service_config_impl.h +125 -0
- data/src/core/service_config/service_config_parser.cc +81 -0
- data/src/core/service_config/service_config_parser.h +105 -0
- data/src/core/tsi/alts/crypt/aes_gcm.cc +137 -109
- data/src/core/tsi/alts/crypt/gsec.h +387 -319
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +11 -7
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +1 -1
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +5 -7
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +1 -1
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +12 -12
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +26 -25
- data/src/core/tsi/fake_transport_security.cc +1 -1
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +9 -1
- data/src/core/tsi/ssl_transport_security.cc +182 -60
- data/src/core/tsi/ssl_transport_security.h +19 -1
- data/src/ruby/bin/math_pb.rb +1 -1
- data/src/ruby/ext/grpc/extconf.rb +77 -16
- data/src/ruby/ext/grpc/rb_channel.c +11 -5
- data/src/ruby/ext/grpc/rb_channel_args.c +3 -1
- data/src/ruby/ext/grpc/rb_event_thread.c +9 -3
- data/src/ruby/ext/grpc/rb_grpc.c +0 -1
- data/src/ruby/ext/grpc/rb_grpc.h +0 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +8 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +12 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/v1/health_pb.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +7 -2
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -2
- data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +22 -0
- data/third_party/abseil-cpp/absl/algorithm/algorithm.h +8 -103
- data/third_party/abseil-cpp/absl/algorithm/container.h +57 -71
- data/third_party/abseil-cpp/absl/base/attributes.h +51 -12
- data/third_party/abseil-cpp/absl/base/call_once.h +15 -9
- data/third_party/abseil-cpp/absl/base/casts.h +1 -1
- data/third_party/abseil-cpp/absl/base/config.h +91 -24
- data/third_party/abseil-cpp/absl/base/internal/endian.h +13 -12
- data/third_party/abseil-cpp/absl/base/internal/identity.h +4 -2
- data/third_party/abseil-cpp/absl/base/internal/inline_variable.h +19 -18
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +1 -1
- data/third_party/abseil-cpp/absl/base/internal/nullability_impl.h +106 -0
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +9 -11
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.h +2 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +17 -4
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +20 -0
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +10 -4
- data/third_party/abseil-cpp/absl/base/internal/unaligned_access.h +13 -6
- data/third_party/abseil-cpp/absl/base/log_severity.cc +1 -0
- data/third_party/abseil-cpp/absl/base/log_severity.h +23 -10
- data/third_party/abseil-cpp/absl/base/no_destructor.h +217 -0
- data/third_party/abseil-cpp/absl/base/nullability.h +224 -0
- data/third_party/abseil-cpp/absl/base/optimization.h +1 -0
- data/third_party/abseil-cpp/absl/base/options.h +27 -1
- data/third_party/abseil-cpp/absl/base/prefetch.h +25 -14
- data/third_party/abseil-cpp/absl/base/thread_annotations.h +0 -2
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +3 -3
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +1 -1
- data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +4 -2
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +13 -9
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +2 -12
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +12 -1
- data/third_party/abseil-cpp/absl/container/internal/layout.h +6 -21
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +11 -2
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +148 -31
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +717 -278
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.cc +26 -2
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.h +6 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +34 -5
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy.h +6 -3
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_fallback.cc +4 -2
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_arm_combined.cc +450 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +10 -2
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.cc +4 -2
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +24 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +35 -33
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +41 -17
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +108 -44
- data/third_party/abseil-cpp/absl/flags/declare.h +0 -5
- data/third_party/abseil-cpp/absl/flags/flag.h +1 -10
- data/third_party/abseil-cpp/absl/flags/internal/flag.h +0 -5
- data/third_party/abseil-cpp/absl/flags/marshalling.cc +10 -1
- data/third_party/abseil-cpp/absl/flags/reflection.cc +2 -1
- data/third_party/abseil-cpp/absl/functional/function_ref.h +8 -0
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +2 -2
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +49 -2
- data/third_party/abseil-cpp/absl/numeric/bits.h +37 -18
- data/third_party/abseil-cpp/absl/random/distributions.h +1 -1
- data/third_party/abseil-cpp/absl/status/internal/status_internal.cc +248 -0
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +55 -14
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +53 -2
- data/third_party/abseil-cpp/absl/status/status.cc +36 -238
- data/third_party/abseil-cpp/absl/status/status.h +95 -53
- data/third_party/abseil-cpp/absl/status/status_payload_printer.cc +1 -3
- data/third_party/abseil-cpp/absl/status/status_payload_printer.h +3 -2
- data/third_party/abseil-cpp/absl/status/statusor.cc +5 -2
- data/third_party/abseil-cpp/absl/status/statusor.h +43 -3
- data/third_party/abseil-cpp/absl/strings/ascii.cc +84 -12
- data/third_party/abseil-cpp/absl/strings/ascii.h +8 -6
- data/third_party/abseil-cpp/absl/strings/charconv.cc +19 -12
- data/third_party/abseil-cpp/absl/strings/charconv.h +6 -3
- data/third_party/abseil-cpp/absl/strings/charset.h +164 -0
- data/third_party/abseil-cpp/absl/strings/cord.cc +266 -69
- data/third_party/abseil-cpp/absl/strings/cord.h +138 -92
- data/third_party/abseil-cpp/absl/strings/cord_analysis.cc +19 -33
- data/third_party/abseil-cpp/absl/strings/cord_analysis.h +4 -3
- data/third_party/abseil-cpp/absl/strings/escaping.cc +5 -4
- data/third_party/abseil-cpp/absl/strings/has_absl_stringify.h +63 -0
- data/third_party/abseil-cpp/absl/strings/has_ostream_operator.h +42 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +0 -6
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +19 -45
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +23 -28
- data/third_party/abseil-cpp/absl/strings/internal/has_absl_stringify.h +15 -26
- data/third_party/abseil-cpp/absl/strings/internal/memutil.cc +12 -4
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.cc +145 -8
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +72 -24
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.cc +17 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +7 -4
- data/third_party/abseil-cpp/absl/strings/internal/str_format/constexpr_parser.h +8 -3
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +10 -4
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.h +5 -4
- data/third_party/abseil-cpp/absl/strings/match.cc +3 -0
- data/third_party/abseil-cpp/absl/strings/numbers.cc +396 -153
- data/third_party/abseil-cpp/absl/strings/numbers.h +193 -35
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +151 -21
- data/third_party/abseil-cpp/absl/strings/str_cat.h +127 -25
- data/third_party/abseil-cpp/absl/strings/str_format.h +30 -20
- data/third_party/abseil-cpp/absl/strings/str_join.h +16 -16
- data/third_party/abseil-cpp/absl/strings/str_replace.cc +12 -3
- data/third_party/abseil-cpp/absl/strings/str_replace.h +8 -5
- data/third_party/abseil-cpp/absl/strings/str_split.cc +8 -6
- data/third_party/abseil-cpp/absl/strings/str_split.h +18 -0
- data/third_party/abseil-cpp/absl/strings/string_view.cc +26 -5
- data/third_party/abseil-cpp/absl/strings/string_view.h +91 -26
- data/third_party/abseil-cpp/absl/strings/strip.h +5 -2
- data/third_party/abseil-cpp/absl/strings/substitute.cc +12 -4
- data/third_party/abseil-cpp/absl/strings/substitute.h +103 -91
- data/third_party/abseil-cpp/absl/synchronization/internal/pthread_waiter.h +2 -2
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +2 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/win32_waiter.h +4 -2
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +296 -332
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +89 -34
- data/third_party/abseil-cpp/absl/time/civil_time.h +26 -0
- data/third_party/abseil-cpp/absl/time/clock.h +5 -1
- data/third_party/abseil-cpp/absl/time/duration.cc +3 -3
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time_detail.h +2 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +9 -14
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +0 -8
- data/third_party/abseil-cpp/absl/types/bad_optional_access.cc +18 -0
- data/third_party/abseil-cpp/absl/types/bad_variant_access.cc +18 -0
- data/third_party/abseil-cpp/absl/types/internal/variant.h +3 -3
- data/third_party/abseil-cpp/absl/types/optional.h +3 -2
- data/third_party/abseil-cpp/absl/types/span.h +9 -4
- data/third_party/abseil-cpp/absl/utility/utility.h +11 -93
- data/third_party/boringssl-with-bazel/err_data.c +278 -276
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_gentm.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_mbstr.c +9 -9
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strex.c +8 -21
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_type.c +19 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utctm.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +11 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +4 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/posix_time.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +1 -6
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_new.c +4 -13
- data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +1 -6
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +27 -4
- data/third_party/boringssl-with-bazel/src/crypto/bio/connect.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/bio/pair.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/bn_extra/convert.c +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/buf/buf.c +1 -11
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/ber.c +7 -8
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbb.c +42 -12
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/internal.h +0 -22
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/unicode.c +9 -9
- data/third_party/boringssl-with-bazel/src/crypto/chacha/chacha.c +34 -1
- data/third_party/boringssl-with-bazel/src/crypto/chacha/internal.h +49 -3
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesgcmsiv.c +30 -42
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +87 -96
- data/third_party/boringssl-with-bazel/src/crypto/conf/internal.h +5 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_intel.c +4 -2
- data/third_party/boringssl-with-bazel/src/crypto/crypto.c +11 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/spake25519.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/des/des.c +105 -31
- data/third_party/boringssl-with-bazel/src/crypto/des/internal.h +10 -81
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +2 -15
- data/third_party/boringssl-with-bazel/src/crypto/engine/engine.c +1 -9
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp.c +1 -5
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_ctx.c +2 -5
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_hkdf.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/evp/scrypt.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/add.c +2 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bn.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bytes.c +26 -17
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/ctx.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/exponentiation.c +4 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd.c +26 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/generic.c +10 -41
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +49 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery.c +26 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery_inv.c +27 -26
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/mul.c +2 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/prime.c +1 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c +8 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +11 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_aes.c +11 -24
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_aesccm.c +43 -50
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/dh.c +2 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digest.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_key.c +16 -9
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p224-64.c +7 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/wnaf.c +2 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.c +51 -13
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.h +17 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +5 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/blinding.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +6 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/fips.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/internal.h +153 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha1.c +87 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha256.c +39 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha512.c +32 -5
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +254 -54
- data/third_party/boringssl-with-bazel/src/crypto/keccak/internal.h +70 -0
- data/third_party/boringssl-with-bazel/src/crypto/keccak/keccak.c +279 -0
- data/third_party/boringssl-with-bazel/src/crypto/kyber/internal.h +8 -39
- data/third_party/boringssl-with-bazel/src/crypto/kyber/kyber.c +39 -29
- data/third_party/boringssl-with-bazel/src/crypto/lhash/lhash.c +3 -6
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +17 -33
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj.c +36 -16
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +0 -3
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_info.c +31 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7_x509.c +2 -4
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +9 -13
- data/third_party/boringssl-with-bazel/src/crypto/pool/pool.c +3 -6
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/forkunsafe.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_crypt.c +3 -1
- data/third_party/boringssl-with-bazel/src/crypto/spx/address.c +101 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/address.h +50 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/fors.c +133 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/fors.h +54 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/internal.h +79 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/merkle.c +150 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/merkle.h +61 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/params.h +71 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/spx.c +139 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/spx_util.c +53 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/spx_util.h +44 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/thash.c +136 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/thash.h +70 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/wots.c +135 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/wots.h +45 -0
- data/third_party/boringssl-with-bazel/src/crypto/stack/stack.c +4 -9
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +10 -22
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +3 -6
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/voprf.c +12 -36
- data/third_party/boringssl-with-bazel/src/crypto/x509/algorithm.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_dir.c +14 -9
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_file.c +23 -33
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +225 -51
- data/third_party/boringssl-with-bazel/src/crypto/x509/policy.c +2 -6
- data/third_party/boringssl-with-bazel/src/crypto/x509/rsa_pss.c +6 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_crl.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_req.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_akey.c +221 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_akeya.c +73 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_alt.c +634 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_bcons.c +135 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_bitst.c +141 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_conf.c +416 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_cpols.c +477 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_crld.c +598 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_enum.c +112 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_extku.c +154 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_genn.c +270 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ia5.c +122 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_info.c +211 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_int.c +121 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_lib.c +342 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ncons.c +555 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ocsp.c +81 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_pcons.c +142 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_pmaps.c +150 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_prn.c +224 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_purp.c +645 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_skey.c +170 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_utl.c +1357 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_att.c +35 -32
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +44 -59
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_ext.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +107 -255
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_req.c +32 -20
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +25 -152
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +330 -944
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +93 -215
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509name.c +28 -6
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509spki.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +35 -129
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_name.c +7 -8
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pubkey.c +46 -50
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_spki.c +2 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509a.c +6 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +0 -21
- data/third_party/boringssl-with-bazel/src/include/openssl/asm_base.h +5 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +3 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +24 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +14 -5
- data/third_party/boringssl-with-bazel/src/include/openssl/bytestring.h +22 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +1 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/conf.h +4 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/curve25519.h +2 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/des.h +0 -13
- data/third_party/boringssl-with-bazel/src/include/openssl/ec.h +33 -11
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/ex_data.h +5 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/kyber.h +26 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/mem.h +13 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/obj.h +5 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/opensslconf.h +1 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +19 -5
- data/third_party/boringssl-with-bazel/src/include/openssl/posix_time.h +45 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/rand.h +5 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/sha.h +20 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +18 -20
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +76 -60
- data/third_party/boringssl-with-bazel/src/include/openssl/target.h +31 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/time.h +3 -22
- data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +2 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +2806 -941
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +38 -1025
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3_errors.h +124 -0
- data/third_party/boringssl-with-bazel/src/ssl/d1_both.cc +1 -2
- data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +82 -9
- data/third_party/boringssl-with-bazel/src/ssl/handoff.cc +42 -4
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +4 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +4 -5
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +9 -1
- data/third_party/boringssl-with-bazel/src/ssl/ssl_x509.cc +0 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +5 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +5 -1
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64_adx.h +4 -2
- data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_64.h +21 -0
- data/third_party/cares/config_linux/ares_config.h +2 -38
- data/third_party/upb/upb/base/descriptor_constants.h +7 -27
- data/third_party/upb/upb/base/internal/log2.h +38 -0
- data/third_party/upb/upb/base/status.c +6 -26
- data/third_party/upb/upb/base/status.h +6 -26
- data/third_party/upb/upb/base/status.hpp +50 -0
- data/third_party/upb/upb/base/string_view.h +11 -28
- data/third_party/upb/upb/generated_code_support.h +13 -34
- data/third_party/upb/upb/hash/common.c +7 -44
- data/third_party/upb/upb/hash/common.h +16 -42
- data/third_party/upb/upb/hash/int_table.h +6 -26
- data/third_party/upb/upb/hash/str_table.h +6 -26
- data/third_party/upb/upb/json/decode.c +31 -28
- data/third_party/upb/upb/json/decode.h +32 -29
- data/third_party/upb/upb/json/encode.c +31 -28
- data/third_party/upb/upb/json/encode.h +35 -32
- data/third_party/upb/upb/lex/atoi.c +6 -26
- data/third_party/upb/upb/lex/atoi.h +8 -26
- data/third_party/upb/upb/lex/round_trip.c +6 -26
- data/third_party/upb/upb/lex/round_trip.h +6 -26
- data/third_party/upb/upb/lex/strtod.c +6 -26
- data/third_party/upb/upb/lex/strtod.h +6 -26
- data/third_party/upb/upb/lex/unicode.c +6 -26
- data/third_party/upb/upb/lex/unicode.h +8 -26
- data/third_party/upb/upb/mem/alloc.c +6 -26
- data/third_party/upb/upb/mem/alloc.h +6 -26
- data/third_party/upb/upb/mem/arena.c +30 -29
- data/third_party/upb/upb/mem/arena.h +16 -44
- data/third_party/upb/upb/mem/arena.hpp +54 -0
- data/third_party/upb/upb/mem/internal/arena.h +94 -0
- data/third_party/upb/upb/message/accessors.c +10 -31
- data/third_party/upb/upb/message/accessors.h +12 -32
- data/third_party/upb/upb/message/array.c +154 -0
- data/third_party/upb/upb/message/array.h +98 -0
- data/third_party/upb/upb/message/internal/accessors.h +367 -0
- data/third_party/upb/upb/message/internal/array.h +138 -0
- data/third_party/upb/upb/message/internal/extension.h +63 -0
- data/third_party/upb/upb/message/internal/map.h +173 -0
- data/third_party/upb/upb/message/internal/map_entry.h +35 -33
- data/third_party/upb/upb/message/internal/map_sorter.h +112 -0
- data/third_party/upb/upb/message/internal/message.h +106 -0
- data/third_party/upb/upb/message/internal/types.h +23 -0
- data/third_party/upb/upb/message/map.c +145 -0
- data/third_party/upb/upb/message/map.h +147 -0
- data/third_party/upb/upb/message/map_gencode_util.h +81 -0
- data/third_party/upb/upb/message/map_sorter.c +170 -0
- data/third_party/upb/upb/message/message.c +8 -28
- data/third_party/upb/upb/message/message.h +9 -26
- data/third_party/upb/upb/message/tagged_ptr.h +8 -28
- data/third_party/upb/upb/message/types.h +15 -0
- data/third_party/upb/upb/message/value.h +46 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.c +6 -26
- data/third_party/upb/upb/mini_descriptor/build_enum.h +7 -28
- data/third_party/upb/upb/mini_descriptor/decode.c +21 -26
- data/third_party/upb/upb/mini_descriptor/decode.h +6 -26
- data/third_party/upb/upb/mini_descriptor/internal/base92.c +6 -26
- data/third_party/upb/upb/mini_descriptor/internal/base92.h +9 -27
- data/third_party/upb/upb/mini_descriptor/internal/decoder.h +6 -26
- data/third_party/upb/upb/mini_descriptor/internal/encode.c +25 -28
- data/third_party/upb/upb/mini_descriptor/internal/encode.h +8 -26
- data/third_party/upb/upb/mini_descriptor/internal/encode.hpp +21 -39
- data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +8 -26
- data/third_party/upb/upb/mini_descriptor/internal/wire_constants.h +7 -26
- data/third_party/upb/upb/mini_descriptor/link.c +8 -28
- data/third_party/upb/upb/mini_descriptor/link.h +6 -26
- data/third_party/upb/upb/mini_table/enum.h +14 -26
- data/third_party/upb/upb/mini_table/extension.h +6 -31
- data/third_party/upb/upb/mini_table/extension_registry.c +6 -26
- data/third_party/upb/upb/mini_table/extension_registry.h +7 -27
- data/third_party/upb/upb/mini_table/field.h +6 -26
- data/third_party/upb/upb/mini_table/file.h +6 -26
- data/third_party/upb/upb/mini_table/internal/enum.h +8 -26
- data/third_party/upb/upb/mini_table/internal/extension.h +6 -26
- data/third_party/upb/upb/mini_table/internal/field.h +8 -30
- data/third_party/upb/upb/mini_table/internal/file.h +9 -29
- data/third_party/upb/upb/mini_table/internal/message.c +6 -26
- data/third_party/upb/upb/mini_table/internal/message.h +7 -32
- data/third_party/upb/upb/mini_table/internal/sub.h +6 -27
- data/third_party/upb/upb/mini_table/message.c +6 -26
- data/third_party/upb/upb/mini_table/message.h +6 -26
- data/third_party/upb/upb/mini_table/sub.h +6 -26
- data/third_party/upb/upb/port/atomic.h +8 -26
- data/third_party/upb/upb/port/def.inc +28 -29
- data/third_party/upb/upb/port/undef.inc +8 -26
- data/third_party/upb/upb/port/vsnprintf_compat.h +6 -26
- data/third_party/upb/upb/reflection/common.h +11 -27
- data/third_party/upb/upb/reflection/def.h +8 -26
- data/third_party/upb/upb/reflection/def.hpp +10 -27
- data/third_party/upb/upb/reflection/def_pool.c +16 -35
- data/third_party/upb/upb/reflection/def_pool.h +17 -38
- data/third_party/upb/upb/reflection/def_type.c +6 -26
- data/third_party/upb/upb/reflection/def_type.h +6 -27
- data/third_party/upb/upb/reflection/desc_state.c +7 -27
- data/third_party/upb/upb/reflection/enum_def.c +18 -36
- data/third_party/upb/upb/reflection/enum_def.h +13 -33
- data/third_party/upb/upb/reflection/enum_reserved_range.c +9 -30
- data/third_party/upb/upb/reflection/enum_reserved_range.h +6 -26
- data/third_party/upb/upb/reflection/enum_value_def.c +13 -32
- data/third_party/upb/upb/reflection/enum_value_def.h +8 -28
- data/third_party/upb/upb/reflection/extension_range.c +9 -28
- data/third_party/upb/upb/reflection/extension_range.h +6 -26
- data/third_party/upb/upb/reflection/field_def.c +68 -51
- data/third_party/upb/upb/reflection/field_def.h +25 -42
- data/third_party/upb/upb/reflection/file_def.c +23 -48
- data/third_party/upb/upb/reflection/file_def.h +10 -30
- data/third_party/upb/upb/reflection/internal/def_builder.c +339 -0
- data/third_party/upb/upb/reflection/internal/def_builder.h +137 -0
- data/third_party/upb/upb/reflection/internal/def_pool.h +57 -0
- data/third_party/upb/upb/reflection/internal/desc_state.h +44 -0
- data/third_party/upb/upb/reflection/internal/enum_def.h +36 -0
- data/third_party/upb/upb/reflection/internal/enum_reserved_range.h +35 -0
- data/third_party/upb/upb/reflection/internal/enum_value_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/extension_range.h +34 -0
- data/third_party/upb/upb/reflection/internal/field_def.h +56 -0
- data/third_party/upb/upb/reflection/internal/file_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/message_def.h +43 -0
- data/third_party/upb/upb/reflection/internal/message_reserved_range.h +35 -0
- data/third_party/upb/upb/reflection/internal/method_def.h +33 -0
- data/third_party/upb/upb/reflection/internal/oneof_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/service_def.h +33 -0
- data/third_party/upb/upb/reflection/internal/strdup2.c +33 -0
- data/third_party/upb/upb/reflection/internal/strdup2.h +32 -0
- data/third_party/upb/upb/reflection/message.c +8 -28
- data/third_party/upb/upb/reflection/message.h +27 -40
- data/third_party/upb/upb/reflection/message.hpp +5 -23
- data/third_party/upb/upb/reflection/message_def.c +70 -54
- data/third_party/upb/upb/reflection/message_def.h +25 -43
- data/third_party/upb/upb/reflection/message_reserved_range.c +8 -28
- data/third_party/upb/upb/reflection/message_reserved_range.h +6 -26
- data/third_party/upb/upb/reflection/method_def.c +10 -29
- data/third_party/upb/upb/reflection/method_def.h +6 -26
- data/third_party/upb/upb/reflection/oneof_def.c +15 -33
- data/third_party/upb/upb/reflection/oneof_def.h +11 -30
- data/third_party/upb/upb/reflection/service_def.c +12 -31
- data/third_party/upb/upb/reflection/service_def.h +6 -26
- data/third_party/upb/upb/text/encode.c +8 -28
- data/third_party/upb/upb/text/encode.h +6 -26
- data/third_party/upb/upb/wire/decode.c +39 -40
- data/third_party/upb/upb/wire/decode.h +10 -26
- data/third_party/upb/upb/wire/decode_fast.c +10 -28
- data/third_party/upb/upb/wire/decode_fast.h +6 -26
- data/third_party/upb/upb/wire/encode.c +30 -34
- data/third_party/upb/upb/wire/encode.h +14 -30
- data/third_party/upb/upb/wire/eps_copy_input_stream.c +6 -26
- data/third_party/upb/upb/wire/eps_copy_input_stream.h +6 -26
- data/third_party/upb/upb/wire/internal/constants.h +27 -0
- data/third_party/upb/upb/wire/internal/decode.h +143 -0
- data/third_party/upb/upb/wire/internal/swap.h +45 -0
- data/third_party/upb/upb/wire/reader.c +6 -26
- data/third_party/upb/upb/wire/reader.h +8 -28
- data/third_party/upb/upb/wire/types.h +6 -26
- data/third_party/zlib/adler32.c +5 -27
- data/third_party/zlib/compress.c +5 -16
- data/third_party/zlib/crc32.c +86 -162
- data/third_party/zlib/deflate.c +233 -336
- data/third_party/zlib/deflate.h +8 -8
- data/third_party/zlib/gzguts.h +11 -12
- data/third_party/zlib/infback.c +7 -23
- data/third_party/zlib/inffast.c +1 -4
- data/third_party/zlib/inffast.h +1 -1
- data/third_party/zlib/inflate.c +30 -99
- data/third_party/zlib/inftrees.c +6 -11
- data/third_party/zlib/inftrees.h +3 -3
- data/third_party/zlib/trees.c +224 -302
- data/third_party/zlib/uncompr.c +4 -12
- data/third_party/zlib/zconf.h +6 -2
- data/third_party/zlib/zlib.h +191 -188
- data/third_party/zlib/zutil.c +16 -44
- data/third_party/zlib/zutil.h +10 -10
- metadata +1085 -860
- data/src/core/ext/filters/client_channel/backend_metric.cc +0 -95
- data/src/core/ext/filters/client_channel/backend_metric.h +0 -47
- data/src/core/ext/filters/client_channel/backup_poller.cc +0 -178
- data/src/core/ext/filters/client_channel/backup_poller.h +0 -37
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +0 -265
- data/src/core/ext/filters/client_channel/client_channel.cc +0 -3612
- data/src/core/ext/filters/client_channel/client_channel.h +0 -639
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +0 -93
- data/src/core/ext/filters/client_channel/client_channel_channelz.h +0 -85
- data/src/core/ext/filters/client_channel/client_channel_factory.cc +0 -32
- data/src/core/ext/filters/client_channel/client_channel_factory.h +0 -46
- data/src/core/ext/filters/client_channel/client_channel_internal.h +0 -77
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +0 -56
- data/src/core/ext/filters/client_channel/client_channel_service_config.cc +0 -153
- data/src/core/ext/filters/client_channel/client_channel_service_config.h +0 -111
- data/src/core/ext/filters/client_channel/config_selector.cc +0 -60
- data/src/core/ext/filters/client_channel/config_selector.h +0 -125
- data/src/core/ext/filters/client_channel/connector.h +0 -88
- data/src/core/ext/filters/client_channel/dynamic_filters.cc +0 -175
- data/src/core/ext/filters/client_channel/dynamic_filters.h +0 -110
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +0 -65
- data/src/core/ext/filters/client_channel/global_subchannel_pool.h +0 -63
- data/src/core/ext/filters/client_channel/http_proxy_mapper.cc +0 -238
- data/src/core/ext/filters/client_channel/http_proxy_mapper.h +0 -52
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +0 -74
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +0 -117
- data/src/core/ext/filters/client_channel/lb_policy/backend_metric_data.h +0 -57
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +0 -315
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h +0 -88
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.cc +0 -188
- data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.h +0 -214
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +0 -85
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +0 -46
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +0 -1880
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +0 -39
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +0 -89
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +0 -39
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +0 -90
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +0 -81
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +0 -202
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +0 -77
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +0 -515
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.h +0 -52
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +0 -204
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.cc +0 -335
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.h +0 -57
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric_internal.h +0 -119
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +0 -1116
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +0 -94
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +0 -875
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +0 -36
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +0 -897
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +0 -856
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +0 -64
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +0 -2457
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +0 -921
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +0 -456
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.cc +0 -198
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.h +0 -71
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +0 -1813
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +0 -752
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +0 -712
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +0 -37
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +0 -750
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +0 -650
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +0 -1173
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +0 -832
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.h +0 -67
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_wrr_locality.cc +0 -301
- data/src/core/ext/filters/client_channel/local_subchannel_pool.cc +0 -60
- data/src/core/ext/filters/client_channel/local_subchannel_pool.h +0 -59
- data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +0 -148
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +0 -758
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.h +0 -30
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +0 -90
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +0 -206
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +0 -818
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +0 -1218
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +0 -139
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +0 -29
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +0 -35
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.cc +0 -66
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.h +0 -27
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +0 -586
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.h +0 -35
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.cc +0 -97
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.h +0 -32
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +0 -184
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.h +0 -24
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +0 -386
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +0 -144
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +0 -326
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.cc +0 -274
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.h +0 -121
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +0 -202
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +0 -1286
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +0 -61
- data/src/core/ext/filters/client_channel/retry_filter.cc +0 -160
- data/src/core/ext/filters/client_channel/retry_filter.h +0 -122
- data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.cc +0 -2052
- data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.h +0 -442
- data/src/core/ext/filters/client_channel/retry_service_config.cc +0 -283
- data/src/core/ext/filters/client_channel/retry_service_config.h +0 -105
- data/src/core/ext/filters/client_channel/retry_throttle.cc +0 -139
- data/src/core/ext/filters/client_channel/retry_throttle.h +0 -92
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +0 -124
- data/src/core/ext/filters/client_channel/subchannel.cc +0 -811
- data/src/core/ext/filters/client_channel/subchannel.h +0 -387
- data/src/core/ext/filters/client_channel/subchannel_interface_internal.h +0 -41
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.cc +0 -66
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.h +0 -100
- data/src/core/ext/filters/client_channel/subchannel_stream_client.cc +0 -469
- data/src/core/ext/filters/client_channel/subchannel_stream_client.h +0 -225
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +0 -150
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +0 -727
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +0 -181
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +0 -827
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +0 -158
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +0 -735
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +0 -533
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +0 -2788
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +0 -67
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +0 -248
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +0 -75
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +0 -279
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +0 -57
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +0 -160
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +0 -50
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +0 -120
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +0 -50
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +0 -115
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +0 -151
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +0 -927
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +0 -55
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +0 -114
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +0 -61
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +0 -126
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +0 -110
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +0 -376
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +0 -1764
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +0 -570
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +0 -3249
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +0 -126
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +0 -524
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +0 -730
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +0 -3918
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +0 -55
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +0 -114
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +0 -124
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +0 -656
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +0 -396
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +0 -1841
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +0 -225
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +0 -1046
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +0 -126
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +0 -578
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +0 -2440
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +0 -226
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +0 -1133
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +0 -54
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +0 -114
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +0 -69
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +0 -248
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +0 -379
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +0 -1699
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +0 -316
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +0 -1943
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +0 -141
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +0 -482
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +0 -2256
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +0 -71
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +0 -237
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +0 -73
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +0 -231
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +0 -77
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +0 -285
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +0 -67
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +0 -252
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +0 -55
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +0 -128
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +0 -139
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +0 -490
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +0 -205
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +0 -867
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +0 -180
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +0 -912
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +0 -51
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +0 -99
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +0 -267
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +0 -1592
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +0 -261
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +0 -1451
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +0 -87
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +0 -323
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +0 -78
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +0 -196
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +0 -65
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +0 -179
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +0 -220
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +0 -980
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +0 -251
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +0 -1189
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +0 -349
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +0 -1709
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +0 -134
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +0 -859
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +0 -1644
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +0 -9590
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +0 -98
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +0 -339
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +0 -326
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +0 -1522
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +0 -115
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +0 -114
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +0 -74
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +0 -188
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +0 -63
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +0 -197
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +0 -82
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +0 -405
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +0 -53
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +0 -114
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +0 -99
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +0 -86
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +0 -251
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +0 -34
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +0 -40
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +0 -88
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +0 -253
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +0 -66
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +0 -196
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.c +0 -556
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.h +0 -2702
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +0 -47
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +0 -131
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +0 -117
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +0 -429
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +0 -142
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +0 -656
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +0 -88
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +0 -263
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +0 -102
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +0 -460
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +0 -73
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +0 -193
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +0 -680
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +0 -3965
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +0 -51
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +0 -99
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +0 -68
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +0 -238
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +0 -136
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +0 -491
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.c +0 -45
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +0 -85
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +0 -69
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +0 -249
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +0 -51
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +0 -99
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +0 -29
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +0 -35
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +0 -263
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +0 -1471
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +0 -109
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +0 -361
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +0 -268
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +0 -1474
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +0 -73
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +0 -216
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +0 -39
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +0 -70
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +0 -403
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +0 -2153
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +0 -85
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +0 -323
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +0 -183
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +0 -915
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +0 -55
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +0 -129
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +0 -87
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +0 -313
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +0 -54
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +0 -122
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +0 -106
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +0 -301
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +0 -77
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +0 -258
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +0 -164
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +0 -55
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +0 -127
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +0 -97
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +0 -269
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +0 -44
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +0 -109
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +0 -82
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +0 -304
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +0 -71
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +0 -228
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +0 -93
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +0 -346
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +0 -128
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +0 -528
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +0 -140
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +0 -508
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +0 -77
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +0 -226
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +0 -27
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +0 -36
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +0 -47
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +0 -145
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +0 -65
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +0 -160
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +0 -85
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +0 -238
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +0 -76
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +0 -229
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +0 -27
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +0 -40
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +0 -50
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +0 -115
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +0 -143
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +0 -41
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +0 -55
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +0 -370
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +0 -1756
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +0 -400
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +0 -1841
- data/src/core/ext/upb-generated/google/api/http.upb.c +0 -112
- data/src/core/ext/upb-generated/google/api/http.upb.h +0 -499
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +0 -53
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +0 -165
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +0 -47
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +0 -100
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +0 -1327
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +0 -6236
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +0 -47
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +0 -100
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +0 -36
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +0 -70
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +0 -116
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +0 -426
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +0 -47
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +0 -100
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +0 -164
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +0 -517
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +0 -53
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +0 -165
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +0 -107
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +0 -389
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +0 -80
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +0 -238
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +0 -343
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +0 -1669
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +0 -70
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +0 -199
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +0 -59
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +0 -146
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +0 -222
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +0 -885
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +0 -93
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +0 -300
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +0 -244
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +0 -1341
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +0 -127
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +0 -333
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +0 -62
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +0 -125
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +0 -39
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +0 -55
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +0 -61
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +0 -132
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +0 -58
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +0 -110
- data/src/core/ext/upb-generated/validate/validate.upb.c +0 -948
- data/src/core/ext/upb-generated/validate/validate.upb.h +0 -6536
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +0 -127
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +0 -333
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +0 -62
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +0 -125
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +0 -39
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +0 -55
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +0 -124
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +0 -344
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +0 -58
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +0 -110
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +0 -46
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +0 -85
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +0 -54
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +0 -114
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +0 -79
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +0 -233
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +0 -63
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +0 -134
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +0 -53
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +0 -114
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +0 -56
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +0 -143
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +0 -85
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +0 -330
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +0 -60
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +0 -144
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +0 -127
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +0 -352
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +0 -53
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +0 -160
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +0 -51
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +0 -99
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +0 -73
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +0 -262
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +0 -37
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +0 -70
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +0 -76
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +0 -281
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +0 -266
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +0 -1114
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +0 -158
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +0 -732
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +0 -59
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +0 -159
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +0 -80
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +0 -304
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +0 -80
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +0 -232
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +0 -83
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +0 -238
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +0 -52
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +0 -114
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +0 -84
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +0 -128
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +0 -102
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.c +0 -277
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.h +0 -126
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +0 -43
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +0 -49
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +0 -142
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +0 -38
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +0 -234
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +0 -111
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +0 -408
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +0 -121
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +0 -98
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +0 -567
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +0 -151
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +0 -138
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +0 -206
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +0 -106
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +0 -132
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +0 -271
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +0 -151
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +0 -168
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +0 -237
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +0 -101
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +0 -245
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +0 -76
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +0 -311
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +0 -111
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +0 -70
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +0 -49
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +0 -133
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +0 -61
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +0 -136
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +0 -227
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +0 -81
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +0 -190
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +0 -101
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +0 -76
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +0 -125
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +0 -142
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +0 -81
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +0 -223
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +0 -86
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +0 -123
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +0 -972
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +0 -316
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +0 -77
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +0 -199
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +0 -91
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +0 -72
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +0 -75
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +0 -79
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/data/accesslog/v3/accesslog.upbdefs.c +0 -402
- data/src/core/ext/upbdefs-generated/envoy/data/accesslog/v3/accesslog.upbdefs.h +0 -111
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +0 -50
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +0 -92
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +0 -123
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +0 -80
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +0 -105
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +0 -60
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +0 -602
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +0 -136
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +0 -50
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +0 -215
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +0 -91
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +0 -258
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +0 -200
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +0 -101
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +0 -76
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +0 -152
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +0 -65
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +0 -75
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +0 -78
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +0 -85
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +0 -94
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.c +0 -69
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +0 -44
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +0 -154
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +0 -96
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +0 -153
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +0 -101
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +0 -34
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +0 -464
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +0 -181
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +0 -32
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +0 -76
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +0 -37
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +0 -67
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +0 -76
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +0 -62
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +0 -34
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +0 -283
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +0 -146
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +0 -63
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +0 -64
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +0 -38
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.c +0 -43
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +0 -126
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +0 -81
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.h +0 -61
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.c +0 -60
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +0 -37
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +0 -36
- data/src/core/lib/event_engine/memory_allocator.cc +0 -74
- data/src/core/lib/iomgr/load_file.cc +0 -78
- data/src/core/lib/iomgr/load_file.h +0 -35
- data/src/core/lib/load_balancing/delegating_helper.h +0 -115
- data/src/core/lib/load_balancing/lb_policy.cc +0 -98
- data/src/core/lib/load_balancing/lb_policy.h +0 -478
- data/src/core/lib/load_balancing/lb_policy_factory.h +0 -49
- data/src/core/lib/load_balancing/lb_policy_registry.cc +0 -143
- data/src/core/lib/load_balancing/lb_policy_registry.h +0 -82
- data/src/core/lib/load_balancing/subchannel_interface.h +0 -141
- data/src/core/lib/resolver/resolver.cc +0 -37
- data/src/core/lib/resolver/resolver.h +0 -138
- data/src/core/lib/resolver/resolver_factory.h +0 -78
- data/src/core/lib/resolver/resolver_registry.cc +0 -164
- data/src/core/lib/resolver/resolver_registry.h +0 -123
- data/src/core/lib/resolver/server_address.cc +0 -89
- data/src/core/lib/resolver/server_address.h +0 -86
- data/src/core/lib/service_config/service_config.h +0 -89
- data/src/core/lib/service_config/service_config_call_data.h +0 -116
- data/src/core/lib/service_config/service_config_impl.cc +0 -198
- data/src/core/lib/service_config/service_config_impl.h +0 -125
- data/src/core/lib/service_config/service_config_parser.cc +0 -81
- data/src/core/lib/service_config/service_config_parser.h +0 -105
- data/src/core/lib/transport/pid_controller.cc +0 -51
- data/src/core/lib/transport/pid_controller.h +0 -116
- data/src/core/lib/transport/transport_impl.h +0 -102
- data/third_party/abseil-cpp/absl/base/internal/prefetch.h +0 -137
- data/third_party/abseil-cpp/absl/base/internal/thread_annotations.h +0 -280
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_64.cc +0 -432
- data/third_party/abseil-cpp/absl/flags/flag.cc +0 -38
- data/third_party/abseil-cpp/absl/flags/internal/flag_msvc.inc +0 -116
- data/third_party/abseil-cpp/absl/strings/internal/char_map.h +0 -158
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.cc +0 -773
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.h +0 -607
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring_reader.h +0 -118
- data/third_party/boringssl-with-bazel/src/crypto/kyber/keccak.c +0 -204
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_info.c +0 -100
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pkey.c +0 -111
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +0 -197
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akey.c +0 -221
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akeya.c +0 -71
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +0 -635
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bcons.c +0 -135
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bitst.c +0 -141
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +0 -418
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +0 -477
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_crld.c +0 -599
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_enum.c +0 -111
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_extku.c +0 -154
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_genn.c +0 -270
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ia5.c +0 -122
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_info.c +0 -213
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_int.c +0 -121
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +0 -341
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ncons.c +0 -555
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ocsp.c +0 -81
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pcons.c +0 -142
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pmaps.c +0 -150
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_prn.c +0 -225
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +0 -888
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +0 -171
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +0 -1355
- data/third_party/upb/upb/alloc.h +0 -36
- data/third_party/upb/upb/arena.h +0 -36
- data/third_party/upb/upb/array.h +0 -36
- data/third_party/upb/upb/base/log2.h +0 -57
- data/third_party/upb/upb/collections/array.c +0 -151
- data/third_party/upb/upb/collections/array.h +0 -91
- data/third_party/upb/upb/collections/array_internal.h +0 -135
- data/third_party/upb/upb/collections/map.c +0 -142
- data/third_party/upb/upb/collections/map.h +0 -140
- data/third_party/upb/upb/collections/map_gencode_util.h +0 -78
- data/third_party/upb/upb/collections/map_internal.h +0 -170
- data/third_party/upb/upb/collections/map_sorter.c +0 -166
- data/third_party/upb/upb/collections/map_sorter_internal.h +0 -109
- data/third_party/upb/upb/collections/message_value.h +0 -72
- data/third_party/upb/upb/decode.h +0 -36
- data/third_party/upb/upb/def.h +0 -36
- data/third_party/upb/upb/def.hpp +0 -33
- data/third_party/upb/upb/encode.h +0 -36
- data/third_party/upb/upb/extension_registry.h +0 -35
- data/third_party/upb/upb/map.h +0 -36
- data/third_party/upb/upb/mem/arena_internal.h +0 -114
- data/third_party/upb/upb/message/accessors_internal.h +0 -391
- data/third_party/upb/upb/message/extension_internal.h +0 -83
- data/third_party/upb/upb/message/internal.h +0 -131
- data/third_party/upb/upb/msg.h +0 -36
- data/third_party/upb/upb/reflection/def_builder.c +0 -357
- data/third_party/upb/upb/reflection/def_builder_internal.h +0 -157
- data/third_party/upb/upb/reflection/def_pool_internal.h +0 -77
- data/third_party/upb/upb/reflection/desc_state_internal.h +0 -64
- data/third_party/upb/upb/reflection/enum_def_internal.h +0 -56
- data/third_party/upb/upb/reflection/enum_reserved_range_internal.h +0 -55
- data/third_party/upb/upb/reflection/enum_value_def_internal.h +0 -57
- data/third_party/upb/upb/reflection/extension_range_internal.h +0 -54
- data/third_party/upb/upb/reflection/field_def_internal.h +0 -76
- data/third_party/upb/upb/reflection/file_def_internal.h +0 -57
- data/third_party/upb/upb/reflection/message_def_internal.h +0 -63
- data/third_party/upb/upb/reflection/message_reserved_range_internal.h +0 -55
- data/third_party/upb/upb/reflection/method_def_internal.h +0 -53
- data/third_party/upb/upb/reflection/oneof_def_internal.h +0 -57
- data/third_party/upb/upb/reflection/service_def_internal.h +0 -53
- data/third_party/upb/upb/reflection.h +0 -36
- data/third_party/upb/upb/reflection.hpp +0 -33
- data/third_party/upb/upb/status.h +0 -36
- data/third_party/upb/upb/string_view.h +0 -36
- data/third_party/upb/upb/text_encode.h +0 -36
- data/third_party/upb/upb/upb.h +0 -39
- data/third_party/upb/upb/upb.hpp +0 -107
- data/third_party/upb/upb/wire/common.h +0 -44
- data/third_party/upb/upb/wire/common_internal.h +0 -50
- data/third_party/upb/upb/wire/decode_internal.h +0 -163
- data/third_party/upb/upb/wire/swap_internal.h +0 -63
- /data/third_party/boringssl-with-bazel/src/crypto/{x509v3 → x509}/ext_dat.h +0 -0
@@ -0,0 +1,2477 @@
|
|
1
|
+
//
|
2
|
+
// Copyright 2020 gRPC authors.
|
3
|
+
//
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
// you may not use this file except in compliance with the License.
|
6
|
+
// You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
// See the License for the specific language governing permissions and
|
14
|
+
// limitations under the License.
|
15
|
+
//
|
16
|
+
|
17
|
+
// Implementation of the Route Lookup Service (RLS) LB policy
|
18
|
+
//
|
19
|
+
// The policy queries a route lookup service for the name of the actual service
|
20
|
+
// to use. A child policy that recognizes the name as a field of its
|
21
|
+
// configuration will take further load balancing action on the request.
|
22
|
+
|
23
|
+
#include <grpc/support/port_platform.h>
|
24
|
+
|
25
|
+
#include <inttypes.h>
|
26
|
+
#include <stdlib.h>
|
27
|
+
#include <string.h>
|
28
|
+
|
29
|
+
#include <algorithm>
|
30
|
+
#include <deque>
|
31
|
+
#include <list>
|
32
|
+
#include <map>
|
33
|
+
#include <memory>
|
34
|
+
#include <random>
|
35
|
+
#include <set>
|
36
|
+
#include <string>
|
37
|
+
#include <type_traits>
|
38
|
+
#include <unordered_map>
|
39
|
+
#include <utility>
|
40
|
+
#include <vector>
|
41
|
+
|
42
|
+
#include "absl/base/thread_annotations.h"
|
43
|
+
#include "absl/hash/hash.h"
|
44
|
+
#include "absl/status/status.h"
|
45
|
+
#include "absl/status/statusor.h"
|
46
|
+
#include "absl/strings/str_cat.h"
|
47
|
+
#include "absl/strings/str_format.h"
|
48
|
+
#include "absl/strings/str_join.h"
|
49
|
+
#include "absl/strings/string_view.h"
|
50
|
+
#include "absl/types/optional.h"
|
51
|
+
#include "upb/base/string_view.h"
|
52
|
+
#include "upb/mem/arena.hpp"
|
53
|
+
|
54
|
+
#include <grpc/byte_buffer.h>
|
55
|
+
#include <grpc/byte_buffer_reader.h>
|
56
|
+
#include <grpc/event_engine/event_engine.h>
|
57
|
+
#include <grpc/grpc.h>
|
58
|
+
#include <grpc/impl/channel_arg_names.h>
|
59
|
+
#include <grpc/impl/connectivity_state.h>
|
60
|
+
#include <grpc/impl/propagation_bits.h>
|
61
|
+
#include <grpc/slice.h>
|
62
|
+
#include <grpc/status.h>
|
63
|
+
#include <grpc/support/json.h>
|
64
|
+
#include <grpc/support/log.h>
|
65
|
+
|
66
|
+
#include "src/core/client_channel/client_channel_filter.h"
|
67
|
+
#include "src/core/load_balancing/child_policy_handler.h"
|
68
|
+
#include "src/core/lib/backoff/backoff.h"
|
69
|
+
#include "src/core/lib/channel/channel_args.h"
|
70
|
+
#include "src/core/lib/channel/channelz.h"
|
71
|
+
#include "src/core/lib/config/core_configuration.h"
|
72
|
+
#include "src/core/lib/debug/trace.h"
|
73
|
+
#include "src/core/lib/gprpp/debug_location.h"
|
74
|
+
#include "src/core/lib/gprpp/dual_ref_counted.h"
|
75
|
+
#include "src/core/lib/gprpp/orphanable.h"
|
76
|
+
#include "src/core/lib/gprpp/ref_counted_ptr.h"
|
77
|
+
#include "src/core/lib/gprpp/status_helper.h"
|
78
|
+
#include "src/core/lib/gprpp/sync.h"
|
79
|
+
#include "src/core/lib/gprpp/time.h"
|
80
|
+
#include "src/core/lib/gprpp/validation_errors.h"
|
81
|
+
#include "src/core/lib/gprpp/work_serializer.h"
|
82
|
+
#include "src/core/lib/iomgr/closure.h"
|
83
|
+
#include "src/core/lib/iomgr/error.h"
|
84
|
+
#include "src/core/lib/iomgr/exec_ctx.h"
|
85
|
+
#include "src/core/lib/iomgr/pollset_set.h"
|
86
|
+
#include "src/core/lib/json/json.h"
|
87
|
+
#include "src/core/lib/json/json_args.h"
|
88
|
+
#include "src/core/lib/json/json_object_loader.h"
|
89
|
+
#include "src/core/lib/json/json_writer.h"
|
90
|
+
#include "src/core/lib/security/credentials/fake/fake_credentials.h"
|
91
|
+
#include "src/core/service_config/service_config_impl.h"
|
92
|
+
#include "src/core/lib/slice/slice.h"
|
93
|
+
#include "src/core/lib/slice/slice_internal.h"
|
94
|
+
#include "src/core/lib/surface/call.h"
|
95
|
+
#include "src/core/lib/surface/channel.h"
|
96
|
+
#include "src/core/lib/transport/connectivity_state.h"
|
97
|
+
#include "src/core/lib/transport/error_utils.h"
|
98
|
+
#include "src/core/load_balancing/delegating_helper.h"
|
99
|
+
#include "src/core/load_balancing/lb_policy.h"
|
100
|
+
#include "src/core/load_balancing/lb_policy_factory.h"
|
101
|
+
#include "src/core/load_balancing/lb_policy_registry.h"
|
102
|
+
#include "src/core/resolver/endpoint_addresses.h"
|
103
|
+
#include "src/core/resolver/resolver_registry.h"
|
104
|
+
#include "src/proto/grpc/lookup/v1/rls.upb.h"
|
105
|
+
|
106
|
+
namespace grpc_core {
|
107
|
+
|
108
|
+
TraceFlag grpc_lb_rls_trace(false, "rls_lb");
|
109
|
+
|
110
|
+
namespace {
|
111
|
+
|
112
|
+
using ::grpc_event_engine::experimental::EventEngine;
|
113
|
+
|
114
|
+
constexpr absl::string_view kRls = "rls_experimental";
|
115
|
+
const char kGrpc[] = "grpc";
|
116
|
+
const char* kRlsRequestPath = "/grpc.lookup.v1.RouteLookupService/RouteLookup";
|
117
|
+
const char* kFakeTargetFieldValue = "fake_target_field_value";
|
118
|
+
const char* kRlsHeaderKey = "x-google-rls-data";
|
119
|
+
|
120
|
+
const Duration kDefaultLookupServiceTimeout = Duration::Seconds(10);
|
121
|
+
const Duration kMaxMaxAge = Duration::Minutes(5);
|
122
|
+
const Duration kMinExpirationTime = Duration::Seconds(5);
|
123
|
+
const Duration kCacheBackoffInitial = Duration::Seconds(1);
|
124
|
+
const double kCacheBackoffMultiplier = 1.6;
|
125
|
+
const double kCacheBackoffJitter = 0.2;
|
126
|
+
const Duration kCacheBackoffMax = Duration::Minutes(2);
|
127
|
+
const Duration kDefaultThrottleWindowSize = Duration::Seconds(30);
|
128
|
+
const double kDefaultThrottleRatioForSuccesses = 2.0;
|
129
|
+
const int kDefaultThrottlePadding = 8;
|
130
|
+
const Duration kCacheCleanupTimerInterval = Duration::Minutes(1);
|
131
|
+
const int64_t kMaxCacheSizeBytes = 5 * 1024 * 1024;
|
132
|
+
|
133
|
+
// Parsed RLS LB policy configuration.
|
134
|
+
class RlsLbConfig : public LoadBalancingPolicy::Config {
|
135
|
+
public:
|
136
|
+
struct KeyBuilder {
|
137
|
+
std::map<std::string /*key*/, std::vector<std::string /*header*/>>
|
138
|
+
header_keys;
|
139
|
+
std::string host_key;
|
140
|
+
std::string service_key;
|
141
|
+
std::string method_key;
|
142
|
+
std::map<std::string /*key*/, std::string /*value*/> constant_keys;
|
143
|
+
};
|
144
|
+
using KeyBuilderMap = std::unordered_map<std::string /*path*/, KeyBuilder>;
|
145
|
+
|
146
|
+
struct RouteLookupConfig {
|
147
|
+
KeyBuilderMap key_builder_map;
|
148
|
+
std::string lookup_service;
|
149
|
+
Duration lookup_service_timeout = kDefaultLookupServiceTimeout;
|
150
|
+
Duration max_age = kMaxMaxAge;
|
151
|
+
Duration stale_age = kMaxMaxAge;
|
152
|
+
int64_t cache_size_bytes = 0;
|
153
|
+
std::string default_target;
|
154
|
+
|
155
|
+
static const JsonLoaderInterface* JsonLoader(const JsonArgs&);
|
156
|
+
void JsonPostLoad(const Json& json, const JsonArgs& args,
|
157
|
+
ValidationErrors* errors);
|
158
|
+
};
|
159
|
+
|
160
|
+
RlsLbConfig() = default;
|
161
|
+
|
162
|
+
RlsLbConfig(const RlsLbConfig&) = delete;
|
163
|
+
RlsLbConfig& operator=(const RlsLbConfig&) = delete;
|
164
|
+
|
165
|
+
RlsLbConfig(RlsLbConfig&& other) = delete;
|
166
|
+
RlsLbConfig& operator=(RlsLbConfig&& other) = delete;
|
167
|
+
|
168
|
+
absl::string_view name() const override { return kRls; }
|
169
|
+
|
170
|
+
const KeyBuilderMap& key_builder_map() const {
|
171
|
+
return route_lookup_config_.key_builder_map;
|
172
|
+
}
|
173
|
+
const std::string& lookup_service() const {
|
174
|
+
return route_lookup_config_.lookup_service;
|
175
|
+
}
|
176
|
+
Duration lookup_service_timeout() const {
|
177
|
+
return route_lookup_config_.lookup_service_timeout;
|
178
|
+
}
|
179
|
+
Duration max_age() const { return route_lookup_config_.max_age; }
|
180
|
+
Duration stale_age() const { return route_lookup_config_.stale_age; }
|
181
|
+
int64_t cache_size_bytes() const {
|
182
|
+
return route_lookup_config_.cache_size_bytes;
|
183
|
+
}
|
184
|
+
const std::string& default_target() const {
|
185
|
+
return route_lookup_config_.default_target;
|
186
|
+
}
|
187
|
+
const std::string& rls_channel_service_config() const {
|
188
|
+
return rls_channel_service_config_;
|
189
|
+
}
|
190
|
+
const Json& child_policy_config() const { return child_policy_config_; }
|
191
|
+
const std::string& child_policy_config_target_field_name() const {
|
192
|
+
return child_policy_config_target_field_name_;
|
193
|
+
}
|
194
|
+
RefCountedPtr<LoadBalancingPolicy::Config>
|
195
|
+
default_child_policy_parsed_config() const {
|
196
|
+
return default_child_policy_parsed_config_;
|
197
|
+
}
|
198
|
+
|
199
|
+
static const JsonLoaderInterface* JsonLoader(const JsonArgs&);
|
200
|
+
void JsonPostLoad(const Json& json, const JsonArgs&,
|
201
|
+
ValidationErrors* errors);
|
202
|
+
|
203
|
+
private:
|
204
|
+
RouteLookupConfig route_lookup_config_;
|
205
|
+
std::string rls_channel_service_config_;
|
206
|
+
Json child_policy_config_;
|
207
|
+
std::string child_policy_config_target_field_name_;
|
208
|
+
RefCountedPtr<LoadBalancingPolicy::Config>
|
209
|
+
default_child_policy_parsed_config_;
|
210
|
+
};
|
211
|
+
|
212
|
+
// RLS LB policy.
|
213
|
+
class RlsLb : public LoadBalancingPolicy {
|
214
|
+
public:
|
215
|
+
explicit RlsLb(Args args);
|
216
|
+
|
217
|
+
absl::string_view name() const override { return kRls; }
|
218
|
+
absl::Status UpdateLocked(UpdateArgs args) override;
|
219
|
+
void ExitIdleLocked() override;
|
220
|
+
void ResetBackoffLocked() override;
|
221
|
+
|
222
|
+
private:
|
223
|
+
// Key to access entries in the cache and the request map.
|
224
|
+
struct RequestKey {
|
225
|
+
std::map<std::string, std::string> key_map;
|
226
|
+
|
227
|
+
bool operator==(const RequestKey& rhs) const {
|
228
|
+
return key_map == rhs.key_map;
|
229
|
+
}
|
230
|
+
|
231
|
+
template <typename H>
|
232
|
+
friend H AbslHashValue(H h, const RequestKey& key) {
|
233
|
+
std::hash<std::string> string_hasher;
|
234
|
+
for (auto& kv : key.key_map) {
|
235
|
+
h = H::combine(std::move(h), string_hasher(kv.first),
|
236
|
+
string_hasher(kv.second));
|
237
|
+
}
|
238
|
+
return h;
|
239
|
+
}
|
240
|
+
|
241
|
+
size_t Size() const {
|
242
|
+
size_t size = sizeof(RequestKey);
|
243
|
+
for (auto& kv : key_map) {
|
244
|
+
size += kv.first.length() + kv.second.length();
|
245
|
+
}
|
246
|
+
return size;
|
247
|
+
}
|
248
|
+
|
249
|
+
std::string ToString() const {
|
250
|
+
return absl::StrCat(
|
251
|
+
"{", absl::StrJoin(key_map, ",", absl::PairFormatter("=")), "}");
|
252
|
+
}
|
253
|
+
};
|
254
|
+
|
255
|
+
// Data from an RLS response.
|
256
|
+
struct ResponseInfo {
|
257
|
+
absl::Status status;
|
258
|
+
std::vector<std::string> targets;
|
259
|
+
std::string header_data;
|
260
|
+
|
261
|
+
std::string ToString() const {
|
262
|
+
return absl::StrFormat("{status=%s, targets=[%s], header_data=\"%s\"}",
|
263
|
+
status.ToString(), absl::StrJoin(targets, ","),
|
264
|
+
header_data);
|
265
|
+
}
|
266
|
+
};
|
267
|
+
|
268
|
+
// Wraps a child policy for a given RLS target.
|
269
|
+
class ChildPolicyWrapper : public DualRefCounted<ChildPolicyWrapper> {
|
270
|
+
public:
|
271
|
+
ChildPolicyWrapper(RefCountedPtr<RlsLb> lb_policy, std::string target);
|
272
|
+
|
273
|
+
// Note: We are forced to disable lock analysis here because
|
274
|
+
// Orphan() is called by OrphanablePtr<>, which cannot have lock
|
275
|
+
// annotations for this particular caller.
|
276
|
+
void Orphan() override ABSL_NO_THREAD_SAFETY_ANALYSIS;
|
277
|
+
|
278
|
+
const std::string& target() const { return target_; }
|
279
|
+
|
280
|
+
PickResult Pick(PickArgs args) ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
281
|
+
return picker_->Pick(args);
|
282
|
+
}
|
283
|
+
|
284
|
+
// Updates for the child policy are handled in two phases:
|
285
|
+
// 1. In StartUpdate(), we parse and validate the new child policy
|
286
|
+
// config and store the parsed config.
|
287
|
+
// 2. In MaybeFinishUpdate(), we actually pass the parsed config to the
|
288
|
+
// child policy's UpdateLocked() method.
|
289
|
+
//
|
290
|
+
// The reason we do this is to avoid deadlocks. In StartUpdate(),
|
291
|
+
// if the new config fails to validate, then we need to set
|
292
|
+
// picker_ to an instance that will fail all requests, which
|
293
|
+
// requires holding the lock. However, we cannot call the child
|
294
|
+
// policy's UpdateLocked() method from MaybeFinishUpdate() while
|
295
|
+
// holding the lock, since that would cause a deadlock: the child's
|
296
|
+
// UpdateLocked() will call the helper's UpdateState() method, which
|
297
|
+
// will try to acquire the lock to set picker_. So StartUpdate() is
|
298
|
+
// called while we are still holding the lock, but MaybeFinishUpdate()
|
299
|
+
// is called after releasing it.
|
300
|
+
//
|
301
|
+
// Both methods grab the data they need from the parent object.
|
302
|
+
void StartUpdate() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
303
|
+
absl::Status MaybeFinishUpdate() ABSL_LOCKS_EXCLUDED(&RlsLb::mu_);
|
304
|
+
|
305
|
+
void ExitIdleLocked() {
|
306
|
+
if (child_policy_ != nullptr) child_policy_->ExitIdleLocked();
|
307
|
+
}
|
308
|
+
|
309
|
+
void ResetBackoffLocked() {
|
310
|
+
if (child_policy_ != nullptr) child_policy_->ResetBackoffLocked();
|
311
|
+
}
|
312
|
+
|
313
|
+
// Gets the connectivity state of the child policy. Once the child policy
|
314
|
+
// reports TRANSIENT_FAILURE, the function will always return
|
315
|
+
// TRANSIENT_FAILURE state instead of the actual state of the child policy
|
316
|
+
// until the child policy reports another READY state.
|
317
|
+
grpc_connectivity_state connectivity_state() const
|
318
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
319
|
+
return connectivity_state_;
|
320
|
+
}
|
321
|
+
|
322
|
+
private:
|
323
|
+
// ChannelControlHelper object that allows the child policy to update state
|
324
|
+
// with the wrapper.
|
325
|
+
class ChildPolicyHelper : public DelegatingChannelControlHelper {
|
326
|
+
public:
|
327
|
+
explicit ChildPolicyHelper(WeakRefCountedPtr<ChildPolicyWrapper> wrapper)
|
328
|
+
: wrapper_(std::move(wrapper)) {}
|
329
|
+
~ChildPolicyHelper() override {
|
330
|
+
wrapper_.reset(DEBUG_LOCATION, "ChildPolicyHelper");
|
331
|
+
}
|
332
|
+
|
333
|
+
void UpdateState(grpc_connectivity_state state,
|
334
|
+
const absl::Status& status,
|
335
|
+
RefCountedPtr<SubchannelPicker> picker) override;
|
336
|
+
|
337
|
+
private:
|
338
|
+
ChannelControlHelper* parent_helper() const override {
|
339
|
+
return wrapper_->lb_policy_->channel_control_helper();
|
340
|
+
}
|
341
|
+
|
342
|
+
WeakRefCountedPtr<ChildPolicyWrapper> wrapper_;
|
343
|
+
};
|
344
|
+
|
345
|
+
RefCountedPtr<RlsLb> lb_policy_;
|
346
|
+
std::string target_;
|
347
|
+
|
348
|
+
bool is_shutdown_ = false;
|
349
|
+
|
350
|
+
OrphanablePtr<ChildPolicyHandler> child_policy_;
|
351
|
+
RefCountedPtr<LoadBalancingPolicy::Config> pending_config_;
|
352
|
+
|
353
|
+
grpc_connectivity_state connectivity_state_ ABSL_GUARDED_BY(&RlsLb::mu_) =
|
354
|
+
GRPC_CHANNEL_CONNECTING;
|
355
|
+
RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker_
|
356
|
+
ABSL_GUARDED_BY(&RlsLb::mu_);
|
357
|
+
};
|
358
|
+
|
359
|
+
// A picker that uses the cache and the request map in the LB policy
|
360
|
+
// (synchronized via a mutex) to determine how to route requests.
|
361
|
+
class Picker : public LoadBalancingPolicy::SubchannelPicker {
|
362
|
+
public:
|
363
|
+
explicit Picker(RefCountedPtr<RlsLb> lb_policy);
|
364
|
+
|
365
|
+
PickResult Pick(PickArgs args) override;
|
366
|
+
|
367
|
+
private:
|
368
|
+
RefCountedPtr<RlsLb> lb_policy_;
|
369
|
+
RefCountedPtr<RlsLbConfig> config_;
|
370
|
+
RefCountedPtr<ChildPolicyWrapper> default_child_policy_;
|
371
|
+
};
|
372
|
+
|
373
|
+
// An LRU cache with adjustable size.
|
374
|
+
class Cache {
|
375
|
+
public:
|
376
|
+
using Iterator = std::list<RequestKey>::iterator;
|
377
|
+
|
378
|
+
class Entry : public InternallyRefCounted<Entry> {
|
379
|
+
public:
|
380
|
+
Entry(RefCountedPtr<RlsLb> lb_policy, const RequestKey& key);
|
381
|
+
|
382
|
+
// Notify the entry when it's evicted from the cache. Performs shut down.
|
383
|
+
// Note: We are forced to disable lock analysis here because
|
384
|
+
// Orphan() is called by OrphanablePtr<>, which cannot have lock
|
385
|
+
// annotations for this particular caller.
|
386
|
+
void Orphan() override ABSL_NO_THREAD_SAFETY_ANALYSIS;
|
387
|
+
|
388
|
+
const absl::Status& status() const
|
389
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
390
|
+
return status_;
|
391
|
+
}
|
392
|
+
Timestamp backoff_time() const
|
393
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
394
|
+
return backoff_time_;
|
395
|
+
}
|
396
|
+
Timestamp backoff_expiration_time() const
|
397
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
398
|
+
return backoff_expiration_time_;
|
399
|
+
}
|
400
|
+
Timestamp data_expiration_time() const
|
401
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
402
|
+
return data_expiration_time_;
|
403
|
+
}
|
404
|
+
const std::string& header_data() const
|
405
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
406
|
+
return header_data_;
|
407
|
+
}
|
408
|
+
Timestamp stale_time() const ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
409
|
+
return stale_time_;
|
410
|
+
}
|
411
|
+
Timestamp min_expiration_time() const
|
412
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
413
|
+
return min_expiration_time_;
|
414
|
+
}
|
415
|
+
|
416
|
+
std::unique_ptr<BackOff> TakeBackoffState()
|
417
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
418
|
+
return std::move(backoff_state_);
|
419
|
+
}
|
420
|
+
|
421
|
+
// Cache size of entry.
|
422
|
+
size_t Size() const ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
423
|
+
|
424
|
+
// Pick subchannel for request based on the entry's state.
|
425
|
+
PickResult Pick(PickArgs args) ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
426
|
+
|
427
|
+
// If the cache entry is in backoff state, resets the backoff and, if
|
428
|
+
// applicable, its backoff timer. The method does not update the LB
|
429
|
+
// policy's picker; the caller is responsible for that if necessary.
|
430
|
+
void ResetBackoff() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
431
|
+
|
432
|
+
// Check if the entry should be removed by the clean-up timer.
|
433
|
+
bool ShouldRemove() const ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
434
|
+
|
435
|
+
// Check if the entry can be evicted from the cache, i.e. the
|
436
|
+
// min_expiration_time_ has passed.
|
437
|
+
bool CanEvict() const ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
438
|
+
|
439
|
+
// Updates the entry upon reception of a new RLS response.
|
440
|
+
// Returns a list of child policy wrappers on which FinishUpdate()
|
441
|
+
// needs to be called after releasing the lock.
|
442
|
+
std::vector<ChildPolicyWrapper*> OnRlsResponseLocked(
|
443
|
+
ResponseInfo response, std::unique_ptr<BackOff> backoff_state)
|
444
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
445
|
+
|
446
|
+
// Moves entry to the end of the LRU list.
|
447
|
+
void MarkUsed() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
448
|
+
|
449
|
+
private:
|
450
|
+
class BackoffTimer : public InternallyRefCounted<BackoffTimer> {
|
451
|
+
public:
|
452
|
+
BackoffTimer(RefCountedPtr<Entry> entry, Timestamp backoff_time);
|
453
|
+
|
454
|
+
// Note: We are forced to disable lock analysis here because
|
455
|
+
// Orphan() is called by OrphanablePtr<>, which cannot have lock
|
456
|
+
// annotations for this particular caller.
|
457
|
+
void Orphan() override ABSL_NO_THREAD_SAFETY_ANALYSIS;
|
458
|
+
|
459
|
+
private:
|
460
|
+
void OnBackoffTimerLocked();
|
461
|
+
|
462
|
+
RefCountedPtr<Entry> entry_;
|
463
|
+
absl::optional<EventEngine::TaskHandle> backoff_timer_task_handle_
|
464
|
+
ABSL_GUARDED_BY(&RlsLb::mu_);
|
465
|
+
};
|
466
|
+
|
467
|
+
RefCountedPtr<RlsLb> lb_policy_;
|
468
|
+
|
469
|
+
bool is_shutdown_ ABSL_GUARDED_BY(&RlsLb::mu_) = false;
|
470
|
+
|
471
|
+
// Backoff states
|
472
|
+
absl::Status status_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
473
|
+
std::unique_ptr<BackOff> backoff_state_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
474
|
+
Timestamp backoff_time_ ABSL_GUARDED_BY(&RlsLb::mu_) =
|
475
|
+
Timestamp::InfPast();
|
476
|
+
Timestamp backoff_expiration_time_ ABSL_GUARDED_BY(&RlsLb::mu_) =
|
477
|
+
Timestamp::InfPast();
|
478
|
+
OrphanablePtr<BackoffTimer> backoff_timer_;
|
479
|
+
|
480
|
+
// RLS response states
|
481
|
+
std::vector<RefCountedPtr<ChildPolicyWrapper>> child_policy_wrappers_
|
482
|
+
ABSL_GUARDED_BY(&RlsLb::mu_);
|
483
|
+
std::string header_data_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
484
|
+
Timestamp data_expiration_time_ ABSL_GUARDED_BY(&RlsLb::mu_) =
|
485
|
+
Timestamp::InfPast();
|
486
|
+
Timestamp stale_time_ ABSL_GUARDED_BY(&RlsLb::mu_) = Timestamp::InfPast();
|
487
|
+
|
488
|
+
Timestamp min_expiration_time_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
489
|
+
Cache::Iterator lru_iterator_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
490
|
+
};
|
491
|
+
|
492
|
+
explicit Cache(RlsLb* lb_policy);
|
493
|
+
|
494
|
+
// Finds an entry from the cache that corresponds to a key. If an entry is
|
495
|
+
// not found, nullptr is returned. Otherwise, the entry is considered
|
496
|
+
// recently used and its order in the LRU list of the cache is updated.
|
497
|
+
Entry* Find(const RequestKey& key)
|
498
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
499
|
+
|
500
|
+
// Finds an entry from the cache that corresponds to a key. If an entry is
|
501
|
+
// not found, an entry is created, inserted in the cache, and returned to
|
502
|
+
// the caller. Otherwise, the entry found is returned to the caller. The
|
503
|
+
// entry returned to the user is considered recently used and its order in
|
504
|
+
// the LRU list of the cache is updated.
|
505
|
+
Entry* FindOrInsert(const RequestKey& key)
|
506
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
507
|
+
|
508
|
+
// Resizes the cache. If the new cache size is greater than the current size
|
509
|
+
// of the cache, do nothing. Otherwise, evict the oldest entries that
|
510
|
+
// exceed the new size limit of the cache.
|
511
|
+
void Resize(size_t bytes) ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
512
|
+
|
513
|
+
// Resets backoff of all the cache entries.
|
514
|
+
void ResetAllBackoff() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
515
|
+
|
516
|
+
// Shutdown the cache; clean-up and orphan all the stored cache entries.
|
517
|
+
void Shutdown() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
518
|
+
|
519
|
+
private:
|
520
|
+
// Shared logic for starting the cleanup timer
|
521
|
+
void StartCleanupTimer() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
522
|
+
|
523
|
+
void OnCleanupTimer();
|
524
|
+
|
525
|
+
// Returns the entry size for a given key.
|
526
|
+
static size_t EntrySizeForKey(const RequestKey& key);
|
527
|
+
|
528
|
+
// Evicts oversized cache elements when the current size is greater than
|
529
|
+
// the specified limit.
|
530
|
+
void MaybeShrinkSize(size_t bytes)
|
531
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
532
|
+
|
533
|
+
RlsLb* lb_policy_;
|
534
|
+
|
535
|
+
size_t size_limit_ ABSL_GUARDED_BY(&RlsLb::mu_) = 0;
|
536
|
+
size_t size_ ABSL_GUARDED_BY(&RlsLb::mu_) = 0;
|
537
|
+
|
538
|
+
std::list<RequestKey> lru_list_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
539
|
+
std::unordered_map<RequestKey, OrphanablePtr<Entry>, absl::Hash<RequestKey>>
|
540
|
+
map_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
541
|
+
absl::optional<EventEngine::TaskHandle> cleanup_timer_handle_;
|
542
|
+
};
|
543
|
+
|
544
|
+
// Channel for communicating with the RLS server.
|
545
|
+
// Contains throttling logic for RLS requests.
|
546
|
+
class RlsChannel : public InternallyRefCounted<RlsChannel> {
|
547
|
+
public:
|
548
|
+
explicit RlsChannel(RefCountedPtr<RlsLb> lb_policy);
|
549
|
+
|
550
|
+
// Shuts down the channel.
|
551
|
+
void Orphan() override;
|
552
|
+
|
553
|
+
// Starts an RLS call.
|
554
|
+
// If stale_entry is non-null, it points to the entry containing
|
555
|
+
// stale data for the key.
|
556
|
+
void StartRlsCall(const RequestKey& key, Cache::Entry* stale_entry)
|
557
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
558
|
+
|
559
|
+
// Reports the result of an RLS call to the throttle.
|
560
|
+
void ReportResponseLocked(bool response_succeeded)
|
561
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
562
|
+
|
563
|
+
// Checks if a proposed RLS call should be throttled.
|
564
|
+
bool ShouldThrottle() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
565
|
+
return throttle_.ShouldThrottle();
|
566
|
+
}
|
567
|
+
|
568
|
+
// Resets the channel's backoff.
|
569
|
+
void ResetBackoff();
|
570
|
+
|
571
|
+
grpc_channel* channel() const { return channel_; }
|
572
|
+
|
573
|
+
private:
|
574
|
+
// Watches the state of the RLS channel. Notifies the LB policy when
|
575
|
+
// the channel was previously in TRANSIENT_FAILURE and then becomes READY.
|
576
|
+
class StateWatcher : public AsyncConnectivityStateWatcherInterface {
|
577
|
+
public:
|
578
|
+
explicit StateWatcher(RefCountedPtr<RlsChannel> rls_channel)
|
579
|
+
: AsyncConnectivityStateWatcherInterface(
|
580
|
+
rls_channel->lb_policy_->work_serializer()),
|
581
|
+
rls_channel_(std::move(rls_channel)) {}
|
582
|
+
|
583
|
+
private:
|
584
|
+
void OnConnectivityStateChange(grpc_connectivity_state new_state,
|
585
|
+
const absl::Status& status) override;
|
586
|
+
|
587
|
+
RefCountedPtr<RlsChannel> rls_channel_;
|
588
|
+
bool was_transient_failure_ = false;
|
589
|
+
};
|
590
|
+
|
591
|
+
// Throttle state for RLS requests.
|
592
|
+
class Throttle {
|
593
|
+
public:
|
594
|
+
explicit Throttle(
|
595
|
+
Duration window_size = kDefaultThrottleWindowSize,
|
596
|
+
float ratio_for_successes = kDefaultThrottleRatioForSuccesses,
|
597
|
+
int padding = kDefaultThrottlePadding)
|
598
|
+
: window_size_(window_size),
|
599
|
+
ratio_for_successes_(ratio_for_successes),
|
600
|
+
padding_(padding) {}
|
601
|
+
|
602
|
+
bool ShouldThrottle() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
603
|
+
|
604
|
+
void RegisterResponse(bool success)
|
605
|
+
ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_);
|
606
|
+
|
607
|
+
private:
|
608
|
+
Duration window_size_;
|
609
|
+
double ratio_for_successes_;
|
610
|
+
int padding_;
|
611
|
+
std::mt19937 rng_{std::random_device()()};
|
612
|
+
|
613
|
+
// Logged timestamp of requests.
|
614
|
+
std::deque<Timestamp> requests_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
615
|
+
|
616
|
+
// Logged timestamps of failures.
|
617
|
+
std::deque<Timestamp> failures_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
618
|
+
};
|
619
|
+
|
620
|
+
RefCountedPtr<RlsLb> lb_policy_;
|
621
|
+
bool is_shutdown_ = false;
|
622
|
+
|
623
|
+
grpc_channel* channel_ = nullptr;
|
624
|
+
RefCountedPtr<channelz::ChannelNode> parent_channelz_node_;
|
625
|
+
StateWatcher* watcher_ = nullptr;
|
626
|
+
Throttle throttle_ ABSL_GUARDED_BY(&RlsLb::mu_);
|
627
|
+
};
|
628
|
+
|
629
|
+
// A pending RLS request. Instances will be tracked in request_map_.
|
630
|
+
class RlsRequest : public InternallyRefCounted<RlsRequest> {
|
631
|
+
public:
|
632
|
+
// Asynchronously starts a call on rls_channel for key.
|
633
|
+
// Stores backoff_state, which will be transferred to the data cache
|
634
|
+
// if the RLS request fails.
|
635
|
+
RlsRequest(RefCountedPtr<RlsLb> lb_policy, RlsLb::RequestKey key,
|
636
|
+
RefCountedPtr<RlsChannel> rls_channel,
|
637
|
+
std::unique_ptr<BackOff> backoff_state,
|
638
|
+
grpc_lookup_v1_RouteLookupRequest_Reason reason,
|
639
|
+
std::string stale_header_data);
|
640
|
+
~RlsRequest() override;
|
641
|
+
|
642
|
+
// Shuts down the request. If the request is still in flight, it is
|
643
|
+
// cancelled, in which case no response will be added to the cache.
|
644
|
+
void Orphan() override;
|
645
|
+
|
646
|
+
private:
|
647
|
+
// Callback to be invoked to start the call.
|
648
|
+
static void StartCall(void* arg, grpc_error_handle error);
|
649
|
+
|
650
|
+
// Helper for StartCall() that runs within the WorkSerializer.
|
651
|
+
void StartCallLocked();
|
652
|
+
|
653
|
+
// Callback to be invoked when the call is completed.
|
654
|
+
static void OnRlsCallComplete(void* arg, grpc_error_handle error);
|
655
|
+
|
656
|
+
// Call completion callback running on LB policy WorkSerializer.
|
657
|
+
void OnRlsCallCompleteLocked(grpc_error_handle error);
|
658
|
+
|
659
|
+
grpc_byte_buffer* MakeRequestProto();
|
660
|
+
ResponseInfo ParseResponseProto();
|
661
|
+
|
662
|
+
RefCountedPtr<RlsLb> lb_policy_;
|
663
|
+
RlsLb::RequestKey key_;
|
664
|
+
RefCountedPtr<RlsChannel> rls_channel_;
|
665
|
+
std::unique_ptr<BackOff> backoff_state_;
|
666
|
+
grpc_lookup_v1_RouteLookupRequest_Reason reason_;
|
667
|
+
std::string stale_header_data_;
|
668
|
+
|
669
|
+
// RLS call state.
|
670
|
+
Timestamp deadline_;
|
671
|
+
grpc_closure call_start_cb_;
|
672
|
+
grpc_closure call_complete_cb_;
|
673
|
+
grpc_call* call_ = nullptr;
|
674
|
+
grpc_byte_buffer* send_message_ = nullptr;
|
675
|
+
grpc_metadata_array recv_initial_metadata_;
|
676
|
+
grpc_byte_buffer* recv_message_ = nullptr;
|
677
|
+
grpc_metadata_array recv_trailing_metadata_;
|
678
|
+
grpc_status_code status_recv_;
|
679
|
+
grpc_slice status_details_recv_;
|
680
|
+
};
|
681
|
+
|
682
|
+
void ShutdownLocked() override;
|
683
|
+
|
684
|
+
// Returns a new picker to the channel to trigger reprocessing of
|
685
|
+
// pending picks. Schedules the actual picker update on the ExecCtx
|
686
|
+
// to be run later, so it's safe to invoke this while holding the lock.
|
687
|
+
void UpdatePickerAsync();
|
688
|
+
// Hops into work serializer and calls UpdatePickerLocked().
|
689
|
+
static void UpdatePickerCallback(void* arg, grpc_error_handle error);
|
690
|
+
// Updates the picker in the work serializer.
|
691
|
+
void UpdatePickerLocked() ABSL_LOCKS_EXCLUDED(&mu_);
|
692
|
+
|
693
|
+
// Mutex to guard LB policy state that is accessed by the picker.
|
694
|
+
Mutex mu_;
|
695
|
+
bool is_shutdown_ ABSL_GUARDED_BY(mu_) = false;
|
696
|
+
bool update_in_progress_ = false;
|
697
|
+
Cache cache_ ABSL_GUARDED_BY(mu_);
|
698
|
+
// Maps an RLS request key to an RlsRequest object that represents a pending
|
699
|
+
// RLS request.
|
700
|
+
std::unordered_map<RequestKey, OrphanablePtr<RlsRequest>,
|
701
|
+
absl::Hash<RequestKey>>
|
702
|
+
request_map_ ABSL_GUARDED_BY(mu_);
|
703
|
+
// The channel on which RLS requests are sent.
|
704
|
+
// Note that this channel may be swapped out when the RLS policy gets
|
705
|
+
// an update. However, when that happens, any existing entries in
|
706
|
+
// request_map_ will continue to use the previous channel.
|
707
|
+
OrphanablePtr<RlsChannel> rls_channel_ ABSL_GUARDED_BY(mu_);
|
708
|
+
|
709
|
+
// Accessed only from within WorkSerializer.
|
710
|
+
absl::StatusOr<std::shared_ptr<EndpointAddressesIterator>> addresses_;
|
711
|
+
ChannelArgs channel_args_;
|
712
|
+
RefCountedPtr<RlsLbConfig> config_;
|
713
|
+
RefCountedPtr<ChildPolicyWrapper> default_child_policy_;
|
714
|
+
std::map<std::string /*target*/, ChildPolicyWrapper*> child_policy_map_;
|
715
|
+
};
|
716
|
+
|
717
|
+
//
|
718
|
+
// RlsLb::ChildPolicyWrapper
|
719
|
+
//
|
720
|
+
|
721
|
+
RlsLb::ChildPolicyWrapper::ChildPolicyWrapper(RefCountedPtr<RlsLb> lb_policy,
|
722
|
+
std::string target)
|
723
|
+
: DualRefCounted<ChildPolicyWrapper>(
|
724
|
+
GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace) ? "ChildPolicyWrapper"
|
725
|
+
: nullptr),
|
726
|
+
lb_policy_(std::move(lb_policy)),
|
727
|
+
target_(std::move(target)),
|
728
|
+
picker_(MakeRefCounted<QueuePicker>(nullptr)) {
|
729
|
+
lb_policy_->child_policy_map_.emplace(target_, this);
|
730
|
+
}
|
731
|
+
|
732
|
+
void RlsLb::ChildPolicyWrapper::Orphan() {
|
733
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
734
|
+
gpr_log(GPR_INFO, "[rlslb %p] ChildPolicyWrapper=%p [%s]: shutdown",
|
735
|
+
lb_policy_.get(), this, target_.c_str());
|
736
|
+
}
|
737
|
+
is_shutdown_ = true;
|
738
|
+
lb_policy_->child_policy_map_.erase(target_);
|
739
|
+
if (child_policy_ != nullptr) {
|
740
|
+
grpc_pollset_set_del_pollset_set(child_policy_->interested_parties(),
|
741
|
+
lb_policy_->interested_parties());
|
742
|
+
child_policy_.reset();
|
743
|
+
}
|
744
|
+
picker_.reset();
|
745
|
+
}
|
746
|
+
|
747
|
+
absl::optional<Json> InsertOrUpdateChildPolicyField(const std::string& field,
|
748
|
+
const std::string& value,
|
749
|
+
const Json& config,
|
750
|
+
ValidationErrors* errors) {
|
751
|
+
if (config.type() != Json::Type::kArray) {
|
752
|
+
errors->AddError("is not an array");
|
753
|
+
return absl::nullopt;
|
754
|
+
}
|
755
|
+
const size_t original_num_errors = errors->size();
|
756
|
+
Json::Array array;
|
757
|
+
for (size_t i = 0; i < config.array().size(); ++i) {
|
758
|
+
const Json& child_json = config.array()[i];
|
759
|
+
ValidationErrors::ScopedField json_field(errors, absl::StrCat("[", i, "]"));
|
760
|
+
if (child_json.type() != Json::Type::kObject) {
|
761
|
+
errors->AddError("is not an object");
|
762
|
+
} else {
|
763
|
+
const Json::Object& child = child_json.object();
|
764
|
+
if (child.size() != 1) {
|
765
|
+
errors->AddError("child policy object contains more than one field");
|
766
|
+
} else {
|
767
|
+
const std::string& child_name = child.begin()->first;
|
768
|
+
ValidationErrors::ScopedField json_field(
|
769
|
+
errors, absl::StrCat("[\"", child_name, "\"]"));
|
770
|
+
const Json& child_config_json = child.begin()->second;
|
771
|
+
if (child_config_json.type() != Json::Type::kObject) {
|
772
|
+
errors->AddError("child policy config is not an object");
|
773
|
+
} else {
|
774
|
+
Json::Object child_config = child_config_json.object();
|
775
|
+
child_config[field] = Json::FromString(value);
|
776
|
+
array.emplace_back(Json::FromObject(
|
777
|
+
{{child_name, Json::FromObject(std::move(child_config))}}));
|
778
|
+
}
|
779
|
+
}
|
780
|
+
}
|
781
|
+
}
|
782
|
+
if (errors->size() != original_num_errors) return absl::nullopt;
|
783
|
+
return Json::FromArray(std::move(array));
|
784
|
+
}
|
785
|
+
|
786
|
+
void RlsLb::ChildPolicyWrapper::StartUpdate() {
|
787
|
+
ValidationErrors errors;
|
788
|
+
auto child_policy_config = InsertOrUpdateChildPolicyField(
|
789
|
+
lb_policy_->config_->child_policy_config_target_field_name(), target_,
|
790
|
+
lb_policy_->config_->child_policy_config(), &errors);
|
791
|
+
GPR_ASSERT(child_policy_config.has_value());
|
792
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
793
|
+
gpr_log(
|
794
|
+
GPR_INFO,
|
795
|
+
"[rlslb %p] ChildPolicyWrapper=%p [%s]: validating update, config: %s",
|
796
|
+
lb_policy_.get(), this, target_.c_str(),
|
797
|
+
JsonDump(*child_policy_config).c_str());
|
798
|
+
}
|
799
|
+
auto config =
|
800
|
+
CoreConfiguration::Get().lb_policy_registry().ParseLoadBalancingConfig(
|
801
|
+
*child_policy_config);
|
802
|
+
// Returned RLS target fails the validation.
|
803
|
+
if (!config.ok()) {
|
804
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
805
|
+
gpr_log(GPR_INFO,
|
806
|
+
"[rlslb %p] ChildPolicyWrapper=%p [%s]: config failed to parse: "
|
807
|
+
"%s",
|
808
|
+
lb_policy_.get(), this, target_.c_str(),
|
809
|
+
config.status().ToString().c_str());
|
810
|
+
}
|
811
|
+
pending_config_.reset();
|
812
|
+
picker_ = MakeRefCounted<TransientFailurePicker>(
|
813
|
+
absl::UnavailableError(config.status().message()));
|
814
|
+
child_policy_.reset();
|
815
|
+
} else {
|
816
|
+
pending_config_ = std::move(*config);
|
817
|
+
}
|
818
|
+
}
|
819
|
+
|
820
|
+
absl::Status RlsLb::ChildPolicyWrapper::MaybeFinishUpdate() {
|
821
|
+
// If pending_config_ is not set, that means StartUpdate() failed, so
|
822
|
+
// there's nothing to do here.
|
823
|
+
if (pending_config_ == nullptr) return absl::OkStatus();
|
824
|
+
// If child policy doesn't yet exist, create it.
|
825
|
+
if (child_policy_ == nullptr) {
|
826
|
+
Args create_args;
|
827
|
+
create_args.work_serializer = lb_policy_->work_serializer();
|
828
|
+
create_args.channel_control_helper = std::make_unique<ChildPolicyHelper>(
|
829
|
+
WeakRef(DEBUG_LOCATION, "ChildPolicyHelper"));
|
830
|
+
create_args.args = lb_policy_->channel_args_;
|
831
|
+
child_policy_ = MakeOrphanable<ChildPolicyHandler>(std::move(create_args),
|
832
|
+
&grpc_lb_rls_trace);
|
833
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
834
|
+
gpr_log(GPR_INFO,
|
835
|
+
"[rlslb %p] ChildPolicyWrapper=%p [%s], created new child policy "
|
836
|
+
"handler %p",
|
837
|
+
lb_policy_.get(), this, target_.c_str(), child_policy_.get());
|
838
|
+
}
|
839
|
+
grpc_pollset_set_add_pollset_set(child_policy_->interested_parties(),
|
840
|
+
lb_policy_->interested_parties());
|
841
|
+
}
|
842
|
+
// Send the child the updated config.
|
843
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
844
|
+
gpr_log(GPR_INFO,
|
845
|
+
"[rlslb %p] ChildPolicyWrapper=%p [%s], updating child policy "
|
846
|
+
"handler %p",
|
847
|
+
lb_policy_.get(), this, target_.c_str(), child_policy_.get());
|
848
|
+
}
|
849
|
+
UpdateArgs update_args;
|
850
|
+
update_args.config = std::move(pending_config_);
|
851
|
+
update_args.addresses = lb_policy_->addresses_;
|
852
|
+
update_args.args = lb_policy_->channel_args_;
|
853
|
+
return child_policy_->UpdateLocked(std::move(update_args));
|
854
|
+
}
|
855
|
+
|
856
|
+
//
|
857
|
+
// RlsLb::ChildPolicyWrapper::ChildPolicyHelper
|
858
|
+
//
|
859
|
+
|
860
|
+
void RlsLb::ChildPolicyWrapper::ChildPolicyHelper::UpdateState(
|
861
|
+
grpc_connectivity_state state, const absl::Status& status,
|
862
|
+
RefCountedPtr<SubchannelPicker> picker) {
|
863
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
864
|
+
gpr_log(GPR_INFO,
|
865
|
+
"[rlslb %p] ChildPolicyWrapper=%p [%s] ChildPolicyHelper=%p: "
|
866
|
+
"UpdateState(state=%s, status=%s, picker=%p)",
|
867
|
+
wrapper_->lb_policy_.get(), wrapper_.get(),
|
868
|
+
wrapper_->target_.c_str(), this, ConnectivityStateName(state),
|
869
|
+
status.ToString().c_str(), picker.get());
|
870
|
+
}
|
871
|
+
{
|
872
|
+
MutexLock lock(&wrapper_->lb_policy_->mu_);
|
873
|
+
if (wrapper_->is_shutdown_) return;
|
874
|
+
// TODO(roth): It looks like this ignores subsequent TF updates that
|
875
|
+
// might change the status used to fail picks, which seems wrong.
|
876
|
+
if (wrapper_->connectivity_state_ == GRPC_CHANNEL_TRANSIENT_FAILURE &&
|
877
|
+
state != GRPC_CHANNEL_READY) {
|
878
|
+
return;
|
879
|
+
}
|
880
|
+
wrapper_->connectivity_state_ = state;
|
881
|
+
GPR_DEBUG_ASSERT(picker != nullptr);
|
882
|
+
if (picker != nullptr) {
|
883
|
+
wrapper_->picker_ = std::move(picker);
|
884
|
+
}
|
885
|
+
}
|
886
|
+
wrapper_->lb_policy_->UpdatePickerLocked();
|
887
|
+
}
|
888
|
+
|
889
|
+
//
|
890
|
+
// RlsLb::Picker
|
891
|
+
//
|
892
|
+
|
893
|
+
// Builds the key to be used for a request based on path and initial_metadata.
|
894
|
+
std::map<std::string, std::string> BuildKeyMap(
|
895
|
+
const RlsLbConfig::KeyBuilderMap& key_builder_map, absl::string_view path,
|
896
|
+
absl::string_view host,
|
897
|
+
const LoadBalancingPolicy::MetadataInterface* initial_metadata) {
|
898
|
+
size_t last_slash_pos = path.npos; // May need this a few times, so cache it.
|
899
|
+
// Find key builder for this path.
|
900
|
+
auto it = key_builder_map.find(std::string(path));
|
901
|
+
if (it == key_builder_map.end()) {
|
902
|
+
// Didn't find exact match, try method wildcard.
|
903
|
+
last_slash_pos = path.rfind('/');
|
904
|
+
GPR_DEBUG_ASSERT(last_slash_pos != path.npos);
|
905
|
+
if (GPR_UNLIKELY(last_slash_pos == path.npos)) return {};
|
906
|
+
std::string service(path.substr(0, last_slash_pos + 1));
|
907
|
+
it = key_builder_map.find(service);
|
908
|
+
if (it == key_builder_map.end()) return {};
|
909
|
+
}
|
910
|
+
const RlsLbConfig::KeyBuilder* key_builder = &it->second;
|
911
|
+
// Construct key map using key builder.
|
912
|
+
std::map<std::string, std::string> key_map;
|
913
|
+
// Add header keys.
|
914
|
+
for (const auto& p : key_builder->header_keys) {
|
915
|
+
const std::string& key = p.first;
|
916
|
+
const std::vector<std::string>& header_names = p.second;
|
917
|
+
for (const std::string& header_name : header_names) {
|
918
|
+
std::string buffer;
|
919
|
+
absl::optional<absl::string_view> value =
|
920
|
+
initial_metadata->Lookup(header_name, &buffer);
|
921
|
+
if (value.has_value()) {
|
922
|
+
key_map[key] = std::string(*value);
|
923
|
+
break;
|
924
|
+
}
|
925
|
+
}
|
926
|
+
}
|
927
|
+
// Add constant keys.
|
928
|
+
key_map.insert(key_builder->constant_keys.begin(),
|
929
|
+
key_builder->constant_keys.end());
|
930
|
+
// Add host key.
|
931
|
+
if (!key_builder->host_key.empty()) {
|
932
|
+
key_map[key_builder->host_key] = std::string(host);
|
933
|
+
}
|
934
|
+
// Add service key.
|
935
|
+
if (!key_builder->service_key.empty()) {
|
936
|
+
if (last_slash_pos == path.npos) {
|
937
|
+
last_slash_pos = path.rfind('/');
|
938
|
+
GPR_DEBUG_ASSERT(last_slash_pos != path.npos);
|
939
|
+
if (GPR_UNLIKELY(last_slash_pos == path.npos)) return {};
|
940
|
+
}
|
941
|
+
key_map[key_builder->service_key] =
|
942
|
+
std::string(path.substr(1, last_slash_pos - 1));
|
943
|
+
}
|
944
|
+
// Add method key.
|
945
|
+
if (!key_builder->method_key.empty()) {
|
946
|
+
if (last_slash_pos == path.npos) {
|
947
|
+
last_slash_pos = path.rfind('/');
|
948
|
+
GPR_DEBUG_ASSERT(last_slash_pos != path.npos);
|
949
|
+
if (GPR_UNLIKELY(last_slash_pos == path.npos)) return {};
|
950
|
+
}
|
951
|
+
key_map[key_builder->method_key] =
|
952
|
+
std::string(path.substr(last_slash_pos + 1));
|
953
|
+
}
|
954
|
+
return key_map;
|
955
|
+
}
|
956
|
+
|
957
|
+
RlsLb::Picker::Picker(RefCountedPtr<RlsLb> lb_policy)
|
958
|
+
: lb_policy_(std::move(lb_policy)), config_(lb_policy_->config_) {
|
959
|
+
if (lb_policy_->default_child_policy_ != nullptr) {
|
960
|
+
default_child_policy_ =
|
961
|
+
lb_policy_->default_child_policy_->Ref(DEBUG_LOCATION, "Picker");
|
962
|
+
}
|
963
|
+
}
|
964
|
+
|
965
|
+
LoadBalancingPolicy::PickResult RlsLb::Picker::Pick(PickArgs args) {
|
966
|
+
// Construct key for request.
|
967
|
+
RequestKey key = {
|
968
|
+
BuildKeyMap(config_->key_builder_map(), args.path,
|
969
|
+
lb_policy_->channel_control_helper()->GetAuthority(),
|
970
|
+
args.initial_metadata)};
|
971
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
972
|
+
gpr_log(GPR_INFO, "[rlslb %p] picker=%p: request keys: %s",
|
973
|
+
lb_policy_.get(), this, key.ToString().c_str());
|
974
|
+
}
|
975
|
+
Timestamp now = Timestamp::Now();
|
976
|
+
MutexLock lock(&lb_policy_->mu_);
|
977
|
+
if (lb_policy_->is_shutdown_) {
|
978
|
+
return PickResult::Fail(
|
979
|
+
absl::UnavailableError("LB policy already shut down"));
|
980
|
+
}
|
981
|
+
// Check if there's a cache entry.
|
982
|
+
Cache::Entry* entry = lb_policy_->cache_.Find(key);
|
983
|
+
// If there is no cache entry, or if the cache entry is not in backoff
|
984
|
+
// and has a stale time in the past, and there is not already a
|
985
|
+
// pending RLS request for this key, then try to start a new RLS request.
|
986
|
+
if ((entry == nullptr ||
|
987
|
+
(entry->stale_time() < now && entry->backoff_time() < now)) &&
|
988
|
+
lb_policy_->request_map_.find(key) == lb_policy_->request_map_.end()) {
|
989
|
+
// Check if requests are being throttled.
|
990
|
+
if (lb_policy_->rls_channel_->ShouldThrottle()) {
|
991
|
+
// Request is throttled.
|
992
|
+
// If there is no non-expired data in the cache, then we use the
|
993
|
+
// default target if set, or else we fail the pick.
|
994
|
+
if (entry == nullptr || entry->data_expiration_time() < now) {
|
995
|
+
if (default_child_policy_ != nullptr) {
|
996
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
997
|
+
gpr_log(GPR_INFO,
|
998
|
+
"[rlslb %p] picker=%p: RLS call throttled; "
|
999
|
+
"using default target",
|
1000
|
+
lb_policy_.get(), this);
|
1001
|
+
}
|
1002
|
+
return default_child_policy_->Pick(args);
|
1003
|
+
}
|
1004
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1005
|
+
gpr_log(GPR_INFO,
|
1006
|
+
"[rlslb %p] picker=%p: RLS call throttled; failing pick",
|
1007
|
+
lb_policy_.get(), this);
|
1008
|
+
}
|
1009
|
+
return PickResult::Fail(
|
1010
|
+
absl::UnavailableError("RLS request throttled"));
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
// Start the RLS call.
|
1014
|
+
lb_policy_->rls_channel_->StartRlsCall(
|
1015
|
+
key, (entry == nullptr || entry->data_expiration_time() < now) ? nullptr
|
1016
|
+
: entry);
|
1017
|
+
}
|
1018
|
+
// If the cache entry exists, see if it has usable data.
|
1019
|
+
if (entry != nullptr) {
|
1020
|
+
// If the entry has non-expired data, use it.
|
1021
|
+
if (entry->data_expiration_time() >= now) {
|
1022
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1023
|
+
gpr_log(GPR_INFO, "[rlslb %p] picker=%p: using cache entry %p",
|
1024
|
+
lb_policy_.get(), this, entry);
|
1025
|
+
}
|
1026
|
+
return entry->Pick(args);
|
1027
|
+
}
|
1028
|
+
// If the entry is in backoff, then use the default target if set,
|
1029
|
+
// or else fail the pick.
|
1030
|
+
if (entry->backoff_time() >= now) {
|
1031
|
+
if (default_child_policy_ != nullptr) {
|
1032
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1033
|
+
gpr_log(
|
1034
|
+
GPR_INFO,
|
1035
|
+
"[rlslb %p] picker=%p: RLS call in backoff; using default target",
|
1036
|
+
lb_policy_.get(), this);
|
1037
|
+
}
|
1038
|
+
return default_child_policy_->Pick(args);
|
1039
|
+
}
|
1040
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1041
|
+
gpr_log(GPR_INFO,
|
1042
|
+
"[rlslb %p] picker=%p: RLS call in backoff; failing pick",
|
1043
|
+
lb_policy_.get(), this);
|
1044
|
+
}
|
1045
|
+
return PickResult::Fail(absl::UnavailableError(
|
1046
|
+
absl::StrCat("RLS request failed: ", entry->status().ToString())));
|
1047
|
+
}
|
1048
|
+
}
|
1049
|
+
// RLS call pending. Queue the pick.
|
1050
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1051
|
+
gpr_log(GPR_INFO, "[rlslb %p] picker=%p: RLS request pending; queuing pick",
|
1052
|
+
lb_policy_.get(), this);
|
1053
|
+
}
|
1054
|
+
return PickResult::Queue();
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
//
|
1058
|
+
// RlsLb::Cache::Entry::BackoffTimer
|
1059
|
+
//
|
1060
|
+
|
1061
|
+
RlsLb::Cache::Entry::BackoffTimer::BackoffTimer(RefCountedPtr<Entry> entry,
|
1062
|
+
Timestamp backoff_time)
|
1063
|
+
: entry_(std::move(entry)) {
|
1064
|
+
backoff_timer_task_handle_ =
|
1065
|
+
entry_->lb_policy_->channel_control_helper()->GetEventEngine()->RunAfter(
|
1066
|
+
backoff_time - Timestamp::Now(),
|
1067
|
+
[self = Ref(DEBUG_LOCATION, "BackoffTimer")]() mutable {
|
1068
|
+
ApplicationCallbackExecCtx callback_exec_ctx;
|
1069
|
+
ExecCtx exec_ctx;
|
1070
|
+
auto self_ptr = self.get();
|
1071
|
+
self_ptr->entry_->lb_policy_->work_serializer()->Run(
|
1072
|
+
[self = std::move(self)]() { self->OnBackoffTimerLocked(); },
|
1073
|
+
DEBUG_LOCATION);
|
1074
|
+
});
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
void RlsLb::Cache::Entry::BackoffTimer::Orphan() {
|
1078
|
+
if (backoff_timer_task_handle_.has_value() &&
|
1079
|
+
entry_->lb_policy_->channel_control_helper()->GetEventEngine()->Cancel(
|
1080
|
+
*backoff_timer_task_handle_)) {
|
1081
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1082
|
+
gpr_log(GPR_INFO, "[rlslb %p] cache entry=%p %s, backoff timer canceled",
|
1083
|
+
entry_->lb_policy_.get(), entry_.get(),
|
1084
|
+
entry_->is_shutdown_ ? "(shut down)"
|
1085
|
+
: entry_->lru_iterator_->ToString().c_str());
|
1086
|
+
}
|
1087
|
+
}
|
1088
|
+
backoff_timer_task_handle_.reset();
|
1089
|
+
Unref(DEBUG_LOCATION, "Orphan");
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
void RlsLb::Cache::Entry::BackoffTimer::OnBackoffTimerLocked() {
|
1093
|
+
{
|
1094
|
+
MutexLock lock(&entry_->lb_policy_->mu_);
|
1095
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1096
|
+
gpr_log(GPR_INFO, "[rlslb %p] cache entry=%p %s, backoff timer fired",
|
1097
|
+
entry_->lb_policy_.get(), entry_.get(),
|
1098
|
+
entry_->is_shutdown_ ? "(shut down)"
|
1099
|
+
: entry_->lru_iterator_->ToString().c_str());
|
1100
|
+
}
|
1101
|
+
// Skip the update if Orphaned
|
1102
|
+
if (!backoff_timer_task_handle_.has_value()) return;
|
1103
|
+
backoff_timer_task_handle_.reset();
|
1104
|
+
}
|
1105
|
+
// The pick was in backoff state and there could be a pick queued if
|
1106
|
+
// wait_for_ready is true. We'll update the picker for that case.
|
1107
|
+
entry_->lb_policy_->UpdatePickerLocked();
|
1108
|
+
}
|
1109
|
+
|
1110
|
+
//
|
1111
|
+
// RlsLb::Cache::Entry
|
1112
|
+
//
|
1113
|
+
|
1114
|
+
std::unique_ptr<BackOff> MakeCacheEntryBackoff() {
|
1115
|
+
return std::make_unique<BackOff>(
|
1116
|
+
BackOff::Options()
|
1117
|
+
.set_initial_backoff(kCacheBackoffInitial)
|
1118
|
+
.set_multiplier(kCacheBackoffMultiplier)
|
1119
|
+
.set_jitter(kCacheBackoffJitter)
|
1120
|
+
.set_max_backoff(kCacheBackoffMax));
|
1121
|
+
}
|
1122
|
+
|
1123
|
+
RlsLb::Cache::Entry::Entry(RefCountedPtr<RlsLb> lb_policy,
|
1124
|
+
const RequestKey& key)
|
1125
|
+
: InternallyRefCounted<Entry>(
|
1126
|
+
GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace) ? "CacheEntry" : nullptr),
|
1127
|
+
lb_policy_(std::move(lb_policy)),
|
1128
|
+
backoff_state_(MakeCacheEntryBackoff()),
|
1129
|
+
min_expiration_time_(Timestamp::Now() + kMinExpirationTime),
|
1130
|
+
lru_iterator_(lb_policy_->cache_.lru_list_.insert(
|
1131
|
+
lb_policy_->cache_.lru_list_.end(), key)) {}
|
1132
|
+
|
1133
|
+
void RlsLb::Cache::Entry::Orphan() {
|
1134
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1135
|
+
gpr_log(GPR_INFO, "[rlslb %p] cache entry=%p %s: cache entry evicted",
|
1136
|
+
lb_policy_.get(), this, lru_iterator_->ToString().c_str());
|
1137
|
+
}
|
1138
|
+
is_shutdown_ = true;
|
1139
|
+
lb_policy_->cache_.lru_list_.erase(lru_iterator_);
|
1140
|
+
lru_iterator_ = lb_policy_->cache_.lru_list_.end(); // Just in case.
|
1141
|
+
backoff_state_.reset();
|
1142
|
+
if (backoff_timer_ != nullptr) {
|
1143
|
+
backoff_timer_.reset();
|
1144
|
+
lb_policy_->UpdatePickerAsync();
|
1145
|
+
}
|
1146
|
+
child_policy_wrappers_.clear();
|
1147
|
+
Unref(DEBUG_LOCATION, "Orphan");
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
size_t RlsLb::Cache::Entry::Size() const {
|
1151
|
+
// lru_iterator_ is not valid once we're shut down.
|
1152
|
+
GPR_ASSERT(!is_shutdown_);
|
1153
|
+
return lb_policy_->cache_.EntrySizeForKey(*lru_iterator_);
|
1154
|
+
}
|
1155
|
+
|
1156
|
+
LoadBalancingPolicy::PickResult RlsLb::Cache::Entry::Pick(PickArgs args) {
|
1157
|
+
size_t i = 0;
|
1158
|
+
ChildPolicyWrapper* child_policy_wrapper = nullptr;
|
1159
|
+
// Skip targets before the last one that are in state TRANSIENT_FAILURE.
|
1160
|
+
for (; i < child_policy_wrappers_.size(); ++i) {
|
1161
|
+
child_policy_wrapper = child_policy_wrappers_[i].get();
|
1162
|
+
if (child_policy_wrapper->connectivity_state() ==
|
1163
|
+
GRPC_CHANNEL_TRANSIENT_FAILURE &&
|
1164
|
+
i < child_policy_wrappers_.size() - 1) {
|
1165
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1166
|
+
gpr_log(GPR_INFO,
|
1167
|
+
"[rlslb %p] cache entry=%p %s: target %s (%" PRIuPTR
|
1168
|
+
" of %" PRIuPTR ") in state TRANSIENT_FAILURE; skipping",
|
1169
|
+
lb_policy_.get(), this, lru_iterator_->ToString().c_str(),
|
1170
|
+
child_policy_wrapper->target().c_str(), i,
|
1171
|
+
child_policy_wrappers_.size());
|
1172
|
+
}
|
1173
|
+
continue;
|
1174
|
+
}
|
1175
|
+
break;
|
1176
|
+
}
|
1177
|
+
// Child policy not in TRANSIENT_FAILURE or is the last target in
|
1178
|
+
// the list, so delegate.
|
1179
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1180
|
+
gpr_log(GPR_INFO,
|
1181
|
+
"[rlslb %p] cache entry=%p %s: target %s (%" PRIuPTR " of %" PRIuPTR
|
1182
|
+
") in state %s; delegating",
|
1183
|
+
lb_policy_.get(), this, lru_iterator_->ToString().c_str(),
|
1184
|
+
child_policy_wrapper->target().c_str(), i,
|
1185
|
+
child_policy_wrappers_.size(),
|
1186
|
+
ConnectivityStateName(child_policy_wrapper->connectivity_state()));
|
1187
|
+
}
|
1188
|
+
// Add header data.
|
1189
|
+
// Note that even if the target we're using is in TRANSIENT_FAILURE,
|
1190
|
+
// the pick might still succeed (e.g., if the child is ring_hash), so
|
1191
|
+
// we need to pass the right header info down in all cases.
|
1192
|
+
if (!header_data_.empty()) {
|
1193
|
+
char* copied_header_data =
|
1194
|
+
static_cast<char*>(args.call_state->Alloc(header_data_.length() + 1));
|
1195
|
+
strcpy(copied_header_data, header_data_.c_str());
|
1196
|
+
args.initial_metadata->Add(kRlsHeaderKey, copied_header_data);
|
1197
|
+
}
|
1198
|
+
return child_policy_wrapper->Pick(args);
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
void RlsLb::Cache::Entry::ResetBackoff() {
|
1202
|
+
backoff_time_ = Timestamp::InfPast();
|
1203
|
+
backoff_timer_.reset();
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
bool RlsLb::Cache::Entry::ShouldRemove() const {
|
1207
|
+
Timestamp now = Timestamp::Now();
|
1208
|
+
return data_expiration_time_ < now && backoff_expiration_time_ < now;
|
1209
|
+
}
|
1210
|
+
|
1211
|
+
bool RlsLb::Cache::Entry::CanEvict() const {
|
1212
|
+
Timestamp now = Timestamp::Now();
|
1213
|
+
return min_expiration_time_ < now;
|
1214
|
+
}
|
1215
|
+
|
1216
|
+
void RlsLb::Cache::Entry::MarkUsed() {
|
1217
|
+
auto& lru_list = lb_policy_->cache_.lru_list_;
|
1218
|
+
auto new_it = lru_list.insert(lru_list.end(), *lru_iterator_);
|
1219
|
+
lru_list.erase(lru_iterator_);
|
1220
|
+
lru_iterator_ = new_it;
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
std::vector<RlsLb::ChildPolicyWrapper*>
|
1224
|
+
RlsLb::Cache::Entry::OnRlsResponseLocked(
|
1225
|
+
ResponseInfo response, std::unique_ptr<BackOff> backoff_state) {
|
1226
|
+
// Move the entry to the end of the LRU list.
|
1227
|
+
MarkUsed();
|
1228
|
+
// If the request failed, store the failed status and update the
|
1229
|
+
// backoff state.
|
1230
|
+
if (!response.status.ok()) {
|
1231
|
+
status_ = response.status;
|
1232
|
+
if (backoff_state != nullptr) {
|
1233
|
+
backoff_state_ = std::move(backoff_state);
|
1234
|
+
} else {
|
1235
|
+
backoff_state_ = MakeCacheEntryBackoff();
|
1236
|
+
}
|
1237
|
+
backoff_time_ = backoff_state_->NextAttemptTime();
|
1238
|
+
Timestamp now = Timestamp::Now();
|
1239
|
+
backoff_expiration_time_ = now + (backoff_time_ - now) * 2;
|
1240
|
+
backoff_timer_ = MakeOrphanable<BackoffTimer>(
|
1241
|
+
Ref(DEBUG_LOCATION, "BackoffTimer"), backoff_time_);
|
1242
|
+
lb_policy_->UpdatePickerAsync();
|
1243
|
+
return {};
|
1244
|
+
}
|
1245
|
+
// Request succeeded, so store the result.
|
1246
|
+
header_data_ = std::move(response.header_data);
|
1247
|
+
Timestamp now = Timestamp::Now();
|
1248
|
+
data_expiration_time_ = now + lb_policy_->config_->max_age();
|
1249
|
+
stale_time_ = now + lb_policy_->config_->stale_age();
|
1250
|
+
status_ = absl::OkStatus();
|
1251
|
+
backoff_state_.reset();
|
1252
|
+
backoff_time_ = Timestamp::InfPast();
|
1253
|
+
backoff_expiration_time_ = Timestamp::InfPast();
|
1254
|
+
// Check if we need to update this list of targets.
|
1255
|
+
bool targets_changed = [&]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(&RlsLb::mu_) {
|
1256
|
+
if (child_policy_wrappers_.size() != response.targets.size()) return true;
|
1257
|
+
for (size_t i = 0; i < response.targets.size(); ++i) {
|
1258
|
+
if (child_policy_wrappers_[i]->target() != response.targets[i]) {
|
1259
|
+
return true;
|
1260
|
+
}
|
1261
|
+
}
|
1262
|
+
return false;
|
1263
|
+
}();
|
1264
|
+
if (!targets_changed) {
|
1265
|
+
// Targets didn't change, so we're not updating the list of child
|
1266
|
+
// policies. Return a new picker so that any queued requests can be
|
1267
|
+
// re-processed.
|
1268
|
+
lb_policy_->UpdatePickerAsync();
|
1269
|
+
return {};
|
1270
|
+
}
|
1271
|
+
// Target list changed, so update it.
|
1272
|
+
std::set<absl::string_view> old_targets;
|
1273
|
+
for (RefCountedPtr<ChildPolicyWrapper>& child_policy_wrapper :
|
1274
|
+
child_policy_wrappers_) {
|
1275
|
+
old_targets.emplace(child_policy_wrapper->target());
|
1276
|
+
}
|
1277
|
+
bool update_picker = false;
|
1278
|
+
std::vector<ChildPolicyWrapper*> child_policies_to_finish_update;
|
1279
|
+
std::vector<RefCountedPtr<ChildPolicyWrapper>> new_child_policy_wrappers;
|
1280
|
+
new_child_policy_wrappers.reserve(response.targets.size());
|
1281
|
+
for (std::string& target : response.targets) {
|
1282
|
+
auto it = lb_policy_->child_policy_map_.find(target);
|
1283
|
+
if (it == lb_policy_->child_policy_map_.end()) {
|
1284
|
+
auto new_child = MakeRefCounted<ChildPolicyWrapper>(
|
1285
|
+
lb_policy_.Ref(DEBUG_LOCATION, "ChildPolicyWrapper"), target);
|
1286
|
+
new_child->StartUpdate();
|
1287
|
+
child_policies_to_finish_update.push_back(new_child.get());
|
1288
|
+
new_child_policy_wrappers.emplace_back(std::move(new_child));
|
1289
|
+
} else {
|
1290
|
+
new_child_policy_wrappers.emplace_back(
|
1291
|
+
it->second->Ref(DEBUG_LOCATION, "CacheEntry"));
|
1292
|
+
// If the target already existed but was not previously used for
|
1293
|
+
// this key, then we'll need to update the picker, since we
|
1294
|
+
// didn't actually create a new child policy, which would have
|
1295
|
+
// triggered an RLS picker update when it returned its first picker.
|
1296
|
+
if (old_targets.find(target) == old_targets.end()) {
|
1297
|
+
update_picker = true;
|
1298
|
+
}
|
1299
|
+
}
|
1300
|
+
}
|
1301
|
+
child_policy_wrappers_ = std::move(new_child_policy_wrappers);
|
1302
|
+
if (update_picker) {
|
1303
|
+
lb_policy_->UpdatePickerAsync();
|
1304
|
+
}
|
1305
|
+
return child_policies_to_finish_update;
|
1306
|
+
}
|
1307
|
+
|
1308
|
+
//
|
1309
|
+
// RlsLb::Cache
|
1310
|
+
//
|
1311
|
+
|
1312
|
+
RlsLb::Cache::Cache(RlsLb* lb_policy) : lb_policy_(lb_policy) {
|
1313
|
+
StartCleanupTimer();
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
RlsLb::Cache::Entry* RlsLb::Cache::Find(const RequestKey& key) {
|
1317
|
+
auto it = map_.find(key);
|
1318
|
+
if (it == map_.end()) return nullptr;
|
1319
|
+
it->second->MarkUsed();
|
1320
|
+
return it->second.get();
|
1321
|
+
}
|
1322
|
+
|
1323
|
+
RlsLb::Cache::Entry* RlsLb::Cache::FindOrInsert(const RequestKey& key) {
|
1324
|
+
auto it = map_.find(key);
|
1325
|
+
// If not found, create new entry.
|
1326
|
+
if (it == map_.end()) {
|
1327
|
+
size_t entry_size = EntrySizeForKey(key);
|
1328
|
+
MaybeShrinkSize(size_limit_ - std::min(size_limit_, entry_size));
|
1329
|
+
Entry* entry = new Entry(
|
1330
|
+
lb_policy_->RefAsSubclass<RlsLb>(DEBUG_LOCATION, "CacheEntry"), key);
|
1331
|
+
map_.emplace(key, OrphanablePtr<Entry>(entry));
|
1332
|
+
size_ += entry_size;
|
1333
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1334
|
+
gpr_log(GPR_INFO, "[rlslb %p] key=%s: cache entry added, entry=%p",
|
1335
|
+
lb_policy_, key.ToString().c_str(), entry);
|
1336
|
+
}
|
1337
|
+
return entry;
|
1338
|
+
}
|
1339
|
+
// Entry found, so use it.
|
1340
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1341
|
+
gpr_log(GPR_INFO, "[rlslb %p] key=%s: found cache entry %p", lb_policy_,
|
1342
|
+
key.ToString().c_str(), it->second.get());
|
1343
|
+
}
|
1344
|
+
it->second->MarkUsed();
|
1345
|
+
return it->second.get();
|
1346
|
+
}
|
1347
|
+
|
1348
|
+
void RlsLb::Cache::Resize(size_t bytes) {
|
1349
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1350
|
+
gpr_log(GPR_INFO, "[rlslb %p] resizing cache to %" PRIuPTR " bytes",
|
1351
|
+
lb_policy_, bytes);
|
1352
|
+
}
|
1353
|
+
size_limit_ = bytes;
|
1354
|
+
MaybeShrinkSize(size_limit_);
|
1355
|
+
}
|
1356
|
+
|
1357
|
+
void RlsLb::Cache::ResetAllBackoff() {
|
1358
|
+
for (auto& p : map_) {
|
1359
|
+
p.second->ResetBackoff();
|
1360
|
+
}
|
1361
|
+
lb_policy_->UpdatePickerAsync();
|
1362
|
+
}
|
1363
|
+
|
1364
|
+
void RlsLb::Cache::Shutdown() {
|
1365
|
+
map_.clear();
|
1366
|
+
lru_list_.clear();
|
1367
|
+
if (cleanup_timer_handle_.has_value() &&
|
1368
|
+
lb_policy_->channel_control_helper()->GetEventEngine()->Cancel(
|
1369
|
+
*cleanup_timer_handle_)) {
|
1370
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1371
|
+
gpr_log(GPR_INFO, "[rlslb %p] cache cleanup timer canceled", lb_policy_);
|
1372
|
+
}
|
1373
|
+
}
|
1374
|
+
cleanup_timer_handle_.reset();
|
1375
|
+
}
|
1376
|
+
|
1377
|
+
void RlsLb::Cache::StartCleanupTimer() {
|
1378
|
+
cleanup_timer_handle_ =
|
1379
|
+
lb_policy_->channel_control_helper()->GetEventEngine()->RunAfter(
|
1380
|
+
kCacheCleanupTimerInterval,
|
1381
|
+
[this, lb_policy = lb_policy_->Ref(DEBUG_LOCATION,
|
1382
|
+
"CacheCleanupTimer")]() mutable {
|
1383
|
+
ApplicationCallbackExecCtx callback_exec_ctx;
|
1384
|
+
ExecCtx exec_ctx;
|
1385
|
+
lb_policy_->work_serializer()->Run(
|
1386
|
+
[this, lb_policy = std::move(lb_policy)]() {
|
1387
|
+
// The lb_policy ref is held until the callback completes
|
1388
|
+
OnCleanupTimer();
|
1389
|
+
},
|
1390
|
+
DEBUG_LOCATION);
|
1391
|
+
});
|
1392
|
+
}
|
1393
|
+
|
1394
|
+
void RlsLb::Cache::OnCleanupTimer() {
|
1395
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1396
|
+
gpr_log(GPR_INFO, "[rlslb %p] cache cleanup timer fired", lb_policy_);
|
1397
|
+
}
|
1398
|
+
MutexLock lock(&lb_policy_->mu_);
|
1399
|
+
if (!cleanup_timer_handle_.has_value()) return;
|
1400
|
+
if (lb_policy_->is_shutdown_) return;
|
1401
|
+
for (auto it = map_.begin(); it != map_.end();) {
|
1402
|
+
if (GPR_UNLIKELY(it->second->ShouldRemove() && it->second->CanEvict())) {
|
1403
|
+
size_ -= it->second->Size();
|
1404
|
+
it = map_.erase(it);
|
1405
|
+
} else {
|
1406
|
+
++it;
|
1407
|
+
}
|
1408
|
+
}
|
1409
|
+
StartCleanupTimer();
|
1410
|
+
}
|
1411
|
+
|
1412
|
+
size_t RlsLb::Cache::EntrySizeForKey(const RequestKey& key) {
|
1413
|
+
// Key is stored twice, once in LRU list and again in the cache map.
|
1414
|
+
return (key.Size() * 2) + sizeof(Entry);
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
void RlsLb::Cache::MaybeShrinkSize(size_t bytes) {
|
1418
|
+
while (size_ > bytes) {
|
1419
|
+
auto lru_it = lru_list_.begin();
|
1420
|
+
if (GPR_UNLIKELY(lru_it == lru_list_.end())) break;
|
1421
|
+
auto map_it = map_.find(*lru_it);
|
1422
|
+
GPR_ASSERT(map_it != map_.end());
|
1423
|
+
if (!map_it->second->CanEvict()) break;
|
1424
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1425
|
+
gpr_log(GPR_INFO, "[rlslb %p] LRU eviction: removing entry %p %s",
|
1426
|
+
lb_policy_, map_it->second.get(), lru_it->ToString().c_str());
|
1427
|
+
}
|
1428
|
+
size_ -= map_it->second->Size();
|
1429
|
+
map_.erase(map_it);
|
1430
|
+
}
|
1431
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1432
|
+
gpr_log(GPR_INFO,
|
1433
|
+
"[rlslb %p] LRU pass complete: desired size=%" PRIuPTR
|
1434
|
+
" size=%" PRIuPTR,
|
1435
|
+
lb_policy_, bytes, size_);
|
1436
|
+
}
|
1437
|
+
}
|
1438
|
+
|
1439
|
+
//
|
1440
|
+
// RlsLb::RlsChannel::StateWatcher
|
1441
|
+
//
|
1442
|
+
|
1443
|
+
void RlsLb::RlsChannel::StateWatcher::OnConnectivityStateChange(
|
1444
|
+
grpc_connectivity_state new_state, const absl::Status& status) {
|
1445
|
+
auto* lb_policy = rls_channel_->lb_policy_.get();
|
1446
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1447
|
+
gpr_log(GPR_INFO,
|
1448
|
+
"[rlslb %p] RlsChannel=%p StateWatcher=%p: "
|
1449
|
+
"state changed to %s (%s)",
|
1450
|
+
lb_policy, rls_channel_.get(), this,
|
1451
|
+
ConnectivityStateName(new_state), status.ToString().c_str());
|
1452
|
+
}
|
1453
|
+
if (rls_channel_->is_shutdown_) return;
|
1454
|
+
MutexLock lock(&lb_policy->mu_);
|
1455
|
+
if (new_state == GRPC_CHANNEL_READY && was_transient_failure_) {
|
1456
|
+
was_transient_failure_ = false;
|
1457
|
+
// Reset the backoff of all cache entries, so that we don't
|
1458
|
+
// double-penalize if an RLS request fails while the channel is
|
1459
|
+
// down, since the throttling for the channel being down is handled
|
1460
|
+
// at the channel level instead of in the individual cache entries.
|
1461
|
+
lb_policy->cache_.ResetAllBackoff();
|
1462
|
+
} else if (new_state == GRPC_CHANNEL_TRANSIENT_FAILURE) {
|
1463
|
+
was_transient_failure_ = true;
|
1464
|
+
}
|
1465
|
+
}
|
1466
|
+
|
1467
|
+
//
|
1468
|
+
// RlsLb::RlsChannel::Throttle
|
1469
|
+
//
|
1470
|
+
|
1471
|
+
bool RlsLb::RlsChannel::Throttle::ShouldThrottle() {
|
1472
|
+
Timestamp now = Timestamp::Now();
|
1473
|
+
while (!requests_.empty() && now - requests_.front() > window_size_) {
|
1474
|
+
requests_.pop_front();
|
1475
|
+
}
|
1476
|
+
while (!failures_.empty() && now - failures_.front() > window_size_) {
|
1477
|
+
failures_.pop_front();
|
1478
|
+
}
|
1479
|
+
// Compute probability of throttling.
|
1480
|
+
float num_requests = requests_.size();
|
1481
|
+
float num_successes = num_requests - failures_.size();
|
1482
|
+
// Note: it's possible that this ratio will be negative, in which case
|
1483
|
+
// no throttling will be done.
|
1484
|
+
float throttle_probability =
|
1485
|
+
(num_requests - (num_successes * ratio_for_successes_)) /
|
1486
|
+
(num_requests + padding_);
|
1487
|
+
// Generate a random number for the request.
|
1488
|
+
std::uniform_real_distribution<float> dist(0, 1.0);
|
1489
|
+
// Check if we should throttle the request.
|
1490
|
+
bool throttle = dist(rng_) < throttle_probability;
|
1491
|
+
// If we're throttling, record the request and the failure.
|
1492
|
+
if (throttle) {
|
1493
|
+
requests_.push_back(now);
|
1494
|
+
failures_.push_back(now);
|
1495
|
+
}
|
1496
|
+
return throttle;
|
1497
|
+
}
|
1498
|
+
|
1499
|
+
void RlsLb::RlsChannel::Throttle::RegisterResponse(bool success) {
|
1500
|
+
Timestamp now = Timestamp::Now();
|
1501
|
+
requests_.push_back(now);
|
1502
|
+
if (!success) failures_.push_back(now);
|
1503
|
+
}
|
1504
|
+
|
1505
|
+
//
|
1506
|
+
// RlsLb::RlsChannel
|
1507
|
+
//
|
1508
|
+
|
1509
|
+
RlsLb::RlsChannel::RlsChannel(RefCountedPtr<RlsLb> lb_policy)
|
1510
|
+
: InternallyRefCounted<RlsChannel>(
|
1511
|
+
GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace) ? "RlsChannel" : nullptr),
|
1512
|
+
lb_policy_(std::move(lb_policy)) {
|
1513
|
+
// Get channel creds from parent channel.
|
1514
|
+
// Note that we are using the "unsafe" channel creds here, which do
|
1515
|
+
// include any associated call creds. This is safe in this case,
|
1516
|
+
// because we are using the parent channel's authority on the RLS channel.
|
1517
|
+
auto creds =
|
1518
|
+
lb_policy_->channel_control_helper()->GetUnsafeChannelCredentials();
|
1519
|
+
// Use the parent channel's authority.
|
1520
|
+
auto authority = lb_policy_->channel_control_helper()->GetAuthority();
|
1521
|
+
ChannelArgs args = ChannelArgs()
|
1522
|
+
.Set(GRPC_ARG_DEFAULT_AUTHORITY, authority)
|
1523
|
+
.Set(GRPC_ARG_CHANNELZ_IS_INTERNAL_CHANNEL, 1);
|
1524
|
+
// Propagate fake security connector expected targets, if any.
|
1525
|
+
// (This is ugly, but it seems better than propagating all channel args
|
1526
|
+
// from the parent channel by default and then having a giant
|
1527
|
+
// exclude list of args to strip out, like we do in grpclb.)
|
1528
|
+
absl::optional<absl::string_view> fake_security_expected_targets =
|
1529
|
+
lb_policy_->channel_args_.GetString(
|
1530
|
+
GRPC_ARG_FAKE_SECURITY_EXPECTED_TARGETS);
|
1531
|
+
if (fake_security_expected_targets.has_value()) {
|
1532
|
+
args = args.Set(GRPC_ARG_FAKE_SECURITY_EXPECTED_TARGETS,
|
1533
|
+
*fake_security_expected_targets);
|
1534
|
+
}
|
1535
|
+
// Add service config args if needed.
|
1536
|
+
const std::string& service_config =
|
1537
|
+
lb_policy_->config_->rls_channel_service_config();
|
1538
|
+
if (!service_config.empty()) {
|
1539
|
+
args = args.Set(GRPC_ARG_SERVICE_CONFIG, service_config)
|
1540
|
+
.Set(GRPC_ARG_SERVICE_CONFIG_DISABLE_RESOLUTION, 1);
|
1541
|
+
}
|
1542
|
+
channel_ = grpc_channel_create(lb_policy_->config_->lookup_service().c_str(),
|
1543
|
+
creds.get(), args.ToC().get());
|
1544
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1545
|
+
gpr_log(GPR_INFO, "[rlslb %p] RlsChannel=%p: created channel %p for %s",
|
1546
|
+
lb_policy_.get(), this, channel_,
|
1547
|
+
lb_policy_->config_->lookup_service().c_str());
|
1548
|
+
}
|
1549
|
+
if (channel_ != nullptr) {
|
1550
|
+
// Set up channelz linkage.
|
1551
|
+
channelz::ChannelNode* child_channelz_node =
|
1552
|
+
grpc_channel_get_channelz_node(channel_);
|
1553
|
+
auto parent_channelz_node =
|
1554
|
+
lb_policy_->channel_args_.GetObjectRef<channelz::ChannelNode>();
|
1555
|
+
if (child_channelz_node != nullptr && parent_channelz_node != nullptr) {
|
1556
|
+
parent_channelz_node->AddChildChannel(child_channelz_node->uuid());
|
1557
|
+
parent_channelz_node_ = std::move(parent_channelz_node);
|
1558
|
+
}
|
1559
|
+
// Start connectivity watch.
|
1560
|
+
ClientChannelFilter* client_channel =
|
1561
|
+
ClientChannelFilter::GetFromChannel(Channel::FromC(channel_));
|
1562
|
+
GPR_ASSERT(client_channel != nullptr);
|
1563
|
+
watcher_ = new StateWatcher(Ref(DEBUG_LOCATION, "StateWatcher"));
|
1564
|
+
client_channel->AddConnectivityWatcher(
|
1565
|
+
GRPC_CHANNEL_IDLE,
|
1566
|
+
OrphanablePtr<AsyncConnectivityStateWatcherInterface>(watcher_));
|
1567
|
+
}
|
1568
|
+
}
|
1569
|
+
|
1570
|
+
void RlsLb::RlsChannel::Orphan() {
|
1571
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1572
|
+
gpr_log(GPR_INFO, "[rlslb %p] RlsChannel=%p, channel=%p: shutdown",
|
1573
|
+
lb_policy_.get(), this, channel_);
|
1574
|
+
}
|
1575
|
+
is_shutdown_ = true;
|
1576
|
+
if (channel_ != nullptr) {
|
1577
|
+
// Remove channelz linkage.
|
1578
|
+
if (parent_channelz_node_ != nullptr) {
|
1579
|
+
channelz::ChannelNode* child_channelz_node =
|
1580
|
+
grpc_channel_get_channelz_node(channel_);
|
1581
|
+
GPR_ASSERT(child_channelz_node != nullptr);
|
1582
|
+
parent_channelz_node_->RemoveChildChannel(child_channelz_node->uuid());
|
1583
|
+
}
|
1584
|
+
// Stop connectivity watch.
|
1585
|
+
if (watcher_ != nullptr) {
|
1586
|
+
ClientChannelFilter* client_channel =
|
1587
|
+
ClientChannelFilter::GetFromChannel(Channel::FromC(channel_));
|
1588
|
+
GPR_ASSERT(client_channel != nullptr);
|
1589
|
+
client_channel->RemoveConnectivityWatcher(watcher_);
|
1590
|
+
watcher_ = nullptr;
|
1591
|
+
}
|
1592
|
+
grpc_channel_destroy_internal(channel_);
|
1593
|
+
}
|
1594
|
+
Unref(DEBUG_LOCATION, "Orphan");
|
1595
|
+
}
|
1596
|
+
|
1597
|
+
void RlsLb::RlsChannel::StartRlsCall(const RequestKey& key,
|
1598
|
+
Cache::Entry* stale_entry) {
|
1599
|
+
std::unique_ptr<BackOff> backoff_state;
|
1600
|
+
grpc_lookup_v1_RouteLookupRequest_Reason reason =
|
1601
|
+
grpc_lookup_v1_RouteLookupRequest_REASON_MISS;
|
1602
|
+
std::string stale_header_data;
|
1603
|
+
if (stale_entry != nullptr) {
|
1604
|
+
backoff_state = stale_entry->TakeBackoffState();
|
1605
|
+
reason = grpc_lookup_v1_RouteLookupRequest_REASON_STALE;
|
1606
|
+
stale_header_data = stale_entry->header_data();
|
1607
|
+
}
|
1608
|
+
lb_policy_->request_map_.emplace(
|
1609
|
+
key, MakeOrphanable<RlsRequest>(
|
1610
|
+
lb_policy_.Ref(DEBUG_LOCATION, "RlsRequest"), key,
|
1611
|
+
lb_policy_->rls_channel_->Ref(DEBUG_LOCATION, "RlsRequest"),
|
1612
|
+
std::move(backoff_state), reason, std::move(stale_header_data)));
|
1613
|
+
}
|
1614
|
+
|
1615
|
+
void RlsLb::RlsChannel::ReportResponseLocked(bool response_succeeded) {
|
1616
|
+
throttle_.RegisterResponse(response_succeeded);
|
1617
|
+
}
|
1618
|
+
|
1619
|
+
void RlsLb::RlsChannel::ResetBackoff() {
|
1620
|
+
GPR_DEBUG_ASSERT(channel_ != nullptr);
|
1621
|
+
grpc_channel_reset_connect_backoff(channel_);
|
1622
|
+
}
|
1623
|
+
|
1624
|
+
//
|
1625
|
+
// RlsLb::RlsRequest
|
1626
|
+
//
|
1627
|
+
|
1628
|
+
RlsLb::RlsRequest::RlsRequest(RefCountedPtr<RlsLb> lb_policy, RequestKey key,
|
1629
|
+
RefCountedPtr<RlsChannel> rls_channel,
|
1630
|
+
std::unique_ptr<BackOff> backoff_state,
|
1631
|
+
grpc_lookup_v1_RouteLookupRequest_Reason reason,
|
1632
|
+
std::string stale_header_data)
|
1633
|
+
: InternallyRefCounted<RlsRequest>(
|
1634
|
+
GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace) ? "RlsRequest" : nullptr),
|
1635
|
+
lb_policy_(std::move(lb_policy)),
|
1636
|
+
key_(std::move(key)),
|
1637
|
+
rls_channel_(std::move(rls_channel)),
|
1638
|
+
backoff_state_(std::move(backoff_state)),
|
1639
|
+
reason_(reason),
|
1640
|
+
stale_header_data_(std::move(stale_header_data)) {
|
1641
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1642
|
+
gpr_log(GPR_INFO,
|
1643
|
+
"[rlslb %p] rls_request=%p: RLS request created for key %s",
|
1644
|
+
lb_policy_.get(), this, key_.ToString().c_str());
|
1645
|
+
}
|
1646
|
+
GRPC_CLOSURE_INIT(&call_complete_cb_, OnRlsCallComplete, this, nullptr);
|
1647
|
+
ExecCtx::Run(
|
1648
|
+
DEBUG_LOCATION,
|
1649
|
+
GRPC_CLOSURE_INIT(&call_start_cb_, StartCall,
|
1650
|
+
Ref(DEBUG_LOCATION, "StartCall").release(), nullptr),
|
1651
|
+
absl::OkStatus());
|
1652
|
+
}
|
1653
|
+
|
1654
|
+
RlsLb::RlsRequest::~RlsRequest() { GPR_ASSERT(call_ == nullptr); }
|
1655
|
+
|
1656
|
+
void RlsLb::RlsRequest::Orphan() {
|
1657
|
+
if (call_ != nullptr) {
|
1658
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1659
|
+
gpr_log(GPR_INFO, "[rlslb %p] rls_request=%p %s: cancelling RLS call",
|
1660
|
+
lb_policy_.get(), this, key_.ToString().c_str());
|
1661
|
+
}
|
1662
|
+
grpc_call_cancel_internal(call_);
|
1663
|
+
}
|
1664
|
+
Unref(DEBUG_LOCATION, "Orphan");
|
1665
|
+
}
|
1666
|
+
|
1667
|
+
void RlsLb::RlsRequest::StartCall(void* arg, grpc_error_handle /*error*/) {
|
1668
|
+
auto* request = static_cast<RlsRequest*>(arg);
|
1669
|
+
request->lb_policy_->work_serializer()->Run(
|
1670
|
+
[request]() {
|
1671
|
+
request->StartCallLocked();
|
1672
|
+
request->Unref(DEBUG_LOCATION, "StartCall");
|
1673
|
+
},
|
1674
|
+
DEBUG_LOCATION);
|
1675
|
+
}
|
1676
|
+
|
1677
|
+
void RlsLb::RlsRequest::StartCallLocked() {
|
1678
|
+
{
|
1679
|
+
MutexLock lock(&lb_policy_->mu_);
|
1680
|
+
if (lb_policy_->is_shutdown_) return;
|
1681
|
+
}
|
1682
|
+
Timestamp now = Timestamp::Now();
|
1683
|
+
deadline_ = now + lb_policy_->config_->lookup_service_timeout();
|
1684
|
+
grpc_metadata_array_init(&recv_initial_metadata_);
|
1685
|
+
grpc_metadata_array_init(&recv_trailing_metadata_);
|
1686
|
+
call_ = grpc_channel_create_pollset_set_call(
|
1687
|
+
rls_channel_->channel(), nullptr, GRPC_PROPAGATE_DEFAULTS,
|
1688
|
+
lb_policy_->interested_parties(),
|
1689
|
+
grpc_slice_from_static_string(kRlsRequestPath), nullptr, deadline_,
|
1690
|
+
nullptr);
|
1691
|
+
grpc_op ops[6];
|
1692
|
+
memset(ops, 0, sizeof(ops));
|
1693
|
+
grpc_op* op = ops;
|
1694
|
+
op->op = GRPC_OP_SEND_INITIAL_METADATA;
|
1695
|
+
++op;
|
1696
|
+
op->op = GRPC_OP_SEND_MESSAGE;
|
1697
|
+
send_message_ = MakeRequestProto();
|
1698
|
+
op->data.send_message.send_message = send_message_;
|
1699
|
+
++op;
|
1700
|
+
op->op = GRPC_OP_SEND_CLOSE_FROM_CLIENT;
|
1701
|
+
++op;
|
1702
|
+
op->op = GRPC_OP_RECV_INITIAL_METADATA;
|
1703
|
+
op->data.recv_initial_metadata.recv_initial_metadata =
|
1704
|
+
&recv_initial_metadata_;
|
1705
|
+
++op;
|
1706
|
+
op->op = GRPC_OP_RECV_MESSAGE;
|
1707
|
+
op->data.recv_message.recv_message = &recv_message_;
|
1708
|
+
++op;
|
1709
|
+
op->op = GRPC_OP_RECV_STATUS_ON_CLIENT;
|
1710
|
+
op->data.recv_status_on_client.trailing_metadata = &recv_trailing_metadata_;
|
1711
|
+
op->data.recv_status_on_client.status = &status_recv_;
|
1712
|
+
op->data.recv_status_on_client.status_details = &status_details_recv_;
|
1713
|
+
++op;
|
1714
|
+
Ref(DEBUG_LOCATION, "OnRlsCallComplete").release();
|
1715
|
+
auto call_error = grpc_call_start_batch_and_execute(
|
1716
|
+
call_, ops, static_cast<size_t>(op - ops), &call_complete_cb_);
|
1717
|
+
GPR_ASSERT(call_error == GRPC_CALL_OK);
|
1718
|
+
}
|
1719
|
+
|
1720
|
+
void RlsLb::RlsRequest::OnRlsCallComplete(void* arg, grpc_error_handle error) {
|
1721
|
+
auto* request = static_cast<RlsRequest*>(arg);
|
1722
|
+
request->lb_policy_->work_serializer()->Run(
|
1723
|
+
[request, error]() {
|
1724
|
+
request->OnRlsCallCompleteLocked(error);
|
1725
|
+
request->Unref(DEBUG_LOCATION, "OnRlsCallComplete");
|
1726
|
+
},
|
1727
|
+
DEBUG_LOCATION);
|
1728
|
+
}
|
1729
|
+
|
1730
|
+
void RlsLb::RlsRequest::OnRlsCallCompleteLocked(grpc_error_handle error) {
|
1731
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1732
|
+
std::string status_message(StringViewFromSlice(status_details_recv_));
|
1733
|
+
gpr_log(GPR_INFO,
|
1734
|
+
"[rlslb %p] rls_request=%p %s, error=%s, status={%d, %s} RLS call "
|
1735
|
+
"response received",
|
1736
|
+
lb_policy_.get(), this, key_.ToString().c_str(),
|
1737
|
+
StatusToString(error).c_str(), status_recv_,
|
1738
|
+
status_message.c_str());
|
1739
|
+
}
|
1740
|
+
// Parse response.
|
1741
|
+
ResponseInfo response;
|
1742
|
+
if (!error.ok()) {
|
1743
|
+
grpc_status_code code;
|
1744
|
+
std::string message;
|
1745
|
+
grpc_error_get_status(error, deadline_, &code, &message,
|
1746
|
+
/*http_error=*/nullptr, /*error_string=*/nullptr);
|
1747
|
+
response.status =
|
1748
|
+
absl::Status(static_cast<absl::StatusCode>(code), message);
|
1749
|
+
} else if (status_recv_ != GRPC_STATUS_OK) {
|
1750
|
+
response.status = absl::Status(static_cast<absl::StatusCode>(status_recv_),
|
1751
|
+
StringViewFromSlice(status_details_recv_));
|
1752
|
+
} else {
|
1753
|
+
response = ParseResponseProto();
|
1754
|
+
}
|
1755
|
+
// Clean up call state.
|
1756
|
+
grpc_byte_buffer_destroy(send_message_);
|
1757
|
+
grpc_byte_buffer_destroy(recv_message_);
|
1758
|
+
grpc_metadata_array_destroy(&recv_initial_metadata_);
|
1759
|
+
grpc_metadata_array_destroy(&recv_trailing_metadata_);
|
1760
|
+
CSliceUnref(status_details_recv_);
|
1761
|
+
grpc_call_unref(call_);
|
1762
|
+
call_ = nullptr;
|
1763
|
+
// Return result to cache.
|
1764
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1765
|
+
gpr_log(GPR_INFO, "[rlslb %p] rls_request=%p %s: response info: %s",
|
1766
|
+
lb_policy_.get(), this, key_.ToString().c_str(),
|
1767
|
+
response.ToString().c_str());
|
1768
|
+
}
|
1769
|
+
std::vector<ChildPolicyWrapper*> child_policies_to_finish_update;
|
1770
|
+
{
|
1771
|
+
MutexLock lock(&lb_policy_->mu_);
|
1772
|
+
if (lb_policy_->is_shutdown_) return;
|
1773
|
+
rls_channel_->ReportResponseLocked(response.status.ok());
|
1774
|
+
Cache::Entry* cache_entry = lb_policy_->cache_.FindOrInsert(key_);
|
1775
|
+
child_policies_to_finish_update = cache_entry->OnRlsResponseLocked(
|
1776
|
+
std::move(response), std::move(backoff_state_));
|
1777
|
+
lb_policy_->request_map_.erase(key_);
|
1778
|
+
}
|
1779
|
+
// Now that we've released the lock, finish the update on any newly
|
1780
|
+
// created child policies.
|
1781
|
+
for (ChildPolicyWrapper* child : child_policies_to_finish_update) {
|
1782
|
+
// TODO(roth): If the child reports an error with the update, we
|
1783
|
+
// need to propagate that back to the resolver somehow.
|
1784
|
+
(void)child->MaybeFinishUpdate();
|
1785
|
+
}
|
1786
|
+
}
|
1787
|
+
|
1788
|
+
grpc_byte_buffer* RlsLb::RlsRequest::MakeRequestProto() {
|
1789
|
+
upb::Arena arena;
|
1790
|
+
grpc_lookup_v1_RouteLookupRequest* req =
|
1791
|
+
grpc_lookup_v1_RouteLookupRequest_new(arena.ptr());
|
1792
|
+
grpc_lookup_v1_RouteLookupRequest_set_target_type(
|
1793
|
+
req, upb_StringView_FromDataAndSize(kGrpc, sizeof(kGrpc) - 1));
|
1794
|
+
for (const auto& kv : key_.key_map) {
|
1795
|
+
grpc_lookup_v1_RouteLookupRequest_key_map_set(
|
1796
|
+
req, upb_StringView_FromDataAndSize(kv.first.data(), kv.first.size()),
|
1797
|
+
upb_StringView_FromDataAndSize(kv.second.data(), kv.second.size()),
|
1798
|
+
arena.ptr());
|
1799
|
+
}
|
1800
|
+
grpc_lookup_v1_RouteLookupRequest_set_reason(req, reason_);
|
1801
|
+
if (!stale_header_data_.empty()) {
|
1802
|
+
grpc_lookup_v1_RouteLookupRequest_set_stale_header_data(
|
1803
|
+
req, upb_StringView_FromDataAndSize(stale_header_data_.data(),
|
1804
|
+
stale_header_data_.size()));
|
1805
|
+
}
|
1806
|
+
size_t len;
|
1807
|
+
char* buf =
|
1808
|
+
grpc_lookup_v1_RouteLookupRequest_serialize(req, arena.ptr(), &len);
|
1809
|
+
grpc_slice send_slice = grpc_slice_from_copied_buffer(buf, len);
|
1810
|
+
grpc_byte_buffer* byte_buffer = grpc_raw_byte_buffer_create(&send_slice, 1);
|
1811
|
+
CSliceUnref(send_slice);
|
1812
|
+
return byte_buffer;
|
1813
|
+
}
|
1814
|
+
|
1815
|
+
RlsLb::ResponseInfo RlsLb::RlsRequest::ParseResponseProto() {
|
1816
|
+
ResponseInfo response_info;
|
1817
|
+
upb::Arena arena;
|
1818
|
+
grpc_byte_buffer_reader bbr;
|
1819
|
+
grpc_byte_buffer_reader_init(&bbr, recv_message_);
|
1820
|
+
grpc_slice recv_slice = grpc_byte_buffer_reader_readall(&bbr);
|
1821
|
+
grpc_byte_buffer_reader_destroy(&bbr);
|
1822
|
+
grpc_lookup_v1_RouteLookupResponse* response =
|
1823
|
+
grpc_lookup_v1_RouteLookupResponse_parse(
|
1824
|
+
reinterpret_cast<const char*>(GRPC_SLICE_START_PTR(recv_slice)),
|
1825
|
+
GRPC_SLICE_LENGTH(recv_slice), arena.ptr());
|
1826
|
+
CSliceUnref(recv_slice);
|
1827
|
+
if (response == nullptr) {
|
1828
|
+
response_info.status = absl::InternalError("cannot parse RLS response");
|
1829
|
+
return response_info;
|
1830
|
+
}
|
1831
|
+
size_t num_targets;
|
1832
|
+
const upb_StringView* targets_strview =
|
1833
|
+
grpc_lookup_v1_RouteLookupResponse_targets(response, &num_targets);
|
1834
|
+
if (num_targets == 0) {
|
1835
|
+
response_info.status =
|
1836
|
+
absl::InvalidArgumentError("RLS response has no target entry");
|
1837
|
+
return response_info;
|
1838
|
+
}
|
1839
|
+
response_info.targets.reserve(num_targets);
|
1840
|
+
for (size_t i = 0; i < num_targets; ++i) {
|
1841
|
+
response_info.targets.emplace_back(targets_strview[i].data,
|
1842
|
+
targets_strview[i].size);
|
1843
|
+
}
|
1844
|
+
upb_StringView header_data_strview =
|
1845
|
+
grpc_lookup_v1_RouteLookupResponse_header_data(response);
|
1846
|
+
response_info.header_data =
|
1847
|
+
std::string(header_data_strview.data, header_data_strview.size);
|
1848
|
+
return response_info;
|
1849
|
+
}
|
1850
|
+
|
1851
|
+
//
|
1852
|
+
// RlsLb
|
1853
|
+
//
|
1854
|
+
|
1855
|
+
RlsLb::RlsLb(Args args) : LoadBalancingPolicy(std::move(args)), cache_(this) {
|
1856
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1857
|
+
gpr_log(GPR_INFO, "[rlslb %p] policy created", this);
|
1858
|
+
}
|
1859
|
+
}
|
1860
|
+
|
1861
|
+
bool EndpointsEqual(
|
1862
|
+
const absl::StatusOr<std::shared_ptr<EndpointAddressesIterator>> endpoints1,
|
1863
|
+
const absl::StatusOr<std::shared_ptr<EndpointAddressesIterator>>
|
1864
|
+
endpoints2) {
|
1865
|
+
if (endpoints1.status() != endpoints2.status()) return false;
|
1866
|
+
if (endpoints1.ok()) {
|
1867
|
+
std::vector<EndpointAddresses> e1_list;
|
1868
|
+
(*endpoints1)->ForEach([&](const EndpointAddresses& endpoint) {
|
1869
|
+
e1_list.push_back(endpoint);
|
1870
|
+
});
|
1871
|
+
size_t i = 0;
|
1872
|
+
bool different = false;
|
1873
|
+
(*endpoints2)->ForEach([&](const EndpointAddresses& endpoint) {
|
1874
|
+
if (endpoint != e1_list[i++]) different = true;
|
1875
|
+
});
|
1876
|
+
if (different) return false;
|
1877
|
+
if (i != e1_list.size()) return false;
|
1878
|
+
}
|
1879
|
+
return true;
|
1880
|
+
}
|
1881
|
+
|
1882
|
+
absl::Status RlsLb::UpdateLocked(UpdateArgs args) {
|
1883
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1884
|
+
gpr_log(GPR_INFO, "[rlslb %p] policy updated", this);
|
1885
|
+
}
|
1886
|
+
update_in_progress_ = true;
|
1887
|
+
// Swap out config.
|
1888
|
+
RefCountedPtr<RlsLbConfig> old_config = std::move(config_);
|
1889
|
+
config_ = args.config.TakeAsSubclass<RlsLbConfig>();
|
1890
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace) &&
|
1891
|
+
(old_config == nullptr ||
|
1892
|
+
old_config->child_policy_config() != config_->child_policy_config())) {
|
1893
|
+
gpr_log(GPR_INFO, "[rlslb %p] updated child policy config: %s", this,
|
1894
|
+
JsonDump(config_->child_policy_config()).c_str());
|
1895
|
+
}
|
1896
|
+
// Swap out addresses.
|
1897
|
+
// If the new address list is an error and we have an existing address list,
|
1898
|
+
// stick with the existing addresses.
|
1899
|
+
absl::StatusOr<std::shared_ptr<EndpointAddressesIterator>> old_addresses;
|
1900
|
+
if (args.addresses.ok()) {
|
1901
|
+
old_addresses = std::move(addresses_);
|
1902
|
+
addresses_ = std::move(args.addresses);
|
1903
|
+
} else {
|
1904
|
+
old_addresses = addresses_;
|
1905
|
+
}
|
1906
|
+
// Swap out channel args.
|
1907
|
+
channel_args_ = std::move(args.args);
|
1908
|
+
// Determine whether we need to update all child policies.
|
1909
|
+
bool update_child_policies =
|
1910
|
+
old_config == nullptr ||
|
1911
|
+
old_config->child_policy_config() != config_->child_policy_config() ||
|
1912
|
+
!EndpointsEqual(old_addresses, addresses_) || args.args != channel_args_;
|
1913
|
+
// If default target changes, swap out child policy.
|
1914
|
+
bool created_default_child = false;
|
1915
|
+
if (old_config == nullptr ||
|
1916
|
+
config_->default_target() != old_config->default_target()) {
|
1917
|
+
if (config_->default_target().empty()) {
|
1918
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1919
|
+
gpr_log(GPR_INFO, "[rlslb %p] unsetting default target", this);
|
1920
|
+
}
|
1921
|
+
default_child_policy_.reset();
|
1922
|
+
} else {
|
1923
|
+
auto it = child_policy_map_.find(config_->default_target());
|
1924
|
+
if (it == child_policy_map_.end()) {
|
1925
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1926
|
+
gpr_log(GPR_INFO, "[rlslb %p] creating new default target", this);
|
1927
|
+
}
|
1928
|
+
default_child_policy_ = MakeRefCounted<ChildPolicyWrapper>(
|
1929
|
+
RefAsSubclass<RlsLb>(DEBUG_LOCATION, "ChildPolicyWrapper"),
|
1930
|
+
config_->default_target());
|
1931
|
+
created_default_child = true;
|
1932
|
+
} else {
|
1933
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1934
|
+
gpr_log(GPR_INFO,
|
1935
|
+
"[rlslb %p] using existing child for default target", this);
|
1936
|
+
}
|
1937
|
+
default_child_policy_ =
|
1938
|
+
it->second->Ref(DEBUG_LOCATION, "DefaultChildPolicy");
|
1939
|
+
}
|
1940
|
+
}
|
1941
|
+
}
|
1942
|
+
// Now grab the lock to swap out the state it guards.
|
1943
|
+
{
|
1944
|
+
MutexLock lock(&mu_);
|
1945
|
+
// Swap out RLS channel if needed.
|
1946
|
+
if (old_config == nullptr ||
|
1947
|
+
config_->lookup_service() != old_config->lookup_service()) {
|
1948
|
+
rls_channel_ = MakeOrphanable<RlsChannel>(
|
1949
|
+
RefAsSubclass<RlsLb>(DEBUG_LOCATION, "RlsChannel"));
|
1950
|
+
}
|
1951
|
+
// Resize cache if needed.
|
1952
|
+
if (old_config == nullptr ||
|
1953
|
+
config_->cache_size_bytes() != old_config->cache_size_bytes()) {
|
1954
|
+
cache_.Resize(static_cast<size_t>(config_->cache_size_bytes()));
|
1955
|
+
}
|
1956
|
+
// Start update of child policies if needed.
|
1957
|
+
if (update_child_policies) {
|
1958
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1959
|
+
gpr_log(GPR_INFO, "[rlslb %p] starting child policy updates", this);
|
1960
|
+
}
|
1961
|
+
for (auto& p : child_policy_map_) {
|
1962
|
+
p.second->StartUpdate();
|
1963
|
+
}
|
1964
|
+
} else if (created_default_child) {
|
1965
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1966
|
+
gpr_log(GPR_INFO, "[rlslb %p] starting default child policy update",
|
1967
|
+
this);
|
1968
|
+
}
|
1969
|
+
default_child_policy_->StartUpdate();
|
1970
|
+
}
|
1971
|
+
}
|
1972
|
+
// Now that we've released the lock, finish update of child policies.
|
1973
|
+
std::vector<std::string> errors;
|
1974
|
+
if (update_child_policies) {
|
1975
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1976
|
+
gpr_log(GPR_INFO, "[rlslb %p] finishing child policy updates", this);
|
1977
|
+
}
|
1978
|
+
for (auto& p : child_policy_map_) {
|
1979
|
+
absl::Status status = p.second->MaybeFinishUpdate();
|
1980
|
+
if (!status.ok()) {
|
1981
|
+
errors.emplace_back(
|
1982
|
+
absl::StrCat("target ", p.first, ": ", status.ToString()));
|
1983
|
+
}
|
1984
|
+
}
|
1985
|
+
} else if (created_default_child) {
|
1986
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
1987
|
+
gpr_log(GPR_INFO, "[rlslb %p] finishing default child policy update",
|
1988
|
+
this);
|
1989
|
+
}
|
1990
|
+
absl::Status status = default_child_policy_->MaybeFinishUpdate();
|
1991
|
+
if (!status.ok()) {
|
1992
|
+
errors.emplace_back(absl::StrCat("target ", config_->default_target(),
|
1993
|
+
": ", status.ToString()));
|
1994
|
+
}
|
1995
|
+
}
|
1996
|
+
update_in_progress_ = false;
|
1997
|
+
// In principle, we need to update the picker here only if the config
|
1998
|
+
// fields used by the picker have changed. However, it seems fragile
|
1999
|
+
// to check individual fields, since the picker logic could change in
|
2000
|
+
// the future to use additional config fields, and we might not
|
2001
|
+
// remember to update the code here. So for now, we just unconditionally
|
2002
|
+
// update the picker here, even though it's probably redundant.
|
2003
|
+
UpdatePickerLocked();
|
2004
|
+
// Return status.
|
2005
|
+
if (!errors.empty()) {
|
2006
|
+
return absl::UnavailableError(absl::StrCat(
|
2007
|
+
"errors from children: [", absl::StrJoin(errors, "; "), "]"));
|
2008
|
+
}
|
2009
|
+
return absl::OkStatus();
|
2010
|
+
}
|
2011
|
+
|
2012
|
+
void RlsLb::ExitIdleLocked() {
|
2013
|
+
MutexLock lock(&mu_);
|
2014
|
+
for (auto& child_entry : child_policy_map_) {
|
2015
|
+
child_entry.second->ExitIdleLocked();
|
2016
|
+
}
|
2017
|
+
}
|
2018
|
+
|
2019
|
+
void RlsLb::ResetBackoffLocked() {
|
2020
|
+
{
|
2021
|
+
MutexLock lock(&mu_);
|
2022
|
+
rls_channel_->ResetBackoff();
|
2023
|
+
cache_.ResetAllBackoff();
|
2024
|
+
}
|
2025
|
+
for (auto& child : child_policy_map_) {
|
2026
|
+
child.second->ResetBackoffLocked();
|
2027
|
+
}
|
2028
|
+
}
|
2029
|
+
|
2030
|
+
void RlsLb::ShutdownLocked() {
|
2031
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
2032
|
+
gpr_log(GPR_INFO, "[rlslb %p] policy shutdown", this);
|
2033
|
+
}
|
2034
|
+
MutexLock lock(&mu_);
|
2035
|
+
is_shutdown_ = true;
|
2036
|
+
config_.reset(DEBUG_LOCATION, "ShutdownLocked");
|
2037
|
+
channel_args_ = ChannelArgs();
|
2038
|
+
cache_.Shutdown();
|
2039
|
+
request_map_.clear();
|
2040
|
+
rls_channel_.reset();
|
2041
|
+
default_child_policy_.reset();
|
2042
|
+
}
|
2043
|
+
|
2044
|
+
void RlsLb::UpdatePickerAsync() {
|
2045
|
+
// Run via the ExecCtx, since the caller may be holding the lock, and
|
2046
|
+
// we don't want to be doing that when we hop into the WorkSerializer,
|
2047
|
+
// in case the WorkSerializer callback happens to run inline.
|
2048
|
+
ExecCtx::Run(
|
2049
|
+
DEBUG_LOCATION,
|
2050
|
+
GRPC_CLOSURE_CREATE(UpdatePickerCallback,
|
2051
|
+
Ref(DEBUG_LOCATION, "UpdatePickerCallback").release(),
|
2052
|
+
grpc_schedule_on_exec_ctx),
|
2053
|
+
absl::OkStatus());
|
2054
|
+
}
|
2055
|
+
|
2056
|
+
void RlsLb::UpdatePickerCallback(void* arg, grpc_error_handle /*error*/) {
|
2057
|
+
auto* rls_lb = static_cast<RlsLb*>(arg);
|
2058
|
+
rls_lb->work_serializer()->Run(
|
2059
|
+
[rls_lb]() {
|
2060
|
+
RefCountedPtr<RlsLb> lb_policy(rls_lb);
|
2061
|
+
lb_policy->UpdatePickerLocked();
|
2062
|
+
lb_policy.reset(DEBUG_LOCATION, "UpdatePickerCallback");
|
2063
|
+
},
|
2064
|
+
DEBUG_LOCATION);
|
2065
|
+
}
|
2066
|
+
|
2067
|
+
void RlsLb::UpdatePickerLocked() {
|
2068
|
+
// If we're in the process of propagating an update from our parent to
|
2069
|
+
// our children, ignore any updates that come from the children. We
|
2070
|
+
// will instead return a new picker once the update has been seen by
|
2071
|
+
// all children. This avoids unnecessary picker churn while an update
|
2072
|
+
// is being propagated to our children.
|
2073
|
+
if (update_in_progress_) return;
|
2074
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
2075
|
+
gpr_log(GPR_INFO, "[rlslb %p] updating picker", this);
|
2076
|
+
}
|
2077
|
+
grpc_connectivity_state state = GRPC_CHANNEL_IDLE;
|
2078
|
+
if (!child_policy_map_.empty()) {
|
2079
|
+
state = GRPC_CHANNEL_TRANSIENT_FAILURE;
|
2080
|
+
int num_idle = 0;
|
2081
|
+
int num_connecting = 0;
|
2082
|
+
{
|
2083
|
+
MutexLock lock(&mu_);
|
2084
|
+
if (is_shutdown_) return;
|
2085
|
+
for (auto& p : child_policy_map_) {
|
2086
|
+
grpc_connectivity_state child_state = p.second->connectivity_state();
|
2087
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
2088
|
+
gpr_log(GPR_INFO, "[rlslb %p] target %s in state %s", this,
|
2089
|
+
p.second->target().c_str(),
|
2090
|
+
ConnectivityStateName(child_state));
|
2091
|
+
}
|
2092
|
+
if (child_state == GRPC_CHANNEL_READY) {
|
2093
|
+
state = GRPC_CHANNEL_READY;
|
2094
|
+
break;
|
2095
|
+
} else if (child_state == GRPC_CHANNEL_CONNECTING) {
|
2096
|
+
++num_connecting;
|
2097
|
+
} else if (child_state == GRPC_CHANNEL_IDLE) {
|
2098
|
+
++num_idle;
|
2099
|
+
}
|
2100
|
+
}
|
2101
|
+
if (state != GRPC_CHANNEL_READY) {
|
2102
|
+
if (num_connecting > 0) {
|
2103
|
+
state = GRPC_CHANNEL_CONNECTING;
|
2104
|
+
} else if (num_idle > 0) {
|
2105
|
+
state = GRPC_CHANNEL_IDLE;
|
2106
|
+
}
|
2107
|
+
}
|
2108
|
+
}
|
2109
|
+
}
|
2110
|
+
if (GRPC_TRACE_FLAG_ENABLED(grpc_lb_rls_trace)) {
|
2111
|
+
gpr_log(GPR_INFO, "[rlslb %p] reporting state %s", this,
|
2112
|
+
ConnectivityStateName(state));
|
2113
|
+
}
|
2114
|
+
absl::Status status;
|
2115
|
+
if (state == GRPC_CHANNEL_TRANSIENT_FAILURE) {
|
2116
|
+
status = absl::UnavailableError("no children available");
|
2117
|
+
}
|
2118
|
+
channel_control_helper()->UpdateState(
|
2119
|
+
state, status,
|
2120
|
+
MakeRefCounted<Picker>(RefAsSubclass<RlsLb>(DEBUG_LOCATION, "Picker")));
|
2121
|
+
}
|
2122
|
+
|
2123
|
+
//
|
2124
|
+
// RlsLbFactory
|
2125
|
+
//
|
2126
|
+
|
2127
|
+
struct GrpcKeyBuilder {
|
2128
|
+
struct Name {
|
2129
|
+
std::string service;
|
2130
|
+
std::string method;
|
2131
|
+
|
2132
|
+
static const JsonLoaderInterface* JsonLoader(const JsonArgs&) {
|
2133
|
+
static const auto* loader = JsonObjectLoader<Name>()
|
2134
|
+
.Field("service", &Name::service)
|
2135
|
+
.OptionalField("method", &Name::method)
|
2136
|
+
.Finish();
|
2137
|
+
return loader;
|
2138
|
+
}
|
2139
|
+
};
|
2140
|
+
|
2141
|
+
struct NameMatcher {
|
2142
|
+
std::string key;
|
2143
|
+
std::vector<std::string> names;
|
2144
|
+
absl::optional<bool> required_match;
|
2145
|
+
|
2146
|
+
static const JsonLoaderInterface* JsonLoader(const JsonArgs&) {
|
2147
|
+
static const auto* loader =
|
2148
|
+
JsonObjectLoader<NameMatcher>()
|
2149
|
+
.Field("key", &NameMatcher::key)
|
2150
|
+
.Field("names", &NameMatcher::names)
|
2151
|
+
.OptionalField("requiredMatch", &NameMatcher::required_match)
|
2152
|
+
.Finish();
|
2153
|
+
return loader;
|
2154
|
+
}
|
2155
|
+
|
2156
|
+
void JsonPostLoad(const Json&, const JsonArgs&, ValidationErrors* errors) {
|
2157
|
+
// key must be non-empty.
|
2158
|
+
{
|
2159
|
+
ValidationErrors::ScopedField field(errors, ".key");
|
2160
|
+
if (!errors->FieldHasErrors() && key.empty()) {
|
2161
|
+
errors->AddError("must be non-empty");
|
2162
|
+
}
|
2163
|
+
}
|
2164
|
+
// List of header names must be non-empty.
|
2165
|
+
{
|
2166
|
+
ValidationErrors::ScopedField field(errors, ".names");
|
2167
|
+
if (!errors->FieldHasErrors() && names.empty()) {
|
2168
|
+
errors->AddError("must be non-empty");
|
2169
|
+
}
|
2170
|
+
// Individual header names must be non-empty.
|
2171
|
+
for (size_t i = 0; i < names.size(); ++i) {
|
2172
|
+
ValidationErrors::ScopedField field(errors,
|
2173
|
+
absl::StrCat("[", i, "]"));
|
2174
|
+
if (!errors->FieldHasErrors() && names[i].empty()) {
|
2175
|
+
errors->AddError("must be non-empty");
|
2176
|
+
}
|
2177
|
+
}
|
2178
|
+
}
|
2179
|
+
// requiredMatch must not be present.
|
2180
|
+
{
|
2181
|
+
ValidationErrors::ScopedField field(errors, ".requiredMatch");
|
2182
|
+
if (required_match.has_value()) {
|
2183
|
+
errors->AddError("must not be present");
|
2184
|
+
}
|
2185
|
+
}
|
2186
|
+
}
|
2187
|
+
};
|
2188
|
+
|
2189
|
+
struct ExtraKeys {
|
2190
|
+
absl::optional<std::string> host_key;
|
2191
|
+
absl::optional<std::string> service_key;
|
2192
|
+
absl::optional<std::string> method_key;
|
2193
|
+
|
2194
|
+
static const JsonLoaderInterface* JsonLoader(const JsonArgs&) {
|
2195
|
+
static const auto* loader =
|
2196
|
+
JsonObjectLoader<ExtraKeys>()
|
2197
|
+
.OptionalField("host", &ExtraKeys::host_key)
|
2198
|
+
.OptionalField("service", &ExtraKeys::service_key)
|
2199
|
+
.OptionalField("method", &ExtraKeys::method_key)
|
2200
|
+
.Finish();
|
2201
|
+
return loader;
|
2202
|
+
}
|
2203
|
+
|
2204
|
+
void JsonPostLoad(const Json&, const JsonArgs&, ValidationErrors* errors) {
|
2205
|
+
auto check_field = [&](const std::string& field_name,
|
2206
|
+
absl::optional<std::string>* struct_field) {
|
2207
|
+
ValidationErrors::ScopedField field(errors,
|
2208
|
+
absl::StrCat(".", field_name));
|
2209
|
+
if (struct_field->has_value() && (*struct_field)->empty()) {
|
2210
|
+
errors->AddError("must be non-empty if set");
|
2211
|
+
}
|
2212
|
+
};
|
2213
|
+
check_field("host", &host_key);
|
2214
|
+
check_field("service", &service_key);
|
2215
|
+
check_field("method", &method_key);
|
2216
|
+
}
|
2217
|
+
};
|
2218
|
+
|
2219
|
+
std::vector<Name> names;
|
2220
|
+
std::vector<NameMatcher> headers;
|
2221
|
+
ExtraKeys extra_keys;
|
2222
|
+
std::map<std::string /*key*/, std::string /*value*/> constant_keys;
|
2223
|
+
|
2224
|
+
static const JsonLoaderInterface* JsonLoader(const JsonArgs&) {
|
2225
|
+
static const auto* loader =
|
2226
|
+
JsonObjectLoader<GrpcKeyBuilder>()
|
2227
|
+
.Field("names", &GrpcKeyBuilder::names)
|
2228
|
+
.OptionalField("headers", &GrpcKeyBuilder::headers)
|
2229
|
+
.OptionalField("extraKeys", &GrpcKeyBuilder::extra_keys)
|
2230
|
+
.OptionalField("constantKeys", &GrpcKeyBuilder::constant_keys)
|
2231
|
+
.Finish();
|
2232
|
+
return loader;
|
2233
|
+
}
|
2234
|
+
|
2235
|
+
void JsonPostLoad(const Json&, const JsonArgs&, ValidationErrors* errors) {
|
2236
|
+
// The names field must be non-empty.
|
2237
|
+
{
|
2238
|
+
ValidationErrors::ScopedField field(errors, ".names");
|
2239
|
+
if (!errors->FieldHasErrors() && names.empty()) {
|
2240
|
+
errors->AddError("must be non-empty");
|
2241
|
+
}
|
2242
|
+
}
|
2243
|
+
// Make sure no key in constantKeys is empty.
|
2244
|
+
if (constant_keys.find("") != constant_keys.end()) {
|
2245
|
+
ValidationErrors::ScopedField field(errors, ".constantKeys[\"\"]");
|
2246
|
+
errors->AddError("key must be non-empty");
|
2247
|
+
}
|
2248
|
+
// Check for duplicate keys.
|
2249
|
+
std::set<absl::string_view> keys_seen;
|
2250
|
+
auto duplicate_key_check_func = [&keys_seen, errors](
|
2251
|
+
const std::string& key,
|
2252
|
+
const std::string& field_name) {
|
2253
|
+
if (key.empty()) return; // Already generated an error about this.
|
2254
|
+
ValidationErrors::ScopedField field(errors, field_name);
|
2255
|
+
auto it = keys_seen.find(key);
|
2256
|
+
if (it != keys_seen.end()) {
|
2257
|
+
errors->AddError(absl::StrCat("duplicate key \"", key, "\""));
|
2258
|
+
} else {
|
2259
|
+
keys_seen.insert(key);
|
2260
|
+
}
|
2261
|
+
};
|
2262
|
+
for (size_t i = 0; i < headers.size(); ++i) {
|
2263
|
+
NameMatcher& header = headers[i];
|
2264
|
+
duplicate_key_check_func(header.key,
|
2265
|
+
absl::StrCat(".headers[", i, "].key"));
|
2266
|
+
}
|
2267
|
+
for (const auto& p : constant_keys) {
|
2268
|
+
duplicate_key_check_func(
|
2269
|
+
p.first, absl::StrCat(".constantKeys[\"", p.first, "\"]"));
|
2270
|
+
}
|
2271
|
+
if (extra_keys.host_key.has_value()) {
|
2272
|
+
duplicate_key_check_func(*extra_keys.host_key, ".extraKeys.host");
|
2273
|
+
}
|
2274
|
+
if (extra_keys.service_key.has_value()) {
|
2275
|
+
duplicate_key_check_func(*extra_keys.service_key, ".extraKeys.service");
|
2276
|
+
}
|
2277
|
+
if (extra_keys.method_key.has_value()) {
|
2278
|
+
duplicate_key_check_func(*extra_keys.method_key, ".extraKeys.method");
|
2279
|
+
}
|
2280
|
+
}
|
2281
|
+
};
|
2282
|
+
|
2283
|
+
const JsonLoaderInterface* RlsLbConfig::RouteLookupConfig::JsonLoader(
|
2284
|
+
const JsonArgs&) {
|
2285
|
+
static const auto* loader =
|
2286
|
+
JsonObjectLoader<RouteLookupConfig>()
|
2287
|
+
// Note: Some fields require manual processing and are handled in
|
2288
|
+
// JsonPostLoad() instead.
|
2289
|
+
.Field("lookupService", &RouteLookupConfig::lookup_service)
|
2290
|
+
.OptionalField("lookupServiceTimeout",
|
2291
|
+
&RouteLookupConfig::lookup_service_timeout)
|
2292
|
+
.OptionalField("maxAge", &RouteLookupConfig::max_age)
|
2293
|
+
.OptionalField("staleAge", &RouteLookupConfig::stale_age)
|
2294
|
+
.Field("cacheSizeBytes", &RouteLookupConfig::cache_size_bytes)
|
2295
|
+
.OptionalField("defaultTarget", &RouteLookupConfig::default_target)
|
2296
|
+
.Finish();
|
2297
|
+
return loader;
|
2298
|
+
}
|
2299
|
+
|
2300
|
+
void RlsLbConfig::RouteLookupConfig::JsonPostLoad(const Json& json,
|
2301
|
+
const JsonArgs& args,
|
2302
|
+
ValidationErrors* errors) {
|
2303
|
+
// Parse grpcKeybuilders.
|
2304
|
+
auto grpc_keybuilders = LoadJsonObjectField<std::vector<GrpcKeyBuilder>>(
|
2305
|
+
json.object(), args, "grpcKeybuilders", errors);
|
2306
|
+
if (grpc_keybuilders.has_value()) {
|
2307
|
+
ValidationErrors::ScopedField field(errors, ".grpcKeybuilders");
|
2308
|
+
for (size_t i = 0; i < grpc_keybuilders->size(); ++i) {
|
2309
|
+
ValidationErrors::ScopedField field(errors, absl::StrCat("[", i, "]"));
|
2310
|
+
auto& grpc_keybuilder = (*grpc_keybuilders)[i];
|
2311
|
+
// Construct KeyBuilder.
|
2312
|
+
RlsLbConfig::KeyBuilder key_builder;
|
2313
|
+
for (const auto& header : grpc_keybuilder.headers) {
|
2314
|
+
key_builder.header_keys.emplace(header.key, header.names);
|
2315
|
+
}
|
2316
|
+
if (grpc_keybuilder.extra_keys.host_key.has_value()) {
|
2317
|
+
key_builder.host_key = std::move(*grpc_keybuilder.extra_keys.host_key);
|
2318
|
+
}
|
2319
|
+
if (grpc_keybuilder.extra_keys.service_key.has_value()) {
|
2320
|
+
key_builder.service_key =
|
2321
|
+
std::move(*grpc_keybuilder.extra_keys.service_key);
|
2322
|
+
}
|
2323
|
+
if (grpc_keybuilder.extra_keys.method_key.has_value()) {
|
2324
|
+
key_builder.method_key =
|
2325
|
+
std::move(*grpc_keybuilder.extra_keys.method_key);
|
2326
|
+
}
|
2327
|
+
key_builder.constant_keys = std::move(grpc_keybuilder.constant_keys);
|
2328
|
+
// Add entries to map.
|
2329
|
+
for (const auto& name : grpc_keybuilder.names) {
|
2330
|
+
std::string path = absl::StrCat("/", name.service, "/", name.method);
|
2331
|
+
bool inserted = key_builder_map.emplace(path, key_builder).second;
|
2332
|
+
if (!inserted) {
|
2333
|
+
errors->AddError(absl::StrCat("duplicate entry for \"", path, "\""));
|
2334
|
+
}
|
2335
|
+
}
|
2336
|
+
}
|
2337
|
+
}
|
2338
|
+
// Validate lookupService.
|
2339
|
+
{
|
2340
|
+
ValidationErrors::ScopedField field(errors, ".lookupService");
|
2341
|
+
if (!errors->FieldHasErrors() &&
|
2342
|
+
!CoreConfiguration::Get().resolver_registry().IsValidTarget(
|
2343
|
+
lookup_service)) {
|
2344
|
+
errors->AddError("must be valid gRPC target URI");
|
2345
|
+
}
|
2346
|
+
}
|
2347
|
+
// Clamp maxAge to the max allowed value.
|
2348
|
+
if (max_age > kMaxMaxAge) max_age = kMaxMaxAge;
|
2349
|
+
// If staleAge is set, then maxAge must also be set.
|
2350
|
+
if (json.object().find("staleAge") != json.object().end() &&
|
2351
|
+
json.object().find("maxAge") == json.object().end()) {
|
2352
|
+
ValidationErrors::ScopedField field(errors, ".maxAge");
|
2353
|
+
errors->AddError("must be set if staleAge is set");
|
2354
|
+
}
|
2355
|
+
// Ignore staleAge if greater than or equal to maxAge.
|
2356
|
+
if (stale_age >= max_age) stale_age = max_age;
|
2357
|
+
// Validate cacheSizeBytes.
|
2358
|
+
{
|
2359
|
+
ValidationErrors::ScopedField field(errors, ".cacheSizeBytes");
|
2360
|
+
if (!errors->FieldHasErrors() && cache_size_bytes <= 0) {
|
2361
|
+
errors->AddError("must be greater than 0");
|
2362
|
+
}
|
2363
|
+
}
|
2364
|
+
// Clamp cacheSizeBytes to the max allowed value.
|
2365
|
+
if (cache_size_bytes > kMaxCacheSizeBytes) {
|
2366
|
+
cache_size_bytes = kMaxCacheSizeBytes;
|
2367
|
+
}
|
2368
|
+
// Validate defaultTarget.
|
2369
|
+
{
|
2370
|
+
ValidationErrors::ScopedField field(errors, ".defaultTarget");
|
2371
|
+
if (!errors->FieldHasErrors() &&
|
2372
|
+
json.object().find("defaultTarget") != json.object().end() &&
|
2373
|
+
default_target.empty()) {
|
2374
|
+
errors->AddError("must be non-empty if set");
|
2375
|
+
}
|
2376
|
+
}
|
2377
|
+
}
|
2378
|
+
|
2379
|
+
const JsonLoaderInterface* RlsLbConfig::JsonLoader(const JsonArgs&) {
|
2380
|
+
static const auto* loader =
|
2381
|
+
JsonObjectLoader<RlsLbConfig>()
|
2382
|
+
// Note: Some fields require manual processing and are handled in
|
2383
|
+
// JsonPostLoad() instead.
|
2384
|
+
.Field("routeLookupConfig", &RlsLbConfig::route_lookup_config_)
|
2385
|
+
.Field("childPolicyConfigTargetFieldName",
|
2386
|
+
&RlsLbConfig::child_policy_config_target_field_name_)
|
2387
|
+
.Finish();
|
2388
|
+
return loader;
|
2389
|
+
}
|
2390
|
+
|
2391
|
+
void RlsLbConfig::JsonPostLoad(const Json& json, const JsonArgs&,
|
2392
|
+
ValidationErrors* errors) {
|
2393
|
+
// Parse routeLookupChannelServiceConfig.
|
2394
|
+
auto it = json.object().find("routeLookupChannelServiceConfig");
|
2395
|
+
if (it != json.object().end()) {
|
2396
|
+
ValidationErrors::ScopedField field(errors,
|
2397
|
+
".routeLookupChannelServiceConfig");
|
2398
|
+
// Don't need to save the result here, just need the errors (if any).
|
2399
|
+
ServiceConfigImpl::Create(ChannelArgs(), it->second, errors);
|
2400
|
+
}
|
2401
|
+
// Validate childPolicyConfigTargetFieldName.
|
2402
|
+
{
|
2403
|
+
ValidationErrors::ScopedField field(errors,
|
2404
|
+
".childPolicyConfigTargetFieldName");
|
2405
|
+
if (!errors->FieldHasErrors() &&
|
2406
|
+
child_policy_config_target_field_name_.empty()) {
|
2407
|
+
errors->AddError("must be non-empty");
|
2408
|
+
}
|
2409
|
+
}
|
2410
|
+
// Parse childPolicy.
|
2411
|
+
{
|
2412
|
+
ValidationErrors::ScopedField field(errors, ".childPolicy");
|
2413
|
+
auto it = json.object().find("childPolicy");
|
2414
|
+
if (it == json.object().end()) {
|
2415
|
+
errors->AddError("field not present");
|
2416
|
+
} else {
|
2417
|
+
// Add target to all child policy configs in the list.
|
2418
|
+
std::string target = route_lookup_config_.default_target.empty()
|
2419
|
+
? kFakeTargetFieldValue
|
2420
|
+
: route_lookup_config_.default_target;
|
2421
|
+
auto child_policy_config = InsertOrUpdateChildPolicyField(
|
2422
|
+
child_policy_config_target_field_name_, target, it->second, errors);
|
2423
|
+
if (child_policy_config.has_value()) {
|
2424
|
+
child_policy_config_ = std::move(*child_policy_config);
|
2425
|
+
// Parse the config.
|
2426
|
+
auto parsed_config =
|
2427
|
+
CoreConfiguration::Get()
|
2428
|
+
.lb_policy_registry()
|
2429
|
+
.ParseLoadBalancingConfig(child_policy_config_);
|
2430
|
+
if (!parsed_config.ok()) {
|
2431
|
+
errors->AddError(parsed_config.status().message());
|
2432
|
+
} else {
|
2433
|
+
// Find the chosen config and return it in JSON form.
|
2434
|
+
// We remove all non-selected configs, and in the selected config,
|
2435
|
+
// we leave the target field in place, set to the default value.
|
2436
|
+
// This slightly optimizes what we need to do later when we update
|
2437
|
+
// a child policy for a given target.
|
2438
|
+
for (const Json& config : child_policy_config_.array()) {
|
2439
|
+
if (config.object().begin()->first == (*parsed_config)->name()) {
|
2440
|
+
child_policy_config_ = Json::FromArray({config});
|
2441
|
+
break;
|
2442
|
+
}
|
2443
|
+
}
|
2444
|
+
// If default target is set, set the default child config.
|
2445
|
+
if (!route_lookup_config_.default_target.empty()) {
|
2446
|
+
default_child_policy_parsed_config_ = std::move(*parsed_config);
|
2447
|
+
}
|
2448
|
+
}
|
2449
|
+
}
|
2450
|
+
}
|
2451
|
+
}
|
2452
|
+
}
|
2453
|
+
|
2454
|
+
class RlsLbFactory : public LoadBalancingPolicyFactory {
|
2455
|
+
public:
|
2456
|
+
absl::string_view name() const override { return kRls; }
|
2457
|
+
|
2458
|
+
OrphanablePtr<LoadBalancingPolicy> CreateLoadBalancingPolicy(
|
2459
|
+
LoadBalancingPolicy::Args args) const override {
|
2460
|
+
return MakeOrphanable<RlsLb>(std::move(args));
|
2461
|
+
}
|
2462
|
+
|
2463
|
+
absl::StatusOr<RefCountedPtr<LoadBalancingPolicy::Config>>
|
2464
|
+
ParseLoadBalancingConfig(const Json& json) const override {
|
2465
|
+
return LoadFromJson<RefCountedPtr<RlsLbConfig>>(
|
2466
|
+
json, JsonArgs(), "errors validing RLS LB policy config");
|
2467
|
+
}
|
2468
|
+
};
|
2469
|
+
|
2470
|
+
} // namespace
|
2471
|
+
|
2472
|
+
void RegisterRlsLbPolicy(CoreConfiguration::Builder* builder) {
|
2473
|
+
builder->lb_policy_registry()->RegisterLoadBalancingPolicyFactory(
|
2474
|
+
std::make_unique<RlsLbFactory>());
|
2475
|
+
}
|
2476
|
+
|
2477
|
+
} // namespace grpc_core
|