grpc 1.36.0 → 1.37.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 +65 -37
- data/include/grpc/grpc.h +15 -1
- data/include/grpc/impl/codegen/port_platform.h +2 -0
- data/src/core/ext/filters/client_channel/client_channel.cc +327 -305
- data/src/core/ext/filters/client_channel/client_channel_factory.h +2 -1
- data/src/core/ext/filters/client_channel/config_selector.h +8 -0
- data/src/core/ext/filters/client_channel/dynamic_filters.cc +9 -4
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +24 -142
- data/src/core/ext/filters/client_channel/global_subchannel_pool.h +15 -10
- data/src/core/ext/filters/client_channel/lb_policy.cc +3 -0
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +23 -0
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +27 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +7 -22
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +1 -1
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +2 -2
- data/src/core/ext/filters/client_channel/local_subchannel_pool.cc +27 -67
- data/src/core/ext/filters/client_channel/local_subchannel_pool.h +10 -9
- data/src/core/ext/filters/client_channel/resolver.cc +3 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +2 -2
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +3 -1
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +5 -9
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +18 -3
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +295 -91
- data/src/core/ext/filters/client_channel/server_address.cc +3 -0
- data/src/core/ext/filters/client_channel/subchannel.cc +69 -146
- data/src/core/ext/filters/client_channel/subchannel.h +63 -95
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.cc +16 -2
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.h +10 -8
- data/src/core/ext/filters/client_idle/client_idle_filter.cc +1 -1
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +495 -0
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +39 -0
- data/src/core/ext/filters/fault_injection/service_config_parser.cc +189 -0
- data/src/core/ext/filters/fault_injection/service_config_parser.h +85 -0
- data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc +1 -1
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +1 -1
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +3 -2
- data/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc +1 -1
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +3 -2
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +457 -170
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +39 -7
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +12 -1
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +5 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/internal.h +1 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +406 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +1459 -0
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +350 -0
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +1348 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +6 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +25 -0
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +144 -0
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +488 -0
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +141 -0
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +452 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +15 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +44 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +79 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +268 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +78 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +281 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +41 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +113 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +6 -5
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +13 -9
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +93 -0
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +323 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +36 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +90 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +46 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +124 -0
- data/src/core/ext/upb-generated/udpa/type/v1/typed_struct.upb.c +33 -0
- data/src/core/ext/upb-generated/udpa/type/v1/typed_struct.upb.h +77 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +354 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +140 -0
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +383 -0
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +115 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +10 -7
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +13 -7
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +102 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +120 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +21 -20
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +130 -0
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/udpa/type/v1/typed_struct.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-generated/udpa/type/v1/typed_struct.upbdefs.h +35 -0
- data/src/core/ext/xds/xds_api.cc +1591 -279
- data/src/core/ext/xds/xds_api.h +279 -39
- data/src/core/ext/xds/xds_bootstrap.cc +21 -5
- data/src/core/ext/xds/xds_bootstrap.h +5 -1
- data/src/core/ext/xds/xds_client.cc +168 -23
- data/src/core/ext/xds/xds_client.h +26 -0
- data/src/core/ext/xds/xds_client_stats.h +2 -2
- data/src/core/ext/xds/xds_http_fault_filter.cc +226 -0
- data/src/core/ext/xds/xds_http_fault_filter.h +63 -0
- data/src/core/ext/xds/xds_http_filters.cc +114 -0
- data/src/core/ext/xds/xds_http_filters.h +130 -0
- data/src/core/ext/xds/xds_server_config_fetcher.cc +391 -126
- data/src/core/lib/channel/channel_stack.cc +12 -0
- data/src/core/lib/channel/channel_stack.h +7 -0
- data/src/core/lib/channel/channelz.cc +92 -4
- data/src/core/lib/channel/channelz.h +30 -1
- data/src/core/lib/channel/channelz_registry.cc +14 -0
- data/src/core/lib/channel/handshaker.cc +0 -39
- data/src/core/lib/channel/handshaker.h +0 -17
- data/src/core/lib/channel/status_util.cc +12 -2
- data/src/core/lib/channel/status_util.h +5 -0
- data/src/core/lib/gpr/sync_abseil.cc +3 -6
- data/src/core/lib/gpr/sync_windows.cc +2 -2
- data/src/core/lib/gprpp/atomic.h +3 -3
- data/src/core/lib/gprpp/dual_ref_counted.h +3 -3
- data/src/core/lib/gprpp/ref_counted_ptr.h +2 -0
- data/src/core/lib/gprpp/thd.h +1 -1
- data/src/core/lib/iomgr/buffer_list.h +1 -1
- data/src/core/lib/iomgr/cfstream_handle.cc +2 -2
- data/src/core/lib/iomgr/error.h +1 -1
- data/src/core/lib/iomgr/ev_apple.cc +1 -1
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +3 -3
- data/src/core/lib/iomgr/ev_posix.cc +3 -3
- data/src/core/lib/iomgr/exec_ctx.cc +6 -2
- data/src/core/lib/iomgr/resource_quota.cc +1 -1
- data/src/core/lib/iomgr/sockaddr_utils.cc +120 -0
- data/src/core/lib/iomgr/sockaddr_utils.h +25 -0
- data/src/core/lib/iomgr/tcp_posix.cc +1 -4
- data/src/core/lib/iomgr/tcp_uv.cc +2 -2
- data/src/core/lib/iomgr/timer_generic.cc +2 -2
- data/src/core/lib/iomgr/timer_manager.cc +1 -1
- data/src/core/lib/iomgr/wakeup_fd_nospecial.cc +1 -1
- data/src/core/lib/{security/authorization → matchers}/matchers.cc +8 -8
- data/src/core/lib/{security/authorization → matchers}/matchers.h +14 -12
- data/src/core/lib/security/security_connector/ssl_utils.cc +6 -4
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +6 -0
- data/src/core/lib/security/transport/security_handshaker.cc +32 -2
- data/src/core/lib/slice/slice_intern.cc +6 -7
- data/src/core/lib/surface/channel.h +3 -3
- data/src/core/lib/surface/completion_queue.cc +1 -1
- data/src/core/lib/surface/lame_client.cc +38 -19
- data/src/core/lib/surface/lame_client.h +4 -3
- data/src/core/lib/surface/server.cc +40 -33
- data/src/core/lib/surface/server.h +74 -15
- data/src/core/lib/surface/version.cc +1 -1
- data/src/core/lib/transport/metadata_batch.cc +27 -0
- data/src/core/lib/transport/metadata_batch.h +14 -0
- data/src/core/plugin_registry/grpc_plugin_registry.cc +6 -0
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +1 -4
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.h +1 -1
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +1 -3
- data/src/core/tsi/fake_transport_security.cc +10 -1
- data/src/ruby/ext/grpc/extconf.rb +9 -1
- data/src/ruby/ext/grpc/rb_channel.c +10 -1
- data/src/ruby/ext/grpc/rb_channel_credentials.c +11 -1
- data/src/ruby/ext/grpc/rb_channel_credentials.h +4 -0
- data/src/ruby/ext/grpc/rb_compression_options.c +1 -1
- data/src/ruby/ext/grpc/rb_enable_cpp.cc +1 -1
- data/src/ruby/ext/grpc/rb_grpc.c +4 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +2 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +4 -1
- data/src/ruby/ext/grpc/rb_server.c +13 -1
- data/src/ruby/ext/grpc/rb_server_credentials.c +19 -3
- data/src/ruby/ext/grpc/rb_server_credentials.h +4 -0
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +215 -0
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.h +35 -0
- data/src/ruby/ext/grpc/rb_xds_server_credentials.c +169 -0
- data/src/ruby/ext/grpc/rb_xds_server_credentials.h +35 -0
- data/src/ruby/lib/grpc/generic/client_stub.rb +4 -2
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/spec/call_spec.rb +1 -1
- data/src/ruby/spec/channel_credentials_spec.rb +32 -0
- data/src/ruby/spec/channel_spec.rb +17 -6
- data/src/ruby/spec/client_auth_spec.rb +27 -1
- data/src/ruby/spec/errors_spec.rb +1 -1
- data/src/ruby/spec/generic/active_call_spec.rb +2 -2
- data/src/ruby/spec/generic/client_stub_spec.rb +4 -4
- data/src/ruby/spec/generic/rpc_server_spec.rb +1 -1
- data/src/ruby/spec/server_credentials_spec.rb +25 -0
- data/src/ruby/spec/server_spec.rb +22 -0
- data/third_party/boringssl-with-bazel/err_data.c +255 -255
- data/third_party/boringssl-with-bazel/src/crypto/cpu-arm-linux.c +11 -2
- data/third_party/boringssl-with-bazel/src/crypto/cpu-arm.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +21 -13
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +7 -5
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +0 -28
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_attrib.c +22 -17
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +3 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +4 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cpu.h +22 -32
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +25 -9
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +0 -1
- data/third_party/boringssl-with-bazel/src/ssl/t1_lib.cc +33 -19
- data/third_party/xxhash/xxhash.h +5443 -0
- metadata +93 -49
- data/src/core/lib/security/authorization/authorization_engine.cc +0 -177
- data/src/core/lib/security/authorization/authorization_engine.h +0 -84
- data/src/core/lib/security/authorization/evaluate_args.cc +0 -148
- data/src/core/lib/security/authorization/evaluate_args.h +0 -59
- data/src/core/lib/security/authorization/mock_cel/activation.h +0 -57
- data/src/core/lib/security/authorization/mock_cel/cel_expr_builder_factory.h +0 -44
- data/src/core/lib/security/authorization/mock_cel/cel_expression.h +0 -69
- data/src/core/lib/security/authorization/mock_cel/cel_value.h +0 -99
- data/src/core/lib/security/authorization/mock_cel/evaluator_core.h +0 -67
- data/src/core/lib/security/authorization/mock_cel/flat_expr_builder.h +0 -57
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +0 -504
- data/third_party/upb/upb/json_decode.c +0 -1443
- data/third_party/upb/upb/json_decode.h +0 -23
- data/third_party/upb/upb/json_encode.c +0 -713
- data/third_party/upb/upb/json_encode.h +0 -36
@@ -172,5 +172,11 @@ const upb_msglayout envoy_config_core_v3_GrpcProtocolOptions_msginit = {
|
|
172
172
|
UPB_SIZE(8, 16), 1, false, 255,
|
173
173
|
};
|
174
174
|
|
175
|
+
const upb_msglayout envoy_config_core_v3_Http3ProtocolOptions_msginit = {
|
176
|
+
NULL,
|
177
|
+
NULL,
|
178
|
+
UPB_SIZE(0, 0), 0, false, 255,
|
179
|
+
};
|
180
|
+
|
175
181
|
#include "upb/port_undef.inc"
|
176
182
|
|
@@ -30,6 +30,7 @@ struct envoy_config_core_v3_KeepaliveSettings;
|
|
30
30
|
struct envoy_config_core_v3_Http2ProtocolOptions;
|
31
31
|
struct envoy_config_core_v3_Http2ProtocolOptions_SettingsParameter;
|
32
32
|
struct envoy_config_core_v3_GrpcProtocolOptions;
|
33
|
+
struct envoy_config_core_v3_Http3ProtocolOptions;
|
33
34
|
typedef struct envoy_config_core_v3_TcpProtocolOptions envoy_config_core_v3_TcpProtocolOptions;
|
34
35
|
typedef struct envoy_config_core_v3_UpstreamHttpProtocolOptions envoy_config_core_v3_UpstreamHttpProtocolOptions;
|
35
36
|
typedef struct envoy_config_core_v3_HttpProtocolOptions envoy_config_core_v3_HttpProtocolOptions;
|
@@ -40,6 +41,7 @@ typedef struct envoy_config_core_v3_KeepaliveSettings envoy_config_core_v3_Keepa
|
|
40
41
|
typedef struct envoy_config_core_v3_Http2ProtocolOptions envoy_config_core_v3_Http2ProtocolOptions;
|
41
42
|
typedef struct envoy_config_core_v3_Http2ProtocolOptions_SettingsParameter envoy_config_core_v3_Http2ProtocolOptions_SettingsParameter;
|
42
43
|
typedef struct envoy_config_core_v3_GrpcProtocolOptions envoy_config_core_v3_GrpcProtocolOptions;
|
44
|
+
typedef struct envoy_config_core_v3_Http3ProtocolOptions envoy_config_core_v3_Http3ProtocolOptions;
|
43
45
|
extern const upb_msglayout envoy_config_core_v3_TcpProtocolOptions_msginit;
|
44
46
|
extern const upb_msglayout envoy_config_core_v3_UpstreamHttpProtocolOptions_msginit;
|
45
47
|
extern const upb_msglayout envoy_config_core_v3_HttpProtocolOptions_msginit;
|
@@ -50,6 +52,7 @@ extern const upb_msglayout envoy_config_core_v3_KeepaliveSettings_msginit;
|
|
50
52
|
extern const upb_msglayout envoy_config_core_v3_Http2ProtocolOptions_msginit;
|
51
53
|
extern const upb_msglayout envoy_config_core_v3_Http2ProtocolOptions_SettingsParameter_msginit;
|
52
54
|
extern const upb_msglayout envoy_config_core_v3_GrpcProtocolOptions_msginit;
|
55
|
+
extern const upb_msglayout envoy_config_core_v3_Http3ProtocolOptions_msginit;
|
53
56
|
struct envoy_type_v3_Percent;
|
54
57
|
struct google_protobuf_BoolValue;
|
55
58
|
struct google_protobuf_Duration;
|
@@ -721,6 +724,28 @@ UPB_INLINE struct envoy_config_core_v3_Http2ProtocolOptions* envoy_config_core_v
|
|
721
724
|
return sub;
|
722
725
|
}
|
723
726
|
|
727
|
+
/* envoy.config.core.v3.Http3ProtocolOptions */
|
728
|
+
|
729
|
+
UPB_INLINE envoy_config_core_v3_Http3ProtocolOptions *envoy_config_core_v3_Http3ProtocolOptions_new(upb_arena *arena) {
|
730
|
+
return (envoy_config_core_v3_Http3ProtocolOptions *)_upb_msg_new(&envoy_config_core_v3_Http3ProtocolOptions_msginit, arena);
|
731
|
+
}
|
732
|
+
UPB_INLINE envoy_config_core_v3_Http3ProtocolOptions *envoy_config_core_v3_Http3ProtocolOptions_parse(const char *buf, size_t size,
|
733
|
+
upb_arena *arena) {
|
734
|
+
envoy_config_core_v3_Http3ProtocolOptions *ret = envoy_config_core_v3_Http3ProtocolOptions_new(arena);
|
735
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_core_v3_Http3ProtocolOptions_msginit, arena)) ? ret : NULL;
|
736
|
+
}
|
737
|
+
UPB_INLINE envoy_config_core_v3_Http3ProtocolOptions *envoy_config_core_v3_Http3ProtocolOptions_parse_ex(const char *buf, size_t size,
|
738
|
+
upb_arena *arena, int options) {
|
739
|
+
envoy_config_core_v3_Http3ProtocolOptions *ret = envoy_config_core_v3_Http3ProtocolOptions_new(arena);
|
740
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_core_v3_Http3ProtocolOptions_msginit, arena, options))
|
741
|
+
? ret : NULL;
|
742
|
+
}
|
743
|
+
UPB_INLINE char *envoy_config_core_v3_Http3ProtocolOptions_serialize(const envoy_config_core_v3_Http3ProtocolOptions *msg, upb_arena *arena, size_t *len) {
|
744
|
+
return upb_encode(msg, &envoy_config_core_v3_Http3ProtocolOptions_msginit, arena, len);
|
745
|
+
}
|
746
|
+
|
747
|
+
|
748
|
+
|
724
749
|
#ifdef __cplusplus
|
725
750
|
} /* extern "C" */
|
726
751
|
#endif
|
@@ -0,0 +1,144 @@
|
|
1
|
+
/* This file was generated by upbc (the upb compiler) from the input
|
2
|
+
* file:
|
3
|
+
*
|
4
|
+
* envoy/config/metrics/v3/stats.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/metrics/v3/stats.upb.h"
|
12
|
+
#include "envoy/config/core/v3/address.upb.h"
|
13
|
+
#include "envoy/type/matcher/v3/string.upb.h"
|
14
|
+
#include "google/protobuf/any.upb.h"
|
15
|
+
#include "google/protobuf/wrappers.upb.h"
|
16
|
+
#include "udpa/annotations/status.upb.h"
|
17
|
+
#include "udpa/annotations/versioning.upb.h"
|
18
|
+
#include "validate/validate.upb.h"
|
19
|
+
|
20
|
+
#include "upb/port_def.inc"
|
21
|
+
|
22
|
+
static const upb_msglayout *const envoy_config_metrics_v3_StatsSink_submsgs[1] = {
|
23
|
+
&google_protobuf_Any_msginit,
|
24
|
+
};
|
25
|
+
|
26
|
+
static const upb_msglayout_field envoy_config_metrics_v3_StatsSink__fields[2] = {
|
27
|
+
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
28
|
+
{3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, 1},
|
29
|
+
};
|
30
|
+
|
31
|
+
const upb_msglayout envoy_config_metrics_v3_StatsSink_msginit = {
|
32
|
+
&envoy_config_metrics_v3_StatsSink_submsgs[0],
|
33
|
+
&envoy_config_metrics_v3_StatsSink__fields[0],
|
34
|
+
UPB_SIZE(16, 32), 2, false, 255,
|
35
|
+
};
|
36
|
+
|
37
|
+
static const upb_msglayout *const envoy_config_metrics_v3_StatsConfig_submsgs[4] = {
|
38
|
+
&envoy_config_metrics_v3_HistogramBucketSettings_msginit,
|
39
|
+
&envoy_config_metrics_v3_StatsMatcher_msginit,
|
40
|
+
&envoy_config_metrics_v3_TagSpecifier_msginit,
|
41
|
+
&google_protobuf_BoolValue_msginit,
|
42
|
+
};
|
43
|
+
|
44
|
+
static const upb_msglayout_field envoy_config_metrics_v3_StatsConfig__fields[4] = {
|
45
|
+
{1, UPB_SIZE(12, 24), 0, 2, 11, 3},
|
46
|
+
{2, UPB_SIZE(4, 8), 1, 3, 11, 1},
|
47
|
+
{3, UPB_SIZE(8, 16), 2, 1, 11, 1},
|
48
|
+
{4, UPB_SIZE(16, 32), 0, 0, 11, 3},
|
49
|
+
};
|
50
|
+
|
51
|
+
const upb_msglayout envoy_config_metrics_v3_StatsConfig_msginit = {
|
52
|
+
&envoy_config_metrics_v3_StatsConfig_submsgs[0],
|
53
|
+
&envoy_config_metrics_v3_StatsConfig__fields[0],
|
54
|
+
UPB_SIZE(24, 40), 4, false, 255,
|
55
|
+
};
|
56
|
+
|
57
|
+
static const upb_msglayout *const envoy_config_metrics_v3_StatsMatcher_submsgs[1] = {
|
58
|
+
&envoy_type_matcher_v3_ListStringMatcher_msginit,
|
59
|
+
};
|
60
|
+
|
61
|
+
static const upb_msglayout_field envoy_config_metrics_v3_StatsMatcher__fields[3] = {
|
62
|
+
{1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 8, 1},
|
63
|
+
{2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
|
64
|
+
{3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
|
65
|
+
};
|
66
|
+
|
67
|
+
const upb_msglayout envoy_config_metrics_v3_StatsMatcher_msginit = {
|
68
|
+
&envoy_config_metrics_v3_StatsMatcher_submsgs[0],
|
69
|
+
&envoy_config_metrics_v3_StatsMatcher__fields[0],
|
70
|
+
UPB_SIZE(8, 16), 3, false, 255,
|
71
|
+
};
|
72
|
+
|
73
|
+
static const upb_msglayout_field envoy_config_metrics_v3_TagSpecifier__fields[3] = {
|
74
|
+
{1, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
75
|
+
{2, UPB_SIZE(8, 16), UPB_SIZE(-17, -33), 0, 9, 1},
|
76
|
+
{3, UPB_SIZE(8, 16), UPB_SIZE(-17, -33), 0, 9, 1},
|
77
|
+
};
|
78
|
+
|
79
|
+
const upb_msglayout envoy_config_metrics_v3_TagSpecifier_msginit = {
|
80
|
+
NULL,
|
81
|
+
&envoy_config_metrics_v3_TagSpecifier__fields[0],
|
82
|
+
UPB_SIZE(24, 48), 3, false, 255,
|
83
|
+
};
|
84
|
+
|
85
|
+
static const upb_msglayout *const envoy_config_metrics_v3_HistogramBucketSettings_submsgs[1] = {
|
86
|
+
&envoy_type_matcher_v3_StringMatcher_msginit,
|
87
|
+
};
|
88
|
+
|
89
|
+
static const upb_msglayout_field envoy_config_metrics_v3_HistogramBucketSettings__fields[2] = {
|
90
|
+
{1, UPB_SIZE(4, 8), 1, 0, 11, 1},
|
91
|
+
{2, UPB_SIZE(8, 16), 0, 0, 1, _UPB_LABEL_PACKED},
|
92
|
+
};
|
93
|
+
|
94
|
+
const upb_msglayout envoy_config_metrics_v3_HistogramBucketSettings_msginit = {
|
95
|
+
&envoy_config_metrics_v3_HistogramBucketSettings_submsgs[0],
|
96
|
+
&envoy_config_metrics_v3_HistogramBucketSettings__fields[0],
|
97
|
+
UPB_SIZE(16, 24), 2, false, 255,
|
98
|
+
};
|
99
|
+
|
100
|
+
static const upb_msglayout *const envoy_config_metrics_v3_StatsdSink_submsgs[1] = {
|
101
|
+
&envoy_config_core_v3_Address_msginit,
|
102
|
+
};
|
103
|
+
|
104
|
+
static const upb_msglayout_field envoy_config_metrics_v3_StatsdSink__fields[3] = {
|
105
|
+
{1, UPB_SIZE(8, 16), UPB_SIZE(-17, -33), 0, 11, 1},
|
106
|
+
{2, UPB_SIZE(8, 16), UPB_SIZE(-17, -33), 0, 9, 1},
|
107
|
+
{3, UPB_SIZE(0, 0), 0, 0, 9, 1},
|
108
|
+
};
|
109
|
+
|
110
|
+
const upb_msglayout envoy_config_metrics_v3_StatsdSink_msginit = {
|
111
|
+
&envoy_config_metrics_v3_StatsdSink_submsgs[0],
|
112
|
+
&envoy_config_metrics_v3_StatsdSink__fields[0],
|
113
|
+
UPB_SIZE(24, 48), 3, false, 255,
|
114
|
+
};
|
115
|
+
|
116
|
+
static const upb_msglayout *const envoy_config_metrics_v3_DogStatsdSink_submsgs[2] = {
|
117
|
+
&envoy_config_core_v3_Address_msginit,
|
118
|
+
&google_protobuf_UInt64Value_msginit,
|
119
|
+
};
|
120
|
+
|
121
|
+
static const upb_msglayout_field envoy_config_metrics_v3_DogStatsdSink__fields[3] = {
|
122
|
+
{1, UPB_SIZE(16, 32), UPB_SIZE(-21, -41), 0, 11, 1},
|
123
|
+
{3, UPB_SIZE(4, 8), 0, 0, 9, 1},
|
124
|
+
{4, UPB_SIZE(12, 24), 1, 1, 11, 1},
|
125
|
+
};
|
126
|
+
|
127
|
+
const upb_msglayout envoy_config_metrics_v3_DogStatsdSink_msginit = {
|
128
|
+
&envoy_config_metrics_v3_DogStatsdSink_submsgs[0],
|
129
|
+
&envoy_config_metrics_v3_DogStatsdSink__fields[0],
|
130
|
+
UPB_SIZE(24, 48), 3, false, 255,
|
131
|
+
};
|
132
|
+
|
133
|
+
static const upb_msglayout_field envoy_config_metrics_v3_HystrixSink__fields[1] = {
|
134
|
+
{1, UPB_SIZE(0, 0), 0, 0, 3, 1},
|
135
|
+
};
|
136
|
+
|
137
|
+
const upb_msglayout envoy_config_metrics_v3_HystrixSink_msginit = {
|
138
|
+
NULL,
|
139
|
+
&envoy_config_metrics_v3_HystrixSink__fields[0],
|
140
|
+
UPB_SIZE(8, 8), 1, false, 255,
|
141
|
+
};
|
142
|
+
|
143
|
+
#include "upb/port_undef.inc"
|
144
|
+
|
@@ -0,0 +1,488 @@
|
|
1
|
+
/* This file was generated by upbc (the upb compiler) from the input
|
2
|
+
* file:
|
3
|
+
*
|
4
|
+
* envoy/config/metrics/v3/stats.proto
|
5
|
+
*
|
6
|
+
* Do not edit -- your changes will be discarded when the file is
|
7
|
+
* regenerated. */
|
8
|
+
|
9
|
+
#ifndef ENVOY_CONFIG_METRICS_V3_STATS_PROTO_UPB_H_
|
10
|
+
#define ENVOY_CONFIG_METRICS_V3_STATS_PROTO_UPB_H_
|
11
|
+
|
12
|
+
#include "upb/msg.h"
|
13
|
+
#include "upb/decode.h"
|
14
|
+
#include "upb/decode_fast.h"
|
15
|
+
#include "upb/encode.h"
|
16
|
+
|
17
|
+
#include "upb/port_def.inc"
|
18
|
+
|
19
|
+
#ifdef __cplusplus
|
20
|
+
extern "C" {
|
21
|
+
#endif
|
22
|
+
|
23
|
+
struct envoy_config_metrics_v3_StatsSink;
|
24
|
+
struct envoy_config_metrics_v3_StatsConfig;
|
25
|
+
struct envoy_config_metrics_v3_StatsMatcher;
|
26
|
+
struct envoy_config_metrics_v3_TagSpecifier;
|
27
|
+
struct envoy_config_metrics_v3_HistogramBucketSettings;
|
28
|
+
struct envoy_config_metrics_v3_StatsdSink;
|
29
|
+
struct envoy_config_metrics_v3_DogStatsdSink;
|
30
|
+
struct envoy_config_metrics_v3_HystrixSink;
|
31
|
+
typedef struct envoy_config_metrics_v3_StatsSink envoy_config_metrics_v3_StatsSink;
|
32
|
+
typedef struct envoy_config_metrics_v3_StatsConfig envoy_config_metrics_v3_StatsConfig;
|
33
|
+
typedef struct envoy_config_metrics_v3_StatsMatcher envoy_config_metrics_v3_StatsMatcher;
|
34
|
+
typedef struct envoy_config_metrics_v3_TagSpecifier envoy_config_metrics_v3_TagSpecifier;
|
35
|
+
typedef struct envoy_config_metrics_v3_HistogramBucketSettings envoy_config_metrics_v3_HistogramBucketSettings;
|
36
|
+
typedef struct envoy_config_metrics_v3_StatsdSink envoy_config_metrics_v3_StatsdSink;
|
37
|
+
typedef struct envoy_config_metrics_v3_DogStatsdSink envoy_config_metrics_v3_DogStatsdSink;
|
38
|
+
typedef struct envoy_config_metrics_v3_HystrixSink envoy_config_metrics_v3_HystrixSink;
|
39
|
+
extern const upb_msglayout envoy_config_metrics_v3_StatsSink_msginit;
|
40
|
+
extern const upb_msglayout envoy_config_metrics_v3_StatsConfig_msginit;
|
41
|
+
extern const upb_msglayout envoy_config_metrics_v3_StatsMatcher_msginit;
|
42
|
+
extern const upb_msglayout envoy_config_metrics_v3_TagSpecifier_msginit;
|
43
|
+
extern const upb_msglayout envoy_config_metrics_v3_HistogramBucketSettings_msginit;
|
44
|
+
extern const upb_msglayout envoy_config_metrics_v3_StatsdSink_msginit;
|
45
|
+
extern const upb_msglayout envoy_config_metrics_v3_DogStatsdSink_msginit;
|
46
|
+
extern const upb_msglayout envoy_config_metrics_v3_HystrixSink_msginit;
|
47
|
+
struct envoy_config_core_v3_Address;
|
48
|
+
struct envoy_type_matcher_v3_ListStringMatcher;
|
49
|
+
struct envoy_type_matcher_v3_StringMatcher;
|
50
|
+
struct google_protobuf_Any;
|
51
|
+
struct google_protobuf_BoolValue;
|
52
|
+
struct google_protobuf_UInt64Value;
|
53
|
+
extern const upb_msglayout envoy_config_core_v3_Address_msginit;
|
54
|
+
extern const upb_msglayout envoy_type_matcher_v3_ListStringMatcher_msginit;
|
55
|
+
extern const upb_msglayout envoy_type_matcher_v3_StringMatcher_msginit;
|
56
|
+
extern const upb_msglayout google_protobuf_Any_msginit;
|
57
|
+
extern const upb_msglayout google_protobuf_BoolValue_msginit;
|
58
|
+
extern const upb_msglayout google_protobuf_UInt64Value_msginit;
|
59
|
+
|
60
|
+
|
61
|
+
/* envoy.config.metrics.v3.StatsSink */
|
62
|
+
|
63
|
+
UPB_INLINE envoy_config_metrics_v3_StatsSink *envoy_config_metrics_v3_StatsSink_new(upb_arena *arena) {
|
64
|
+
return (envoy_config_metrics_v3_StatsSink *)_upb_msg_new(&envoy_config_metrics_v3_StatsSink_msginit, arena);
|
65
|
+
}
|
66
|
+
UPB_INLINE envoy_config_metrics_v3_StatsSink *envoy_config_metrics_v3_StatsSink_parse(const char *buf, size_t size,
|
67
|
+
upb_arena *arena) {
|
68
|
+
envoy_config_metrics_v3_StatsSink *ret = envoy_config_metrics_v3_StatsSink_new(arena);
|
69
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_metrics_v3_StatsSink_msginit, arena)) ? ret : NULL;
|
70
|
+
}
|
71
|
+
UPB_INLINE envoy_config_metrics_v3_StatsSink *envoy_config_metrics_v3_StatsSink_parse_ex(const char *buf, size_t size,
|
72
|
+
upb_arena *arena, int options) {
|
73
|
+
envoy_config_metrics_v3_StatsSink *ret = envoy_config_metrics_v3_StatsSink_new(arena);
|
74
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_metrics_v3_StatsSink_msginit, arena, options))
|
75
|
+
? ret : NULL;
|
76
|
+
}
|
77
|
+
UPB_INLINE char *envoy_config_metrics_v3_StatsSink_serialize(const envoy_config_metrics_v3_StatsSink *msg, upb_arena *arena, size_t *len) {
|
78
|
+
return upb_encode(msg, &envoy_config_metrics_v3_StatsSink_msginit, arena, len);
|
79
|
+
}
|
80
|
+
|
81
|
+
typedef enum {
|
82
|
+
envoy_config_metrics_v3_StatsSink_config_type_typed_config = 3,
|
83
|
+
envoy_config_metrics_v3_StatsSink_config_type_NOT_SET = 0
|
84
|
+
} envoy_config_metrics_v3_StatsSink_config_type_oneofcases;
|
85
|
+
UPB_INLINE envoy_config_metrics_v3_StatsSink_config_type_oneofcases envoy_config_metrics_v3_StatsSink_config_type_case(const envoy_config_metrics_v3_StatsSink* msg) { return (envoy_config_metrics_v3_StatsSink_config_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); }
|
86
|
+
|
87
|
+
UPB_INLINE upb_strview envoy_config_metrics_v3_StatsSink_name(const envoy_config_metrics_v3_StatsSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
88
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsSink_has_typed_config(const envoy_config_metrics_v3_StatsSink *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; }
|
89
|
+
UPB_INLINE const struct google_protobuf_Any* envoy_config_metrics_v3_StatsSink_typed_config(const envoy_config_metrics_v3_StatsSink *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Any*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); }
|
90
|
+
|
91
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsSink_set_name(envoy_config_metrics_v3_StatsSink *msg, upb_strview value) {
|
92
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
93
|
+
}
|
94
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsSink_set_typed_config(envoy_config_metrics_v3_StatsSink *msg, struct google_protobuf_Any* value) {
|
95
|
+
UPB_WRITE_ONEOF(msg, struct google_protobuf_Any*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3);
|
96
|
+
}
|
97
|
+
UPB_INLINE struct google_protobuf_Any* envoy_config_metrics_v3_StatsSink_mutable_typed_config(envoy_config_metrics_v3_StatsSink *msg, upb_arena *arena) {
|
98
|
+
struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_config_metrics_v3_StatsSink_typed_config(msg);
|
99
|
+
if (sub == NULL) {
|
100
|
+
sub = (struct google_protobuf_Any*)_upb_msg_new(&google_protobuf_Any_msginit, arena);
|
101
|
+
if (!sub) return NULL;
|
102
|
+
envoy_config_metrics_v3_StatsSink_set_typed_config(msg, sub);
|
103
|
+
}
|
104
|
+
return sub;
|
105
|
+
}
|
106
|
+
|
107
|
+
/* envoy.config.metrics.v3.StatsConfig */
|
108
|
+
|
109
|
+
UPB_INLINE envoy_config_metrics_v3_StatsConfig *envoy_config_metrics_v3_StatsConfig_new(upb_arena *arena) {
|
110
|
+
return (envoy_config_metrics_v3_StatsConfig *)_upb_msg_new(&envoy_config_metrics_v3_StatsConfig_msginit, arena);
|
111
|
+
}
|
112
|
+
UPB_INLINE envoy_config_metrics_v3_StatsConfig *envoy_config_metrics_v3_StatsConfig_parse(const char *buf, size_t size,
|
113
|
+
upb_arena *arena) {
|
114
|
+
envoy_config_metrics_v3_StatsConfig *ret = envoy_config_metrics_v3_StatsConfig_new(arena);
|
115
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_metrics_v3_StatsConfig_msginit, arena)) ? ret : NULL;
|
116
|
+
}
|
117
|
+
UPB_INLINE envoy_config_metrics_v3_StatsConfig *envoy_config_metrics_v3_StatsConfig_parse_ex(const char *buf, size_t size,
|
118
|
+
upb_arena *arena, int options) {
|
119
|
+
envoy_config_metrics_v3_StatsConfig *ret = envoy_config_metrics_v3_StatsConfig_new(arena);
|
120
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_metrics_v3_StatsConfig_msginit, arena, options))
|
121
|
+
? ret : NULL;
|
122
|
+
}
|
123
|
+
UPB_INLINE char *envoy_config_metrics_v3_StatsConfig_serialize(const envoy_config_metrics_v3_StatsConfig *msg, upb_arena *arena, size_t *len) {
|
124
|
+
return upb_encode(msg, &envoy_config_metrics_v3_StatsConfig_msginit, arena, len);
|
125
|
+
}
|
126
|
+
|
127
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsConfig_has_stats_tags(const envoy_config_metrics_v3_StatsConfig *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); }
|
128
|
+
UPB_INLINE const envoy_config_metrics_v3_TagSpecifier* const* envoy_config_metrics_v3_StatsConfig_stats_tags(const envoy_config_metrics_v3_StatsConfig *msg, size_t *len) { return (const envoy_config_metrics_v3_TagSpecifier* const*)_upb_array_accessor(msg, UPB_SIZE(12, 24), len); }
|
129
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsConfig_has_use_all_default_tags(const envoy_config_metrics_v3_StatsConfig *msg) { return _upb_hasbit(msg, 1); }
|
130
|
+
UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_metrics_v3_StatsConfig_use_all_default_tags(const envoy_config_metrics_v3_StatsConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_BoolValue*); }
|
131
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsConfig_has_stats_matcher(const envoy_config_metrics_v3_StatsConfig *msg) { return _upb_hasbit(msg, 2); }
|
132
|
+
UPB_INLINE const envoy_config_metrics_v3_StatsMatcher* envoy_config_metrics_v3_StatsConfig_stats_matcher(const envoy_config_metrics_v3_StatsConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const envoy_config_metrics_v3_StatsMatcher*); }
|
133
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsConfig_has_histogram_bucket_settings(const envoy_config_metrics_v3_StatsConfig *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(16, 32)); }
|
134
|
+
UPB_INLINE const envoy_config_metrics_v3_HistogramBucketSettings* const* envoy_config_metrics_v3_StatsConfig_histogram_bucket_settings(const envoy_config_metrics_v3_StatsConfig *msg, size_t *len) { return (const envoy_config_metrics_v3_HistogramBucketSettings* const*)_upb_array_accessor(msg, UPB_SIZE(16, 32), len); }
|
135
|
+
|
136
|
+
UPB_INLINE envoy_config_metrics_v3_TagSpecifier** envoy_config_metrics_v3_StatsConfig_mutable_stats_tags(envoy_config_metrics_v3_StatsConfig *msg, size_t *len) {
|
137
|
+
return (envoy_config_metrics_v3_TagSpecifier**)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 24), len);
|
138
|
+
}
|
139
|
+
UPB_INLINE envoy_config_metrics_v3_TagSpecifier** envoy_config_metrics_v3_StatsConfig_resize_stats_tags(envoy_config_metrics_v3_StatsConfig *msg, size_t len, upb_arena *arena) {
|
140
|
+
return (envoy_config_metrics_v3_TagSpecifier**)_upb_array_resize_accessor2(msg, UPB_SIZE(12, 24), len, UPB_SIZE(2, 3), arena);
|
141
|
+
}
|
142
|
+
UPB_INLINE struct envoy_config_metrics_v3_TagSpecifier* envoy_config_metrics_v3_StatsConfig_add_stats_tags(envoy_config_metrics_v3_StatsConfig *msg, upb_arena *arena) {
|
143
|
+
struct envoy_config_metrics_v3_TagSpecifier* sub = (struct envoy_config_metrics_v3_TagSpecifier*)_upb_msg_new(&envoy_config_metrics_v3_TagSpecifier_msginit, arena);
|
144
|
+
bool ok = _upb_array_append_accessor2(
|
145
|
+
msg, UPB_SIZE(12, 24), UPB_SIZE(2, 3), &sub, arena);
|
146
|
+
if (!ok) return NULL;
|
147
|
+
return sub;
|
148
|
+
}
|
149
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsConfig_set_use_all_default_tags(envoy_config_metrics_v3_StatsConfig *msg, struct google_protobuf_BoolValue* value) {
|
150
|
+
_upb_sethas(msg, 1);
|
151
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_BoolValue*) = value;
|
152
|
+
}
|
153
|
+
UPB_INLINE struct google_protobuf_BoolValue* envoy_config_metrics_v3_StatsConfig_mutable_use_all_default_tags(envoy_config_metrics_v3_StatsConfig *msg, upb_arena *arena) {
|
154
|
+
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_metrics_v3_StatsConfig_use_all_default_tags(msg);
|
155
|
+
if (sub == NULL) {
|
156
|
+
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
|
157
|
+
if (!sub) return NULL;
|
158
|
+
envoy_config_metrics_v3_StatsConfig_set_use_all_default_tags(msg, sub);
|
159
|
+
}
|
160
|
+
return sub;
|
161
|
+
}
|
162
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsConfig_set_stats_matcher(envoy_config_metrics_v3_StatsConfig *msg, envoy_config_metrics_v3_StatsMatcher* value) {
|
163
|
+
_upb_sethas(msg, 2);
|
164
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), envoy_config_metrics_v3_StatsMatcher*) = value;
|
165
|
+
}
|
166
|
+
UPB_INLINE struct envoy_config_metrics_v3_StatsMatcher* envoy_config_metrics_v3_StatsConfig_mutable_stats_matcher(envoy_config_metrics_v3_StatsConfig *msg, upb_arena *arena) {
|
167
|
+
struct envoy_config_metrics_v3_StatsMatcher* sub = (struct envoy_config_metrics_v3_StatsMatcher*)envoy_config_metrics_v3_StatsConfig_stats_matcher(msg);
|
168
|
+
if (sub == NULL) {
|
169
|
+
sub = (struct envoy_config_metrics_v3_StatsMatcher*)_upb_msg_new(&envoy_config_metrics_v3_StatsMatcher_msginit, arena);
|
170
|
+
if (!sub) return NULL;
|
171
|
+
envoy_config_metrics_v3_StatsConfig_set_stats_matcher(msg, sub);
|
172
|
+
}
|
173
|
+
return sub;
|
174
|
+
}
|
175
|
+
UPB_INLINE envoy_config_metrics_v3_HistogramBucketSettings** envoy_config_metrics_v3_StatsConfig_mutable_histogram_bucket_settings(envoy_config_metrics_v3_StatsConfig *msg, size_t *len) {
|
176
|
+
return (envoy_config_metrics_v3_HistogramBucketSettings**)_upb_array_mutable_accessor(msg, UPB_SIZE(16, 32), len);
|
177
|
+
}
|
178
|
+
UPB_INLINE envoy_config_metrics_v3_HistogramBucketSettings** envoy_config_metrics_v3_StatsConfig_resize_histogram_bucket_settings(envoy_config_metrics_v3_StatsConfig *msg, size_t len, upb_arena *arena) {
|
179
|
+
return (envoy_config_metrics_v3_HistogramBucketSettings**)_upb_array_resize_accessor2(msg, UPB_SIZE(16, 32), len, UPB_SIZE(2, 3), arena);
|
180
|
+
}
|
181
|
+
UPB_INLINE struct envoy_config_metrics_v3_HistogramBucketSettings* envoy_config_metrics_v3_StatsConfig_add_histogram_bucket_settings(envoy_config_metrics_v3_StatsConfig *msg, upb_arena *arena) {
|
182
|
+
struct envoy_config_metrics_v3_HistogramBucketSettings* sub = (struct envoy_config_metrics_v3_HistogramBucketSettings*)_upb_msg_new(&envoy_config_metrics_v3_HistogramBucketSettings_msginit, arena);
|
183
|
+
bool ok = _upb_array_append_accessor2(
|
184
|
+
msg, UPB_SIZE(16, 32), UPB_SIZE(2, 3), &sub, arena);
|
185
|
+
if (!ok) return NULL;
|
186
|
+
return sub;
|
187
|
+
}
|
188
|
+
|
189
|
+
/* envoy.config.metrics.v3.StatsMatcher */
|
190
|
+
|
191
|
+
UPB_INLINE envoy_config_metrics_v3_StatsMatcher *envoy_config_metrics_v3_StatsMatcher_new(upb_arena *arena) {
|
192
|
+
return (envoy_config_metrics_v3_StatsMatcher *)_upb_msg_new(&envoy_config_metrics_v3_StatsMatcher_msginit, arena);
|
193
|
+
}
|
194
|
+
UPB_INLINE envoy_config_metrics_v3_StatsMatcher *envoy_config_metrics_v3_StatsMatcher_parse(const char *buf, size_t size,
|
195
|
+
upb_arena *arena) {
|
196
|
+
envoy_config_metrics_v3_StatsMatcher *ret = envoy_config_metrics_v3_StatsMatcher_new(arena);
|
197
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_metrics_v3_StatsMatcher_msginit, arena)) ? ret : NULL;
|
198
|
+
}
|
199
|
+
UPB_INLINE envoy_config_metrics_v3_StatsMatcher *envoy_config_metrics_v3_StatsMatcher_parse_ex(const char *buf, size_t size,
|
200
|
+
upb_arena *arena, int options) {
|
201
|
+
envoy_config_metrics_v3_StatsMatcher *ret = envoy_config_metrics_v3_StatsMatcher_new(arena);
|
202
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_metrics_v3_StatsMatcher_msginit, arena, options))
|
203
|
+
? ret : NULL;
|
204
|
+
}
|
205
|
+
UPB_INLINE char *envoy_config_metrics_v3_StatsMatcher_serialize(const envoy_config_metrics_v3_StatsMatcher *msg, upb_arena *arena, size_t *len) {
|
206
|
+
return upb_encode(msg, &envoy_config_metrics_v3_StatsMatcher_msginit, arena, len);
|
207
|
+
}
|
208
|
+
|
209
|
+
typedef enum {
|
210
|
+
envoy_config_metrics_v3_StatsMatcher_stats_matcher_reject_all = 1,
|
211
|
+
envoy_config_metrics_v3_StatsMatcher_stats_matcher_exclusion_list = 2,
|
212
|
+
envoy_config_metrics_v3_StatsMatcher_stats_matcher_inclusion_list = 3,
|
213
|
+
envoy_config_metrics_v3_StatsMatcher_stats_matcher_NOT_SET = 0
|
214
|
+
} envoy_config_metrics_v3_StatsMatcher_stats_matcher_oneofcases;
|
215
|
+
UPB_INLINE envoy_config_metrics_v3_StatsMatcher_stats_matcher_oneofcases envoy_config_metrics_v3_StatsMatcher_stats_matcher_case(const envoy_config_metrics_v3_StatsMatcher* msg) { return (envoy_config_metrics_v3_StatsMatcher_stats_matcher_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); }
|
216
|
+
|
217
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsMatcher_has_reject_all(const envoy_config_metrics_v3_StatsMatcher *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; }
|
218
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsMatcher_reject_all(const envoy_config_metrics_v3_StatsMatcher *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, false); }
|
219
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsMatcher_has_exclusion_list(const envoy_config_metrics_v3_StatsMatcher *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 2; }
|
220
|
+
UPB_INLINE const struct envoy_type_matcher_v3_ListStringMatcher* envoy_config_metrics_v3_StatsMatcher_exclusion_list(const envoy_config_metrics_v3_StatsMatcher *msg) { return UPB_READ_ONEOF(msg, const struct envoy_type_matcher_v3_ListStringMatcher*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 2, NULL); }
|
221
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsMatcher_has_inclusion_list(const envoy_config_metrics_v3_StatsMatcher *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 3; }
|
222
|
+
UPB_INLINE const struct envoy_type_matcher_v3_ListStringMatcher* envoy_config_metrics_v3_StatsMatcher_inclusion_list(const envoy_config_metrics_v3_StatsMatcher *msg) { return UPB_READ_ONEOF(msg, const struct envoy_type_matcher_v3_ListStringMatcher*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 3, NULL); }
|
223
|
+
|
224
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsMatcher_set_reject_all(envoy_config_metrics_v3_StatsMatcher *msg, bool value) {
|
225
|
+
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1);
|
226
|
+
}
|
227
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsMatcher_set_exclusion_list(envoy_config_metrics_v3_StatsMatcher *msg, struct envoy_type_matcher_v3_ListStringMatcher* value) {
|
228
|
+
UPB_WRITE_ONEOF(msg, struct envoy_type_matcher_v3_ListStringMatcher*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 2);
|
229
|
+
}
|
230
|
+
UPB_INLINE struct envoy_type_matcher_v3_ListStringMatcher* envoy_config_metrics_v3_StatsMatcher_mutable_exclusion_list(envoy_config_metrics_v3_StatsMatcher *msg, upb_arena *arena) {
|
231
|
+
struct envoy_type_matcher_v3_ListStringMatcher* sub = (struct envoy_type_matcher_v3_ListStringMatcher*)envoy_config_metrics_v3_StatsMatcher_exclusion_list(msg);
|
232
|
+
if (sub == NULL) {
|
233
|
+
sub = (struct envoy_type_matcher_v3_ListStringMatcher*)_upb_msg_new(&envoy_type_matcher_v3_ListStringMatcher_msginit, arena);
|
234
|
+
if (!sub) return NULL;
|
235
|
+
envoy_config_metrics_v3_StatsMatcher_set_exclusion_list(msg, sub);
|
236
|
+
}
|
237
|
+
return sub;
|
238
|
+
}
|
239
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsMatcher_set_inclusion_list(envoy_config_metrics_v3_StatsMatcher *msg, struct envoy_type_matcher_v3_ListStringMatcher* value) {
|
240
|
+
UPB_WRITE_ONEOF(msg, struct envoy_type_matcher_v3_ListStringMatcher*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 3);
|
241
|
+
}
|
242
|
+
UPB_INLINE struct envoy_type_matcher_v3_ListStringMatcher* envoy_config_metrics_v3_StatsMatcher_mutable_inclusion_list(envoy_config_metrics_v3_StatsMatcher *msg, upb_arena *arena) {
|
243
|
+
struct envoy_type_matcher_v3_ListStringMatcher* sub = (struct envoy_type_matcher_v3_ListStringMatcher*)envoy_config_metrics_v3_StatsMatcher_inclusion_list(msg);
|
244
|
+
if (sub == NULL) {
|
245
|
+
sub = (struct envoy_type_matcher_v3_ListStringMatcher*)_upb_msg_new(&envoy_type_matcher_v3_ListStringMatcher_msginit, arena);
|
246
|
+
if (!sub) return NULL;
|
247
|
+
envoy_config_metrics_v3_StatsMatcher_set_inclusion_list(msg, sub);
|
248
|
+
}
|
249
|
+
return sub;
|
250
|
+
}
|
251
|
+
|
252
|
+
/* envoy.config.metrics.v3.TagSpecifier */
|
253
|
+
|
254
|
+
UPB_INLINE envoy_config_metrics_v3_TagSpecifier *envoy_config_metrics_v3_TagSpecifier_new(upb_arena *arena) {
|
255
|
+
return (envoy_config_metrics_v3_TagSpecifier *)_upb_msg_new(&envoy_config_metrics_v3_TagSpecifier_msginit, arena);
|
256
|
+
}
|
257
|
+
UPB_INLINE envoy_config_metrics_v3_TagSpecifier *envoy_config_metrics_v3_TagSpecifier_parse(const char *buf, size_t size,
|
258
|
+
upb_arena *arena) {
|
259
|
+
envoy_config_metrics_v3_TagSpecifier *ret = envoy_config_metrics_v3_TagSpecifier_new(arena);
|
260
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_metrics_v3_TagSpecifier_msginit, arena)) ? ret : NULL;
|
261
|
+
}
|
262
|
+
UPB_INLINE envoy_config_metrics_v3_TagSpecifier *envoy_config_metrics_v3_TagSpecifier_parse_ex(const char *buf, size_t size,
|
263
|
+
upb_arena *arena, int options) {
|
264
|
+
envoy_config_metrics_v3_TagSpecifier *ret = envoy_config_metrics_v3_TagSpecifier_new(arena);
|
265
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_metrics_v3_TagSpecifier_msginit, arena, options))
|
266
|
+
? ret : NULL;
|
267
|
+
}
|
268
|
+
UPB_INLINE char *envoy_config_metrics_v3_TagSpecifier_serialize(const envoy_config_metrics_v3_TagSpecifier *msg, upb_arena *arena, size_t *len) {
|
269
|
+
return upb_encode(msg, &envoy_config_metrics_v3_TagSpecifier_msginit, arena, len);
|
270
|
+
}
|
271
|
+
|
272
|
+
typedef enum {
|
273
|
+
envoy_config_metrics_v3_TagSpecifier_tag_value_regex = 2,
|
274
|
+
envoy_config_metrics_v3_TagSpecifier_tag_value_fixed_value = 3,
|
275
|
+
envoy_config_metrics_v3_TagSpecifier_tag_value_NOT_SET = 0
|
276
|
+
} envoy_config_metrics_v3_TagSpecifier_tag_value_oneofcases;
|
277
|
+
UPB_INLINE envoy_config_metrics_v3_TagSpecifier_tag_value_oneofcases envoy_config_metrics_v3_TagSpecifier_tag_value_case(const envoy_config_metrics_v3_TagSpecifier* msg) { return (envoy_config_metrics_v3_TagSpecifier_tag_value_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(16, 32), int32_t); }
|
278
|
+
|
279
|
+
UPB_INLINE upb_strview envoy_config_metrics_v3_TagSpecifier_tag_name(const envoy_config_metrics_v3_TagSpecifier *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
280
|
+
UPB_INLINE bool envoy_config_metrics_v3_TagSpecifier_has_regex(const envoy_config_metrics_v3_TagSpecifier *msg) { return _upb_getoneofcase(msg, UPB_SIZE(16, 32)) == 2; }
|
281
|
+
UPB_INLINE upb_strview envoy_config_metrics_v3_TagSpecifier_regex(const envoy_config_metrics_v3_TagSpecifier *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(8, 16), UPB_SIZE(16, 32), 2, upb_strview_make("", strlen(""))); }
|
282
|
+
UPB_INLINE bool envoy_config_metrics_v3_TagSpecifier_has_fixed_value(const envoy_config_metrics_v3_TagSpecifier *msg) { return _upb_getoneofcase(msg, UPB_SIZE(16, 32)) == 3; }
|
283
|
+
UPB_INLINE upb_strview envoy_config_metrics_v3_TagSpecifier_fixed_value(const envoy_config_metrics_v3_TagSpecifier *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(8, 16), UPB_SIZE(16, 32), 3, upb_strview_make("", strlen(""))); }
|
284
|
+
|
285
|
+
UPB_INLINE void envoy_config_metrics_v3_TagSpecifier_set_tag_name(envoy_config_metrics_v3_TagSpecifier *msg, upb_strview value) {
|
286
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
287
|
+
}
|
288
|
+
UPB_INLINE void envoy_config_metrics_v3_TagSpecifier_set_regex(envoy_config_metrics_v3_TagSpecifier *msg, upb_strview value) {
|
289
|
+
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(8, 16), value, UPB_SIZE(16, 32), 2);
|
290
|
+
}
|
291
|
+
UPB_INLINE void envoy_config_metrics_v3_TagSpecifier_set_fixed_value(envoy_config_metrics_v3_TagSpecifier *msg, upb_strview value) {
|
292
|
+
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(8, 16), value, UPB_SIZE(16, 32), 3);
|
293
|
+
}
|
294
|
+
|
295
|
+
/* envoy.config.metrics.v3.HistogramBucketSettings */
|
296
|
+
|
297
|
+
UPB_INLINE envoy_config_metrics_v3_HistogramBucketSettings *envoy_config_metrics_v3_HistogramBucketSettings_new(upb_arena *arena) {
|
298
|
+
return (envoy_config_metrics_v3_HistogramBucketSettings *)_upb_msg_new(&envoy_config_metrics_v3_HistogramBucketSettings_msginit, arena);
|
299
|
+
}
|
300
|
+
UPB_INLINE envoy_config_metrics_v3_HistogramBucketSettings *envoy_config_metrics_v3_HistogramBucketSettings_parse(const char *buf, size_t size,
|
301
|
+
upb_arena *arena) {
|
302
|
+
envoy_config_metrics_v3_HistogramBucketSettings *ret = envoy_config_metrics_v3_HistogramBucketSettings_new(arena);
|
303
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_metrics_v3_HistogramBucketSettings_msginit, arena)) ? ret : NULL;
|
304
|
+
}
|
305
|
+
UPB_INLINE envoy_config_metrics_v3_HistogramBucketSettings *envoy_config_metrics_v3_HistogramBucketSettings_parse_ex(const char *buf, size_t size,
|
306
|
+
upb_arena *arena, int options) {
|
307
|
+
envoy_config_metrics_v3_HistogramBucketSettings *ret = envoy_config_metrics_v3_HistogramBucketSettings_new(arena);
|
308
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_metrics_v3_HistogramBucketSettings_msginit, arena, options))
|
309
|
+
? ret : NULL;
|
310
|
+
}
|
311
|
+
UPB_INLINE char *envoy_config_metrics_v3_HistogramBucketSettings_serialize(const envoy_config_metrics_v3_HistogramBucketSettings *msg, upb_arena *arena, size_t *len) {
|
312
|
+
return upb_encode(msg, &envoy_config_metrics_v3_HistogramBucketSettings_msginit, arena, len);
|
313
|
+
}
|
314
|
+
|
315
|
+
UPB_INLINE bool envoy_config_metrics_v3_HistogramBucketSettings_has_match(const envoy_config_metrics_v3_HistogramBucketSettings *msg) { return _upb_hasbit(msg, 1); }
|
316
|
+
UPB_INLINE const struct envoy_type_matcher_v3_StringMatcher* envoy_config_metrics_v3_HistogramBucketSettings_match(const envoy_config_metrics_v3_HistogramBucketSettings *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_type_matcher_v3_StringMatcher*); }
|
317
|
+
UPB_INLINE double const* envoy_config_metrics_v3_HistogramBucketSettings_buckets(const envoy_config_metrics_v3_HistogramBucketSettings *msg, size_t *len) { return (double const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); }
|
318
|
+
|
319
|
+
UPB_INLINE void envoy_config_metrics_v3_HistogramBucketSettings_set_match(envoy_config_metrics_v3_HistogramBucketSettings *msg, struct envoy_type_matcher_v3_StringMatcher* value) {
|
320
|
+
_upb_sethas(msg, 1);
|
321
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_type_matcher_v3_StringMatcher*) = value;
|
322
|
+
}
|
323
|
+
UPB_INLINE struct envoy_type_matcher_v3_StringMatcher* envoy_config_metrics_v3_HistogramBucketSettings_mutable_match(envoy_config_metrics_v3_HistogramBucketSettings *msg, upb_arena *arena) {
|
324
|
+
struct envoy_type_matcher_v3_StringMatcher* sub = (struct envoy_type_matcher_v3_StringMatcher*)envoy_config_metrics_v3_HistogramBucketSettings_match(msg);
|
325
|
+
if (sub == NULL) {
|
326
|
+
sub = (struct envoy_type_matcher_v3_StringMatcher*)_upb_msg_new(&envoy_type_matcher_v3_StringMatcher_msginit, arena);
|
327
|
+
if (!sub) return NULL;
|
328
|
+
envoy_config_metrics_v3_HistogramBucketSettings_set_match(msg, sub);
|
329
|
+
}
|
330
|
+
return sub;
|
331
|
+
}
|
332
|
+
UPB_INLINE double* envoy_config_metrics_v3_HistogramBucketSettings_mutable_buckets(envoy_config_metrics_v3_HistogramBucketSettings *msg, size_t *len) {
|
333
|
+
return (double*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len);
|
334
|
+
}
|
335
|
+
UPB_INLINE double* envoy_config_metrics_v3_HistogramBucketSettings_resize_buckets(envoy_config_metrics_v3_HistogramBucketSettings *msg, size_t len, upb_arena *arena) {
|
336
|
+
return (double*)_upb_array_resize_accessor2(msg, UPB_SIZE(8, 16), len, 3, arena);
|
337
|
+
}
|
338
|
+
UPB_INLINE bool envoy_config_metrics_v3_HistogramBucketSettings_add_buckets(envoy_config_metrics_v3_HistogramBucketSettings *msg, double val, upb_arena *arena) {
|
339
|
+
return _upb_array_append_accessor2(msg, UPB_SIZE(8, 16), 3, &val,
|
340
|
+
arena);
|
341
|
+
}
|
342
|
+
|
343
|
+
/* envoy.config.metrics.v3.StatsdSink */
|
344
|
+
|
345
|
+
UPB_INLINE envoy_config_metrics_v3_StatsdSink *envoy_config_metrics_v3_StatsdSink_new(upb_arena *arena) {
|
346
|
+
return (envoy_config_metrics_v3_StatsdSink *)_upb_msg_new(&envoy_config_metrics_v3_StatsdSink_msginit, arena);
|
347
|
+
}
|
348
|
+
UPB_INLINE envoy_config_metrics_v3_StatsdSink *envoy_config_metrics_v3_StatsdSink_parse(const char *buf, size_t size,
|
349
|
+
upb_arena *arena) {
|
350
|
+
envoy_config_metrics_v3_StatsdSink *ret = envoy_config_metrics_v3_StatsdSink_new(arena);
|
351
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_metrics_v3_StatsdSink_msginit, arena)) ? ret : NULL;
|
352
|
+
}
|
353
|
+
UPB_INLINE envoy_config_metrics_v3_StatsdSink *envoy_config_metrics_v3_StatsdSink_parse_ex(const char *buf, size_t size,
|
354
|
+
upb_arena *arena, int options) {
|
355
|
+
envoy_config_metrics_v3_StatsdSink *ret = envoy_config_metrics_v3_StatsdSink_new(arena);
|
356
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_metrics_v3_StatsdSink_msginit, arena, options))
|
357
|
+
? ret : NULL;
|
358
|
+
}
|
359
|
+
UPB_INLINE char *envoy_config_metrics_v3_StatsdSink_serialize(const envoy_config_metrics_v3_StatsdSink *msg, upb_arena *arena, size_t *len) {
|
360
|
+
return upb_encode(msg, &envoy_config_metrics_v3_StatsdSink_msginit, arena, len);
|
361
|
+
}
|
362
|
+
|
363
|
+
typedef enum {
|
364
|
+
envoy_config_metrics_v3_StatsdSink_statsd_specifier_address = 1,
|
365
|
+
envoy_config_metrics_v3_StatsdSink_statsd_specifier_tcp_cluster_name = 2,
|
366
|
+
envoy_config_metrics_v3_StatsdSink_statsd_specifier_NOT_SET = 0
|
367
|
+
} envoy_config_metrics_v3_StatsdSink_statsd_specifier_oneofcases;
|
368
|
+
UPB_INLINE envoy_config_metrics_v3_StatsdSink_statsd_specifier_oneofcases envoy_config_metrics_v3_StatsdSink_statsd_specifier_case(const envoy_config_metrics_v3_StatsdSink* msg) { return (envoy_config_metrics_v3_StatsdSink_statsd_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(16, 32), int32_t); }
|
369
|
+
|
370
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsdSink_has_address(const envoy_config_metrics_v3_StatsdSink *msg) { return _upb_getoneofcase(msg, UPB_SIZE(16, 32)) == 1; }
|
371
|
+
UPB_INLINE const struct envoy_config_core_v3_Address* envoy_config_metrics_v3_StatsdSink_address(const envoy_config_metrics_v3_StatsdSink *msg) { return UPB_READ_ONEOF(msg, const struct envoy_config_core_v3_Address*, UPB_SIZE(8, 16), UPB_SIZE(16, 32), 1, NULL); }
|
372
|
+
UPB_INLINE bool envoy_config_metrics_v3_StatsdSink_has_tcp_cluster_name(const envoy_config_metrics_v3_StatsdSink *msg) { return _upb_getoneofcase(msg, UPB_SIZE(16, 32)) == 2; }
|
373
|
+
UPB_INLINE upb_strview envoy_config_metrics_v3_StatsdSink_tcp_cluster_name(const envoy_config_metrics_v3_StatsdSink *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(8, 16), UPB_SIZE(16, 32), 2, upb_strview_make("", strlen(""))); }
|
374
|
+
UPB_INLINE upb_strview envoy_config_metrics_v3_StatsdSink_prefix(const envoy_config_metrics_v3_StatsdSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
|
375
|
+
|
376
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsdSink_set_address(envoy_config_metrics_v3_StatsdSink *msg, struct envoy_config_core_v3_Address* value) {
|
377
|
+
UPB_WRITE_ONEOF(msg, struct envoy_config_core_v3_Address*, UPB_SIZE(8, 16), value, UPB_SIZE(16, 32), 1);
|
378
|
+
}
|
379
|
+
UPB_INLINE struct envoy_config_core_v3_Address* envoy_config_metrics_v3_StatsdSink_mutable_address(envoy_config_metrics_v3_StatsdSink *msg, upb_arena *arena) {
|
380
|
+
struct envoy_config_core_v3_Address* sub = (struct envoy_config_core_v3_Address*)envoy_config_metrics_v3_StatsdSink_address(msg);
|
381
|
+
if (sub == NULL) {
|
382
|
+
sub = (struct envoy_config_core_v3_Address*)_upb_msg_new(&envoy_config_core_v3_Address_msginit, arena);
|
383
|
+
if (!sub) return NULL;
|
384
|
+
envoy_config_metrics_v3_StatsdSink_set_address(msg, sub);
|
385
|
+
}
|
386
|
+
return sub;
|
387
|
+
}
|
388
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsdSink_set_tcp_cluster_name(envoy_config_metrics_v3_StatsdSink *msg, upb_strview value) {
|
389
|
+
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(8, 16), value, UPB_SIZE(16, 32), 2);
|
390
|
+
}
|
391
|
+
UPB_INLINE void envoy_config_metrics_v3_StatsdSink_set_prefix(envoy_config_metrics_v3_StatsdSink *msg, upb_strview value) {
|
392
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
|
393
|
+
}
|
394
|
+
|
395
|
+
/* envoy.config.metrics.v3.DogStatsdSink */
|
396
|
+
|
397
|
+
UPB_INLINE envoy_config_metrics_v3_DogStatsdSink *envoy_config_metrics_v3_DogStatsdSink_new(upb_arena *arena) {
|
398
|
+
return (envoy_config_metrics_v3_DogStatsdSink *)_upb_msg_new(&envoy_config_metrics_v3_DogStatsdSink_msginit, arena);
|
399
|
+
}
|
400
|
+
UPB_INLINE envoy_config_metrics_v3_DogStatsdSink *envoy_config_metrics_v3_DogStatsdSink_parse(const char *buf, size_t size,
|
401
|
+
upb_arena *arena) {
|
402
|
+
envoy_config_metrics_v3_DogStatsdSink *ret = envoy_config_metrics_v3_DogStatsdSink_new(arena);
|
403
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_metrics_v3_DogStatsdSink_msginit, arena)) ? ret : NULL;
|
404
|
+
}
|
405
|
+
UPB_INLINE envoy_config_metrics_v3_DogStatsdSink *envoy_config_metrics_v3_DogStatsdSink_parse_ex(const char *buf, size_t size,
|
406
|
+
upb_arena *arena, int options) {
|
407
|
+
envoy_config_metrics_v3_DogStatsdSink *ret = envoy_config_metrics_v3_DogStatsdSink_new(arena);
|
408
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_metrics_v3_DogStatsdSink_msginit, arena, options))
|
409
|
+
? ret : NULL;
|
410
|
+
}
|
411
|
+
UPB_INLINE char *envoy_config_metrics_v3_DogStatsdSink_serialize(const envoy_config_metrics_v3_DogStatsdSink *msg, upb_arena *arena, size_t *len) {
|
412
|
+
return upb_encode(msg, &envoy_config_metrics_v3_DogStatsdSink_msginit, arena, len);
|
413
|
+
}
|
414
|
+
|
415
|
+
typedef enum {
|
416
|
+
envoy_config_metrics_v3_DogStatsdSink_dog_statsd_specifier_address = 1,
|
417
|
+
envoy_config_metrics_v3_DogStatsdSink_dog_statsd_specifier_NOT_SET = 0
|
418
|
+
} envoy_config_metrics_v3_DogStatsdSink_dog_statsd_specifier_oneofcases;
|
419
|
+
UPB_INLINE envoy_config_metrics_v3_DogStatsdSink_dog_statsd_specifier_oneofcases envoy_config_metrics_v3_DogStatsdSink_dog_statsd_specifier_case(const envoy_config_metrics_v3_DogStatsdSink* msg) { return (envoy_config_metrics_v3_DogStatsdSink_dog_statsd_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(20, 40), int32_t); }
|
420
|
+
|
421
|
+
UPB_INLINE bool envoy_config_metrics_v3_DogStatsdSink_has_address(const envoy_config_metrics_v3_DogStatsdSink *msg) { return _upb_getoneofcase(msg, UPB_SIZE(20, 40)) == 1; }
|
422
|
+
UPB_INLINE const struct envoy_config_core_v3_Address* envoy_config_metrics_v3_DogStatsdSink_address(const envoy_config_metrics_v3_DogStatsdSink *msg) { return UPB_READ_ONEOF(msg, const struct envoy_config_core_v3_Address*, UPB_SIZE(16, 32), UPB_SIZE(20, 40), 1, NULL); }
|
423
|
+
UPB_INLINE upb_strview envoy_config_metrics_v3_DogStatsdSink_prefix(const envoy_config_metrics_v3_DogStatsdSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); }
|
424
|
+
UPB_INLINE bool envoy_config_metrics_v3_DogStatsdSink_has_max_bytes_per_datagram(const envoy_config_metrics_v3_DogStatsdSink *msg) { return _upb_hasbit(msg, 1); }
|
425
|
+
UPB_INLINE const struct google_protobuf_UInt64Value* envoy_config_metrics_v3_DogStatsdSink_max_bytes_per_datagram(const envoy_config_metrics_v3_DogStatsdSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_UInt64Value*); }
|
426
|
+
|
427
|
+
UPB_INLINE void envoy_config_metrics_v3_DogStatsdSink_set_address(envoy_config_metrics_v3_DogStatsdSink *msg, struct envoy_config_core_v3_Address* value) {
|
428
|
+
UPB_WRITE_ONEOF(msg, struct envoy_config_core_v3_Address*, UPB_SIZE(16, 32), value, UPB_SIZE(20, 40), 1);
|
429
|
+
}
|
430
|
+
UPB_INLINE struct envoy_config_core_v3_Address* envoy_config_metrics_v3_DogStatsdSink_mutable_address(envoy_config_metrics_v3_DogStatsdSink *msg, upb_arena *arena) {
|
431
|
+
struct envoy_config_core_v3_Address* sub = (struct envoy_config_core_v3_Address*)envoy_config_metrics_v3_DogStatsdSink_address(msg);
|
432
|
+
if (sub == NULL) {
|
433
|
+
sub = (struct envoy_config_core_v3_Address*)_upb_msg_new(&envoy_config_core_v3_Address_msginit, arena);
|
434
|
+
if (!sub) return NULL;
|
435
|
+
envoy_config_metrics_v3_DogStatsdSink_set_address(msg, sub);
|
436
|
+
}
|
437
|
+
return sub;
|
438
|
+
}
|
439
|
+
UPB_INLINE void envoy_config_metrics_v3_DogStatsdSink_set_prefix(envoy_config_metrics_v3_DogStatsdSink *msg, upb_strview value) {
|
440
|
+
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value;
|
441
|
+
}
|
442
|
+
UPB_INLINE void envoy_config_metrics_v3_DogStatsdSink_set_max_bytes_per_datagram(envoy_config_metrics_v3_DogStatsdSink *msg, struct google_protobuf_UInt64Value* value) {
|
443
|
+
_upb_sethas(msg, 1);
|
444
|
+
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_UInt64Value*) = value;
|
445
|
+
}
|
446
|
+
UPB_INLINE struct google_protobuf_UInt64Value* envoy_config_metrics_v3_DogStatsdSink_mutable_max_bytes_per_datagram(envoy_config_metrics_v3_DogStatsdSink *msg, upb_arena *arena) {
|
447
|
+
struct google_protobuf_UInt64Value* sub = (struct google_protobuf_UInt64Value*)envoy_config_metrics_v3_DogStatsdSink_max_bytes_per_datagram(msg);
|
448
|
+
if (sub == NULL) {
|
449
|
+
sub = (struct google_protobuf_UInt64Value*)_upb_msg_new(&google_protobuf_UInt64Value_msginit, arena);
|
450
|
+
if (!sub) return NULL;
|
451
|
+
envoy_config_metrics_v3_DogStatsdSink_set_max_bytes_per_datagram(msg, sub);
|
452
|
+
}
|
453
|
+
return sub;
|
454
|
+
}
|
455
|
+
|
456
|
+
/* envoy.config.metrics.v3.HystrixSink */
|
457
|
+
|
458
|
+
UPB_INLINE envoy_config_metrics_v3_HystrixSink *envoy_config_metrics_v3_HystrixSink_new(upb_arena *arena) {
|
459
|
+
return (envoy_config_metrics_v3_HystrixSink *)_upb_msg_new(&envoy_config_metrics_v3_HystrixSink_msginit, arena);
|
460
|
+
}
|
461
|
+
UPB_INLINE envoy_config_metrics_v3_HystrixSink *envoy_config_metrics_v3_HystrixSink_parse(const char *buf, size_t size,
|
462
|
+
upb_arena *arena) {
|
463
|
+
envoy_config_metrics_v3_HystrixSink *ret = envoy_config_metrics_v3_HystrixSink_new(arena);
|
464
|
+
return (ret && upb_decode(buf, size, ret, &envoy_config_metrics_v3_HystrixSink_msginit, arena)) ? ret : NULL;
|
465
|
+
}
|
466
|
+
UPB_INLINE envoy_config_metrics_v3_HystrixSink *envoy_config_metrics_v3_HystrixSink_parse_ex(const char *buf, size_t size,
|
467
|
+
upb_arena *arena, int options) {
|
468
|
+
envoy_config_metrics_v3_HystrixSink *ret = envoy_config_metrics_v3_HystrixSink_new(arena);
|
469
|
+
return (ret && _upb_decode(buf, size, ret, &envoy_config_metrics_v3_HystrixSink_msginit, arena, options))
|
470
|
+
? ret : NULL;
|
471
|
+
}
|
472
|
+
UPB_INLINE char *envoy_config_metrics_v3_HystrixSink_serialize(const envoy_config_metrics_v3_HystrixSink *msg, upb_arena *arena, size_t *len) {
|
473
|
+
return upb_encode(msg, &envoy_config_metrics_v3_HystrixSink_msginit, arena, len);
|
474
|
+
}
|
475
|
+
|
476
|
+
UPB_INLINE int64_t envoy_config_metrics_v3_HystrixSink_num_buckets(const envoy_config_metrics_v3_HystrixSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t); }
|
477
|
+
|
478
|
+
UPB_INLINE void envoy_config_metrics_v3_HystrixSink_set_num_buckets(envoy_config_metrics_v3_HystrixSink *msg, int64_t value) {
|
479
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = value;
|
480
|
+
}
|
481
|
+
|
482
|
+
#ifdef __cplusplus
|
483
|
+
} /* extern "C" */
|
484
|
+
#endif
|
485
|
+
|
486
|
+
#include "upb/port_undef.inc"
|
487
|
+
|
488
|
+
#endif /* ENVOY_CONFIG_METRICS_V3_STATS_PROTO_UPB_H_ */
|