grpc 1.64.0 → 1.68.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +127 -99
- data/include/grpc/compression.h +1 -2
- data/include/grpc/credentials.h +2 -3
- data/include/grpc/event_engine/README.md +1 -1
- data/include/grpc/event_engine/endpoint_config.h +2 -2
- data/include/grpc/event_engine/event_engine.h +33 -12
- data/include/grpc/event_engine/extensible.h +5 -2
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +4 -4
- data/include/grpc/event_engine/internal/slice_cast.h +1 -1
- data/include/grpc/event_engine/memory_allocator.h +3 -4
- data/include/grpc/event_engine/memory_request.h +19 -2
- data/include/grpc/event_engine/slice.h +3 -5
- data/include/grpc/event_engine/slice_buffer.h +6 -8
- data/include/grpc/grpc.h +1 -2
- data/include/grpc/grpc_audit_logging.h +3 -3
- data/include/grpc/grpc_crl_provider.h +5 -5
- data/include/grpc/grpc_posix.h +1 -2
- data/include/grpc/grpc_security.h +1 -2
- data/include/grpc/impl/call.h +2 -2
- data/include/grpc/impl/channel_arg_names.h +8 -4
- data/include/grpc/impl/grpc_types.h +1 -2
- data/include/grpc/impl/slice_type.h +1 -2
- data/include/grpc/module.modulemap +1 -0
- data/include/grpc/passive_listener.h +62 -0
- data/include/grpc/support/alloc.h +1 -2
- data/include/grpc/support/json.h +1 -2
- data/include/grpc/support/log.h +37 -64
- data/include/grpc/support/metrics.h +21 -6
- data/include/grpc/support/port_platform.h +31 -1
- data/include/grpc/support/sync_generic.h +2 -4
- data/include/grpc/support/sync_posix.h +1 -2
- data/include/grpc/support/time.h +1 -2
- data/src/core/channelz/channel_trace.cc +6 -7
- data/src/core/channelz/channel_trace.h +6 -8
- data/src/core/channelz/channelz.cc +8 -10
- data/src/core/channelz/channelz.h +15 -17
- data/src/core/channelz/channelz_registry.cc +10 -11
- data/src/core/channelz/channelz_registry.h +4 -5
- data/src/core/client_channel/backup_poller.cc +24 -15
- data/src/core/client_channel/client_channel.cc +1426 -0
- data/src/core/client_channel/client_channel.h +245 -0
- data/src/core/client_channel/client_channel_factory.cc +2 -2
- data/src/core/client_channel/client_channel_factory.h +1 -2
- data/src/core/client_channel/client_channel_filter.cc +348 -861
- data/src/core/client_channel/client_channel_filter.h +23 -76
- data/src/core/client_channel/client_channel_internal.h +23 -9
- data/src/core/client_channel/client_channel_plugin.cc +2 -17
- data/src/core/client_channel/client_channel_service_config.cc +2 -3
- data/src/core/client_channel/client_channel_service_config.h +6 -8
- data/src/core/client_channel/config_selector.h +21 -22
- data/src/core/client_channel/connector.h +3 -3
- data/src/core/client_channel/direct_channel.cc +83 -0
- data/src/core/client_channel/direct_channel.h +101 -0
- data/src/core/client_channel/dynamic_filters.cc +16 -14
- data/src/core/client_channel/dynamic_filters.h +9 -10
- data/src/core/client_channel/global_subchannel_pool.cc +2 -2
- data/src/core/client_channel/global_subchannel_pool.h +2 -3
- data/src/core/client_channel/lb_metadata.cc +120 -0
- data/src/core/client_channel/lb_metadata.h +55 -0
- data/src/core/client_channel/load_balanced_call_destination.cc +273 -0
- data/src/core/client_channel/load_balanced_call_destination.h +48 -0
- data/src/core/client_channel/local_subchannel_pool.cc +2 -5
- data/src/core/client_channel/local_subchannel_pool.h +1 -1
- data/src/core/client_channel/retry_filter.cc +8 -17
- data/src/core/client_channel/retry_filter.h +6 -15
- data/src/core/client_channel/retry_filter_legacy_call_data.cc +206 -318
- data/src/core/client_channel/retry_filter_legacy_call_data.h +9 -14
- data/src/core/client_channel/retry_service_config.cc +9 -12
- data/src/core/client_channel/retry_service_config.h +5 -7
- data/src/core/client_channel/retry_throttle.cc +3 -4
- data/src/core/client_channel/retry_throttle.h +4 -7
- data/src/core/client_channel/subchannel.cc +282 -164
- data/src/core/client_channel/subchannel.h +48 -40
- data/src/core/client_channel/subchannel_interface_internal.h +1 -1
- data/src/core/client_channel/subchannel_pool_interface.cc +1 -5
- data/src/core/client_channel/subchannel_pool_interface.h +4 -7
- data/src/core/client_channel/subchannel_stream_client.cc +43 -59
- data/src/core/client_channel/subchannel_stream_client.h +10 -14
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +22 -27
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.h +3 -1
- data/src/core/ext/filters/backend_metrics/backend_metric_provider.h +7 -0
- data/src/core/ext/filters/census/grpc_context.cc +7 -10
- data/src/core/ext/filters/channel_idle/idle_filter_state.cc +1 -2
- data/src/core/ext/filters/channel_idle/idle_filter_state.h +0 -1
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +34 -45
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h +12 -8
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +16 -19
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +4 -3
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.cc +2 -3
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h +6 -9
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.cc +205 -0
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h +97 -0
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.cc +80 -0
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_service_config_parser.h +86 -0
- data/src/core/ext/filters/http/client/http_client_filter.cc +14 -8
- data/src/core/ext/filters/http/client/http_client_filter.h +3 -1
- data/src/core/ext/filters/http/client_authority_filter.cc +8 -7
- data/src/core/ext/filters/http/client_authority_filter.h +3 -1
- data/src/core/ext/filters/http/http_filters_plugin.cc +0 -1
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +48 -44
- data/src/core/ext/filters/http/message_compress/compression_filter.h +8 -4
- data/src/core/ext/filters/http/server/http_server_filter.cc +16 -13
- data/src/core/ext/filters/http/server/http_server_filter.h +3 -1
- data/src/core/ext/filters/message_size/message_size_filter.cc +32 -32
- data/src/core/ext/filters/message_size/message_size_filter.h +11 -9
- data/src/core/ext/filters/rbac/rbac_filter.cc +8 -11
- data/src/core/ext/filters/rbac/rbac_filter.h +3 -2
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +16 -10
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +2 -4
- data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +13 -15
- data/src/core/ext/filters/stateful_session/stateful_session_filter.h +5 -4
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.cc +2 -3
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h +5 -7
- data/src/core/ext/transport/chttp2/alpn/alpn.cc +2 -4
- data/src/core/ext/transport/chttp2/alpn/alpn.h +1 -2
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +71 -101
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +5 -11
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +426 -314
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +35 -2
- data/src/core/ext/transport/chttp2/transport/bin_decoder.cc +19 -32
- data/src/core/ext/transport/chttp2/transport/bin_decoder.h +2 -3
- data/src/core/ext/transport/chttp2/transport/bin_encoder.cc +1 -4
- data/src/core/ext/transport/chttp2/transport/bin_encoder.h +1 -2
- data/src/core/ext/transport/chttp2/transport/call_tracer_wrapper.cc +53 -0
- data/src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h +72 -0
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +562 -516
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +15 -16
- data/src/core/ext/transport/chttp2/transport/context_list_entry.h +2 -3
- data/src/core/ext/transport/chttp2/transport/decode_huff.h +2 -2
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +6 -11
- data/src/core/ext/transport/chttp2/transport/flow_control.h +2 -7
- data/src/core/ext/transport/chttp2/transport/frame.cc +2 -5
- data/src/core/ext/transport/chttp2/transport/frame.h +2 -3
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +7 -13
- data/src/core/ext/transport/chttp2/transport/frame_data.h +4 -5
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +3 -6
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +1 -2
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +14 -19
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -2
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +17 -18
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +6 -5
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +20 -20
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +3 -4
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +10 -7
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +4 -3
- data/src/core/ext/transport/chttp2/transport/hpack_constants.h +2 -2
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +14 -16
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +16 -12
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc +2 -3
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +1 -2
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +2 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +4 -7
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +56 -51
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +6 -6
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +41 -16
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +29 -10
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +2 -3
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +2 -4
- data/src/core/ext/transport/chttp2/transport/internal.h +46 -79
- data/src/core/ext/transport/chttp2/transport/parsing.cc +101 -109
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +3 -3
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +3 -3
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.cc +2 -5
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.h +3 -7
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +33 -18
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.h +7 -8
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +13 -16
- data/src/core/ext/transport/chttp2/transport/stream_lists.h +65 -0
- data/src/core/ext/transport/chttp2/transport/varint.cc +2 -2
- data/src/core/ext/transport/chttp2/transport/varint.h +1 -3
- data/src/core/ext/transport/chttp2/transport/write_size_policy.cc +2 -3
- data/src/core/ext/transport/chttp2/transport/write_size_policy.h +2 -3
- data/src/core/ext/transport/chttp2/transport/writing.cc +145 -120
- data/src/core/ext/transport/inproc/inproc_transport.cc +149 -67
- data/src/core/ext/transport/inproc/inproc_transport.h +1 -3
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +120 -121
- data/src/core/ext/transport/inproc/legacy_inproc_transport.h +0 -2
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb.h +43 -12
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.c +36 -14
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +56 -24
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +33 -15
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb.h +47 -12
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.c +39 -17
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb.h +184 -51
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.c +143 -65
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.h +21 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb.h +8 -2
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb.h +16 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb.h +8 -7
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb.h +5 -4
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb.h +5 -4
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +126 -79
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +37 -25
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb.h +6 -5
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb.h +13 -3
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb.h +88 -31
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.c +103 -37
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.h +18 -1
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +541 -251
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +247 -131
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +26 -1
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +38 -11
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +28 -14
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +496 -138
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +247 -122
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +28 -1
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb.h +9 -4
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +168 -24
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +53 -26
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb.h +124 -32
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.c +111 -49
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.h +17 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +64 -24
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +55 -21
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.h +10 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb.h +8 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +752 -69
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +304 -59
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +36 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb.h +64 -22
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.c +52 -22
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb.h +8 -2
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb.h +198 -59
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.c +111 -44
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.h +16 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb.h +193 -59
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.c +90 -48
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +10 -2
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb.h +7 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +228 -73
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +139 -67
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +18 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb.h +7 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb.h +12 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +13 -7
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb.h +20 -8
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb.h +8 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb.h +39 -8
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.c +31 -13
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +103 -31
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +62 -30
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb.h +278 -34
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.c +78 -24
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +139 -44
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +85 -42
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +12 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb.h +88 -26
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.c +61 -31
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb.h +90 -10
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.c +23 -13
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb.h +11 -4
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb.h +11 -6
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +48 -19
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +52 -18
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.h +10 -1
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +65 -18
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +64 -22
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +12 -1
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb.h +156 -35
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.c +95 -47
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.h +13 -1
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb.h +58 -10
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.c +30 -16
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +705 -230
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +454 -217
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +60 -1
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb.h +17 -7
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.c +20 -6
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb.h +97 -32
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.c +86 -36
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.h +14 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb.h +115 -13
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.c +43 -12
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb.h +9 -4
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb.h +7 -4
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb.h +19 -12
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.c +11 -5
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +17 -5
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +12 -6
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb.h +14 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.c +3 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb.h +16 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.c +17 -7
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +11 -8
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +213 -99
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.c +115 -48
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.h +18 -1
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb.h +21 -8
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.c +31 -9
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +39 -19
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +25 -11
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h +444 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.c +135 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +53 -10
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.c +27 -11
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +26 -9
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +18 -8
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +10 -5
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +324 -131
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +189 -102
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +23 -1
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +20 -7
- 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 +14 -8
- 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 +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +28 -11
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +35 -13
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +3 -2
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +19 -8
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.c +13 -7
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb.h +106 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.c +3 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +167 -28
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +78 -32
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +22 -9
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.c +24 -10
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +109 -36
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.c +67 -37
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +11 -3
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h +55 -17
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.c +40 -22
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb.h +119 -37
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.c +95 -37
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.h +16 -1
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb.h +15 -5
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb.h +62 -21
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.c +42 -20
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb.h +7 -4
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb.h +13 -3
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.c +24 -6
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb.h +7 -6
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.c +23 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb.h +13 -5
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb.h +10 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb.h +6 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb.h +5 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb.h +13 -6
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.c +21 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +11 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb.h +48 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.c +28 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb.h +11 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb.h +27 -9
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.c +29 -11
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb.h +21 -7
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.c +38 -8
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.h +9 -1
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb.h +27 -14
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.c +31 -9
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.h +7 -1
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb.h +9 -4
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.c +18 -4
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.c +3 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb.h +3 -2
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb.h +5 -4
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.c +11 -1
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb.h +8 -7
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.c +15 -1
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb.h +11 -6
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.c +3 -1
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb.h +5 -4
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb.h +9 -4
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/api/annotations.upb.h +12 -2
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.c +4 -1
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb.h +132 -33
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.c +108 -43
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.h +15 -1
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb.h +522 -66
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.c +191 -57
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.h +20 -1
- data/src/core/ext/upb-gen/google/api/http.upb.h +26 -13
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.c +20 -6
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/google/api/httpbody.upb.h +9 -3
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/any.upb.h +4 -3
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb.h +579 -178
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c +292 -131
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.h +36 -1
- data/src/core/ext/upb-gen/google/protobuf/duration.upb.h +4 -3
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/empty.upb.h +2 -1
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/struct.upb.h +29 -7
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.c +28 -10
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb.h +4 -3
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb.h +11 -10
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.c +39 -1
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/google/rpc/status.upb.h +9 -3
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb.h +18 -11
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.c +23 -5
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb.h +16 -7
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb.h +95 -36
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.c +79 -29
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.h +14 -1
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb.h +10 -5
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.c +14 -4
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb.h +4 -3
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.c +11 -1
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb.h +44 -19
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.c +53 -15
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb.h +12 -5
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.c +17 -3
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb.h +69 -16
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.c +56 -18
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.h +11 -1
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb.h +56 -10
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.c +26 -7
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/udpa/annotations/security.upb.h +14 -4
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb.h +3 -2
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.c +4 -1
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/udpa/annotations/status.upb.h +14 -4
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb.h +13 -3
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/validate/validate.upb.h +259 -167
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.c +178 -80
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.h +25 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h +56 -10
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c +26 -7
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h +14 -4
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h +3 -2
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c +4 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h +2 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h +37 -9
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c +29 -8
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h +13 -3
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c +12 -5
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb.h +3 -2
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb.h +13 -6
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb.h +8 -1
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb.h +9 -4
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.c +10 -4
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb.h +18 -8
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb.h +8 -5
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb.h +26 -7
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.c +23 -5
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.h +6 -1
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb.h +5 -2
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb.h +10 -2
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb.h +2 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.c +7 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.h +3 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb.h +16 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.c +16 -6
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb.h +78 -19
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.c +75 -33
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.h +12 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb.h +41 -4
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.c +42 -16
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.h +8 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.c +13 -3
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb.h +15 -7
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.c +15 -5
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb.h +14 -5
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.c +17 -7
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.h +4 -1
- data/src/core/ext/upb-gen/xds/type/v3/range.upb.h +8 -7
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.c +15 -1
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.h +5 -1
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb.h +6 -3
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.c +9 -3
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.h +3 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +88 -82
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.c +63 -61
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +223 -211
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +319 -298
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +116 -106
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +187 -141
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +27 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.c +12 -12
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.c +175 -165
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.c +199 -188
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +231 -223
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +41 -37
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.c +124 -94
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +43 -40
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.c +22 -13
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.c +71 -66
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +613 -605
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.c +32 -21
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.c +20 -18
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.c +64 -60
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +23 -21
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +147 -143
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.c +87 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h +48 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +38 -34
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +292 -289
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.h +33 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +84 -76
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.c +41 -34
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.c +110 -108
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.c +103 -79
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.h +12 -1
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.c +283 -257
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.h +7 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c +2 -1
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h +2 -1
- data/src/core/filter/blackboard.cc +33 -0
- data/src/core/filter/blackboard.h +70 -0
- data/src/core/handshaker/endpoint_info/endpoint_info_handshaker.cc +13 -12
- data/src/core/handshaker/handshaker.cc +127 -159
- data/src/core/handshaker/handshaker.h +58 -52
- data/src/core/handshaker/handshaker_registry.cc +1 -2
- data/src/core/handshaker/handshaker_registry.h +2 -2
- data/src/core/handshaker/http_connect/http_connect_handshaker.cc +113 -159
- data/src/core/handshaker/http_connect/http_proxy_mapper.cc +30 -37
- data/src/core/handshaker/http_connect/http_proxy_mapper.h +2 -3
- data/src/core/handshaker/http_connect/xds_http_proxy_mapper.cc +57 -0
- data/src/core/handshaker/http_connect/xds_http_proxy_mapper.h +46 -0
- data/src/core/handshaker/proxy_mapper.h +2 -3
- data/src/core/handshaker/proxy_mapper_registry.cc +2 -2
- data/src/core/handshaker/proxy_mapper_registry.h +2 -3
- data/src/core/handshaker/security/secure_endpoint.cc +95 -82
- data/src/core/handshaker/security/secure_endpoint.h +6 -7
- data/src/core/handshaker/security/security_handshaker.cc +166 -220
- data/src/core/handshaker/security/security_handshaker.h +2 -3
- data/src/core/handshaker/tcp_connect/tcp_connect_handshaker.cc +47 -61
- data/src/core/lib/address_utils/parse_address.cc +30 -43
- data/src/core/lib/address_utils/parse_address.h +2 -4
- data/src/core/lib/address_utils/sockaddr_utils.cc +9 -12
- data/src/core/lib/address_utils/sockaddr_utils.h +1 -3
- data/src/core/lib/channel/call_finalization.h +2 -2
- data/src/core/lib/channel/channel_args.cc +17 -23
- data/src/core/lib/channel/channel_args.h +34 -20
- data/src/core/lib/channel/channel_args_preconditioning.cc +2 -2
- data/src/core/lib/channel/channel_args_preconditioning.h +3 -3
- data/src/core/lib/channel/channel_stack.cc +13 -76
- data/src/core/lib/channel/channel_stack.h +26 -61
- data/src/core/lib/channel/channel_stack_builder.cc +2 -2
- data/src/core/lib/channel/channel_stack_builder.h +3 -9
- data/src/core/lib/channel/channel_stack_builder_impl.cc +5 -150
- data/src/core/lib/channel/channel_stack_builder_impl.h +14 -4
- data/src/core/lib/channel/connected_channel.cc +46 -688
- data/src/core/lib/channel/promise_based_filter.cc +180 -250
- data/src/core/lib/channel/promise_based_filter.h +173 -509
- data/src/core/lib/channel/status_util.cc +2 -4
- data/src/core/lib/channel/status_util.h +3 -3
- data/src/core/lib/compression/compression.cc +7 -9
- data/src/core/lib/compression/compression_internal.cc +5 -8
- data/src/core/lib/compression/compression_internal.h +3 -5
- data/src/core/lib/compression/message_compress.cc +9 -12
- data/src/core/lib/config/config_vars.cc +15 -18
- data/src/core/lib/config/config_vars.h +10 -13
- data/src/core/lib/config/config_vars_non_generated.cc +2 -2
- data/src/core/lib/config/core_configuration.cc +2 -3
- data/src/core/lib/config/core_configuration.h +2 -4
- data/src/core/lib/config/load_config.cc +2 -4
- data/src/core/lib/config/load_config.h +1 -2
- data/src/core/lib/debug/trace.cc +47 -65
- data/src/core/lib/debug/trace.h +2 -97
- data/src/core/lib/debug/trace_flags.cc +242 -0
- data/src/core/lib/debug/trace_flags.h +131 -0
- data/src/core/lib/debug/trace_impl.h +125 -0
- data/src/core/lib/event_engine/ares_resolver.cc +151 -75
- data/src/core/lib/event_engine/ares_resolver.h +13 -20
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +13 -16
- data/src/core/lib/event_engine/cf_engine/cf_engine.h +1 -1
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +44 -31
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +4 -6
- data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +1 -1
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +19 -26
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +3 -5
- data/src/core/lib/event_engine/channel_args_endpoint_config.cc +3 -4
- data/src/core/lib/event_engine/channel_args_endpoint_config.h +2 -3
- data/src/core/lib/event_engine/common_closures.h +3 -3
- data/src/core/lib/event_engine/default_event_engine.cc +12 -14
- data/src/core/lib/event_engine/default_event_engine.h +3 -3
- data/src/core/lib/event_engine/default_event_engine_factory.cc +2 -2
- data/src/core/lib/event_engine/default_event_engine_factory.h +2 -2
- data/src/core/lib/event_engine/event_engine.cc +35 -4
- data/src/core/lib/event_engine/event_engine_context.h +4 -2
- data/src/core/lib/event_engine/extensions/can_track_errors.h +2 -2
- data/src/core/lib/event_engine/extensions/chaotic_good_extension.h +1 -2
- data/src/core/lib/event_engine/extensions/supports_fd.h +27 -3
- data/src/core/lib/event_engine/extensions/tcp_trace.h +42 -0
- data/src/core/lib/event_engine/forkable.cc +6 -8
- data/src/core/lib/event_engine/forkable.h +2 -14
- data/src/core/lib/event_engine/grpc_polled_fd.h +3 -4
- data/src/core/lib/event_engine/handle_containers.h +2 -3
- data/src/core/lib/event_engine/memory_allocator_factory.h +3 -4
- data/src/core/lib/event_engine/poller.h +2 -2
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +21 -23
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h +8 -9
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +13 -17
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +4 -5
- data/src/core/lib/event_engine/posix_engine/event_poller.h +3 -4
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc +3 -4
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.h +2 -2
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +4 -6
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.cc +4 -4
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.h +1 -2
- data/src/core/lib/event_engine/posix_engine/lockfree_event.cc +5 -7
- data/src/core/lib/event_engine/posix_engine/lockfree_event.h +2 -3
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc +3 -4
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h +2 -3
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +73 -79
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +11 -12
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +74 -55
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +18 -14
- data/src/core/lib/event_engine/posix_engine/posix_engine_closure.h +3 -3
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +23 -27
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.h +14 -13
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +22 -28
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h +1 -2
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +44 -38
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +10 -10
- data/src/core/lib/event_engine/posix_engine/timer.cc +5 -5
- data/src/core/lib/event_engine/posix_engine/timer.h +5 -7
- data/src/core/lib/event_engine/posix_engine/timer_heap.cc +1 -2
- data/src/core/lib/event_engine/posix_engine/timer_heap.h +2 -2
- data/src/core/lib/event_engine/posix_engine/timer_manager.cc +12 -21
- data/src/core/lib/event_engine/posix_engine/timer_manager.h +5 -7
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc +6 -8
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.h +3 -5
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc +5 -6
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.h +2 -3
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc +4 -5
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.h +2 -3
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix.h +2 -2
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.cc +2 -3
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_posix_default.h +2 -2
- data/src/core/lib/event_engine/query_extensions.h +2 -2
- data/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h +3 -5
- data/src/core/lib/event_engine/resolved_address.cc +5 -5
- data/src/core/lib/event_engine/shim.cc +1 -1
- data/src/core/lib/event_engine/slice.cc +3 -6
- data/src/core/lib/event_engine/slice_buffer.cc +1 -2
- data/src/core/lib/event_engine/tcp_socket_utils.cc +9 -12
- data/src/core/lib/event_engine/tcp_socket_utils.h +3 -3
- data/src/core/lib/event_engine/thread_local.h +1 -1
- data/src/core/lib/event_engine/thread_pool/thread_count.cc +5 -7
- data/src/core/lib/event_engine/thread_pool/thread_count.h +6 -7
- data/src/core/lib/event_engine/thread_pool/thread_pool.h +2 -4
- data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +2 -3
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +39 -46
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h +10 -15
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.cc +50 -23
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.h +9 -8
- data/src/core/lib/event_engine/time_util.cc +2 -2
- data/src/core/lib/event_engine/time_util.h +1 -2
- data/src/core/lib/event_engine/utils.cc +19 -5
- data/src/core/lib/event_engine/utils.h +10 -4
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc +125 -100
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h +4 -6
- data/src/core/lib/event_engine/windows/iocp.cc +14 -14
- data/src/core/lib/event_engine/windows/iocp.h +2 -3
- data/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc +4 -6
- data/src/core/lib/event_engine/windows/win_socket.cc +42 -33
- data/src/core/lib/event_engine/windows/win_socket.h +8 -10
- data/src/core/lib/event_engine/windows/windows_endpoint.cc +26 -27
- data/src/core/lib/event_engine/windows/windows_engine.cc +242 -134
- data/src/core/lib/event_engine/windows/windows_engine.h +143 -33
- data/src/core/lib/event_engine/windows/windows_listener.cc +22 -37
- data/src/core/lib/event_engine/windows/windows_listener.h +4 -5
- data/src/core/lib/event_engine/work_queue/basic_work_queue.cc +3 -3
- data/src/core/lib/event_engine/work_queue/basic_work_queue.h +3 -5
- data/src/core/lib/event_engine/work_queue/work_queue.h +2 -3
- data/src/core/lib/experiments/config.cc +54 -27
- data/src/core/lib/experiments/config.h +56 -3
- data/src/core/lib/experiments/experiments.cc +159 -293
- data/src/core/lib/experiments/experiments.h +84 -124
- data/src/core/lib/iomgr/buffer_list.cc +5 -5
- data/src/core/lib/iomgr/buffer_list.h +2 -3
- data/src/core/lib/iomgr/call_combiner.cc +39 -66
- data/src/core/lib/iomgr/call_combiner.h +12 -16
- data/src/core/lib/iomgr/cfstream_handle.cc +14 -20
- data/src/core/lib/iomgr/cfstream_handle.h +1 -1
- data/src/core/lib/iomgr/closure.cc +2 -2
- data/src/core/lib/iomgr/closure.h +12 -19
- data/src/core/lib/iomgr/combiner.cc +33 -48
- data/src/core/lib/iomgr/combiner.h +1 -4
- data/src/core/lib/iomgr/endpoint.cc +0 -6
- data/src/core/lib/iomgr/endpoint.h +3 -4
- data/src/core/lib/iomgr/endpoint_cfstream.cc +40 -73
- data/src/core/lib/iomgr/endpoint_pair_posix.cc +3 -6
- data/src/core/lib/iomgr/endpoint_pair_windows.cc +6 -8
- data/src/core/lib/iomgr/error.cc +22 -32
- data/src/core/lib/iomgr/error.h +7 -10
- data/src/core/lib/iomgr/error_cfstream.cc +1 -3
- data/src/core/lib/iomgr/ev_apple.cc +15 -23
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +67 -113
- data/src/core/lib/iomgr/ev_poll_posix.cc +53 -53
- data/src/core/lib/iomgr/ev_posix.cc +66 -57
- data/src/core/lib/iomgr/ev_posix.h +9 -12
- data/src/core/lib/iomgr/event_engine_shims/closure.cc +10 -13
- data/src/core/lib/iomgr/event_engine_shims/closure.h +1 -2
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +33 -51
- data/src/core/lib/iomgr/event_engine_shims/endpoint.h +2 -2
- data/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +9 -13
- data/src/core/lib/iomgr/exec_ctx.cc +10 -14
- data/src/core/lib/iomgr/exec_ctx.h +33 -25
- data/src/core/lib/iomgr/executor.cc +55 -53
- data/src/core/lib/iomgr/executor.h +2 -2
- data/src/core/lib/iomgr/fork_posix.cc +11 -15
- data/src/core/lib/iomgr/fork_windows.cc +3 -2
- data/src/core/lib/iomgr/internal_errqueue.cc +4 -4
- data/src/core/lib/iomgr/iocp_windows.cc +8 -10
- data/src/core/lib/iomgr/iomgr.cc +17 -23
- data/src/core/lib/iomgr/iomgr.h +1 -2
- data/src/core/lib/iomgr/iomgr_internal.cc +1 -2
- data/src/core/lib/iomgr/iomgr_internal.h +1 -2
- data/src/core/lib/iomgr/iomgr_windows.cc +1 -4
- data/src/core/lib/iomgr/lockfree_event.cc +10 -20
- data/src/core/lib/iomgr/polling_entity.cc +13 -7
- data/src/core/lib/iomgr/pollset.h +0 -2
- data/src/core/lib/iomgr/pollset_set_windows.cc +1 -2
- data/src/core/lib/iomgr/pollset_windows.cc +2 -6
- data/src/core/lib/iomgr/port.h +2 -2
- data/src/core/lib/iomgr/resolve_address.cc +3 -5
- data/src/core/lib/iomgr/resolve_address.h +4 -6
- data/src/core/lib/iomgr/resolve_address_impl.h +1 -2
- data/src/core/lib/iomgr/resolve_address_posix.cc +12 -21
- data/src/core/lib/iomgr/resolve_address_posix.h +2 -2
- data/src/core/lib/iomgr/resolve_address_windows.cc +9 -12
- data/src/core/lib/iomgr/resolve_address_windows.h +2 -2
- data/src/core/lib/iomgr/resolved_address.h +1 -2
- data/src/core/lib/iomgr/sockaddr_utils_posix.cc +3 -6
- data/src/core/lib/iomgr/socket_factory_posix.cc +1 -1
- data/src/core/lib/iomgr/socket_mutator.cc +2 -3
- data/src/core/lib/iomgr/socket_mutator.h +1 -2
- data/src/core/lib/iomgr/socket_utils.h +1 -2
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +43 -52
- data/src/core/lib/iomgr/socket_utils_linux.cc +1 -3
- data/src/core/lib/iomgr/socket_utils_posix.cc +4 -7
- data/src/core/lib/iomgr/socket_utils_windows.cc +1 -3
- data/src/core/lib/iomgr/socket_windows.cc +7 -11
- data/src/core/lib/iomgr/socket_windows.h +1 -2
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +12 -20
- data/src/core/lib/iomgr/tcp_client_posix.cc +17 -30
- data/src/core/lib/iomgr/tcp_client_windows.cc +5 -10
- data/src/core/lib/iomgr/tcp_posix.cc +85 -155
- data/src/core/lib/iomgr/tcp_posix.h +0 -2
- data/src/core/lib/iomgr/tcp_server.h +2 -2
- data/src/core/lib/iomgr/tcp_server_posix.cc +40 -58
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +2 -3
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +7 -11
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +9 -11
- data/src/core/lib/iomgr/tcp_server_windows.cc +17 -25
- data/src/core/lib/iomgr/tcp_windows.cc +32 -62
- data/src/core/lib/iomgr/timer.h +2 -2
- data/src/core/lib/iomgr/timer_generic.cc +71 -104
- data/src/core/lib/iomgr/timer_heap.cc +2 -3
- data/src/core/lib/iomgr/timer_manager.cc +25 -43
- data/src/core/lib/iomgr/timer_manager.h +1 -2
- data/src/core/lib/iomgr/unix_sockets_posix.cc +4 -6
- data/src/core/lib/iomgr/unix_sockets_posix.h +3 -4
- data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +0 -4
- data/src/core/lib/iomgr/vsock.cc +3 -6
- data/src/core/lib/iomgr/vsock.h +3 -4
- data/src/core/lib/iomgr/wakeup_fd_eventfd.cc +2 -4
- data/src/core/lib/iomgr/wakeup_fd_pipe.cc +5 -6
- data/src/core/lib/promise/activity.cc +2 -4
- data/src/core/lib/promise/activity.h +48 -17
- data/src/core/lib/promise/all_ok.h +17 -11
- data/src/core/lib/promise/arena_promise.h +2 -4
- data/src/core/lib/promise/cancel_callback.h +34 -6
- data/src/core/lib/promise/context.h +19 -10
- data/src/core/lib/promise/detail/basic_seq.h +2 -3
- data/src/core/lib/promise/detail/join_state.h +556 -762
- data/src/core/lib/promise/detail/promise_factory.h +46 -30
- data/src/core/lib/promise/detail/promise_like.h +29 -14
- data/src/core/lib/promise/detail/seq_state.h +1314 -1977
- data/src/core/lib/promise/detail/status.h +36 -15
- data/src/core/lib/promise/exec_ctx_wakeup_scheduler.h +2 -3
- data/src/core/lib/promise/for_each.h +34 -37
- data/src/core/lib/promise/if.h +23 -19
- data/src/core/lib/promise/interceptor_list.h +21 -35
- data/src/core/lib/promise/latch.h +19 -34
- data/src/core/lib/promise/loop.h +16 -12
- data/src/core/lib/promise/map.h +26 -9
- data/src/core/lib/promise/observable.h +181 -0
- data/src/core/lib/promise/party.cc +297 -147
- data/src/core/lib/promise/party.h +139 -361
- data/src/core/lib/promise/pipe.h +21 -44
- data/src/core/lib/promise/poll.h +102 -38
- data/src/core/lib/promise/prioritized_race.h +2 -2
- data/src/core/lib/promise/promise.h +14 -8
- data/src/core/lib/promise/race.h +12 -7
- data/src/core/lib/promise/seq.h +55 -39
- data/src/core/lib/promise/sleep.cc +3 -3
- data/src/core/lib/promise/sleep.h +4 -5
- data/src/core/lib/promise/status_flag.h +148 -49
- data/src/core/lib/promise/try_join.h +37 -21
- data/src/core/lib/promise/try_seq.h +86 -49
- data/src/core/lib/resource_quota/api.cc +4 -6
- data/src/core/lib/resource_quota/api.h +1 -2
- data/src/core/lib/resource_quota/arena.cc +64 -86
- data/src/core/lib/resource_quota/arena.h +143 -215
- data/src/core/lib/resource_quota/connection_quota.cc +2 -3
- data/src/core/lib/resource_quota/connection_quota.h +5 -6
- data/src/core/lib/resource_quota/memory_quota.cc +28 -40
- data/src/core/lib/resource_quota/memory_quota.h +20 -18
- data/src/core/lib/resource_quota/periodic_update.cc +4 -4
- data/src/core/lib/resource_quota/periodic_update.h +2 -4
- data/src/core/lib/resource_quota/resource_quota.h +8 -9
- data/src/core/lib/resource_quota/thread_quota.cc +2 -3
- data/src/core/lib/resource_quota/thread_quota.h +5 -6
- data/src/core/lib/security/authorization/audit_logging.cc +5 -7
- data/src/core/lib/security/authorization/audit_logging.h +5 -6
- data/src/core/lib/security/authorization/authorization_engine.h +3 -3
- data/src/core/lib/security/authorization/authorization_policy_provider.h +4 -5
- data/src/core/lib/security/authorization/authorization_policy_provider_vtable.cc +2 -2
- data/src/core/lib/security/authorization/evaluate_args.cc +10 -14
- data/src/core/lib/security/authorization/evaluate_args.h +3 -4
- data/src/core/lib/security/authorization/grpc_authorization_engine.cc +2 -4
- data/src/core/lib/security/authorization/grpc_authorization_engine.h +2 -3
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +22 -30
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +5 -3
- data/src/core/lib/security/authorization/matchers.cc +5 -7
- data/src/core/lib/security/authorization/matchers.h +2 -4
- data/src/core/lib/security/authorization/rbac_policy.cc +2 -2
- data/src/core/lib/security/authorization/rbac_policy.h +3 -5
- data/src/core/lib/security/authorization/stdout_logger.cc +4 -5
- data/src/core/lib/security/authorization/stdout_logger.h +4 -4
- data/src/core/lib/security/certificate_provider/certificate_provider_factory.h +8 -9
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.cc +4 -5
- data/src/core/lib/security/certificate_provider/certificate_provider_registry.h +2 -3
- data/src/core/lib/security/context/security_context.cc +48 -48
- data/src/core/lib/security/context/security_context.h +39 -18
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +5 -5
- data/src/core/lib/security/credentials/alts/alts_credentials.h +9 -5
- data/src/core/lib/security/credentials/alts/check_gcp_environment.cc +4 -4
- data/src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc +1 -2
- data/src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc +3 -5
- data/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc +3 -5
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc +4 -5
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc +3 -3
- data/src/core/lib/security/credentials/call_creds_util.cc +8 -7
- data/src/core/lib/security/credentials/call_creds_util.h +2 -2
- data/src/core/lib/security/credentials/channel_creds_registry.h +7 -8
- data/src/core/lib/security/credentials/channel_creds_registry_init.cc +14 -13
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +10 -14
- data/src/core/lib/security/credentials/composite/composite_credentials.h +11 -10
- data/src/core/lib/security/credentials/credentials.cc +18 -19
- data/src/core/lib/security/credentials/credentials.h +12 -14
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +335 -339
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +60 -48
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +4 -5
- data/src/core/lib/security/credentials/external/aws_request_signer.h +3 -3
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +408 -374
- data/src/core/lib/security/credentials/external/external_account_credentials.h +128 -60
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +90 -52
- data/src/core/lib/security/credentials/external/file_external_account_credentials.h +32 -11
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +102 -129
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +22 -24
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +2 -4
- data/src/core/lib/security/credentials/fake/fake_credentials.h +8 -7
- data/src/core/lib/security/credentials/gcp_service_account_identity/gcp_service_account_identity_credentials.cc +195 -0
- data/src/core/lib/security/credentials/gcp_service_account_identity/gcp_service_account_identity_credentials.h +90 -0
- data/src/core/lib/security/credentials/google_default/credentials_generic.cc +6 -7
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +55 -73
- data/src/core/lib/security/credentials/google_default/google_default_credentials.h +8 -6
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +5 -10
- data/src/core/lib/security/credentials/iam/iam_credentials.h +8 -7
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +2 -2
- data/src/core/lib/security/credentials/insecure/insecure_credentials.h +2 -2
- data/src/core/lib/security/credentials/jwt/json_token.cc +25 -29
- data/src/core/lib/security/credentials/jwt/json_token.h +2 -3
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +22 -29
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +10 -10
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +67 -74
- data/src/core/lib/security/credentials/jwt/jwt_verifier.h +3 -4
- data/src/core/lib/security/credentials/local/local_credentials.cc +2 -2
- data/src/core/lib/security/credentials/local/local_credentials.h +3 -3
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +195 -296
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +50 -73
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +20 -33
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +12 -14
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +35 -47
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +5 -8
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +3 -4
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.h +4 -5
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_match.cc +1 -3
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +102 -42
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +14 -13
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.cc +6 -10
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +9 -11
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +10 -13
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +1 -1
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.cc +6 -10
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.h +8 -10
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +20 -23
- data/src/core/lib/security/credentials/tls/tls_credentials.h +5 -3
- data/src/core/lib/security/credentials/tls/tls_utils.cc +5 -6
- data/src/core/lib/security/credentials/tls/tls_utils.h +3 -3
- data/src/core/lib/security/credentials/token_fetcher/token_fetcher_credentials.cc +298 -0
- data/src/core/lib/security/credentials/token_fetcher/token_fetcher_credentials.h +175 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +15 -13
- data/src/core/lib/security/credentials/xds/xds_credentials.h +7 -9
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +22 -27
- data/src/core/lib/security/security_connector/alts/alts_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +24 -24
- data/src/core/lib/security/security_connector/fake/fake_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.cc +4 -7
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.h +5 -6
- data/src/core/lib/security/security_connector/load_system_roots_supported.cc +9 -11
- data/src/core/lib/security/security_connector/load_system_roots_windows.cc +4 -6
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +25 -25
- data/src/core/lib/security/security_connector/local/local_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/security_connector.cc +6 -11
- data/src/core/lib/security/security_connector/security_connector.h +8 -11
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +23 -27
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +2 -3
- data/src/core/lib/security/security_connector/ssl_utils.cc +33 -34
- data/src/core/lib/security/security_connector/ssl_utils.h +6 -8
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +37 -50
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +7 -8
- data/src/core/lib/security/transport/auth_filters.h +7 -3
- data/src/core/lib/security/transport/client_auth_filter.cc +16 -25
- data/src/core/lib/security/transport/server_auth_filter.cc +20 -31
- data/src/core/lib/security/util/json_util.cc +4 -5
- data/src/core/lib/security/util/json_util.h +1 -1
- data/src/core/lib/slice/percent_encoding.cc +2 -5
- data/src/core/lib/slice/slice.cc +4 -7
- data/src/core/lib/slice/slice.h +6 -9
- data/src/core/lib/slice/slice_buffer.cc +4 -7
- data/src/core/lib/slice/slice_buffer.h +3 -4
- data/src/core/lib/slice/slice_internal.h +3 -6
- data/src/core/lib/slice/slice_refcount.h +8 -15
- data/src/core/lib/slice/slice_string_helpers.cc +1 -1
- data/src/core/lib/slice/slice_string_helpers.h +1 -2
- data/src/core/lib/surface/byte_buffer.cc +1 -2
- data/src/core/lib/surface/byte_buffer_reader.cc +3 -6
- data/src/core/lib/surface/call.cc +161 -3826
- data/src/core/lib/surface/call.h +63 -157
- data/src/core/lib/surface/call_details.cc +4 -3
- data/src/core/lib/surface/call_log_batch.cc +8 -11
- data/src/core/lib/surface/call_test_only.h +1 -2
- data/src/core/lib/surface/call_utils.cc +231 -0
- data/src/core/lib/surface/call_utils.h +482 -0
- data/src/core/lib/surface/channel.cc +41 -40
- data/src/core/lib/surface/channel.h +21 -19
- data/src/core/lib/surface/channel_create.cc +27 -12
- data/src/core/lib/surface/channel_create.h +5 -5
- data/src/core/lib/surface/channel_init.cc +269 -266
- data/src/core/lib/surface/channel_init.h +172 -118
- data/src/core/lib/surface/client_call.cc +427 -0
- data/src/core/lib/surface/client_call.h +179 -0
- data/src/core/lib/surface/completion_queue.cc +110 -106
- data/src/core/lib/surface/completion_queue.h +3 -12
- data/src/core/lib/surface/completion_queue_factory.cc +1 -3
- data/src/core/lib/surface/event_string.cc +2 -2
- data/src/core/lib/surface/event_string.h +2 -2
- data/src/core/lib/surface/filter_stack_call.cc +1156 -0
- data/src/core/lib/surface/filter_stack_call.h +366 -0
- data/src/core/lib/surface/init.cc +55 -18
- data/src/core/lib/surface/init.h +5 -0
- data/src/core/lib/surface/lame_client.cc +11 -14
- data/src/core/lib/surface/lame_client.h +6 -5
- data/src/core/lib/surface/legacy_channel.cc +60 -46
- data/src/core/lib/surface/legacy_channel.h +15 -25
- data/src/core/lib/surface/metadata_array.cc +5 -5
- data/src/core/lib/surface/server_call.cc +221 -0
- data/src/core/lib/surface/server_call.h +168 -0
- data/src/core/lib/surface/validate_metadata.cc +3 -4
- data/src/core/lib/surface/validate_metadata.h +2 -5
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/bdp_estimator.cc +11 -19
- data/src/core/lib/transport/bdp_estimator.h +10 -16
- data/src/core/lib/transport/call_arena_allocator.cc +4 -18
- data/src/core/lib/transport/call_arena_allocator.h +30 -12
- data/src/core/lib/transport/call_destination.h +76 -0
- data/src/core/lib/transport/call_filters.cc +61 -405
- data/src/core/lib/transport/call_filters.h +802 -752
- data/src/core/lib/transport/call_final_info.cc +2 -2
- data/src/core/lib/transport/call_final_info.h +2 -2
- data/src/core/lib/transport/call_spine.cc +98 -73
- data/src/core/lib/transport/call_spine.h +183 -380
- data/src/core/lib/transport/call_state.cc +39 -0
- data/src/core/lib/transport/call_state.h +1061 -0
- data/src/core/lib/transport/connectivity_state.cc +37 -45
- data/src/core/lib/transport/connectivity_state.h +5 -8
- data/src/core/lib/transport/error_utils.cc +3 -4
- data/src/core/lib/transport/error_utils.h +4 -5
- data/src/core/lib/transport/interception_chain.cc +147 -0
- data/src/core/lib/transport/interception_chain.h +253 -0
- data/src/core/lib/transport/message.cc +2 -2
- data/src/core/lib/transport/message.h +5 -0
- data/src/core/lib/transport/metadata.cc +27 -3
- data/src/core/lib/transport/metadata.h +37 -2
- data/src/core/lib/transport/metadata_batch.cc +1 -3
- data/src/core/lib/transport/metadata_batch.h +64 -12
- data/src/core/lib/transport/metadata_compression_traits.h +1 -2
- data/src/core/lib/transport/metadata_info.h +1 -1
- data/src/core/lib/transport/parsed_metadata.h +3 -5
- data/src/core/lib/transport/simple_slice_based_metadata.h +1 -2
- data/src/core/lib/transport/status_conversion.h +1 -1
- data/src/core/lib/transport/timeout_encoding.cc +3 -4
- data/src/core/lib/transport/timeout_encoding.h +2 -4
- data/src/core/lib/transport/transport.cc +7 -12
- data/src/core/lib/transport/transport.h +59 -56
- data/src/core/lib/transport/transport_op_string.cc +4 -6
- data/src/core/load_balancing/address_filtering.cc +2 -4
- data/src/core/load_balancing/address_filtering.h +4 -5
- data/src/core/load_balancing/backend_metric_data.h +2 -2
- data/src/core/load_balancing/backend_metric_parser.cc +1 -2
- data/src/core/load_balancing/backend_metric_parser.h +1 -3
- data/src/core/load_balancing/child_policy_handler.cc +36 -40
- data/src/core/load_balancing/child_policy_handler.h +4 -5
- data/src/core/load_balancing/delegating_helper.h +6 -7
- data/src/core/load_balancing/endpoint_list.cc +11 -13
- data/src/core/load_balancing/endpoint_list.h +7 -9
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.cc +12 -6
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.h +5 -2
- data/src/core/load_balancing/grpclb/grpclb.cc +153 -187
- data/src/core/load_balancing/grpclb/grpclb_balancer_addresses.cc +2 -3
- data/src/core/load_balancing/grpclb/grpclb_client_stats.cc +2 -3
- data/src/core/load_balancing/grpclb/grpclb_client_stats.h +5 -7
- data/src/core/load_balancing/grpclb/load_balancer_api.cc +7 -10
- data/src/core/load_balancing/grpclb/load_balancer_api.h +4 -6
- data/src/core/load_balancing/health_check_client.cc +60 -80
- data/src/core/load_balancing/health_check_client.h +3 -3
- data/src/core/load_balancing/health_check_client_internal.h +8 -9
- data/src/core/load_balancing/lb_policy.cc +5 -8
- data/src/core/load_balancing/lb_policy.h +72 -38
- data/src/core/load_balancing/lb_policy_factory.h +5 -6
- data/src/core/load_balancing/lb_policy_registry.cc +5 -7
- data/src/core/load_balancing/lb_policy_registry.h +5 -6
- data/src/core/load_balancing/oob_backend_metric.cc +19 -25
- data/src/core/load_balancing/oob_backend_metric.h +3 -3
- data/src/core/load_balancing/oob_backend_metric_internal.h +8 -9
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +139 -184
- data/src/core/load_balancing/outlier_detection/outlier_detection.h +6 -8
- data/src/core/load_balancing/pick_first/pick_first.cc +219 -303
- data/src/core/load_balancing/priority/priority.cc +93 -137
- data/src/core/load_balancing/ring_hash/ring_hash.cc +52 -76
- data/src/core/load_balancing/ring_hash/ring_hash.h +6 -7
- data/src/core/load_balancing/rls/rls.cc +340 -345
- data/src/core/load_balancing/round_robin/round_robin.cc +56 -83
- data/src/core/load_balancing/subchannel_interface.h +17 -6
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.cc +2 -3
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h +1 -2
- data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +138 -155
- data/src/core/load_balancing/weighted_target/weighted_target.cc +71 -107
- data/src/core/load_balancing/xds/cds.cc +53 -69
- data/src/core/load_balancing/xds/xds_cluster_impl.cc +178 -155
- data/src/core/load_balancing/xds/xds_cluster_manager.cc +52 -84
- data/src/core/load_balancing/xds/xds_override_host.cc +117 -179
- data/src/core/load_balancing/xds/xds_override_host.h +6 -7
- data/src/core/load_balancing/xds/xds_wrr_locality.cc +38 -48
- data/src/core/plugin_registry/grpc_plugin_registry.cc +5 -7
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +5 -0
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.cc +85 -60
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.h +1 -2
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h +4 -6
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +2 -6
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +118 -100
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc +166 -151
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h +4 -18
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +1 -1
- data/src/core/resolver/dns/dns_resolver_plugin.cc +9 -10
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +52 -59
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h +3 -4
- data/src/core/resolver/dns/event_engine/service_config_helper.cc +8 -10
- data/src/core/resolver/dns/event_engine/service_config_helper.h +2 -2
- data/src/core/resolver/dns/native/dns_resolver.cc +21 -30
- data/src/core/resolver/endpoint_addresses.cc +2 -5
- data/src/core/resolver/endpoint_addresses.h +5 -3
- data/src/core/resolver/fake/fake_resolver.cc +7 -9
- data/src/core/resolver/fake/fake_resolver.h +8 -9
- data/src/core/resolver/google_c2p/google_c2p_resolver.cc +23 -25
- data/src/core/resolver/polling_resolver.cc +39 -55
- data/src/core/resolver/polling_resolver.h +8 -9
- data/src/core/resolver/resolver.cc +2 -6
- data/src/core/resolver/resolver.h +4 -10
- data/src/core/resolver/resolver_factory.h +4 -5
- data/src/core/resolver/resolver_registry.cc +8 -10
- data/src/core/resolver/resolver_registry.h +4 -5
- data/src/core/resolver/sockaddr/sockaddr_resolver.cc +7 -8
- data/src/core/resolver/xds/xds_config.cc +95 -0
- data/src/core/resolver/xds/xds_config.h +108 -0
- data/src/core/resolver/xds/xds_dependency_manager.cc +82 -171
- data/src/core/resolver/xds/xds_dependency_manager.h +6 -71
- data/src/core/resolver/xds/xds_resolver.cc +123 -104
- data/src/core/resolver/xds/xds_resolver_attributes.h +7 -4
- data/src/core/server/server.cc +382 -484
- data/src/core/server/server.h +48 -32
- data/src/core/server/server_call_tracer_filter.cc +20 -19
- data/src/core/server/server_config_selector.h +6 -7
- data/src/core/server/server_config_selector_filter.cc +17 -12
- data/src/core/server/server_interface.h +2 -0
- data/src/core/server/xds_channel_stack_modifier.cc +4 -4
- data/src/core/server/xds_channel_stack_modifier.h +6 -7
- data/src/core/server/xds_server_config_fetcher.cc +63 -73
- data/src/core/service_config/service_config.h +4 -6
- data/src/core/service_config/service_config_call_data.h +21 -20
- data/src/core/service_config/service_config_channel_arg_filter.cc +16 -12
- data/src/core/service_config/service_config_impl.cc +8 -10
- data/src/core/service_config/service_config_impl.h +5 -8
- data/src/core/service_config/service_config_parser.cc +4 -8
- data/src/core/service_config/service_config_parser.h +3 -5
- data/src/core/{lib/channel → telemetry}/call_tracer.cc +56 -34
- data/src/core/{lib/channel → telemetry}/call_tracer.h +51 -14
- data/src/core/{lib/debug → telemetry}/histogram_view.cc +1 -1
- data/src/core/{lib/debug → telemetry}/histogram_view.h +4 -5
- data/src/core/telemetry/metrics.cc +177 -0
- data/src/core/telemetry/metrics.h +565 -0
- data/src/core/{lib/debug → telemetry}/stats.cc +2 -3
- data/src/core/{lib/debug → telemetry}/stats.h +7 -9
- data/src/core/{lib/debug → telemetry}/stats_data.cc +88 -3
- data/src/core/{lib/debug → telemetry}/stats_data.h +73 -8
- data/src/core/{lib/channel → telemetry}/tcp_tracer.h +4 -5
- data/src/core/tsi/alts/crypt/aes_gcm.cc +5 -8
- data/src/core/tsi/alts/crypt/gsec.cc +2 -3
- data/src/core/tsi/alts/crypt/gsec.h +3 -4
- data/src/core/tsi/alts/frame_protector/alts_counter.cc +1 -2
- data/src/core/tsi/alts/frame_protector/alts_counter.h +2 -3
- data/src/core/tsi/alts/frame_protector/alts_crypter.cc +1 -2
- data/src/core/tsi/alts/frame_protector/alts_crypter.h +2 -3
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +16 -18
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.h +1 -2
- data/src/core/tsi/alts/frame_protector/frame_handler.cc +11 -12
- data/src/core/tsi/alts/frame_protector/frame_handler.h +1 -2
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +41 -46
- data/src/core/tsi/alts/handshaker/alts_shared_resource.cc +2 -4
- data/src/core/tsi/alts/handshaker/alts_shared_resource.h +1 -1
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +55 -57
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +3 -3
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +17 -24
- data/src/core/tsi/alts/handshaker/transport_security_common_api.h +1 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc +14 -17
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h +1 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc +11 -12
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h +1 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +9 -11
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc +3 -5
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h +1 -2
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +9 -13
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +1 -2
- data/src/core/tsi/fake_transport_security.cc +27 -32
- data/src/core/tsi/local_transport_security.cc +9 -10
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +9 -12
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.h +8 -10
- data/src/core/tsi/ssl/session_cache/ssl_session.h +4 -5
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +7 -9
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +7 -8
- data/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc +2 -4
- data/src/core/tsi/ssl_transport_security.cc +126 -111
- data/src/core/tsi/ssl_transport_security.h +4 -6
- data/src/core/tsi/ssl_transport_security_utils.cc +77 -24
- data/src/core/tsi/ssl_transport_security_utils.h +13 -4
- data/src/core/tsi/ssl_types.h +1 -2
- data/src/core/tsi/transport_security.cc +2 -7
- data/src/core/tsi/transport_security.h +1 -4
- data/src/core/tsi/transport_security_interface.h +1 -6
- data/src/core/{lib/gpr → util}/alloc.cc +2 -6
- data/src/core/{lib/gpr → util}/alloc.h +3 -3
- data/src/core/{lib/gpr → util}/atm.cc +2 -3
- data/src/core/{lib/gprpp → util}/atomic_utils.h +5 -5
- data/src/core/{lib/avl → util}/avl.h +7 -8
- data/src/core/{lib/backoff → util}/backoff.cc +10 -11
- data/src/core/{lib/backoff → util}/backoff.h +8 -11
- data/src/core/{lib/gprpp → util}/bitset.h +6 -7
- data/src/core/{lib/gprpp → util}/chunked_vector.h +6 -8
- data/src/core/{lib/gprpp → util}/construct_destruct.h +8 -7
- data/src/core/{lib/gprpp → util}/cpp_impl_of.h +3 -3
- data/src/core/{lib/gprpp → util}/crash.cc +4 -6
- data/src/core/{lib/gprpp → util}/crash.h +5 -6
- data/src/core/{lib/gprpp → util}/debug_location.h +11 -4
- data/src/core/{lib/gprpp → util}/directory_reader.h +5 -5
- data/src/core/{lib/gprpp → util}/down_cast.h +7 -8
- data/src/core/{lib/gprpp → util}/dual_ref_counted.h +54 -43
- data/src/core/util/dump_args.cc +54 -0
- data/src/core/util/dump_args.h +122 -0
- data/src/core/{lib/gprpp → util}/env.h +5 -5
- data/src/core/{lib/debug → util}/event_log.cc +3 -4
- data/src/core/{lib/debug → util}/event_log.h +7 -9
- data/src/core/{lib/gprpp → util}/examine_stack.cc +1 -1
- data/src/core/{lib/gprpp → util}/examine_stack.h +5 -5
- data/src/core/{lib/gprpp → util}/fork.cc +4 -4
- data/src/core/{lib/gprpp → util}/fork.h +5 -5
- data/src/core/{ext/gcp/metadata_query.cc → util/gcp_metadata_query.cc} +31 -36
- data/src/core/{ext/gcp/metadata_query.h → util/gcp_metadata_query.h} +13 -14
- data/src/core/{lib/iomgr → util}/gethostname.h +3 -3
- data/src/core/{lib/iomgr → util}/gethostname_fallback.cc +1 -1
- data/src/core/{lib/iomgr → util}/gethostname_host_name_max.cc +2 -3
- data/src/core/{lib/iomgr → util}/gethostname_sysconf.cc +2 -3
- data/src/core/util/glob.cc +70 -0
- data/src/core/util/glob.h +29 -0
- data/src/core/{lib/gpr/time.cc → util/gpr_time.cc} +3 -6
- data/src/core/{lib/iomgr → util}/grpc_if_nametoindex.h +4 -5
- data/src/core/{lib/iomgr → util}/grpc_if_nametoindex_posix.cc +4 -6
- data/src/core/{lib/iomgr → util}/grpc_if_nametoindex_unsupported.cc +5 -8
- data/src/core/{lib/gprpp → util}/host_port.cc +2 -4
- data/src/core/{lib/gprpp → util}/host_port.h +5 -5
- data/src/core/{lib/http → util/http_client}/format_request.cc +4 -6
- data/src/core/{lib/http → util/http_client}/format_request.h +4 -4
- data/src/core/{lib/http → util/http_client}/httpcli.cc +43 -62
- data/src/core/{lib/http → util/http_client}/httpcli.h +32 -30
- data/src/core/{lib/http → util/http_client}/httpcli_security_connector.cc +17 -20
- data/src/core/{lib/http → util/http_client}/httpcli_ssl_credentials.h +4 -4
- data/src/core/{lib/http → util/http_client}/parser.cc +7 -11
- data/src/core/{lib/http → util/http_client}/parser.h +5 -8
- data/src/core/{lib/gprpp → util}/if_list.h +3 -3
- data/src/core/{lib/gpr → util}/iphone/cpu.cc +1 -2
- data/src/core/{lib → util}/json/json.h +3 -3
- data/src/core/{lib → util}/json/json_args.h +5 -5
- data/src/core/{lib → util}/json/json_channel_args.h +6 -7
- data/src/core/{lib → util}/json/json_object_loader.cc +4 -4
- data/src/core/{lib → util}/json/json_object_loader.h +11 -12
- data/src/core/{lib → util}/json/json_reader.cc +4 -7
- data/src/core/{lib → util}/json/json_reader.h +6 -7
- data/src/core/{lib → util}/json/json_util.cc +5 -5
- data/src/core/{lib → util}/json/json_util.h +7 -8
- data/src/core/{lib → util}/json/json_writer.cc +2 -4
- data/src/core/{lib → util}/json/json_writer.h +6 -6
- data/src/core/util/latent_see.cc +142 -0
- data/src/core/util/latent_see.h +327 -0
- data/src/core/{lib/gpr → util}/linux/cpu.cc +11 -12
- data/src/core/{lib/gprpp → util}/linux/env.cc +3 -3
- data/src/core/{lib/gprpp → util}/load_file.cc +4 -6
- data/src/core/{lib/gprpp → util}/load_file.h +5 -6
- data/src/core/util/log.cc +127 -0
- data/src/core/util/lru_cache.h +122 -0
- data/src/core/{lib/gprpp → util}/manual_constructor.h +5 -6
- data/src/core/{lib/gprpp → util}/match.h +6 -7
- data/src/core/{lib/matchers → util}/matchers.cc +10 -3
- data/src/core/{lib/matchers → util}/matchers.h +9 -5
- data/src/core/{lib/gprpp → util}/memory.h +6 -6
- data/src/core/{lib/gprpp → util}/mpscq.cc +1 -1
- data/src/core/{lib/gprpp → util}/mpscq.h +6 -8
- data/src/core/{lib/gpr → util}/msys/tmpfile.cc +5 -7
- data/src/core/{lib/gprpp → util}/no_destruct.h +6 -6
- data/src/core/{lib/gprpp → util}/notification.h +6 -7
- data/src/core/{lib/gprpp → util}/orphanable.h +9 -9
- data/src/core/{lib/gprpp → util}/overload.h +5 -5
- data/src/core/{lib/gprpp → util}/packed_table.h +5 -5
- data/src/core/{lib/gprpp → util}/per_cpu.cc +2 -2
- data/src/core/{lib/gprpp → util}/per_cpu.h +5 -6
- data/src/core/{lib/gpr → util}/posix/cpu.cc +6 -7
- data/src/core/{lib/gprpp → util}/posix/directory_reader.cc +4 -4
- data/src/core/{lib/gprpp → util}/posix/env.cc +1 -1
- data/src/core/{lib/gprpp → util}/posix/stat.cc +7 -9
- data/src/core/{lib/gpr → util}/posix/string.cc +2 -3
- data/src/core/{lib/gpr → util}/posix/sync.cc +3 -6
- data/src/core/{lib/gprpp → util}/posix/thd.cc +16 -20
- data/src/core/{lib/gpr → util}/posix/time.cc +5 -7
- data/src/core/{lib/gpr → util}/posix/tmpfile.cc +11 -13
- data/src/core/{lib/backoff → util}/random_early_detection.cc +3 -3
- data/src/core/{lib/backoff → util}/random_early_detection.h +4 -5
- data/src/core/{lib/gprpp → util}/ref_counted.h +39 -32
- data/src/core/{lib/gprpp → util}/ref_counted_ptr.h +6 -8
- data/src/core/{lib/gprpp → util}/ref_counted_string.cc +3 -4
- data/src/core/{lib/gprpp → util}/ref_counted_string.h +6 -8
- data/src/core/util/ring_buffer.h +123 -0
- data/src/core/{lib/gprpp → util}/single_set_ptr.h +10 -9
- data/src/core/{lib/gprpp → util}/sorted_pack.h +6 -6
- data/src/core/{lib/gpr → util}/spinlock.h +5 -7
- data/src/core/{lib/gprpp → util}/stat.h +4 -5
- data/src/core/{lib/gprpp → util}/status_helper.cc +16 -38
- data/src/core/{lib/gprpp → util}/status_helper.h +8 -38
- data/src/core/{lib/gprpp → util}/strerror.cc +2 -3
- data/src/core/{lib/gprpp → util}/strerror.h +5 -5
- data/src/core/{lib/gpr → util}/string.cc +13 -16
- data/src/core/{lib/gpr → util}/string.h +4 -6
- data/src/core/{lib/gpr → util}/sync.cc +3 -6
- data/src/core/{lib/gprpp → util}/sync.h +7 -8
- data/src/core/{lib/gpr → util}/sync_abseil.cc +5 -8
- data/src/core/{lib/gprpp → util}/table.h +56 -22
- data/src/core/{lib/gprpp → util}/tchar.cc +1 -1
- data/src/core/{lib/gprpp → util}/tchar.h +3 -3
- data/src/core/{lib/gprpp → util}/thd.h +5 -7
- data/src/core/{lib/gprpp → util}/time.cc +8 -10
- data/src/core/{lib/gprpp → util}/time.h +28 -27
- data/src/core/{lib/gprpp → util}/time_averaged_stats.cc +1 -1
- data/src/core/{lib/gprpp → util}/time_averaged_stats.h +3 -3
- data/src/core/{lib/gpr → util}/time_precise.cc +7 -7
- data/src/core/{lib/gpr → util}/time_precise.h +3 -4
- data/src/core/{lib/gprpp → util}/time_util.cc +3 -5
- data/src/core/{lib/gprpp → util}/time_util.h +5 -5
- data/src/core/{lib/gpr → util}/tmpfile.h +3 -4
- data/src/core/{lib/gprpp → util}/type_list.h +3 -3
- data/src/core/util/unique_ptr_with_bitset.h +86 -0
- data/src/core/{lib/gprpp → util}/unique_type_name.h +34 -15
- data/src/core/{xds/grpc → util}/upb_utils.h +3 -5
- data/src/core/{lib/uri/uri_parser.cc → util/uri.cc} +2 -4
- data/src/core/{lib/uri/uri_parser.h → util/uri.h} +5 -5
- data/src/core/{lib/gpr → util}/useful.h +23 -52
- data/src/core/{lib/gprpp → util}/uuid_v4.cc +3 -3
- data/src/core/{lib/gprpp → util}/uuid_v4.h +4 -5
- data/src/core/{lib/gprpp → util}/validation_errors.cc +12 -4
- data/src/core/{lib/gprpp → util}/validation_errors.h +15 -5
- data/src/core/{lib/gpr → util}/windows/cpu.cc +1 -2
- data/src/core/{lib/gprpp → util}/windows/directory_reader.cc +1 -3
- data/src/core/{lib/gprpp → util}/windows/env.cc +2 -2
- data/src/core/{lib/gprpp → util}/windows/stat.cc +6 -8
- data/src/core/{lib/gpr → util}/windows/string.cc +3 -4
- data/src/core/{lib/gpr → util}/windows/string_util.cc +6 -8
- data/src/core/{lib/gpr → util}/windows/sync.cc +2 -4
- data/src/core/{lib/gprpp → util}/windows/thd.cc +8 -10
- data/src/core/{lib/gpr → util}/windows/time.cc +3 -6
- data/src/core/{lib/gpr → util}/windows/tmpfile.cc +5 -7
- data/src/core/{lib/gprpp → util}/work_serializer.cc +75 -95
- data/src/core/{lib/gprpp → util}/work_serializer.h +8 -9
- data/src/core/{lib/gprpp → util}/xxhash_inline.h +3 -3
- data/src/core/xds/grpc/certificate_provider_store.cc +4 -5
- data/src/core/xds/grpc/certificate_provider_store.h +12 -13
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc +6 -7
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.h +9 -10
- data/src/core/xds/grpc/xds_audit_logger_registry.cc +5 -5
- data/src/core/xds/grpc/xds_audit_logger_registry.h +4 -5
- data/src/core/xds/grpc/xds_bootstrap_grpc.cc +8 -166
- data/src/core/xds/grpc/xds_bootstrap_grpc.h +9 -39
- data/src/core/xds/grpc/xds_certificate_provider.cc +4 -5
- data/src/core/xds/grpc/xds_certificate_provider.h +12 -11
- data/src/core/xds/grpc/xds_client_grpc.cc +98 -76
- data/src/core/xds/grpc/xds_client_grpc.h +16 -10
- data/src/core/xds/grpc/xds_cluster.cc +12 -737
- data/src/core/xds/grpc/xds_cluster.h +36 -45
- data/src/core/xds/grpc/xds_cluster_parser.cc +772 -0
- data/src/core/xds/grpc/xds_cluster_parser.h +61 -0
- data/src/core/xds/grpc/xds_cluster_specifier_plugin.cc +6 -9
- data/src/core/xds/grpc/xds_cluster_specifier_plugin.h +5 -6
- data/src/core/xds/grpc/xds_common_types.cc +33 -438
- data/src/core/xds/grpc/xds_common_types.h +10 -28
- data/src/core/xds/grpc/xds_common_types_parser.cc +503 -0
- data/src/core/xds/grpc/xds_common_types_parser.h +76 -0
- data/src/core/xds/grpc/xds_endpoint.cc +0 -420
- data/src/core/xds/grpc/xds_endpoint.h +7 -29
- data/src/core/xds/grpc/xds_endpoint_parser.cc +444 -0
- data/src/core/xds/grpc/xds_endpoint_parser.h +47 -0
- data/src/core/xds/grpc/xds_health_status.cc +0 -2
- data/src/core/xds/grpc/xds_health_status.h +0 -3
- data/src/core/xds/grpc/xds_http_fault_filter.cc +28 -16
- data/src/core/xds/grpc/xds_http_fault_filter.h +11 -7
- data/src/core/xds/grpc/{xds_http_filters.h → xds_http_filter.h} +21 -69
- data/src/core/xds/grpc/{xds_http_filters.cc → xds_http_filter_registry.cc} +11 -5
- data/src/core/xds/grpc/xds_http_filter_registry.h +104 -0
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +141 -0
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.h +60 -0
- data/src/core/xds/grpc/xds_http_rbac_filter.cc +64 -49
- data/src/core/xds/grpc/xds_http_rbac_filter.h +11 -7
- data/src/core/xds/grpc/xds_http_stateful_session_filter.cc +24 -11
- data/src/core/xds/grpc/xds_http_stateful_session_filter.h +11 -7
- data/src/core/xds/grpc/xds_lb_policy_registry.cc +22 -27
- data/src/core/xds/grpc/xds_lb_policy_registry.h +4 -5
- data/src/core/xds/grpc/xds_listener.cc +19 -986
- data/src/core/xds/grpc/xds_listener.h +2 -35
- data/src/core/xds/grpc/xds_listener_parser.cc +993 -0
- data/src/core/xds/grpc/xds_listener_parser.h +59 -0
- data/src/core/xds/grpc/xds_metadata.cc +62 -0
- data/src/core/xds/grpc/xds_metadata.h +150 -0
- data/src/core/xds/grpc/xds_metadata_parser.cc +184 -0
- data/src/core/xds/grpc/xds_metadata_parser.h +35 -0
- data/src/core/xds/grpc/xds_route_config.cc +2 -919
- data/src/core/xds/grpc/xds_route_config.h +8 -41
- data/src/core/xds/grpc/xds_route_config_parser.cc +962 -0
- data/src/core/xds/grpc/xds_route_config_parser.h +77 -0
- data/src/core/xds/grpc/xds_routing.cc +60 -27
- data/src/core/xds/grpc/xds_routing.h +12 -6
- data/src/core/xds/grpc/xds_server_grpc.cc +160 -0
- data/src/core/xds/grpc/xds_server_grpc.h +63 -0
- data/src/core/xds/grpc/xds_transport_grpc.cc +98 -55
- data/src/core/xds/grpc/xds_transport_grpc.h +34 -23
- data/src/core/xds/xds_client/lrs_client.cc +1292 -0
- data/src/core/xds/xds_client/lrs_client.h +394 -0
- data/src/core/xds/xds_client/xds_api.cc +38 -256
- data/src/core/xds/xds_client/xds_api.h +13 -36
- data/src/core/xds/xds_client/xds_backend_metric_propagation.cc +63 -0
- data/src/core/xds/xds_client/xds_backend_metric_propagation.h +59 -0
- data/src/core/xds/xds_client/xds_bootstrap.cc +3 -4
- data/src/core/xds/xds_client/xds_bootstrap.h +3 -3
- data/src/core/xds/xds_client/xds_client.cc +175 -793
- data/src/core/xds/xds_client/xds_client.h +33 -89
- data/src/core/xds/xds_client/xds_locality.h +102 -0
- data/src/core/xds/xds_client/xds_metrics.h +2 -2
- data/src/core/xds/xds_client/xds_resource_type.h +4 -5
- data/src/core/xds/xds_client/xds_resource_type_impl.h +3 -4
- data/src/core/xds/xds_client/xds_transport.h +29 -14
- data/src/ruby/bin/math_pb.rb +1 -22
- data/src/ruby/ext/grpc/extconf.rb +1 -1
- data/src/ruby/ext/grpc/rb_byte_buffer.c +3 -3
- data/src/ruby/ext/grpc/rb_call.c +15 -8
- data/src/ruby/ext/grpc/rb_call_credentials.c +39 -33
- data/src/ruby/ext/grpc/rb_channel.c +42 -37
- data/src/ruby/ext/grpc/rb_channel_args.c +4 -4
- data/src/ruby/ext/grpc/rb_channel_credentials.c +5 -6
- data/src/ruby/ext/grpc/rb_channel_credentials.h +1 -2
- data/src/ruby/ext/grpc/rb_completion_queue.c +18 -36
- data/src/ruby/ext/grpc/rb_completion_queue.h +7 -1
- data/src/ruby/ext/grpc/rb_compression_options.c +9 -10
- data/src/ruby/ext/grpc/rb_event_thread.c +9 -9
- data/src/ruby/ext/grpc/rb_grpc.c +16 -16
- data/src/ruby/ext/grpc/rb_grpc.h +7 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +6 -14
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +9 -21
- data/src/ruby/ext/grpc/rb_server.c +47 -28
- data/src/ruby/ext/grpc/rb_server_credentials.c +3 -3
- data/src/ruby/ext/grpc/rb_server_credentials.h +1 -2
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +5 -6
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.h +1 -2
- data/src/ruby/ext/grpc/rb_xds_server_credentials.c +4 -4
- data/src/ruby/ext/grpc/rb_xds_server_credentials.h +1 -2
- data/src/ruby/lib/grpc/generic/active_call.rb +8 -5
- data/src/ruby/lib/grpc/logconfig.rb +13 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/v1/health_pb.rb +1 -22
- data/src/ruby/pb/grpc/testing/duplicate/echo_duplicate_services_pb.rb +5 -5
- data/src/ruby/pb/grpc/testing/metrics_pb.rb +10 -19
- data/src/ruby/pb/grpc/testing/metrics_services_pb.rb +5 -5
- data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +1 -22
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +1 -22
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +1 -22
- data/src/ruby/spec/call_spec.rb +53 -40
- data/src/ruby/spec/channel_spec.rb +4 -2
- data/src/ruby/spec/client_server_spec.rb +148 -507
- data/src/ruby/spec/generic/active_call_spec.rb +64 -86
- data/src/ruby/spec/generic/client_stub_spec.rb +20 -20
- data/src/ruby/spec/logconfig_spec.rb +30 -0
- data/src/ruby/spec/support/services.rb +3 -0
- data/third_party/abseil-cpp/absl/algorithm/container.h +57 -18
- data/third_party/abseil-cpp/absl/base/attributes.h +84 -0
- data/third_party/abseil-cpp/absl/base/config.h +32 -51
- data/third_party/abseil-cpp/absl/base/dynamic_annotations.h +0 -16
- data/third_party/abseil-cpp/absl/base/internal/nullability_impl.h +3 -1
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +13 -3
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +0 -12
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h +4 -4
- data/third_party/abseil-cpp/absl/base/macros.h +48 -0
- data/third_party/abseil-cpp/absl/base/no_destructor.h +35 -40
- data/third_party/abseil-cpp/absl/base/nullability.h +33 -7
- data/third_party/abseil-cpp/absl/base/optimization.h +11 -0
- data/third_party/abseil-cpp/absl/base/options.h +1 -1
- data/third_party/abseil-cpp/absl/base/prefetch.h +1 -1
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +68 -12
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +60 -6
- data/third_party/abseil-cpp/absl/container/hash_container_defaults.h +45 -0
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +13 -0
- data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +20 -11
- data/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h +15 -16
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +34 -1
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +68 -1
- data/third_party/abseil-cpp/absl/container/internal/hash_policy_traits.h +50 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +22 -7
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +26 -8
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +39 -35
- data/third_party/abseil-cpp/absl/container/internal/layout.h +190 -74
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +8 -6
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +334 -71
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +1299 -458
- data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +19 -17
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.cc +4 -3
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_fallback.cc +2 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_arm_combined.cc +12 -8
- data/third_party/abseil-cpp/absl/crc/internal/crc_non_temporal_memcpy.cc +1 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +11 -7
- data/third_party/abseil-cpp/absl/crc/internal/non_temporal_memcpy.h +18 -17
- data/third_party/abseil-cpp/absl/debugging/internal/bounded_utf8_length_sequence.h +126 -0
- data/third_party/abseil-cpp/absl/debugging/internal/decode_rust_punycode.cc +258 -0
- data/third_party/abseil-cpp/absl/debugging/internal/decode_rust_punycode.h +55 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +1057 -86
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +3 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle_rust.cc +925 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle_rust.h +42 -0
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.cc +43 -16
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +8 -7
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +10 -7
- data/third_party/abseil-cpp/absl/debugging/internal/utf8_for_code_point.cc +70 -0
- data/third_party/abseil-cpp/absl/debugging/internal/utf8_for_code_point.h +47 -0
- data/third_party/abseil-cpp/absl/flags/commandlineflag.h +11 -0
- data/third_party/abseil-cpp/absl/flags/flag.h +2 -0
- data/third_party/abseil-cpp/absl/flags/internal/flag.cc +117 -30
- data/third_party/abseil-cpp/absl/flags/internal/flag.h +192 -30
- data/third_party/abseil-cpp/absl/flags/reflection.cc +10 -0
- data/third_party/abseil-cpp/absl/functional/any_invocable.h +13 -3
- data/third_party/abseil-cpp/absl/functional/bind_front.h +3 -2
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +7 -7
- data/third_party/abseil-cpp/absl/functional/internal/front_binder.h +9 -9
- data/third_party/abseil-cpp/absl/hash/internal/hash.cc +1 -1
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +13 -3
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.cc +60 -28
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.h +4 -0
- data/third_party/abseil-cpp/absl/log/absl_vlog_is_on.h +3 -3
- data/third_party/abseil-cpp/absl/log/globals.h +28 -15
- data/third_party/abseil-cpp/absl/log/internal/check_op.cc +20 -0
- data/third_party/abseil-cpp/absl/log/internal/check_op.h +63 -21
- data/third_party/abseil-cpp/absl/log/internal/conditions.h +2 -2
- data/third_party/abseil-cpp/absl/log/internal/log_impl.h +23 -23
- data/third_party/abseil-cpp/absl/log/internal/log_message.cc +104 -47
- data/third_party/abseil-cpp/absl/log/internal/log_message.h +23 -4
- data/third_party/abseil-cpp/absl/log/internal/nullstream.h +1 -10
- data/third_party/abseil-cpp/absl/log/internal/strip.h +36 -0
- data/third_party/abseil-cpp/absl/log/log.h +5 -1
- data/third_party/abseil-cpp/absl/log/log_sink.h +11 -4
- data/third_party/abseil-cpp/absl/log/vlog_is_on.h +3 -3
- data/third_party/abseil-cpp/absl/meta/type_traits.h +138 -42
- data/third_party/abseil-cpp/absl/numeric/int128.cc +0 -3
- data/third_party/abseil-cpp/absl/numeric/int128.h +35 -5
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +14 -0
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +18 -0
- data/third_party/abseil-cpp/absl/numeric/internal/bits.h +6 -2
- data/third_party/abseil-cpp/absl/random/beta_distribution.h +8 -8
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +9 -7
- data/third_party/abseil-cpp/absl/random/distributions.h +11 -11
- data/third_party/abseil-cpp/absl/random/seed_sequences.h +2 -0
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +61 -2
- data/third_party/abseil-cpp/absl/status/status.cc +0 -4
- data/third_party/abseil-cpp/absl/status/status.h +4 -4
- data/third_party/abseil-cpp/absl/status/statusor.h +108 -142
- data/third_party/abseil-cpp/absl/strings/ascii.cc +32 -71
- data/third_party/abseil-cpp/absl/strings/cord.cc +20 -15
- data/third_party/abseil-cpp/absl/strings/cord.h +68 -7
- data/third_party/abseil-cpp/absl/strings/escaping.cc +96 -21
- data/third_party/abseil-cpp/absl/strings/escaping.h +25 -8
- data/third_party/abseil-cpp/absl/strings/has_absl_stringify.h +1 -0
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.h +10 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +29 -9
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.h +2 -2
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.cc +19 -13
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.h +23 -13
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.cc +24 -24
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +12 -7
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.h +9 -4
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +5 -2
- data/third_party/abseil-cpp/absl/strings/internal/str_join_internal.h +23 -2
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +5 -1
- data/third_party/abseil-cpp/absl/strings/numbers.cc +107 -333
- data/third_party/abseil-cpp/absl/strings/numbers.h +12 -151
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +49 -142
- data/third_party/abseil-cpp/absl/strings/str_cat.h +70 -85
- data/third_party/abseil-cpp/absl/strings/str_format.h +1 -1
- data/third_party/abseil-cpp/absl/strings/str_join.h +19 -5
- data/third_party/abseil-cpp/absl/strings/str_split.h +2 -2
- data/third_party/abseil-cpp/absl/strings/string_view.h +3 -2
- data/third_party/abseil-cpp/absl/strings/substitute.cc +4 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +11 -2
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.h +5 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +5 -4
- data/third_party/abseil-cpp/absl/time/civil_time.h +2 -2
- data/third_party/abseil-cpp/absl/time/clock.cc +15 -1
- data/third_party/abseil-cpp/absl/time/duration.cc +58 -53
- data/third_party/abseil-cpp/absl/time/format.cc +2 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.cc +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +0 -29
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +3 -3
- data/third_party/abseil-cpp/absl/time/time.h +73 -29
- data/third_party/abseil-cpp/absl/types/compare.h +505 -0
- data/third_party/abseil-cpp/absl/types/internal/optional.h +2 -2
- data/third_party/abseil-cpp/absl/types/internal/variant.h +55 -67
- data/third_party/abseil-cpp/absl/types/optional.h +15 -18
- data/third_party/abseil-cpp/absl/types/span.h +3 -2
- data/third_party/abseil-cpp/absl/types/variant.h +19 -24
- data/third_party/abseil-cpp/absl/utility/utility.h +3 -41
- data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/{fipsmodule/rand/fork_detect.h → bcm_support.h} +51 -6
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +12 -12
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbs.c +3 -5
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_chacha20poly1305.c +7 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/internal.h +43 -0
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +66 -41
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_linux.c +4 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_intel.c +71 -37
- data/third_party/boringssl-with-bazel/src/crypto/crypto.c +8 -62
- data/third_party/boringssl-with-bazel/src/crypto/dilithium/dilithium.c +1539 -0
- data/third_party/boringssl-with-bazel/src/crypto/dilithium/internal.h +58 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +10 -3
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa_asn1.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/dsa/internal.h +2 -0
- data/third_party/boringssl-with-bazel/src/crypto/ecdsa_extra/ecdsa_asn1.c +160 -14
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/{aes.c → aes.c.inc} +21 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/internal.h +33 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm.c +84 -80
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm_interface.h +89 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{div.c → div.c.inc} +146 -179
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{exponentiation.c → exponentiation.c.inc} +45 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +33 -23
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{random.c → random.c.inc} +6 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{sqrt.c → sqrt.c.inc} +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/{e_aes.c → e_aes.c.inc} +9 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{ec_key.c → ec_key.c.inc} +11 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{p256-nistz.c → p256-nistz.c.inc} +104 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-nistz.h +65 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/{ecdsa.c → ecdsa.c.inc} +52 -107
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/internal.h +28 -11
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/fips_shared_support.c +3 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/internal.h +1 -80
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/{rand.c → rand.c.inc} +26 -40
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/{padding.c → padding.c.inc} +2 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/{rsa_impl.c → rsa_impl.c.inc} +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/{fips.c → fips.c.inc} +6 -4
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/{self_check.c → self_check.c.inc} +9 -35
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/service_indicator/internal.h +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/service_indicator/{service_indicator.c → service_indicator.c.inc} +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/internal.h +9 -4
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/{sha512.c → sha512.c.inc} +6 -0
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +293 -2
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +98 -24
- data/third_party/boringssl-with-bazel/src/crypto/kyber/kyber.c +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +7 -3
- data/third_party/boringssl-with-bazel/src/crypto/mldsa/internal.h +73 -0
- data/third_party/boringssl-with-bazel/src/crypto/mldsa/mldsa.c +1687 -0
- data/third_party/boringssl-with-bazel/src/crypto/mlkem/internal.h +90 -0
- data/third_party/boringssl-with-bazel/src/crypto/mlkem/mlkem.cc +1097 -0
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +4 -1
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_lib.c +4 -5
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_pk8.c +2 -3
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_pkey.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/deterministic.c +9 -1
- data/third_party/boringssl-with-bazel/src/crypto/{fipsmodule/rand → rand_extra}/fork_detect.c +26 -28
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/getentropy.c +9 -1
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/ios.c +9 -1
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/passive.c +19 -3
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/rand_extra.c +26 -23
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/sysrand_internal.h +37 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/trusty.c +9 -1
- data/third_party/boringssl-with-bazel/src/crypto/{fipsmodule/rand → rand_extra}/urandom.c +19 -19
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/windows.c +8 -1
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/internal.h +2 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +0 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_utl.c +49 -16
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +0 -10
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +7 -17
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +14 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +8 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +14 -9
- data/third_party/boringssl-with-bazel/src/include/openssl/crypto.h +9 -11
- data/third_party/boringssl-with-bazel/src/include/openssl/experimental/dilithium.h +129 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/experimental/kyber.h +10 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +8 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/mldsa.h +136 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/mlkem.h +246 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/nid.h +3 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +3 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/service_indicator.h +2 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +48 -12
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +118 -38
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +0 -23
- data/third_party/boringssl-with-bazel/src/ssl/d1_both.cc +9 -12
- data/third_party/boringssl-with-bazel/src/ssl/d1_lib.cc +6 -0
- data/third_party/boringssl-with-bazel/src/ssl/d1_pkt.cc +10 -5
- data/third_party/boringssl-with-bazel/src/ssl/dtls_method.cc +14 -2
- data/third_party/boringssl-with-bazel/src/ssl/dtls_record.cc +296 -61
- data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +24 -16
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +71 -39
- data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +16 -4
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +125 -38
- data/third_party/boringssl-with-bazel/src/ssl/s3_both.cc +44 -16
- data/third_party/boringssl-with-bazel/src/ssl/s3_pkt.cc +21 -1
- data/third_party/boringssl-with-bazel/src/ssl/ssl_aead_ctx.cc +86 -1
- data/third_party/boringssl-with-bazel/src/ssl/ssl_buffer.cc +7 -4
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +98 -3
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +69 -29
- data/third_party/boringssl-with-bazel/src/ssl/ssl_privkey.cc +59 -20
- data/third_party/boringssl-with-bazel/src/ssl/ssl_versions.cc +7 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_both.cc +2 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +18 -4
- data/third_party/boringssl-with-bazel/src/ssl/tls13_enc.cc +96 -34
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +15 -5
- data/third_party/boringssl-with-bazel/src/ssl/tls_record.cc +4 -24
- data/third_party/upb/upb/base/string_view.h +1 -1
- data/third_party/upb/upb/json/decode.c +21 -3
- data/third_party/upb/upb/json/encode.c +2 -2
- data/third_party/upb/upb/lex/round_trip.c +10 -0
- data/third_party/upb/upb/mem/arena.c +79 -3
- data/third_party/upb/upb/mem/arena.h +20 -9
- data/third_party/upb/upb/mem/arena.hpp +5 -1
- data/third_party/upb/upb/mem/internal/arena.h +11 -8
- data/third_party/upb/upb/message/accessors.c +6 -7
- data/third_party/upb/upb/message/accessors.h +180 -378
- data/third_party/upb/upb/message/array.c +26 -3
- data/third_party/upb/upb/message/array.h +17 -9
- data/third_party/upb/upb/message/compat.c +5 -5
- data/third_party/upb/upb/message/compat.h +3 -3
- data/third_party/upb/upb/message/copy.c +23 -20
- data/third_party/upb/upb/message/internal/accessors.h +610 -55
- data/third_party/upb/upb/message/internal/array.h +23 -15
- data/third_party/upb/upb/message/internal/compare_unknown.c +289 -0
- data/third_party/upb/upb/message/internal/compare_unknown.h +49 -0
- data/third_party/upb/upb/message/internal/extension.c +12 -12
- data/third_party/upb/upb/message/internal/extension.h +9 -12
- data/third_party/upb/upb/message/internal/map.h +15 -0
- data/third_party/upb/upb/message/internal/map_sorter.h +4 -5
- data/third_party/upb/upb/message/internal/message.c +19 -3
- data/third_party/upb/upb/message/internal/message.h +11 -0
- data/third_party/upb/upb/message/internal/tagged_ptr.h +5 -5
- data/third_party/upb/upb/message/internal/types.h +41 -1
- data/third_party/upb/upb/message/map.c +25 -0
- data/third_party/upb/upb/message/map.h +11 -7
- data/third_party/upb/upb/message/merge.c +38 -0
- data/third_party/upb/upb/message/merge.h +26 -0
- data/third_party/upb/upb/message/message.c +83 -4
- data/third_party/upb/upb/message/message.h +16 -1
- data/third_party/upb/upb/message/tagged_ptr.h +4 -8
- data/third_party/upb/upb/message/value.h +26 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.c +3 -3
- data/third_party/upb/upb/mini_descriptor/build_enum.h +6 -14
- data/third_party/upb/upb/mini_descriptor/decode.c +19 -3
- data/third_party/upb/upb/mini_descriptor/link.c +23 -21
- data/third_party/upb/upb/mini_table/enum.h +2 -4
- data/third_party/upb/upb/mini_table/extension.h +4 -12
- data/third_party/upb/upb/mini_table/extension_registry.c +18 -0
- data/third_party/upb/upb/mini_table/extension_registry.h +17 -0
- data/third_party/upb/upb/mini_table/field.h +12 -38
- data/third_party/upb/upb/mini_table/file.h +6 -19
- data/third_party/upb/upb/mini_table/internal/enum.h +1 -1
- data/third_party/upb/upb/mini_table/internal/extension.h +18 -9
- data/third_party/upb/upb/mini_table/internal/field.h +23 -23
- data/third_party/upb/upb/mini_table/internal/file.h +7 -7
- data/third_party/upb/upb/mini_table/internal/message.c +21 -1
- data/third_party/upb/upb/mini_table/internal/message.h +80 -36
- data/third_party/upb/upb/mini_table/internal/sub.h +9 -4
- data/third_party/upb/upb/mini_table/message.h +23 -22
- data/third_party/upb/upb/mini_table/sub.h +4 -12
- data/third_party/upb/upb/port/def.inc +83 -6
- data/third_party/upb/upb/port/undef.inc +5 -1
- data/third_party/upb/upb/reflection/def.hpp +35 -0
- data/third_party/upb/upb/reflection/def_pool.h +2 -2
- data/third_party/upb/upb/reflection/enum_def.c +5 -1
- data/third_party/upb/upb/reflection/enum_def.h +1 -0
- data/third_party/upb/upb/reflection/enum_value_def.c +3 -8
- data/third_party/upb/upb/reflection/field_def.c +69 -29
- data/third_party/upb/upb/reflection/field_def.h +4 -0
- data/third_party/upb/upb/reflection/file_def.c +30 -4
- data/third_party/upb/upb/reflection/file_def.h +3 -0
- data/third_party/upb/upb/reflection/internal/upb_edition_defaults.h +1 -1
- data/third_party/upb/upb/reflection/message.c +26 -9
- data/third_party/upb/upb/reflection/message.h +2 -2
- data/third_party/upb/upb/reflection/message_def.c +14 -9
- data/third_party/upb/upb/reflection/method_def.h +8 -7
- data/third_party/upb/upb/reflection/service_def.h +6 -5
- data/third_party/upb/upb/text/encode.c +60 -389
- data/third_party/upb/upb/text/encode.h +1 -11
- data/third_party/upb/upb/text/internal/encode.c +180 -0
- data/third_party/upb/upb/text/internal/encode.h +240 -0
- data/third_party/upb/upb/text/options.h +22 -0
- data/third_party/upb/upb/wire/decode.c +160 -94
- data/third_party/upb/upb/wire/decode.h +14 -1
- data/third_party/upb/upb/wire/encode.c +89 -48
- data/third_party/upb/upb/wire/encode.h +12 -1
- data/third_party/upb/upb/wire/eps_copy_input_stream.h +3 -3
- data/third_party/upb/upb/wire/internal/decode_fast.c +28 -29
- data/third_party/upb/upb/wire/internal/reader.h +3 -3
- data/third_party/upb/upb/wire/reader.c +1 -2
- data/third_party/upb/upb/wire/reader.h +4 -8
- metadata +360 -275
- data/src/core/client_channel/config_selector.cc +0 -60
- data/src/core/ext/transport/chttp2/transport/http_trace.cc +0 -19
- data/src/core/ext/transport/chttp2/transport/http_trace.h +0 -24
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.cc +0 -45
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.h +0 -67
- data/src/core/ext/transport/inproc/inproc_plugin.cc +0 -23
- data/src/core/handshaker/security/tsi_error.cc +0 -31
- data/src/core/handshaker/security/tsi_error.h +0 -30
- data/src/core/lib/channel/channel_stack_trace.cc +0 -19
- data/src/core/lib/channel/channel_stack_trace.h +0 -24
- data/src/core/lib/channel/context.h +0 -105
- data/src/core/lib/channel/metrics.cc +0 -334
- data/src/core/lib/channel/metrics.h +0 -365
- data/src/core/lib/event_engine/trace.cc +0 -25
- data/src/core/lib/event_engine/trace.h +0 -48
- data/src/core/lib/gpr/android/log.cc +0 -79
- data/src/core/lib/gpr/linux/log.cc +0 -114
- data/src/core/lib/gpr/log.cc +0 -166
- data/src/core/lib/gpr/posix/log.cc +0 -111
- data/src/core/lib/gpr/windows/log.cc +0 -116
- data/src/core/lib/iomgr/ev_windows.cc +0 -30
- data/src/core/lib/promise/trace.cc +0 -20
- data/src/core/lib/promise/trace.h +0 -24
- data/src/core/lib/resource_quota/trace.cc +0 -19
- data/src/core/lib/resource_quota/trace.h +0 -24
- data/src/core/lib/slice/slice_refcount.cc +0 -20
- data/src/core/lib/surface/api_trace.cc +0 -25
- data/src/core/lib/surface/api_trace.h +0 -52
- data/src/core/lib/surface/call_trace.h +0 -24
- data/src/core/lib/surface/wait_for_cq_end_op.cc +0 -75
- data/src/core/lib/surface/wait_for_cq_end_op.h +0 -72
- data/src/core/lib/transport/batch_builder.cc +0 -172
- data/src/core/lib/transport/batch_builder.h +0 -474
- data/src/core/resolver/binder/binder_resolver.cc +0 -154
- data/src/core/resolver/xds/xds_resolver_trace.cc +0 -25
- data/src/core/resolver/xds/xds_resolver_trace.h +0 -30
- data/src/core/xds/xds_client/xds_client_stats.cc +0 -172
- data/src/core/xds/xds_client/xds_client_stats.h +0 -258
- data/third_party/abseil-cpp/absl/strings/internal/has_absl_stringify.h +0 -44
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf_def.h +0 -122
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/{aes_nohw.c → aes_nohw.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/{key_wrap.c → key_wrap.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/{mode_wrappers.c → mode_wrappers.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{add.c → add.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/asm/{x86_64-gcc.c → x86_64-gcc.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{bn.c → bn.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{bytes.c → bytes.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{cmp.c → cmp.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{ctx.c → ctx.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{div_extra.c → div_extra.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{gcd.c → gcd.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{gcd_extra.c → gcd_extra.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{generic.c → generic.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{jacobi.c → jacobi.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{montgomery.c → montgomery.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{montgomery_inv.c → montgomery_inv.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{mul.c → mul.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{prime.c → prime.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{rsaz_exp.c → rsaz_exp.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/{shift.c → shift.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/{aead.c → aead.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/{cipher.c → cipher.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/{e_aesccm.c → e_aesccm.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cmac/{cmac.c → cmac.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/{check.c → check.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/{dh.c → dh.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/{digest.c → digest.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/{digests.c → digests.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digestsign/{digestsign.c → digestsign.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{ec.c → ec.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{ec_montgomery.c → ec_montgomery.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{felem.c → felem.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{oct.c → oct.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{p224-64.c → p224-64.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{p256.c → p256.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{scalar.c → scalar.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{simple.c → simple.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{simple_mul.c → simple_mul.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{util.c → util.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/{wnaf.c → wnaf.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdh/{ecdh.c → ecdh.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/hkdf/{hkdf.c → hkdf.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/hmac/{hmac.c → hmac.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md4/{md4.c → md4.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md5/{md5.c → md5.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{cbc.c → cbc.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{cfb.c → cfb.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{ctr.c → ctr.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{gcm.c → gcm.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{gcm_nohw.c → gcm_nohw.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{ofb.c → ofb.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/{polyval.c → polyval.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/{ctrdrbg.c → ctrdrbg.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/{blinding.c → blinding.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/{rsa.c → rsa.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/{sha1.c → sha1.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/{sha256.c → sha256.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/{kdf.c → kdf.c.inc} +0 -0
- /data/third_party/boringssl-with-bazel/src/crypto/{fipsmodule/rand → rand_extra}/getrandom_fillin.h +0 -0
@@ -15,23 +15,30 @@
|
|
15
15
|
#ifndef GRPC_SRC_CORE_LIB_TRANSPORT_CALL_FILTERS_H
|
16
16
|
#define GRPC_SRC_CORE_LIB_TRANSPORT_CALL_FILTERS_H
|
17
17
|
|
18
|
+
#include <grpc/support/port_platform.h>
|
19
|
+
|
18
20
|
#include <cstdint>
|
21
|
+
#include <limits>
|
19
22
|
#include <memory>
|
23
|
+
#include <ostream>
|
20
24
|
#include <type_traits>
|
21
25
|
|
22
26
|
#include "absl/log/check.h"
|
23
|
-
|
24
|
-
#include
|
25
|
-
|
26
|
-
#include "src/core/lib/gprpp/ref_counted.h"
|
27
|
-
#include "src/core/lib/gprpp/ref_counted_ptr.h"
|
27
|
+
#include "src/core/lib/promise/for_each.h"
|
28
|
+
#include "src/core/lib/promise/if.h"
|
28
29
|
#include "src/core/lib/promise/latch.h"
|
29
30
|
#include "src/core/lib/promise/map.h"
|
30
31
|
#include "src/core/lib/promise/promise.h"
|
32
|
+
#include "src/core/lib/promise/seq.h"
|
31
33
|
#include "src/core/lib/promise/status_flag.h"
|
34
|
+
#include "src/core/lib/promise/try_seq.h"
|
32
35
|
#include "src/core/lib/transport/call_final_info.h"
|
36
|
+
#include "src/core/lib/transport/call_state.h"
|
33
37
|
#include "src/core/lib/transport/message.h"
|
34
38
|
#include "src/core/lib/transport/metadata.h"
|
39
|
+
#include "src/core/util/dump_args.h"
|
40
|
+
#include "src/core/util/ref_counted.h"
|
41
|
+
#include "src/core/util/ref_counted_ptr.h"
|
35
42
|
|
36
43
|
// CallFilters tracks a list of filters that are attached to a call.
|
37
44
|
// At a high level, a filter (for the purposes of this module) is a class
|
@@ -43,6 +50,7 @@
|
|
43
50
|
// - OnServerInitialMetadata - $VALUE_TYPE = ServerMetadata
|
44
51
|
// - OnServerToClientMessage - $VALUE_TYPE = Message
|
45
52
|
// - OnClientToServerMessage - $VALUE_TYPE = Message
|
53
|
+
// - OnClientToServerHalfClose - no value
|
46
54
|
// - OnServerTrailingMetadata - $VALUE_TYPE = ServerMetadata
|
47
55
|
// - OnFinalize - special, see below
|
48
56
|
// These members define an interception point for a particular event in
|
@@ -114,6 +122,108 @@ struct NoInterceptor {};
|
|
114
122
|
|
115
123
|
namespace filters_detail {
|
116
124
|
|
125
|
+
// Flow control across pipe stages.
|
126
|
+
// This ends up being exceedingly subtle - essentially we need to ensure that
|
127
|
+
// across a series of pipes we have no more than one outstanding message at a
|
128
|
+
// time - but those pipes are for the most part independent.
|
129
|
+
// How we achieve this is that this NextMessage object holds both the message
|
130
|
+
// and a completion token - the last owning NextMessage instance will call
|
131
|
+
// the on_progress method on the referenced CallState - and at that point that
|
132
|
+
// CallState will allow the next message to be sent through it.
|
133
|
+
// Next, the ForEach promise combiner explicitly holds onto the wrapper object
|
134
|
+
// owning the result (this object) and extracts the message from it, but doesn't
|
135
|
+
// dispose that instance until the action promise for the ForEach iteration
|
136
|
+
// completes, ensuring most callers need do nothing special to have the
|
137
|
+
// flow control work correctly.
|
138
|
+
template <void (CallState::*on_progress)()>
|
139
|
+
class NextMessage {
|
140
|
+
public:
|
141
|
+
~NextMessage() {
|
142
|
+
if (message_ != end_of_stream() && message_ != error() &&
|
143
|
+
message_ != taken()) {
|
144
|
+
delete message_;
|
145
|
+
}
|
146
|
+
if (call_state_ != nullptr) {
|
147
|
+
(call_state_->*on_progress)();
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
NextMessage() = default;
|
152
|
+
explicit NextMessage(Failure) : message_(error()), call_state_(nullptr) {}
|
153
|
+
NextMessage(MessageHandle message, CallState* call_state) {
|
154
|
+
DCHECK_NE(call_state, nullptr);
|
155
|
+
DCHECK_NE(message.get(), nullptr);
|
156
|
+
DCHECK(message.get_deleter().has_freelist());
|
157
|
+
message_ = message.release();
|
158
|
+
call_state_ = call_state;
|
159
|
+
}
|
160
|
+
NextMessage(const NextMessage& other) = delete;
|
161
|
+
NextMessage& operator=(const NextMessage& other) = delete;
|
162
|
+
NextMessage(NextMessage&& other) noexcept
|
163
|
+
: message_(std::exchange(other.message_, taken())),
|
164
|
+
call_state_(std::exchange(other.call_state_, nullptr)) {}
|
165
|
+
NextMessage& operator=(NextMessage&& other) noexcept {
|
166
|
+
if (message_ != end_of_stream() && message_ != error() &&
|
167
|
+
message_ != taken()) {
|
168
|
+
delete message_;
|
169
|
+
}
|
170
|
+
if (call_state_ != nullptr) {
|
171
|
+
(call_state_->*on_progress)();
|
172
|
+
}
|
173
|
+
message_ = std::exchange(other.message_, taken());
|
174
|
+
call_state_ = std::exchange(other.call_state_, nullptr);
|
175
|
+
return *this;
|
176
|
+
}
|
177
|
+
|
178
|
+
bool ok() const {
|
179
|
+
DCHECK_NE(message_, taken());
|
180
|
+
return message_ != error();
|
181
|
+
}
|
182
|
+
bool has_value() const {
|
183
|
+
DCHECK_NE(message_, taken());
|
184
|
+
DCHECK(ok());
|
185
|
+
return message_ != end_of_stream();
|
186
|
+
}
|
187
|
+
StatusFlag status() const { return StatusFlag(ok()); }
|
188
|
+
Message& value() {
|
189
|
+
DCHECK_NE(message_, taken());
|
190
|
+
DCHECK(ok());
|
191
|
+
DCHECK(has_value());
|
192
|
+
return *message_;
|
193
|
+
}
|
194
|
+
MessageHandle TakeValue() {
|
195
|
+
DCHECK_NE(message_, taken());
|
196
|
+
DCHECK(ok());
|
197
|
+
DCHECK(has_value());
|
198
|
+
return MessageHandle(std::exchange(message_, taken()),
|
199
|
+
Arena::PooledDeleter());
|
200
|
+
}
|
201
|
+
bool progressed() const { return call_state_ == nullptr; }
|
202
|
+
void Progress() {
|
203
|
+
DCHECK(!progressed());
|
204
|
+
(call_state_->*on_progress)();
|
205
|
+
call_state_ = nullptr;
|
206
|
+
}
|
207
|
+
|
208
|
+
private:
|
209
|
+
static Message* end_of_stream() { return nullptr; }
|
210
|
+
static Message* error() { return reinterpret_cast<Message*>(1); }
|
211
|
+
static Message* taken() { return reinterpret_cast<Message*>(2); }
|
212
|
+
Message* message_ = end_of_stream();
|
213
|
+
CallState* call_state_ = nullptr;
|
214
|
+
};
|
215
|
+
|
216
|
+
template <typename T>
|
217
|
+
struct ArgumentMustBeNextMessage;
|
218
|
+
template <void (CallState::*on_progress)()>
|
219
|
+
struct ArgumentMustBeNextMessage<NextMessage<on_progress>> {
|
220
|
+
static constexpr bool value() { return true; }
|
221
|
+
};
|
222
|
+
|
223
|
+
inline void* Offset(void* base, size_t amt) {
|
224
|
+
return static_cast<char*>(base) + amt;
|
225
|
+
}
|
226
|
+
|
117
227
|
// One call filter constructor
|
118
228
|
// Contains enough information to allocate and initialize the
|
119
229
|
// call data for one filter.
|
@@ -166,11 +276,10 @@ struct ResultOr {
|
|
166
276
|
};
|
167
277
|
|
168
278
|
// One filter operation metadata
|
169
|
-
// Given a value of type
|
170
|
-
template <typename
|
279
|
+
// Given a value of type T, produces a promise of type ResultOr<T>.
|
280
|
+
template <typename T>
|
171
281
|
struct Operator {
|
172
|
-
using
|
173
|
-
using Arg = V;
|
282
|
+
using Arg = T;
|
174
283
|
// Pointer to corresponding channel data for this filter
|
175
284
|
void* channel_data;
|
176
285
|
// Offset of the call data for this filter within the call data memory
|
@@ -178,13 +287,13 @@ struct Operator {
|
|
178
287
|
// Initialize the promise data for this filter, and poll once.
|
179
288
|
// Return the result of the poll.
|
180
289
|
// If the promise finishes, also destroy the promise data!
|
181
|
-
Poll<
|
182
|
-
|
290
|
+
Poll<ResultOr<T>> (*promise_init)(void* promise_data, void* call_data,
|
291
|
+
void* channel_data, T value);
|
183
292
|
// Poll the promise data for this filter.
|
184
293
|
// If the promise finishes, also destroy the promise data!
|
185
294
|
// Note that if the promise always finishes on the first poll, then supplying
|
186
295
|
// this method is unnecessary (as it will never be called).
|
187
|
-
Poll<
|
296
|
+
Poll<ResultOr<T>> (*poll)(void* promise_data);
|
188
297
|
// Destroy the promise data for this filter for an in-progress operation
|
189
298
|
// before the promise finishes.
|
190
299
|
// Note that if the promise always finishes on the first poll, then supplying
|
@@ -192,22 +301,39 @@ struct Operator {
|
|
192
301
|
void (*early_destroy)(void* promise_data);
|
193
302
|
};
|
194
303
|
|
195
|
-
|
196
|
-
//
|
197
|
-
|
198
|
-
//
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
304
|
+
struct HalfCloseOperator {
|
305
|
+
// Pointer to corresponding channel data for this filter
|
306
|
+
void* channel_data;
|
307
|
+
// Offset of the call data for this filter within the call data memory
|
308
|
+
size_t call_offset;
|
309
|
+
void (*half_close)(void* call_data, void* channel_data);
|
310
|
+
};
|
311
|
+
|
312
|
+
struct ServerTrailingMetadataOperator {
|
313
|
+
// Pointer to corresponding channel data for this filter
|
314
|
+
void* channel_data;
|
315
|
+
// Offset of the call data for this filter within the call data memory
|
316
|
+
size_t call_offset;
|
317
|
+
ServerMetadataHandle (*server_trailing_metadata)(
|
318
|
+
void* call_data, void* channel_data, ServerMetadataHandle metadata);
|
319
|
+
};
|
320
|
+
|
321
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline void RunHalfClose(
|
322
|
+
absl::Span<const HalfCloseOperator> ops, void* call_data) {
|
323
|
+
for (const auto& op : ops) {
|
324
|
+
op.half_close(Offset(call_data, op.call_offset), op.channel_data);
|
325
|
+
}
|
326
|
+
}
|
327
|
+
|
328
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline ServerMetadataHandle
|
329
|
+
RunServerTrailingMetadata(absl::Span<const ServerTrailingMetadataOperator> ops,
|
330
|
+
void* call_data, ServerMetadataHandle md) {
|
331
|
+
for (auto& op : ops) {
|
332
|
+
md = op.server_trailing_metadata(Offset(call_data, op.call_offset),
|
333
|
+
op.channel_data, std::move(md));
|
334
|
+
}
|
335
|
+
return md;
|
336
|
+
}
|
211
337
|
|
212
338
|
// One call finalizer
|
213
339
|
struct Finalizer {
|
@@ -219,19 +345,20 @@ struct Finalizer {
|
|
219
345
|
|
220
346
|
// A layout of operations for a given filter stack
|
221
347
|
// This includes which operations, how much memory is required, what alignment.
|
222
|
-
template <typename
|
348
|
+
template <typename T>
|
223
349
|
struct Layout {
|
224
350
|
size_t promise_size = 0;
|
225
351
|
size_t promise_alignment = 0;
|
226
|
-
std::vector<
|
352
|
+
std::vector<Operator<T>> ops;
|
227
353
|
|
228
|
-
void Add(size_t filter_promise_size, size_t filter_promise_alignment,
|
354
|
+
void Add(size_t filter_promise_size, size_t filter_promise_alignment,
|
355
|
+
Operator<T> op) {
|
229
356
|
promise_size = std::max(promise_size, filter_promise_size);
|
230
357
|
promise_alignment = std::max(promise_alignment, filter_promise_alignment);
|
231
358
|
ops.push_back(op);
|
232
359
|
}
|
233
360
|
|
234
|
-
void Reverse() {
|
361
|
+
void Reverse() { absl::c_reverse(ops); }
|
235
362
|
};
|
236
363
|
|
237
364
|
// AddOp and friends
|
@@ -251,27 +378,104 @@ struct AddOpImpl;
|
|
251
378
|
|
252
379
|
template <typename FunctionImpl, FunctionImpl impl, typename FilterType,
|
253
380
|
typename T>
|
254
|
-
void AddOp(FilterType* channel_data, size_t call_offset,
|
255
|
-
Layout<FallibleOperator<T>>& to) {
|
381
|
+
void AddOp(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
256
382
|
AddOpImpl<FilterType, T, FunctionImpl, impl>::Add(channel_data, call_offset,
|
257
383
|
to);
|
258
384
|
}
|
259
385
|
|
260
|
-
template <typename
|
261
|
-
|
262
|
-
void
|
263
|
-
|
264
|
-
|
265
|
-
|
386
|
+
template <typename FilterType>
|
387
|
+
void AddHalfClose(FilterType* channel_data, size_t call_offset,
|
388
|
+
void (FilterType::Call::*)(),
|
389
|
+
std::vector<HalfCloseOperator>& to) {
|
390
|
+
to.push_back(
|
391
|
+
HalfCloseOperator{channel_data, call_offset, [](void* call_data, void*) {
|
392
|
+
static_cast<typename FilterType::Call*>(call_data)
|
393
|
+
->OnClientToServerHalfClose();
|
394
|
+
}});
|
395
|
+
}
|
396
|
+
|
397
|
+
template <typename FilterType>
|
398
|
+
void AddHalfClose(FilterType* channel_data, size_t call_offset,
|
399
|
+
void (FilterType::Call::*)(FilterType*),
|
400
|
+
std::vector<HalfCloseOperator>& to) {
|
401
|
+
to.push_back(HalfCloseOperator{
|
402
|
+
channel_data, call_offset, [](void* call_data, void* channel_data) {
|
403
|
+
static_cast<typename FilterType::Call*>(call_data)
|
404
|
+
->OnClientToServerHalfClose(static_cast<FilterType*>(channel_data));
|
405
|
+
}});
|
406
|
+
}
|
407
|
+
|
408
|
+
template <typename FilterType>
|
409
|
+
void AddHalfClose(FilterType*, size_t, const NoInterceptor*,
|
410
|
+
std::vector<HalfCloseOperator>&) {}
|
411
|
+
|
412
|
+
template <typename FilterType>
|
413
|
+
void AddServerTrailingMetadata(
|
414
|
+
FilterType* channel_data, size_t call_offset,
|
415
|
+
void (FilterType::Call::*)(ServerMetadata&),
|
416
|
+
std::vector<ServerTrailingMetadataOperator>& to) {
|
417
|
+
to.push_back(ServerTrailingMetadataOperator{
|
418
|
+
channel_data, call_offset,
|
419
|
+
[](void* call_data, void*, ServerMetadataHandle metadata) {
|
420
|
+
static_cast<typename FilterType::Call*>(call_data)
|
421
|
+
->OnServerTrailingMetadata(*metadata);
|
422
|
+
return metadata;
|
423
|
+
}});
|
424
|
+
}
|
425
|
+
|
426
|
+
template <typename FilterType>
|
427
|
+
void AddServerTrailingMetadata(
|
428
|
+
FilterType* channel_data, size_t call_offset,
|
429
|
+
void (FilterType::Call::*)(ServerMetadata&, FilterType*),
|
430
|
+
std::vector<ServerTrailingMetadataOperator>& to) {
|
431
|
+
to.push_back(ServerTrailingMetadataOperator{
|
432
|
+
channel_data, call_offset,
|
433
|
+
[](void* call_data, void* channel_data, ServerMetadataHandle metadata) {
|
434
|
+
static_cast<typename FilterType::Call*>(call_data)
|
435
|
+
->OnServerTrailingMetadata(*metadata,
|
436
|
+
static_cast<FilterType*>(channel_data));
|
437
|
+
return metadata;
|
438
|
+
}});
|
439
|
+
}
|
440
|
+
|
441
|
+
template <typename FilterType>
|
442
|
+
void AddServerTrailingMetadata(
|
443
|
+
FilterType* channel_data, size_t call_offset,
|
444
|
+
absl::Status (FilterType::Call::*)(ServerMetadata&),
|
445
|
+
std::vector<ServerTrailingMetadataOperator>& to) {
|
446
|
+
to.push_back(ServerTrailingMetadataOperator{
|
447
|
+
channel_data, call_offset,
|
448
|
+
[](void* call_data, void*, ServerMetadataHandle metadata) {
|
449
|
+
auto r = static_cast<typename FilterType::Call*>(call_data)
|
450
|
+
->OnServerTrailingMetadata(*metadata);
|
451
|
+
if (r.ok()) return metadata;
|
452
|
+
return CancelledServerMetadataFromStatus(r);
|
453
|
+
}});
|
454
|
+
}
|
455
|
+
|
456
|
+
template <typename FilterType>
|
457
|
+
void AddServerTrailingMetadata(
|
458
|
+
FilterType* channel_data, size_t call_offset,
|
459
|
+
ServerMetadataHandle (FilterType::Call::*)(ServerMetadataHandle),
|
460
|
+
std::vector<ServerTrailingMetadataOperator>& to) {
|
461
|
+
to.push_back(ServerTrailingMetadataOperator{
|
462
|
+
channel_data, call_offset,
|
463
|
+
[](void* call_data, void*, ServerMetadataHandle metadata) {
|
464
|
+
return static_cast<typename FilterType::Call*>(call_data)
|
465
|
+
->OnServerTrailingMetadata(std::move(metadata));
|
466
|
+
}});
|
266
467
|
}
|
267
468
|
|
469
|
+
template <typename FilterType>
|
470
|
+
void AddServerTrailingMetadata(FilterType*, size_t, const NoInterceptor*,
|
471
|
+
std::vector<ServerTrailingMetadataOperator>&) {}
|
472
|
+
|
268
473
|
// const NoInterceptor $EVENT
|
269
474
|
// These do nothing, and specifically DO NOT add an operation to the layout.
|
270
475
|
// Supported for fallible & infallible operations.
|
271
476
|
template <typename FilterType, typename T, const NoInterceptor* which>
|
272
477
|
struct AddOpImpl<FilterType, T, const NoInterceptor*, which> {
|
273
|
-
static void Add(FilterType*, size_t, Layout<
|
274
|
-
static void Add(FilterType*, size_t, Layout<InfallibleOperator<T>>&) {}
|
478
|
+
static void Add(FilterType*, size_t, Layout<T>&) {}
|
275
479
|
};
|
276
480
|
|
277
481
|
// void $INTERCEPTOR_NAME($VALUE_TYPE&)
|
@@ -279,10 +483,9 @@ template <typename FilterType, typename T,
|
|
279
483
|
void (FilterType::Call::*impl)(typename T::element_type&)>
|
280
484
|
struct AddOpImpl<FilterType, T,
|
281
485
|
void (FilterType::Call::*)(typename T::element_type&), impl> {
|
282
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
283
|
-
Layout<FallibleOperator<T>>& to) {
|
486
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
284
487
|
to.Add(0, 0,
|
285
|
-
|
488
|
+
Operator<T>{
|
286
489
|
channel_data,
|
287
490
|
call_offset,
|
288
491
|
[](void*, void* call_data, void*, T value) -> Poll<ResultOr<T>> {
|
@@ -294,16 +497,23 @@ struct AddOpImpl<FilterType, T,
|
|
294
497
|
nullptr,
|
295
498
|
});
|
296
499
|
}
|
297
|
-
|
298
|
-
|
500
|
+
};
|
501
|
+
|
502
|
+
// void $INTERCEPTOR_NAME(const $VALUE_TYPE&)
|
503
|
+
template <typename FilterType, typename T,
|
504
|
+
void (FilterType::Call::*impl)(const typename T::element_type&)>
|
505
|
+
struct AddOpImpl<FilterType, T,
|
506
|
+
void (FilterType::Call::*)(const typename T::element_type&),
|
507
|
+
impl> {
|
508
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
299
509
|
to.Add(0, 0,
|
300
|
-
|
510
|
+
Operator<T>{
|
301
511
|
channel_data,
|
302
512
|
call_offset,
|
303
|
-
[](void*, void* call_data, void*, T value) -> Poll<T
|
513
|
+
[](void*, void* call_data, void*, T value) -> Poll<ResultOr<T>> {
|
304
514
|
(static_cast<typename FilterType::Call*>(call_data)->*impl)(
|
305
515
|
*value);
|
306
|
-
return std::move(value);
|
516
|
+
return ResultOr<T>{std::move(value), nullptr};
|
307
517
|
},
|
308
518
|
nullptr,
|
309
519
|
nullptr,
|
@@ -318,10 +528,9 @@ template <typename FilterType, typename T,
|
|
318
528
|
struct AddOpImpl<
|
319
529
|
FilterType, T,
|
320
530
|
void (FilterType::Call::*)(typename T::element_type&, FilterType*), impl> {
|
321
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
322
|
-
Layout<FallibleOperator<T>>& to) {
|
531
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
323
532
|
to.Add(0, 0,
|
324
|
-
|
533
|
+
Operator<T>{
|
325
534
|
channel_data,
|
326
535
|
call_offset,
|
327
536
|
[](void*, void* call_data, void* channel_data,
|
@@ -334,33 +543,16 @@ struct AddOpImpl<
|
|
334
543
|
nullptr,
|
335
544
|
});
|
336
545
|
}
|
337
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
338
|
-
Layout<InfallibleOperator<T>>& to) {
|
339
|
-
to.Add(
|
340
|
-
0, 0,
|
341
|
-
InfallibleOperator<T>{
|
342
|
-
channel_data,
|
343
|
-
call_offset,
|
344
|
-
[](void*, void* call_data, void* channel_data, T value) -> Poll<T> {
|
345
|
-
(static_cast<typename FilterType::Call*>(call_data)->*impl)(
|
346
|
-
*value, static_cast<FilterType*>(channel_data));
|
347
|
-
return std::move(value);
|
348
|
-
},
|
349
|
-
nullptr,
|
350
|
-
nullptr,
|
351
|
-
});
|
352
|
-
}
|
353
546
|
};
|
354
547
|
|
355
548
|
// $VALUE_HANDLE $INTERCEPTOR_NAME($VALUE_HANDLE, FilterType*)
|
356
549
|
template <typename FilterType, typename T,
|
357
550
|
T (FilterType::Call::*impl)(T, FilterType*)>
|
358
551
|
struct AddOpImpl<FilterType, T, T (FilterType::Call::*)(T, FilterType*), impl> {
|
359
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
360
|
-
Layout<FallibleOperator<T>>& to) {
|
552
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
361
553
|
to.Add(
|
362
554
|
0, 0,
|
363
|
-
|
555
|
+
Operator<T>{
|
364
556
|
channel_data,
|
365
557
|
call_offset,
|
366
558
|
[](void*, void* call_data, void* channel_data,
|
@@ -374,24 +566,6 @@ struct AddOpImpl<FilterType, T, T (FilterType::Call::*)(T, FilterType*), impl> {
|
|
374
566
|
nullptr,
|
375
567
|
});
|
376
568
|
}
|
377
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
378
|
-
Layout<InfallibleOperator<T>>& to) {
|
379
|
-
to.Add(
|
380
|
-
0, 0,
|
381
|
-
InfallibleOperator<T>{
|
382
|
-
channel_data,
|
383
|
-
call_offset,
|
384
|
-
[](void*, void* call_data, void* channel_data, T value) -> Poll<T> {
|
385
|
-
(static_cast<typename FilterType::Call*>(call_data)->*impl)(
|
386
|
-
*value, static_cast<FilterType*>(channel_data));
|
387
|
-
return (
|
388
|
-
static_cast<typename FilterType::Call*>(call_data)->*impl)(
|
389
|
-
std::move(value), static_cast<FilterType*>(channel_data));
|
390
|
-
},
|
391
|
-
nullptr,
|
392
|
-
nullptr,
|
393
|
-
});
|
394
|
-
}
|
395
569
|
};
|
396
570
|
|
397
571
|
// absl::Status $INTERCEPTOR_NAME($VALUE_TYPE&)
|
@@ -400,11 +574,10 @@ template <typename FilterType, typename T,
|
|
400
574
|
struct AddOpImpl<FilterType, T,
|
401
575
|
absl::Status (FilterType::Call::*)(typename T::element_type&),
|
402
576
|
impl> {
|
403
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
404
|
-
Layout<FallibleOperator<T>>& to) {
|
577
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
405
578
|
to.Add(
|
406
579
|
0, 0,
|
407
|
-
|
580
|
+
Operator<T>{
|
408
581
|
channel_data,
|
409
582
|
call_offset,
|
410
583
|
[](void*, void* call_data, void*, T value) -> Poll<ResultOr<T>> {
|
@@ -419,24 +592,6 @@ struct AddOpImpl<FilterType, T,
|
|
419
592
|
nullptr,
|
420
593
|
});
|
421
594
|
}
|
422
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
423
|
-
Layout<InfallibleOperator<T>>& to) {
|
424
|
-
to.Add(
|
425
|
-
0, 0,
|
426
|
-
InfallibleOperator<T>{
|
427
|
-
channel_data,
|
428
|
-
call_offset,
|
429
|
-
[](void*, void* call_data, void*, T value) -> Poll<T> {
|
430
|
-
auto r =
|
431
|
-
(static_cast<typename FilterType::Call*>(call_data)->*impl)(
|
432
|
-
*value);
|
433
|
-
if (r.ok()) return std::move(value);
|
434
|
-
return StatusCast<ServerMetadataHandle>(std::move(r));
|
435
|
-
},
|
436
|
-
nullptr,
|
437
|
-
nullptr,
|
438
|
-
});
|
439
|
-
}
|
440
595
|
};
|
441
596
|
|
442
597
|
// absl::Status $INTERCEPTOR_NAME(const $VALUE_TYPE&)
|
@@ -446,11 +601,10 @@ template <typename FilterType, typename T,
|
|
446
601
|
struct AddOpImpl<
|
447
602
|
FilterType, T,
|
448
603
|
absl::Status (FilterType::Call::*)(const typename T::element_type&), impl> {
|
449
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
450
|
-
Layout<FallibleOperator<T>>& to) {
|
604
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
451
605
|
to.Add(
|
452
606
|
0, 0,
|
453
|
-
|
607
|
+
Operator<T>{
|
454
608
|
channel_data,
|
455
609
|
call_offset,
|
456
610
|
[](void*, void* call_data, void*, T value) -> Poll<ResultOr<T>> {
|
@@ -475,11 +629,10 @@ struct AddOpImpl<FilterType, T,
|
|
475
629
|
absl::Status (FilterType::Call::*)(typename T::element_type&,
|
476
630
|
FilterType*),
|
477
631
|
impl> {
|
478
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
479
|
-
Layout<FallibleOperator<T>>& to) {
|
632
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
480
633
|
to.Add(
|
481
634
|
0, 0,
|
482
|
-
|
635
|
+
Operator<T>{
|
483
636
|
channel_data,
|
484
637
|
call_offset,
|
485
638
|
[](void*, void* call_data, void* channel_data,
|
@@ -505,11 +658,10 @@ struct AddOpImpl<FilterType, T,
|
|
505
658
|
absl::Status (FilterType::Call::*)(
|
506
659
|
const typename T::element_type&, FilterType*),
|
507
660
|
impl> {
|
508
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
509
|
-
Layout<FallibleOperator<T>>& to) {
|
661
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
510
662
|
to.Add(
|
511
663
|
0, 0,
|
512
|
-
|
664
|
+
Operator<T>{
|
513
665
|
channel_data,
|
514
666
|
call_offset,
|
515
667
|
[](void*, void* call_data, void* channel_data,
|
@@ -533,11 +685,10 @@ template <typename FilterType, typename T,
|
|
533
685
|
struct AddOpImpl<FilterType, T,
|
534
686
|
absl::StatusOr<T> (FilterType::Call::*)(T, FilterType*),
|
535
687
|
impl> {
|
536
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
537
|
-
Layout<FallibleOperator<T>>& to) {
|
688
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
538
689
|
to.Add(
|
539
690
|
0, 0,
|
540
|
-
|
691
|
+
Operator<T>{
|
541
692
|
channel_data,
|
542
693
|
call_offset,
|
543
694
|
[](void*, void* call_data, void* channel_data,
|
@@ -563,11 +714,10 @@ struct AddOpImpl<FilterType, T,
|
|
563
714
|
ServerMetadataHandle (FilterType::Call::*)(
|
564
715
|
typename T::element_type&),
|
565
716
|
impl> {
|
566
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
567
|
-
Layout<FallibleOperator<T>>& to) {
|
717
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
568
718
|
to.Add(
|
569
719
|
0, 0,
|
570
|
-
|
720
|
+
Operator<T>{
|
571
721
|
channel_data,
|
572
722
|
call_offset,
|
573
723
|
[](void*, void* call_data, void*, T value) -> Poll<ResultOr<T>> {
|
@@ -592,11 +742,10 @@ struct AddOpImpl<FilterType, T,
|
|
592
742
|
ServerMetadataHandle (FilterType::Call::*)(
|
593
743
|
const typename T::element_type&),
|
594
744
|
impl> {
|
595
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
596
|
-
Layout<FallibleOperator<T>>& to) {
|
745
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
597
746
|
to.Add(
|
598
747
|
0, 0,
|
599
|
-
|
748
|
+
Operator<T>{
|
600
749
|
channel_data,
|
601
750
|
call_offset,
|
602
751
|
[](void*, void* call_data, void*, T value) -> Poll<ResultOr<T>> {
|
@@ -621,11 +770,10 @@ struct AddOpImpl<FilterType, T,
|
|
621
770
|
ServerMetadataHandle (FilterType::Call::*)(
|
622
771
|
typename T::element_type&, FilterType*),
|
623
772
|
impl> {
|
624
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
625
|
-
Layout<FallibleOperator<T>>& to) {
|
773
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
626
774
|
to.Add(
|
627
775
|
0, 0,
|
628
|
-
|
776
|
+
Operator<T>{
|
629
777
|
channel_data,
|
630
778
|
call_offset,
|
631
779
|
[](void*, void* call_data, void* channel_data,
|
@@ -651,11 +799,10 @@ struct AddOpImpl<FilterType, T,
|
|
651
799
|
ServerMetadataHandle (FilterType::Call::*)(
|
652
800
|
const typename T::element_type&, FilterType*),
|
653
801
|
impl> {
|
654
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
655
|
-
Layout<FallibleOperator<T>>& to) {
|
802
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
656
803
|
to.Add(
|
657
804
|
0, 0,
|
658
|
-
|
805
|
+
Operator<T>{
|
659
806
|
channel_data,
|
660
807
|
call_offset,
|
661
808
|
[](void*, void* call_data, void* channel_data,
|
@@ -679,8 +826,7 @@ template <typename FilterType, typename T, typename R,
|
|
679
826
|
struct AddOpImpl<
|
680
827
|
FilterType, T, R (FilterType::Call::*)(typename T::element_type&), impl,
|
681
828
|
absl::enable_if_t<std::is_same<absl::Status, PromiseResult<R>>::value>> {
|
682
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
683
|
-
Layout<FallibleOperator<T>>& to) {
|
829
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
684
830
|
class Promise {
|
685
831
|
public:
|
686
832
|
Promise(T value, typename FilterType::Call* call_data, FilterType*)
|
@@ -695,7 +841,7 @@ struct AddOpImpl<
|
|
695
841
|
if (r->ok()) {
|
696
842
|
return ResultOr<T>{std::move(value), nullptr};
|
697
843
|
}
|
698
|
-
return ResultOr<T>{nullptr,
|
844
|
+
return ResultOr<T>{nullptr, CancelledServerMetadataFromStatus(*r)};
|
699
845
|
}
|
700
846
|
|
701
847
|
private:
|
@@ -703,7 +849,7 @@ struct AddOpImpl<
|
|
703
849
|
GPR_NO_UNIQUE_ADDRESS R impl_;
|
704
850
|
};
|
705
851
|
to.Add(sizeof(Promise), alignof(Promise),
|
706
|
-
|
852
|
+
Operator<T>{
|
707
853
|
channel_data,
|
708
854
|
call_offset,
|
709
855
|
[](void* promise_data, void* call_data, void* channel_data,
|
@@ -732,8 +878,7 @@ struct AddOpImpl<
|
|
732
878
|
R (FilterType::Call::*)(typename T::element_type&, FilterType*), impl,
|
733
879
|
absl::enable_if_t<!std::is_same<R, absl::Status>::value &&
|
734
880
|
std::is_same<absl::Status, PromiseResult<R>>::value>> {
|
735
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
736
|
-
Layout<FallibleOperator<T>>& to) {
|
881
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
737
882
|
class Promise {
|
738
883
|
public:
|
739
884
|
Promise(T value, typename FilterType::Call* call_data,
|
@@ -750,7 +895,7 @@ struct AddOpImpl<
|
|
750
895
|
if (r->ok()) {
|
751
896
|
return ResultOr<T>{std::move(value), nullptr};
|
752
897
|
}
|
753
|
-
return ResultOr<T>{nullptr,
|
898
|
+
return ResultOr<T>{nullptr, CancelledServerMetadataFromStatus(*r)};
|
754
899
|
}
|
755
900
|
|
756
901
|
private:
|
@@ -758,7 +903,7 @@ struct AddOpImpl<
|
|
758
903
|
GPR_NO_UNIQUE_ADDRESS R impl_;
|
759
904
|
};
|
760
905
|
to.Add(sizeof(Promise), alignof(Promise),
|
761
|
-
|
906
|
+
Operator<T>{
|
762
907
|
channel_data,
|
763
908
|
call_offset,
|
764
909
|
[](void* promise_data, void* call_data, void* channel_data,
|
@@ -786,8 +931,7 @@ template <typename FilterType, typename T, typename R,
|
|
786
931
|
struct AddOpImpl<FilterType, T, R (FilterType::Call::*)(T, FilterType*), impl,
|
787
932
|
absl::enable_if_t<std::is_same<absl::StatusOr<T>,
|
788
933
|
PromiseResult<R>>::value>> {
|
789
|
-
static void Add(FilterType* channel_data, size_t call_offset,
|
790
|
-
Layout<FallibleOperator<T>>& to) {
|
934
|
+
static void Add(FilterType* channel_data, size_t call_offset, Layout<T>& to) {
|
791
935
|
class Promise {
|
792
936
|
public:
|
793
937
|
Promise(T value, typename FilterType::Call* call_data,
|
@@ -800,14 +944,15 @@ struct AddOpImpl<FilterType, T, R (FilterType::Call::*)(T, FilterType*), impl,
|
|
800
944
|
if (r == nullptr) return Pending{};
|
801
945
|
this->~Promise();
|
802
946
|
if (r->ok()) return ResultOr<T>{std::move(**r), nullptr};
|
803
|
-
return ResultOr<T>{nullptr,
|
947
|
+
return ResultOr<T>{nullptr,
|
948
|
+
CancelledServerMetadataFromStatus(r->status())};
|
804
949
|
}
|
805
950
|
|
806
951
|
private:
|
807
952
|
GPR_NO_UNIQUE_ADDRESS R impl_;
|
808
953
|
};
|
809
954
|
to.Add(sizeof(Promise), alignof(Promise),
|
810
|
-
|
955
|
+
Operator<T>{
|
811
956
|
channel_data,
|
812
957
|
call_offset,
|
813
958
|
[](void* promise_data, void* call_data, void* channel_data,
|
@@ -849,11 +994,12 @@ struct StackData {
|
|
849
994
|
// For each kind of operation, a layout of the operations for this call.
|
850
995
|
// (there's some duplicate data here, and that's ok: we want to avoid
|
851
996
|
// pointer chasing as much as possible when executing a call)
|
852
|
-
Layout<
|
853
|
-
Layout<
|
854
|
-
Layout<
|
855
|
-
|
856
|
-
Layout<
|
997
|
+
Layout<ClientMetadataHandle> client_initial_metadata;
|
998
|
+
Layout<ServerMetadataHandle> server_initial_metadata;
|
999
|
+
Layout<MessageHandle> client_to_server_messages;
|
1000
|
+
std::vector<HalfCloseOperator> client_to_server_half_close;
|
1001
|
+
Layout<MessageHandle> server_to_client_messages;
|
1002
|
+
std::vector<ServerTrailingMetadataOperator> server_trailing_metadata;
|
857
1003
|
// A list of finalizers for this call.
|
858
1004
|
// We use a bespoke data structure here because finalizers can never be
|
859
1005
|
// asynchronous.
|
@@ -862,6 +1008,17 @@ struct StackData {
|
|
862
1008
|
// (to capture ownership of channel data)
|
863
1009
|
std::vector<ChannelDataDestructor> channel_data_destructors;
|
864
1010
|
|
1011
|
+
bool empty() const {
|
1012
|
+
return filter_constructor.empty() && filter_destructor.empty() &&
|
1013
|
+
client_initial_metadata.ops.empty() &&
|
1014
|
+
server_initial_metadata.ops.empty() &&
|
1015
|
+
client_to_server_messages.ops.empty() &&
|
1016
|
+
client_to_server_half_close.empty() &&
|
1017
|
+
server_to_client_messages.ops.empty() &&
|
1018
|
+
server_trailing_metadata.empty() && finalizers.empty() &&
|
1019
|
+
channel_data_destructors.empty();
|
1020
|
+
}
|
1021
|
+
|
865
1022
|
// Add one filter to the list of filters, and update alignment.
|
866
1023
|
// Returns the offset of the call data for this filter.
|
867
1024
|
// Specifically does not update any of the layouts or finalizers.
|
@@ -972,6 +1129,14 @@ struct StackData {
|
|
972
1129
|
channel_data, call_offset, client_to_server_messages);
|
973
1130
|
}
|
974
1131
|
|
1132
|
+
template <typename FilterType>
|
1133
|
+
void AddClientToServerHalfClose(FilterType* channel_data,
|
1134
|
+
size_t call_offset) {
|
1135
|
+
AddHalfClose(channel_data, call_offset,
|
1136
|
+
&FilterType::Call::OnClientToServerHalfClose,
|
1137
|
+
client_to_server_half_close);
|
1138
|
+
}
|
1139
|
+
|
975
1140
|
template <typename FilterType>
|
976
1141
|
void AddServerToClientMessageOp(FilterType* channel_data,
|
977
1142
|
size_t call_offset) {
|
@@ -983,9 +1148,9 @@ struct StackData {
|
|
983
1148
|
template <typename FilterType>
|
984
1149
|
void AddServerTrailingMetadataOp(FilterType* channel_data,
|
985
1150
|
size_t call_offset) {
|
986
|
-
|
987
|
-
|
988
|
-
|
1151
|
+
AddServerTrailingMetadata(channel_data, call_offset,
|
1152
|
+
&FilterType::Call::OnServerTrailingMetadata,
|
1153
|
+
server_trailing_metadata);
|
989
1154
|
}
|
990
1155
|
|
991
1156
|
// Finalizer interception adders
|
@@ -1057,8 +1222,7 @@ class OperationExecutor {
|
|
1057
1222
|
// Start executing a layout. May allocate space to store the relevant promise.
|
1058
1223
|
// Returns the result of the first poll.
|
1059
1224
|
// If the promise finishes, also destroy the promise data.
|
1060
|
-
Poll<ResultOr<T>> Start(const Layout<
|
1061
|
-
void* call_data);
|
1225
|
+
Poll<ResultOr<T>> Start(const Layout<T>* layout, T input, void* call_data);
|
1062
1226
|
// Continue executing a layout. Returns the result of the next poll.
|
1063
1227
|
// If the promise finishes, also destroy the promise data.
|
1064
1228
|
Poll<ResultOr<T>> Step(void* call_data);
|
@@ -1080,134 +1244,79 @@ class OperationExecutor {
|
|
1080
1244
|
Poll<ResultOr<T>> ContinueStep(void* call_data);
|
1081
1245
|
|
1082
1246
|
void* promise_data_ = nullptr;
|
1083
|
-
const
|
1084
|
-
const
|
1247
|
+
const Operator<T>* ops_;
|
1248
|
+
const Operator<T>* end_ops_;
|
1085
1249
|
};
|
1086
1250
|
|
1087
|
-
// Per OperationExecutor, but for infallible operation sequences.
|
1088
1251
|
template <typename T>
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
InfallibleOperationExecutor& operator=(const InfallibleOperationExecutor&) =
|
1095
|
-
delete;
|
1096
|
-
InfallibleOperationExecutor(InfallibleOperationExecutor&& other) noexcept
|
1097
|
-
: ops_(other.ops_), end_ops_(other.end_ops_) {
|
1098
|
-
// Movable iff we're not running.
|
1099
|
-
DCHECK_EQ(other.promise_data_, nullptr);
|
1252
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline OperationExecutor<
|
1253
|
+
T>::~OperationExecutor() {
|
1254
|
+
if (promise_data_ != nullptr) {
|
1255
|
+
ops_->early_destroy(promise_data_);
|
1256
|
+
gpr_free_aligned(promise_data_);
|
1100
1257
|
}
|
1101
|
-
|
1102
|
-
InfallibleOperationExecutor&& other) noexcept {
|
1103
|
-
DCHECK_EQ(other.promise_data_, nullptr);
|
1104
|
-
DCHECK_EQ(promise_data_, nullptr);
|
1105
|
-
ops_ = other.ops_;
|
1106
|
-
end_ops_ = other.end_ops_;
|
1107
|
-
return *this;
|
1108
|
-
}
|
1109
|
-
|
1110
|
-
// IsRunning() is true if we're currently executing a sequence of operations.
|
1111
|
-
bool IsRunning() const { return promise_data_ != nullptr; }
|
1112
|
-
// Start executing a layout. May allocate space to store the relevant promise.
|
1113
|
-
// Returns the result of the first poll.
|
1114
|
-
// If the promise finishes, also destroy the promise data.
|
1115
|
-
Poll<T> Start(const Layout<InfallibleOperator<T>>* layout, T input,
|
1116
|
-
void* call_data);
|
1117
|
-
// Continue executing a layout. Returns the result of the next poll.
|
1118
|
-
// If the promise finishes, also destroy the promise data.
|
1119
|
-
Poll<T> Step(void* call_data);
|
1120
|
-
|
1121
|
-
private:
|
1122
|
-
// Start polling on the current step of the layout.
|
1123
|
-
// `input` is the current value (either the input to the first step, or the
|
1124
|
-
// so far transformed value)
|
1125
|
-
// `call_data` is the call data for the filter stack.
|
1126
|
-
// If this op finishes immediately then we iterative move to the next step.
|
1127
|
-
// If we reach the end up the ops, we return the overall poll result,
|
1128
|
-
// otherwise we return Pending.
|
1129
|
-
Poll<T> InitStep(T input, void* call_data);
|
1130
|
-
// Continue polling on the current step of the layout.
|
1131
|
-
// Called on the next poll after InitStep returns pending.
|
1132
|
-
// If the promise is still pending, returns this.
|
1133
|
-
// If the promise completes we call into InitStep to continue execution
|
1134
|
-
// through the filters.
|
1135
|
-
Poll<T> ContinueStep(void* call_data);
|
1258
|
+
}
|
1136
1259
|
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1260
|
+
template <typename T>
|
1261
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline Poll<ResultOr<T>>
|
1262
|
+
OperationExecutor<T>::Start(const Layout<T>* layout, T input, void* call_data) {
|
1263
|
+
ops_ = layout->ops.data();
|
1264
|
+
end_ops_ = ops_ + layout->ops.size();
|
1265
|
+
if (layout->promise_size == 0) {
|
1266
|
+
// No call state ==> instantaneously ready
|
1267
|
+
auto r = InitStep(std::move(input), call_data);
|
1268
|
+
CHECK(r.ready());
|
1269
|
+
return r;
|
1270
|
+
}
|
1271
|
+
promise_data_ =
|
1272
|
+
gpr_malloc_aligned(layout->promise_size, layout->promise_alignment);
|
1273
|
+
return InitStep(std::move(input), call_data);
|
1274
|
+
}
|
1141
1275
|
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
// Poll for push completion: occurs after the corresponding Pull()
|
1163
|
-
Poll<StatusFlag> PollPush();
|
1164
|
-
// Poll for pull completion; returns Failure{} if closed with error,
|
1165
|
-
// true if a value is available, or false if the pipe was closed without
|
1166
|
-
// error.
|
1167
|
-
Poll<ValueOrFailure<bool>> PollPull();
|
1168
|
-
// A pulled value has been consumed: we can unblock the push
|
1169
|
-
void AckPull();
|
1170
|
-
// A previously started pull operation has completed
|
1171
|
-
void DropPull();
|
1172
|
-
// Close sending
|
1173
|
-
void CloseSending();
|
1174
|
-
// Close sending with error
|
1175
|
-
void CloseWithError();
|
1176
|
-
// Poll for closedness - if true, closed with error
|
1177
|
-
Poll<bool> PollClosed();
|
1178
|
-
|
1179
|
-
bool holds_error() const { return state_ == ValueState::kError; }
|
1276
|
+
template <typename T>
|
1277
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline Poll<ResultOr<T>>
|
1278
|
+
OperationExecutor<T>::InitStep(T input, void* call_data) {
|
1279
|
+
CHECK(input != nullptr);
|
1280
|
+
while (true) {
|
1281
|
+
if (ops_ == end_ops_) {
|
1282
|
+
return ResultOr<T>{std::move(input), nullptr};
|
1283
|
+
}
|
1284
|
+
auto p =
|
1285
|
+
ops_->promise_init(promise_data_, Offset(call_data, ops_->call_offset),
|
1286
|
+
ops_->channel_data, std::move(input));
|
1287
|
+
if (auto* r = p.value_if_ready()) {
|
1288
|
+
if (r->ok == nullptr) return std::move(*r);
|
1289
|
+
input = std::move(r->ok);
|
1290
|
+
++ops_;
|
1291
|
+
continue;
|
1292
|
+
}
|
1293
|
+
return Pending{};
|
1294
|
+
}
|
1295
|
+
}
|
1180
1296
|
|
1181
|
-
|
1297
|
+
template <typename T>
|
1298
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline Poll<ResultOr<T>>
|
1299
|
+
OperationExecutor<T>::Step(void* call_data) {
|
1300
|
+
DCHECK_NE(promise_data_, nullptr);
|
1301
|
+
auto p = ContinueStep(call_data);
|
1302
|
+
if (p.ready()) {
|
1303
|
+
gpr_free_aligned(promise_data_);
|
1304
|
+
promise_data_ = nullptr;
|
1305
|
+
}
|
1306
|
+
return p;
|
1307
|
+
}
|
1182
1308
|
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
kReady,
|
1195
|
-
// Processing through filters
|
1196
|
-
kProcessing,
|
1197
|
-
// Closed sending
|
1198
|
-
kClosed,
|
1199
|
-
// Closed due to failure
|
1200
|
-
kError
|
1201
|
-
};
|
1202
|
-
// Waiter for a promise blocked waiting to send.
|
1203
|
-
IntraActivityWaiter wait_send_;
|
1204
|
-
// Waiter for a promise blocked waiting to receive.
|
1205
|
-
IntraActivityWaiter wait_recv_;
|
1206
|
-
// Current state.
|
1207
|
-
ValueState state_ = ValueState::kIdle;
|
1208
|
-
// Has the pipe been started?
|
1209
|
-
bool started_ = false;
|
1210
|
-
};
|
1309
|
+
template <typename T>
|
1310
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION inline Poll<ResultOr<T>>
|
1311
|
+
OperationExecutor<T>::ContinueStep(void* call_data) {
|
1312
|
+
auto p = ops_->poll(promise_data_);
|
1313
|
+
if (auto* r = p.value_if_ready()) {
|
1314
|
+
if (r->ok == nullptr) return std::move(*r);
|
1315
|
+
++ops_;
|
1316
|
+
return InitStep(std::move(r->ok), call_data);
|
1317
|
+
}
|
1318
|
+
return Pending{};
|
1319
|
+
}
|
1211
1320
|
|
1212
1321
|
template <typename Fn>
|
1213
1322
|
class ServerTrailingMetadataInterceptor {
|
@@ -1217,6 +1326,7 @@ class ServerTrailingMetadataInterceptor {
|
|
1217
1326
|
static const NoInterceptor OnClientInitialMetadata;
|
1218
1327
|
static const NoInterceptor OnServerInitialMetadata;
|
1219
1328
|
static const NoInterceptor OnClientToServerMessage;
|
1329
|
+
static const NoInterceptor OnClientToServerHalfClose;
|
1220
1330
|
static const NoInterceptor OnServerToClientMessage;
|
1221
1331
|
static const NoInterceptor OnFinalize;
|
1222
1332
|
void OnServerTrailingMetadata(ServerMetadata& md,
|
@@ -1240,13 +1350,130 @@ template <typename Fn>
|
|
1240
1350
|
const NoInterceptor
|
1241
1351
|
ServerTrailingMetadataInterceptor<Fn>::Call::OnClientToServerMessage;
|
1242
1352
|
template <typename Fn>
|
1353
|
+
const NoInterceptor
|
1354
|
+
ServerTrailingMetadataInterceptor<Fn>::Call::OnClientToServerHalfClose;
|
1355
|
+
template <typename Fn>
|
1243
1356
|
const NoInterceptor
|
1244
1357
|
ServerTrailingMetadataInterceptor<Fn>::Call::OnServerToClientMessage;
|
1245
1358
|
template <typename Fn>
|
1246
1359
|
const NoInterceptor ServerTrailingMetadataInterceptor<Fn>::Call::OnFinalize;
|
1247
1360
|
|
1361
|
+
template <typename Fn>
|
1362
|
+
class ClientInitialMetadataInterceptor {
|
1363
|
+
public:
|
1364
|
+
class Call {
|
1365
|
+
public:
|
1366
|
+
auto OnClientInitialMetadata(ClientMetadata& md,
|
1367
|
+
ClientInitialMetadataInterceptor* filter) {
|
1368
|
+
return filter->fn_(md);
|
1369
|
+
}
|
1370
|
+
static const NoInterceptor OnServerInitialMetadata;
|
1371
|
+
static const NoInterceptor OnClientToServerMessage;
|
1372
|
+
static const NoInterceptor OnClientToServerHalfClose;
|
1373
|
+
static const NoInterceptor OnServerToClientMessage;
|
1374
|
+
static const NoInterceptor OnServerTrailingMetadata;
|
1375
|
+
static const NoInterceptor OnFinalize;
|
1376
|
+
};
|
1377
|
+
|
1378
|
+
explicit ClientInitialMetadataInterceptor(Fn fn) : fn_(std::move(fn)) {}
|
1379
|
+
|
1380
|
+
private:
|
1381
|
+
GPR_NO_UNIQUE_ADDRESS Fn fn_;
|
1382
|
+
};
|
1383
|
+
template <typename Fn>
|
1384
|
+
const NoInterceptor
|
1385
|
+
ClientInitialMetadataInterceptor<Fn>::Call::OnServerInitialMetadata;
|
1386
|
+
template <typename Fn>
|
1387
|
+
const NoInterceptor
|
1388
|
+
ClientInitialMetadataInterceptor<Fn>::Call::OnClientToServerMessage;
|
1389
|
+
template <typename Fn>
|
1390
|
+
const NoInterceptor
|
1391
|
+
ClientInitialMetadataInterceptor<Fn>::Call::OnClientToServerHalfClose;
|
1392
|
+
template <typename Fn>
|
1393
|
+
const NoInterceptor
|
1394
|
+
ClientInitialMetadataInterceptor<Fn>::Call::OnServerToClientMessage;
|
1395
|
+
template <typename Fn>
|
1396
|
+
const NoInterceptor
|
1397
|
+
ClientInitialMetadataInterceptor<Fn>::Call::OnServerTrailingMetadata;
|
1398
|
+
template <typename Fn>
|
1399
|
+
const NoInterceptor ClientInitialMetadataInterceptor<Fn>::Call::OnFinalize;
|
1400
|
+
|
1248
1401
|
} // namespace filters_detail
|
1249
1402
|
|
1403
|
+
namespace for_each_detail {
|
1404
|
+
template <void (CallState::*on_progress)()>
|
1405
|
+
struct NextValueTraits<filters_detail::NextMessage<on_progress>> {
|
1406
|
+
using NextMsg = filters_detail::NextMessage<on_progress>;
|
1407
|
+
using Value = MessageHandle;
|
1408
|
+
|
1409
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION static NextValueType Type(
|
1410
|
+
const NextMsg& t) {
|
1411
|
+
if (!t.ok()) return NextValueType::kError;
|
1412
|
+
if (t.has_value()) return NextValueType::kValue;
|
1413
|
+
return NextValueType::kEndOfStream;
|
1414
|
+
}
|
1415
|
+
|
1416
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION static MessageHandle TakeValue(
|
1417
|
+
NextMsg& t) {
|
1418
|
+
return t.TakeValue();
|
1419
|
+
}
|
1420
|
+
};
|
1421
|
+
} // namespace for_each_detail
|
1422
|
+
|
1423
|
+
template <void (CallState::*on_progress)()>
|
1424
|
+
struct FailureStatusCastImpl<filters_detail::NextMessage<on_progress>,
|
1425
|
+
StatusFlag> {
|
1426
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION static filters_detail::NextMessage<
|
1427
|
+
on_progress>
|
1428
|
+
Cast(StatusFlag flag) {
|
1429
|
+
DCHECK_EQ(flag, Failure{});
|
1430
|
+
return filters_detail::NextMessage<on_progress>(Failure{});
|
1431
|
+
}
|
1432
|
+
};
|
1433
|
+
|
1434
|
+
namespace promise_detail {
|
1435
|
+
template <void (CallState::*on_progress)()>
|
1436
|
+
struct TrySeqTraitsWithSfinae<filters_detail::NextMessage<on_progress>> {
|
1437
|
+
using UnwrappedType = MessageHandle;
|
1438
|
+
using WrappedType = filters_detail::NextMessage<on_progress>;
|
1439
|
+
template <typename Next>
|
1440
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION static auto CallFactory(
|
1441
|
+
Next* next, WrappedType&& value) {
|
1442
|
+
return next->Make(value.TakeValue());
|
1443
|
+
}
|
1444
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION static bool IsOk(
|
1445
|
+
const WrappedType& value) {
|
1446
|
+
return value.ok();
|
1447
|
+
}
|
1448
|
+
static const char* ErrorString(const WrappedType& status) {
|
1449
|
+
DCHECK(!status.ok());
|
1450
|
+
return "failed";
|
1451
|
+
}
|
1452
|
+
template <typename R>
|
1453
|
+
static R ReturnValue(WrappedType&& status) {
|
1454
|
+
DCHECK(!status.ok());
|
1455
|
+
return WrappedType(Failure{});
|
1456
|
+
}
|
1457
|
+
template <typename F, typename Elem>
|
1458
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION static auto CallSeqFactory(
|
1459
|
+
F& f, Elem&& elem, WrappedType value)
|
1460
|
+
-> decltype(f(std::forward<Elem>(elem), std::declval<MessageHandle>())) {
|
1461
|
+
return f(std::forward<Elem>(elem), value.TakeValue());
|
1462
|
+
}
|
1463
|
+
template <typename Result, typename RunNext>
|
1464
|
+
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION static Poll<Result>
|
1465
|
+
CheckResultAndRunNext(WrappedType prior, RunNext run_next) {
|
1466
|
+
if (!prior.ok()) return WrappedType(prior.status());
|
1467
|
+
return run_next(std::move(prior));
|
1468
|
+
}
|
1469
|
+
};
|
1470
|
+
} // namespace promise_detail
|
1471
|
+
|
1472
|
+
using ServerToClientNextMessage =
|
1473
|
+
filters_detail::NextMessage<&CallState::FinishPullServerToClientMessage>;
|
1474
|
+
using ClientToServerNextMessage =
|
1475
|
+
filters_detail::NextMessage<&CallState::FinishPullClientToServerMessage>;
|
1476
|
+
|
1250
1477
|
// Execution environment for a stack of filters.
|
1251
1478
|
// This is a per-call object.
|
1252
1479
|
class CallFilters {
|
@@ -1283,6 +1510,7 @@ class CallFilters {
|
|
1283
1510
|
data_.AddClientInitialMetadataOp(filter, call_offset);
|
1284
1511
|
data_.AddServerInitialMetadataOp(filter, call_offset);
|
1285
1512
|
data_.AddClientToServerMessageOp(filter, call_offset);
|
1513
|
+
data_.AddClientToServerHalfClose(filter, call_offset);
|
1286
1514
|
data_.AddServerToClientMessageOp(filter, call_offset);
|
1287
1515
|
data_.AddServerTrailingMetadataOp(filter, call_offset);
|
1288
1516
|
data_.AddFinalizer(filter, call_offset, &FilterType::Call::OnFinalize);
|
@@ -1302,6 +1530,14 @@ class CallFilters {
|
|
1302
1530
|
AddOwnedObject([](void* p) { delete static_cast<T*>(p); }, p.release());
|
1303
1531
|
}
|
1304
1532
|
|
1533
|
+
template <typename Fn>
|
1534
|
+
void AddOnClientInitialMetadata(Fn fn) {
|
1535
|
+
auto filter = std::make_unique<
|
1536
|
+
filters_detail::ClientInitialMetadataInterceptor<Fn>>(std::move(fn));
|
1537
|
+
Add(filter.get());
|
1538
|
+
AddOwnedObject(std::move(filter));
|
1539
|
+
}
|
1540
|
+
|
1305
1541
|
template <typename Fn>
|
1306
1542
|
void AddOnServerTrailingMetadata(Fn fn) {
|
1307
1543
|
auto filter = std::make_unique<
|
@@ -1316,50 +1552,260 @@ class CallFilters {
|
|
1316
1552
|
filters_detail::StackData data_;
|
1317
1553
|
};
|
1318
1554
|
|
1319
|
-
explicit CallFilters(ClientMetadataHandle client_initial_metadata)
|
1320
|
-
|
1555
|
+
explicit CallFilters(ClientMetadataHandle client_initial_metadata)
|
1556
|
+
: call_data_(nullptr),
|
1557
|
+
push_client_initial_metadata_(std::move(client_initial_metadata)) {}
|
1558
|
+
~CallFilters() {
|
1559
|
+
if (call_data_ != nullptr && call_data_ != &g_empty_call_data_) {
|
1560
|
+
for (const auto& stack : stacks_) {
|
1561
|
+
for (const auto& destructor : stack.stack->data_.filter_destructor) {
|
1562
|
+
destructor.call_destroy(filters_detail::Offset(
|
1563
|
+
call_data_, stack.call_data_offset + destructor.call_offset));
|
1564
|
+
}
|
1565
|
+
}
|
1566
|
+
gpr_free_aligned(call_data_);
|
1567
|
+
}
|
1568
|
+
};
|
1321
1569
|
|
1322
1570
|
CallFilters(const CallFilters&) = delete;
|
1323
1571
|
CallFilters& operator=(const CallFilters&) = delete;
|
1324
1572
|
CallFilters(CallFilters&&) = delete;
|
1325
1573
|
CallFilters& operator=(CallFilters&&) = delete;
|
1326
1574
|
|
1327
|
-
void
|
1575
|
+
void AddStack(RefCountedPtr<Stack> stack) {
|
1576
|
+
if (stack->data_.empty()) return;
|
1577
|
+
stacks_.emplace_back(std::move(stack));
|
1578
|
+
}
|
1579
|
+
void Start();
|
1328
1580
|
|
1329
1581
|
// Access client initial metadata before it's processed
|
1330
1582
|
ClientMetadata* unprocessed_client_initial_metadata() {
|
1331
|
-
return
|
1583
|
+
return push_client_initial_metadata_.get();
|
1332
1584
|
}
|
1333
1585
|
|
1586
|
+
private:
|
1587
|
+
template <typename Output, typename Input,
|
1588
|
+
Input(CallFilters::*input_location),
|
1589
|
+
filters_detail::Layout<Input>(filters_detail::StackData::*layout),
|
1590
|
+
void (CallState::*on_done)(), typename StackIterator>
|
1591
|
+
class MetadataExecutor {
|
1592
|
+
public:
|
1593
|
+
MetadataExecutor(CallFilters* filters, StackIterator stack_begin,
|
1594
|
+
StackIterator stack_end)
|
1595
|
+
: stack_current_(stack_begin),
|
1596
|
+
stack_end_(stack_end),
|
1597
|
+
filters_(filters) {
|
1598
|
+
DCHECK_NE((filters_->*input_location).get(), nullptr);
|
1599
|
+
}
|
1600
|
+
|
1601
|
+
Poll<ValueOrFailure<Output>> operator()() {
|
1602
|
+
if ((filters_->*input_location) != nullptr) {
|
1603
|
+
if (stack_current_ == stack_end_) {
|
1604
|
+
DCHECK_NE((filters_->*input_location).get(), nullptr);
|
1605
|
+
(filters_->call_state_.*on_done)();
|
1606
|
+
return Output(std::move(filters_->*input_location));
|
1607
|
+
}
|
1608
|
+
return FinishStep(executor_.Start(
|
1609
|
+
&(stack_current_->stack->data_.*layout),
|
1610
|
+
std::move(filters_->*input_location), filters_->call_data_));
|
1611
|
+
} else {
|
1612
|
+
return FinishStep(executor_.Step(filters_->call_data_));
|
1613
|
+
}
|
1614
|
+
}
|
1615
|
+
|
1616
|
+
private:
|
1617
|
+
Poll<ValueOrFailure<Output>> FinishStep(
|
1618
|
+
Poll<filters_detail::ResultOr<Input>> p) {
|
1619
|
+
auto* r = p.value_if_ready();
|
1620
|
+
if (r == nullptr) return Pending{};
|
1621
|
+
if (r->ok != nullptr) {
|
1622
|
+
++stack_current_;
|
1623
|
+
if (stack_current_ == stack_end_) {
|
1624
|
+
(filters_->call_state_.*on_done)();
|
1625
|
+
return ValueOrFailure<Output>{std::move(r->ok)};
|
1626
|
+
}
|
1627
|
+
return FinishStep(
|
1628
|
+
executor_.Start(&(stack_current_->stack->data_.*layout),
|
1629
|
+
std::move(r->ok), filters_->call_data_));
|
1630
|
+
}
|
1631
|
+
(filters_->call_state_.*on_done)();
|
1632
|
+
filters_->PushServerTrailingMetadata(std::move(r->error));
|
1633
|
+
return Failure{};
|
1634
|
+
}
|
1635
|
+
|
1636
|
+
StackIterator stack_current_;
|
1637
|
+
StackIterator stack_end_;
|
1638
|
+
CallFilters* filters_;
|
1639
|
+
filters_detail::OperationExecutor<Input> executor_;
|
1640
|
+
};
|
1641
|
+
|
1642
|
+
template <MessageHandle(CallFilters::*input_location),
|
1643
|
+
filters_detail::Layout<MessageHandle>(
|
1644
|
+
filters_detail::StackData::*layout),
|
1645
|
+
void (CallState::*on_done)(), typename StackIterator>
|
1646
|
+
class MessageExecutor {
|
1647
|
+
public:
|
1648
|
+
using NextMsg = filters_detail::NextMessage<on_done>;
|
1649
|
+
|
1650
|
+
MessageExecutor(CallFilters* filters, StackIterator stack_begin,
|
1651
|
+
StackIterator stack_end)
|
1652
|
+
: stack_current_(stack_begin),
|
1653
|
+
stack_end_(stack_end),
|
1654
|
+
filters_(filters) {
|
1655
|
+
DCHECK_NE((filters_->*input_location).get(), nullptr);
|
1656
|
+
}
|
1657
|
+
|
1658
|
+
Poll<NextMsg> operator()() {
|
1659
|
+
if ((filters_->*input_location) != nullptr) {
|
1660
|
+
if (stack_current_ == stack_end_) {
|
1661
|
+
DCHECK_NE((filters_->*input_location).get(), nullptr);
|
1662
|
+
return NextMsg(std::move(filters_->*input_location),
|
1663
|
+
&filters_->call_state_);
|
1664
|
+
}
|
1665
|
+
return FinishStep(executor_.Start(
|
1666
|
+
&(stack_current_->stack->data_.*layout),
|
1667
|
+
std::move(filters_->*input_location), filters_->call_data_));
|
1668
|
+
} else {
|
1669
|
+
return FinishStep(executor_.Step(filters_->call_data_));
|
1670
|
+
}
|
1671
|
+
}
|
1672
|
+
|
1673
|
+
private:
|
1674
|
+
Poll<NextMsg> FinishStep(Poll<filters_detail::ResultOr<MessageHandle>> p) {
|
1675
|
+
auto* r = p.value_if_ready();
|
1676
|
+
if (r == nullptr) return Pending{};
|
1677
|
+
if (r->ok != nullptr) {
|
1678
|
+
++stack_current_;
|
1679
|
+
if (stack_current_ == stack_end_) {
|
1680
|
+
return NextMsg{std::move(r->ok), &filters_->call_state_};
|
1681
|
+
}
|
1682
|
+
return FinishStep(
|
1683
|
+
executor_.Start(&(stack_current_->stack->data_.*layout),
|
1684
|
+
std::move(r->ok), filters_->call_data_));
|
1685
|
+
}
|
1686
|
+
(filters_->call_state_.*on_done)();
|
1687
|
+
filters_->PushServerTrailingMetadata(std::move(r->error));
|
1688
|
+
return Failure{};
|
1689
|
+
}
|
1690
|
+
|
1691
|
+
StackIterator stack_current_;
|
1692
|
+
StackIterator stack_end_;
|
1693
|
+
CallFilters* filters_;
|
1694
|
+
filters_detail::OperationExecutor<MessageHandle> executor_;
|
1695
|
+
};
|
1696
|
+
|
1697
|
+
public:
|
1334
1698
|
// Client: Fetch client initial metadata
|
1335
1699
|
// Returns a promise that resolves to ValueOrFailure<ClientMetadataHandle>
|
1336
|
-
GRPC_MUST_USE_RESULT auto PullClientInitialMetadata()
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1700
|
+
GRPC_MUST_USE_RESULT auto PullClientInitialMetadata() {
|
1701
|
+
call_state_.BeginPullClientInitialMetadata();
|
1702
|
+
return MetadataExecutor<ClientMetadataHandle, ClientMetadataHandle,
|
1703
|
+
&CallFilters::push_client_initial_metadata_,
|
1704
|
+
&filters_detail::StackData::client_initial_metadata,
|
1705
|
+
&CallState::FinishPullClientInitialMetadata,
|
1706
|
+
StacksVector::const_iterator>(
|
1707
|
+
this, stacks_.cbegin(), stacks_.cend());
|
1340
1708
|
}
|
1341
1709
|
// Server: Push server initial metadata
|
1342
1710
|
// Returns a promise that resolves to a StatusFlag indicating success
|
1343
|
-
|
1711
|
+
StatusFlag PushServerInitialMetadata(ServerMetadataHandle md) {
|
1712
|
+
push_server_initial_metadata_ = std::move(md);
|
1713
|
+
return call_state_.PushServerInitialMetadata();
|
1714
|
+
}
|
1344
1715
|
// Client: Fetch server initial metadata
|
1345
1716
|
// Returns a promise that resolves to ValueOrFailure<ServerMetadataHandle>
|
1346
|
-
GRPC_MUST_USE_RESULT auto PullServerInitialMetadata()
|
1717
|
+
GRPC_MUST_USE_RESULT auto PullServerInitialMetadata() {
|
1718
|
+
return Seq(
|
1719
|
+
[this]() {
|
1720
|
+
return call_state_.PollPullServerInitialMetadataAvailable();
|
1721
|
+
},
|
1722
|
+
[this](bool has_server_initial_metadata) {
|
1723
|
+
return If(
|
1724
|
+
has_server_initial_metadata,
|
1725
|
+
[this]() {
|
1726
|
+
return Map(
|
1727
|
+
MetadataExecutor<
|
1728
|
+
absl::optional<ServerMetadataHandle>,
|
1729
|
+
ServerMetadataHandle,
|
1730
|
+
&CallFilters::push_server_initial_metadata_,
|
1731
|
+
&filters_detail::StackData::server_initial_metadata,
|
1732
|
+
&CallState::FinishPullServerInitialMetadata,
|
1733
|
+
StacksVector::const_reverse_iterator>(
|
1734
|
+
this, stacks_.crbegin(), stacks_.crend()),
|
1735
|
+
[](ValueOrFailure<absl::optional<ServerMetadataHandle>> r) {
|
1736
|
+
if (r.ok()) return std::move(*r);
|
1737
|
+
return absl::optional<ServerMetadataHandle>{};
|
1738
|
+
});
|
1739
|
+
},
|
1740
|
+
[]() {
|
1741
|
+
return Immediate(absl::optional<ServerMetadataHandle>{});
|
1742
|
+
});
|
1743
|
+
});
|
1744
|
+
}
|
1347
1745
|
// Client: Push client to server message
|
1348
1746
|
// Returns a promise that resolves to a StatusFlag indicating success
|
1349
|
-
GRPC_MUST_USE_RESULT auto PushClientToServerMessage(MessageHandle message)
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1747
|
+
GRPC_MUST_USE_RESULT auto PushClientToServerMessage(MessageHandle message) {
|
1748
|
+
call_state_.BeginPushClientToServerMessage();
|
1749
|
+
DCHECK_NE(message.get(), nullptr);
|
1750
|
+
DCHECK_EQ(push_client_to_server_message_.get(), nullptr);
|
1751
|
+
push_client_to_server_message_ = std::move(message);
|
1752
|
+
return [this]() { return call_state_.PollPushClientToServerMessage(); };
|
1353
1753
|
}
|
1754
|
+
// Client: Indicate that no more messages will be sent
|
1755
|
+
void FinishClientToServerSends() { call_state_.ClientToServerHalfClose(); }
|
1354
1756
|
// Server: Fetch client to server message
|
1355
|
-
// Returns a promise that resolves to
|
1356
|
-
GRPC_MUST_USE_RESULT auto PullClientToServerMessage()
|
1757
|
+
// Returns a promise that resolves to ClientToServerNextMessage
|
1758
|
+
GRPC_MUST_USE_RESULT auto PullClientToServerMessage() {
|
1759
|
+
return TrySeq(
|
1760
|
+
[this]() {
|
1761
|
+
return call_state_.PollPullClientToServerMessageAvailable();
|
1762
|
+
},
|
1763
|
+
[this](bool message_available) {
|
1764
|
+
return If(
|
1765
|
+
message_available,
|
1766
|
+
[this]() {
|
1767
|
+
return MessageExecutor<
|
1768
|
+
&CallFilters::push_client_to_server_message_,
|
1769
|
+
&filters_detail::StackData::client_to_server_messages,
|
1770
|
+
&CallState::FinishPullClientToServerMessage,
|
1771
|
+
StacksVector::const_iterator>(this, stacks_.cbegin(),
|
1772
|
+
stacks_.cend());
|
1773
|
+
},
|
1774
|
+
[]() -> ClientToServerNextMessage {
|
1775
|
+
return ClientToServerNextMessage();
|
1776
|
+
});
|
1777
|
+
});
|
1778
|
+
}
|
1357
1779
|
// Server: Push server to client message
|
1358
1780
|
// Returns a promise that resolves to a StatusFlag indicating success
|
1359
|
-
GRPC_MUST_USE_RESULT auto PushServerToClientMessage(MessageHandle message)
|
1781
|
+
GRPC_MUST_USE_RESULT auto PushServerToClientMessage(MessageHandle message) {
|
1782
|
+
call_state_.BeginPushServerToClientMessage();
|
1783
|
+
push_server_to_client_message_ = std::move(message);
|
1784
|
+
return [this]() { return call_state_.PollPushServerToClientMessage(); };
|
1785
|
+
}
|
1360
1786
|
// Server: Fetch server to client message
|
1361
|
-
// Returns a promise that resolves to
|
1362
|
-
GRPC_MUST_USE_RESULT auto PullServerToClientMessage()
|
1787
|
+
// Returns a promise that resolves to ServerToClientNextMessage
|
1788
|
+
GRPC_MUST_USE_RESULT auto PullServerToClientMessage() {
|
1789
|
+
return TrySeq(
|
1790
|
+
[this]() {
|
1791
|
+
return call_state_.PollPullServerToClientMessageAvailable();
|
1792
|
+
},
|
1793
|
+
[this](bool message_available) {
|
1794
|
+
return If(
|
1795
|
+
message_available,
|
1796
|
+
[this]() {
|
1797
|
+
return MessageExecutor<
|
1798
|
+
&CallFilters::push_server_to_client_message_,
|
1799
|
+
&filters_detail::StackData::server_to_client_messages,
|
1800
|
+
&CallState::FinishPullServerToClientMessage,
|
1801
|
+
StacksVector::const_reverse_iterator>(
|
1802
|
+
this, stacks_.crbegin(), stacks_.crend());
|
1803
|
+
},
|
1804
|
+
[]() -> ServerToClientNextMessage {
|
1805
|
+
return ServerToClientNextMessage();
|
1806
|
+
});
|
1807
|
+
});
|
1808
|
+
}
|
1363
1809
|
// Server: Indicate end of response
|
1364
1810
|
// Closes the request entirely - no messages can be sent/received
|
1365
1811
|
// If no server initial metadata has been sent, implies
|
@@ -1367,482 +1813,86 @@ class CallFilters {
|
|
1367
1813
|
void PushServerTrailingMetadata(ServerMetadataHandle md);
|
1368
1814
|
// Client: Fetch server trailing metadata
|
1369
1815
|
// Returns a promise that resolves to ServerMetadataHandle
|
1370
|
-
GRPC_MUST_USE_RESULT auto PullServerTrailingMetadata()
|
1816
|
+
GRPC_MUST_USE_RESULT auto PullServerTrailingMetadata() {
|
1817
|
+
return Map(
|
1818
|
+
[this]() { return call_state_.PollServerTrailingMetadataAvailable(); },
|
1819
|
+
[this](Empty) {
|
1820
|
+
auto value = std::move(push_server_trailing_metadata_);
|
1821
|
+
if (call_data_ != nullptr) {
|
1822
|
+
for (auto it = stacks_.crbegin(); it != stacks_.crend(); ++it) {
|
1823
|
+
value = filters_detail::RunServerTrailingMetadata(
|
1824
|
+
it->stack->data_.server_trailing_metadata,
|
1825
|
+
filters_detail::Offset(call_data_, it->call_data_offset),
|
1826
|
+
std::move(value));
|
1827
|
+
}
|
1828
|
+
}
|
1829
|
+
return value;
|
1830
|
+
});
|
1831
|
+
}
|
1371
1832
|
// Server: Wait for server trailing metadata to have been sent
|
1372
1833
|
// Returns a promise that resolves to a StatusFlag indicating whether the
|
1373
1834
|
// request was cancelled or not -- failure to send trailing metadata is
|
1374
1835
|
// considered a cancellation, as is actual cancellation -- but not application
|
1375
1836
|
// errors.
|
1376
|
-
GRPC_MUST_USE_RESULT auto WasCancelled()
|
1837
|
+
GRPC_MUST_USE_RESULT auto WasCancelled() {
|
1838
|
+
return [this]() { return call_state_.PollWasCancelled(); };
|
1839
|
+
}
|
1840
|
+
// Client & server: returns true if server trailing metadata has been pushed
|
1841
|
+
// *and* contained a cancellation, false otherwise.
|
1842
|
+
GRPC_MUST_USE_RESULT bool WasCancelledPushed() const {
|
1843
|
+
return call_state_.WasCancelledPushed();
|
1844
|
+
}
|
1845
|
+
|
1846
|
+
// Returns true if server trailing metadata has been pulled
|
1847
|
+
bool WasServerTrailingMetadataPulled() const {
|
1848
|
+
return call_state_.WasServerTrailingMetadataPulled();
|
1849
|
+
}
|
1850
|
+
|
1377
1851
|
// Client & server: fill in final_info with the final status of the call.
|
1378
1852
|
void Finalize(const grpc_call_final_info* final_info);
|
1379
1853
|
|
1380
1854
|
std::string DebugString() const;
|
1381
1855
|
|
1382
1856
|
private:
|
1383
|
-
|
1384
|
-
void*(CallFilters::*push_ptr), typename T,
|
1385
|
-
filters_detail::Layout<filters_detail::FallibleOperator<T>>(
|
1386
|
-
filters_detail::StackData::*layout_ptr)>
|
1387
|
-
class PipePromise {
|
1388
|
-
public:
|
1389
|
-
class Push {
|
1390
|
-
public:
|
1391
|
-
Push(CallFilters* filters, T x)
|
1392
|
-
: filters_(filters), value_(std::move(x)) {
|
1393
|
-
CHECK(value_ != nullptr);
|
1394
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1395
|
-
gpr_log(GPR_INFO, "BeginPush[%p|%p]: %s", &state(), this,
|
1396
|
-
state().DebugString().c_str());
|
1397
|
-
}
|
1398
|
-
CHECK_EQ(push_slot(), nullptr);
|
1399
|
-
state().BeginPush();
|
1400
|
-
push_slot() = this;
|
1401
|
-
}
|
1402
|
-
~Push() {
|
1403
|
-
if (filters_ != nullptr) {
|
1404
|
-
if (value_ != nullptr) {
|
1405
|
-
state().DropPush();
|
1406
|
-
}
|
1407
|
-
CHECK(push_slot() == this);
|
1408
|
-
push_slot() = nullptr;
|
1409
|
-
}
|
1410
|
-
}
|
1411
|
-
|
1412
|
-
Push(const Push&) = delete;
|
1413
|
-
Push& operator=(const Push&) = delete;
|
1414
|
-
Push(Push&& other) noexcept
|
1415
|
-
: filters_(std::exchange(other.filters_, nullptr)),
|
1416
|
-
value_(std::move(other.value_)) {
|
1417
|
-
if (filters_ != nullptr) {
|
1418
|
-
DCHECK(push_slot() == &other);
|
1419
|
-
push_slot() = this;
|
1420
|
-
}
|
1421
|
-
}
|
1422
|
-
|
1423
|
-
Push& operator=(Push&&) = delete;
|
1424
|
-
|
1425
|
-
Poll<StatusFlag> operator()() {
|
1426
|
-
if (value_ == nullptr) {
|
1427
|
-
CHECK_EQ(filters_, nullptr);
|
1428
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1429
|
-
gpr_log(GPR_INFO, "Push[|%p]: already done", this);
|
1430
|
-
}
|
1431
|
-
return Success{};
|
1432
|
-
}
|
1433
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1434
|
-
gpr_log(GPR_INFO, "Push[%p|%p]: %s", &state(), this,
|
1435
|
-
state().DebugString().c_str());
|
1436
|
-
}
|
1437
|
-
auto r = state().PollPush();
|
1438
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1439
|
-
if (r.pending()) {
|
1440
|
-
gpr_log(GPR_INFO, "Push[%p|%p]: pending; %s", &state(), this,
|
1441
|
-
state().DebugString().c_str());
|
1442
|
-
} else if (r.value().ok()) {
|
1443
|
-
gpr_log(GPR_INFO, "Push[%p|%p]: success; %s", &state(), this,
|
1444
|
-
state().DebugString().c_str());
|
1445
|
-
} else {
|
1446
|
-
gpr_log(GPR_INFO, "Push[%p|%p]: failure; %s", &state(), this,
|
1447
|
-
state().DebugString().c_str());
|
1448
|
-
}
|
1449
|
-
}
|
1450
|
-
if (r.ready()) {
|
1451
|
-
push_slot() = nullptr;
|
1452
|
-
filters_ = nullptr;
|
1453
|
-
}
|
1454
|
-
return r;
|
1455
|
-
}
|
1456
|
-
|
1457
|
-
T TakeValue() {
|
1458
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1459
|
-
gpr_log(GPR_INFO, "Push[%p|%p]: take value; %s", &state(), this,
|
1460
|
-
state().DebugString().c_str());
|
1461
|
-
}
|
1462
|
-
CHECK(value_ != nullptr);
|
1463
|
-
CHECK(filters_ != nullptr);
|
1464
|
-
push_slot() = nullptr;
|
1465
|
-
filters_ = nullptr;
|
1466
|
-
return std::move(value_);
|
1467
|
-
}
|
1468
|
-
|
1469
|
-
absl::string_view DebugString() const {
|
1470
|
-
return value_ != nullptr ? " (not pulled)" : "";
|
1471
|
-
}
|
1472
|
-
|
1473
|
-
private:
|
1474
|
-
filters_detail::PipeState& state() { return filters_->*state_ptr; }
|
1475
|
-
void*& push_slot() { return filters_->*push_ptr; }
|
1476
|
-
|
1477
|
-
CallFilters* filters_;
|
1478
|
-
T value_;
|
1479
|
-
};
|
1480
|
-
|
1481
|
-
static std::string DebugString(absl::string_view name,
|
1482
|
-
const CallFilters* filters) {
|
1483
|
-
auto* push = static_cast<Push*>(filters->*push_ptr);
|
1484
|
-
return absl::StrCat(name, ":", (filters->*state_ptr).DebugString(),
|
1485
|
-
push == nullptr ? "" : push->DebugString());
|
1486
|
-
}
|
1487
|
-
|
1488
|
-
class PullMaybe {
|
1489
|
-
public:
|
1490
|
-
explicit PullMaybe(CallFilters* filters) : filters_(filters) {}
|
1491
|
-
~PullMaybe() {
|
1492
|
-
if (filters_ != nullptr) {
|
1493
|
-
state().DropPull();
|
1494
|
-
}
|
1495
|
-
}
|
1496
|
-
|
1497
|
-
PullMaybe(const PullMaybe&) = delete;
|
1498
|
-
PullMaybe& operator=(const PullMaybe&) = delete;
|
1499
|
-
PullMaybe(PullMaybe&& other) noexcept
|
1500
|
-
: filters_(std::exchange(other.filters_, nullptr)),
|
1501
|
-
executor_(std::move(other.executor_)) {}
|
1502
|
-
PullMaybe& operator=(PullMaybe&&) = delete;
|
1503
|
-
|
1504
|
-
Poll<ValueOrFailure<absl::optional<T>>> operator()() {
|
1505
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1506
|
-
gpr_log(GPR_INFO, "PullMaybe[%p|%p]: %s executor:%d", &state(), this,
|
1507
|
-
state().DebugString().c_str(), executor_.IsRunning());
|
1508
|
-
}
|
1509
|
-
if (executor_.IsRunning()) {
|
1510
|
-
auto c = state().PollClosed();
|
1511
|
-
if (c.ready() && c.value()) {
|
1512
|
-
filters_->CancelDueToFailedPipeOperation();
|
1513
|
-
return Failure{};
|
1514
|
-
}
|
1515
|
-
return FinishOperationExecutor(executor_.Step(filters_->call_data_));
|
1516
|
-
}
|
1517
|
-
auto p = state().PollPull();
|
1518
|
-
auto* r = p.value_if_ready();
|
1519
|
-
if (r == nullptr) return Pending{};
|
1520
|
-
if (!r->ok()) {
|
1521
|
-
filters_->CancelDueToFailedPipeOperation();
|
1522
|
-
return Failure{};
|
1523
|
-
}
|
1524
|
-
if (!**r) return absl::nullopt;
|
1525
|
-
return FinishOperationExecutor(executor_.Start(
|
1526
|
-
layout(), push()->TakeValue(), filters_->call_data_));
|
1527
|
-
}
|
1528
|
-
|
1529
|
-
private:
|
1530
|
-
filters_detail::PipeState& state() { return filters_->*state_ptr; }
|
1531
|
-
Push* push() { return static_cast<Push*>(filters_->*push_ptr); }
|
1532
|
-
const filters_detail::Layout<filters_detail::FallibleOperator<T>>*
|
1533
|
-
layout() {
|
1534
|
-
return &(filters_->stack_->data_.*layout_ptr);
|
1535
|
-
}
|
1536
|
-
|
1537
|
-
Poll<ValueOrFailure<absl::optional<T>>> FinishOperationExecutor(
|
1538
|
-
Poll<filters_detail::ResultOr<T>> p) {
|
1539
|
-
auto* r = p.value_if_ready();
|
1540
|
-
if (r == nullptr) return Pending{};
|
1541
|
-
DCHECK(!executor_.IsRunning());
|
1542
|
-
state().AckPull();
|
1543
|
-
if (r->ok != nullptr) return std::move(r->ok);
|
1544
|
-
filters_->PushServerTrailingMetadata(std::move(r->error));
|
1545
|
-
return Failure{};
|
1546
|
-
}
|
1547
|
-
|
1548
|
-
CallFilters* filters_;
|
1549
|
-
filters_detail::OperationExecutor<T> executor_;
|
1550
|
-
};
|
1551
|
-
|
1552
|
-
class PullMessage {
|
1553
|
-
public:
|
1554
|
-
explicit PullMessage(CallFilters* filters) : filters_(filters) {}
|
1555
|
-
~PullMessage() {
|
1556
|
-
if (filters_ != nullptr) {
|
1557
|
-
state().DropPull();
|
1558
|
-
}
|
1559
|
-
}
|
1560
|
-
|
1561
|
-
PullMessage(const PullMessage&) = delete;
|
1562
|
-
PullMessage& operator=(const PullMessage&) = delete;
|
1563
|
-
PullMessage(PullMessage&& other) noexcept
|
1564
|
-
: filters_(std::exchange(other.filters_, nullptr)),
|
1565
|
-
executor_(std::move(other.executor_)) {}
|
1566
|
-
PullMessage& operator=(PullMessage&&) = delete;
|
1567
|
-
|
1568
|
-
Poll<ValueOrFailure<absl::optional<MessageHandle>>> operator()() {
|
1569
|
-
CHECK(filters_ != nullptr);
|
1570
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1571
|
-
gpr_log(GPR_INFO, "PullMessage[%p|%p]: %s executor:%d", &state(),
|
1572
|
-
this, state().DebugString().c_str(), executor_.IsRunning());
|
1573
|
-
}
|
1574
|
-
if (executor_.IsRunning()) {
|
1575
|
-
auto c = state().PollClosed();
|
1576
|
-
if (c.ready() && c.value()) {
|
1577
|
-
filters_->CancelDueToFailedPipeOperation();
|
1578
|
-
return Failure{};
|
1579
|
-
}
|
1580
|
-
return FinishOperationExecutor(executor_.Step(filters_->call_data_));
|
1581
|
-
}
|
1582
|
-
auto p = state().PollPull();
|
1583
|
-
auto* r = p.value_if_ready();
|
1584
|
-
if (r == nullptr) {
|
1585
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1586
|
-
gpr_log(GPR_INFO, "PullMessage[%p] pending: %s executor:%d",
|
1587
|
-
&state(), state().DebugString().c_str(),
|
1588
|
-
executor_.IsRunning());
|
1589
|
-
}
|
1590
|
-
return Pending{};
|
1591
|
-
}
|
1592
|
-
if (!r->ok()) {
|
1593
|
-
filters_->CancelDueToFailedPipeOperation();
|
1594
|
-
return Failure{};
|
1595
|
-
}
|
1596
|
-
if (!**r) return absl::nullopt;
|
1597
|
-
CHECK(filters_ != nullptr);
|
1598
|
-
return FinishOperationExecutor(executor_.Start(
|
1599
|
-
layout(), push()->TakeValue(), filters_->call_data_));
|
1600
|
-
}
|
1601
|
-
|
1602
|
-
private:
|
1603
|
-
filters_detail::PipeState& state() { return filters_->*state_ptr; }
|
1604
|
-
Push* push() { return static_cast<Push*>(filters_->*push_ptr); }
|
1605
|
-
const filters_detail::Layout<filters_detail::FallibleOperator<T>>*
|
1606
|
-
layout() {
|
1607
|
-
return &(filters_->stack_->data_.*layout_ptr);
|
1608
|
-
}
|
1609
|
-
|
1610
|
-
Poll<ValueOrFailure<absl::optional<MessageHandle>>>
|
1611
|
-
FinishOperationExecutor(Poll<filters_detail::ResultOr<T>> p) {
|
1612
|
-
auto* r = p.value_if_ready();
|
1613
|
-
if (r == nullptr) return Pending{};
|
1614
|
-
DCHECK(!executor_.IsRunning());
|
1615
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1616
|
-
gpr_log(GPR_INFO, "PullMessage[%p|%p] executor done: %s", &state(),
|
1617
|
-
this, state().DebugString().c_str());
|
1618
|
-
}
|
1619
|
-
state().AckPull();
|
1620
|
-
if (r->ok != nullptr) return std::move(r->ok);
|
1621
|
-
filters_->PushServerTrailingMetadata(std::move(r->error));
|
1622
|
-
return Failure{};
|
1623
|
-
}
|
1624
|
-
|
1625
|
-
CallFilters* filters_;
|
1626
|
-
filters_detail::OperationExecutor<T> executor_;
|
1627
|
-
};
|
1628
|
-
};
|
1629
|
-
|
1630
|
-
class PullClientInitialMetadataPromise {
|
1631
|
-
public:
|
1632
|
-
explicit PullClientInitialMetadataPromise(CallFilters* filters)
|
1633
|
-
: filters_(filters) {}
|
1634
|
-
|
1635
|
-
PullClientInitialMetadataPromise(const PullClientInitialMetadataPromise&) =
|
1636
|
-
delete;
|
1637
|
-
PullClientInitialMetadataPromise& operator=(
|
1638
|
-
const PullClientInitialMetadataPromise&) = delete;
|
1639
|
-
PullClientInitialMetadataPromise(
|
1640
|
-
PullClientInitialMetadataPromise&& other) noexcept
|
1641
|
-
: filters_(std::exchange(other.filters_, nullptr)),
|
1642
|
-
executor_(std::move(other.executor_)) {}
|
1643
|
-
PullClientInitialMetadataPromise& operator=(
|
1644
|
-
PullClientInitialMetadataPromise&&) = delete;
|
1645
|
-
|
1646
|
-
Poll<ValueOrFailure<ClientMetadataHandle>> operator()() {
|
1647
|
-
if (executor_.IsRunning()) {
|
1648
|
-
return FinishOperationExecutor(executor_.Step(filters_->call_data_));
|
1649
|
-
}
|
1650
|
-
auto p = state().PollPull();
|
1651
|
-
auto* r = p.value_if_ready();
|
1652
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1653
|
-
gpr_log(GPR_INFO, "%s",
|
1654
|
-
r == nullptr
|
1655
|
-
? "PENDING"
|
1656
|
-
: (r->ok() ? (r->value() ? "TRUE" : "FALSE") : "FAILURE"));
|
1657
|
-
}
|
1658
|
-
if (r == nullptr) return Pending{};
|
1659
|
-
if (!r->ok()) {
|
1660
|
-
filters_->CancelDueToFailedPipeOperation();
|
1661
|
-
return Failure{};
|
1662
|
-
}
|
1663
|
-
CHECK(filters_->client_initial_metadata_ != nullptr);
|
1664
|
-
return FinishOperationExecutor(executor_.Start(
|
1665
|
-
&filters_->stack_->data_.client_initial_metadata,
|
1666
|
-
std::move(filters_->client_initial_metadata_), filters_->call_data_));
|
1667
|
-
}
|
1668
|
-
|
1669
|
-
private:
|
1670
|
-
filters_detail::PipeState& state() {
|
1671
|
-
return filters_->client_initial_metadata_state_;
|
1672
|
-
}
|
1673
|
-
|
1674
|
-
Poll<ValueOrFailure<ClientMetadataHandle>> FinishOperationExecutor(
|
1675
|
-
Poll<filters_detail::ResultOr<ClientMetadataHandle>> p) {
|
1676
|
-
auto* r = p.value_if_ready();
|
1677
|
-
if (r == nullptr) return Pending{};
|
1678
|
-
DCHECK(!executor_.IsRunning());
|
1679
|
-
state().AckPull();
|
1680
|
-
if (r->ok != nullptr) return std::move(r->ok);
|
1681
|
-
filters_->PushServerTrailingMetadata(std::move(r->error));
|
1682
|
-
return Failure{};
|
1683
|
-
}
|
1684
|
-
|
1685
|
-
CallFilters* filters_;
|
1686
|
-
filters_detail::OperationExecutor<ClientMetadataHandle> executor_;
|
1687
|
-
};
|
1688
|
-
|
1689
|
-
class PullServerTrailingMetadataPromise {
|
1690
|
-
public:
|
1691
|
-
explicit PullServerTrailingMetadataPromise(CallFilters* filters)
|
1692
|
-
: filters_(filters) {}
|
1693
|
-
|
1694
|
-
PullServerTrailingMetadataPromise(
|
1695
|
-
const PullServerTrailingMetadataPromise&) = delete;
|
1696
|
-
PullServerTrailingMetadataPromise& operator=(
|
1697
|
-
const PullServerTrailingMetadataPromise&) = delete;
|
1698
|
-
PullServerTrailingMetadataPromise(
|
1699
|
-
PullServerTrailingMetadataPromise&& other) noexcept
|
1700
|
-
: filters_(std::exchange(other.filters_, nullptr)),
|
1701
|
-
executor_(std::move(other.executor_)) {}
|
1702
|
-
PullServerTrailingMetadataPromise& operator=(
|
1703
|
-
PullServerTrailingMetadataPromise&&) = delete;
|
1704
|
-
|
1705
|
-
Poll<ServerMetadataHandle> operator()() {
|
1706
|
-
if (executor_.IsRunning()) {
|
1707
|
-
auto r = executor_.Step(filters_->call_data_);
|
1708
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1709
|
-
if (r.pending()) {
|
1710
|
-
gpr_log(GPR_INFO,
|
1711
|
-
"%s PullServerTrailingMetadata[%p]: Pending(but executing)",
|
1712
|
-
GetContext<Activity>()->DebugTag().c_str(), filters_);
|
1713
|
-
} else {
|
1714
|
-
gpr_log(GPR_INFO, "%s PullServerTrailingMetadata[%p]: Ready: %s",
|
1715
|
-
GetContext<Activity>()->DebugTag().c_str(), filters_,
|
1716
|
-
r.value()->DebugString().c_str());
|
1717
|
-
}
|
1718
|
-
}
|
1719
|
-
return r;
|
1720
|
-
}
|
1721
|
-
if (filters_->server_trailing_metadata_ == nullptr) {
|
1722
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1723
|
-
gpr_log(GPR_INFO,
|
1724
|
-
"%s PullServerTrailingMetadata[%p]: Pending(not pushed)",
|
1725
|
-
GetContext<Activity>()->DebugTag().c_str(), filters_);
|
1726
|
-
}
|
1727
|
-
return filters_->server_trailing_metadata_waiter_.pending();
|
1728
|
-
}
|
1729
|
-
// If no stack has been set, we can just return the result of the call
|
1730
|
-
if (filters_->stack_ == nullptr) {
|
1731
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1732
|
-
gpr_log(GPR_INFO,
|
1733
|
-
"%s PullServerTrailingMetadata[%p]: Ready(no-stack): %s",
|
1734
|
-
GetContext<Activity>()->DebugTag().c_str(), filters_,
|
1735
|
-
filters_->server_trailing_metadata_->DebugString().c_str());
|
1736
|
-
}
|
1737
|
-
return std::move(filters_->server_trailing_metadata_);
|
1738
|
-
}
|
1739
|
-
// Otherwise we need to process it through all the filters.
|
1740
|
-
auto r = executor_.Start(
|
1741
|
-
&filters_->stack_->data_.server_trailing_metadata,
|
1742
|
-
std::move(filters_->server_trailing_metadata_), filters_->call_data_);
|
1743
|
-
if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_promise_primitives)) {
|
1744
|
-
if (r.pending()) {
|
1745
|
-
gpr_log(GPR_INFO,
|
1746
|
-
"%s PullServerTrailingMetadata[%p]: Pending(but executing)",
|
1747
|
-
GetContext<Activity>()->DebugTag().c_str(), filters_);
|
1748
|
-
} else {
|
1749
|
-
gpr_log(GPR_INFO, "%s PullServerTrailingMetadata[%p]: Ready: %s",
|
1750
|
-
GetContext<Activity>()->DebugTag().c_str(), filters_,
|
1751
|
-
r.value()->DebugString().c_str());
|
1752
|
-
}
|
1753
|
-
}
|
1754
|
-
return r;
|
1755
|
-
}
|
1857
|
+
void CancelDueToFailedPipeOperation(SourceLocation but_where = {});
|
1756
1858
|
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1859
|
+
struct AddedStack {
|
1860
|
+
explicit AddedStack(RefCountedPtr<Stack> stack)
|
1861
|
+
: call_data_offset(std::numeric_limits<size_t>::max()),
|
1862
|
+
stack(std::move(stack)) {}
|
1863
|
+
size_t call_data_offset;
|
1864
|
+
RefCountedPtr<Stack> stack;
|
1760
1865
|
};
|
1761
1866
|
|
1762
|
-
|
1867
|
+
using StacksVector = absl::InlinedVector<AddedStack, 2>;
|
1763
1868
|
|
1764
|
-
|
1869
|
+
StacksVector stacks_;
|
1765
1870
|
|
1766
|
-
|
1767
|
-
filters_detail::PipeState::StartPushed{}};
|
1768
|
-
filters_detail::PipeState server_initial_metadata_state_;
|
1769
|
-
filters_detail::PipeState client_to_server_message_state_;
|
1770
|
-
filters_detail::PipeState server_to_client_message_state_;
|
1771
|
-
IntraActivityWaiter server_trailing_metadata_waiter_;
|
1772
|
-
Latch<bool> cancelled_;
|
1871
|
+
CallState call_state_;
|
1773
1872
|
|
1774
1873
|
void* call_data_;
|
1775
|
-
ClientMetadataHandle
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
// a recursive type definition since the location of this field needs to be
|
1781
|
-
// a template argument to the `Push` object itself.
|
1782
|
-
void* server_initial_metadata_push_ = nullptr;
|
1783
|
-
void* client_to_server_message_push_ = nullptr;
|
1784
|
-
void* server_to_client_message_push_ = nullptr;
|
1785
|
-
|
1786
|
-
ServerMetadataHandle server_trailing_metadata_;
|
1787
|
-
|
1788
|
-
using ServerInitialMetadataPromises =
|
1789
|
-
PipePromise<&CallFilters::server_initial_metadata_state_,
|
1790
|
-
&CallFilters::server_initial_metadata_push_,
|
1791
|
-
ServerMetadataHandle,
|
1792
|
-
&filters_detail::StackData::server_initial_metadata>;
|
1793
|
-
using ClientToServerMessagePromises =
|
1794
|
-
PipePromise<&CallFilters::client_to_server_message_state_,
|
1795
|
-
&CallFilters::client_to_server_message_push_, MessageHandle,
|
1796
|
-
&filters_detail::StackData::client_to_server_messages>;
|
1797
|
-
using ServerToClientMessagePromises =
|
1798
|
-
PipePromise<&CallFilters::server_to_client_message_state_,
|
1799
|
-
&CallFilters::server_to_client_message_push_, MessageHandle,
|
1800
|
-
&filters_detail::StackData::server_to_client_messages>;
|
1801
|
-
};
|
1802
|
-
|
1803
|
-
inline auto CallFilters::PullClientInitialMetadata() {
|
1804
|
-
return PullClientInitialMetadataPromise(this);
|
1805
|
-
}
|
1806
|
-
|
1807
|
-
inline auto CallFilters::PushServerInitialMetadata(ServerMetadataHandle md) {
|
1808
|
-
CHECK(md != nullptr);
|
1809
|
-
return [p = ServerInitialMetadataPromises::Push{
|
1810
|
-
this, std::move(md)}]() mutable { return p(); };
|
1811
|
-
}
|
1812
|
-
|
1813
|
-
inline auto CallFilters::PullServerInitialMetadata() {
|
1814
|
-
return ServerInitialMetadataPromises::PullMaybe{this};
|
1815
|
-
}
|
1816
|
-
|
1817
|
-
inline auto CallFilters::PushClientToServerMessage(MessageHandle message) {
|
1818
|
-
CHECK(message != nullptr);
|
1819
|
-
return [p = ClientToServerMessagePromises::Push{
|
1820
|
-
this, std::move(message)}]() mutable { return p(); };
|
1821
|
-
}
|
1822
|
-
|
1823
|
-
inline auto CallFilters::PullClientToServerMessage() {
|
1824
|
-
return ClientToServerMessagePromises::PullMessage{this};
|
1825
|
-
}
|
1874
|
+
ClientMetadataHandle push_client_initial_metadata_;
|
1875
|
+
ServerMetadataHandle push_server_initial_metadata_;
|
1876
|
+
MessageHandle push_client_to_server_message_;
|
1877
|
+
MessageHandle push_server_to_client_message_;
|
1878
|
+
ServerMetadataHandle push_server_trailing_metadata_;
|
1826
1879
|
|
1827
|
-
|
1828
|
-
|
1829
|
-
return [p = ServerToClientMessagePromises::Push{
|
1830
|
-
this, std::move(message)}]() mutable { return p(); };
|
1831
|
-
}
|
1832
|
-
|
1833
|
-
inline auto CallFilters::PullServerToClientMessage() {
|
1834
|
-
return ServerToClientMessagePromises::PullMessage{this};
|
1835
|
-
}
|
1836
|
-
|
1837
|
-
inline auto CallFilters::PullServerTrailingMetadata() {
|
1838
|
-
return Map(PullServerTrailingMetadataPromise(this),
|
1839
|
-
[this](ServerMetadataHandle h) {
|
1840
|
-
cancelled_.Set(h->get(GrpcCallWasCancelled()).value_or(false));
|
1841
|
-
return h;
|
1842
|
-
});
|
1843
|
-
}
|
1880
|
+
static char g_empty_call_data_;
|
1881
|
+
};
|
1844
1882
|
|
1845
|
-
|
1883
|
+
static_assert(
|
1884
|
+
filters_detail::ArgumentMustBeNextMessage<
|
1885
|
+
absl::remove_cvref_t<decltype(std::declval<CallFilters*>()
|
1886
|
+
->PullServerToClientMessage()()
|
1887
|
+
.value())>>::value(),
|
1888
|
+
"PullServerToClientMessage must return a NextMessage");
|
1889
|
+
|
1890
|
+
static_assert(
|
1891
|
+
filters_detail::ArgumentMustBeNextMessage<
|
1892
|
+
absl::remove_cvref_t<decltype(std::declval<CallFilters*>()
|
1893
|
+
->PullClientToServerMessage()()
|
1894
|
+
.value())>>::value(),
|
1895
|
+
"PullServerToClientMessage must return a NextMessage");
|
1846
1896
|
|
1847
1897
|
} // namespace grpc_core
|
1848
1898
|
|