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
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* This file was generated by upb_generator from the input file:
|
|
2
|
+
*
|
|
3
|
+
* envoy/extensions/grpc_service/channel_credentials/xds/v3/xds_credentials.proto
|
|
4
|
+
*
|
|
5
|
+
* Do not edit -- your changes will be discarded when the file is
|
|
6
|
+
* regenerated.
|
|
7
|
+
* NO CHECKED-IN PROTOBUF GENCODE */
|
|
8
|
+
|
|
9
|
+
#ifndef ENVOY_EXTENSIONS_GRPC_SERVICE_CHANNEL_CREDENTIALS_XDS_V3_XDS_CREDENTIALS_PROTO_UPB_H__UPB_H_
|
|
10
|
+
#define ENVOY_EXTENSIONS_GRPC_SERVICE_CHANNEL_CREDENTIALS_XDS_V3_XDS_CREDENTIALS_PROTO_UPB_H__UPB_H_
|
|
11
|
+
|
|
12
|
+
#include "upb/generated_code_support.h"
|
|
13
|
+
|
|
14
|
+
#include "envoy/extensions/grpc_service/channel_credentials/xds/v3/xds_credentials.upb_minitable.h"
|
|
15
|
+
|
|
16
|
+
#include "google/protobuf/any.upb_minitable.h"
|
|
17
|
+
#include "udpa/annotations/status.upb_minitable.h"
|
|
18
|
+
|
|
19
|
+
// Must be last.
|
|
20
|
+
#include "upb/port/def.inc"
|
|
21
|
+
|
|
22
|
+
#ifdef __cplusplus
|
|
23
|
+
extern "C" {
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
typedef struct envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials { upb_Message UPB_PRIVATE(base); } envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials;
|
|
27
|
+
struct google_protobuf_Any;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/* envoy.extensions.grpc_service.channel_credentials.xds.v3.XdsCredentials */
|
|
32
|
+
|
|
33
|
+
UPB_INLINE envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_new(upb_Arena* arena) {
|
|
34
|
+
return (envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials*)_upb_Message_New(&envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init, arena);
|
|
35
|
+
}
|
|
36
|
+
UPB_INLINE envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_parse(const char* buf, size_t size, upb_Arena* arena) {
|
|
37
|
+
envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* ret = envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_new(arena);
|
|
38
|
+
if (!ret) return NULL;
|
|
39
|
+
if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init, NULL, 0, arena) !=
|
|
40
|
+
kUpb_DecodeStatus_Ok) {
|
|
41
|
+
return NULL;
|
|
42
|
+
}
|
|
43
|
+
return ret;
|
|
44
|
+
}
|
|
45
|
+
UPB_INLINE envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_parse_ex(const char* buf, size_t size,
|
|
46
|
+
const upb_ExtensionRegistry* extreg,
|
|
47
|
+
int options, upb_Arena* arena) {
|
|
48
|
+
envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* ret = envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_new(arena);
|
|
49
|
+
if (!ret) return NULL;
|
|
50
|
+
if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init, extreg, options,
|
|
51
|
+
arena) != kUpb_DecodeStatus_Ok) {
|
|
52
|
+
return NULL;
|
|
53
|
+
}
|
|
54
|
+
return ret;
|
|
55
|
+
}
|
|
56
|
+
UPB_INLINE char* envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_serialize(const envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* msg, upb_Arena* arena, size_t* len) {
|
|
57
|
+
char* ptr;
|
|
58
|
+
(void)upb_Encode(UPB_UPCAST(msg), &envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init, 0, arena, &ptr, len);
|
|
59
|
+
return ptr;
|
|
60
|
+
}
|
|
61
|
+
UPB_INLINE char* envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_serialize_ex(const envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* msg, int options,
|
|
62
|
+
upb_Arena* arena, size_t* len) {
|
|
63
|
+
char* ptr;
|
|
64
|
+
(void)upb_Encode(UPB_UPCAST(msg), &envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init, options, arena, &ptr, len);
|
|
65
|
+
return ptr;
|
|
66
|
+
}
|
|
67
|
+
UPB_INLINE void envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_clear_fallback_credentials(envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* msg) {
|
|
68
|
+
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
69
|
+
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
|
|
70
|
+
}
|
|
71
|
+
UPB_INLINE const struct google_protobuf_Any* envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_fallback_credentials(const envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* msg) {
|
|
72
|
+
const struct google_protobuf_Any* default_val = NULL;
|
|
73
|
+
const struct google_protobuf_Any* ret;
|
|
74
|
+
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
75
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Any_msg_init);
|
|
76
|
+
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
|
|
77
|
+
&default_val, &ret);
|
|
78
|
+
return ret;
|
|
79
|
+
}
|
|
80
|
+
UPB_INLINE bool envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_has_fallback_credentials(const envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* msg) {
|
|
81
|
+
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
82
|
+
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
UPB_INLINE void envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_set_fallback_credentials(envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials *msg, struct google_protobuf_Any* value) {
|
|
86
|
+
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
87
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Any_msg_init);
|
|
88
|
+
upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
|
|
89
|
+
}
|
|
90
|
+
UPB_INLINE struct google_protobuf_Any* envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_mutable_fallback_credentials(envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials* msg, upb_Arena* arena) {
|
|
91
|
+
struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_fallback_credentials(msg);
|
|
92
|
+
if (sub == NULL) {
|
|
93
|
+
sub = (struct google_protobuf_Any*)_upb_Message_New(&google__protobuf__Any_msg_init, arena);
|
|
94
|
+
if (sub) envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials_set_fallback_credentials(msg, sub);
|
|
95
|
+
}
|
|
96
|
+
return sub;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#ifdef __cplusplus
|
|
100
|
+
} /* extern "C" */
|
|
101
|
+
#endif
|
|
102
|
+
|
|
103
|
+
#include "upb/port/undef.inc"
|
|
104
|
+
|
|
105
|
+
#endif /* ENVOY_EXTENSIONS_GRPC_SERVICE_CHANNEL_CREDENTIALS_XDS_V3_XDS_CREDENTIALS_PROTO_UPB_H__UPB_H_ */
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* This file was generated by upb_generator from the input file:
|
|
2
|
+
*
|
|
3
|
+
* envoy/extensions/grpc_service/channel_credentials/xds/v3/xds_credentials.proto
|
|
4
|
+
*
|
|
5
|
+
* Do not edit -- your changes will be discarded when the file is
|
|
6
|
+
* regenerated.
|
|
7
|
+
* NO CHECKED-IN PROTOBUF GENCODE */
|
|
8
|
+
|
|
9
|
+
#include <stddef.h>
|
|
10
|
+
#include "upb/generated_code_support.h"
|
|
11
|
+
#include "envoy/extensions/grpc_service/channel_credentials/xds/v3/xds_credentials.upb_minitable.h"
|
|
12
|
+
#include "google/protobuf/any.upb_minitable.h"
|
|
13
|
+
#include "udpa/annotations/status.upb_minitable.h"
|
|
14
|
+
|
|
15
|
+
// Must be last.
|
|
16
|
+
#include "upb/port/def.inc"
|
|
17
|
+
|
|
18
|
+
extern const struct upb_MiniTable UPB_PRIVATE(_kUpb_MiniTable_StaticallyTreeShaken);
|
|
19
|
+
static const upb_MiniTableSubInternal envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials__submsgs[1] = {
|
|
20
|
+
{.UPB_PRIVATE(submsg) = &google__protobuf__Any_msg_init_ptr},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
static const upb_MiniTableField envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials__fields[1] = {
|
|
24
|
+
{1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const upb_MiniTable envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init = {
|
|
28
|
+
&envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials__submsgs[0],
|
|
29
|
+
&envoy_extensions_grpc_service_channel_credentials_xds_v3_XdsCredentials__fields[0],
|
|
30
|
+
UPB_SIZE(16, 24), 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(255), 0,
|
|
31
|
+
#ifdef UPB_TRACING_ENABLED
|
|
32
|
+
"envoy.extensions.grpc_service.channel_credentials.xds.v3.XdsCredentials",
|
|
33
|
+
#endif
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const upb_MiniTable* envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init_ptr = &envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init;
|
|
37
|
+
static const upb_MiniTable *messages_layout[1] = {
|
|
38
|
+
&envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const upb_MiniTableFile envoy_extensions_grpc_service_channel_credentials_xds_v3_xds_credentials_proto_upb_file_layout = {
|
|
42
|
+
messages_layout,
|
|
43
|
+
NULL,
|
|
44
|
+
NULL,
|
|
45
|
+
1,
|
|
46
|
+
0,
|
|
47
|
+
0,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
#include "upb/port/undef.inc"
|
|
51
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* This file was generated by upb_generator from the input file:
|
|
2
|
+
*
|
|
3
|
+
* envoy/extensions/grpc_service/channel_credentials/xds/v3/xds_credentials.proto
|
|
4
|
+
*
|
|
5
|
+
* Do not edit -- your changes will be discarded when the file is
|
|
6
|
+
* regenerated.
|
|
7
|
+
* NO CHECKED-IN PROTOBUF GENCODE */
|
|
8
|
+
|
|
9
|
+
#ifndef ENVOY_EXTENSIONS_GRPC_SERVICE_CHANNEL_CREDENTIALS_XDS_V3_XDS_CREDENTIALS_PROTO_UPB_H__UPB_MINITABLE_H_
|
|
10
|
+
#define ENVOY_EXTENSIONS_GRPC_SERVICE_CHANNEL_CREDENTIALS_XDS_V3_XDS_CREDENTIALS_PROTO_UPB_H__UPB_MINITABLE_H_
|
|
11
|
+
|
|
12
|
+
#include "upb/generated_code_support.h"
|
|
13
|
+
|
|
14
|
+
// Must be last.
|
|
15
|
+
#include "upb/port/def.inc"
|
|
16
|
+
|
|
17
|
+
#ifdef __cplusplus
|
|
18
|
+
extern "C" {
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
extern const upb_MiniTable envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init;
|
|
22
|
+
extern const upb_MiniTable* envoy__extensions__grpc_0service__channel_0credentials__xds__v3__XdsCredentials_msg_init_ptr;
|
|
23
|
+
|
|
24
|
+
extern const upb_MiniTableFile envoy_extensions_grpc_service_channel_credentials_xds_v3_xds_credentials_proto_upb_file_layout;
|
|
25
|
+
|
|
26
|
+
#ifdef __cplusplus
|
|
27
|
+
} /* extern "C" */
|
|
28
|
+
#endif
|
|
29
|
+
|
|
30
|
+
#include "upb/port/undef.inc"
|
|
31
|
+
|
|
32
|
+
#endif /* ENVOY_EXTENSIONS_GRPC_SERVICE_CHANNEL_CREDENTIALS_XDS_V3_XDS_CREDENTIALS_PROTO_UPB_H__UPB_MINITABLE_H_ */
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
#include "envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.h"
|
|
15
15
|
|
|
16
|
+
#include "envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h"
|
|
16
17
|
#include "google/protobuf/duration.upb_minitable.h"
|
|
17
18
|
#include "google/protobuf/wrappers.upb_minitable.h"
|
|
18
19
|
#include "udpa/annotations/status.upb_minitable.h"
|
|
@@ -26,6 +27,7 @@ extern "C" {
|
|
|
26
27
|
#endif
|
|
27
28
|
|
|
28
29
|
typedef struct envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin { upb_Message UPB_PRIVATE(base); } envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin;
|
|
30
|
+
struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig;
|
|
29
31
|
struct google_protobuf_BoolValue;
|
|
30
32
|
struct google_protobuf_Duration;
|
|
31
33
|
struct google_protobuf_FloatValue;
|
|
@@ -202,6 +204,23 @@ UPB_INLINE upb_Array* _envoy_extensions_load_balancing_policies_client_side_weig
|
|
|
202
204
|
}
|
|
203
205
|
return arr;
|
|
204
206
|
}
|
|
207
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin_clear_slow_start_config(envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin* msg) {
|
|
208
|
+
const upb_MiniTableField field = {8, UPB_SIZE(40, 72), 70, 6, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
209
|
+
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
|
|
210
|
+
}
|
|
211
|
+
UPB_INLINE const struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig* envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin_slow_start_config(const envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin* msg) {
|
|
212
|
+
const struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig* default_val = NULL;
|
|
213
|
+
const struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig* ret;
|
|
214
|
+
const upb_MiniTableField field = {8, UPB_SIZE(40, 72), 70, 6, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
215
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__extensions__load_0balancing_0policies__common__v3__SlowStartConfig_msg_init);
|
|
216
|
+
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
|
|
217
|
+
&default_val, &ret);
|
|
218
|
+
return ret;
|
|
219
|
+
}
|
|
220
|
+
UPB_INLINE bool envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin_has_slow_start_config(const envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin* msg) {
|
|
221
|
+
const upb_MiniTableField field = {8, UPB_SIZE(40, 72), 70, 6, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
222
|
+
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
|
|
223
|
+
}
|
|
205
224
|
|
|
206
225
|
UPB_INLINE void envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin_set_enable_oob_load_report(envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin *msg, struct google_protobuf_BoolValue* value) {
|
|
207
226
|
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
@@ -309,6 +328,19 @@ UPB_INLINE bool envoy_extensions_load_balancing_policies_client_side_weighted_ro
|
|
|
309
328
|
(arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
|
|
310
329
|
return true;
|
|
311
330
|
}
|
|
331
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin_set_slow_start_config(envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin *msg, struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig* value) {
|
|
332
|
+
const upb_MiniTableField field = {8, UPB_SIZE(40, 72), 70, 6, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
333
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__extensions__load_0balancing_0policies__common__v3__SlowStartConfig_msg_init);
|
|
334
|
+
upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
|
|
335
|
+
}
|
|
336
|
+
UPB_INLINE struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig* envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin_mutable_slow_start_config(envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin* msg, upb_Arena* arena) {
|
|
337
|
+
struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig* sub = (struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig*)envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin_slow_start_config(msg);
|
|
338
|
+
if (sub == NULL) {
|
|
339
|
+
sub = (struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig*)_upb_Message_New(&envoy__extensions__load_0balancing_0policies__common__v3__SlowStartConfig_msg_init, arena);
|
|
340
|
+
if (sub) envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin_set_slow_start_config(msg, sub);
|
|
341
|
+
}
|
|
342
|
+
return sub;
|
|
343
|
+
}
|
|
312
344
|
|
|
313
345
|
#ifdef __cplusplus
|
|
314
346
|
} /* extern "C" */
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
#include <stddef.h>
|
|
10
10
|
#include "upb/generated_code_support.h"
|
|
11
11
|
#include "envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.h"
|
|
12
|
+
#include "envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h"
|
|
12
13
|
#include "google/protobuf/duration.upb_minitable.h"
|
|
13
14
|
#include "google/protobuf/wrappers.upb_minitable.h"
|
|
14
15
|
#include "udpa/annotations/status.upb_minitable.h"
|
|
@@ -18,16 +19,17 @@
|
|
|
18
19
|
#include "upb/port/def.inc"
|
|
19
20
|
|
|
20
21
|
extern const struct upb_MiniTable UPB_PRIVATE(_kUpb_MiniTable_StaticallyTreeShaken);
|
|
21
|
-
static const upb_MiniTableSubInternal envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin__submsgs[
|
|
22
|
+
static const upb_MiniTableSubInternal envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin__submsgs[7] = {
|
|
22
23
|
{.UPB_PRIVATE(submsg) = &google__protobuf__BoolValue_msg_init_ptr},
|
|
23
24
|
{.UPB_PRIVATE(submsg) = &google__protobuf__Duration_msg_init_ptr},
|
|
24
25
|
{.UPB_PRIVATE(submsg) = &google__protobuf__Duration_msg_init_ptr},
|
|
25
26
|
{.UPB_PRIVATE(submsg) = &google__protobuf__Duration_msg_init_ptr},
|
|
26
27
|
{.UPB_PRIVATE(submsg) = &google__protobuf__Duration_msg_init_ptr},
|
|
27
28
|
{.UPB_PRIVATE(submsg) = &google__protobuf__FloatValue_msg_init_ptr},
|
|
29
|
+
{.UPB_PRIVATE(submsg) = &envoy__extensions__load_0balancing_0policies__common__v3__SlowStartConfig_msg_init_ptr},
|
|
28
30
|
};
|
|
29
31
|
|
|
30
|
-
static const upb_MiniTableField envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin__fields[
|
|
32
|
+
static const upb_MiniTableField envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin__fields[8] = {
|
|
31
33
|
{1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
|
|
32
34
|
{2, UPB_SIZE(16, 24), 65, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
|
|
33
35
|
{3, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
|
|
@@ -35,12 +37,13 @@ static const upb_MiniTableField envoy_extensions_load_balancing_policies_client_
|
|
|
35
37
|
{5, UPB_SIZE(28, 48), 68, 4, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
|
|
36
38
|
{6, UPB_SIZE(32, 56), 69, 5, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
|
|
37
39
|
{7, UPB_SIZE(36, 64), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
|
|
40
|
+
{8, UPB_SIZE(40, 72), 70, 6, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)},
|
|
38
41
|
};
|
|
39
42
|
|
|
40
43
|
const upb_MiniTable envoy__extensions__load_0balancing_0policies__client_0side_0weighted_0round_0robin__v3__ClientSideWeightedRoundRobin_msg_init = {
|
|
41
44
|
&envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin__submsgs[0],
|
|
42
45
|
&envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_v3_ClientSideWeightedRoundRobin__fields[0],
|
|
43
|
-
UPB_SIZE(
|
|
46
|
+
UPB_SIZE(48, 80), 8, kUpb_ExtMode_NonExtendable, 8, UPB_FASTTABLE_MASK(56), 0,
|
|
44
47
|
#ifdef UPB_TRACING_ENABLED
|
|
45
48
|
"envoy.extensions.load_balancing_policies.client_side_weighted_round_robin.v3.ClientSideWeightedRoundRobin",
|
|
46
49
|
#endif
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
#include "envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h"
|
|
15
15
|
|
|
16
16
|
#include "envoy/config/core/v3/base.upb_minitable.h"
|
|
17
|
+
#include "envoy/config/route/v3/route_components.upb_minitable.h"
|
|
17
18
|
#include "envoy/type/v3/percent.upb_minitable.h"
|
|
18
19
|
#include "google/protobuf/duration.upb_minitable.h"
|
|
19
20
|
#include "google/protobuf/wrappers.upb_minitable.h"
|
|
21
|
+
#include "envoy/annotations/deprecation.upb_minitable.h"
|
|
20
22
|
#include "udpa/annotations/status.upb_minitable.h"
|
|
21
23
|
#include "validate/validate.upb_minitable.h"
|
|
22
24
|
|
|
@@ -29,15 +31,22 @@ extern "C" {
|
|
|
29
31
|
|
|
30
32
|
typedef struct envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig { upb_Message UPB_PRIVATE(base); } envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig;
|
|
31
33
|
typedef struct envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig { upb_Message UPB_PRIVATE(base); } envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig;
|
|
34
|
+
typedef struct envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone { upb_Message UPB_PRIVATE(base); } envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone;
|
|
32
35
|
typedef struct envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_LocalityWeightedLbConfig { upb_Message UPB_PRIVATE(base); } envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_LocalityWeightedLbConfig;
|
|
33
36
|
typedef struct envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig { upb_Message UPB_PRIVATE(base); } envoy_extensions_load_balancing_policies_common_v3_SlowStartConfig;
|
|
34
37
|
typedef struct envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig { upb_Message UPB_PRIVATE(base); } envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig;
|
|
35
38
|
struct envoy_config_core_v3_RuntimeDouble;
|
|
39
|
+
struct envoy_config_route_v3_RouteAction_HashPolicy;
|
|
36
40
|
struct envoy_type_v3_Percent;
|
|
37
41
|
struct google_protobuf_Duration;
|
|
38
42
|
struct google_protobuf_UInt32Value;
|
|
39
43
|
struct google_protobuf_UInt64Value;
|
|
40
44
|
|
|
45
|
+
typedef enum {
|
|
46
|
+
envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_HEALTHY_HOSTS_NUM = 0,
|
|
47
|
+
envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_HEALTHY_HOSTS_WEIGHT = 1
|
|
48
|
+
} envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_LocalityBasis;
|
|
49
|
+
|
|
41
50
|
|
|
42
51
|
|
|
43
52
|
/* envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig */
|
|
@@ -234,6 +243,47 @@ UPB_INLINE bool envoy_extensions_load_balancing_policies_common_v3_LocalityLbCon
|
|
|
234
243
|
&default_val, &ret);
|
|
235
244
|
return ret;
|
|
236
245
|
}
|
|
246
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_clear_force_locality_direct_routing(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig* msg) {
|
|
247
|
+
const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
|
|
248
|
+
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
|
|
249
|
+
}
|
|
250
|
+
UPB_INLINE bool envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_force_locality_direct_routing(const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig* msg) {
|
|
251
|
+
bool default_val = false;
|
|
252
|
+
bool ret;
|
|
253
|
+
const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
|
|
254
|
+
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
|
|
255
|
+
&default_val, &ret);
|
|
256
|
+
return ret;
|
|
257
|
+
}
|
|
258
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_clear_force_local_zone(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig* msg) {
|
|
259
|
+
const upb_MiniTableField field = {5, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
260
|
+
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
|
|
261
|
+
}
|
|
262
|
+
UPB_INLINE const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_force_local_zone(const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig* msg) {
|
|
263
|
+
const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* default_val = NULL;
|
|
264
|
+
const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* ret;
|
|
265
|
+
const upb_MiniTableField field = {5, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
266
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__extensions__load_0balancing_0policies__common__v3__LocalityLbConfig__ZoneAwareLbConfig__ForceLocalZone_msg_init);
|
|
267
|
+
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
|
|
268
|
+
&default_val, &ret);
|
|
269
|
+
return ret;
|
|
270
|
+
}
|
|
271
|
+
UPB_INLINE bool envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_has_force_local_zone(const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig* msg) {
|
|
272
|
+
const upb_MiniTableField field = {5, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
273
|
+
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
|
|
274
|
+
}
|
|
275
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_clear_locality_basis(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig* msg) {
|
|
276
|
+
const upb_MiniTableField field = {6, UPB_SIZE(24, 12), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
|
|
277
|
+
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
|
|
278
|
+
}
|
|
279
|
+
UPB_INLINE int32_t envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_locality_basis(const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig* msg) {
|
|
280
|
+
int32_t default_val = 0;
|
|
281
|
+
int32_t ret;
|
|
282
|
+
const upb_MiniTableField field = {6, UPB_SIZE(24, 12), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
|
|
283
|
+
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
|
|
284
|
+
&default_val, &ret);
|
|
285
|
+
return ret;
|
|
286
|
+
}
|
|
237
287
|
|
|
238
288
|
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_set_routing_enabled(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig *msg, struct envoy_type_v3_Percent* value) {
|
|
239
289
|
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
@@ -265,6 +315,95 @@ UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbCon
|
|
|
265
315
|
const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
|
|
266
316
|
upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
|
|
267
317
|
}
|
|
318
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_set_force_locality_direct_routing(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig *msg, bool value) {
|
|
319
|
+
const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
|
|
320
|
+
upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
|
|
321
|
+
}
|
|
322
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_set_force_local_zone(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig *msg, envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* value) {
|
|
323
|
+
const upb_MiniTableField field = {5, UPB_SIZE(20, 32), 66, 2, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
324
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__extensions__load_0balancing_0policies__common__v3__LocalityLbConfig__ZoneAwareLbConfig__ForceLocalZone_msg_init);
|
|
325
|
+
upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
|
|
326
|
+
}
|
|
327
|
+
UPB_INLINE struct envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_mutable_force_local_zone(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig* msg, upb_Arena* arena) {
|
|
328
|
+
struct envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* sub = (struct envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone*)envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_force_local_zone(msg);
|
|
329
|
+
if (sub == NULL) {
|
|
330
|
+
sub = (struct envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone*)_upb_Message_New(&envoy__extensions__load_0balancing_0policies__common__v3__LocalityLbConfig__ZoneAwareLbConfig__ForceLocalZone_msg_init, arena);
|
|
331
|
+
if (sub) envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_set_force_local_zone(msg, sub);
|
|
332
|
+
}
|
|
333
|
+
return sub;
|
|
334
|
+
}
|
|
335
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_set_locality_basis(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig *msg, int32_t value) {
|
|
336
|
+
const upb_MiniTableField field = {6, UPB_SIZE(24, 12), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
|
|
337
|
+
upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.ZoneAwareLbConfig.ForceLocalZone */
|
|
341
|
+
|
|
342
|
+
UPB_INLINE envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_new(upb_Arena* arena) {
|
|
343
|
+
return (envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone*)_upb_Message_New(&envoy__extensions__load_0balancing_0policies__common__v3__LocalityLbConfig__ZoneAwareLbConfig__ForceLocalZone_msg_init, arena);
|
|
344
|
+
}
|
|
345
|
+
UPB_INLINE envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_parse(const char* buf, size_t size, upb_Arena* arena) {
|
|
346
|
+
envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* ret = envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_new(arena);
|
|
347
|
+
if (!ret) return NULL;
|
|
348
|
+
if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__extensions__load_0balancing_0policies__common__v3__LocalityLbConfig__ZoneAwareLbConfig__ForceLocalZone_msg_init, NULL, 0, arena) !=
|
|
349
|
+
kUpb_DecodeStatus_Ok) {
|
|
350
|
+
return NULL;
|
|
351
|
+
}
|
|
352
|
+
return ret;
|
|
353
|
+
}
|
|
354
|
+
UPB_INLINE envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_parse_ex(const char* buf, size_t size,
|
|
355
|
+
const upb_ExtensionRegistry* extreg,
|
|
356
|
+
int options, upb_Arena* arena) {
|
|
357
|
+
envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* ret = envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_new(arena);
|
|
358
|
+
if (!ret) return NULL;
|
|
359
|
+
if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__extensions__load_0balancing_0policies__common__v3__LocalityLbConfig__ZoneAwareLbConfig__ForceLocalZone_msg_init, extreg, options,
|
|
360
|
+
arena) != kUpb_DecodeStatus_Ok) {
|
|
361
|
+
return NULL;
|
|
362
|
+
}
|
|
363
|
+
return ret;
|
|
364
|
+
}
|
|
365
|
+
UPB_INLINE char* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_serialize(const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* msg, upb_Arena* arena, size_t* len) {
|
|
366
|
+
char* ptr;
|
|
367
|
+
(void)upb_Encode(UPB_UPCAST(msg), &envoy__extensions__load_0balancing_0policies__common__v3__LocalityLbConfig__ZoneAwareLbConfig__ForceLocalZone_msg_init, 0, arena, &ptr, len);
|
|
368
|
+
return ptr;
|
|
369
|
+
}
|
|
370
|
+
UPB_INLINE char* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_serialize_ex(const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* msg, int options,
|
|
371
|
+
upb_Arena* arena, size_t* len) {
|
|
372
|
+
char* ptr;
|
|
373
|
+
(void)upb_Encode(UPB_UPCAST(msg), &envoy__extensions__load_0balancing_0policies__common__v3__LocalityLbConfig__ZoneAwareLbConfig__ForceLocalZone_msg_init, options, arena, &ptr, len);
|
|
374
|
+
return ptr;
|
|
375
|
+
}
|
|
376
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_clear_min_size(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* msg) {
|
|
377
|
+
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
378
|
+
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
|
|
379
|
+
}
|
|
380
|
+
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_min_size(const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* msg) {
|
|
381
|
+
const struct google_protobuf_UInt32Value* default_val = NULL;
|
|
382
|
+
const struct google_protobuf_UInt32Value* ret;
|
|
383
|
+
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
384
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UInt32Value_msg_init);
|
|
385
|
+
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
|
|
386
|
+
&default_val, &ret);
|
|
387
|
+
return ret;
|
|
388
|
+
}
|
|
389
|
+
UPB_INLINE bool envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_has_min_size(const envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* msg) {
|
|
390
|
+
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
391
|
+
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_set_min_size(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone *msg, struct google_protobuf_UInt32Value* value) {
|
|
395
|
+
const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
396
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__UInt32Value_msg_init);
|
|
397
|
+
upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
|
|
398
|
+
}
|
|
399
|
+
UPB_INLINE struct google_protobuf_UInt32Value* envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_mutable_min_size(envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone* msg, upb_Arena* arena) {
|
|
400
|
+
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_min_size(msg);
|
|
401
|
+
if (sub == NULL) {
|
|
402
|
+
sub = (struct google_protobuf_UInt32Value*)_upb_Message_New(&google__protobuf__UInt32Value_msg_init, arena);
|
|
403
|
+
if (sub) envoy_extensions_load_balancing_policies_common_v3_LocalityLbConfig_ZoneAwareLbConfig_ForceLocalZone_set_min_size(msg, sub);
|
|
404
|
+
}
|
|
405
|
+
return sub;
|
|
406
|
+
}
|
|
268
407
|
|
|
269
408
|
/* envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig */
|
|
270
409
|
|
|
@@ -497,6 +636,41 @@ UPB_INLINE bool envoy_extensions_load_balancing_policies_common_v3_ConsistentHas
|
|
|
497
636
|
const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
498
637
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
|
|
499
638
|
}
|
|
639
|
+
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_clear_hash_policy(envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig* msg) {
|
|
640
|
+
const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
641
|
+
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
|
|
642
|
+
}
|
|
643
|
+
UPB_INLINE const struct envoy_config_route_v3_RouteAction_HashPolicy* const* envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_hash_policy(const envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig* msg, size_t* size) {
|
|
644
|
+
const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
645
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__route__v3__RouteAction__HashPolicy_msg_init);
|
|
646
|
+
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
|
|
647
|
+
if (arr) {
|
|
648
|
+
if (size) *size = arr->UPB_PRIVATE(size);
|
|
649
|
+
return (const struct envoy_config_route_v3_RouteAction_HashPolicy* const*)upb_Array_DataPtr(arr);
|
|
650
|
+
} else {
|
|
651
|
+
if (size) *size = 0;
|
|
652
|
+
return NULL;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
UPB_INLINE const upb_Array* _envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_hash_policy_upb_array(const envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig* msg, size_t* size) {
|
|
656
|
+
const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
657
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__route__v3__RouteAction__HashPolicy_msg_init);
|
|
658
|
+
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
|
|
659
|
+
if (size) {
|
|
660
|
+
*size = arr ? arr->UPB_PRIVATE(size) : 0;
|
|
661
|
+
}
|
|
662
|
+
return arr;
|
|
663
|
+
}
|
|
664
|
+
UPB_INLINE upb_Array* _envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_hash_policy_mutable_upb_array(envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig* msg, size_t* size, upb_Arena* arena) {
|
|
665
|
+
const upb_MiniTableField field = {3, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
666
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__route__v3__RouteAction__HashPolicy_msg_init);
|
|
667
|
+
upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
|
|
668
|
+
&field, arena);
|
|
669
|
+
if (size) {
|
|
670
|
+
*size = arr ? arr->UPB_PRIVATE(size) : 0;
|
|
671
|
+
}
|
|
672
|
+
return arr;
|
|
673
|
+
}
|
|
500
674
|
|
|
501
675
|
UPB_INLINE void envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_set_use_hostname_for_hashing(envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig *msg, bool value) {
|
|
502
676
|
const upb_MiniTableField field = {1, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
|
|
@@ -515,6 +689,38 @@ UPB_INLINE struct google_protobuf_UInt32Value* envoy_extensions_load_balancing_p
|
|
|
515
689
|
}
|
|
516
690
|
return sub;
|
|
517
691
|
}
|
|
692
|
+
UPB_INLINE struct envoy_config_route_v3_RouteAction_HashPolicy** envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_mutable_hash_policy(envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig* msg, size_t* size) {
|
|
693
|
+
upb_MiniTableField field = {3, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
694
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__route__v3__RouteAction__HashPolicy_msg_init);
|
|
695
|
+
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
|
|
696
|
+
if (arr) {
|
|
697
|
+
if (size) *size = arr->UPB_PRIVATE(size);
|
|
698
|
+
return (struct envoy_config_route_v3_RouteAction_HashPolicy**)upb_Array_MutableDataPtr(arr);
|
|
699
|
+
} else {
|
|
700
|
+
if (size) *size = 0;
|
|
701
|
+
return NULL;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
UPB_INLINE struct envoy_config_route_v3_RouteAction_HashPolicy** envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_resize_hash_policy(envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig* msg, size_t size, upb_Arena* arena) {
|
|
705
|
+
upb_MiniTableField field = {3, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
706
|
+
return (struct envoy_config_route_v3_RouteAction_HashPolicy**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
|
|
707
|
+
&field, size, arena);
|
|
708
|
+
}
|
|
709
|
+
UPB_INLINE struct envoy_config_route_v3_RouteAction_HashPolicy* envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig_add_hash_policy(envoy_extensions_load_balancing_policies_common_v3_ConsistentHashingLbConfig* msg, upb_Arena* arena) {
|
|
710
|
+
upb_MiniTableField field = {3, UPB_SIZE(16, 24), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
|
|
711
|
+
UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__route__v3__RouteAction__HashPolicy_msg_init);
|
|
712
|
+
upb_Array* arr = upb_Message_GetOrCreateMutableArray(
|
|
713
|
+
UPB_UPCAST(msg), &field, arena);
|
|
714
|
+
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
|
|
715
|
+
arr, arr->UPB_PRIVATE(size) + 1, arena)) {
|
|
716
|
+
return NULL;
|
|
717
|
+
}
|
|
718
|
+
struct envoy_config_route_v3_RouteAction_HashPolicy* sub = (struct envoy_config_route_v3_RouteAction_HashPolicy*)_upb_Message_New(&envoy__config__route__v3__RouteAction__HashPolicy_msg_init, arena);
|
|
719
|
+
if (!arr || !sub) return NULL;
|
|
720
|
+
UPB_PRIVATE(_upb_Array_Set)
|
|
721
|
+
(arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
|
|
722
|
+
return sub;
|
|
723
|
+
}
|
|
518
724
|
|
|
519
725
|
#ifdef __cplusplus
|
|
520
726
|
} /* extern "C" */
|