grpc 1.78.0 → 1.80.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Makefile +22 -8
- data/include/grpc/credentials.h +47 -37
- data/include/grpc/credentials_cpp.h +39 -0
- data/include/grpc/event_engine/event_engine.h +8 -3
- data/include/grpc/grpc.h +4 -0
- data/include/grpc/impl/call.h +9 -0
- data/include/grpc/impl/channel_arg_names.h +7 -0
- data/include/grpc/module.modulemap +2 -0
- data/include/grpc/private_key_signer.h +104 -0
- data/include/grpc/support/port_platform.h +6 -0
- data/src/core/call/call_filters.h +101 -78
- data/src/core/call/call_spine.h +91 -68
- data/src/core/call/call_state.h +60 -4
- data/src/core/call/client_call.cc +9 -9
- data/src/core/call/client_call.h +1 -1
- data/src/core/call/metadata_batch.cc +2 -0
- data/src/core/call/metadata_batch.h +48 -1
- data/src/core/call/metadata_info.cc +35 -0
- data/src/core/call/metadata_info.h +2 -0
- data/src/core/call/simple_slice_based_metadata.h +2 -1
- data/src/core/channelz/channelz.cc +9 -6
- data/src/core/channelz/channelz.h +7 -4
- data/src/core/channelz/property_list.h +5 -0
- data/src/core/channelz/v2tov1/convert.cc +1 -1
- data/src/core/channelz/v2tov1/legacy_api.cc +164 -307
- data/src/core/client_channel/buffered_call.cc +7 -3
- data/src/core/client_channel/buffered_call.h +11 -5
- data/src/core/client_channel/client_channel.cc +106 -44
- data/src/core/client_channel/client_channel.h +3 -6
- data/src/core/client_channel/client_channel_filter.cc +90 -64
- data/src/core/client_channel/client_channel_filter.h +3 -6
- data/src/core/client_channel/client_channel_internal.h +5 -0
- data/src/core/client_channel/config_selector.h +17 -12
- data/src/core/client_channel/dynamic_filters.cc +8 -7
- data/src/core/client_channel/dynamic_filters.h +7 -5
- data/src/core/client_channel/retry_filter.cc +1 -1
- data/src/core/client_channel/retry_filter.h +2 -2
- data/src/core/client_channel/subchannel.cc +1682 -266
- data/src/core/client_channel/subchannel.h +411 -134
- data/src/core/client_channel/subchannel_stream_client.cc +22 -18
- data/src/core/client_channel/subchannel_stream_client.h +8 -9
- data/src/core/client_channel/subchannel_stream_limiter.cc +76 -0
- data/src/core/client_channel/subchannel_stream_limiter.h +51 -0
- data/src/core/config/config_vars.cc +9 -1
- data/src/core/config/config_vars.h +6 -0
- data/src/core/credentials/call/call_creds_registry.h +51 -22
- data/src/core/credentials/call/call_creds_registry_init.cc +86 -2
- data/src/core/credentials/call/external/aws_external_account_credentials.cc +2 -2
- data/src/core/credentials/call/external/external_account_credentials.cc +11 -4
- data/src/core/credentials/call/external/file_external_account_credentials.cc +2 -2
- data/src/core/credentials/transport/channel_creds_registry.h +71 -20
- data/src/core/credentials/transport/channel_creds_registry_init.cc +338 -29
- data/src/core/credentials/transport/ssl/ssl_credentials.cc +43 -24
- data/src/core/credentials/transport/ssl/ssl_credentials.h +7 -1
- data/src/core/credentials/transport/ssl/ssl_security_connector.cc +2 -8
- data/src/core/credentials/transport/ssl/ssl_security_connector.h +4 -3
- data/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.cc +25 -5
- data/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h +7 -5
- data/src/core/credentials/transport/tls/grpc_tls_certificate_provider.cc +181 -109
- data/src/core/credentials/transport/tls/grpc_tls_certificate_provider.h +55 -42
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc +28 -23
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.h +26 -23
- data/src/core/credentials/transport/tls/spiffe_utils.cc +2 -2
- data/src/core/credentials/transport/tls/ssl_utils.cc +18 -18
- data/src/core/credentials/transport/tls/ssl_utils.h +12 -10
- data/src/core/credentials/transport/tls/tls_security_connector.cc +106 -74
- data/src/core/credentials/transport/tls/tls_security_connector.h +12 -8
- data/src/core/credentials/transport/xds/xds_credentials.cc +76 -32
- data/src/core/credentials/transport/xds/xds_credentials.h +4 -2
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +117 -35
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +42 -4
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.cc +58 -29
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h +19 -11
- data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +82 -25
- data/src/core/ext/filters/stateful_session/stateful_session_filter.h +28 -3
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.cc +9 -7
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h +1 -1
- data/src/core/ext/transport/chttp2/transport/call_tracer_wrapper.h +7 -1
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +117 -67
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +2 -0
- data/src/core/ext/transport/chttp2/transport/flow_control.h +11 -1
- data/src/core/ext/transport/chttp2/transport/frame.cc +2 -15
- data/src/core/ext/transport/chttp2/transport/frame.h +0 -4
- data/src/core/ext/transport/chttp2/transport/goaway.cc +17 -2
- data/src/core/ext/transport/chttp2/transport/goaway.h +27 -6
- data/src/core/ext/transport/chttp2/transport/header_assembler.h +8 -21
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +101 -40
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +95 -0
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.cc +923 -772
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.h +406 -423
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +1 -0
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +8 -1
- data/src/core/ext/transport/chttp2/transport/http2_settings_promises.h +25 -13
- data/src/core/ext/transport/chttp2/transport/http2_transport.cc +71 -24
- data/src/core/ext/transport/chttp2/transport/http2_transport.h +25 -49
- data/src/core/ext/transport/chttp2/transport/http2_ztrace_collector.h +2 -2
- data/src/core/ext/transport/chttp2/transport/incoming_metadata_tracker.h +29 -9
- data/src/core/ext/transport/chttp2/transport/internal.h +6 -2
- data/src/core/ext/transport/chttp2/transport/keepalive.cc +14 -20
- data/src/core/ext/transport/chttp2/transport/keepalive.h +9 -6
- data/src/core/ext/transport/chttp2/transport/parsing.cc +11 -0
- data/src/core/ext/transport/chttp2/transport/ping_promise.cc +34 -74
- data/src/core/ext/transport/chttp2/transport/ping_promise.h +123 -79
- data/src/core/ext/transport/chttp2/transport/security_frame.h +233 -3
- data/src/core/ext/transport/chttp2/transport/stream.h +152 -73
- data/src/core/ext/transport/chttp2/transport/stream_data_queue.h +155 -85
- data/src/core/ext/transport/chttp2/transport/transport_common.h +0 -5
- data/src/core/ext/transport/chttp2/transport/writable_streams.h +8 -7
- data/src/core/ext/transport/chttp2/transport/write_cycle.cc +86 -0
- data/src/core/ext/transport/chttp2/transport/write_cycle.h +355 -0
- data/src/core/ext/transport/chttp2/transport/writing.cc +31 -29
- data/src/core/ext/upb-gen/cel/expr/checked.upb.h +1875 -0
- data/src/core/ext/upb-gen/cel/expr/checked.upb_minitable.c +409 -0
- data/src/core/ext/upb-gen/cel/expr/checked.upb_minitable.h +56 -0
- data/src/core/ext/upb-gen/cel/expr/syntax.upb.h +2223 -0
- data/src/core/ext/upb-gen/cel/expr/syntax.upb_minitable.c +489 -0
- data/src/core/ext/upb-gen/cel/expr/syntax.upb_minitable.h +60 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +130 -18
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +18 -13
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +70 -38
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +20 -17
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb.h +26 -10
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.c +8 -7
- data/src/core/ext/upb-gen/envoy/config/common/mutation_rules/v3/mutation_rules.upb.h +495 -0
- data/src/core/ext/upb-gen/envoy/config/common/mutation_rules/v3/mutation_rules.upb_minitable.c +114 -0
- data/src/core/ext/upb-gen/envoy/config/common/mutation_rules/v3/mutation_rules.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +26 -10
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +8 -7
- data/src/core/ext/upb-gen/envoy/config/core/v3/cel.upb.h +121 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/cel.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/cel.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb.h +143 -9
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.c +18 -6
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +112 -11
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +22 -9
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb.h +276 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.c +60 -5
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.h +4 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +72 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +23 -2
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +129 -13
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +36 -10
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.c +5 -3
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb.h +16 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.c +4 -3
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +5 -3
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb.h +63 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.c +12 -7
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb.h +97 -81
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.c +40 -23
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +604 -228
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +146 -100
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.c +5 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +35 -3
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +7 -4
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +66 -14
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +22 -11
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +87 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.c +29 -2
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +0 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.c +0 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +20 -4
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +5 -4
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +239 -60
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +59 -28
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/call_credentials/access_token/v3/access_token_credentials.upb.h +89 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/call_credentials/access_token/v3/access_token_credentials.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/call_credentials/access_token/v3/access_token_credentials.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/channel_credentials/tls/v3/tls_credentials.upb.h +135 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/channel_credentials/tls/v3/tls_credentials.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/channel_credentials/tls/v3/tls_credentials.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/channel_credentials/xds/v3/xds_credentials.upb.h +105 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/channel_credentials/xds/v3/xds_credentials.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/extensions/grpc_service/channel_credentials/xds/v3/xds_credentials.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +6 -3
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +206 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +41 -8
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +64 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +4 -3
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +64 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.c +31 -5
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h +283 -14
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.c +48 -11
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb.h +144 -6
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.c +35 -7
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb.h +42 -21
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.c +9 -8
- data/src/core/ext/upb-gen/src/proto/grpc/channelz/v2/promise.upb.h +164 -1
- data/src/core/ext/upb-gen/src/proto/grpc/channelz/v2/promise.upb_minitable.c +37 -6
- data/src/core/ext/upb-gen/src/proto/grpc/channelz/v2/promise.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb.h +0 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.c +0 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb.h +0 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.c +0 -1
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb.h +26 -11
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.c +8 -8
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb.h +33 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.c +14 -3
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb.h +90 -10
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.c +18 -7
- data/src/core/ext/upbdefs-gen/cel/expr/checked.upbdefs.c +248 -0
- data/src/core/ext/upbdefs-gen/cel/expr/checked.upbdefs.h +97 -0
- data/src/core/ext/upbdefs-gen/cel/expr/syntax.upbdefs.c +283 -0
- data/src/core/ext/upbdefs-gen/cel/expr/syntax.upbdefs.h +107 -0
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.c +213 -211
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +635 -614
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +1012 -1000
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.c +276 -273
- data/src/core/ext/upbdefs-gen/envoy/config/common/mutation_rules/v3/mutation_rules.upbdefs.c +152 -0
- data/src/core/ext/upbdefs-gen/envoy/config/common/mutation_rules/v3/mutation_rules.upbdefs.h +47 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +149 -144
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +367 -370
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/cel.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/cel.upbdefs.h +37 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.c +297 -284
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +492 -469
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.c +74 -43
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.c +60 -59
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +202 -184
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +354 -339
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.c +28 -19
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.c +30 -27
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +71 -66
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +94 -91
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.c +386 -369
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.c +60 -57
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +1974 -1884
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.c +119 -112
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +62 -51
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +109 -88
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +54 -36
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +78 -84
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +48 -46
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +1041 -984
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +304 -290
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +94 -77
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.c +246 -193
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.c +37 -23
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.c +5 -3
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.c +4 -4
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.c +4 -5
- data/src/core/ext/upbdefs-gen/src/proto/grpc/channelz/v2/promise.upbdefs.c +113 -87
- data/src/core/ext/upbdefs-gen/src/proto/grpc/channelz/v2/promise.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.c +5 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.c +6 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.c +5 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.c +5 -5
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.c +5 -5
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.c +25 -30
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.c +14 -20
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.c +180 -183
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.c +56 -47
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c +69 -47
- data/src/core/filter/filter_chain.h +95 -0
- data/src/core/handshaker/http_connect/{http_connect_handshaker.cc → http_connect_client_handshaker.cc} +32 -31
- data/src/core/handshaker/http_connect/{http_connect_handshaker.h → http_connect_client_handshaker.h} +4 -4
- data/src/core/handshaker/http_connect/http_proxy_mapper.cc +1 -1
- data/src/core/handshaker/http_connect/xds_http_proxy_mapper.cc +1 -1
- data/src/core/handshaker/security/pipelined_secure_endpoint.cc +14 -13
- data/src/core/handshaker/security/secure_endpoint.cc +282 -68
- data/src/core/handshaker/security/secure_endpoint.h +0 -7
- data/src/core/lib/channel/channel_args.h +1 -1
- data/src/core/lib/channel/promise_based_filter.cc +17 -4
- data/src/core/lib/channel/promise_based_filter.h +3 -2
- data/src/core/lib/debug/trace_flags.cc +2 -0
- data/src/core/lib/debug/trace_flags.h +1 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +35 -8
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +1 -2
- data/src/core/lib/event_engine/event_engine.cc +9 -0
- data/src/core/lib/event_engine/extensions/tcp_trace.h +0 -3
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +2 -2
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +1 -1
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +34 -9
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +24 -2
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +1 -3
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +141 -14
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.h +19 -2
- data/src/core/lib/event_engine/posix_engine/posix_interface.h +7 -0
- data/src/core/lib/event_engine/posix_engine/posix_interface_posix.cc +21 -3
- data/src/core/lib/event_engine/posix_engine/posix_interface_windows.cc +16 -0
- data/src/core/lib/experiments/experiments.cc +309 -201
- data/src/core/lib/experiments/experiments.h +141 -80
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +2 -2
- data/src/core/lib/iomgr/resolve_address.h +0 -2
- data/src/core/lib/iomgr/resolved_address.h +0 -2
- data/src/core/lib/iomgr/tcp_posix.cc +13 -5
- data/src/core/lib/iomgr/tcp_server.cc +0 -5
- data/src/core/lib/iomgr/tcp_server.h +0 -7
- data/src/core/lib/iomgr/tcp_server_posix.cc +0 -17
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +0 -3
- data/src/core/lib/iomgr/tcp_server_windows.cc +12 -51
- data/src/core/lib/promise/all_ok.h +17 -12
- data/src/core/lib/promise/cancel_callback.h +12 -13
- data/src/core/lib/promise/detail/join_state.h +626 -0
- data/src/core/lib/promise/detail/promise_factory.h +14 -14
- data/src/core/lib/promise/for_each.h +32 -8
- data/src/core/lib/promise/if.h +9 -7
- data/src/core/lib/promise/loop.h +18 -16
- data/src/core/lib/promise/map.h +54 -47
- data/src/core/lib/promise/mpsc.h +11 -10
- data/src/core/lib/promise/observable.h +6 -6
- data/src/core/lib/promise/party.h +25 -19
- data/src/core/lib/promise/poll.h +5 -5
- data/src/core/lib/promise/prioritized_race.h +10 -7
- data/src/core/lib/promise/promise.h +16 -11
- data/src/core/lib/promise/race.h +6 -5
- data/src/core/lib/promise/seq.h +109 -74
- data/src/core/lib/promise/try_join.h +14 -6
- data/src/core/lib/promise/try_seq.h +76 -60
- data/src/core/lib/resource_quota/api.cc +7 -0
- data/src/core/lib/resource_quota/arena.h +1 -1
- data/src/core/lib/resource_quota/memory_quota.cc +4 -1
- data/src/core/lib/resource_quota/resource_quota.cc +2 -1
- data/src/core/lib/resource_quota/resource_quota.h +3 -0
- data/src/core/lib/resource_quota/stream_quota.cc +77 -1
- data/src/core/lib/resource_quota/stream_quota.h +64 -1
- data/src/core/lib/resource_quota/telemetry.h +1 -1
- data/src/core/lib/surface/call.cc +13 -0
- data/src/core/lib/surface/call_utils.h +58 -43
- data/src/core/lib/surface/channel.h +1 -4
- data/src/core/lib/surface/completion_queue.cc +13 -6
- data/src/core/lib/surface/validate_metadata.cc +20 -15
- data/src/core/lib/surface/validate_metadata.h +3 -1
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/promise_endpoint.cc +1 -1
- data/src/core/lib/transport/promise_endpoint.h +1 -1
- data/src/core/lib/transport/transport.h +5 -0
- data/src/core/load_balancing/health_check_client.cc +1 -15
- data/src/core/load_balancing/health_check_client_internal.h +0 -2
- data/src/core/load_balancing/oob_backend_metric.cc +1 -5
- data/src/core/load_balancing/oob_backend_metric_internal.h +0 -1
- data/src/core/load_balancing/xds/xds_cluster_impl.cc +12 -9
- data/src/core/plugin_registry/grpc_plugin_registry.cc +3 -2
- data/src/core/resolver/xds/xds_resolver.cc +162 -116
- data/src/core/server/server.cc +18 -1
- data/src/core/server/server.h +2 -0
- data/src/core/server/xds_server_config_fetcher.cc +4 -4
- data/src/core/telemetry/call_tracer.cc +87 -2
- data/src/core/telemetry/call_tracer.h +46 -8
- data/src/core/telemetry/instrument.cc +102 -40
- data/src/core/telemetry/instrument.h +246 -65
- data/src/core/tsi/fake_transport_security.cc +3 -1
- data/src/core/tsi/ssl_transport_security.cc +516 -137
- data/src/core/tsi/ssl_transport_security.h +28 -22
- data/src/core/tsi/ssl_transport_security_utils.cc +2 -2
- data/src/core/tsi/ssl_transport_security_utils.h +2 -2
- data/src/core/util/bitset.h +6 -0
- data/src/core/util/function_signature.h +3 -1
- data/src/core/util/http_client/httpcli_security_connector.cc +2 -1
- data/src/core/util/json/json_reader.cc +0 -4
- data/src/core/xds/grpc/certificate_provider_store.cc +2 -1
- data/src/core/xds/grpc/certificate_provider_store.h +3 -17
- data/src/core/xds/grpc/certificate_provider_store_interface.h +61 -0
- data/src/core/xds/grpc/xds_bootstrap_grpc.cc +48 -0
- data/src/core/xds/grpc/xds_bootstrap_grpc.h +18 -0
- data/src/core/xds/grpc/xds_certificate_provider.cc +7 -2
- data/src/core/xds/grpc/xds_certificate_provider.h +13 -2
- data/src/core/xds/grpc/xds_client_grpc.cc +13 -6
- data/src/core/xds/grpc/xds_client_grpc.h +10 -7
- data/src/core/xds/grpc/xds_cluster.cc +18 -4
- data/src/core/xds/grpc/xds_cluster.h +17 -2
- data/src/core/xds/grpc/xds_cluster_parser.cc +36 -11
- data/src/core/xds/grpc/xds_common_types.cc +45 -0
- data/src/core/xds/grpc/xds_common_types.h +31 -0
- data/src/core/xds/grpc/xds_common_types_parser.cc +274 -16
- data/src/core/xds/grpc/xds_common_types_parser.h +12 -0
- data/src/core/xds/grpc/xds_http_fault_filter.cc +128 -24
- data/src/core/xds/grpc/xds_http_fault_filter.h +19 -10
- data/src/core/xds/grpc/xds_http_filter.cc +38 -0
- data/src/core/xds/grpc/xds_http_filter.h +70 -47
- data/src/core/xds/grpc/xds_http_filter_registry.cc +48 -14
- data/src/core/xds/grpc/xds_http_filter_registry.h +29 -15
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +88 -22
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.h +22 -11
- data/src/core/xds/grpc/xds_http_rbac_filter.cc +36 -20
- data/src/core/xds/grpc/xds_http_rbac_filter.h +19 -10
- data/src/core/xds/grpc/xds_http_stateful_session_filter.cc +143 -26
- data/src/core/xds/grpc/xds_http_stateful_session_filter.h +19 -10
- data/src/core/xds/grpc/xds_listener.cc +4 -1
- data/src/core/xds/grpc/xds_listener.h +10 -2
- data/src/core/xds/grpc/xds_listener_parser.cc +23 -18
- data/src/core/xds/grpc/xds_matcher.cc +40 -5
- data/src/core/xds/grpc/xds_matcher.h +13 -0
- data/src/core/xds/grpc/xds_matcher_action.h +1 -1
- data/src/core/xds/grpc/xds_matcher_parse.cc +60 -40
- data/src/core/xds/grpc/xds_matcher_parse.h +2 -1
- data/src/core/xds/grpc/xds_route_config.cc +12 -1
- data/src/core/xds/grpc/xds_route_config.h +15 -2
- data/src/core/xds/grpc/xds_route_config_parser.cc +11 -5
- data/src/core/xds/grpc/xds_routing.cc +181 -6
- data/src/core/xds/grpc/xds_routing.h +57 -0
- data/src/core/xds/grpc/xds_server_grpc.cc +55 -43
- data/src/core/xds/grpc/xds_server_grpc.h +13 -6
- data/src/core/xds/grpc/xds_server_grpc_interface.h +3 -2
- data/src/core/xds/grpc/xds_transport_grpc.cc +12 -6
- data/src/core/xds/grpc/xds_transport_grpc.h +5 -1
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +12 -8
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +18 -12
- data/src/ruby/lib/grpc/grpc.rb +7 -9
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/generate_proto_ruby.sh +1 -1
- data/src/ruby/spec/client_server_spec.rb +1 -1
- data/src/ruby/spec/generic/rpc_server_pool_spec.rb +1 -1
- data/src/ruby/spec/generic/rpc_server_spec.rb +3 -4
- data/src/ruby/spec/spec_helper.rb +1 -1
- metadata +64 -14
- data/src/core/ext/transport/chttp2/transport/security_frame.cc +0 -31
- data/src/core/handshaker/security/legacy_secure_endpoint.cc +0 -597
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
#include "src/core/util/bitset.h"
|
|
30
30
|
#include "src/core/util/construct_destruct.h"
|
|
31
31
|
#include "src/core/util/grpc_check.h"
|
|
32
|
+
#include "src/core/util/upb_utils.h"
|
|
33
|
+
#include "src/proto/grpc/channelz/v2/promise.upb.h"
|
|
32
34
|
#include "absl/log/log.h"
|
|
33
35
|
|
|
34
36
|
namespace grpc_core {
|
|
@@ -61,6 +63,42 @@ struct JoinState<Traits, P0, P1> {
|
|
|
61
63
|
delete;
|
|
62
64
|
JoinState& operator=(const JoinState& other) = delete;
|
|
63
65
|
JoinState& operator=(JoinState&& other) = delete;
|
|
66
|
+
void ToProto(grpc_channelz_v2_Promise_CompositionKind kind,
|
|
67
|
+
grpc_channelz_v2_Promise* promise_proto,
|
|
68
|
+
upb_Arena* arena) const {
|
|
69
|
+
auto* join_promise =
|
|
70
|
+
grpc_channelz_v2_Promise_mutable_join_promise(promise_proto, arena);
|
|
71
|
+
grpc_channelz_v2_Promise_Join_set_kind(join_promise, kind);
|
|
72
|
+
auto** branches =
|
|
73
|
+
grpc_channelz_v2_Promise_Join_resize_branches(join_promise, 2, arena);
|
|
74
|
+
for (int i = 0; i < 2; i++) {
|
|
75
|
+
branches[i] = grpc_channelz_v2_Promise_JoinBranch_new(arena);
|
|
76
|
+
}
|
|
77
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
78
|
+
branches[0], StdStringToUpbString(TypeName<P0>()));
|
|
79
|
+
if (ready.is_set(0)) {
|
|
80
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
81
|
+
branches[0], StdStringToUpbString("ready"));
|
|
82
|
+
} else {
|
|
83
|
+
PromiseAsProto(
|
|
84
|
+
promise0,
|
|
85
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
86
|
+
branches[0], arena),
|
|
87
|
+
arena);
|
|
88
|
+
}
|
|
89
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
90
|
+
branches[1], StdStringToUpbString(TypeName<P1>()));
|
|
91
|
+
if (ready.is_set(1)) {
|
|
92
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
93
|
+
branches[1], StdStringToUpbString("ready"));
|
|
94
|
+
} else {
|
|
95
|
+
PromiseAsProto(
|
|
96
|
+
promise1,
|
|
97
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
98
|
+
branches[1], arena),
|
|
99
|
+
arena);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
64
102
|
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION JoinState(JoinState&& other) noexcept {
|
|
65
103
|
GRPC_DCHECK(other.ready.none());
|
|
66
104
|
Construct(&promise0, std::move(other.promise0));
|
|
@@ -164,6 +202,54 @@ struct JoinState<Traits, P0, P1, P2> {
|
|
|
164
202
|
delete;
|
|
165
203
|
JoinState& operator=(const JoinState& other) = delete;
|
|
166
204
|
JoinState& operator=(JoinState&& other) = delete;
|
|
205
|
+
void ToProto(grpc_channelz_v2_Promise_CompositionKind kind,
|
|
206
|
+
grpc_channelz_v2_Promise* promise_proto,
|
|
207
|
+
upb_Arena* arena) const {
|
|
208
|
+
auto* join_promise =
|
|
209
|
+
grpc_channelz_v2_Promise_mutable_join_promise(promise_proto, arena);
|
|
210
|
+
grpc_channelz_v2_Promise_Join_set_kind(join_promise, kind);
|
|
211
|
+
auto** branches =
|
|
212
|
+
grpc_channelz_v2_Promise_Join_resize_branches(join_promise, 3, arena);
|
|
213
|
+
for (int i = 0; i < 3; i++) {
|
|
214
|
+
branches[i] = grpc_channelz_v2_Promise_JoinBranch_new(arena);
|
|
215
|
+
}
|
|
216
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
217
|
+
branches[0], StdStringToUpbString(TypeName<P0>()));
|
|
218
|
+
if (ready.is_set(0)) {
|
|
219
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
220
|
+
branches[0], StdStringToUpbString("ready"));
|
|
221
|
+
} else {
|
|
222
|
+
PromiseAsProto(
|
|
223
|
+
promise0,
|
|
224
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
225
|
+
branches[0], arena),
|
|
226
|
+
arena);
|
|
227
|
+
}
|
|
228
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
229
|
+
branches[1], StdStringToUpbString(TypeName<P1>()));
|
|
230
|
+
if (ready.is_set(1)) {
|
|
231
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
232
|
+
branches[1], StdStringToUpbString("ready"));
|
|
233
|
+
} else {
|
|
234
|
+
PromiseAsProto(
|
|
235
|
+
promise1,
|
|
236
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
237
|
+
branches[1], arena),
|
|
238
|
+
arena);
|
|
239
|
+
}
|
|
240
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
241
|
+
branches[2], StdStringToUpbString(TypeName<P2>()));
|
|
242
|
+
if (ready.is_set(2)) {
|
|
243
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
244
|
+
branches[2], StdStringToUpbString("ready"));
|
|
245
|
+
} else {
|
|
246
|
+
PromiseAsProto(
|
|
247
|
+
promise2,
|
|
248
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
249
|
+
branches[2], arena),
|
|
250
|
+
arena);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
167
253
|
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION JoinState(JoinState&& other) noexcept {
|
|
168
254
|
GRPC_DCHECK(other.ready.none());
|
|
169
255
|
Construct(&promise0, std::move(other.promise0));
|
|
@@ -304,6 +390,66 @@ struct JoinState<Traits, P0, P1, P2, P3> {
|
|
|
304
390
|
delete;
|
|
305
391
|
JoinState& operator=(const JoinState& other) = delete;
|
|
306
392
|
JoinState& operator=(JoinState&& other) = delete;
|
|
393
|
+
void ToProto(grpc_channelz_v2_Promise_CompositionKind kind,
|
|
394
|
+
grpc_channelz_v2_Promise* promise_proto,
|
|
395
|
+
upb_Arena* arena) const {
|
|
396
|
+
auto* join_promise =
|
|
397
|
+
grpc_channelz_v2_Promise_mutable_join_promise(promise_proto, arena);
|
|
398
|
+
grpc_channelz_v2_Promise_Join_set_kind(join_promise, kind);
|
|
399
|
+
auto** branches =
|
|
400
|
+
grpc_channelz_v2_Promise_Join_resize_branches(join_promise, 4, arena);
|
|
401
|
+
for (int i = 0; i < 4; i++) {
|
|
402
|
+
branches[i] = grpc_channelz_v2_Promise_JoinBranch_new(arena);
|
|
403
|
+
}
|
|
404
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
405
|
+
branches[0], StdStringToUpbString(TypeName<P0>()));
|
|
406
|
+
if (ready.is_set(0)) {
|
|
407
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
408
|
+
branches[0], StdStringToUpbString("ready"));
|
|
409
|
+
} else {
|
|
410
|
+
PromiseAsProto(
|
|
411
|
+
promise0,
|
|
412
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
413
|
+
branches[0], arena),
|
|
414
|
+
arena);
|
|
415
|
+
}
|
|
416
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
417
|
+
branches[1], StdStringToUpbString(TypeName<P1>()));
|
|
418
|
+
if (ready.is_set(1)) {
|
|
419
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
420
|
+
branches[1], StdStringToUpbString("ready"));
|
|
421
|
+
} else {
|
|
422
|
+
PromiseAsProto(
|
|
423
|
+
promise1,
|
|
424
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
425
|
+
branches[1], arena),
|
|
426
|
+
arena);
|
|
427
|
+
}
|
|
428
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
429
|
+
branches[2], StdStringToUpbString(TypeName<P2>()));
|
|
430
|
+
if (ready.is_set(2)) {
|
|
431
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
432
|
+
branches[2], StdStringToUpbString("ready"));
|
|
433
|
+
} else {
|
|
434
|
+
PromiseAsProto(
|
|
435
|
+
promise2,
|
|
436
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
437
|
+
branches[2], arena),
|
|
438
|
+
arena);
|
|
439
|
+
}
|
|
440
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
441
|
+
branches[3], StdStringToUpbString(TypeName<P3>()));
|
|
442
|
+
if (ready.is_set(3)) {
|
|
443
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
444
|
+
branches[3], StdStringToUpbString("ready"));
|
|
445
|
+
} else {
|
|
446
|
+
PromiseAsProto(
|
|
447
|
+
promise3,
|
|
448
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
449
|
+
branches[3], arena),
|
|
450
|
+
arena);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
307
453
|
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION JoinState(JoinState&& other) noexcept {
|
|
308
454
|
GRPC_DCHECK(other.ready.none());
|
|
309
455
|
Construct(&promise0, std::move(other.promise0));
|
|
@@ -480,6 +626,78 @@ struct JoinState<Traits, P0, P1, P2, P3, P4> {
|
|
|
480
626
|
delete;
|
|
481
627
|
JoinState& operator=(const JoinState& other) = delete;
|
|
482
628
|
JoinState& operator=(JoinState&& other) = delete;
|
|
629
|
+
void ToProto(grpc_channelz_v2_Promise_CompositionKind kind,
|
|
630
|
+
grpc_channelz_v2_Promise* promise_proto,
|
|
631
|
+
upb_Arena* arena) const {
|
|
632
|
+
auto* join_promise =
|
|
633
|
+
grpc_channelz_v2_Promise_mutable_join_promise(promise_proto, arena);
|
|
634
|
+
grpc_channelz_v2_Promise_Join_set_kind(join_promise, kind);
|
|
635
|
+
auto** branches =
|
|
636
|
+
grpc_channelz_v2_Promise_Join_resize_branches(join_promise, 5, arena);
|
|
637
|
+
for (int i = 0; i < 5; i++) {
|
|
638
|
+
branches[i] = grpc_channelz_v2_Promise_JoinBranch_new(arena);
|
|
639
|
+
}
|
|
640
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
641
|
+
branches[0], StdStringToUpbString(TypeName<P0>()));
|
|
642
|
+
if (ready.is_set(0)) {
|
|
643
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
644
|
+
branches[0], StdStringToUpbString("ready"));
|
|
645
|
+
} else {
|
|
646
|
+
PromiseAsProto(
|
|
647
|
+
promise0,
|
|
648
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
649
|
+
branches[0], arena),
|
|
650
|
+
arena);
|
|
651
|
+
}
|
|
652
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
653
|
+
branches[1], StdStringToUpbString(TypeName<P1>()));
|
|
654
|
+
if (ready.is_set(1)) {
|
|
655
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
656
|
+
branches[1], StdStringToUpbString("ready"));
|
|
657
|
+
} else {
|
|
658
|
+
PromiseAsProto(
|
|
659
|
+
promise1,
|
|
660
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
661
|
+
branches[1], arena),
|
|
662
|
+
arena);
|
|
663
|
+
}
|
|
664
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
665
|
+
branches[2], StdStringToUpbString(TypeName<P2>()));
|
|
666
|
+
if (ready.is_set(2)) {
|
|
667
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
668
|
+
branches[2], StdStringToUpbString("ready"));
|
|
669
|
+
} else {
|
|
670
|
+
PromiseAsProto(
|
|
671
|
+
promise2,
|
|
672
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
673
|
+
branches[2], arena),
|
|
674
|
+
arena);
|
|
675
|
+
}
|
|
676
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
677
|
+
branches[3], StdStringToUpbString(TypeName<P3>()));
|
|
678
|
+
if (ready.is_set(3)) {
|
|
679
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
680
|
+
branches[3], StdStringToUpbString("ready"));
|
|
681
|
+
} else {
|
|
682
|
+
PromiseAsProto(
|
|
683
|
+
promise3,
|
|
684
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
685
|
+
branches[3], arena),
|
|
686
|
+
arena);
|
|
687
|
+
}
|
|
688
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
689
|
+
branches[4], StdStringToUpbString(TypeName<P4>()));
|
|
690
|
+
if (ready.is_set(4)) {
|
|
691
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
692
|
+
branches[4], StdStringToUpbString("ready"));
|
|
693
|
+
} else {
|
|
694
|
+
PromiseAsProto(
|
|
695
|
+
promise4,
|
|
696
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
697
|
+
branches[4], arena),
|
|
698
|
+
arena);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
483
701
|
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION JoinState(JoinState&& other) noexcept {
|
|
484
702
|
GRPC_DCHECK(other.ready.none());
|
|
485
703
|
Construct(&promise0, std::move(other.promise0));
|
|
@@ -692,6 +910,90 @@ struct JoinState<Traits, P0, P1, P2, P3, P4, P5> {
|
|
|
692
910
|
delete;
|
|
693
911
|
JoinState& operator=(const JoinState& other) = delete;
|
|
694
912
|
JoinState& operator=(JoinState&& other) = delete;
|
|
913
|
+
void ToProto(grpc_channelz_v2_Promise_CompositionKind kind,
|
|
914
|
+
grpc_channelz_v2_Promise* promise_proto,
|
|
915
|
+
upb_Arena* arena) const {
|
|
916
|
+
auto* join_promise =
|
|
917
|
+
grpc_channelz_v2_Promise_mutable_join_promise(promise_proto, arena);
|
|
918
|
+
grpc_channelz_v2_Promise_Join_set_kind(join_promise, kind);
|
|
919
|
+
auto** branches =
|
|
920
|
+
grpc_channelz_v2_Promise_Join_resize_branches(join_promise, 6, arena);
|
|
921
|
+
for (int i = 0; i < 6; i++) {
|
|
922
|
+
branches[i] = grpc_channelz_v2_Promise_JoinBranch_new(arena);
|
|
923
|
+
}
|
|
924
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
925
|
+
branches[0], StdStringToUpbString(TypeName<P0>()));
|
|
926
|
+
if (ready.is_set(0)) {
|
|
927
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
928
|
+
branches[0], StdStringToUpbString("ready"));
|
|
929
|
+
} else {
|
|
930
|
+
PromiseAsProto(
|
|
931
|
+
promise0,
|
|
932
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
933
|
+
branches[0], arena),
|
|
934
|
+
arena);
|
|
935
|
+
}
|
|
936
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
937
|
+
branches[1], StdStringToUpbString(TypeName<P1>()));
|
|
938
|
+
if (ready.is_set(1)) {
|
|
939
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
940
|
+
branches[1], StdStringToUpbString("ready"));
|
|
941
|
+
} else {
|
|
942
|
+
PromiseAsProto(
|
|
943
|
+
promise1,
|
|
944
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
945
|
+
branches[1], arena),
|
|
946
|
+
arena);
|
|
947
|
+
}
|
|
948
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
949
|
+
branches[2], StdStringToUpbString(TypeName<P2>()));
|
|
950
|
+
if (ready.is_set(2)) {
|
|
951
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
952
|
+
branches[2], StdStringToUpbString("ready"));
|
|
953
|
+
} else {
|
|
954
|
+
PromiseAsProto(
|
|
955
|
+
promise2,
|
|
956
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
957
|
+
branches[2], arena),
|
|
958
|
+
arena);
|
|
959
|
+
}
|
|
960
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
961
|
+
branches[3], StdStringToUpbString(TypeName<P3>()));
|
|
962
|
+
if (ready.is_set(3)) {
|
|
963
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
964
|
+
branches[3], StdStringToUpbString("ready"));
|
|
965
|
+
} else {
|
|
966
|
+
PromiseAsProto(
|
|
967
|
+
promise3,
|
|
968
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
969
|
+
branches[3], arena),
|
|
970
|
+
arena);
|
|
971
|
+
}
|
|
972
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
973
|
+
branches[4], StdStringToUpbString(TypeName<P4>()));
|
|
974
|
+
if (ready.is_set(4)) {
|
|
975
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
976
|
+
branches[4], StdStringToUpbString("ready"));
|
|
977
|
+
} else {
|
|
978
|
+
PromiseAsProto(
|
|
979
|
+
promise4,
|
|
980
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
981
|
+
branches[4], arena),
|
|
982
|
+
arena);
|
|
983
|
+
}
|
|
984
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
985
|
+
branches[5], StdStringToUpbString(TypeName<P5>()));
|
|
986
|
+
if (ready.is_set(5)) {
|
|
987
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
988
|
+
branches[5], StdStringToUpbString("ready"));
|
|
989
|
+
} else {
|
|
990
|
+
PromiseAsProto(
|
|
991
|
+
promise5,
|
|
992
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
993
|
+
branches[5], arena),
|
|
994
|
+
arena);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
695
997
|
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION JoinState(JoinState&& other) noexcept {
|
|
696
998
|
GRPC_DCHECK(other.ready.none());
|
|
697
999
|
Construct(&promise0, std::move(other.promise0));
|
|
@@ -940,6 +1242,102 @@ struct JoinState<Traits, P0, P1, P2, P3, P4, P5, P6> {
|
|
|
940
1242
|
delete;
|
|
941
1243
|
JoinState& operator=(const JoinState& other) = delete;
|
|
942
1244
|
JoinState& operator=(JoinState&& other) = delete;
|
|
1245
|
+
void ToProto(grpc_channelz_v2_Promise_CompositionKind kind,
|
|
1246
|
+
grpc_channelz_v2_Promise* promise_proto,
|
|
1247
|
+
upb_Arena* arena) const {
|
|
1248
|
+
auto* join_promise =
|
|
1249
|
+
grpc_channelz_v2_Promise_mutable_join_promise(promise_proto, arena);
|
|
1250
|
+
grpc_channelz_v2_Promise_Join_set_kind(join_promise, kind);
|
|
1251
|
+
auto** branches =
|
|
1252
|
+
grpc_channelz_v2_Promise_Join_resize_branches(join_promise, 7, arena);
|
|
1253
|
+
for (int i = 0; i < 7; i++) {
|
|
1254
|
+
branches[i] = grpc_channelz_v2_Promise_JoinBranch_new(arena);
|
|
1255
|
+
}
|
|
1256
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1257
|
+
branches[0], StdStringToUpbString(TypeName<P0>()));
|
|
1258
|
+
if (ready.is_set(0)) {
|
|
1259
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1260
|
+
branches[0], StdStringToUpbString("ready"));
|
|
1261
|
+
} else {
|
|
1262
|
+
PromiseAsProto(
|
|
1263
|
+
promise0,
|
|
1264
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1265
|
+
branches[0], arena),
|
|
1266
|
+
arena);
|
|
1267
|
+
}
|
|
1268
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1269
|
+
branches[1], StdStringToUpbString(TypeName<P1>()));
|
|
1270
|
+
if (ready.is_set(1)) {
|
|
1271
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1272
|
+
branches[1], StdStringToUpbString("ready"));
|
|
1273
|
+
} else {
|
|
1274
|
+
PromiseAsProto(
|
|
1275
|
+
promise1,
|
|
1276
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1277
|
+
branches[1], arena),
|
|
1278
|
+
arena);
|
|
1279
|
+
}
|
|
1280
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1281
|
+
branches[2], StdStringToUpbString(TypeName<P2>()));
|
|
1282
|
+
if (ready.is_set(2)) {
|
|
1283
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1284
|
+
branches[2], StdStringToUpbString("ready"));
|
|
1285
|
+
} else {
|
|
1286
|
+
PromiseAsProto(
|
|
1287
|
+
promise2,
|
|
1288
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1289
|
+
branches[2], arena),
|
|
1290
|
+
arena);
|
|
1291
|
+
}
|
|
1292
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1293
|
+
branches[3], StdStringToUpbString(TypeName<P3>()));
|
|
1294
|
+
if (ready.is_set(3)) {
|
|
1295
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1296
|
+
branches[3], StdStringToUpbString("ready"));
|
|
1297
|
+
} else {
|
|
1298
|
+
PromiseAsProto(
|
|
1299
|
+
promise3,
|
|
1300
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1301
|
+
branches[3], arena),
|
|
1302
|
+
arena);
|
|
1303
|
+
}
|
|
1304
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1305
|
+
branches[4], StdStringToUpbString(TypeName<P4>()));
|
|
1306
|
+
if (ready.is_set(4)) {
|
|
1307
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1308
|
+
branches[4], StdStringToUpbString("ready"));
|
|
1309
|
+
} else {
|
|
1310
|
+
PromiseAsProto(
|
|
1311
|
+
promise4,
|
|
1312
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1313
|
+
branches[4], arena),
|
|
1314
|
+
arena);
|
|
1315
|
+
}
|
|
1316
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1317
|
+
branches[5], StdStringToUpbString(TypeName<P5>()));
|
|
1318
|
+
if (ready.is_set(5)) {
|
|
1319
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1320
|
+
branches[5], StdStringToUpbString("ready"));
|
|
1321
|
+
} else {
|
|
1322
|
+
PromiseAsProto(
|
|
1323
|
+
promise5,
|
|
1324
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1325
|
+
branches[5], arena),
|
|
1326
|
+
arena);
|
|
1327
|
+
}
|
|
1328
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1329
|
+
branches[6], StdStringToUpbString(TypeName<P6>()));
|
|
1330
|
+
if (ready.is_set(6)) {
|
|
1331
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1332
|
+
branches[6], StdStringToUpbString("ready"));
|
|
1333
|
+
} else {
|
|
1334
|
+
PromiseAsProto(
|
|
1335
|
+
promise6,
|
|
1336
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1337
|
+
branches[6], arena),
|
|
1338
|
+
arena);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
943
1341
|
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION JoinState(JoinState&& other) noexcept {
|
|
944
1342
|
GRPC_DCHECK(other.ready.none());
|
|
945
1343
|
Construct(&promise0, std::move(other.promise0));
|
|
@@ -1224,6 +1622,114 @@ struct JoinState<Traits, P0, P1, P2, P3, P4, P5, P6, P7> {
|
|
|
1224
1622
|
delete;
|
|
1225
1623
|
JoinState& operator=(const JoinState& other) = delete;
|
|
1226
1624
|
JoinState& operator=(JoinState&& other) = delete;
|
|
1625
|
+
void ToProto(grpc_channelz_v2_Promise_CompositionKind kind,
|
|
1626
|
+
grpc_channelz_v2_Promise* promise_proto,
|
|
1627
|
+
upb_Arena* arena) const {
|
|
1628
|
+
auto* join_promise =
|
|
1629
|
+
grpc_channelz_v2_Promise_mutable_join_promise(promise_proto, arena);
|
|
1630
|
+
grpc_channelz_v2_Promise_Join_set_kind(join_promise, kind);
|
|
1631
|
+
auto** branches =
|
|
1632
|
+
grpc_channelz_v2_Promise_Join_resize_branches(join_promise, 8, arena);
|
|
1633
|
+
for (int i = 0; i < 8; i++) {
|
|
1634
|
+
branches[i] = grpc_channelz_v2_Promise_JoinBranch_new(arena);
|
|
1635
|
+
}
|
|
1636
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1637
|
+
branches[0], StdStringToUpbString(TypeName<P0>()));
|
|
1638
|
+
if (ready.is_set(0)) {
|
|
1639
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1640
|
+
branches[0], StdStringToUpbString("ready"));
|
|
1641
|
+
} else {
|
|
1642
|
+
PromiseAsProto(
|
|
1643
|
+
promise0,
|
|
1644
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1645
|
+
branches[0], arena),
|
|
1646
|
+
arena);
|
|
1647
|
+
}
|
|
1648
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1649
|
+
branches[1], StdStringToUpbString(TypeName<P1>()));
|
|
1650
|
+
if (ready.is_set(1)) {
|
|
1651
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1652
|
+
branches[1], StdStringToUpbString("ready"));
|
|
1653
|
+
} else {
|
|
1654
|
+
PromiseAsProto(
|
|
1655
|
+
promise1,
|
|
1656
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1657
|
+
branches[1], arena),
|
|
1658
|
+
arena);
|
|
1659
|
+
}
|
|
1660
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1661
|
+
branches[2], StdStringToUpbString(TypeName<P2>()));
|
|
1662
|
+
if (ready.is_set(2)) {
|
|
1663
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1664
|
+
branches[2], StdStringToUpbString("ready"));
|
|
1665
|
+
} else {
|
|
1666
|
+
PromiseAsProto(
|
|
1667
|
+
promise2,
|
|
1668
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1669
|
+
branches[2], arena),
|
|
1670
|
+
arena);
|
|
1671
|
+
}
|
|
1672
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1673
|
+
branches[3], StdStringToUpbString(TypeName<P3>()));
|
|
1674
|
+
if (ready.is_set(3)) {
|
|
1675
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1676
|
+
branches[3], StdStringToUpbString("ready"));
|
|
1677
|
+
} else {
|
|
1678
|
+
PromiseAsProto(
|
|
1679
|
+
promise3,
|
|
1680
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1681
|
+
branches[3], arena),
|
|
1682
|
+
arena);
|
|
1683
|
+
}
|
|
1684
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1685
|
+
branches[4], StdStringToUpbString(TypeName<P4>()));
|
|
1686
|
+
if (ready.is_set(4)) {
|
|
1687
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1688
|
+
branches[4], StdStringToUpbString("ready"));
|
|
1689
|
+
} else {
|
|
1690
|
+
PromiseAsProto(
|
|
1691
|
+
promise4,
|
|
1692
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1693
|
+
branches[4], arena),
|
|
1694
|
+
arena);
|
|
1695
|
+
}
|
|
1696
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1697
|
+
branches[5], StdStringToUpbString(TypeName<P5>()));
|
|
1698
|
+
if (ready.is_set(5)) {
|
|
1699
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1700
|
+
branches[5], StdStringToUpbString("ready"));
|
|
1701
|
+
} else {
|
|
1702
|
+
PromiseAsProto(
|
|
1703
|
+
promise5,
|
|
1704
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1705
|
+
branches[5], arena),
|
|
1706
|
+
arena);
|
|
1707
|
+
}
|
|
1708
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1709
|
+
branches[6], StdStringToUpbString(TypeName<P6>()));
|
|
1710
|
+
if (ready.is_set(6)) {
|
|
1711
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1712
|
+
branches[6], StdStringToUpbString("ready"));
|
|
1713
|
+
} else {
|
|
1714
|
+
PromiseAsProto(
|
|
1715
|
+
promise6,
|
|
1716
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1717
|
+
branches[6], arena),
|
|
1718
|
+
arena);
|
|
1719
|
+
}
|
|
1720
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
1721
|
+
branches[7], StdStringToUpbString(TypeName<P7>()));
|
|
1722
|
+
if (ready.is_set(7)) {
|
|
1723
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
1724
|
+
branches[7], StdStringToUpbString("ready"));
|
|
1725
|
+
} else {
|
|
1726
|
+
PromiseAsProto(
|
|
1727
|
+
promise7,
|
|
1728
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
1729
|
+
branches[7], arena),
|
|
1730
|
+
arena);
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1227
1733
|
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION JoinState(JoinState&& other) noexcept {
|
|
1228
1734
|
GRPC_DCHECK(other.ready.none());
|
|
1229
1735
|
Construct(&promise0, std::move(other.promise0));
|
|
@@ -1543,6 +2049,126 @@ struct JoinState<Traits, P0, P1, P2, P3, P4, P5, P6, P7, P8> {
|
|
|
1543
2049
|
delete;
|
|
1544
2050
|
JoinState& operator=(const JoinState& other) = delete;
|
|
1545
2051
|
JoinState& operator=(JoinState&& other) = delete;
|
|
2052
|
+
void ToProto(grpc_channelz_v2_Promise_CompositionKind kind,
|
|
2053
|
+
grpc_channelz_v2_Promise* promise_proto,
|
|
2054
|
+
upb_Arena* arena) const {
|
|
2055
|
+
auto* join_promise =
|
|
2056
|
+
grpc_channelz_v2_Promise_mutable_join_promise(promise_proto, arena);
|
|
2057
|
+
grpc_channelz_v2_Promise_Join_set_kind(join_promise, kind);
|
|
2058
|
+
auto** branches =
|
|
2059
|
+
grpc_channelz_v2_Promise_Join_resize_branches(join_promise, 9, arena);
|
|
2060
|
+
for (int i = 0; i < 9; i++) {
|
|
2061
|
+
branches[i] = grpc_channelz_v2_Promise_JoinBranch_new(arena);
|
|
2062
|
+
}
|
|
2063
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2064
|
+
branches[0], StdStringToUpbString(TypeName<P0>()));
|
|
2065
|
+
if (ready.is_set(0)) {
|
|
2066
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2067
|
+
branches[0], StdStringToUpbString("ready"));
|
|
2068
|
+
} else {
|
|
2069
|
+
PromiseAsProto(
|
|
2070
|
+
promise0,
|
|
2071
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2072
|
+
branches[0], arena),
|
|
2073
|
+
arena);
|
|
2074
|
+
}
|
|
2075
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2076
|
+
branches[1], StdStringToUpbString(TypeName<P1>()));
|
|
2077
|
+
if (ready.is_set(1)) {
|
|
2078
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2079
|
+
branches[1], StdStringToUpbString("ready"));
|
|
2080
|
+
} else {
|
|
2081
|
+
PromiseAsProto(
|
|
2082
|
+
promise1,
|
|
2083
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2084
|
+
branches[1], arena),
|
|
2085
|
+
arena);
|
|
2086
|
+
}
|
|
2087
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2088
|
+
branches[2], StdStringToUpbString(TypeName<P2>()));
|
|
2089
|
+
if (ready.is_set(2)) {
|
|
2090
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2091
|
+
branches[2], StdStringToUpbString("ready"));
|
|
2092
|
+
} else {
|
|
2093
|
+
PromiseAsProto(
|
|
2094
|
+
promise2,
|
|
2095
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2096
|
+
branches[2], arena),
|
|
2097
|
+
arena);
|
|
2098
|
+
}
|
|
2099
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2100
|
+
branches[3], StdStringToUpbString(TypeName<P3>()));
|
|
2101
|
+
if (ready.is_set(3)) {
|
|
2102
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2103
|
+
branches[3], StdStringToUpbString("ready"));
|
|
2104
|
+
} else {
|
|
2105
|
+
PromiseAsProto(
|
|
2106
|
+
promise3,
|
|
2107
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2108
|
+
branches[3], arena),
|
|
2109
|
+
arena);
|
|
2110
|
+
}
|
|
2111
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2112
|
+
branches[4], StdStringToUpbString(TypeName<P4>()));
|
|
2113
|
+
if (ready.is_set(4)) {
|
|
2114
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2115
|
+
branches[4], StdStringToUpbString("ready"));
|
|
2116
|
+
} else {
|
|
2117
|
+
PromiseAsProto(
|
|
2118
|
+
promise4,
|
|
2119
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2120
|
+
branches[4], arena),
|
|
2121
|
+
arena);
|
|
2122
|
+
}
|
|
2123
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2124
|
+
branches[5], StdStringToUpbString(TypeName<P5>()));
|
|
2125
|
+
if (ready.is_set(5)) {
|
|
2126
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2127
|
+
branches[5], StdStringToUpbString("ready"));
|
|
2128
|
+
} else {
|
|
2129
|
+
PromiseAsProto(
|
|
2130
|
+
promise5,
|
|
2131
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2132
|
+
branches[5], arena),
|
|
2133
|
+
arena);
|
|
2134
|
+
}
|
|
2135
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2136
|
+
branches[6], StdStringToUpbString(TypeName<P6>()));
|
|
2137
|
+
if (ready.is_set(6)) {
|
|
2138
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2139
|
+
branches[6], StdStringToUpbString("ready"));
|
|
2140
|
+
} else {
|
|
2141
|
+
PromiseAsProto(
|
|
2142
|
+
promise6,
|
|
2143
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2144
|
+
branches[6], arena),
|
|
2145
|
+
arena);
|
|
2146
|
+
}
|
|
2147
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2148
|
+
branches[7], StdStringToUpbString(TypeName<P7>()));
|
|
2149
|
+
if (ready.is_set(7)) {
|
|
2150
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2151
|
+
branches[7], StdStringToUpbString("ready"));
|
|
2152
|
+
} else {
|
|
2153
|
+
PromiseAsProto(
|
|
2154
|
+
promise7,
|
|
2155
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2156
|
+
branches[7], arena),
|
|
2157
|
+
arena);
|
|
2158
|
+
}
|
|
2159
|
+
grpc_channelz_v2_Promise_JoinBranch_set_factory(
|
|
2160
|
+
branches[8], StdStringToUpbString(TypeName<P8>()));
|
|
2161
|
+
if (ready.is_set(8)) {
|
|
2162
|
+
grpc_channelz_v2_Promise_JoinBranch_set_result(
|
|
2163
|
+
branches[8], StdStringToUpbString("ready"));
|
|
2164
|
+
} else {
|
|
2165
|
+
PromiseAsProto(
|
|
2166
|
+
promise8,
|
|
2167
|
+
grpc_channelz_v2_Promise_JoinBranch_mutable_polling_promise(
|
|
2168
|
+
branches[8], arena),
|
|
2169
|
+
arena);
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
1546
2172
|
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION JoinState(JoinState&& other) noexcept {
|
|
1547
2173
|
GRPC_DCHECK(other.ready.none());
|
|
1548
2174
|
Construct(&promise0, std::move(other.promise0));
|