grpc 1.32.0 → 1.33.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 +175 -376
- data/include/grpc/grpc.h +0 -5
- data/include/grpc/grpc_security.h +16 -0
- data/include/grpc/impl/codegen/grpc_types.h +0 -5
- data/src/core/ext/filters/client_channel/client_channel.cc +204 -170
- data/src/core/ext/filters/client_channel/config_selector.cc +0 -4
- data/src/core/ext/filters/client_channel/config_selector.h +34 -5
- data/src/core/ext/filters/client_channel/lb_policy.h +1 -1
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +48 -35
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +7 -5
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +3 -2
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +106 -106
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +2 -2
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +9 -32
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +198 -126
- data/src/core/ext/filters/client_channel/lb_policy/xds/eds.cc +439 -249
- data/src/core/ext/filters/client_channel/lb_policy/xds/eds_drop.cc +571 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +727 -0
- data/src/core/ext/filters/client_channel/lb_policy_registry.cc +8 -1
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +553 -358
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +28 -0
- data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +8 -39
- data/src/core/ext/filters/client_channel/resolver_result_parsing.h +4 -2
- data/src/core/ext/filters/client_channel/resolving_lb_policy.cc +44 -43
- data/src/core/ext/filters/client_channel/resolving_lb_policy.h +5 -9
- data/src/core/ext/filters/client_channel/server_address.cc +80 -0
- data/src/core/ext/filters/client_channel/server_address.h +25 -36
- data/src/core/ext/filters/client_channel/service_config.cc +16 -13
- data/src/core/ext/filters/client_channel/service_config.h +7 -4
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +2 -2
- data/src/core/ext/filters/client_channel/service_config_parser.cc +8 -6
- data/src/core/ext/filters/client_channel/service_config_parser.h +8 -5
- data/src/core/ext/filters/client_channel/subchannel_interface.h +44 -0
- data/src/core/ext/filters/message_size/message_size_filter.cc +2 -1
- data/src/core/ext/filters/message_size/message_size_filter.h +2 -1
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +17 -10
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +10 -2
- data/src/core/ext/transport/chttp2/transport/flow_control.h +10 -0
- data/src/core/ext/transport/chttp2/transport/internal.h +5 -0
- data/src/core/ext/transport/chttp2/transport/parsing.cc +16 -2
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +29 -9
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +66 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +123 -45
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +310 -53
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +17 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +45 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +1 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +16 -9
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +38 -15
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +53 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +133 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +54 -8
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +123 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +40 -16
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +114 -5
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +36 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +85 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +36 -16
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +86 -20
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +23 -6
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +54 -5
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +10 -6
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +28 -11
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +184 -57
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +504 -69
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +6 -5
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +11 -7
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +78 -26
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +236 -25
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +8 -9
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +19 -33
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +7 -3
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +16 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +65 -23
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +229 -47
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +20 -10
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +67 -4
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +3 -2
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +6 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +242 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +753 -0
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +31 -0
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +57 -0
- data/src/core/ext/upb-generated/udpa/core/v1/authority.upb.c +28 -0
- data/src/core/ext/upb-generated/udpa/core/v1/authority.upb.h +53 -0
- data/src/core/ext/upb-generated/udpa/core/v1/collection_entry.upb.c +52 -0
- data/src/core/ext/upb-generated/udpa/core/v1/collection_entry.upb.h +129 -0
- data/src/core/ext/upb-generated/udpa/core/v1/context_params.upb.c +42 -0
- data/src/core/ext/upb-generated/udpa/core/v1/context_params.upb.h +77 -0
- data/src/core/ext/upb-generated/udpa/core/v1/resource.upb.c +36 -0
- data/src/core/ext/upb-generated/udpa/core/v1/resource.upb.h +85 -0
- data/src/core/ext/upb-generated/udpa/core/v1/resource_locator.upb.c +54 -0
- data/src/core/ext/upb-generated/udpa/core/v1/resource_locator.upb.h +160 -0
- data/src/core/ext/upb-generated/udpa/core/v1/resource_name.upb.c +36 -0
- data/src/core/ext/upb-generated/udpa/core/v1/resource_name.upb.h +84 -0
- data/src/core/ext/xds/certificate_provider_factory.h +59 -0
- data/src/core/ext/xds/certificate_provider_registry.cc +103 -0
- data/src/core/ext/xds/certificate_provider_registry.h +57 -0
- data/src/core/ext/xds/certificate_provider_store.h +50 -0
- data/src/core/ext/xds/google_mesh_ca_certificate_provider_factory.cc +377 -0
- data/src/core/ext/xds/google_mesh_ca_certificate_provider_factory.h +102 -0
- data/src/core/ext/xds/xds_api.cc +301 -93
- data/src/core/ext/xds/xds_api.h +129 -92
- data/src/core/ext/xds/xds_channel_args.h +6 -3
- data/src/core/ext/xds/xds_client.cc +498 -410
- data/src/core/ext/xds/xds_client.h +105 -51
- data/src/core/ext/xds/xds_client_stats.cc +18 -12
- data/src/core/ext/xds/xds_client_stats.h +33 -5
- data/src/core/lib/channel/channel_args.h +0 -1
- data/src/core/lib/channel/channelz.cc +10 -45
- data/src/core/lib/channel/channelz.h +11 -19
- data/src/core/lib/channel/channelz_registry.cc +12 -11
- data/src/core/lib/channel/channelz_registry.h +3 -0
- data/src/core/lib/gpr/time_precise.cc +2 -0
- data/src/core/lib/gpr/time_precise.h +6 -2
- data/src/core/lib/gprpp/dual_ref_counted.h +336 -0
- data/src/core/lib/gprpp/ref_counted.h +51 -22
- data/src/core/lib/gprpp/ref_counted_ptr.h +153 -0
- data/src/core/lib/iomgr/endpoint_cfstream.cc +9 -5
- data/src/core/lib/iomgr/exec_ctx.h +10 -8
- data/src/core/lib/json/json_util.cc +58 -0
- data/src/core/lib/json/json_util.h +37 -0
- data/src/core/lib/security/certificate_provider.h +60 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +321 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.h +214 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +45 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.h +51 -0
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +6 -10
- data/src/core/lib/security/security_connector/ssl_utils.h +5 -0
- data/src/core/lib/surface/channel.cc +9 -31
- data/src/core/lib/surface/channel.h +6 -1
- data/src/core/lib/surface/init.cc +26 -9
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/bdp_estimator.h +2 -1
- data/src/core/lib/transport/connectivity_state.h +2 -2
- data/src/core/lib/transport/metadata.cc +11 -1
- data/src/core/plugin_registry/grpc_plugin_registry.cc +35 -20
- data/src/core/tsi/ssl_transport_security.cc +2 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +2 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +3 -3
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/boringssl-with-bazel/err_data.c +465 -463
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +0 -6
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +9 -43
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa_asn1.c +55 -4
- data/third_party/boringssl-with-bazel/src/crypto/dsa/internal.h +34 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_dsa_asn1.c +6 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digest.c +2 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/internal.h +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa.c +30 -10
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +10 -15
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +98 -11
- data/third_party/boringssl-with-bazel/src/crypto/hpke/internal.h +51 -6
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/internal.h +44 -2
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +221 -49
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +64 -20
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_strex.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/algorithm.c +0 -8
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_crl.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +7 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_ext.c +21 -18
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_obj.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_set.c +24 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_txt.c +67 -67
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +29 -35
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509cset.c +13 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509name.c +9 -8
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_all.c +10 -10
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_name.c +28 -40
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +3 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/ext_dat.h +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +7 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_genn.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_info.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +55 -8
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +0 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +6 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/crypto.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/dh.h +12 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/digest.h +9 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +4 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +9 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/trust_token.h +26 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +188 -78
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +52 -43
- data/third_party/boringssl-with-bazel/src/ssl/handshake.cc +18 -18
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +2 -3
- data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +1 -1
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +9 -9
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cipher.cc +8 -9
- data/third_party/boringssl-with-bazel/src/ssl/tls13_both.cc +1 -2
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +4 -8
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +2 -2
- metadata +72 -42
- data/src/core/ext/filters/client_channel/lb_policy/xds/lrs.cc +0 -537
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_routing.cc +0 -1141
- data/src/core/ext/upb-generated/gogoproto/gogo.upb.c +0 -17
- data/src/core/ext/upb-generated/gogoproto/gogo.upb.h +0 -29
- data/src/core/ext/xds/xds_channel.h +0 -46
- data/src/core/ext/xds/xds_channel_secure.cc +0 -103
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pku.c +0 -110
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_sxnet.c +0 -274
@@ -0,0 +1,36 @@
|
|
1
|
+
/* This file was generated by upbc (the upb compiler) from the input
|
2
|
+
* file:
|
3
|
+
*
|
4
|
+
* envoy/config/core/v3/substitution_format_string.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/config/core/v3/substitution_format_string.upb.h"
|
12
|
+
#include "google/protobuf/struct.upb.h"
|
13
|
+
#include "udpa/annotations/status.upb.h"
|
14
|
+
#include "validate/validate.upb.h"
|
15
|
+
|
16
|
+
#include "upb/port_def.inc"
|
17
|
+
|
18
|
+
static const upb_msglayout *const envoy_config_core_v3_SubstitutionFormatString_submsgs[1] = {
|
19
|
+
&google_protobuf_Struct_msginit,
|
20
|
+
};
|
21
|
+
|
22
|
+
static const upb_msglayout_field envoy_config_core_v3_SubstitutionFormatString__fields[4] = {
|
23
|
+
{1, UPB_SIZE(12, 24), UPB_SIZE(-21, -41), 0, 9, 1},
|
24
|
+
{2, UPB_SIZE(12, 24), UPB_SIZE(-21, -41), 0, 11, 1},
|
25
|
+
{3, UPB_SIZE(0, 0), 0, 0, 8, 1},
|
26
|
+
{4, UPB_SIZE(4, 8), 0, 0, 9, 1},
|
27
|
+
};
|
28
|
+
|
29
|
+
const upb_msglayout envoy_config_core_v3_SubstitutionFormatString_msginit = {
|
30
|
+
&envoy_config_core_v3_SubstitutionFormatString_submsgs[0],
|
31
|
+
&envoy_config_core_v3_SubstitutionFormatString__fields[0],
|
32
|
+
UPB_SIZE(24, 48), 4, false,
|
33
|
+
};
|
34
|
+
|
35
|
+
#include "upb/port_undef.inc"
|
36
|
+
|
@@ -0,0 +1,85 @@
|
|
1
|
+
/* This file was generated by upbc (the upb compiler) from the input
|
2
|
+
* file:
|
3
|
+
*
|
4
|
+
* envoy/config/core/v3/substitution_format_string.proto
|
5
|
+
*
|
6
|
+
* Do not edit -- your changes will be discarded when the file is
|
7
|
+
* regenerated. */
|
8
|
+
|
9
|
+
#ifndef ENVOY_CONFIG_CORE_V3_SUBSTITUTION_FORMAT_STRING_PROTO_UPB_H_
|
10
|
+
#define ENVOY_CONFIG_CORE_V3_SUBSTITUTION_FORMAT_STRING_PROTO_UPB_H_
|
11
|
+
|
12
|
+
#include "upb/msg.h"
|
13
|
+
#include "upb/decode.h"
|
14
|
+
#include "upb/encode.h"
|
15
|
+
|
16
|
+
#include "upb/port_def.inc"
|
17
|
+
|
18
|
+
#ifdef __cplusplus
|
19
|
+
extern "C" {
|
20
|
+
#endif
|
21
|
+
|
22
|
+
struct envoy_config_core_v3_SubstitutionFormatString;
|
23
|
+
typedef struct envoy_config_core_v3_SubstitutionFormatString envoy_config_core_v3_SubstitutionFormatString;
|
24
|
+
extern const upb_msglayout envoy_config_core_v3_SubstitutionFormatString_msginit;
|
25
|
+
struct google_protobuf_Struct;
|
26
|
+
extern const upb_msglayout google_protobuf_Struct_msginit;
|
27
|
+
|
28
|
+
|
29
|
+
/* envoy.config.core.v3.SubstitutionFormatString */
|
30
|
+
|
31
|
+
UPB_INLINE envoy_config_core_v3_SubstitutionFormatString *envoy_config_core_v3_SubstitutionFormatString_new(upb_arena *arena) {
|
32
|
+
return (envoy_config_core_v3_SubstitutionFormatString *)_upb_msg_new(&envoy_config_core_v3_SubstitutionFormatString_msginit, arena);
|
33
|
+
}
|
34
|
+
UPB_INLINE envoy_config_core_v3_SubstitutionFormatString *envoy_config_core_v3_SubstitutionFormatString_parse(const char *buf, size_t size,
|
35
|
+
upb_arena *arena) {
|
36
|
+
envoy_config_core_v3_SubstitutionFormatString *ret = envoy_config_core_v3_SubstitutionFormatString_new(arena);
|
37
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_SubstitutionFormatString_msginit, arena)) ? ret : NULL;
|
38
|
+
}
|
39
|
+
UPB_INLINE char *envoy_config_core_v3_SubstitutionFormatString_serialize(const envoy_config_core_v3_SubstitutionFormatString *msg, upb_arena *arena, size_t *len) {
|
40
|
+
return upb_encode(msg, &envoy_config_core_v3_SubstitutionFormatString_msginit, arena, len);
|
41
|
+
}
|
42
|
+
|
43
|
+
typedef enum {
|
44
|
+
envoy_config_core_v3_SubstitutionFormatString_format_text_format = 1,
|
45
|
+
envoy_config_core_v3_SubstitutionFormatString_format_json_format = 2,
|
46
|
+
envoy_config_core_v3_SubstitutionFormatString_format_NOT_SET = 0
|
47
|
+
} envoy_config_core_v3_SubstitutionFormatString_format_oneofcases;
|
48
|
+
UPB_INLINE envoy_config_core_v3_SubstitutionFormatString_format_oneofcases envoy_config_core_v3_SubstitutionFormatString_format_case(const envoy_config_core_v3_SubstitutionFormatString* msg) { return (envoy_config_core_v3_SubstitutionFormatString_format_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(20, 40), int32_t); }
|
49
|
+
|
50
|
+
UPB_INLINE bool envoy_config_core_v3_SubstitutionFormatString_has_text_format(const envoy_config_core_v3_SubstitutionFormatString *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 1; }
|
51
|
+
UPB_INLINE upb_strview envoy_config_core_v3_SubstitutionFormatString_text_format(const envoy_config_core_v3_SubstitutionFormatString *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(12, 24), UPB_SIZE(20, 40), 1, upb_strview_make("", strlen(""))); }
|
52
|
+
UPB_INLINE bool envoy_config_core_v3_SubstitutionFormatString_has_json_format(const envoy_config_core_v3_SubstitutionFormatString *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 2; }
|
53
|
+
UPB_INLINE const struct google_protobuf_Struct* envoy_config_core_v3_SubstitutionFormatString_json_format(const envoy_config_core_v3_SubstitutionFormatString *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Struct*, UPB_SIZE(12, 24), UPB_SIZE(20, 40), 2, NULL); }
|
54
|
+
UPB_INLINE bool envoy_config_core_v3_SubstitutionFormatString_omit_empty_values(const envoy_config_core_v3_SubstitutionFormatString *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool); }
|
55
|
+
UPB_INLINE upb_strview envoy_config_core_v3_SubstitutionFormatString_content_type(const envoy_config_core_v3_SubstitutionFormatString *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
|
56
|
+
|
57
|
+
UPB_INLINE void envoy_config_core_v3_SubstitutionFormatString_set_text_format(envoy_config_core_v3_SubstitutionFormatString *msg, upb_strview value) {
|
58
|
+
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(12, 24), value, UPB_SIZE(20, 40), 1);
|
59
|
+
}
|
60
|
+
UPB_INLINE void envoy_config_core_v3_SubstitutionFormatString_set_json_format(envoy_config_core_v3_SubstitutionFormatString *msg, struct google_protobuf_Struct* value) {
|
61
|
+
UPB_WRITE_ONEOF(msg, struct google_protobuf_Struct*, UPB_SIZE(12, 24), value, UPB_SIZE(20, 40), 2);
|
62
|
+
}
|
63
|
+
UPB_INLINE struct google_protobuf_Struct* envoy_config_core_v3_SubstitutionFormatString_mutable_json_format(envoy_config_core_v3_SubstitutionFormatString *msg, upb_arena *arena) {
|
64
|
+
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_config_core_v3_SubstitutionFormatString_json_format(msg);
|
65
|
+
if (sub == NULL) {
|
66
|
+
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena);
|
67
|
+
if (!sub) return NULL;
|
68
|
+
envoy_config_core_v3_SubstitutionFormatString_set_json_format(msg, sub);
|
69
|
+
}
|
70
|
+
return sub;
|
71
|
+
}
|
72
|
+
UPB_INLINE void envoy_config_core_v3_SubstitutionFormatString_set_omit_empty_values(envoy_config_core_v3_SubstitutionFormatString *msg, bool value) {
|
73
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = value;
|
74
|
+
}
|
75
|
+
UPB_INLINE void envoy_config_core_v3_SubstitutionFormatString_set_content_type(envoy_config_core_v3_SubstitutionFormatString *msg, upb_strview value) {
|
76
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
|
77
|
+
}
|
78
|
+
|
79
|
+
#ifdef __cplusplus
|
80
|
+
} /* extern "C" */
|
81
|
+
#endif
|
82
|
+
|
83
|
+
#include "upb/port_undef.inc"
|
84
|
+
|
85
|
+
#endif /* ENVOY_CONFIG_CORE_V3_SUBSTITUTION_FORMAT_STRING_PROTO_UPB_H_ */
|
@@ -12,6 +12,7 @@
|
|
12
12
|
#include "envoy/config/accesslog/v3/accesslog.upb.h"
|
13
13
|
#include "envoy/config/core/v3/address.upb.h"
|
14
14
|
#include "envoy/config/core/v3/base.upb.h"
|
15
|
+
#include "envoy/config/core/v3/extension.upb.h"
|
15
16
|
#include "envoy/config/core/v3/socket_option.upb.h"
|
16
17
|
#include "envoy/config/listener/v3/api_listener.upb.h"
|
17
18
|
#include "envoy/config/listener/v3/listener_components.upb.h"
|
@@ -19,17 +20,34 @@
|
|
19
20
|
#include "google/api/annotations.upb.h"
|
20
21
|
#include "google/protobuf/duration.upb.h"
|
21
22
|
#include "google/protobuf/wrappers.upb.h"
|
23
|
+
#include "udpa/core/v1/collection_entry.upb.h"
|
24
|
+
#include "udpa/annotations/security.upb.h"
|
22
25
|
#include "udpa/annotations/status.upb.h"
|
23
26
|
#include "udpa/annotations/versioning.upb.h"
|
24
27
|
#include "validate/validate.upb.h"
|
25
28
|
|
26
29
|
#include "upb/port_def.inc"
|
27
30
|
|
28
|
-
static const upb_msglayout *const
|
31
|
+
static const upb_msglayout *const envoy_config_listener_v3_ListenerCollection_submsgs[1] = {
|
32
|
+
&udpa_core_v1_CollectionEntry_msginit,
|
33
|
+
};
|
34
|
+
|
35
|
+
static const upb_msglayout_field envoy_config_listener_v3_ListenerCollection__fields[1] = {
|
36
|
+
{1, UPB_SIZE(0, 0), 0, 0, 11, 3},
|
37
|
+
};
|
38
|
+
|
39
|
+
const upb_msglayout envoy_config_listener_v3_ListenerCollection_msginit = {
|
40
|
+
&envoy_config_listener_v3_ListenerCollection_submsgs[0],
|
41
|
+
&envoy_config_listener_v3_ListenerCollection__fields[0],
|
42
|
+
UPB_SIZE(4, 8), 1, false,
|
43
|
+
};
|
44
|
+
|
45
|
+
static const upb_msglayout *const envoy_config_listener_v3_Listener_submsgs[17] = {
|
29
46
|
&envoy_config_accesslog_v3_AccessLog_msginit,
|
30
47
|
&envoy_config_core_v3_Address_msginit,
|
31
48
|
&envoy_config_core_v3_Metadata_msginit,
|
32
49
|
&envoy_config_core_v3_SocketOption_msginit,
|
50
|
+
&envoy_config_core_v3_TypedExtensionConfig_msginit,
|
33
51
|
&envoy_config_listener_v3_ApiListener_msginit,
|
34
52
|
&envoy_config_listener_v3_FilterChain_msginit,
|
35
53
|
&envoy_config_listener_v3_Listener_ConnectionBalanceConfig_msginit,
|
@@ -41,33 +59,35 @@ static const upb_msglayout *const envoy_config_listener_v3_Listener_submsgs[15]
|
|
41
59
|
&google_protobuf_UInt32Value_msginit,
|
42
60
|
};
|
43
61
|
|
44
|
-
static const upb_msglayout_field envoy_config_listener_v3_Listener__fields[
|
62
|
+
static const upb_msglayout_field envoy_config_listener_v3_Listener__fields[22] = {
|
45
63
|
{1, UPB_SIZE(20, 24), 0, 0, 9, 1},
|
46
64
|
{2, UPB_SIZE(28, 40), 0, 1, 11, 1},
|
47
|
-
{3, UPB_SIZE(
|
48
|
-
{5, UPB_SIZE(32, 48), 0,
|
65
|
+
{3, UPB_SIZE(80, 144), 0, 6, 11, 3},
|
66
|
+
{5, UPB_SIZE(32, 48), 0, 13, 11, 1},
|
49
67
|
{6, UPB_SIZE(36, 56), 0, 2, 11, 1},
|
50
|
-
{7, UPB_SIZE(40, 64), 0,
|
68
|
+
{7, UPB_SIZE(40, 64), 0, 8, 11, 1},
|
51
69
|
{8, UPB_SIZE(0, 0), 0, 0, 14, 1},
|
52
|
-
{9, UPB_SIZE(
|
53
|
-
{10, UPB_SIZE(44, 72), 0,
|
54
|
-
{11, UPB_SIZE(48, 80), 0,
|
55
|
-
{12, UPB_SIZE(52, 88), 0,
|
56
|
-
{13, UPB_SIZE(
|
57
|
-
{15, UPB_SIZE(56, 96), 0,
|
70
|
+
{9, UPB_SIZE(84, 152), 0, 9, 11, 3},
|
71
|
+
{10, UPB_SIZE(44, 72), 0, 11, 11, 1},
|
72
|
+
{11, UPB_SIZE(48, 80), 0, 11, 11, 1},
|
73
|
+
{12, UPB_SIZE(52, 88), 0, 13, 11, 1},
|
74
|
+
{13, UPB_SIZE(88, 160), 0, 3, 11, 3},
|
75
|
+
{15, UPB_SIZE(56, 96), 0, 12, 11, 1},
|
58
76
|
{16, UPB_SIZE(8, 8), 0, 0, 14, 1},
|
59
77
|
{17, UPB_SIZE(16, 16), 0, 0, 8, 1},
|
60
|
-
{18, UPB_SIZE(60, 104), 0,
|
61
|
-
{19, UPB_SIZE(64, 112), 0,
|
62
|
-
{20, UPB_SIZE(68, 120), 0,
|
78
|
+
{18, UPB_SIZE(60, 104), 0, 10, 11, 1},
|
79
|
+
{19, UPB_SIZE(64, 112), 0, 5, 11, 1},
|
80
|
+
{20, UPB_SIZE(68, 120), 0, 7, 11, 1},
|
63
81
|
{21, UPB_SIZE(17, 17), 0, 0, 8, 1},
|
64
|
-
{22, UPB_SIZE(
|
82
|
+
{22, UPB_SIZE(92, 168), 0, 0, 11, 3},
|
83
|
+
{23, UPB_SIZE(72, 128), 0, 4, 11, 1},
|
84
|
+
{24, UPB_SIZE(76, 136), 0, 13, 11, 1},
|
65
85
|
};
|
66
86
|
|
67
87
|
const upb_msglayout envoy_config_listener_v3_Listener_msginit = {
|
68
88
|
&envoy_config_listener_v3_Listener_submsgs[0],
|
69
89
|
&envoy_config_listener_v3_Listener__fields[0],
|
70
|
-
UPB_SIZE(
|
90
|
+
UPB_SIZE(96, 176), 22, false,
|
71
91
|
};
|
72
92
|
|
73
93
|
static const upb_msglayout *const envoy_config_listener_v3_Listener_DeprecatedV1_submsgs[1] = {
|
@@ -19,14 +19,17 @@
|
|
19
19
|
extern "C" {
|
20
20
|
#endif
|
21
21
|
|
22
|
+
struct envoy_config_listener_v3_ListenerCollection;
|
22
23
|
struct envoy_config_listener_v3_Listener;
|
23
24
|
struct envoy_config_listener_v3_Listener_DeprecatedV1;
|
24
25
|
struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig;
|
25
26
|
struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance;
|
27
|
+
typedef struct envoy_config_listener_v3_ListenerCollection envoy_config_listener_v3_ListenerCollection;
|
26
28
|
typedef struct envoy_config_listener_v3_Listener envoy_config_listener_v3_Listener;
|
27
29
|
typedef struct envoy_config_listener_v3_Listener_DeprecatedV1 envoy_config_listener_v3_Listener_DeprecatedV1;
|
28
30
|
typedef struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig envoy_config_listener_v3_Listener_ConnectionBalanceConfig;
|
29
31
|
typedef struct envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance envoy_config_listener_v3_Listener_ConnectionBalanceConfig_ExactBalance;
|
32
|
+
extern const upb_msglayout envoy_config_listener_v3_ListenerCollection_msginit;
|
30
33
|
extern const upb_msglayout envoy_config_listener_v3_Listener_msginit;
|
31
34
|
extern const upb_msglayout envoy_config_listener_v3_Listener_DeprecatedV1_msginit;
|
32
35
|
extern const upb_msglayout envoy_config_listener_v3_Listener_ConnectionBalanceConfig_msginit;
|
@@ -35,6 +38,7 @@ struct envoy_config_accesslog_v3_AccessLog;
|
|
35
38
|
struct envoy_config_core_v3_Address;
|
36
39
|
struct envoy_config_core_v3_Metadata;
|
37
40
|
struct envoy_config_core_v3_SocketOption;
|
41
|
+
struct envoy_config_core_v3_TypedExtensionConfig;
|
38
42
|
struct envoy_config_listener_v3_ApiListener;
|
39
43
|
struct envoy_config_listener_v3_FilterChain;
|
40
44
|
struct envoy_config_listener_v3_ListenerFilter;
|
@@ -42,10 +46,12 @@ struct envoy_config_listener_v3_UdpListenerConfig;
|
|
42
46
|
struct google_protobuf_BoolValue;
|
43
47
|
struct google_protobuf_Duration;
|
44
48
|
struct google_protobuf_UInt32Value;
|
49
|
+
struct udpa_core_v1_CollectionEntry;
|
45
50
|
extern const upb_msglayout envoy_config_accesslog_v3_AccessLog_msginit;
|
46
51
|
extern const upb_msglayout envoy_config_core_v3_Address_msginit;
|
47
52
|
extern const upb_msglayout envoy_config_core_v3_Metadata_msginit;
|
48
53
|
extern const upb_msglayout envoy_config_core_v3_SocketOption_msginit;
|
54
|
+
extern const upb_msglayout envoy_config_core_v3_TypedExtensionConfig_msginit;
|
49
55
|
extern const upb_msglayout envoy_config_listener_v3_ApiListener_msginit;
|
50
56
|
extern const upb_msglayout envoy_config_listener_v3_FilterChain_msginit;
|
51
57
|
extern const upb_msglayout envoy_config_listener_v3_ListenerFilter_msginit;
|
@@ -53,6 +59,7 @@ extern const upb_msglayout envoy_config_listener_v3_UdpListenerConfig_msginit;
|
|
53
59
|
extern const upb_msglayout google_protobuf_BoolValue_msginit;
|
54
60
|
extern const upb_msglayout google_protobuf_Duration_msginit;
|
55
61
|
extern const upb_msglayout google_protobuf_UInt32Value_msginit;
|
62
|
+
extern const upb_msglayout udpa_core_v1_CollectionEntry_msginit;
|
56
63
|
|
57
64
|
typedef enum {
|
58
65
|
envoy_config_listener_v3_Listener_DEFAULT = 0,
|
@@ -60,6 +67,37 @@ typedef enum {
|
|
60
67
|
} envoy_config_listener_v3_Listener_DrainType;
|
61
68
|
|
62
69
|
|
70
|
+
/* envoy.config.listener.v3.ListenerCollection */
|
71
|
+
|
72
|
+
UPB_INLINE envoy_config_listener_v3_ListenerCollection *envoy_config_listener_v3_ListenerCollection_new(upb_arena *arena) {
|
73
|
+
return (envoy_config_listener_v3_ListenerCollection *)_upb_msg_new(&envoy_config_listener_v3_ListenerCollection_msginit, arena);
|
74
|
+
}
|
75
|
+
UPB_INLINE envoy_config_listener_v3_ListenerCollection *envoy_config_listener_v3_ListenerCollection_parse(const char *buf, size_t size,
|
76
|
+
upb_arena *arena) {
|
77
|
+
envoy_config_listener_v3_ListenerCollection *ret = envoy_config_listener_v3_ListenerCollection_new(arena);
|
78
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_listener_v3_ListenerCollection_msginit, arena)) ? ret : NULL;
|
79
|
+
}
|
80
|
+
UPB_INLINE char *envoy_config_listener_v3_ListenerCollection_serialize(const envoy_config_listener_v3_ListenerCollection *msg, upb_arena *arena, size_t *len) {
|
81
|
+
return upb_encode(msg, &envoy_config_listener_v3_ListenerCollection_msginit, arena, len);
|
82
|
+
}
|
83
|
+
|
84
|
+
UPB_INLINE bool envoy_config_listener_v3_ListenerCollection_has_entries(const envoy_config_listener_v3_ListenerCollection *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
|
85
|
+
UPB_INLINE const struct udpa_core_v1_CollectionEntry* const* envoy_config_listener_v3_ListenerCollection_entries(const envoy_config_listener_v3_ListenerCollection *msg, size_t *len) { return (const struct udpa_core_v1_CollectionEntry* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); }
|
86
|
+
|
87
|
+
UPB_INLINE struct udpa_core_v1_CollectionEntry** envoy_config_listener_v3_ListenerCollection_mutable_entries(envoy_config_listener_v3_ListenerCollection *msg, size_t *len) {
|
88
|
+
return (struct udpa_core_v1_CollectionEntry**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len);
|
89
|
+
}
|
90
|
+
UPB_INLINE struct udpa_core_v1_CollectionEntry** envoy_config_listener_v3_ListenerCollection_resize_entries(envoy_config_listener_v3_ListenerCollection *msg, size_t len, upb_arena *arena) {
|
91
|
+
return (struct udpa_core_v1_CollectionEntry**)_upb_array_resize_accessor(msg, UPB_SIZE(0, 0), len, UPB_TYPE_MESSAGE, arena);
|
92
|
+
}
|
93
|
+
UPB_INLINE struct udpa_core_v1_CollectionEntry* envoy_config_listener_v3_ListenerCollection_add_entries(envoy_config_listener_v3_ListenerCollection *msg, upb_arena *arena) {
|
94
|
+
struct udpa_core_v1_CollectionEntry* sub = (struct udpa_core_v1_CollectionEntry*)_upb_msg_new(&udpa_core_v1_CollectionEntry_msginit, arena);
|
95
|
+
bool ok = _upb_array_append_accessor(
|
96
|
+
msg, UPB_SIZE(0, 0), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
97
|
+
if (!ok) return NULL;
|
98
|
+
return sub;
|
99
|
+
}
|
100
|
+
|
63
101
|
/* envoy.config.listener.v3.Listener */
|
64
102
|
|
65
103
|
UPB_INLINE envoy_config_listener_v3_Listener *envoy_config_listener_v3_Listener_new(upb_arena *arena) {
|
@@ -77,8 +115,8 @@ UPB_INLINE char *envoy_config_listener_v3_Listener_serialize(const envoy_config_
|
|
77
115
|
UPB_INLINE upb_strview envoy_config_listener_v3_Listener_name(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 24), upb_strview); }
|
78
116
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_address(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 40)); }
|
79
117
|
UPB_INLINE const struct envoy_config_core_v3_Address* envoy_config_listener_v3_Listener_address(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 40), const struct envoy_config_core_v3_Address*); }
|
80
|
-
UPB_INLINE bool envoy_config_listener_v3_Listener_has_filter_chains(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(
|
81
|
-
UPB_INLINE const struct envoy_config_listener_v3_FilterChain* const* envoy_config_listener_v3_Listener_filter_chains(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_listener_v3_FilterChain* const*)_upb_array_accessor(msg, UPB_SIZE(
|
118
|
+
UPB_INLINE bool envoy_config_listener_v3_Listener_has_filter_chains(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(80, 144)); }
|
119
|
+
UPB_INLINE const struct envoy_config_listener_v3_FilterChain* const* envoy_config_listener_v3_Listener_filter_chains(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_listener_v3_FilterChain* const*)_upb_array_accessor(msg, UPB_SIZE(80, 144), len); }
|
82
120
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_per_connection_buffer_limit_bytes(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(32, 48)); }
|
83
121
|
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_per_connection_buffer_limit_bytes(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 48), const struct google_protobuf_UInt32Value*); }
|
84
122
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_metadata(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(36, 56)); }
|
@@ -86,16 +124,16 @@ UPB_INLINE const struct envoy_config_core_v3_Metadata* envoy_config_listener_v3_
|
|
86
124
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_deprecated_v1(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(40, 64)); }
|
87
125
|
UPB_INLINE const envoy_config_listener_v3_Listener_DeprecatedV1* envoy_config_listener_v3_Listener_deprecated_v1(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 64), const envoy_config_listener_v3_Listener_DeprecatedV1*); }
|
88
126
|
UPB_INLINE int32_t envoy_config_listener_v3_Listener_drain_type(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); }
|
89
|
-
UPB_INLINE bool envoy_config_listener_v3_Listener_has_listener_filters(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(
|
90
|
-
UPB_INLINE const struct envoy_config_listener_v3_ListenerFilter* const* envoy_config_listener_v3_Listener_listener_filters(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_listener_v3_ListenerFilter* const*)_upb_array_accessor(msg, UPB_SIZE(
|
127
|
+
UPB_INLINE bool envoy_config_listener_v3_Listener_has_listener_filters(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(84, 152)); }
|
128
|
+
UPB_INLINE const struct envoy_config_listener_v3_ListenerFilter* const* envoy_config_listener_v3_Listener_listener_filters(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_listener_v3_ListenerFilter* const*)_upb_array_accessor(msg, UPB_SIZE(84, 152), len); }
|
91
129
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_transparent(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(44, 72)); }
|
92
130
|
UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_transparent(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(44, 72), const struct google_protobuf_BoolValue*); }
|
93
131
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_freebind(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(48, 80)); }
|
94
132
|
UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_listener_v3_Listener_freebind(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 80), const struct google_protobuf_BoolValue*); }
|
95
133
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_tcp_fast_open_queue_length(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(52, 88)); }
|
96
134
|
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_tcp_fast_open_queue_length(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(52, 88), const struct google_protobuf_UInt32Value*); }
|
97
|
-
UPB_INLINE bool envoy_config_listener_v3_Listener_has_socket_options(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(
|
98
|
-
UPB_INLINE const struct envoy_config_core_v3_SocketOption* const* envoy_config_listener_v3_Listener_socket_options(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_core_v3_SocketOption* const*)_upb_array_accessor(msg, UPB_SIZE(
|
135
|
+
UPB_INLINE bool envoy_config_listener_v3_Listener_has_socket_options(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(88, 160)); }
|
136
|
+
UPB_INLINE const struct envoy_config_core_v3_SocketOption* const* envoy_config_listener_v3_Listener_socket_options(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_core_v3_SocketOption* const*)_upb_array_accessor(msg, UPB_SIZE(88, 160), len); }
|
99
137
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_listener_filters_timeout(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(56, 96)); }
|
100
138
|
UPB_INLINE const struct google_protobuf_Duration* envoy_config_listener_v3_Listener_listener_filters_timeout(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(56, 96), const struct google_protobuf_Duration*); }
|
101
139
|
UPB_INLINE int32_t envoy_config_listener_v3_Listener_traffic_direction(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
|
@@ -107,8 +145,12 @@ UPB_INLINE const struct envoy_config_listener_v3_ApiListener* envoy_config_liste
|
|
107
145
|
UPB_INLINE bool envoy_config_listener_v3_Listener_has_connection_balance_config(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(68, 120)); }
|
108
146
|
UPB_INLINE const envoy_config_listener_v3_Listener_ConnectionBalanceConfig* envoy_config_listener_v3_Listener_connection_balance_config(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(68, 120), const envoy_config_listener_v3_Listener_ConnectionBalanceConfig*); }
|
109
147
|
UPB_INLINE bool envoy_config_listener_v3_Listener_reuse_port(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(17, 17), bool); }
|
110
|
-
UPB_INLINE bool envoy_config_listener_v3_Listener_has_access_log(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(
|
111
|
-
UPB_INLINE const struct envoy_config_accesslog_v3_AccessLog* const* envoy_config_listener_v3_Listener_access_log(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_accesslog_v3_AccessLog* const*)_upb_array_accessor(msg, UPB_SIZE(
|
148
|
+
UPB_INLINE bool envoy_config_listener_v3_Listener_has_access_log(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(92, 168)); }
|
149
|
+
UPB_INLINE const struct envoy_config_accesslog_v3_AccessLog* const* envoy_config_listener_v3_Listener_access_log(const envoy_config_listener_v3_Listener *msg, size_t *len) { return (const struct envoy_config_accesslog_v3_AccessLog* const*)_upb_array_accessor(msg, UPB_SIZE(92, 168), len); }
|
150
|
+
UPB_INLINE bool envoy_config_listener_v3_Listener_has_udp_writer_config(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(72, 128)); }
|
151
|
+
UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_listener_v3_Listener_udp_writer_config(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(72, 128), const struct envoy_config_core_v3_TypedExtensionConfig*); }
|
152
|
+
UPB_INLINE bool envoy_config_listener_v3_Listener_has_tcp_backlog_size(const envoy_config_listener_v3_Listener *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(76, 136)); }
|
153
|
+
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_tcp_backlog_size(const envoy_config_listener_v3_Listener *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(76, 136), const struct google_protobuf_UInt32Value*); }
|
112
154
|
|
113
155
|
UPB_INLINE void envoy_config_listener_v3_Listener_set_name(envoy_config_listener_v3_Listener *msg, upb_strview value) {
|
114
156
|
*UPB_PTR_AT(msg, UPB_SIZE(20, 24), upb_strview) = value;
|
@@ -126,15 +168,15 @@ UPB_INLINE struct envoy_config_core_v3_Address* envoy_config_listener_v3_Listene
|
|
126
168
|
return sub;
|
127
169
|
}
|
128
170
|
UPB_INLINE struct envoy_config_listener_v3_FilterChain** envoy_config_listener_v3_Listener_mutable_filter_chains(envoy_config_listener_v3_Listener *msg, size_t *len) {
|
129
|
-
return (struct envoy_config_listener_v3_FilterChain**)_upb_array_mutable_accessor(msg, UPB_SIZE(
|
171
|
+
return (struct envoy_config_listener_v3_FilterChain**)_upb_array_mutable_accessor(msg, UPB_SIZE(80, 144), len);
|
130
172
|
}
|
131
173
|
UPB_INLINE struct envoy_config_listener_v3_FilterChain** envoy_config_listener_v3_Listener_resize_filter_chains(envoy_config_listener_v3_Listener *msg, size_t len, upb_arena *arena) {
|
132
|
-
return (struct envoy_config_listener_v3_FilterChain**)_upb_array_resize_accessor(msg, UPB_SIZE(
|
174
|
+
return (struct envoy_config_listener_v3_FilterChain**)_upb_array_resize_accessor(msg, UPB_SIZE(80, 144), len, UPB_TYPE_MESSAGE, arena);
|
133
175
|
}
|
134
176
|
UPB_INLINE struct envoy_config_listener_v3_FilterChain* envoy_config_listener_v3_Listener_add_filter_chains(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
|
135
177
|
struct envoy_config_listener_v3_FilterChain* sub = (struct envoy_config_listener_v3_FilterChain*)_upb_msg_new(&envoy_config_listener_v3_FilterChain_msginit, arena);
|
136
178
|
bool ok = _upb_array_append_accessor(
|
137
|
-
msg, UPB_SIZE(
|
179
|
+
msg, UPB_SIZE(80, 144), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
138
180
|
if (!ok) return NULL;
|
139
181
|
return sub;
|
140
182
|
}
|
@@ -178,15 +220,15 @@ UPB_INLINE void envoy_config_listener_v3_Listener_set_drain_type(envoy_config_li
|
|
178
220
|
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value;
|
179
221
|
}
|
180
222
|
UPB_INLINE struct envoy_config_listener_v3_ListenerFilter** envoy_config_listener_v3_Listener_mutable_listener_filters(envoy_config_listener_v3_Listener *msg, size_t *len) {
|
181
|
-
return (struct envoy_config_listener_v3_ListenerFilter**)_upb_array_mutable_accessor(msg, UPB_SIZE(
|
223
|
+
return (struct envoy_config_listener_v3_ListenerFilter**)_upb_array_mutable_accessor(msg, UPB_SIZE(84, 152), len);
|
182
224
|
}
|
183
225
|
UPB_INLINE struct envoy_config_listener_v3_ListenerFilter** envoy_config_listener_v3_Listener_resize_listener_filters(envoy_config_listener_v3_Listener *msg, size_t len, upb_arena *arena) {
|
184
|
-
return (struct envoy_config_listener_v3_ListenerFilter**)_upb_array_resize_accessor(msg, UPB_SIZE(
|
226
|
+
return (struct envoy_config_listener_v3_ListenerFilter**)_upb_array_resize_accessor(msg, UPB_SIZE(84, 152), len, UPB_TYPE_MESSAGE, arena);
|
185
227
|
}
|
186
228
|
UPB_INLINE struct envoy_config_listener_v3_ListenerFilter* envoy_config_listener_v3_Listener_add_listener_filters(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
|
187
229
|
struct envoy_config_listener_v3_ListenerFilter* sub = (struct envoy_config_listener_v3_ListenerFilter*)_upb_msg_new(&envoy_config_listener_v3_ListenerFilter_msginit, arena);
|
188
230
|
bool ok = _upb_array_append_accessor(
|
189
|
-
msg, UPB_SIZE(
|
231
|
+
msg, UPB_SIZE(84, 152), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
190
232
|
if (!ok) return NULL;
|
191
233
|
return sub;
|
192
234
|
}
|
@@ -227,15 +269,15 @@ UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener
|
|
227
269
|
return sub;
|
228
270
|
}
|
229
271
|
UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_listener_v3_Listener_mutable_socket_options(envoy_config_listener_v3_Listener *msg, size_t *len) {
|
230
|
-
return (struct envoy_config_core_v3_SocketOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(
|
272
|
+
return (struct envoy_config_core_v3_SocketOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(88, 160), len);
|
231
273
|
}
|
232
274
|
UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_listener_v3_Listener_resize_socket_options(envoy_config_listener_v3_Listener *msg, size_t len, upb_arena *arena) {
|
233
|
-
return (struct envoy_config_core_v3_SocketOption**)_upb_array_resize_accessor(msg, UPB_SIZE(
|
275
|
+
return (struct envoy_config_core_v3_SocketOption**)_upb_array_resize_accessor(msg, UPB_SIZE(88, 160), len, UPB_TYPE_MESSAGE, arena);
|
234
276
|
}
|
235
277
|
UPB_INLINE struct envoy_config_core_v3_SocketOption* envoy_config_listener_v3_Listener_add_socket_options(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
|
236
278
|
struct envoy_config_core_v3_SocketOption* sub = (struct envoy_config_core_v3_SocketOption*)_upb_msg_new(&envoy_config_core_v3_SocketOption_msginit, arena);
|
237
279
|
bool ok = _upb_array_append_accessor(
|
238
|
-
msg, UPB_SIZE(
|
280
|
+
msg, UPB_SIZE(88, 160), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
239
281
|
if (!ok) return NULL;
|
240
282
|
return sub;
|
241
283
|
}
|
@@ -297,18 +339,42 @@ UPB_INLINE void envoy_config_listener_v3_Listener_set_reuse_port(envoy_config_li
|
|
297
339
|
*UPB_PTR_AT(msg, UPB_SIZE(17, 17), bool) = value;
|
298
340
|
}
|
299
341
|
UPB_INLINE struct envoy_config_accesslog_v3_AccessLog** envoy_config_listener_v3_Listener_mutable_access_log(envoy_config_listener_v3_Listener *msg, size_t *len) {
|
300
|
-
return (struct envoy_config_accesslog_v3_AccessLog**)_upb_array_mutable_accessor(msg, UPB_SIZE(
|
342
|
+
return (struct envoy_config_accesslog_v3_AccessLog**)_upb_array_mutable_accessor(msg, UPB_SIZE(92, 168), len);
|
301
343
|
}
|
302
344
|
UPB_INLINE struct envoy_config_accesslog_v3_AccessLog** envoy_config_listener_v3_Listener_resize_access_log(envoy_config_listener_v3_Listener *msg, size_t len, upb_arena *arena) {
|
303
|
-
return (struct envoy_config_accesslog_v3_AccessLog**)_upb_array_resize_accessor(msg, UPB_SIZE(
|
345
|
+
return (struct envoy_config_accesslog_v3_AccessLog**)_upb_array_resize_accessor(msg, UPB_SIZE(92, 168), len, UPB_TYPE_MESSAGE, arena);
|
304
346
|
}
|
305
347
|
UPB_INLINE struct envoy_config_accesslog_v3_AccessLog* envoy_config_listener_v3_Listener_add_access_log(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
|
306
348
|
struct envoy_config_accesslog_v3_AccessLog* sub = (struct envoy_config_accesslog_v3_AccessLog*)_upb_msg_new(&envoy_config_accesslog_v3_AccessLog_msginit, arena);
|
307
349
|
bool ok = _upb_array_append_accessor(
|
308
|
-
msg, UPB_SIZE(
|
350
|
+
msg, UPB_SIZE(92, 168), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
|
309
351
|
if (!ok) return NULL;
|
310
352
|
return sub;
|
311
353
|
}
|
354
|
+
UPB_INLINE void envoy_config_listener_v3_Listener_set_udp_writer_config(envoy_config_listener_v3_Listener *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) {
|
355
|
+
*UPB_PTR_AT(msg, UPB_SIZE(72, 128), struct envoy_config_core_v3_TypedExtensionConfig*) = value;
|
356
|
+
}
|
357
|
+
UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_listener_v3_Listener_mutable_udp_writer_config(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
|
358
|
+
struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)envoy_config_listener_v3_Listener_udp_writer_config(msg);
|
359
|
+
if (sub == NULL) {
|
360
|
+
sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_msg_new(&envoy_config_core_v3_TypedExtensionConfig_msginit, arena);
|
361
|
+
if (!sub) return NULL;
|
362
|
+
envoy_config_listener_v3_Listener_set_udp_writer_config(msg, sub);
|
363
|
+
}
|
364
|
+
return sub;
|
365
|
+
}
|
366
|
+
UPB_INLINE void envoy_config_listener_v3_Listener_set_tcp_backlog_size(envoy_config_listener_v3_Listener *msg, struct google_protobuf_UInt32Value* value) {
|
367
|
+
*UPB_PTR_AT(msg, UPB_SIZE(76, 136), struct google_protobuf_UInt32Value*) = value;
|
368
|
+
}
|
369
|
+
UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_listener_v3_Listener_mutable_tcp_backlog_size(envoy_config_listener_v3_Listener *msg, upb_arena *arena) {
|
370
|
+
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_listener_v3_Listener_tcp_backlog_size(msg);
|
371
|
+
if (sub == NULL) {
|
372
|
+
sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
|
373
|
+
if (!sub) return NULL;
|
374
|
+
envoy_config_listener_v3_Listener_set_tcp_backlog_size(msg, sub);
|
375
|
+
}
|
376
|
+
return sub;
|
377
|
+
}
|
312
378
|
|
313
379
|
/* envoy.config.listener.v3.Listener.DeprecatedV1 */
|
314
380
|
|
@@ -13,6 +13,7 @@
|
|
13
13
|
#include "envoy/config/core/v3/base.upb.h"
|
14
14
|
#include "envoy/type/v3/range.upb.h"
|
15
15
|
#include "google/protobuf/any.upb.h"
|
16
|
+
#include "google/protobuf/duration.upb.h"
|
16
17
|
#include "google/protobuf/struct.upb.h"
|
17
18
|
#include "google/protobuf/wrappers.upb.h"
|
18
19
|
#include "udpa/annotations/status.upb.h"
|
@@ -60,27 +61,43 @@ const upb_msglayout envoy_config_listener_v3_FilterChainMatch_msginit = {
|
|
60
61
|
UPB_SIZE(56, 96), 10, false,
|
61
62
|
};
|
62
63
|
|
63
|
-
static const upb_msglayout *const envoy_config_listener_v3_FilterChain_submsgs[
|
64
|
+
static const upb_msglayout *const envoy_config_listener_v3_FilterChain_submsgs[6] = {
|
64
65
|
&envoy_config_core_v3_Metadata_msginit,
|
65
66
|
&envoy_config_core_v3_TransportSocket_msginit,
|
66
67
|
&envoy_config_listener_v3_Filter_msginit,
|
68
|
+
&envoy_config_listener_v3_FilterChain_OnDemandConfiguration_msginit,
|
67
69
|
&envoy_config_listener_v3_FilterChainMatch_msginit,
|
68
70
|
&google_protobuf_BoolValue_msginit,
|
69
71
|
};
|
70
72
|
|
71
|
-
static const upb_msglayout_field envoy_config_listener_v3_FilterChain__fields[
|
72
|
-
{1, UPB_SIZE(8, 16), 0,
|
73
|
-
{3, UPB_SIZE(
|
74
|
-
{4, UPB_SIZE(12, 24), 0,
|
73
|
+
static const upb_msglayout_field envoy_config_listener_v3_FilterChain__fields[7] = {
|
74
|
+
{1, UPB_SIZE(8, 16), 0, 4, 11, 1},
|
75
|
+
{3, UPB_SIZE(28, 56), 0, 2, 11, 3},
|
76
|
+
{4, UPB_SIZE(12, 24), 0, 5, 11, 1},
|
75
77
|
{5, UPB_SIZE(16, 32), 0, 0, 11, 1},
|
76
78
|
{6, UPB_SIZE(20, 40), 0, 1, 11, 1},
|
77
79
|
{7, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
80
|
+
{8, UPB_SIZE(24, 48), 0, 3, 11, 1},
|
78
81
|
};
|
79
82
|
|
80
83
|
const upb_msglayout envoy_config_listener_v3_FilterChain_msginit = {
|
81
84
|
&envoy_config_listener_v3_FilterChain_submsgs[0],
|
82
85
|
&envoy_config_listener_v3_FilterChain__fields[0],
|
83
|
-
UPB_SIZE(32, 64),
|
86
|
+
UPB_SIZE(32, 64), 7, false,
|
87
|
+
};
|
88
|
+
|
89
|
+
static const upb_msglayout *const envoy_config_listener_v3_FilterChain_OnDemandConfiguration_submsgs[1] = {
|
90
|
+
&google_protobuf_Duration_msginit,
|
91
|
+
};
|
92
|
+
|
93
|
+
static const upb_msglayout_field envoy_config_listener_v3_FilterChain_OnDemandConfiguration__fields[1] = {
|
94
|
+
{1, UPB_SIZE(0, 0), 0, 0, 11, 1},
|
95
|
+
};
|
96
|
+
|
97
|
+
const upb_msglayout envoy_config_listener_v3_FilterChain_OnDemandConfiguration_msginit = {
|
98
|
+
&envoy_config_listener_v3_FilterChain_OnDemandConfiguration_submsgs[0],
|
99
|
+
&envoy_config_listener_v3_FilterChain_OnDemandConfiguration__fields[0],
|
100
|
+
UPB_SIZE(4, 8), 1, false,
|
84
101
|
};
|
85
102
|
|
86
103
|
static const upb_msglayout *const envoy_config_listener_v3_ListenerFilterChainMatchPredicate_submsgs[4] = {
|