grpc 1.31.1 → 1.32.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Makefile +595 -15723
- data/include/grpc/grpc_security.h +31 -14
- data/include/grpc/impl/codegen/README.md +22 -0
- data/include/grpc/impl/codegen/port_platform.h +6 -1
- data/src/core/ext/filters/client_channel/backup_poller.cc +3 -2
- data/src/core/ext/filters/client_channel/client_channel.cc +64 -20
- data/src/core/ext/filters/client_channel/client_channel.h +1 -1
- data/src/core/ext/filters/client_channel/client_channel_channelz.h +0 -3
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +6 -1
- data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +2 -3
- data/src/core/ext/filters/client_channel/lb_policy.h +2 -0
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +6 -4
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +20 -13
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +0 -13
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +0 -3
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +1 -37
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +19 -13
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +29 -10
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +5 -4
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +20 -9
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +18 -12
- data/src/core/ext/filters/client_channel/lb_policy/xds/eds.cc +22 -14
- data/src/core/ext/filters/client_channel/lb_policy/xds/lrs.cc +18 -9
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_routing.cc +54 -56
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +3 -3
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_libuv.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +363 -14
- data/src/core/ext/filters/client_channel/resolver_result_parsing.h +0 -1
- data/src/core/ext/filters/client_channel/resolving_lb_policy.cc +5 -4
- data/src/core/ext/filters/client_channel/server_address.cc +40 -7
- data/src/core/ext/filters/client_channel/server_address.h +42 -4
- data/src/core/ext/filters/client_channel/subchannel.cc +64 -23
- data/src/core/ext/filters/client_channel/subchannel.h +16 -4
- data/src/core/ext/filters/max_age/max_age_filter.cc +2 -1
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +87 -31
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +18 -1
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +10 -35
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +19 -25
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +2 -1
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc +2 -2
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc +6 -6
- data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc +3 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +239 -277
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +2 -2
- data/src/core/ext/transport/chttp2/transport/internal.h +5 -1
- data/src/core/ext/transport/chttp2/transport/parsing.cc +1 -28
- data/src/core/ext/transport/chttp2/transport/writing.cc +6 -5
- data/src/core/ext/transport/inproc/inproc_transport.cc +12 -12
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +224 -0
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +700 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +74 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +226 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +380 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +1378 -0
- data/src/core/ext/upb-generated/envoy/{api/v2/cluster → config/cluster/v3}/filter.upb.c +8 -8
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +69 -0
- data/src/core/ext/upb-generated/envoy/{api/v2/cluster → config/cluster/v3}/outlier_detection.upb.c +8 -8
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +323 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +112 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +334 -0
- data/src/core/ext/upb-generated/envoy/{api/v2/core → config/core/v3}/backoff.upb.c +8 -8
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +79 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +309 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +869 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +96 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +328 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +34 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +71 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +195 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +634 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +170 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +684 -0
- data/src/core/ext/upb-generated/envoy/{api/v2/core → config/core/v3}/http_uri.upb.c +8 -8
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +80 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +152 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +536 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +28 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +58 -0
- data/src/core/ext/upb-generated/envoy/{api/v2/core → config/core/v3}/socket_option.upb.c +6 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +88 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +91 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +220 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +91 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +273 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +112 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +332 -0
- data/src/core/ext/upb-generated/envoy/config/listener/{v2 → v3}/api_listener.upb.c +8 -8
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +65 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +108 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +401 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +138 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +490 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +41 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +94 -0
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +174 -0
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +599 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +63 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +204 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +773 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +2855 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +59 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +135 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +50 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +108 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +312 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +1125 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +20 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +34 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +111 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +401 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +72 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +198 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +105 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +388 -0
- data/src/core/ext/upb-generated/envoy/{api/v2 → service/cluster/v3}/cds.upb.c +5 -6
- data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.h +49 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/{v2 → v3}/ads.upb.c +5 -4
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +49 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +129 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +386 -0
- data/src/core/ext/upb-generated/envoy/{api/v2 → service/endpoint/v3}/eds.upb.c +5 -6
- data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.h +49 -0
- data/src/core/ext/upb-generated/envoy/{api/v2 → service/listener/v3}/lds.upb.c +5 -6
- data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.h +49 -0
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +55 -0
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +136 -0
- data/src/core/ext/upb-generated/envoy/{api/v2 → service/route/v3}/rds.upb.c +5 -6
- data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.h +49 -0
- data/src/core/ext/upb-generated/envoy/{api/v2 → service/route/v3}/srds.upb.c +5 -6
- data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.h +49 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +47 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +114 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +35 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +77 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +34 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +71 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +64 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +145 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +53 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +127 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +63 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +188 -0
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +88 -0
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +258 -0
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +90 -0
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +250 -0
- data/src/core/ext/upb-generated/envoy/type/{http.upb.c → v3/http.upb.c} +2 -2
- data/src/core/ext/upb-generated/envoy/type/{http.upb.h → v3/http.upb.h} +8 -8
- data/src/core/ext/upb-generated/envoy/type/{percent.upb.c → v3/percent.upb.c} +9 -8
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +86 -0
- data/src/core/ext/upb-generated/envoy/type/{range.upb.c → v3/range.upb.c} +12 -11
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +111 -0
- data/src/core/ext/upb-generated/envoy/type/{semantic_version.upb.c → v3/semantic_version.upb.c} +6 -5
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +61 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +234 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +759 -0
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +36 -36
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +1 -1
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +27 -0
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +53 -0
- data/src/core/ext/upb-generated/validate/validate.upb.c +11 -11
- data/src/core/ext/upb-generated/validate/validate.upb.h +1 -1
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_api.cc +1045 -767
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_api.h +114 -99
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_bootstrap.cc +44 -2
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_bootstrap.h +8 -3
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_channel.h +4 -4
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_channel_args.h +3 -3
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_channel_secure.cc +2 -5
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_client.cc +85 -417
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_client.h +12 -45
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_client_stats.cc +2 -2
- data/src/core/ext/{filters/client_channel/xds → xds}/xds_client_stats.h +3 -3
- data/src/core/lib/channel/channelz.cc +14 -15
- data/src/core/lib/channel/channelz.h +1 -1
- data/src/core/lib/channel/channelz_registry.cc +3 -1
- data/src/core/lib/gpr/sync_posix.cc +2 -8
- data/src/core/lib/iomgr/endpoint.cc +5 -1
- data/src/core/lib/iomgr/endpoint.h +7 -3
- data/src/core/lib/iomgr/endpoint_cfstream.cc +32 -11
- data/src/core/lib/iomgr/ev_posix.cc +0 -2
- data/src/core/lib/iomgr/iomgr.cc +0 -10
- data/src/core/lib/iomgr/iomgr.h +0 -10
- data/src/core/{ext/filters/client_channel → lib/iomgr}/parse_address.cc +1 -1
- data/src/core/{ext/filters/client_channel → lib/iomgr}/parse_address.h +3 -3
- data/src/core/lib/iomgr/sockaddr_utils.cc +2 -1
- data/src/core/lib/iomgr/sockaddr_utils.h +2 -1
- data/src/core/lib/iomgr/tcp_custom.cc +32 -16
- data/src/core/lib/iomgr/tcp_posix.cc +31 -13
- data/src/core/lib/iomgr/tcp_windows.cc +26 -10
- data/src/core/lib/security/authorization/authorization_engine.cc +177 -0
- data/src/core/lib/security/authorization/authorization_engine.h +84 -0
- data/src/core/lib/security/authorization/evaluate_args.cc +153 -0
- data/src/core/lib/security/authorization/evaluate_args.h +59 -0
- data/src/core/lib/security/authorization/mock_cel/activation.h +57 -0
- data/src/core/lib/security/authorization/mock_cel/cel_expr_builder_factory.h +42 -0
- data/src/core/lib/security/authorization/mock_cel/cel_expression.h +68 -0
- data/src/core/lib/security/authorization/mock_cel/cel_value.h +93 -0
- data/src/core/lib/security/authorization/mock_cel/evaluator_core.h +67 -0
- data/src/core/lib/security/authorization/mock_cel/flat_expr_builder.h +56 -0
- data/src/core/lib/security/authorization/mock_cel/statusor.h +50 -0
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +56 -38
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +1 -2
- data/src/core/lib/security/transport/secure_endpoint.cc +7 -1
- data/src/core/lib/surface/call.cc +12 -12
- data/src/core/lib/surface/call.h +2 -1
- data/src/core/lib/surface/channel.cc +28 -20
- data/src/core/lib/surface/channel.h +12 -2
- data/src/core/lib/surface/completion_queue.cc +10 -272
- data/src/core/lib/surface/completion_queue.h +0 -8
- data/src/core/lib/surface/init.cc +1 -3
- data/src/core/lib/surface/server.cc +1066 -1244
- data/src/core/lib/surface/server.h +363 -87
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/authority_override.cc +38 -0
- data/src/core/lib/transport/authority_override.h +32 -0
- data/src/core/lib/transport/connectivity_state.cc +18 -13
- data/src/core/lib/transport/connectivity_state.h +18 -6
- data/src/core/lib/transport/error_utils.cc +13 -0
- data/src/core/lib/transport/error_utils.h +6 -0
- data/src/core/lib/transport/static_metadata.cc +295 -276
- data/src/core/lib/transport/static_metadata.h +80 -73
- data/src/core/lib/transport/transport.h +7 -0
- data/src/core/lib/uri/uri_parser.cc +23 -21
- data/src/core/lib/uri/uri_parser.h +3 -1
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +22 -0
- data/src/core/tsi/ssl_transport_security.cc +3 -9
- data/src/ruby/ext/grpc/rb_channel_credentials.c +9 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +2 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +4 -4
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/spec/channel_credentials_spec.rb +10 -0
- data/src/ruby/spec/generic/active_call_spec.rb +19 -8
- data/third_party/abseil-cpp/absl/algorithm/container.h +1727 -0
- data/third_party/abseil-cpp/absl/base/internal/direct_mmap.h +161 -0
- data/third_party/abseil-cpp/absl/base/internal/exponential_biased.cc +93 -0
- data/third_party/abseil-cpp/absl/base/internal/exponential_biased.h +130 -0
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +620 -0
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.h +126 -0
- data/third_party/abseil-cpp/absl/container/fixed_array.h +515 -0
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +503 -0
- data/third_party/abseil-cpp/absl/container/internal/common.h +202 -0
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +440 -0
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +146 -0
- data/third_party/abseil-cpp/absl/container/internal/hash_policy_traits.h +191 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtable_debug_hooks.h +85 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +269 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +297 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler_force_weak_definition.cc +30 -0
- data/third_party/abseil-cpp/absl/container/internal/have_sse.h +49 -0
- data/third_party/abseil-cpp/absl/container/internal/layout.h +741 -0
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +48 -0
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +1882 -0
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.cc +138 -0
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.h +32 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +1895 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +71 -0
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.cc +382 -0
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +134 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +192 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_arm-inl.inc +125 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h +70 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_generic-inl.inc +99 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +248 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_unimplemented-inl.inc +24 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_win32-inl.inc +85 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +346 -0
- data/third_party/abseil-cpp/absl/debugging/internal/symbolize.h +128 -0
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.cc +194 -0
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.h +158 -0
- data/third_party/abseil-cpp/absl/debugging/stacktrace.cc +140 -0
- data/third_party/abseil-cpp/absl/debugging/stacktrace.h +231 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize.cc +25 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize.h +99 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +1480 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_unimplemented.inc +40 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_win32.inc +81 -0
- data/third_party/abseil-cpp/absl/functional/function_ref.h +139 -0
- data/third_party/abseil-cpp/absl/functional/internal/function_ref.h +106 -0
- data/third_party/abseil-cpp/absl/hash/hash.h +324 -0
- data/third_party/abseil-cpp/absl/hash/internal/city.cc +346 -0
- data/third_party/abseil-cpp/absl/hash/internal/city.h +96 -0
- data/third_party/abseil-cpp/absl/hash/internal/hash.cc +55 -0
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +988 -0
- data/third_party/abseil-cpp/absl/status/status.cc +447 -0
- data/third_party/abseil-cpp/absl/status/status.h +428 -0
- data/third_party/abseil-cpp/absl/status/status_payload_printer.cc +43 -0
- data/third_party/abseil-cpp/absl/status/status_payload_printer.h +51 -0
- data/third_party/abseil-cpp/absl/strings/cord.cc +2019 -0
- data/third_party/abseil-cpp/absl/strings/cord.h +1121 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +151 -0
- data/third_party/abseil-cpp/absl/synchronization/barrier.cc +52 -0
- data/third_party/abseil-cpp/absl/synchronization/barrier.h +79 -0
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.cc +57 -0
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.h +99 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +140 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.h +60 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +697 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.h +141 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +155 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/mutex_nonprod.inc +261 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.cc +106 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.h +115 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.cc +484 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +159 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +2728 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +1056 -0
- data/third_party/abseil-cpp/absl/synchronization/notification.cc +78 -0
- data/third_party/abseil-cpp/absl/synchronization/notification.h +123 -0
- data/third_party/abseil-cpp/absl/types/bad_variant_access.cc +64 -0
- data/third_party/abseil-cpp/absl/types/bad_variant_access.h +82 -0
- data/third_party/abseil-cpp/absl/types/internal/variant.h +1646 -0
- data/third_party/abseil-cpp/absl/types/variant.h +861 -0
- data/third_party/boringssl-with-bazel/err_data.c +263 -257
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_asn1.c +16 -0
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +456 -0
- data/third_party/boringssl-with-bazel/src/crypto/hpke/internal.h +192 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_sig.c +20 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +52 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +39 -7
- data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +2 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +11 -0
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +4 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cert.cc +3 -6
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +10 -0
- data/third_party/boringssl-with-bazel/src/ssl/t1_lib.cc +34 -9
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +5 -0
- data/third_party/boringssl-with-bazel/src/ssl/tls_record.cc +5 -3
- data/third_party/upb/upb/decode.c +64 -15
- data/third_party/upb/upb/encode.c +2 -2
- data/third_party/upb/upb/msg.h +2 -2
- data/third_party/upb/upb/port_def.inc +1 -1
- data/third_party/upb/upb/table.c +0 -11
- data/third_party/upb/upb/table.int.h +0 -9
- data/third_party/upb/upb/upb.c +16 -14
- data/third_party/upb/upb/upb.h +26 -0
- data/third_party/upb/upb/upb.hpp +2 -0
- metadata +257 -155
- data/src/core/ext/upb-generated/envoy/api/v2/auth/cert.upb.c +0 -21
- data/src/core/ext/upb-generated/envoy/api/v2/auth/cert.upb.h +0 -34
- data/src/core/ext/upb-generated/envoy/api/v2/auth/common.upb.c +0 -114
- data/src/core/ext/upb-generated/envoy/api/v2/auth/common.upb.h +0 -429
- data/src/core/ext/upb-generated/envoy/api/v2/auth/secret.upb.c +0 -72
- data/src/core/ext/upb-generated/envoy/api/v2/auth/secret.upb.h +0 -198
- data/src/core/ext/upb-generated/envoy/api/v2/auth/tls.upb.c +0 -105
- data/src/core/ext/upb-generated/envoy/api/v2/auth/tls.upb.h +0 -388
- data/src/core/ext/upb-generated/envoy/api/v2/cds.upb.h +0 -52
- data/src/core/ext/upb-generated/envoy/api/v2/cluster.upb.c +0 -403
- data/src/core/ext/upb-generated/envoy/api/v2/cluster.upb.h +0 -1453
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/circuit_breaker.upb.c +0 -74
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/circuit_breaker.upb.h +0 -226
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/filter.upb.h +0 -69
- data/src/core/ext/upb-generated/envoy/api/v2/cluster/outlier_detection.upb.h +0 -323
- data/src/core/ext/upb-generated/envoy/api/v2/core/address.upb.c +0 -112
- data/src/core/ext/upb-generated/envoy/api/v2/core/address.upb.h +0 -334
- data/src/core/ext/upb-generated/envoy/api/v2/core/backoff.upb.h +0 -79
- data/src/core/ext/upb-generated/envoy/api/v2/core/base.upb.c +0 -313
- data/src/core/ext/upb-generated/envoy/api/v2/core/base.upb.h +0 -891
- data/src/core/ext/upb-generated/envoy/api/v2/core/config_source.upb.c +0 -96
- data/src/core/ext/upb-generated/envoy/api/v2/core/config_source.upb.h +0 -328
- data/src/core/ext/upb-generated/envoy/api/v2/core/event_service_config.upb.c +0 -34
- data/src/core/ext/upb-generated/envoy/api/v2/core/event_service_config.upb.h +0 -71
- data/src/core/ext/upb-generated/envoy/api/v2/core/grpc_service.upb.c +0 -197
- data/src/core/ext/upb-generated/envoy/api/v2/core/grpc_service.upb.h +0 -649
- data/src/core/ext/upb-generated/envoy/api/v2/core/health_check.upb.c +0 -172
- data/src/core/ext/upb-generated/envoy/api/v2/core/health_check.upb.h +0 -693
- data/src/core/ext/upb-generated/envoy/api/v2/core/http_uri.upb.h +0 -80
- data/src/core/ext/upb-generated/envoy/api/v2/core/protocol.upb.c +0 -152
- data/src/core/ext/upb-generated/envoy/api/v2/core/protocol.upb.h +0 -536
- data/src/core/ext/upb-generated/envoy/api/v2/core/socket_option.upb.h +0 -88
- data/src/core/ext/upb-generated/envoy/api/v2/discovery.upb.c +0 -129
- data/src/core/ext/upb-generated/envoy/api/v2/discovery.upb.h +0 -386
- data/src/core/ext/upb-generated/envoy/api/v2/eds.upb.h +0 -52
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint.upb.c +0 -92
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint.upb.h +0 -224
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint.upb.c +0 -18
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint.upb.h +0 -32
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint_components.upb.c +0 -91
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint_components.upb.h +0 -273
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/load_report.upb.c +0 -112
- data/src/core/ext/upb-generated/envoy/api/v2/endpoint/load_report.upb.h +0 -332
- data/src/core/ext/upb-generated/envoy/api/v2/lds.upb.h +0 -52
- data/src/core/ext/upb-generated/envoy/api/v2/listener.upb.c +0 -109
- data/src/core/ext/upb-generated/envoy/api/v2/listener.upb.h +0 -415
- data/src/core/ext/upb-generated/envoy/api/v2/listener/listener.upb.c +0 -18
- data/src/core/ext/upb-generated/envoy/api/v2/listener/listener.upb.h +0 -32
- data/src/core/ext/upb-generated/envoy/api/v2/listener/listener_components.upb.c +0 -145
- data/src/core/ext/upb-generated/envoy/api/v2/listener/listener_components.upb.h +0 -538
- data/src/core/ext/upb-generated/envoy/api/v2/listener/udp_listener_config.upb.c +0 -43
- data/src/core/ext/upb-generated/envoy/api/v2/listener/udp_listener_config.upb.h +0 -111
- data/src/core/ext/upb-generated/envoy/api/v2/rds.upb.h +0 -52
- data/src/core/ext/upb-generated/envoy/api/v2/route.upb.c +0 -63
- data/src/core/ext/upb-generated/envoy/api/v2/route.upb.h +0 -204
- data/src/core/ext/upb-generated/envoy/api/v2/route/route.upb.c +0 -18
- data/src/core/ext/upb-generated/envoy/api/v2/route/route.upb.h +0 -32
- data/src/core/ext/upb-generated/envoy/api/v2/route/route_components.upb.c +0 -815
- data/src/core/ext/upb-generated/envoy/api/v2/route/route_components.upb.h +0 -2984
- data/src/core/ext/upb-generated/envoy/api/v2/scoped_route.upb.c +0 -59
- data/src/core/ext/upb-generated/envoy/api/v2/scoped_route.upb.h +0 -135
- data/src/core/ext/upb-generated/envoy/api/v2/srds.upb.h +0 -52
- data/src/core/ext/upb-generated/envoy/config/filter/accesslog/v2/accesslog.upb.c +0 -228
- data/src/core/ext/upb-generated/envoy/config/filter/accesslog/v2/accesslog.upb.h +0 -732
- data/src/core/ext/upb-generated/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.upb.c +0 -316
- data/src/core/ext/upb-generated/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.upb.h +0 -1167
- data/src/core/ext/upb-generated/envoy/config/listener/v2/api_listener.upb.h +0 -65
- data/src/core/ext/upb-generated/envoy/config/trace/v2/http_tracer.upb.c +0 -51
- data/src/core/ext/upb-generated/envoy/config/trace/v2/http_tracer.upb.h +0 -125
- data/src/core/ext/upb-generated/envoy/service/discovery/v2/ads.upb.h +0 -49
- data/src/core/ext/upb-generated/envoy/service/load_stats/v2/lrs.upb.c +0 -54
- data/src/core/ext/upb-generated/envoy/service/load_stats/v2/lrs.upb.h +0 -136
- data/src/core/ext/upb-generated/envoy/type/matcher/regex.upb.c +0 -63
- data/src/core/ext/upb-generated/envoy/type/matcher/regex.upb.h +0 -145
- data/src/core/ext/upb-generated/envoy/type/matcher/string.upb.c +0 -53
- data/src/core/ext/upb-generated/envoy/type/matcher/string.upb.h +0 -133
- data/src/core/ext/upb-generated/envoy/type/metadata/v2/metadata.upb.c +0 -88
- data/src/core/ext/upb-generated/envoy/type/metadata/v2/metadata.upb.h +0 -258
- data/src/core/ext/upb-generated/envoy/type/percent.upb.h +0 -86
- data/src/core/ext/upb-generated/envoy/type/range.upb.h +0 -111
- data/src/core/ext/upb-generated/envoy/type/semantic_version.upb.h +0 -61
- data/src/core/ext/upb-generated/envoy/type/tracing/v2/custom_tag.upb.c +0 -89
- data/src/core/ext/upb-generated/envoy/type/tracing/v2/custom_tag.upb.h +0 -250
- data/src/core/lib/security/transport/target_authority_table.cc +0 -75
- data/src/core/lib/security/transport/target_authority_table.h +0 -40
- data/src/core/lib/slice/slice_hash_table.h +0 -199
- data/src/core/lib/slice/slice_weak_hash_table.h +0 -102
@@ -1,313 +0,0 @@
|
|
1
|
-
/* This file was generated by upbc (the upb compiler) from the input
|
2
|
-
* file:
|
3
|
-
*
|
4
|
-
* envoy/api/v2/core/base.proto
|
5
|
-
*
|
6
|
-
* Do not edit -- your changes will be discarded when the file is
|
7
|
-
* regenerated. */
|
8
|
-
|
9
|
-
#include <stddef.h>
|
10
|
-
#include "upb/msg.h"
|
11
|
-
#include "envoy/api/v2/core/base.upb.h"
|
12
|
-
#include "envoy/api/v2/core/address.upb.h"
|
13
|
-
#include "envoy/api/v2/core/backoff.upb.h"
|
14
|
-
#include "envoy/api/v2/core/http_uri.upb.h"
|
15
|
-
#include "envoy/type/percent.upb.h"
|
16
|
-
#include "envoy/type/semantic_version.upb.h"
|
17
|
-
#include "google/protobuf/any.upb.h"
|
18
|
-
#include "google/protobuf/duration.upb.h"
|
19
|
-
#include "google/protobuf/struct.upb.h"
|
20
|
-
#include "google/protobuf/wrappers.upb.h"
|
21
|
-
#include "udpa/annotations/migrate.upb.h"
|
22
|
-
#include "udpa/annotations/status.upb.h"
|
23
|
-
#include "validate/validate.upb.h"
|
24
|
-
#include "envoy/api/v2/core/socket_option.upb.h"
|
25
|
-
|
26
|
-
#include "upb/port_def.inc"
|
27
|
-
|
28
|
-
static const upb_msglayout_field envoy_api_v2_core_Locality__fields[3] = {
|
29
|
-
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
30
|
-
{2, UPB_SIZE(8, 16), 0, 0, 9, 1},
|
31
|
-
{3, UPB_SIZE(16, 32), 0, 0, 9, 1},
|
32
|
-
};
|
33
|
-
|
34
|
-
const upb_msglayout envoy_api_v2_core_Locality_msginit = {
|
35
|
-
NULL,
|
36
|
-
&envoy_api_v2_core_Locality__fields[0],
|
37
|
-
UPB_SIZE(24, 48), 3, false,
|
38
|
-
};
|
39
|
-
|
40
|
-
static const upb_msglayout *const envoy_api_v2_core_BuildVersion_submsgs[2] = {
|
41
|
-
&envoy_type_SemanticVersion_msginit,
|
42
|
-
&google_protobuf_Struct_msginit,
|
43
|
-
};
|
44
|
-
|
45
|
-
static const upb_msglayout_field envoy_api_v2_core_BuildVersion__fields[2] = {
|
46
|
-
{1, UPB_SIZE(0, 0), 0, 0, 11, 1},
|
47
|
-
{2, UPB_SIZE(4, 8), 0, 1, 11, 1},
|
48
|
-
};
|
49
|
-
|
50
|
-
const upb_msglayout envoy_api_v2_core_BuildVersion_msginit = {
|
51
|
-
&envoy_api_v2_core_BuildVersion_submsgs[0],
|
52
|
-
&envoy_api_v2_core_BuildVersion__fields[0],
|
53
|
-
UPB_SIZE(8, 16), 2, false,
|
54
|
-
};
|
55
|
-
|
56
|
-
static const upb_msglayout *const envoy_api_v2_core_Extension_submsgs[1] = {
|
57
|
-
&envoy_api_v2_core_BuildVersion_msginit,
|
58
|
-
};
|
59
|
-
|
60
|
-
static const upb_msglayout_field envoy_api_v2_core_Extension__fields[5] = {
|
61
|
-
{1, UPB_SIZE(4, 8), 0, 0, 9, 1},
|
62
|
-
{2, UPB_SIZE(12, 24), 0, 0, 9, 1},
|
63
|
-
{3, UPB_SIZE(20, 40), 0, 0, 9, 1},
|
64
|
-
{4, UPB_SIZE(28, 56), 0, 0, 11, 1},
|
65
|
-
{5, UPB_SIZE(0, 0), 0, 0, 8, 1},
|
66
|
-
};
|
67
|
-
|
68
|
-
const upb_msglayout envoy_api_v2_core_Extension_msginit = {
|
69
|
-
&envoy_api_v2_core_Extension_submsgs[0],
|
70
|
-
&envoy_api_v2_core_Extension__fields[0],
|
71
|
-
UPB_SIZE(32, 64), 5, false,
|
72
|
-
};
|
73
|
-
|
74
|
-
static const upb_msglayout *const envoy_api_v2_core_Node_submsgs[5] = {
|
75
|
-
&envoy_api_v2_core_Address_msginit,
|
76
|
-
&envoy_api_v2_core_BuildVersion_msginit,
|
77
|
-
&envoy_api_v2_core_Extension_msginit,
|
78
|
-
&envoy_api_v2_core_Locality_msginit,
|
79
|
-
&google_protobuf_Struct_msginit,
|
80
|
-
};
|
81
|
-
|
82
|
-
static const upb_msglayout_field envoy_api_v2_core_Node__fields[11] = {
|
83
|
-
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
84
|
-
{2, UPB_SIZE(8, 16), 0, 0, 9, 1},
|
85
|
-
{3, UPB_SIZE(32, 64), 0, 4, 11, 1},
|
86
|
-
{4, UPB_SIZE(36, 72), 0, 3, 11, 1},
|
87
|
-
{5, UPB_SIZE(16, 32), 0, 0, 9, 1},
|
88
|
-
{6, UPB_SIZE(24, 48), 0, 0, 9, 1},
|
89
|
-
{7, UPB_SIZE(52, 104), UPB_SIZE(-61, -121), 0, 9, 1},
|
90
|
-
{8, UPB_SIZE(52, 104), UPB_SIZE(-61, -121), 1, 11, 1},
|
91
|
-
{9, UPB_SIZE(40, 80), 0, 2, 11, 3},
|
92
|
-
{10, UPB_SIZE(44, 88), 0, 0, 9, 3},
|
93
|
-
{11, UPB_SIZE(48, 96), 0, 0, 11, 3},
|
94
|
-
};
|
95
|
-
|
96
|
-
const upb_msglayout envoy_api_v2_core_Node_msginit = {
|
97
|
-
&envoy_api_v2_core_Node_submsgs[0],
|
98
|
-
&envoy_api_v2_core_Node__fields[0],
|
99
|
-
UPB_SIZE(64, 128), 11, false,
|
100
|
-
};
|
101
|
-
|
102
|
-
static const upb_msglayout *const envoy_api_v2_core_Metadata_submsgs[1] = {
|
103
|
-
&envoy_api_v2_core_Metadata_FilterMetadataEntry_msginit,
|
104
|
-
};
|
105
|
-
|
106
|
-
static const upb_msglayout_field envoy_api_v2_core_Metadata__fields[1] = {
|
107
|
-
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_LABEL_MAP},
|
108
|
-
};
|
109
|
-
|
110
|
-
const upb_msglayout envoy_api_v2_core_Metadata_msginit = {
|
111
|
-
&envoy_api_v2_core_Metadata_submsgs[0],
|
112
|
-
&envoy_api_v2_core_Metadata__fields[0],
|
113
|
-
UPB_SIZE(4, 8), 1, false,
|
114
|
-
};
|
115
|
-
|
116
|
-
static const upb_msglayout *const envoy_api_v2_core_Metadata_FilterMetadataEntry_submsgs[1] = {
|
117
|
-
&google_protobuf_Struct_msginit,
|
118
|
-
};
|
119
|
-
|
120
|
-
static const upb_msglayout_field envoy_api_v2_core_Metadata_FilterMetadataEntry__fields[2] = {
|
121
|
-
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
122
|
-
{2, UPB_SIZE(8, 16), 0, 0, 11, 1},
|
123
|
-
};
|
124
|
-
|
125
|
-
const upb_msglayout envoy_api_v2_core_Metadata_FilterMetadataEntry_msginit = {
|
126
|
-
&envoy_api_v2_core_Metadata_FilterMetadataEntry_submsgs[0],
|
127
|
-
&envoy_api_v2_core_Metadata_FilterMetadataEntry__fields[0],
|
128
|
-
UPB_SIZE(16, 32), 2, false,
|
129
|
-
};
|
130
|
-
|
131
|
-
static const upb_msglayout_field envoy_api_v2_core_RuntimeUInt32__fields[2] = {
|
132
|
-
{2, UPB_SIZE(0, 0), 0, 0, 13, 1},
|
133
|
-
{3, UPB_SIZE(4, 8), 0, 0, 9, 1},
|
134
|
-
};
|
135
|
-
|
136
|
-
const upb_msglayout envoy_api_v2_core_RuntimeUInt32_msginit = {
|
137
|
-
NULL,
|
138
|
-
&envoy_api_v2_core_RuntimeUInt32__fields[0],
|
139
|
-
UPB_SIZE(16, 32), 2, false,
|
140
|
-
};
|
141
|
-
|
142
|
-
static const upb_msglayout_field envoy_api_v2_core_RuntimeDouble__fields[2] = {
|
143
|
-
{1, UPB_SIZE(0, 0), 0, 0, 1, 1},
|
144
|
-
{2, UPB_SIZE(8, 8), 0, 0, 9, 1},
|
145
|
-
};
|
146
|
-
|
147
|
-
const upb_msglayout envoy_api_v2_core_RuntimeDouble_msginit = {
|
148
|
-
NULL,
|
149
|
-
&envoy_api_v2_core_RuntimeDouble__fields[0],
|
150
|
-
UPB_SIZE(16, 32), 2, false,
|
151
|
-
};
|
152
|
-
|
153
|
-
static const upb_msglayout *const envoy_api_v2_core_RuntimeFeatureFlag_submsgs[1] = {
|
154
|
-
&google_protobuf_BoolValue_msginit,
|
155
|
-
};
|
156
|
-
|
157
|
-
static const upb_msglayout_field envoy_api_v2_core_RuntimeFeatureFlag__fields[2] = {
|
158
|
-
{1, UPB_SIZE(8, 16), 0, 0, 11, 1},
|
159
|
-
{2, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
160
|
-
};
|
161
|
-
|
162
|
-
const upb_msglayout envoy_api_v2_core_RuntimeFeatureFlag_msginit = {
|
163
|
-
&envoy_api_v2_core_RuntimeFeatureFlag_submsgs[0],
|
164
|
-
&envoy_api_v2_core_RuntimeFeatureFlag__fields[0],
|
165
|
-
UPB_SIZE(16, 32), 2, false,
|
166
|
-
};
|
167
|
-
|
168
|
-
static const upb_msglayout_field envoy_api_v2_core_HeaderValue__fields[2] = {
|
169
|
-
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
170
|
-
{2, UPB_SIZE(8, 16), 0, 0, 9, 1},
|
171
|
-
};
|
172
|
-
|
173
|
-
const upb_msglayout envoy_api_v2_core_HeaderValue_msginit = {
|
174
|
-
NULL,
|
175
|
-
&envoy_api_v2_core_HeaderValue__fields[0],
|
176
|
-
UPB_SIZE(16, 32), 2, false,
|
177
|
-
};
|
178
|
-
|
179
|
-
static const upb_msglayout *const envoy_api_v2_core_HeaderValueOption_submsgs[2] = {
|
180
|
-
&envoy_api_v2_core_HeaderValue_msginit,
|
181
|
-
&google_protobuf_BoolValue_msginit,
|
182
|
-
};
|
183
|
-
|
184
|
-
static const upb_msglayout_field envoy_api_v2_core_HeaderValueOption__fields[2] = {
|
185
|
-
{1, UPB_SIZE(0, 0), 0, 0, 11, 1},
|
186
|
-
{2, UPB_SIZE(4, 8), 0, 1, 11, 1},
|
187
|
-
};
|
188
|
-
|
189
|
-
const upb_msglayout envoy_api_v2_core_HeaderValueOption_msginit = {
|
190
|
-
&envoy_api_v2_core_HeaderValueOption_submsgs[0],
|
191
|
-
&envoy_api_v2_core_HeaderValueOption__fields[0],
|
192
|
-
UPB_SIZE(8, 16), 2, false,
|
193
|
-
};
|
194
|
-
|
195
|
-
static const upb_msglayout *const envoy_api_v2_core_HeaderMap_submsgs[1] = {
|
196
|
-
&envoy_api_v2_core_HeaderValue_msginit,
|
197
|
-
};
|
198
|
-
|
199
|
-
static const upb_msglayout_field envoy_api_v2_core_HeaderMap__fields[1] = {
|
200
|
-
{1, UPB_SIZE(0, 0), 0, 0, 11, 3},
|
201
|
-
};
|
202
|
-
|
203
|
-
const upb_msglayout envoy_api_v2_core_HeaderMap_msginit = {
|
204
|
-
&envoy_api_v2_core_HeaderMap_submsgs[0],
|
205
|
-
&envoy_api_v2_core_HeaderMap__fields[0],
|
206
|
-
UPB_SIZE(4, 8), 1, false,
|
207
|
-
};
|
208
|
-
|
209
|
-
static const upb_msglayout_field envoy_api_v2_core_DataSource__fields[3] = {
|
210
|
-
{1, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, 1},
|
211
|
-
{2, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 12, 1},
|
212
|
-
{3, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, 1},
|
213
|
-
};
|
214
|
-
|
215
|
-
const upb_msglayout envoy_api_v2_core_DataSource_msginit = {
|
216
|
-
NULL,
|
217
|
-
&envoy_api_v2_core_DataSource__fields[0],
|
218
|
-
UPB_SIZE(16, 32), 3, false,
|
219
|
-
};
|
220
|
-
|
221
|
-
static const upb_msglayout *const envoy_api_v2_core_RetryPolicy_submsgs[2] = {
|
222
|
-
&envoy_api_v2_core_BackoffStrategy_msginit,
|
223
|
-
&google_protobuf_UInt32Value_msginit,
|
224
|
-
};
|
225
|
-
|
226
|
-
static const upb_msglayout_field envoy_api_v2_core_RetryPolicy__fields[2] = {
|
227
|
-
{1, UPB_SIZE(0, 0), 0, 0, 11, 1},
|
228
|
-
{2, UPB_SIZE(4, 8), 0, 1, 11, 1},
|
229
|
-
};
|
230
|
-
|
231
|
-
const upb_msglayout envoy_api_v2_core_RetryPolicy_msginit = {
|
232
|
-
&envoy_api_v2_core_RetryPolicy_submsgs[0],
|
233
|
-
&envoy_api_v2_core_RetryPolicy__fields[0],
|
234
|
-
UPB_SIZE(8, 16), 2, false,
|
235
|
-
};
|
236
|
-
|
237
|
-
static const upb_msglayout *const envoy_api_v2_core_RemoteDataSource_submsgs[2] = {
|
238
|
-
&envoy_api_v2_core_HttpUri_msginit,
|
239
|
-
&envoy_api_v2_core_RetryPolicy_msginit,
|
240
|
-
};
|
241
|
-
|
242
|
-
static const upb_msglayout_field envoy_api_v2_core_RemoteDataSource__fields[3] = {
|
243
|
-
{1, UPB_SIZE(8, 16), 0, 0, 11, 1},
|
244
|
-
{2, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
245
|
-
{3, UPB_SIZE(12, 24), 0, 1, 11, 1},
|
246
|
-
};
|
247
|
-
|
248
|
-
const upb_msglayout envoy_api_v2_core_RemoteDataSource_msginit = {
|
249
|
-
&envoy_api_v2_core_RemoteDataSource_submsgs[0],
|
250
|
-
&envoy_api_v2_core_RemoteDataSource__fields[0],
|
251
|
-
UPB_SIZE(16, 32), 3, false,
|
252
|
-
};
|
253
|
-
|
254
|
-
static const upb_msglayout *const envoy_api_v2_core_AsyncDataSource_submsgs[2] = {
|
255
|
-
&envoy_api_v2_core_DataSource_msginit,
|
256
|
-
&envoy_api_v2_core_RemoteDataSource_msginit,
|
257
|
-
};
|
258
|
-
|
259
|
-
static const upb_msglayout_field envoy_api_v2_core_AsyncDataSource__fields[2] = {
|
260
|
-
{1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
|
261
|
-
{2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, 1},
|
262
|
-
};
|
263
|
-
|
264
|
-
const upb_msglayout envoy_api_v2_core_AsyncDataSource_msginit = {
|
265
|
-
&envoy_api_v2_core_AsyncDataSource_submsgs[0],
|
266
|
-
&envoy_api_v2_core_AsyncDataSource__fields[0],
|
267
|
-
UPB_SIZE(8, 16), 2, false,
|
268
|
-
};
|
269
|
-
|
270
|
-
static const upb_msglayout *const envoy_api_v2_core_TransportSocket_submsgs[2] = {
|
271
|
-
&google_protobuf_Any_msginit,
|
272
|
-
&google_protobuf_Struct_msginit,
|
273
|
-
};
|
274
|
-
|
275
|
-
static const upb_msglayout_field envoy_api_v2_core_TransportSocket__fields[3] = {
|
276
|
-
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
277
|
-
{2, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 1, 11, 1},
|
278
|
-
{3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, 1},
|
279
|
-
};
|
280
|
-
|
281
|
-
const upb_msglayout envoy_api_v2_core_TransportSocket_msginit = {
|
282
|
-
&envoy_api_v2_core_TransportSocket_submsgs[0],
|
283
|
-
&envoy_api_v2_core_TransportSocket__fields[0],
|
284
|
-
UPB_SIZE(16, 32), 3, false,
|
285
|
-
};
|
286
|
-
|
287
|
-
static const upb_msglayout *const envoy_api_v2_core_RuntimeFractionalPercent_submsgs[1] = {
|
288
|
-
&envoy_type_FractionalPercent_msginit,
|
289
|
-
};
|
290
|
-
|
291
|
-
static const upb_msglayout_field envoy_api_v2_core_RuntimeFractionalPercent__fields[2] = {
|
292
|
-
{1, UPB_SIZE(8, 16), 0, 0, 11, 1},
|
293
|
-
{2, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
294
|
-
};
|
295
|
-
|
296
|
-
const upb_msglayout envoy_api_v2_core_RuntimeFractionalPercent_msginit = {
|
297
|
-
&envoy_api_v2_core_RuntimeFractionalPercent_submsgs[0],
|
298
|
-
&envoy_api_v2_core_RuntimeFractionalPercent__fields[0],
|
299
|
-
UPB_SIZE(16, 32), 2, false,
|
300
|
-
};
|
301
|
-
|
302
|
-
static const upb_msglayout_field envoy_api_v2_core_ControlPlane__fields[1] = {
|
303
|
-
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
304
|
-
};
|
305
|
-
|
306
|
-
const upb_msglayout envoy_api_v2_core_ControlPlane_msginit = {
|
307
|
-
NULL,
|
308
|
-
&envoy_api_v2_core_ControlPlane__fields[0],
|
309
|
-
UPB_SIZE(8, 16), 1, false,
|
310
|
-
};
|
311
|
-
|
312
|
-
#include "upb/port_undef.inc"
|
313
|
-
|
@@ -1,891 +0,0 @@
|
|
1
|
-
/* This file was generated by upbc (the upb compiler) from the input
|
2
|
-
* file:
|
3
|
-
*
|
4
|
-
* envoy/api/v2/core/base.proto
|
5
|
-
*
|
6
|
-
* Do not edit -- your changes will be discarded when the file is
|
7
|
-
* regenerated. */
|
8
|
-
|
9
|
-
#ifndef ENVOY_API_V2_CORE_BASE_PROTO_UPB_H_
|
10
|
-
#define ENVOY_API_V2_CORE_BASE_PROTO_UPB_H_
|
11
|
-
|
12
|
-
#include "upb/msg.h"
|
13
|
-
#include "upb/decode.h"
|
14
|
-
#include "upb/encode.h"
|
15
|
-
|
16
|
-
/* Public Imports. */
|
17
|
-
#include "envoy/api/v2/core/socket_option.upb.h"
|
18
|
-
|
19
|
-
#include "upb/port_def.inc"
|
20
|
-
|
21
|
-
#ifdef __cplusplus
|
22
|
-
extern "C" {
|
23
|
-
#endif
|
24
|
-
|
25
|
-
struct envoy_api_v2_core_Locality;
|
26
|
-
struct envoy_api_v2_core_BuildVersion;
|
27
|
-
struct envoy_api_v2_core_Extension;
|
28
|
-
struct envoy_api_v2_core_Node;
|
29
|
-
struct envoy_api_v2_core_Metadata;
|
30
|
-
struct envoy_api_v2_core_Metadata_FilterMetadataEntry;
|
31
|
-
struct envoy_api_v2_core_RuntimeUInt32;
|
32
|
-
struct envoy_api_v2_core_RuntimeDouble;
|
33
|
-
struct envoy_api_v2_core_RuntimeFeatureFlag;
|
34
|
-
struct envoy_api_v2_core_HeaderValue;
|
35
|
-
struct envoy_api_v2_core_HeaderValueOption;
|
36
|
-
struct envoy_api_v2_core_HeaderMap;
|
37
|
-
struct envoy_api_v2_core_DataSource;
|
38
|
-
struct envoy_api_v2_core_RetryPolicy;
|
39
|
-
struct envoy_api_v2_core_RemoteDataSource;
|
40
|
-
struct envoy_api_v2_core_AsyncDataSource;
|
41
|
-
struct envoy_api_v2_core_TransportSocket;
|
42
|
-
struct envoy_api_v2_core_RuntimeFractionalPercent;
|
43
|
-
struct envoy_api_v2_core_ControlPlane;
|
44
|
-
typedef struct envoy_api_v2_core_Locality envoy_api_v2_core_Locality;
|
45
|
-
typedef struct envoy_api_v2_core_BuildVersion envoy_api_v2_core_BuildVersion;
|
46
|
-
typedef struct envoy_api_v2_core_Extension envoy_api_v2_core_Extension;
|
47
|
-
typedef struct envoy_api_v2_core_Node envoy_api_v2_core_Node;
|
48
|
-
typedef struct envoy_api_v2_core_Metadata envoy_api_v2_core_Metadata;
|
49
|
-
typedef struct envoy_api_v2_core_Metadata_FilterMetadataEntry envoy_api_v2_core_Metadata_FilterMetadataEntry;
|
50
|
-
typedef struct envoy_api_v2_core_RuntimeUInt32 envoy_api_v2_core_RuntimeUInt32;
|
51
|
-
typedef struct envoy_api_v2_core_RuntimeDouble envoy_api_v2_core_RuntimeDouble;
|
52
|
-
typedef struct envoy_api_v2_core_RuntimeFeatureFlag envoy_api_v2_core_RuntimeFeatureFlag;
|
53
|
-
typedef struct envoy_api_v2_core_HeaderValue envoy_api_v2_core_HeaderValue;
|
54
|
-
typedef struct envoy_api_v2_core_HeaderValueOption envoy_api_v2_core_HeaderValueOption;
|
55
|
-
typedef struct envoy_api_v2_core_HeaderMap envoy_api_v2_core_HeaderMap;
|
56
|
-
typedef struct envoy_api_v2_core_DataSource envoy_api_v2_core_DataSource;
|
57
|
-
typedef struct envoy_api_v2_core_RetryPolicy envoy_api_v2_core_RetryPolicy;
|
58
|
-
typedef struct envoy_api_v2_core_RemoteDataSource envoy_api_v2_core_RemoteDataSource;
|
59
|
-
typedef struct envoy_api_v2_core_AsyncDataSource envoy_api_v2_core_AsyncDataSource;
|
60
|
-
typedef struct envoy_api_v2_core_TransportSocket envoy_api_v2_core_TransportSocket;
|
61
|
-
typedef struct envoy_api_v2_core_RuntimeFractionalPercent envoy_api_v2_core_RuntimeFractionalPercent;
|
62
|
-
typedef struct envoy_api_v2_core_ControlPlane envoy_api_v2_core_ControlPlane;
|
63
|
-
extern const upb_msglayout envoy_api_v2_core_Locality_msginit;
|
64
|
-
extern const upb_msglayout envoy_api_v2_core_BuildVersion_msginit;
|
65
|
-
extern const upb_msglayout envoy_api_v2_core_Extension_msginit;
|
66
|
-
extern const upb_msglayout envoy_api_v2_core_Node_msginit;
|
67
|
-
extern const upb_msglayout envoy_api_v2_core_Metadata_msginit;
|
68
|
-
extern const upb_msglayout envoy_api_v2_core_Metadata_FilterMetadataEntry_msginit;
|
69
|
-
extern const upb_msglayout envoy_api_v2_core_RuntimeUInt32_msginit;
|
70
|
-
extern const upb_msglayout envoy_api_v2_core_RuntimeDouble_msginit;
|
71
|
-
extern const upb_msglayout envoy_api_v2_core_RuntimeFeatureFlag_msginit;
|
72
|
-
extern const upb_msglayout envoy_api_v2_core_HeaderValue_msginit;
|
73
|
-
extern const upb_msglayout envoy_api_v2_core_HeaderValueOption_msginit;
|
74
|
-
extern const upb_msglayout envoy_api_v2_core_HeaderMap_msginit;
|
75
|
-
extern const upb_msglayout envoy_api_v2_core_DataSource_msginit;
|
76
|
-
extern const upb_msglayout envoy_api_v2_core_RetryPolicy_msginit;
|
77
|
-
extern const upb_msglayout envoy_api_v2_core_RemoteDataSource_msginit;
|
78
|
-
extern const upb_msglayout envoy_api_v2_core_AsyncDataSource_msginit;
|
79
|
-
extern const upb_msglayout envoy_api_v2_core_TransportSocket_msginit;
|
80
|
-
extern const upb_msglayout envoy_api_v2_core_RuntimeFractionalPercent_msginit;
|
81
|
-
extern const upb_msglayout envoy_api_v2_core_ControlPlane_msginit;
|
82
|
-
struct envoy_api_v2_core_Address;
|
83
|
-
struct envoy_api_v2_core_BackoffStrategy;
|
84
|
-
struct envoy_api_v2_core_HttpUri;
|
85
|
-
struct envoy_type_FractionalPercent;
|
86
|
-
struct envoy_type_SemanticVersion;
|
87
|
-
struct google_protobuf_Any;
|
88
|
-
struct google_protobuf_BoolValue;
|
89
|
-
struct google_protobuf_Struct;
|
90
|
-
struct google_protobuf_UInt32Value;
|
91
|
-
extern const upb_msglayout envoy_api_v2_core_Address_msginit;
|
92
|
-
extern const upb_msglayout envoy_api_v2_core_BackoffStrategy_msginit;
|
93
|
-
extern const upb_msglayout envoy_api_v2_core_HttpUri_msginit;
|
94
|
-
extern const upb_msglayout envoy_type_FractionalPercent_msginit;
|
95
|
-
extern const upb_msglayout envoy_type_SemanticVersion_msginit;
|
96
|
-
extern const upb_msglayout google_protobuf_Any_msginit;
|
97
|
-
extern const upb_msglayout google_protobuf_BoolValue_msginit;
|
98
|
-
extern const upb_msglayout google_protobuf_Struct_msginit;
|
99
|
-
extern const upb_msglayout google_protobuf_UInt32Value_msginit;
|
100
|
-
|
101
|
-
typedef enum {
|
102
|
-
envoy_api_v2_core_METHOD_UNSPECIFIED = 0,
|
103
|
-
envoy_api_v2_core_GET = 1,
|
104
|
-
envoy_api_v2_core_HEAD = 2,
|
105
|
-
envoy_api_v2_core_POST = 3,
|
106
|
-
envoy_api_v2_core_PUT = 4,
|
107
|
-
envoy_api_v2_core_DELETE = 5,
|
108
|
-
envoy_api_v2_core_CONNECT = 6,
|
109
|
-
envoy_api_v2_core_OPTIONS = 7,
|
110
|
-
envoy_api_v2_core_TRACE = 8,
|
111
|
-
envoy_api_v2_core_PATCH = 9
|
112
|
-
} envoy_api_v2_core_RequestMethod;
|
113
|
-
|
114
|
-
typedef enum {
|
115
|
-
envoy_api_v2_core_DEFAULT = 0,
|
116
|
-
envoy_api_v2_core_HIGH = 1
|
117
|
-
} envoy_api_v2_core_RoutingPriority;
|
118
|
-
|
119
|
-
typedef enum {
|
120
|
-
envoy_api_v2_core_UNSPECIFIED = 0,
|
121
|
-
envoy_api_v2_core_INBOUND = 1,
|
122
|
-
envoy_api_v2_core_OUTBOUND = 2
|
123
|
-
} envoy_api_v2_core_TrafficDirection;
|
124
|
-
|
125
|
-
|
126
|
-
/* envoy.api.v2.core.Locality */
|
127
|
-
|
128
|
-
UPB_INLINE envoy_api_v2_core_Locality *envoy_api_v2_core_Locality_new(upb_arena *arena) {
|
129
|
-
return (envoy_api_v2_core_Locality *)_upb_msg_new(&envoy_api_v2_core_Locality_msginit, arena);
|
130
|
-
}
|
131
|
-
UPB_INLINE envoy_api_v2_core_Locality *envoy_api_v2_core_Locality_parse(const char *buf, size_t size,
|
132
|
-
upb_arena *arena) {
|
133
|
-
envoy_api_v2_core_Locality *ret = envoy_api_v2_core_Locality_new(arena);
|
134
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_Locality_msginit, arena)) ? ret : NULL;
|
135
|
-
}
|
136
|
-
UPB_INLINE char *envoy_api_v2_core_Locality_serialize(const envoy_api_v2_core_Locality *msg, upb_arena *arena, size_t *len) {
|
137
|
-
return upb_encode(msg, &envoy_api_v2_core_Locality_msginit, arena, len);
|
138
|
-
}
|
139
|
-
|
140
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Locality_region(const envoy_api_v2_core_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
141
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Locality_zone(const envoy_api_v2_core_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); }
|
142
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Locality_sub_zone(const envoy_api_v2_core_Locality *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview); }
|
143
|
-
|
144
|
-
UPB_INLINE void envoy_api_v2_core_Locality_set_region(envoy_api_v2_core_Locality *msg, upb_strview value) {
|
145
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
146
|
-
}
|
147
|
-
UPB_INLINE void envoy_api_v2_core_Locality_set_zone(envoy_api_v2_core_Locality *msg, upb_strview value) {
|
148
|
-
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
|
149
|
-
}
|
150
|
-
UPB_INLINE void envoy_api_v2_core_Locality_set_sub_zone(envoy_api_v2_core_Locality *msg, upb_strview value) {
|
151
|
-
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview) = value;
|
152
|
-
}
|
153
|
-
|
154
|
-
/* envoy.api.v2.core.BuildVersion */
|
155
|
-
|
156
|
-
UPB_INLINE envoy_api_v2_core_BuildVersion *envoy_api_v2_core_BuildVersion_new(upb_arena *arena) {
|
157
|
-
return (envoy_api_v2_core_BuildVersion *)_upb_msg_new(&envoy_api_v2_core_BuildVersion_msginit, arena);
|
158
|
-
}
|
159
|
-
UPB_INLINE envoy_api_v2_core_BuildVersion *envoy_api_v2_core_BuildVersion_parse(const char *buf, size_t size,
|
160
|
-
upb_arena *arena) {
|
161
|
-
envoy_api_v2_core_BuildVersion *ret = envoy_api_v2_core_BuildVersion_new(arena);
|
162
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_BuildVersion_msginit, arena)) ? ret : NULL;
|
163
|
-
}
|
164
|
-
UPB_INLINE char *envoy_api_v2_core_BuildVersion_serialize(const envoy_api_v2_core_BuildVersion *msg, upb_arena *arena, size_t *len) {
|
165
|
-
return upb_encode(msg, &envoy_api_v2_core_BuildVersion_msginit, arena, len);
|
166
|
-
}
|
167
|
-
|
168
|
-
UPB_INLINE bool envoy_api_v2_core_BuildVersion_has_version(const envoy_api_v2_core_BuildVersion *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
|
169
|
-
UPB_INLINE const struct envoy_type_SemanticVersion* envoy_api_v2_core_BuildVersion_version(const envoy_api_v2_core_BuildVersion *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const struct envoy_type_SemanticVersion*); }
|
170
|
-
UPB_INLINE bool envoy_api_v2_core_BuildVersion_has_metadata(const envoy_api_v2_core_BuildVersion *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); }
|
171
|
-
UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_core_BuildVersion_metadata(const envoy_api_v2_core_BuildVersion *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Struct*); }
|
172
|
-
|
173
|
-
UPB_INLINE void envoy_api_v2_core_BuildVersion_set_version(envoy_api_v2_core_BuildVersion *msg, struct envoy_type_SemanticVersion* value) {
|
174
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), struct envoy_type_SemanticVersion*) = value;
|
175
|
-
}
|
176
|
-
UPB_INLINE struct envoy_type_SemanticVersion* envoy_api_v2_core_BuildVersion_mutable_version(envoy_api_v2_core_BuildVersion *msg, upb_arena *arena) {
|
177
|
-
struct envoy_type_SemanticVersion* sub = (struct envoy_type_SemanticVersion*)envoy_api_v2_core_BuildVersion_version(msg);
|
178
|
-
if (sub == NULL) {
|
179
|
-
sub = (struct envoy_type_SemanticVersion*)_upb_msg_new(&envoy_type_SemanticVersion_msginit, arena);
|
180
|
-
if (!sub) return NULL;
|
181
|
-
envoy_api_v2_core_BuildVersion_set_version(msg, sub);
|
182
|
-
}
|
183
|
-
return sub;
|
184
|
-
}
|
185
|
-
UPB_INLINE void envoy_api_v2_core_BuildVersion_set_metadata(envoy_api_v2_core_BuildVersion *msg, struct google_protobuf_Struct* value) {
|
186
|
-
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Struct*) = value;
|
187
|
-
}
|
188
|
-
UPB_INLINE struct google_protobuf_Struct* envoy_api_v2_core_BuildVersion_mutable_metadata(envoy_api_v2_core_BuildVersion *msg, upb_arena *arena) {
|
189
|
-
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_api_v2_core_BuildVersion_metadata(msg);
|
190
|
-
if (sub == NULL) {
|
191
|
-
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
|
192
|
-
if (!sub) return NULL;
|
193
|
-
envoy_api_v2_core_BuildVersion_set_metadata(msg, sub);
|
194
|
-
}
|
195
|
-
return sub;
|
196
|
-
}
|
197
|
-
|
198
|
-
/* envoy.api.v2.core.Extension */
|
199
|
-
|
200
|
-
UPB_INLINE envoy_api_v2_core_Extension *envoy_api_v2_core_Extension_new(upb_arena *arena) {
|
201
|
-
return (envoy_api_v2_core_Extension *)_upb_msg_new(&envoy_api_v2_core_Extension_msginit, arena);
|
202
|
-
}
|
203
|
-
UPB_INLINE envoy_api_v2_core_Extension *envoy_api_v2_core_Extension_parse(const char *buf, size_t size,
|
204
|
-
upb_arena *arena) {
|
205
|
-
envoy_api_v2_core_Extension *ret = envoy_api_v2_core_Extension_new(arena);
|
206
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_Extension_msginit, arena)) ? ret : NULL;
|
207
|
-
}
|
208
|
-
UPB_INLINE char *envoy_api_v2_core_Extension_serialize(const envoy_api_v2_core_Extension *msg, upb_arena *arena, size_t *len) {
|
209
|
-
return upb_encode(msg, &envoy_api_v2_core_Extension_msginit, arena, len);
|
210
|
-
}
|
211
|
-
|
212
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Extension_name(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
|
213
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Extension_category(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview); }
|
214
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Extension_type_descriptor(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_strview); }
|
215
|
-
UPB_INLINE bool envoy_api_v2_core_Extension_has_version(const envoy_api_v2_core_Extension *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 56)); }
|
216
|
-
UPB_INLINE const envoy_api_v2_core_BuildVersion* envoy_api_v2_core_Extension_version(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const envoy_api_v2_core_BuildVersion*); }
|
217
|
-
UPB_INLINE bool envoy_api_v2_core_Extension_disabled(const envoy_api_v2_core_Extension *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool); }
|
218
|
-
|
219
|
-
UPB_INLINE void envoy_api_v2_core_Extension_set_name(envoy_api_v2_core_Extension *msg, upb_strview value) {
|
220
|
-
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
|
221
|
-
}
|
222
|
-
UPB_INLINE void envoy_api_v2_core_Extension_set_category(envoy_api_v2_core_Extension *msg, upb_strview value) {
|
223
|
-
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview) = value;
|
224
|
-
}
|
225
|
-
UPB_INLINE void envoy_api_v2_core_Extension_set_type_descriptor(envoy_api_v2_core_Extension *msg, upb_strview value) {
|
226
|
-
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_strview) = value;
|
227
|
-
}
|
228
|
-
UPB_INLINE void envoy_api_v2_core_Extension_set_version(envoy_api_v2_core_Extension *msg, envoy_api_v2_core_BuildVersion* value) {
|
229
|
-
*UPB_PTR_AT(msg, UPB_SIZE(28, 56), envoy_api_v2_core_BuildVersion*) = value;
|
230
|
-
}
|
231
|
-
UPB_INLINE struct envoy_api_v2_core_BuildVersion* envoy_api_v2_core_Extension_mutable_version(envoy_api_v2_core_Extension *msg, upb_arena *arena) {
|
232
|
-
struct envoy_api_v2_core_BuildVersion* sub = (struct envoy_api_v2_core_BuildVersion*)envoy_api_v2_core_Extension_version(msg);
|
233
|
-
if (sub == NULL) {
|
234
|
-
sub = (struct envoy_api_v2_core_BuildVersion*)_upb_msg_new(&envoy_api_v2_core_BuildVersion_msginit, arena);
|
235
|
-
if (!sub) return NULL;
|
236
|
-
envoy_api_v2_core_Extension_set_version(msg, sub);
|
237
|
-
}
|
238
|
-
return sub;
|
239
|
-
}
|
240
|
-
UPB_INLINE void envoy_api_v2_core_Extension_set_disabled(envoy_api_v2_core_Extension *msg, bool value) {
|
241
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = value;
|
242
|
-
}
|
243
|
-
|
244
|
-
/* envoy.api.v2.core.Node */
|
245
|
-
|
246
|
-
UPB_INLINE envoy_api_v2_core_Node *envoy_api_v2_core_Node_new(upb_arena *arena) {
|
247
|
-
return (envoy_api_v2_core_Node *)_upb_msg_new(&envoy_api_v2_core_Node_msginit, arena);
|
248
|
-
}
|
249
|
-
UPB_INLINE envoy_api_v2_core_Node *envoy_api_v2_core_Node_parse(const char *buf, size_t size,
|
250
|
-
upb_arena *arena) {
|
251
|
-
envoy_api_v2_core_Node *ret = envoy_api_v2_core_Node_new(arena);
|
252
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_Node_msginit, arena)) ? ret : NULL;
|
253
|
-
}
|
254
|
-
UPB_INLINE char *envoy_api_v2_core_Node_serialize(const envoy_api_v2_core_Node *msg, upb_arena *arena, size_t *len) {
|
255
|
-
return upb_encode(msg, &envoy_api_v2_core_Node_msginit, arena, len);
|
256
|
-
}
|
257
|
-
|
258
|
-
typedef enum {
|
259
|
-
envoy_api_v2_core_Node_user_agent_version_type_user_agent_version = 7,
|
260
|
-
envoy_api_v2_core_Node_user_agent_version_type_user_agent_build_version = 8,
|
261
|
-
envoy_api_v2_core_Node_user_agent_version_type_NOT_SET = 0
|
262
|
-
} envoy_api_v2_core_Node_user_agent_version_type_oneofcases;
|
263
|
-
UPB_INLINE envoy_api_v2_core_Node_user_agent_version_type_oneofcases envoy_api_v2_core_Node_user_agent_version_type_case(const envoy_api_v2_core_Node* msg) { return (envoy_api_v2_core_Node_user_agent_version_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(60, 120), int32_t); }
|
264
|
-
|
265
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Node_id(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
266
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Node_cluster(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); }
|
267
|
-
UPB_INLINE bool envoy_api_v2_core_Node_has_metadata(const envoy_api_v2_core_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(32, 64)); }
|
268
|
-
UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_core_Node_metadata(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 64), const struct google_protobuf_Struct*); }
|
269
|
-
UPB_INLINE bool envoy_api_v2_core_Node_has_locality(const envoy_api_v2_core_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(36, 72)); }
|
270
|
-
UPB_INLINE const envoy_api_v2_core_Locality* envoy_api_v2_core_Node_locality(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 72), const envoy_api_v2_core_Locality*); }
|
271
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Node_build_version(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview); }
|
272
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Node_user_agent_name(const envoy_api_v2_core_Node *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 48), upb_strview); }
|
273
|
-
UPB_INLINE bool envoy_api_v2_core_Node_has_user_agent_version(const envoy_api_v2_core_Node *msg) { return _upb_getoneofcase(msg, UPB_SIZE(60, 120)) == 7; }
|
274
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Node_user_agent_version(const envoy_api_v2_core_Node *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(52, 104), UPB_SIZE(60, 120), 7, upb_strview_make("", strlen(""))); }
|
275
|
-
UPB_INLINE bool envoy_api_v2_core_Node_has_user_agent_build_version(const envoy_api_v2_core_Node *msg) { return _upb_getoneofcase(msg, UPB_SIZE(60, 120)) == 8; }
|
276
|
-
UPB_INLINE const envoy_api_v2_core_BuildVersion* envoy_api_v2_core_Node_user_agent_build_version(const envoy_api_v2_core_Node *msg) { return UPB_READ_ONEOF(msg, const envoy_api_v2_core_BuildVersion*, UPB_SIZE(52, 104), UPB_SIZE(60, 120), 8, NULL); }
|
277
|
-
UPB_INLINE bool envoy_api_v2_core_Node_has_extensions(const envoy_api_v2_core_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(40, 80)); }
|
278
|
-
UPB_INLINE const envoy_api_v2_core_Extension* const* envoy_api_v2_core_Node_extensions(const envoy_api_v2_core_Node *msg, size_t *len) { return (const envoy_api_v2_core_Extension* const*)_upb_array_accessor(msg, UPB_SIZE(40, 80), len); }
|
279
|
-
UPB_INLINE upb_strview const* envoy_api_v2_core_Node_client_features(const envoy_api_v2_core_Node *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(44, 88), len); }
|
280
|
-
UPB_INLINE bool envoy_api_v2_core_Node_has_listening_addresses(const envoy_api_v2_core_Node *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(48, 96)); }
|
281
|
-
UPB_INLINE const struct envoy_api_v2_core_Address* const* envoy_api_v2_core_Node_listening_addresses(const envoy_api_v2_core_Node *msg, size_t *len) { return (const struct envoy_api_v2_core_Address* const*)_upb_array_accessor(msg, UPB_SIZE(48, 96), len); }
|
282
|
-
|
283
|
-
UPB_INLINE void envoy_api_v2_core_Node_set_id(envoy_api_v2_core_Node *msg, upb_strview value) {
|
284
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
285
|
-
}
|
286
|
-
UPB_INLINE void envoy_api_v2_core_Node_set_cluster(envoy_api_v2_core_Node *msg, upb_strview value) {
|
287
|
-
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
|
288
|
-
}
|
289
|
-
UPB_INLINE void envoy_api_v2_core_Node_set_metadata(envoy_api_v2_core_Node *msg, struct google_protobuf_Struct* value) {
|
290
|
-
*UPB_PTR_AT(msg, UPB_SIZE(32, 64), struct google_protobuf_Struct*) = value;
|
291
|
-
}
|
292
|
-
UPB_INLINE struct google_protobuf_Struct* envoy_api_v2_core_Node_mutable_metadata(envoy_api_v2_core_Node *msg, upb_arena *arena) {
|
293
|
-
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_api_v2_core_Node_metadata(msg);
|
294
|
-
if (sub == NULL) {
|
295
|
-
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
|
296
|
-
if (!sub) return NULL;
|
297
|
-
envoy_api_v2_core_Node_set_metadata(msg, sub);
|
298
|
-
}
|
299
|
-
return sub;
|
300
|
-
}
|
301
|
-
UPB_INLINE void envoy_api_v2_core_Node_set_locality(envoy_api_v2_core_Node *msg, envoy_api_v2_core_Locality* value) {
|
302
|
-
*UPB_PTR_AT(msg, UPB_SIZE(36, 72), envoy_api_v2_core_Locality*) = value;
|
303
|
-
}
|
304
|
-
UPB_INLINE struct envoy_api_v2_core_Locality* envoy_api_v2_core_Node_mutable_locality(envoy_api_v2_core_Node *msg, upb_arena *arena) {
|
305
|
-
struct envoy_api_v2_core_Locality* sub = (struct envoy_api_v2_core_Locality*)envoy_api_v2_core_Node_locality(msg);
|
306
|
-
if (sub == NULL) {
|
307
|
-
sub = (struct envoy_api_v2_core_Locality*)_upb_msg_new(&envoy_api_v2_core_Locality_msginit, arena);
|
308
|
-
if (!sub) return NULL;
|
309
|
-
envoy_api_v2_core_Node_set_locality(msg, sub);
|
310
|
-
}
|
311
|
-
return sub;
|
312
|
-
}
|
313
|
-
UPB_INLINE void envoy_api_v2_core_Node_set_build_version(envoy_api_v2_core_Node *msg, upb_strview value) {
|
314
|
-
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview) = value;
|
315
|
-
}
|
316
|
-
UPB_INLINE void envoy_api_v2_core_Node_set_user_agent_name(envoy_api_v2_core_Node *msg, upb_strview value) {
|
317
|
-
*UPB_PTR_AT(msg, UPB_SIZE(24, 48), upb_strview) = value;
|
318
|
-
}
|
319
|
-
UPB_INLINE void envoy_api_v2_core_Node_set_user_agent_version(envoy_api_v2_core_Node *msg, upb_strview value) {
|
320
|
-
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(52, 104), value, UPB_SIZE(60, 120), 7);
|
321
|
-
}
|
322
|
-
UPB_INLINE void envoy_api_v2_core_Node_set_user_agent_build_version(envoy_api_v2_core_Node *msg, envoy_api_v2_core_BuildVersion* value) {
|
323
|
-
UPB_WRITE_ONEOF(msg, envoy_api_v2_core_BuildVersion*, UPB_SIZE(52, 104), value, UPB_SIZE(60, 120), 8);
|
324
|
-
}
|
325
|
-
UPB_INLINE struct envoy_api_v2_core_BuildVersion* envoy_api_v2_core_Node_mutable_user_agent_build_version(envoy_api_v2_core_Node *msg, upb_arena *arena) {
|
326
|
-
struct envoy_api_v2_core_BuildVersion* sub = (struct envoy_api_v2_core_BuildVersion*)envoy_api_v2_core_Node_user_agent_build_version(msg);
|
327
|
-
if (sub == NULL) {
|
328
|
-
sub = (struct envoy_api_v2_core_BuildVersion*)_upb_msg_new(&envoy_api_v2_core_BuildVersion_msginit, arena);
|
329
|
-
if (!sub) return NULL;
|
330
|
-
envoy_api_v2_core_Node_set_user_agent_build_version(msg, sub);
|
331
|
-
}
|
332
|
-
return sub;
|
333
|
-
}
|
334
|
-
UPB_INLINE envoy_api_v2_core_Extension** envoy_api_v2_core_Node_mutable_extensions(envoy_api_v2_core_Node *msg, size_t *len) {
|
335
|
-
return (envoy_api_v2_core_Extension**)_upb_array_mutable_accessor(msg, UPB_SIZE(40, 80), len);
|
336
|
-
}
|
337
|
-
UPB_INLINE envoy_api_v2_core_Extension** envoy_api_v2_core_Node_resize_extensions(envoy_api_v2_core_Node *msg, size_t len, upb_arena *arena) {
|
338
|
-
return (envoy_api_v2_core_Extension**)_upb_array_resize_accessor(msg, UPB_SIZE(40, 80), len, UPB_TYPE_MESSAGE, arena);
|
339
|
-
}
|
340
|
-
UPB_INLINE struct envoy_api_v2_core_Extension* envoy_api_v2_core_Node_add_extensions(envoy_api_v2_core_Node *msg, upb_arena *arena) {
|
341
|
-
struct envoy_api_v2_core_Extension* sub = (struct envoy_api_v2_core_Extension*)_upb_msg_new(&envoy_api_v2_core_Extension_msginit, arena);
|
342
|
-
bool ok = _upb_array_append_accessor(
|
343
|
-
msg, UPB_SIZE(40, 80), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
344
|
-
if (!ok) return NULL;
|
345
|
-
return sub;
|
346
|
-
}
|
347
|
-
UPB_INLINE upb_strview* envoy_api_v2_core_Node_mutable_client_features(envoy_api_v2_core_Node *msg, size_t *len) {
|
348
|
-
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(44, 88), len);
|
349
|
-
}
|
350
|
-
UPB_INLINE upb_strview* envoy_api_v2_core_Node_resize_client_features(envoy_api_v2_core_Node *msg, size_t len, upb_arena *arena) {
|
351
|
-
return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(44, 88), len, UPB_TYPE_STRING, arena);
|
352
|
-
}
|
353
|
-
UPB_INLINE bool envoy_api_v2_core_Node_add_client_features(envoy_api_v2_core_Node *msg, upb_strview val, upb_arena *arena) {
|
354
|
-
return _upb_array_append_accessor(msg, UPB_SIZE(44, 88), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val,
|
355
|
-
arena);
|
356
|
-
}
|
357
|
-
UPB_INLINE struct envoy_api_v2_core_Address** envoy_api_v2_core_Node_mutable_listening_addresses(envoy_api_v2_core_Node *msg, size_t *len) {
|
358
|
-
return (struct envoy_api_v2_core_Address**)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 96), len);
|
359
|
-
}
|
360
|
-
UPB_INLINE struct envoy_api_v2_core_Address** envoy_api_v2_core_Node_resize_listening_addresses(envoy_api_v2_core_Node *msg, size_t len, upb_arena *arena) {
|
361
|
-
return (struct envoy_api_v2_core_Address**)_upb_array_resize_accessor(msg, UPB_SIZE(48, 96), len, UPB_TYPE_MESSAGE, arena);
|
362
|
-
}
|
363
|
-
UPB_INLINE struct envoy_api_v2_core_Address* envoy_api_v2_core_Node_add_listening_addresses(envoy_api_v2_core_Node *msg, upb_arena *arena) {
|
364
|
-
struct envoy_api_v2_core_Address* sub = (struct envoy_api_v2_core_Address*)_upb_msg_new(&envoy_api_v2_core_Address_msginit, arena);
|
365
|
-
bool ok = _upb_array_append_accessor(
|
366
|
-
msg, UPB_SIZE(48, 96), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
367
|
-
if (!ok) return NULL;
|
368
|
-
return sub;
|
369
|
-
}
|
370
|
-
|
371
|
-
/* envoy.api.v2.core.Metadata */
|
372
|
-
|
373
|
-
UPB_INLINE envoy_api_v2_core_Metadata *envoy_api_v2_core_Metadata_new(upb_arena *arena) {
|
374
|
-
return (envoy_api_v2_core_Metadata *)_upb_msg_new(&envoy_api_v2_core_Metadata_msginit, arena);
|
375
|
-
}
|
376
|
-
UPB_INLINE envoy_api_v2_core_Metadata *envoy_api_v2_core_Metadata_parse(const char *buf, size_t size,
|
377
|
-
upb_arena *arena) {
|
378
|
-
envoy_api_v2_core_Metadata *ret = envoy_api_v2_core_Metadata_new(arena);
|
379
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_Metadata_msginit, arena)) ? ret : NULL;
|
380
|
-
}
|
381
|
-
UPB_INLINE char *envoy_api_v2_core_Metadata_serialize(const envoy_api_v2_core_Metadata *msg, upb_arena *arena, size_t *len) {
|
382
|
-
return upb_encode(msg, &envoy_api_v2_core_Metadata_msginit, arena, len);
|
383
|
-
}
|
384
|
-
|
385
|
-
UPB_INLINE bool envoy_api_v2_core_Metadata_has_filter_metadata(const envoy_api_v2_core_Metadata *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
|
386
|
-
UPB_INLINE size_t envoy_api_v2_core_Metadata_filter_metadata_size(const envoy_api_v2_core_Metadata *msg) {return _upb_msg_map_size(msg, UPB_SIZE(0, 0)); }
|
387
|
-
UPB_INLINE bool envoy_api_v2_core_Metadata_filter_metadata_get(const envoy_api_v2_core_Metadata *msg, upb_strview key, struct google_protobuf_Struct* *val) { return _upb_msg_map_get(msg, UPB_SIZE(0, 0), &key, 0, val, sizeof(*val)); }
|
388
|
-
UPB_INLINE const envoy_api_v2_core_Metadata_FilterMetadataEntry* envoy_api_v2_core_Metadata_filter_metadata_next(const envoy_api_v2_core_Metadata *msg, size_t* iter) { return (const envoy_api_v2_core_Metadata_FilterMetadataEntry*)_upb_msg_map_next(msg, UPB_SIZE(0, 0), iter); }
|
389
|
-
|
390
|
-
UPB_INLINE void envoy_api_v2_core_Metadata_filter_metadata_clear(envoy_api_v2_core_Metadata *msg) { _upb_msg_map_clear(msg, UPB_SIZE(0, 0)); }
|
391
|
-
UPB_INLINE bool envoy_api_v2_core_Metadata_filter_metadata_set(envoy_api_v2_core_Metadata *msg, upb_strview key, struct google_protobuf_Struct* val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(0, 0), &key, 0, &val, sizeof(val), a); }
|
392
|
-
UPB_INLINE bool envoy_api_v2_core_Metadata_filter_metadata_delete(envoy_api_v2_core_Metadata *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(0, 0), &key, 0); }
|
393
|
-
UPB_INLINE envoy_api_v2_core_Metadata_FilterMetadataEntry* envoy_api_v2_core_Metadata_filter_metadata_nextmutable(envoy_api_v2_core_Metadata *msg, size_t* iter) { return (envoy_api_v2_core_Metadata_FilterMetadataEntry*)_upb_msg_map_next(msg, UPB_SIZE(0, 0), iter); }
|
394
|
-
|
395
|
-
/* envoy.api.v2.core.Metadata.FilterMetadataEntry */
|
396
|
-
|
397
|
-
UPB_INLINE upb_strview envoy_api_v2_core_Metadata_FilterMetadataEntry_key(const envoy_api_v2_core_Metadata_FilterMetadataEntry *msg) {
|
398
|
-
upb_strview ret;
|
399
|
-
_upb_msg_map_key(msg, &ret, 0);
|
400
|
-
return ret;
|
401
|
-
}
|
402
|
-
UPB_INLINE bool envoy_api_v2_core_Metadata_FilterMetadataEntry_has_value(const envoy_api_v2_core_Metadata_FilterMetadataEntry *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
|
403
|
-
UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_core_Metadata_FilterMetadataEntry_value(const envoy_api_v2_core_Metadata_FilterMetadataEntry *msg) {
|
404
|
-
struct google_protobuf_Struct* ret;
|
405
|
-
_upb_msg_map_value(msg, &ret, sizeof(ret));
|
406
|
-
return ret;
|
407
|
-
}
|
408
|
-
|
409
|
-
UPB_INLINE void envoy_api_v2_core_Metadata_FilterMetadataEntry_set_value(envoy_api_v2_core_Metadata_FilterMetadataEntry *msg, struct google_protobuf_Struct* value) {
|
410
|
-
_upb_msg_map_set_value(msg, &value, sizeof(struct google_protobuf_Struct*));
|
411
|
-
}
|
412
|
-
|
413
|
-
/* envoy.api.v2.core.RuntimeUInt32 */
|
414
|
-
|
415
|
-
UPB_INLINE envoy_api_v2_core_RuntimeUInt32 *envoy_api_v2_core_RuntimeUInt32_new(upb_arena *arena) {
|
416
|
-
return (envoy_api_v2_core_RuntimeUInt32 *)_upb_msg_new(&envoy_api_v2_core_RuntimeUInt32_msginit, arena);
|
417
|
-
}
|
418
|
-
UPB_INLINE envoy_api_v2_core_RuntimeUInt32 *envoy_api_v2_core_RuntimeUInt32_parse(const char *buf, size_t size,
|
419
|
-
upb_arena *arena) {
|
420
|
-
envoy_api_v2_core_RuntimeUInt32 *ret = envoy_api_v2_core_RuntimeUInt32_new(arena);
|
421
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RuntimeUInt32_msginit, arena)) ? ret : NULL;
|
422
|
-
}
|
423
|
-
UPB_INLINE char *envoy_api_v2_core_RuntimeUInt32_serialize(const envoy_api_v2_core_RuntimeUInt32 *msg, upb_arena *arena, size_t *len) {
|
424
|
-
return upb_encode(msg, &envoy_api_v2_core_RuntimeUInt32_msginit, arena, len);
|
425
|
-
}
|
426
|
-
|
427
|
-
UPB_INLINE uint32_t envoy_api_v2_core_RuntimeUInt32_default_value(const envoy_api_v2_core_RuntimeUInt32 *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t); }
|
428
|
-
UPB_INLINE upb_strview envoy_api_v2_core_RuntimeUInt32_runtime_key(const envoy_api_v2_core_RuntimeUInt32 *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
|
429
|
-
|
430
|
-
UPB_INLINE void envoy_api_v2_core_RuntimeUInt32_set_default_value(envoy_api_v2_core_RuntimeUInt32 *msg, uint32_t value) {
|
431
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = value;
|
432
|
-
}
|
433
|
-
UPB_INLINE void envoy_api_v2_core_RuntimeUInt32_set_runtime_key(envoy_api_v2_core_RuntimeUInt32 *msg, upb_strview value) {
|
434
|
-
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
|
435
|
-
}
|
436
|
-
|
437
|
-
/* envoy.api.v2.core.RuntimeDouble */
|
438
|
-
|
439
|
-
UPB_INLINE envoy_api_v2_core_RuntimeDouble *envoy_api_v2_core_RuntimeDouble_new(upb_arena *arena) {
|
440
|
-
return (envoy_api_v2_core_RuntimeDouble *)_upb_msg_new(&envoy_api_v2_core_RuntimeDouble_msginit, arena);
|
441
|
-
}
|
442
|
-
UPB_INLINE envoy_api_v2_core_RuntimeDouble *envoy_api_v2_core_RuntimeDouble_parse(const char *buf, size_t size,
|
443
|
-
upb_arena *arena) {
|
444
|
-
envoy_api_v2_core_RuntimeDouble *ret = envoy_api_v2_core_RuntimeDouble_new(arena);
|
445
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RuntimeDouble_msginit, arena)) ? ret : NULL;
|
446
|
-
}
|
447
|
-
UPB_INLINE char *envoy_api_v2_core_RuntimeDouble_serialize(const envoy_api_v2_core_RuntimeDouble *msg, upb_arena *arena, size_t *len) {
|
448
|
-
return upb_encode(msg, &envoy_api_v2_core_RuntimeDouble_msginit, arena, len);
|
449
|
-
}
|
450
|
-
|
451
|
-
UPB_INLINE double envoy_api_v2_core_RuntimeDouble_default_value(const envoy_api_v2_core_RuntimeDouble *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double); }
|
452
|
-
UPB_INLINE upb_strview envoy_api_v2_core_RuntimeDouble_runtime_key(const envoy_api_v2_core_RuntimeDouble *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview); }
|
453
|
-
|
454
|
-
UPB_INLINE void envoy_api_v2_core_RuntimeDouble_set_default_value(envoy_api_v2_core_RuntimeDouble *msg, double value) {
|
455
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), double) = value;
|
456
|
-
}
|
457
|
-
UPB_INLINE void envoy_api_v2_core_RuntimeDouble_set_runtime_key(envoy_api_v2_core_RuntimeDouble *msg, upb_strview value) {
|
458
|
-
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview) = value;
|
459
|
-
}
|
460
|
-
|
461
|
-
/* envoy.api.v2.core.RuntimeFeatureFlag */
|
462
|
-
|
463
|
-
UPB_INLINE envoy_api_v2_core_RuntimeFeatureFlag *envoy_api_v2_core_RuntimeFeatureFlag_new(upb_arena *arena) {
|
464
|
-
return (envoy_api_v2_core_RuntimeFeatureFlag *)_upb_msg_new(&envoy_api_v2_core_RuntimeFeatureFlag_msginit, arena);
|
465
|
-
}
|
466
|
-
UPB_INLINE envoy_api_v2_core_RuntimeFeatureFlag *envoy_api_v2_core_RuntimeFeatureFlag_parse(const char *buf, size_t size,
|
467
|
-
upb_arena *arena) {
|
468
|
-
envoy_api_v2_core_RuntimeFeatureFlag *ret = envoy_api_v2_core_RuntimeFeatureFlag_new(arena);
|
469
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RuntimeFeatureFlag_msginit, arena)) ? ret : NULL;
|
470
|
-
}
|
471
|
-
UPB_INLINE char *envoy_api_v2_core_RuntimeFeatureFlag_serialize(const envoy_api_v2_core_RuntimeFeatureFlag *msg, upb_arena *arena, size_t *len) {
|
472
|
-
return upb_encode(msg, &envoy_api_v2_core_RuntimeFeatureFlag_msginit, arena, len);
|
473
|
-
}
|
474
|
-
|
475
|
-
UPB_INLINE bool envoy_api_v2_core_RuntimeFeatureFlag_has_default_value(const envoy_api_v2_core_RuntimeFeatureFlag *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
|
476
|
-
UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_core_RuntimeFeatureFlag_default_value(const envoy_api_v2_core_RuntimeFeatureFlag *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_BoolValue*); }
|
477
|
-
UPB_INLINE upb_strview envoy_api_v2_core_RuntimeFeatureFlag_runtime_key(const envoy_api_v2_core_RuntimeFeatureFlag *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
478
|
-
|
479
|
-
UPB_INLINE void envoy_api_v2_core_RuntimeFeatureFlag_set_default_value(envoy_api_v2_core_RuntimeFeatureFlag *msg, struct google_protobuf_BoolValue* value) {
|
480
|
-
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_BoolValue*) = value;
|
481
|
-
}
|
482
|
-
UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_core_RuntimeFeatureFlag_mutable_default_value(envoy_api_v2_core_RuntimeFeatureFlag *msg, upb_arena *arena) {
|
483
|
-
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_core_RuntimeFeatureFlag_default_value(msg);
|
484
|
-
if (sub == NULL) {
|
485
|
-
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
|
486
|
-
if (!sub) return NULL;
|
487
|
-
envoy_api_v2_core_RuntimeFeatureFlag_set_default_value(msg, sub);
|
488
|
-
}
|
489
|
-
return sub;
|
490
|
-
}
|
491
|
-
UPB_INLINE void envoy_api_v2_core_RuntimeFeatureFlag_set_runtime_key(envoy_api_v2_core_RuntimeFeatureFlag *msg, upb_strview value) {
|
492
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
493
|
-
}
|
494
|
-
|
495
|
-
/* envoy.api.v2.core.HeaderValue */
|
496
|
-
|
497
|
-
UPB_INLINE envoy_api_v2_core_HeaderValue *envoy_api_v2_core_HeaderValue_new(upb_arena *arena) {
|
498
|
-
return (envoy_api_v2_core_HeaderValue *)_upb_msg_new(&envoy_api_v2_core_HeaderValue_msginit, arena);
|
499
|
-
}
|
500
|
-
UPB_INLINE envoy_api_v2_core_HeaderValue *envoy_api_v2_core_HeaderValue_parse(const char *buf, size_t size,
|
501
|
-
upb_arena *arena) {
|
502
|
-
envoy_api_v2_core_HeaderValue *ret = envoy_api_v2_core_HeaderValue_new(arena);
|
503
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_HeaderValue_msginit, arena)) ? ret : NULL;
|
504
|
-
}
|
505
|
-
UPB_INLINE char *envoy_api_v2_core_HeaderValue_serialize(const envoy_api_v2_core_HeaderValue *msg, upb_arena *arena, size_t *len) {
|
506
|
-
return upb_encode(msg, &envoy_api_v2_core_HeaderValue_msginit, arena, len);
|
507
|
-
}
|
508
|
-
|
509
|
-
UPB_INLINE upb_strview envoy_api_v2_core_HeaderValue_key(const envoy_api_v2_core_HeaderValue *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
510
|
-
UPB_INLINE upb_strview envoy_api_v2_core_HeaderValue_value(const envoy_api_v2_core_HeaderValue *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); }
|
511
|
-
|
512
|
-
UPB_INLINE void envoy_api_v2_core_HeaderValue_set_key(envoy_api_v2_core_HeaderValue *msg, upb_strview value) {
|
513
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
514
|
-
}
|
515
|
-
UPB_INLINE void envoy_api_v2_core_HeaderValue_set_value(envoy_api_v2_core_HeaderValue *msg, upb_strview value) {
|
516
|
-
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
|
517
|
-
}
|
518
|
-
|
519
|
-
/* envoy.api.v2.core.HeaderValueOption */
|
520
|
-
|
521
|
-
UPB_INLINE envoy_api_v2_core_HeaderValueOption *envoy_api_v2_core_HeaderValueOption_new(upb_arena *arena) {
|
522
|
-
return (envoy_api_v2_core_HeaderValueOption *)_upb_msg_new(&envoy_api_v2_core_HeaderValueOption_msginit, arena);
|
523
|
-
}
|
524
|
-
UPB_INLINE envoy_api_v2_core_HeaderValueOption *envoy_api_v2_core_HeaderValueOption_parse(const char *buf, size_t size,
|
525
|
-
upb_arena *arena) {
|
526
|
-
envoy_api_v2_core_HeaderValueOption *ret = envoy_api_v2_core_HeaderValueOption_new(arena);
|
527
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_HeaderValueOption_msginit, arena)) ? ret : NULL;
|
528
|
-
}
|
529
|
-
UPB_INLINE char *envoy_api_v2_core_HeaderValueOption_serialize(const envoy_api_v2_core_HeaderValueOption *msg, upb_arena *arena, size_t *len) {
|
530
|
-
return upb_encode(msg, &envoy_api_v2_core_HeaderValueOption_msginit, arena, len);
|
531
|
-
}
|
532
|
-
|
533
|
-
UPB_INLINE bool envoy_api_v2_core_HeaderValueOption_has_header(const envoy_api_v2_core_HeaderValueOption *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
|
534
|
-
UPB_INLINE const envoy_api_v2_core_HeaderValue* envoy_api_v2_core_HeaderValueOption_header(const envoy_api_v2_core_HeaderValueOption *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const envoy_api_v2_core_HeaderValue*); }
|
535
|
-
UPB_INLINE bool envoy_api_v2_core_HeaderValueOption_has_append(const envoy_api_v2_core_HeaderValueOption *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); }
|
536
|
-
UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_core_HeaderValueOption_append(const envoy_api_v2_core_HeaderValueOption *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_BoolValue*); }
|
537
|
-
|
538
|
-
UPB_INLINE void envoy_api_v2_core_HeaderValueOption_set_header(envoy_api_v2_core_HeaderValueOption *msg, envoy_api_v2_core_HeaderValue* value) {
|
539
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), envoy_api_v2_core_HeaderValue*) = value;
|
540
|
-
}
|
541
|
-
UPB_INLINE struct envoy_api_v2_core_HeaderValue* envoy_api_v2_core_HeaderValueOption_mutable_header(envoy_api_v2_core_HeaderValueOption *msg, upb_arena *arena) {
|
542
|
-
struct envoy_api_v2_core_HeaderValue* sub = (struct envoy_api_v2_core_HeaderValue*)envoy_api_v2_core_HeaderValueOption_header(msg);
|
543
|
-
if (sub == NULL) {
|
544
|
-
sub = (struct envoy_api_v2_core_HeaderValue*)_upb_msg_new(&envoy_api_v2_core_HeaderValue_msginit, arena);
|
545
|
-
if (!sub) return NULL;
|
546
|
-
envoy_api_v2_core_HeaderValueOption_set_header(msg, sub);
|
547
|
-
}
|
548
|
-
return sub;
|
549
|
-
}
|
550
|
-
UPB_INLINE void envoy_api_v2_core_HeaderValueOption_set_append(envoy_api_v2_core_HeaderValueOption *msg, struct google_protobuf_BoolValue* value) {
|
551
|
-
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_BoolValue*) = value;
|
552
|
-
}
|
553
|
-
UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_core_HeaderValueOption_mutable_append(envoy_api_v2_core_HeaderValueOption *msg, upb_arena *arena) {
|
554
|
-
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_core_HeaderValueOption_append(msg);
|
555
|
-
if (sub == NULL) {
|
556
|
-
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
|
557
|
-
if (!sub) return NULL;
|
558
|
-
envoy_api_v2_core_HeaderValueOption_set_append(msg, sub);
|
559
|
-
}
|
560
|
-
return sub;
|
561
|
-
}
|
562
|
-
|
563
|
-
/* envoy.api.v2.core.HeaderMap */
|
564
|
-
|
565
|
-
UPB_INLINE envoy_api_v2_core_HeaderMap *envoy_api_v2_core_HeaderMap_new(upb_arena *arena) {
|
566
|
-
return (envoy_api_v2_core_HeaderMap *)_upb_msg_new(&envoy_api_v2_core_HeaderMap_msginit, arena);
|
567
|
-
}
|
568
|
-
UPB_INLINE envoy_api_v2_core_HeaderMap *envoy_api_v2_core_HeaderMap_parse(const char *buf, size_t size,
|
569
|
-
upb_arena *arena) {
|
570
|
-
envoy_api_v2_core_HeaderMap *ret = envoy_api_v2_core_HeaderMap_new(arena);
|
571
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_HeaderMap_msginit, arena)) ? ret : NULL;
|
572
|
-
}
|
573
|
-
UPB_INLINE char *envoy_api_v2_core_HeaderMap_serialize(const envoy_api_v2_core_HeaderMap *msg, upb_arena *arena, size_t *len) {
|
574
|
-
return upb_encode(msg, &envoy_api_v2_core_HeaderMap_msginit, arena, len);
|
575
|
-
}
|
576
|
-
|
577
|
-
UPB_INLINE bool envoy_api_v2_core_HeaderMap_has_headers(const envoy_api_v2_core_HeaderMap *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
|
578
|
-
UPB_INLINE const envoy_api_v2_core_HeaderValue* const* envoy_api_v2_core_HeaderMap_headers(const envoy_api_v2_core_HeaderMap *msg, size_t *len) { return (const envoy_api_v2_core_HeaderValue* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); }
|
579
|
-
|
580
|
-
UPB_INLINE envoy_api_v2_core_HeaderValue** envoy_api_v2_core_HeaderMap_mutable_headers(envoy_api_v2_core_HeaderMap *msg, size_t *len) {
|
581
|
-
return (envoy_api_v2_core_HeaderValue**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len);
|
582
|
-
}
|
583
|
-
UPB_INLINE envoy_api_v2_core_HeaderValue** envoy_api_v2_core_HeaderMap_resize_headers(envoy_api_v2_core_HeaderMap *msg, size_t len, upb_arena *arena) {
|
584
|
-
return (envoy_api_v2_core_HeaderValue**)_upb_array_resize_accessor(msg, UPB_SIZE(0, 0), len, UPB_TYPE_MESSAGE, arena);
|
585
|
-
}
|
586
|
-
UPB_INLINE struct envoy_api_v2_core_HeaderValue* envoy_api_v2_core_HeaderMap_add_headers(envoy_api_v2_core_HeaderMap *msg, upb_arena *arena) {
|
587
|
-
struct envoy_api_v2_core_HeaderValue* sub = (struct envoy_api_v2_core_HeaderValue*)_upb_msg_new(&envoy_api_v2_core_HeaderValue_msginit, arena);
|
588
|
-
bool ok = _upb_array_append_accessor(
|
589
|
-
msg, UPB_SIZE(0, 0), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
590
|
-
if (!ok) return NULL;
|
591
|
-
return sub;
|
592
|
-
}
|
593
|
-
|
594
|
-
/* envoy.api.v2.core.DataSource */
|
595
|
-
|
596
|
-
UPB_INLINE envoy_api_v2_core_DataSource *envoy_api_v2_core_DataSource_new(upb_arena *arena) {
|
597
|
-
return (envoy_api_v2_core_DataSource *)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena);
|
598
|
-
}
|
599
|
-
UPB_INLINE envoy_api_v2_core_DataSource *envoy_api_v2_core_DataSource_parse(const char *buf, size_t size,
|
600
|
-
upb_arena *arena) {
|
601
|
-
envoy_api_v2_core_DataSource *ret = envoy_api_v2_core_DataSource_new(arena);
|
602
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_DataSource_msginit, arena)) ? ret : NULL;
|
603
|
-
}
|
604
|
-
UPB_INLINE char *envoy_api_v2_core_DataSource_serialize(const envoy_api_v2_core_DataSource *msg, upb_arena *arena, size_t *len) {
|
605
|
-
return upb_encode(msg, &envoy_api_v2_core_DataSource_msginit, arena, len);
|
606
|
-
}
|
607
|
-
|
608
|
-
typedef enum {
|
609
|
-
envoy_api_v2_core_DataSource_specifier_filename = 1,
|
610
|
-
envoy_api_v2_core_DataSource_specifier_inline_bytes = 2,
|
611
|
-
envoy_api_v2_core_DataSource_specifier_inline_string = 3,
|
612
|
-
envoy_api_v2_core_DataSource_specifier_NOT_SET = 0
|
613
|
-
} envoy_api_v2_core_DataSource_specifier_oneofcases;
|
614
|
-
UPB_INLINE envoy_api_v2_core_DataSource_specifier_oneofcases envoy_api_v2_core_DataSource_specifier_case(const envoy_api_v2_core_DataSource* msg) { return (envoy_api_v2_core_DataSource_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(8, 16), int32_t); }
|
615
|
-
|
616
|
-
UPB_INLINE bool envoy_api_v2_core_DataSource_has_filename(const envoy_api_v2_core_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 1; }
|
617
|
-
UPB_INLINE upb_strview envoy_api_v2_core_DataSource_filename(const envoy_api_v2_core_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 1, upb_strview_make("", strlen(""))); }
|
618
|
-
UPB_INLINE bool envoy_api_v2_core_DataSource_has_inline_bytes(const envoy_api_v2_core_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 2; }
|
619
|
-
UPB_INLINE upb_strview envoy_api_v2_core_DataSource_inline_bytes(const envoy_api_v2_core_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 2, upb_strview_make("", strlen(""))); }
|
620
|
-
UPB_INLINE bool envoy_api_v2_core_DataSource_has_inline_string(const envoy_api_v2_core_DataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 3; }
|
621
|
-
UPB_INLINE upb_strview envoy_api_v2_core_DataSource_inline_string(const envoy_api_v2_core_DataSource *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 3, upb_strview_make("", strlen(""))); }
|
622
|
-
|
623
|
-
UPB_INLINE void envoy_api_v2_core_DataSource_set_filename(envoy_api_v2_core_DataSource *msg, upb_strview value) {
|
624
|
-
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 1);
|
625
|
-
}
|
626
|
-
UPB_INLINE void envoy_api_v2_core_DataSource_set_inline_bytes(envoy_api_v2_core_DataSource *msg, upb_strview value) {
|
627
|
-
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 2);
|
628
|
-
}
|
629
|
-
UPB_INLINE void envoy_api_v2_core_DataSource_set_inline_string(envoy_api_v2_core_DataSource *msg, upb_strview value) {
|
630
|
-
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 3);
|
631
|
-
}
|
632
|
-
|
633
|
-
/* envoy.api.v2.core.RetryPolicy */
|
634
|
-
|
635
|
-
UPB_INLINE envoy_api_v2_core_RetryPolicy *envoy_api_v2_core_RetryPolicy_new(upb_arena *arena) {
|
636
|
-
return (envoy_api_v2_core_RetryPolicy *)_upb_msg_new(&envoy_api_v2_core_RetryPolicy_msginit, arena);
|
637
|
-
}
|
638
|
-
UPB_INLINE envoy_api_v2_core_RetryPolicy *envoy_api_v2_core_RetryPolicy_parse(const char *buf, size_t size,
|
639
|
-
upb_arena *arena) {
|
640
|
-
envoy_api_v2_core_RetryPolicy *ret = envoy_api_v2_core_RetryPolicy_new(arena);
|
641
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RetryPolicy_msginit, arena)) ? ret : NULL;
|
642
|
-
}
|
643
|
-
UPB_INLINE char *envoy_api_v2_core_RetryPolicy_serialize(const envoy_api_v2_core_RetryPolicy *msg, upb_arena *arena, size_t *len) {
|
644
|
-
return upb_encode(msg, &envoy_api_v2_core_RetryPolicy_msginit, arena, len);
|
645
|
-
}
|
646
|
-
|
647
|
-
UPB_INLINE bool envoy_api_v2_core_RetryPolicy_has_retry_back_off(const envoy_api_v2_core_RetryPolicy *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
|
648
|
-
UPB_INLINE const struct envoy_api_v2_core_BackoffStrategy* envoy_api_v2_core_RetryPolicy_retry_back_off(const envoy_api_v2_core_RetryPolicy *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), const struct envoy_api_v2_core_BackoffStrategy*); }
|
649
|
-
UPB_INLINE bool envoy_api_v2_core_RetryPolicy_has_num_retries(const envoy_api_v2_core_RetryPolicy *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); }
|
650
|
-
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_api_v2_core_RetryPolicy_num_retries(const envoy_api_v2_core_RetryPolicy *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_UInt32Value*); }
|
651
|
-
|
652
|
-
UPB_INLINE void envoy_api_v2_core_RetryPolicy_set_retry_back_off(envoy_api_v2_core_RetryPolicy *msg, struct envoy_api_v2_core_BackoffStrategy* value) {
|
653
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), struct envoy_api_v2_core_BackoffStrategy*) = value;
|
654
|
-
}
|
655
|
-
UPB_INLINE struct envoy_api_v2_core_BackoffStrategy* envoy_api_v2_core_RetryPolicy_mutable_retry_back_off(envoy_api_v2_core_RetryPolicy *msg, upb_arena *arena) {
|
656
|
-
struct envoy_api_v2_core_BackoffStrategy* sub = (struct envoy_api_v2_core_BackoffStrategy*)envoy_api_v2_core_RetryPolicy_retry_back_off(msg);
|
657
|
-
if (sub == NULL) {
|
658
|
-
sub = (struct envoy_api_v2_core_BackoffStrategy*)_upb_msg_new(&envoy_api_v2_core_BackoffStrategy_msginit, arena);
|
659
|
-
if (!sub) return NULL;
|
660
|
-
envoy_api_v2_core_RetryPolicy_set_retry_back_off(msg, sub);
|
661
|
-
}
|
662
|
-
return sub;
|
663
|
-
}
|
664
|
-
UPB_INLINE void envoy_api_v2_core_RetryPolicy_set_num_retries(envoy_api_v2_core_RetryPolicy *msg, struct google_protobuf_UInt32Value* value) {
|
665
|
-
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_UInt32Value*) = value;
|
666
|
-
}
|
667
|
-
UPB_INLINE struct google_protobuf_UInt32Value* envoy_api_v2_core_RetryPolicy_mutable_num_retries(envoy_api_v2_core_RetryPolicy *msg, upb_arena *arena) {
|
668
|
-
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_api_v2_core_RetryPolicy_num_retries(msg);
|
669
|
-
if (sub == NULL) {
|
670
|
-
sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
|
671
|
-
if (!sub) return NULL;
|
672
|
-
envoy_api_v2_core_RetryPolicy_set_num_retries(msg, sub);
|
673
|
-
}
|
674
|
-
return sub;
|
675
|
-
}
|
676
|
-
|
677
|
-
/* envoy.api.v2.core.RemoteDataSource */
|
678
|
-
|
679
|
-
UPB_INLINE envoy_api_v2_core_RemoteDataSource *envoy_api_v2_core_RemoteDataSource_new(upb_arena *arena) {
|
680
|
-
return (envoy_api_v2_core_RemoteDataSource *)_upb_msg_new(&envoy_api_v2_core_RemoteDataSource_msginit, arena);
|
681
|
-
}
|
682
|
-
UPB_INLINE envoy_api_v2_core_RemoteDataSource *envoy_api_v2_core_RemoteDataSource_parse(const char *buf, size_t size,
|
683
|
-
upb_arena *arena) {
|
684
|
-
envoy_api_v2_core_RemoteDataSource *ret = envoy_api_v2_core_RemoteDataSource_new(arena);
|
685
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RemoteDataSource_msginit, arena)) ? ret : NULL;
|
686
|
-
}
|
687
|
-
UPB_INLINE char *envoy_api_v2_core_RemoteDataSource_serialize(const envoy_api_v2_core_RemoteDataSource *msg, upb_arena *arena, size_t *len) {
|
688
|
-
return upb_encode(msg, &envoy_api_v2_core_RemoteDataSource_msginit, arena, len);
|
689
|
-
}
|
690
|
-
|
691
|
-
UPB_INLINE bool envoy_api_v2_core_RemoteDataSource_has_http_uri(const envoy_api_v2_core_RemoteDataSource *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
|
692
|
-
UPB_INLINE const struct envoy_api_v2_core_HttpUri* envoy_api_v2_core_RemoteDataSource_http_uri(const envoy_api_v2_core_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_api_v2_core_HttpUri*); }
|
693
|
-
UPB_INLINE upb_strview envoy_api_v2_core_RemoteDataSource_sha256(const envoy_api_v2_core_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
694
|
-
UPB_INLINE bool envoy_api_v2_core_RemoteDataSource_has_retry_policy(const envoy_api_v2_core_RemoteDataSource *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); }
|
695
|
-
UPB_INLINE const envoy_api_v2_core_RetryPolicy* envoy_api_v2_core_RemoteDataSource_retry_policy(const envoy_api_v2_core_RemoteDataSource *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const envoy_api_v2_core_RetryPolicy*); }
|
696
|
-
|
697
|
-
UPB_INLINE void envoy_api_v2_core_RemoteDataSource_set_http_uri(envoy_api_v2_core_RemoteDataSource *msg, struct envoy_api_v2_core_HttpUri* value) {
|
698
|
-
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_api_v2_core_HttpUri*) = value;
|
699
|
-
}
|
700
|
-
UPB_INLINE struct envoy_api_v2_core_HttpUri* envoy_api_v2_core_RemoteDataSource_mutable_http_uri(envoy_api_v2_core_RemoteDataSource *msg, upb_arena *arena) {
|
701
|
-
struct envoy_api_v2_core_HttpUri* sub = (struct envoy_api_v2_core_HttpUri*)envoy_api_v2_core_RemoteDataSource_http_uri(msg);
|
702
|
-
if (sub == NULL) {
|
703
|
-
sub = (struct envoy_api_v2_core_HttpUri*)_upb_msg_new(&envoy_api_v2_core_HttpUri_msginit, arena);
|
704
|
-
if (!sub) return NULL;
|
705
|
-
envoy_api_v2_core_RemoteDataSource_set_http_uri(msg, sub);
|
706
|
-
}
|
707
|
-
return sub;
|
708
|
-
}
|
709
|
-
UPB_INLINE void envoy_api_v2_core_RemoteDataSource_set_sha256(envoy_api_v2_core_RemoteDataSource *msg, upb_strview value) {
|
710
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
711
|
-
}
|
712
|
-
UPB_INLINE void envoy_api_v2_core_RemoteDataSource_set_retry_policy(envoy_api_v2_core_RemoteDataSource *msg, envoy_api_v2_core_RetryPolicy* value) {
|
713
|
-
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), envoy_api_v2_core_RetryPolicy*) = value;
|
714
|
-
}
|
715
|
-
UPB_INLINE struct envoy_api_v2_core_RetryPolicy* envoy_api_v2_core_RemoteDataSource_mutable_retry_policy(envoy_api_v2_core_RemoteDataSource *msg, upb_arena *arena) {
|
716
|
-
struct envoy_api_v2_core_RetryPolicy* sub = (struct envoy_api_v2_core_RetryPolicy*)envoy_api_v2_core_RemoteDataSource_retry_policy(msg);
|
717
|
-
if (sub == NULL) {
|
718
|
-
sub = (struct envoy_api_v2_core_RetryPolicy*)_upb_msg_new(&envoy_api_v2_core_RetryPolicy_msginit, arena);
|
719
|
-
if (!sub) return NULL;
|
720
|
-
envoy_api_v2_core_RemoteDataSource_set_retry_policy(msg, sub);
|
721
|
-
}
|
722
|
-
return sub;
|
723
|
-
}
|
724
|
-
|
725
|
-
/* envoy.api.v2.core.AsyncDataSource */
|
726
|
-
|
727
|
-
UPB_INLINE envoy_api_v2_core_AsyncDataSource *envoy_api_v2_core_AsyncDataSource_new(upb_arena *arena) {
|
728
|
-
return (envoy_api_v2_core_AsyncDataSource *)_upb_msg_new(&envoy_api_v2_core_AsyncDataSource_msginit, arena);
|
729
|
-
}
|
730
|
-
UPB_INLINE envoy_api_v2_core_AsyncDataSource *envoy_api_v2_core_AsyncDataSource_parse(const char *buf, size_t size,
|
731
|
-
upb_arena *arena) {
|
732
|
-
envoy_api_v2_core_AsyncDataSource *ret = envoy_api_v2_core_AsyncDataSource_new(arena);
|
733
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_AsyncDataSource_msginit, arena)) ? ret : NULL;
|
734
|
-
}
|
735
|
-
UPB_INLINE char *envoy_api_v2_core_AsyncDataSource_serialize(const envoy_api_v2_core_AsyncDataSource *msg, upb_arena *arena, size_t *len) {
|
736
|
-
return upb_encode(msg, &envoy_api_v2_core_AsyncDataSource_msginit, arena, len);
|
737
|
-
}
|
738
|
-
|
739
|
-
typedef enum {
|
740
|
-
envoy_api_v2_core_AsyncDataSource_specifier_local = 1,
|
741
|
-
envoy_api_v2_core_AsyncDataSource_specifier_remote = 2,
|
742
|
-
envoy_api_v2_core_AsyncDataSource_specifier_NOT_SET = 0
|
743
|
-
} envoy_api_v2_core_AsyncDataSource_specifier_oneofcases;
|
744
|
-
UPB_INLINE envoy_api_v2_core_AsyncDataSource_specifier_oneofcases envoy_api_v2_core_AsyncDataSource_specifier_case(const envoy_api_v2_core_AsyncDataSource* msg) { return (envoy_api_v2_core_AsyncDataSource_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); }
|
745
|
-
|
746
|
-
UPB_INLINE bool envoy_api_v2_core_AsyncDataSource_has_local(const envoy_api_v2_core_AsyncDataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; }
|
747
|
-
UPB_INLINE const envoy_api_v2_core_DataSource* envoy_api_v2_core_AsyncDataSource_local(const envoy_api_v2_core_AsyncDataSource *msg) { return UPB_READ_ONEOF(msg, const envoy_api_v2_core_DataSource*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, NULL); }
|
748
|
-
UPB_INLINE bool envoy_api_v2_core_AsyncDataSource_has_remote(const envoy_api_v2_core_AsyncDataSource *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 2; }
|
749
|
-
UPB_INLINE const envoy_api_v2_core_RemoteDataSource* envoy_api_v2_core_AsyncDataSource_remote(const envoy_api_v2_core_AsyncDataSource *msg) { return UPB_READ_ONEOF(msg, const envoy_api_v2_core_RemoteDataSource*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 2, NULL); }
|
750
|
-
|
751
|
-
UPB_INLINE void envoy_api_v2_core_AsyncDataSource_set_local(envoy_api_v2_core_AsyncDataSource *msg, envoy_api_v2_core_DataSource* value) {
|
752
|
-
UPB_WRITE_ONEOF(msg, envoy_api_v2_core_DataSource*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1);
|
753
|
-
}
|
754
|
-
UPB_INLINE struct envoy_api_v2_core_DataSource* envoy_api_v2_core_AsyncDataSource_mutable_local(envoy_api_v2_core_AsyncDataSource *msg, upb_arena *arena) {
|
755
|
-
struct envoy_api_v2_core_DataSource* sub = (struct envoy_api_v2_core_DataSource*)envoy_api_v2_core_AsyncDataSource_local(msg);
|
756
|
-
if (sub == NULL) {
|
757
|
-
sub = (struct envoy_api_v2_core_DataSource*)_upb_msg_new(&envoy_api_v2_core_DataSource_msginit, arena);
|
758
|
-
if (!sub) return NULL;
|
759
|
-
envoy_api_v2_core_AsyncDataSource_set_local(msg, sub);
|
760
|
-
}
|
761
|
-
return sub;
|
762
|
-
}
|
763
|
-
UPB_INLINE void envoy_api_v2_core_AsyncDataSource_set_remote(envoy_api_v2_core_AsyncDataSource *msg, envoy_api_v2_core_RemoteDataSource* value) {
|
764
|
-
UPB_WRITE_ONEOF(msg, envoy_api_v2_core_RemoteDataSource*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 2);
|
765
|
-
}
|
766
|
-
UPB_INLINE struct envoy_api_v2_core_RemoteDataSource* envoy_api_v2_core_AsyncDataSource_mutable_remote(envoy_api_v2_core_AsyncDataSource *msg, upb_arena *arena) {
|
767
|
-
struct envoy_api_v2_core_RemoteDataSource* sub = (struct envoy_api_v2_core_RemoteDataSource*)envoy_api_v2_core_AsyncDataSource_remote(msg);
|
768
|
-
if (sub == NULL) {
|
769
|
-
sub = (struct envoy_api_v2_core_RemoteDataSource*)_upb_msg_new(&envoy_api_v2_core_RemoteDataSource_msginit, arena);
|
770
|
-
if (!sub) return NULL;
|
771
|
-
envoy_api_v2_core_AsyncDataSource_set_remote(msg, sub);
|
772
|
-
}
|
773
|
-
return sub;
|
774
|
-
}
|
775
|
-
|
776
|
-
/* envoy.api.v2.core.TransportSocket */
|
777
|
-
|
778
|
-
UPB_INLINE envoy_api_v2_core_TransportSocket *envoy_api_v2_core_TransportSocket_new(upb_arena *arena) {
|
779
|
-
return (envoy_api_v2_core_TransportSocket *)_upb_msg_new(&envoy_api_v2_core_TransportSocket_msginit, arena);
|
780
|
-
}
|
781
|
-
UPB_INLINE envoy_api_v2_core_TransportSocket *envoy_api_v2_core_TransportSocket_parse(const char *buf, size_t size,
|
782
|
-
upb_arena *arena) {
|
783
|
-
envoy_api_v2_core_TransportSocket *ret = envoy_api_v2_core_TransportSocket_new(arena);
|
784
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_TransportSocket_msginit, arena)) ? ret : NULL;
|
785
|
-
}
|
786
|
-
UPB_INLINE char *envoy_api_v2_core_TransportSocket_serialize(const envoy_api_v2_core_TransportSocket *msg, upb_arena *arena, size_t *len) {
|
787
|
-
return upb_encode(msg, &envoy_api_v2_core_TransportSocket_msginit, arena, len);
|
788
|
-
}
|
789
|
-
|
790
|
-
typedef enum {
|
791
|
-
envoy_api_v2_core_TransportSocket_config_type_config = 2,
|
792
|
-
envoy_api_v2_core_TransportSocket_config_type_typed_config = 3,
|
793
|
-
envoy_api_v2_core_TransportSocket_config_type_NOT_SET = 0
|
794
|
-
} envoy_api_v2_core_TransportSocket_config_type_oneofcases;
|
795
|
-
UPB_INLINE envoy_api_v2_core_TransportSocket_config_type_oneofcases envoy_api_v2_core_TransportSocket_config_type_case(const envoy_api_v2_core_TransportSocket* msg) { return (envoy_api_v2_core_TransportSocket_config_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); }
|
796
|
-
|
797
|
-
UPB_INLINE upb_strview envoy_api_v2_core_TransportSocket_name(const envoy_api_v2_core_TransportSocket *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
798
|
-
UPB_INLINE bool envoy_api_v2_core_TransportSocket_has_config(const envoy_api_v2_core_TransportSocket *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 2; }
|
799
|
-
UPB_INLINE const struct google_protobuf_Struct* envoy_api_v2_core_TransportSocket_config(const envoy_api_v2_core_TransportSocket *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Struct*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 2, NULL); }
|
800
|
-
UPB_INLINE bool envoy_api_v2_core_TransportSocket_has_typed_config(const envoy_api_v2_core_TransportSocket *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; }
|
801
|
-
UPB_INLINE const struct google_protobuf_Any* envoy_api_v2_core_TransportSocket_typed_config(const envoy_api_v2_core_TransportSocket *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Any*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); }
|
802
|
-
|
803
|
-
UPB_INLINE void envoy_api_v2_core_TransportSocket_set_name(envoy_api_v2_core_TransportSocket *msg, upb_strview value) {
|
804
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
805
|
-
}
|
806
|
-
UPB_INLINE void envoy_api_v2_core_TransportSocket_set_config(envoy_api_v2_core_TransportSocket *msg, struct google_protobuf_Struct* value) {
|
807
|
-
UPB_WRITE_ONEOF(msg, struct google_protobuf_Struct*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 2);
|
808
|
-
}
|
809
|
-
UPB_INLINE struct google_protobuf_Struct* envoy_api_v2_core_TransportSocket_mutable_config(envoy_api_v2_core_TransportSocket *msg, upb_arena *arena) {
|
810
|
-
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_api_v2_core_TransportSocket_config(msg);
|
811
|
-
if (sub == NULL) {
|
812
|
-
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
|
813
|
-
if (!sub) return NULL;
|
814
|
-
envoy_api_v2_core_TransportSocket_set_config(msg, sub);
|
815
|
-
}
|
816
|
-
return sub;
|
817
|
-
}
|
818
|
-
UPB_INLINE void envoy_api_v2_core_TransportSocket_set_typed_config(envoy_api_v2_core_TransportSocket *msg, struct google_protobuf_Any* value) {
|
819
|
-
UPB_WRITE_ONEOF(msg, struct google_protobuf_Any*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3);
|
820
|
-
}
|
821
|
-
UPB_INLINE struct google_protobuf_Any* envoy_api_v2_core_TransportSocket_mutable_typed_config(envoy_api_v2_core_TransportSocket *msg, upb_arena *arena) {
|
822
|
-
struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_api_v2_core_TransportSocket_typed_config(msg);
|
823
|
-
if (sub == NULL) {
|
824
|
-
sub = (struct google_protobuf_Any*)_upb_msg_new(&google_protobuf_Any_msginit, arena);
|
825
|
-
if (!sub) return NULL;
|
826
|
-
envoy_api_v2_core_TransportSocket_set_typed_config(msg, sub);
|
827
|
-
}
|
828
|
-
return sub;
|
829
|
-
}
|
830
|
-
|
831
|
-
/* envoy.api.v2.core.RuntimeFractionalPercent */
|
832
|
-
|
833
|
-
UPB_INLINE envoy_api_v2_core_RuntimeFractionalPercent *envoy_api_v2_core_RuntimeFractionalPercent_new(upb_arena *arena) {
|
834
|
-
return (envoy_api_v2_core_RuntimeFractionalPercent *)_upb_msg_new(&envoy_api_v2_core_RuntimeFractionalPercent_msginit, arena);
|
835
|
-
}
|
836
|
-
UPB_INLINE envoy_api_v2_core_RuntimeFractionalPercent *envoy_api_v2_core_RuntimeFractionalPercent_parse(const char *buf, size_t size,
|
837
|
-
upb_arena *arena) {
|
838
|
-
envoy_api_v2_core_RuntimeFractionalPercent *ret = envoy_api_v2_core_RuntimeFractionalPercent_new(arena);
|
839
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_RuntimeFractionalPercent_msginit, arena)) ? ret : NULL;
|
840
|
-
}
|
841
|
-
UPB_INLINE char *envoy_api_v2_core_RuntimeFractionalPercent_serialize(const envoy_api_v2_core_RuntimeFractionalPercent *msg, upb_arena *arena, size_t *len) {
|
842
|
-
return upb_encode(msg, &envoy_api_v2_core_RuntimeFractionalPercent_msginit, arena, len);
|
843
|
-
}
|
844
|
-
|
845
|
-
UPB_INLINE bool envoy_api_v2_core_RuntimeFractionalPercent_has_default_value(const envoy_api_v2_core_RuntimeFractionalPercent *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); }
|
846
|
-
UPB_INLINE const struct envoy_type_FractionalPercent* envoy_api_v2_core_RuntimeFractionalPercent_default_value(const envoy_api_v2_core_RuntimeFractionalPercent *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_type_FractionalPercent*); }
|
847
|
-
UPB_INLINE upb_strview envoy_api_v2_core_RuntimeFractionalPercent_runtime_key(const envoy_api_v2_core_RuntimeFractionalPercent *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
848
|
-
|
849
|
-
UPB_INLINE void envoy_api_v2_core_RuntimeFractionalPercent_set_default_value(envoy_api_v2_core_RuntimeFractionalPercent *msg, struct envoy_type_FractionalPercent* value) {
|
850
|
-
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_type_FractionalPercent*) = value;
|
851
|
-
}
|
852
|
-
UPB_INLINE struct envoy_type_FractionalPercent* envoy_api_v2_core_RuntimeFractionalPercent_mutable_default_value(envoy_api_v2_core_RuntimeFractionalPercent *msg, upb_arena *arena) {
|
853
|
-
struct envoy_type_FractionalPercent* sub = (struct envoy_type_FractionalPercent*)envoy_api_v2_core_RuntimeFractionalPercent_default_value(msg);
|
854
|
-
if (sub == NULL) {
|
855
|
-
sub = (struct envoy_type_FractionalPercent*)_upb_msg_new(&envoy_type_FractionalPercent_msginit, arena);
|
856
|
-
if (!sub) return NULL;
|
857
|
-
envoy_api_v2_core_RuntimeFractionalPercent_set_default_value(msg, sub);
|
858
|
-
}
|
859
|
-
return sub;
|
860
|
-
}
|
861
|
-
UPB_INLINE void envoy_api_v2_core_RuntimeFractionalPercent_set_runtime_key(envoy_api_v2_core_RuntimeFractionalPercent *msg, upb_strview value) {
|
862
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
863
|
-
}
|
864
|
-
|
865
|
-
/* envoy.api.v2.core.ControlPlane */
|
866
|
-
|
867
|
-
UPB_INLINE envoy_api_v2_core_ControlPlane *envoy_api_v2_core_ControlPlane_new(upb_arena *arena) {
|
868
|
-
return (envoy_api_v2_core_ControlPlane *)_upb_msg_new(&envoy_api_v2_core_ControlPlane_msginit, arena);
|
869
|
-
}
|
870
|
-
UPB_INLINE envoy_api_v2_core_ControlPlane *envoy_api_v2_core_ControlPlane_parse(const char *buf, size_t size,
|
871
|
-
upb_arena *arena) {
|
872
|
-
envoy_api_v2_core_ControlPlane *ret = envoy_api_v2_core_ControlPlane_new(arena);
|
873
|
-
return (ret && upb_decode(buf, size, ret, &envoy_api_v2_core_ControlPlane_msginit, arena)) ? ret : NULL;
|
874
|
-
}
|
875
|
-
UPB_INLINE char *envoy_api_v2_core_ControlPlane_serialize(const envoy_api_v2_core_ControlPlane *msg, upb_arena *arena, size_t *len) {
|
876
|
-
return upb_encode(msg, &envoy_api_v2_core_ControlPlane_msginit, arena, len);
|
877
|
-
}
|
878
|
-
|
879
|
-
UPB_INLINE upb_strview envoy_api_v2_core_ControlPlane_identifier(const envoy_api_v2_core_ControlPlane *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
880
|
-
|
881
|
-
UPB_INLINE void envoy_api_v2_core_ControlPlane_set_identifier(envoy_api_v2_core_ControlPlane *msg, upb_strview value) {
|
882
|
-
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
883
|
-
}
|
884
|
-
|
885
|
-
#ifdef __cplusplus
|
886
|
-
} /* extern "C" */
|
887
|
-
#endif
|
888
|
-
|
889
|
-
#include "upb/port_undef.inc"
|
890
|
-
|
891
|
-
#endif /* ENVOY_API_V2_CORE_BASE_PROTO_UPB_H_ */
|