grpc 1.39.0.pre1 → 1.40.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.

Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +34 -18
  3. data/include/grpc/event_engine/event_engine.h +10 -14
  4. data/include/grpc/event_engine/slice_allocator.h +8 -33
  5. data/include/grpc/impl/codegen/grpc_types.h +18 -8
  6. data/include/grpc/impl/codegen/port_platform.h +24 -0
  7. data/src/core/ext/filters/client_channel/client_channel.cc +413 -247
  8. data/src/core/ext/filters/client_channel/client_channel.h +42 -18
  9. data/src/core/ext/filters/client_channel/config_selector.h +19 -6
  10. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +7 -8
  11. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +12 -21
  12. data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +3 -5
  13. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +17 -38
  14. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +8 -15
  15. data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +3 -6
  16. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +8 -12
  17. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +14 -22
  18. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +2 -9
  19. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +5 -8
  20. data/src/core/ext/filters/client_channel/lb_policy.cc +1 -15
  21. data/src/core/ext/filters/client_channel/lb_policy.h +70 -46
  22. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +101 -73
  23. data/src/core/ext/filters/client_channel/retry_filter.cc +392 -243
  24. data/src/core/ext/filters/client_channel/retry_service_config.cc +36 -26
  25. data/src/core/ext/filters/client_channel/retry_service_config.h +1 -1
  26. data/src/core/ext/filters/client_channel/service_config_call_data.h +45 -5
  27. data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +0 -6
  28. data/src/core/ext/filters/http/client/http_client_filter.cc +5 -2
  29. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +5 -1
  30. data/src/core/ext/transport/chttp2/transport/bin_decoder.cc +1 -1
  31. data/src/core/{lib/event_engine/slice_allocator.cc → ext/transport/chttp2/transport/chttp2_slice_allocator.cc} +15 -38
  32. data/src/core/ext/transport/chttp2/transport/chttp2_slice_allocator.h +74 -0
  33. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +2 -6
  34. data/src/core/ext/transport/chttp2/transport/flow_control.h +1 -1
  35. data/src/core/ext/transport/chttp2/transport/frame_data.cc +4 -4
  36. data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +8 -8
  37. data/src/core/ext/transport/chttp2/transport/frame_settings.cc +5 -5
  38. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +639 -752
  39. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +190 -69
  40. data/src/core/ext/transport/chttp2/transport/internal.h +1 -1
  41. data/src/core/ext/transport/chttp2/transport/parsing.cc +70 -54
  42. data/src/core/ext/transport/chttp2/transport/varint.cc +6 -4
  43. data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +56 -35
  44. data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +180 -76
  45. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +35 -27
  46. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +97 -48
  47. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +45 -9
  48. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +67 -7
  49. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +66 -9
  50. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +227 -0
  51. data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +46 -0
  52. data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +121 -0
  53. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +1 -0
  54. data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +35 -0
  55. data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +90 -0
  56. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +32 -24
  57. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +120 -73
  58. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +4 -2
  59. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +15 -0
  60. data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +48 -0
  61. data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +171 -0
  62. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +8 -6
  63. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +27 -19
  64. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +1 -0
  65. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +24 -7
  66. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +57 -0
  67. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +29 -17
  68. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +72 -0
  69. data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +3 -2
  70. data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +4 -0
  71. data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +6 -5
  72. data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +15 -11
  73. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +85 -43
  74. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +274 -91
  75. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +11 -8
  76. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +30 -13
  77. data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +33 -5
  78. data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +115 -0
  79. data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +60 -0
  80. data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +181 -0
  81. data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +1 -0
  82. data/src/core/ext/upb-generated/validate/validate.upb.c +82 -66
  83. data/src/core/ext/upb-generated/validate/validate.upb.h +220 -124
  84. data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +15 -7
  85. data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +53 -52
  86. data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +318 -277
  87. data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +5 -0
  88. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +437 -410
  89. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +198 -170
  90. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +10 -0
  91. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +9 -8
  92. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +219 -163
  93. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +15 -0
  94. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +59 -0
  95. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +40 -0
  96. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +29 -25
  97. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +52 -0
  98. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +35 -0
  99. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +135 -125
  100. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +5 -0
  101. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +131 -123
  102. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +90 -0
  103. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +35 -0
  104. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +32 -24
  105. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +69 -55
  106. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +5 -0
  107. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +684 -664
  108. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +5 -0
  109. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +13 -10
  110. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +13 -10
  111. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +441 -375
  112. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +10 -0
  113. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +122 -114
  114. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +1 -1
  115. data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +112 -79
  116. data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +5 -0
  117. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +64 -0
  118. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +50 -0
  119. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +35 -32
  120. data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +4 -4
  121. data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +182 -160
  122. data/src/core/ext/xds/certificate_provider_store.h +1 -1
  123. data/src/core/ext/xds/xds_api.cc +320 -121
  124. data/src/core/ext/xds/xds_api.h +31 -2
  125. data/src/core/ext/xds/xds_bootstrap.cc +4 -1
  126. data/src/core/ext/xds/xds_client.cc +66 -43
  127. data/src/core/ext/xds/xds_client.h +0 -4
  128. data/src/core/ext/xds/xds_http_filters.cc +3 -2
  129. data/src/core/ext/xds/xds_http_filters.h +3 -0
  130. data/src/core/lib/channel/call_tracer.h +85 -0
  131. data/src/core/lib/channel/channel_stack.h +1 -1
  132. data/src/core/lib/channel/context.h +3 -0
  133. data/src/core/lib/channel/status_util.h +4 -0
  134. data/src/core/lib/compression/stream_compression.h +1 -1
  135. data/src/core/lib/compression/stream_compression_gzip.h +1 -1
  136. data/src/core/lib/compression/stream_compression_identity.h +1 -1
  137. data/src/core/lib/debug/stats.h +1 -1
  138. data/src/core/lib/gpr/murmur_hash.cc +4 -2
  139. data/src/core/lib/gprpp/manual_constructor.h +1 -1
  140. data/src/core/lib/gprpp/orphanable.h +3 -3
  141. data/src/core/lib/gprpp/sync.h +2 -30
  142. data/src/core/lib/iomgr/buffer_list.cc +1 -1
  143. data/src/core/lib/iomgr/ev_apple.h +1 -1
  144. data/src/core/lib/iomgr/event_engine/endpoint.cc +6 -8
  145. data/src/core/lib/iomgr/event_engine/tcp.cc +30 -10
  146. data/src/core/lib/iomgr/python_util.h +1 -1
  147. data/src/core/lib/iomgr/resource_quota.cc +2 -0
  148. data/src/core/lib/iomgr/tcp_client_windows.cc +2 -0
  149. data/src/core/lib/iomgr/tcp_server_posix.cc +1 -0
  150. data/src/core/lib/iomgr/timer_manager.cc +1 -1
  151. data/src/core/lib/json/json_reader.cc +1 -2
  152. data/src/core/lib/matchers/matchers.cc +8 -20
  153. data/src/core/lib/matchers/matchers.h +2 -1
  154. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +49 -0
  155. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +7 -0
  156. data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +6 -18
  157. data/src/core/lib/security/transport/security_handshaker.cc +12 -4
  158. data/src/core/lib/security/transport/server_auth_filter.cc +0 -7
  159. data/src/core/lib/slice/slice_internal.h +1 -0
  160. data/src/core/lib/surface/call.cc +5 -6
  161. data/src/core/lib/surface/server.cc +3 -1
  162. data/src/core/lib/surface/server.h +3 -3
  163. data/src/core/lib/surface/version.cc +2 -4
  164. data/src/ruby/ext/grpc/extconf.rb +1 -1
  165. data/src/ruby/lib/grpc/version.rb +1 -1
  166. data/third_party/xxhash/xxhash.h +77 -195
  167. metadata +57 -40
  168. data/src/core/lib/gpr/arena.h +0 -47
@@ -16,6 +16,7 @@
16
16
  #include "google/protobuf/any.upb.h"
17
17
  #include "google/protobuf/duration.upb.h"
18
18
  #include "google/protobuf/wrappers.upb.h"
19
+ #include "envoy/annotations/deprecation.upb.h"
19
20
  #include "udpa/annotations/status.upb.h"
20
21
  #include "udpa/annotations/versioning.upb.h"
21
22
  #include "validate/validate.upb.h"
@@ -44,7 +45,7 @@ static const upb_msglayout *const envoy_config_listener_v3_FilterChainMatch_subm
44
45
  &google_protobuf_UInt32Value_msginit,
45
46
  };
46
47
 
47
- static const upb_msglayout_field envoy_config_listener_v3_FilterChainMatch__fields[10] = {
48
+ static const upb_msglayout_field envoy_config_listener_v3_FilterChainMatch__fields[11] = {
48
49
  {3, UPB_SIZE(32, 56), 0, 0, 11, 3},
49
50
  {4, UPB_SIZE(8, 8), 0, 0, 9, 1},
50
51
  {5, UPB_SIZE(24, 40), 1, 1, 11, 1},
@@ -55,12 +56,13 @@ static const upb_msglayout_field envoy_config_listener_v3_FilterChainMatch__fiel
55
56
  {10, UPB_SIZE(44, 80), 0, 0, 9, 3},
56
57
  {11, UPB_SIZE(48, 88), 0, 0, 9, 3},
57
58
  {12, UPB_SIZE(4, 4), 0, 0, 14, 1},
59
+ {13, UPB_SIZE(52, 96), 0, 0, 11, 3},
58
60
  };
59
61
 
60
62
  const upb_msglayout envoy_config_listener_v3_FilterChainMatch_msginit = {
61
63
  &envoy_config_listener_v3_FilterChainMatch_submsgs[0],
62
64
  &envoy_config_listener_v3_FilterChainMatch__fields[0],
63
- UPB_SIZE(56, 96), 10, false, 255,
65
+ UPB_SIZE(56, 112), 11, false, 255,
64
66
  };
65
67
 
66
68
  static const upb_msglayout *const envoy_config_listener_v3_FilterChain_submsgs[7] = {
@@ -162,6 +162,8 @@ UPB_INLINE upb_strview envoy_config_listener_v3_FilterChainMatch_transport_proto
162
162
  UPB_INLINE upb_strview const* envoy_config_listener_v3_FilterChainMatch_application_protocols(const envoy_config_listener_v3_FilterChainMatch *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(44, 80), len); }
163
163
  UPB_INLINE upb_strview const* envoy_config_listener_v3_FilterChainMatch_server_names(const envoy_config_listener_v3_FilterChainMatch *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(48, 88), len); }
164
164
  UPB_INLINE int32_t envoy_config_listener_v3_FilterChainMatch_source_type(const envoy_config_listener_v3_FilterChainMatch *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
165
+ UPB_INLINE bool envoy_config_listener_v3_FilterChainMatch_has_direct_source_prefix_ranges(const envoy_config_listener_v3_FilterChainMatch *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(52, 96)); }
166
+ UPB_INLINE const struct envoy_config_core_v3_CidrRange* const* envoy_config_listener_v3_FilterChainMatch_direct_source_prefix_ranges(const envoy_config_listener_v3_FilterChainMatch *msg, size_t *len) { return (const struct envoy_config_core_v3_CidrRange* const*)_upb_array_accessor(msg, UPB_SIZE(52, 96), len); }
165
167
 
166
168
  UPB_INLINE struct envoy_config_core_v3_CidrRange** envoy_config_listener_v3_FilterChainMatch_mutable_prefix_ranges(envoy_config_listener_v3_FilterChainMatch *msg, size_t *len) {
167
169
  return (struct envoy_config_core_v3_CidrRange**)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 56), len);
@@ -254,6 +256,19 @@ UPB_INLINE bool envoy_config_listener_v3_FilterChainMatch_add_server_names(envoy
254
256
  UPB_INLINE void envoy_config_listener_v3_FilterChainMatch_set_source_type(envoy_config_listener_v3_FilterChainMatch *msg, int32_t value) {
255
257
  *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
256
258
  }
259
+ UPB_INLINE struct envoy_config_core_v3_CidrRange** envoy_config_listener_v3_FilterChainMatch_mutable_direct_source_prefix_ranges(envoy_config_listener_v3_FilterChainMatch *msg, size_t *len) {
260
+ return (struct envoy_config_core_v3_CidrRange**)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 96), len);
261
+ }
262
+ UPB_INLINE struct envoy_config_core_v3_CidrRange** envoy_config_listener_v3_FilterChainMatch_resize_direct_source_prefix_ranges(envoy_config_listener_v3_FilterChainMatch *msg, size_t len, upb_arena *arena) {
263
+ return (struct envoy_config_core_v3_CidrRange**)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 96), len, UPB_SIZE(2, 3), arena);
264
+ }
265
+ UPB_INLINE struct envoy_config_core_v3_CidrRange* envoy_config_listener_v3_FilterChainMatch_add_direct_source_prefix_ranges(envoy_config_listener_v3_FilterChainMatch *msg, upb_arena *arena) {
266
+ struct envoy_config_core_v3_CidrRange* sub = (struct envoy_config_core_v3_CidrRange*)_upb_msg_new(&envoy_config_core_v3_CidrRange_msginit, arena);
267
+ bool ok = _upb_array_append_accessor2(
268
+ msg, UPB_SIZE(52, 96), UPB_SIZE(2, 3), &sub, arena);
269
+ if (!ok) return NULL;
270
+ return sub;
271
+ }
257
272
 
258
273
  /* envoy.config.listener.v3.FilterChain */
259
274
 
@@ -0,0 +1,48 @@
1
+ /* This file was generated by upbc (the upb compiler) from the input
2
+ * file:
3
+ *
4
+ * envoy/config/listener/v3/quic_config.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/listener/v3/quic_config.upb.h"
12
+ #include "envoy/config/core/v3/base.upb.h"
13
+ #include "envoy/config/core/v3/extension.upb.h"
14
+ #include "envoy/config/core/v3/protocol.upb.h"
15
+ #include "google/protobuf/duration.upb.h"
16
+ #include "google/protobuf/wrappers.upb.h"
17
+ #include "udpa/annotations/status.upb.h"
18
+ #include "udpa/annotations/versioning.upb.h"
19
+ #include "validate/validate.upb.h"
20
+
21
+ #include "upb/port_def.inc"
22
+
23
+ static const upb_msglayout *const envoy_config_listener_v3_QuicProtocolOptions_submsgs[5] = {
24
+ &envoy_config_core_v3_QuicProtocolOptions_msginit,
25
+ &envoy_config_core_v3_RuntimeFeatureFlag_msginit,
26
+ &envoy_config_core_v3_TypedExtensionConfig_msginit,
27
+ &google_protobuf_Duration_msginit,
28
+ &google_protobuf_UInt32Value_msginit,
29
+ };
30
+
31
+ static const upb_msglayout_field envoy_config_listener_v3_QuicProtocolOptions__fields[7] = {
32
+ {1, UPB_SIZE(4, 8), 1, 0, 11, 1},
33
+ {2, UPB_SIZE(8, 16), 2, 3, 11, 1},
34
+ {3, UPB_SIZE(12, 24), 3, 3, 11, 1},
35
+ {4, UPB_SIZE(16, 32), 4, 1, 11, 1},
36
+ {5, UPB_SIZE(20, 40), 5, 4, 11, 1},
37
+ {6, UPB_SIZE(24, 48), 6, 2, 11, 1},
38
+ {7, UPB_SIZE(28, 56), 7, 2, 11, 1},
39
+ };
40
+
41
+ const upb_msglayout envoy_config_listener_v3_QuicProtocolOptions_msginit = {
42
+ &envoy_config_listener_v3_QuicProtocolOptions_submsgs[0],
43
+ &envoy_config_listener_v3_QuicProtocolOptions__fields[0],
44
+ UPB_SIZE(32, 64), 7, false, 255,
45
+ };
46
+
47
+ #include "upb/port_undef.inc"
48
+
@@ -0,0 +1,171 @@
1
+ /* This file was generated by upbc (the upb compiler) from the input
2
+ * file:
3
+ *
4
+ * envoy/config/listener/v3/quic_config.proto
5
+ *
6
+ * Do not edit -- your changes will be discarded when the file is
7
+ * regenerated. */
8
+
9
+ #ifndef ENVOY_CONFIG_LISTENER_V3_QUIC_CONFIG_PROTO_UPB_H_
10
+ #define ENVOY_CONFIG_LISTENER_V3_QUIC_CONFIG_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_listener_v3_QuicProtocolOptions;
24
+ typedef struct envoy_config_listener_v3_QuicProtocolOptions envoy_config_listener_v3_QuicProtocolOptions;
25
+ extern const upb_msglayout envoy_config_listener_v3_QuicProtocolOptions_msginit;
26
+ struct envoy_config_core_v3_QuicProtocolOptions;
27
+ struct envoy_config_core_v3_RuntimeFeatureFlag;
28
+ struct envoy_config_core_v3_TypedExtensionConfig;
29
+ struct google_protobuf_Duration;
30
+ struct google_protobuf_UInt32Value;
31
+ extern const upb_msglayout envoy_config_core_v3_QuicProtocolOptions_msginit;
32
+ extern const upb_msglayout envoy_config_core_v3_RuntimeFeatureFlag_msginit;
33
+ extern const upb_msglayout envoy_config_core_v3_TypedExtensionConfig_msginit;
34
+ extern const upb_msglayout google_protobuf_Duration_msginit;
35
+ extern const upb_msglayout google_protobuf_UInt32Value_msginit;
36
+
37
+
38
+ /* envoy.config.listener.v3.QuicProtocolOptions */
39
+
40
+ UPB_INLINE envoy_config_listener_v3_QuicProtocolOptions *envoy_config_listener_v3_QuicProtocolOptions_new(upb_arena *arena) {
41
+ return (envoy_config_listener_v3_QuicProtocolOptions *)_upb_msg_new(&envoy_config_listener_v3_QuicProtocolOptions_msginit, arena);
42
+ }
43
+ UPB_INLINE envoy_config_listener_v3_QuicProtocolOptions *envoy_config_listener_v3_QuicProtocolOptions_parse(const char *buf, size_t size,
44
+ upb_arena *arena) {
45
+ envoy_config_listener_v3_QuicProtocolOptions *ret = envoy_config_listener_v3_QuicProtocolOptions_new(arena);
46
+ return (ret && upb_decode(buf, size, ret, &envoy_config_listener_v3_QuicProtocolOptions_msginit, arena)) ? ret : NULL;
47
+ }
48
+ UPB_INLINE envoy_config_listener_v3_QuicProtocolOptions *envoy_config_listener_v3_QuicProtocolOptions_parse_ex(const char *buf, size_t size,
49
+ upb_arena *arena, int options) {
50
+ envoy_config_listener_v3_QuicProtocolOptions *ret = envoy_config_listener_v3_QuicProtocolOptions_new(arena);
51
+ return (ret && _upb_decode(buf, size, ret, &envoy_config_listener_v3_QuicProtocolOptions_msginit, arena, options))
52
+ ? ret : NULL;
53
+ }
54
+ UPB_INLINE char *envoy_config_listener_v3_QuicProtocolOptions_serialize(const envoy_config_listener_v3_QuicProtocolOptions *msg, upb_arena *arena, size_t *len) {
55
+ return upb_encode(msg, &envoy_config_listener_v3_QuicProtocolOptions_msginit, arena, len);
56
+ }
57
+
58
+ UPB_INLINE bool envoy_config_listener_v3_QuicProtocolOptions_has_quic_protocol_options(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return _upb_hasbit(msg, 1); }
59
+ UPB_INLINE const struct envoy_config_core_v3_QuicProtocolOptions* envoy_config_listener_v3_QuicProtocolOptions_quic_protocol_options(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_QuicProtocolOptions*); }
60
+ UPB_INLINE bool envoy_config_listener_v3_QuicProtocolOptions_has_idle_timeout(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return _upb_hasbit(msg, 2); }
61
+ UPB_INLINE const struct google_protobuf_Duration* envoy_config_listener_v3_QuicProtocolOptions_idle_timeout(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Duration*); }
62
+ UPB_INLINE bool envoy_config_listener_v3_QuicProtocolOptions_has_crypto_handshake_timeout(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return _upb_hasbit(msg, 3); }
63
+ UPB_INLINE const struct google_protobuf_Duration* envoy_config_listener_v3_QuicProtocolOptions_crypto_handshake_timeout(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Duration*); }
64
+ UPB_INLINE bool envoy_config_listener_v3_QuicProtocolOptions_has_enabled(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return _upb_hasbit(msg, 4); }
65
+ UPB_INLINE const struct envoy_config_core_v3_RuntimeFeatureFlag* envoy_config_listener_v3_QuicProtocolOptions_enabled(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct envoy_config_core_v3_RuntimeFeatureFlag*); }
66
+ UPB_INLINE bool envoy_config_listener_v3_QuicProtocolOptions_has_packets_to_read_to_connection_count_ratio(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return _upb_hasbit(msg, 5); }
67
+ UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_listener_v3_QuicProtocolOptions_packets_to_read_to_connection_count_ratio(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct google_protobuf_UInt32Value*); }
68
+ UPB_INLINE bool envoy_config_listener_v3_QuicProtocolOptions_has_crypto_stream_config(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return _upb_hasbit(msg, 6); }
69
+ UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_listener_v3_QuicProtocolOptions_crypto_stream_config(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 48), const struct envoy_config_core_v3_TypedExtensionConfig*); }
70
+ UPB_INLINE bool envoy_config_listener_v3_QuicProtocolOptions_has_proof_source_config(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return _upb_hasbit(msg, 7); }
71
+ UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_listener_v3_QuicProtocolOptions_proof_source_config(const envoy_config_listener_v3_QuicProtocolOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const struct envoy_config_core_v3_TypedExtensionConfig*); }
72
+
73
+ UPB_INLINE void envoy_config_listener_v3_QuicProtocolOptions_set_quic_protocol_options(envoy_config_listener_v3_QuicProtocolOptions *msg, struct envoy_config_core_v3_QuicProtocolOptions* value) {
74
+ _upb_sethas(msg, 1);
75
+ *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_config_core_v3_QuicProtocolOptions*) = value;
76
+ }
77
+ UPB_INLINE struct envoy_config_core_v3_QuicProtocolOptions* envoy_config_listener_v3_QuicProtocolOptions_mutable_quic_protocol_options(envoy_config_listener_v3_QuicProtocolOptions *msg, upb_arena *arena) {
78
+ struct envoy_config_core_v3_QuicProtocolOptions* sub = (struct envoy_config_core_v3_QuicProtocolOptions*)envoy_config_listener_v3_QuicProtocolOptions_quic_protocol_options(msg);
79
+ if (sub == NULL) {
80
+ sub = (struct envoy_config_core_v3_QuicProtocolOptions*)_upb_msg_new(&envoy_config_core_v3_QuicProtocolOptions_msginit, arena);
81
+ if (!sub) return NULL;
82
+ envoy_config_listener_v3_QuicProtocolOptions_set_quic_protocol_options(msg, sub);
83
+ }
84
+ return sub;
85
+ }
86
+ UPB_INLINE void envoy_config_listener_v3_QuicProtocolOptions_set_idle_timeout(envoy_config_listener_v3_QuicProtocolOptions *msg, struct google_protobuf_Duration* value) {
87
+ _upb_sethas(msg, 2);
88
+ *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_Duration*) = value;
89
+ }
90
+ UPB_INLINE struct google_protobuf_Duration* envoy_config_listener_v3_QuicProtocolOptions_mutable_idle_timeout(envoy_config_listener_v3_QuicProtocolOptions *msg, upb_arena *arena) {
91
+ struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_listener_v3_QuicProtocolOptions_idle_timeout(msg);
92
+ if (sub == NULL) {
93
+ sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
94
+ if (!sub) return NULL;
95
+ envoy_config_listener_v3_QuicProtocolOptions_set_idle_timeout(msg, sub);
96
+ }
97
+ return sub;
98
+ }
99
+ UPB_INLINE void envoy_config_listener_v3_QuicProtocolOptions_set_crypto_handshake_timeout(envoy_config_listener_v3_QuicProtocolOptions *msg, struct google_protobuf_Duration* value) {
100
+ _upb_sethas(msg, 3);
101
+ *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_Duration*) = value;
102
+ }
103
+ UPB_INLINE struct google_protobuf_Duration* envoy_config_listener_v3_QuicProtocolOptions_mutable_crypto_handshake_timeout(envoy_config_listener_v3_QuicProtocolOptions *msg, upb_arena *arena) {
104
+ struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_listener_v3_QuicProtocolOptions_crypto_handshake_timeout(msg);
105
+ if (sub == NULL) {
106
+ sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
107
+ if (!sub) return NULL;
108
+ envoy_config_listener_v3_QuicProtocolOptions_set_crypto_handshake_timeout(msg, sub);
109
+ }
110
+ return sub;
111
+ }
112
+ UPB_INLINE void envoy_config_listener_v3_QuicProtocolOptions_set_enabled(envoy_config_listener_v3_QuicProtocolOptions *msg, struct envoy_config_core_v3_RuntimeFeatureFlag* value) {
113
+ _upb_sethas(msg, 4);
114
+ *UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct envoy_config_core_v3_RuntimeFeatureFlag*) = value;
115
+ }
116
+ UPB_INLINE struct envoy_config_core_v3_RuntimeFeatureFlag* envoy_config_listener_v3_QuicProtocolOptions_mutable_enabled(envoy_config_listener_v3_QuicProtocolOptions *msg, upb_arena *arena) {
117
+ struct envoy_config_core_v3_RuntimeFeatureFlag* sub = (struct envoy_config_core_v3_RuntimeFeatureFlag*)envoy_config_listener_v3_QuicProtocolOptions_enabled(msg);
118
+ if (sub == NULL) {
119
+ sub = (struct envoy_config_core_v3_RuntimeFeatureFlag*)_upb_msg_new(&envoy_config_core_v3_RuntimeFeatureFlag_msginit, arena);
120
+ if (!sub) return NULL;
121
+ envoy_config_listener_v3_QuicProtocolOptions_set_enabled(msg, sub);
122
+ }
123
+ return sub;
124
+ }
125
+ UPB_INLINE void envoy_config_listener_v3_QuicProtocolOptions_set_packets_to_read_to_connection_count_ratio(envoy_config_listener_v3_QuicProtocolOptions *msg, struct google_protobuf_UInt32Value* value) {
126
+ _upb_sethas(msg, 5);
127
+ *UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct google_protobuf_UInt32Value*) = value;
128
+ }
129
+ UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_listener_v3_QuicProtocolOptions_mutable_packets_to_read_to_connection_count_ratio(envoy_config_listener_v3_QuicProtocolOptions *msg, upb_arena *arena) {
130
+ struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_listener_v3_QuicProtocolOptions_packets_to_read_to_connection_count_ratio(msg);
131
+ if (sub == NULL) {
132
+ sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
133
+ if (!sub) return NULL;
134
+ envoy_config_listener_v3_QuicProtocolOptions_set_packets_to_read_to_connection_count_ratio(msg, sub);
135
+ }
136
+ return sub;
137
+ }
138
+ UPB_INLINE void envoy_config_listener_v3_QuicProtocolOptions_set_crypto_stream_config(envoy_config_listener_v3_QuicProtocolOptions *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) {
139
+ _upb_sethas(msg, 6);
140
+ *UPB_PTR_AT(msg, UPB_SIZE(24, 48), struct envoy_config_core_v3_TypedExtensionConfig*) = value;
141
+ }
142
+ UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_listener_v3_QuicProtocolOptions_mutable_crypto_stream_config(envoy_config_listener_v3_QuicProtocolOptions *msg, upb_arena *arena) {
143
+ struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)envoy_config_listener_v3_QuicProtocolOptions_crypto_stream_config(msg);
144
+ if (sub == NULL) {
145
+ sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_msg_new(&envoy_config_core_v3_TypedExtensionConfig_msginit, arena);
146
+ if (!sub) return NULL;
147
+ envoy_config_listener_v3_QuicProtocolOptions_set_crypto_stream_config(msg, sub);
148
+ }
149
+ return sub;
150
+ }
151
+ UPB_INLINE void envoy_config_listener_v3_QuicProtocolOptions_set_proof_source_config(envoy_config_listener_v3_QuicProtocolOptions *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) {
152
+ _upb_sethas(msg, 7);
153
+ *UPB_PTR_AT(msg, UPB_SIZE(28, 56), struct envoy_config_core_v3_TypedExtensionConfig*) = value;
154
+ }
155
+ UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_listener_v3_QuicProtocolOptions_mutable_proof_source_config(envoy_config_listener_v3_QuicProtocolOptions *msg, upb_arena *arena) {
156
+ struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)envoy_config_listener_v3_QuicProtocolOptions_proof_source_config(msg);
157
+ if (sub == NULL) {
158
+ sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_msg_new(&envoy_config_core_v3_TypedExtensionConfig_msginit, arena);
159
+ if (!sub) return NULL;
160
+ envoy_config_listener_v3_QuicProtocolOptions_set_proof_source_config(msg, sub);
161
+ }
162
+ return sub;
163
+ }
164
+
165
+ #ifdef __cplusplus
166
+ } /* extern "C" */
167
+ #endif
168
+
169
+ #include "upb/port_undef.inc"
170
+
171
+ #endif /* ENVOY_CONFIG_LISTENER_V3_QUIC_CONFIG_PROTO_UPB_H_ */
@@ -9,25 +9,27 @@
9
9
  #include <stddef.h>
10
10
  #include "upb/msg.h"
11
11
  #include "envoy/config/listener/v3/udp_listener_config.upb.h"
12
- #include "google/protobuf/any.upb.h"
12
+ #include "envoy/config/core/v3/udp_socket_config.upb.h"
13
+ #include "envoy/config/listener/v3/quic_config.upb.h"
13
14
  #include "udpa/annotations/status.upb.h"
14
15
  #include "udpa/annotations/versioning.upb.h"
15
16
 
16
17
  #include "upb/port_def.inc"
17
18
 
18
- static const upb_msglayout *const envoy_config_listener_v3_UdpListenerConfig_submsgs[1] = {
19
- &google_protobuf_Any_msginit,
19
+ static const upb_msglayout *const envoy_config_listener_v3_UdpListenerConfig_submsgs[2] = {
20
+ &envoy_config_core_v3_UdpSocketConfig_msginit,
21
+ &envoy_config_listener_v3_QuicProtocolOptions_msginit,
20
22
  };
21
23
 
22
24
  static const upb_msglayout_field envoy_config_listener_v3_UdpListenerConfig__fields[2] = {
23
- {1, UPB_SIZE(0, 0), 0, 0, 9, 1},
24
- {3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, 1},
25
+ {5, UPB_SIZE(4, 8), 1, 0, 11, 1},
26
+ {7, UPB_SIZE(8, 16), 2, 1, 11, 1},
25
27
  };
26
28
 
27
29
  const upb_msglayout envoy_config_listener_v3_UdpListenerConfig_msginit = {
28
30
  &envoy_config_listener_v3_UdpListenerConfig_submsgs[0],
29
31
  &envoy_config_listener_v3_UdpListenerConfig__fields[0],
30
- UPB_SIZE(16, 32), 2, false, 255,
32
+ UPB_SIZE(16, 24), 2, false, 255,
31
33
  };
32
34
 
33
35
  const upb_msglayout envoy_config_listener_v3_ActiveRawUdpListenerConfig_msginit = {
@@ -26,8 +26,10 @@ typedef struct envoy_config_listener_v3_UdpListenerConfig envoy_config_listener_
26
26
  typedef struct envoy_config_listener_v3_ActiveRawUdpListenerConfig envoy_config_listener_v3_ActiveRawUdpListenerConfig;
27
27
  extern const upb_msglayout envoy_config_listener_v3_UdpListenerConfig_msginit;
28
28
  extern const upb_msglayout envoy_config_listener_v3_ActiveRawUdpListenerConfig_msginit;
29
- struct google_protobuf_Any;
30
- extern const upb_msglayout google_protobuf_Any_msginit;
29
+ struct envoy_config_core_v3_UdpSocketConfig;
30
+ struct envoy_config_listener_v3_QuicProtocolOptions;
31
+ extern const upb_msglayout envoy_config_core_v3_UdpSocketConfig_msginit;
32
+ extern const upb_msglayout envoy_config_listener_v3_QuicProtocolOptions_msginit;
31
33
 
32
34
 
33
35
  /* envoy.config.listener.v3.UdpListenerConfig */
@@ -50,28 +52,34 @@ UPB_INLINE char *envoy_config_listener_v3_UdpListenerConfig_serialize(const envo
50
52
  return upb_encode(msg, &envoy_config_listener_v3_UdpListenerConfig_msginit, arena, len);
51
53
  }
52
54
 
53
- typedef enum {
54
- envoy_config_listener_v3_UdpListenerConfig_config_type_typed_config = 3,
55
- envoy_config_listener_v3_UdpListenerConfig_config_type_NOT_SET = 0
56
- } envoy_config_listener_v3_UdpListenerConfig_config_type_oneofcases;
57
- UPB_INLINE envoy_config_listener_v3_UdpListenerConfig_config_type_oneofcases envoy_config_listener_v3_UdpListenerConfig_config_type_case(const envoy_config_listener_v3_UdpListenerConfig* msg) { return (envoy_config_listener_v3_UdpListenerConfig_config_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); }
55
+ UPB_INLINE bool envoy_config_listener_v3_UdpListenerConfig_has_downstream_socket_config(const envoy_config_listener_v3_UdpListenerConfig *msg) { return _upb_hasbit(msg, 1); }
56
+ UPB_INLINE const struct envoy_config_core_v3_UdpSocketConfig* envoy_config_listener_v3_UdpListenerConfig_downstream_socket_config(const envoy_config_listener_v3_UdpListenerConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_UdpSocketConfig*); }
57
+ UPB_INLINE bool envoy_config_listener_v3_UdpListenerConfig_has_quic_options(const envoy_config_listener_v3_UdpListenerConfig *msg) { return _upb_hasbit(msg, 2); }
58
+ UPB_INLINE const struct envoy_config_listener_v3_QuicProtocolOptions* envoy_config_listener_v3_UdpListenerConfig_quic_options(const envoy_config_listener_v3_UdpListenerConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_config_listener_v3_QuicProtocolOptions*); }
58
59
 
59
- UPB_INLINE upb_strview envoy_config_listener_v3_UdpListenerConfig_udp_listener_name(const envoy_config_listener_v3_UdpListenerConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
60
- UPB_INLINE bool envoy_config_listener_v3_UdpListenerConfig_has_typed_config(const envoy_config_listener_v3_UdpListenerConfig *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; }
61
- UPB_INLINE const struct google_protobuf_Any* envoy_config_listener_v3_UdpListenerConfig_typed_config(const envoy_config_listener_v3_UdpListenerConfig *msg) { return UPB_READ_ONEOF(msg, const struct google_protobuf_Any*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); }
62
-
63
- UPB_INLINE void envoy_config_listener_v3_UdpListenerConfig_set_udp_listener_name(envoy_config_listener_v3_UdpListenerConfig *msg, upb_strview value) {
64
- *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
60
+ UPB_INLINE void envoy_config_listener_v3_UdpListenerConfig_set_downstream_socket_config(envoy_config_listener_v3_UdpListenerConfig *msg, struct envoy_config_core_v3_UdpSocketConfig* value) {
61
+ _upb_sethas(msg, 1);
62
+ *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_config_core_v3_UdpSocketConfig*) = value;
63
+ }
64
+ UPB_INLINE struct envoy_config_core_v3_UdpSocketConfig* envoy_config_listener_v3_UdpListenerConfig_mutable_downstream_socket_config(envoy_config_listener_v3_UdpListenerConfig *msg, upb_arena *arena) {
65
+ struct envoy_config_core_v3_UdpSocketConfig* sub = (struct envoy_config_core_v3_UdpSocketConfig*)envoy_config_listener_v3_UdpListenerConfig_downstream_socket_config(msg);
66
+ if (sub == NULL) {
67
+ sub = (struct envoy_config_core_v3_UdpSocketConfig*)_upb_msg_new(&envoy_config_core_v3_UdpSocketConfig_msginit, arena);
68
+ if (!sub) return NULL;
69
+ envoy_config_listener_v3_UdpListenerConfig_set_downstream_socket_config(msg, sub);
70
+ }
71
+ return sub;
65
72
  }
66
- UPB_INLINE void envoy_config_listener_v3_UdpListenerConfig_set_typed_config(envoy_config_listener_v3_UdpListenerConfig *msg, struct google_protobuf_Any* value) {
67
- UPB_WRITE_ONEOF(msg, struct google_protobuf_Any*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3);
73
+ UPB_INLINE void envoy_config_listener_v3_UdpListenerConfig_set_quic_options(envoy_config_listener_v3_UdpListenerConfig *msg, struct envoy_config_listener_v3_QuicProtocolOptions* value) {
74
+ _upb_sethas(msg, 2);
75
+ *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_config_listener_v3_QuicProtocolOptions*) = value;
68
76
  }
69
- UPB_INLINE struct google_protobuf_Any* envoy_config_listener_v3_UdpListenerConfig_mutable_typed_config(envoy_config_listener_v3_UdpListenerConfig *msg, upb_arena *arena) {
70
- struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_config_listener_v3_UdpListenerConfig_typed_config(msg);
77
+ UPB_INLINE struct envoy_config_listener_v3_QuicProtocolOptions* envoy_config_listener_v3_UdpListenerConfig_mutable_quic_options(envoy_config_listener_v3_UdpListenerConfig *msg, upb_arena *arena) {
78
+ struct envoy_config_listener_v3_QuicProtocolOptions* sub = (struct envoy_config_listener_v3_QuicProtocolOptions*)envoy_config_listener_v3_UdpListenerConfig_quic_options(msg);
71
79
  if (sub == NULL) {
72
- sub = (struct google_protobuf_Any*)_upb_msg_new(&google_protobuf_Any_msginit, arena);
80
+ sub = (struct envoy_config_listener_v3_QuicProtocolOptions*)_upb_msg_new(&envoy_config_listener_v3_QuicProtocolOptions_msginit, arena);
73
81
  if (!sub) return NULL;
74
- envoy_config_listener_v3_UdpListenerConfig_set_typed_config(msg, sub);
82
+ envoy_config_listener_v3_UdpListenerConfig_set_quic_options(msg, sub);
75
83
  }
76
84
  return sub;
77
85
  }
@@ -16,6 +16,7 @@
16
16
  #include "envoy/type/matcher/v3/string.upb.h"
17
17
  #include "google/api/expr/v1alpha1/checked.upb.h"
18
18
  #include "google/api/expr/v1alpha1/syntax.upb.h"
19
+ #include "envoy/annotations/deprecation.upb.h"
19
20
  #include "udpa/annotations/migrate.upb.h"
20
21
  #include "udpa/annotations/status.upb.h"
21
22
  #include "udpa/annotations/versioning.upb.h"
@@ -11,6 +11,7 @@
11
11
  #include "envoy/config/route/v3/route.upb.h"
12
12
  #include "envoy/config/core/v3/base.upb.h"
13
13
  #include "envoy/config/core/v3/config_source.upb.h"
14
+ #include "envoy/config/core/v3/extension.upb.h"
14
15
  #include "envoy/config/route/v3/route_components.upb.h"
15
16
  #include "google/protobuf/wrappers.upb.h"
16
17
  #include "udpa/annotations/status.upb.h"
@@ -19,32 +20,48 @@
19
20
 
20
21
  #include "upb/port_def.inc"
21
22
 
22
- static const upb_msglayout *const envoy_config_route_v3_RouteConfiguration_submsgs[5] = {
23
+ static const upb_msglayout *const envoy_config_route_v3_RouteConfiguration_submsgs[6] = {
23
24
  &envoy_config_core_v3_HeaderValueOption_msginit,
25
+ &envoy_config_route_v3_ClusterSpecifierPlugin_msginit,
24
26
  &envoy_config_route_v3_Vhds_msginit,
25
27
  &envoy_config_route_v3_VirtualHost_msginit,
26
28
  &google_protobuf_BoolValue_msginit,
27
29
  &google_protobuf_UInt32Value_msginit,
28
30
  };
29
31
 
30
- static const upb_msglayout_field envoy_config_route_v3_RouteConfiguration__fields[11] = {
32
+ static const upb_msglayout_field envoy_config_route_v3_RouteConfiguration__fields[12] = {
31
33
  {1, UPB_SIZE(4, 8), 0, 0, 9, 1},
32
- {2, UPB_SIZE(24, 48), 0, 2, 11, 3},
34
+ {2, UPB_SIZE(24, 48), 0, 3, 11, 3},
33
35
  {3, UPB_SIZE(28, 56), 0, 0, 9, 3},
34
36
  {4, UPB_SIZE(32, 64), 0, 0, 11, 3},
35
37
  {5, UPB_SIZE(36, 72), 0, 0, 9, 3},
36
38
  {6, UPB_SIZE(40, 80), 0, 0, 11, 3},
37
- {7, UPB_SIZE(12, 24), 1, 3, 11, 1},
39
+ {7, UPB_SIZE(12, 24), 1, 4, 11, 1},
38
40
  {8, UPB_SIZE(44, 88), 0, 0, 9, 3},
39
- {9, UPB_SIZE(16, 32), 2, 1, 11, 1},
41
+ {9, UPB_SIZE(16, 32), 2, 2, 11, 1},
40
42
  {10, UPB_SIZE(1, 1), 0, 0, 8, 1},
41
- {11, UPB_SIZE(20, 40), 3, 4, 11, 1},
43
+ {11, UPB_SIZE(20, 40), 3, 5, 11, 1},
44
+ {12, UPB_SIZE(48, 96), 0, 1, 11, 3},
42
45
  };
43
46
 
44
47
  const upb_msglayout envoy_config_route_v3_RouteConfiguration_msginit = {
45
48
  &envoy_config_route_v3_RouteConfiguration_submsgs[0],
46
49
  &envoy_config_route_v3_RouteConfiguration__fields[0],
47
- UPB_SIZE(48, 96), 11, false, 255,
50
+ UPB_SIZE(56, 112), 12, false, 255,
51
+ };
52
+
53
+ static const upb_msglayout *const envoy_config_route_v3_ClusterSpecifierPlugin_submsgs[1] = {
54
+ &envoy_config_core_v3_TypedExtensionConfig_msginit,
55
+ };
56
+
57
+ static const upb_msglayout_field envoy_config_route_v3_ClusterSpecifierPlugin__fields[1] = {
58
+ {1, UPB_SIZE(4, 8), 1, 0, 11, 1},
59
+ };
60
+
61
+ const upb_msglayout envoy_config_route_v3_ClusterSpecifierPlugin_msginit = {
62
+ &envoy_config_route_v3_ClusterSpecifierPlugin_submsgs[0],
63
+ &envoy_config_route_v3_ClusterSpecifierPlugin__fields[0],
64
+ UPB_SIZE(8, 16), 1, false, 255,
48
65
  };
49
66
 
50
67
  static const upb_msglayout *const envoy_config_route_v3_Vhds_submsgs[1] = {