grpc 1.59.2 → 1.62.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2709) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +1065 -955
  3. data/include/grpc/event_engine/event_engine.h +25 -16
  4. data/include/grpc/event_engine/extensible.h +68 -0
  5. data/include/grpc/event_engine/internal/memory_allocator_impl.h +6 -0
  6. data/include/grpc/event_engine/internal/slice_cast.h +12 -0
  7. data/include/grpc/event_engine/memory_allocator.h +3 -1
  8. data/include/grpc/event_engine/slice.h +5 -0
  9. data/include/grpc/grpc_crl_provider.h +94 -0
  10. data/include/grpc/grpc_security.h +38 -1
  11. data/include/grpc/impl/call.h +29 -0
  12. data/include/grpc/impl/channel_arg_names.h +26 -1
  13. data/include/grpc/impl/slice_type.h +1 -1
  14. data/include/grpc/module.modulemap +2 -0
  15. data/include/grpc/support/port_platform.h +12 -20
  16. data/src/core/client_channel/backend_metric.cc +95 -0
  17. data/src/core/client_channel/backend_metric.h +47 -0
  18. data/src/core/client_channel/backup_poller.cc +178 -0
  19. data/src/core/client_channel/backup_poller.h +37 -0
  20. data/src/core/client_channel/channel_connectivity.cc +265 -0
  21. data/src/core/client_channel/client_channel_channelz.cc +93 -0
  22. data/src/core/client_channel/client_channel_channelz.h +85 -0
  23. data/src/core/client_channel/client_channel_factory.cc +32 -0
  24. data/src/core/client_channel/client_channel_factory.h +46 -0
  25. data/src/core/client_channel/client_channel_filter.cc +3654 -0
  26. data/src/core/client_channel/client_channel_filter.h +636 -0
  27. data/src/core/client_channel/client_channel_internal.h +79 -0
  28. data/src/core/client_channel/client_channel_plugin.cc +55 -0
  29. data/src/core/client_channel/client_channel_service_config.cc +153 -0
  30. data/src/core/client_channel/client_channel_service_config.h +111 -0
  31. data/src/core/client_channel/config_selector.cc +60 -0
  32. data/src/core/client_channel/config_selector.h +125 -0
  33. data/src/core/client_channel/connector.h +87 -0
  34. data/src/core/client_channel/dynamic_filters.cc +174 -0
  35. data/src/core/client_channel/dynamic_filters.h +110 -0
  36. data/src/core/client_channel/global_subchannel_pool.cc +65 -0
  37. data/src/core/client_channel/global_subchannel_pool.h +63 -0
  38. data/src/core/client_channel/http_proxy_mapper.cc +305 -0
  39. data/src/core/client_channel/http_proxy_mapper.h +53 -0
  40. data/src/core/client_channel/local_subchannel_pool.cc +60 -0
  41. data/src/core/client_channel/local_subchannel_pool.h +59 -0
  42. data/src/core/client_channel/retry_filter.cc +160 -0
  43. data/src/core/client_channel/retry_filter.h +122 -0
  44. data/src/core/client_channel/retry_filter_legacy_call_data.cc +2054 -0
  45. data/src/core/client_channel/retry_filter_legacy_call_data.h +443 -0
  46. data/src/core/client_channel/retry_service_config.cc +283 -0
  47. data/src/core/client_channel/retry_service_config.h +105 -0
  48. data/src/core/client_channel/retry_throttle.cc +139 -0
  49. data/src/core/client_channel/retry_throttle.h +92 -0
  50. data/src/core/client_channel/service_config_channel_arg_filter.cc +136 -0
  51. data/src/core/client_channel/subchannel.cc +812 -0
  52. data/src/core/client_channel/subchannel.h +387 -0
  53. data/src/core/client_channel/subchannel_interface_internal.h +41 -0
  54. data/src/core/client_channel/subchannel_pool_interface.cc +66 -0
  55. data/src/core/client_channel/subchannel_pool_interface.h +100 -0
  56. data/src/core/client_channel/subchannel_stream_client.cc +468 -0
  57. data/src/core/client_channel/subchannel_stream_client.h +225 -0
  58. data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +55 -15
  59. data/src/core/ext/filters/backend_metrics/backend_metric_filter.h +20 -6
  60. data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +28 -39
  61. data/src/core/ext/filters/channel_idle/channel_idle_filter.h +18 -10
  62. data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +326 -0
  63. data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h +143 -0
  64. data/src/core/ext/filters/deadline/deadline_filter.cc +20 -23
  65. data/src/core/ext/filters/deadline/deadline_filter.h +0 -4
  66. data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +19 -14
  67. data/src/core/ext/filters/fault_injection/fault_injection_filter.h +13 -4
  68. data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h +1 -1
  69. data/src/core/ext/filters/http/client/http_client_filter.cc +29 -39
  70. data/src/core/ext/filters/http/client/http_client_filter.h +10 -5
  71. data/src/core/ext/filters/http/client_authority_filter.cc +22 -24
  72. data/src/core/ext/filters/http/client_authority_filter.h +12 -4
  73. data/src/core/ext/filters/http/http_filters_plugin.cc +58 -38
  74. data/src/core/ext/filters/http/message_compress/compression_filter.cc +55 -84
  75. data/src/core/ext/filters/http/message_compress/compression_filter.h +54 -12
  76. data/src/core/ext/filters/http/message_compress/legacy_compression_filter.cc +325 -0
  77. data/src/core/ext/filters/http/message_compress/legacy_compression_filter.h +139 -0
  78. data/src/core/ext/filters/http/server/http_server_filter.cc +41 -43
  79. data/src/core/ext/filters/http/server/http_server_filter.h +11 -4
  80. data/src/core/ext/filters/message_size/message_size_filter.cc +79 -109
  81. data/src/core/ext/filters/message_size/message_size_filter.h +36 -24
  82. data/src/core/ext/filters/rbac/rbac_filter.cc +24 -20
  83. data/src/core/ext/filters/rbac/rbac_filter.h +11 -4
  84. data/src/core/ext/filters/rbac/rbac_service_config_parser.h +1 -1
  85. data/src/core/ext/filters/server_config_selector/server_config_selector.h +2 -2
  86. data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +28 -15
  87. data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +60 -65
  88. data/src/core/ext/filters/stateful_session/stateful_session_filter.h +43 -9
  89. data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h +1 -1
  90. data/src/core/ext/gcp/metadata_query.cc +0 -1
  91. data/src/core/ext/transport/chttp2/alpn/alpn.cc +5 -2
  92. data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +9 -12
  93. data/src/core/ext/transport/chttp2/client/chttp2_connector.h +1 -1
  94. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +20 -19
  95. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +240 -273
  96. data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +47 -4
  97. data/src/core/ext/transport/chttp2/transport/context_list_entry.h +12 -2
  98. data/src/core/ext/transport/chttp2/transport/flow_control.cc +45 -83
  99. data/src/core/ext/transport/chttp2/transport/flow_control.h +58 -8
  100. data/src/core/ext/transport/chttp2/transport/frame.cc +506 -0
  101. data/src/core/ext/transport/chttp2/transport/frame.h +214 -0
  102. data/src/core/ext/transport/chttp2/transport/frame_data.cc +4 -3
  103. data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +0 -2
  104. data/src/core/ext/transport/chttp2/transport/frame_ping.cc +0 -2
  105. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +1 -3
  106. data/src/core/ext/transport/chttp2/transport/frame_settings.cc +33 -81
  107. data/src/core/ext/transport/chttp2/transport/frame_settings.h +4 -7
  108. data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +1 -3
  109. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +15 -21
  110. data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +12 -3
  111. data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +3 -4
  112. data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +37 -29
  113. data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +61 -36
  114. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +7 -5
  115. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +3 -1
  116. data/src/core/ext/transport/chttp2/transport/http2_settings.cc +122 -32
  117. data/src/core/ext/transport/chttp2/transport/http2_settings.h +142 -37
  118. data/src/core/ext/transport/chttp2/transport/internal.h +63 -61
  119. data/src/core/ext/transport/chttp2/transport/parsing.cc +35 -39
  120. data/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +2 -2
  121. data/src/core/ext/transport/chttp2/transport/writing.cc +45 -61
  122. data/src/core/ext/transport/inproc/inproc_transport.cc +168 -1237
  123. data/src/core/ext/transport/inproc/inproc_transport.h +8 -4
  124. data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +1303 -0
  125. data/src/core/ext/transport/inproc/legacy_inproc_transport.h +30 -0
  126. data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb.h +725 -0
  127. data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.c +149 -0
  128. data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.h +34 -0
  129. data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +827 -0
  130. data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +180 -0
  131. data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.h +33 -0
  132. data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb.h +733 -0
  133. data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.c +157 -0
  134. data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.h +34 -0
  135. data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb.h +2772 -0
  136. data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.c +532 -0
  137. data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.h +48 -0
  138. data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb.h +248 -0
  139. data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.c +66 -0
  140. data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.h +31 -0
  141. data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb.h +280 -0
  142. data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.c +74 -0
  143. data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.h +31 -0
  144. data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb.h +162 -0
  145. data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.c +56 -0
  146. data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.h +30 -0
  147. data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb.h +122 -0
  148. data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.c +49 -0
  149. data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.h +30 -0
  150. data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb.h +117 -0
  151. data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.c +49 -0
  152. data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.h +30 -0
  153. data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +928 -0
  154. data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +150 -0
  155. data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.h +31 -0
  156. data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb.h +117 -0
  157. data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.c +54 -0
  158. data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.h +30 -0
  159. data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb.h +122 -0
  160. data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.c +58 -0
  161. data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.h +33 -0
  162. data/src/core/ext/upb-gen/envoy/annotations/resource.upb.h +109 -0
  163. data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.c +55 -0
  164. data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.h +31 -0
  165. data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb.h +1753 -0
  166. data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.c +375 -0
  167. data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.h +45 -0
  168. data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +3607 -0
  169. data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +651 -0
  170. data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +51 -0
  171. data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +526 -0
  172. data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +125 -0
  173. data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.h +32 -0
  174. data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +3934 -0
  175. data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +737 -0
  176. data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +53 -0
  177. data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb.h +146 -0
  178. data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.c +57 -0
  179. data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.h +30 -0
  180. data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +687 -0
  181. data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +125 -0
  182. data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.h +30 -0
  183. data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb.h +1829 -0
  184. data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.c +394 -0
  185. data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.h +44 -0
  186. data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +1070 -0
  187. data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +227 -0
  188. data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.h +37 -0
  189. data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb.h +129 -0
  190. data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.c +55 -0
  191. data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.h +30 -0
  192. data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +2436 -0
  193. data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +578 -0
  194. data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +53 -0
  195. data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb.h +1130 -0
  196. data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.c +225 -0
  197. data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.h +36 -0
  198. data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb.h +110 -0
  199. data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.c +51 -0
  200. data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.h +30 -0
  201. data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb.h +116 -0
  202. data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.c +53 -0
  203. data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.h +30 -0
  204. data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb.h +250 -0
  205. data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.c +68 -0
  206. data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.h +31 -0
  207. data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb.h +1688 -0
  208. data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.c +378 -0
  209. data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.h +43 -0
  210. data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb.h +1938 -0
  211. data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.c +315 -0
  212. data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.h +38 -0
  213. data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +166 -0
  214. data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +55 -0
  215. data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.h +30 -0
  216. data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb.h +144 -0
  217. data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.c +55 -0
  218. data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.h +30 -0
  219. data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +2275 -0
  220. data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +483 -0
  221. data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +45 -0
  222. data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb.h +238 -0
  223. data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.c +70 -0
  224. data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.h +31 -0
  225. data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb.h +232 -0
  226. data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.c +72 -0
  227. data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.h +31 -0
  228. data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +287 -0
  229. data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +76 -0
  230. data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.h +31 -0
  231. data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb.h +335 -0
  232. data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.c +83 -0
  233. data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.h +31 -0
  234. data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb.h +129 -0
  235. data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.c +54 -0
  236. data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.h +30 -0
  237. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb.h +504 -0
  238. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.c +139 -0
  239. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.h +33 -0
  240. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +993 -0
  241. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +229 -0
  242. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.h +36 -0
  243. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb.h +911 -0
  244. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.c +179 -0
  245. data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.h +34 -0
  246. data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb.h +101 -0
  247. data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.c +50 -0
  248. data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.h +30 -0
  249. data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +1613 -0
  250. data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +268 -0
  251. data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +39 -0
  252. data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb.h +1447 -0
  253. data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.c +260 -0
  254. data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.h +36 -0
  255. data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb.h +327 -0
  256. data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.c +86 -0
  257. data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.h +30 -0
  258. data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb.h +197 -0
  259. data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.c +77 -0
  260. data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.h +31 -0
  261. data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb.h +183 -0
  262. data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.c +64 -0
  263. data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.h +30 -0
  264. data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +974 -0
  265. data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +219 -0
  266. data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.h +37 -0
  267. data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +1183 -0
  268. data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +250 -0
  269. data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +39 -0
  270. data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb.h +1704 -0
  271. data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.c +348 -0
  272. data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.h +40 -0
  273. data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb.h +885 -0
  274. data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.c +151 -0
  275. data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.h +32 -0
  276. data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +9754 -0
  277. data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +1670 -0
  278. data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +87 -0
  279. data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb.h +341 -0
  280. data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.c +97 -0
  281. data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.h +32 -0
  282. data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb.h +1545 -0
  283. data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.c +328 -0
  284. data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.h +41 -0
  285. data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb.h +119 -0
  286. data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.c +51 -0
  287. data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.h +30 -0
  288. data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb.h +119 -0
  289. data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.c +56 -0
  290. data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.h +30 -0
  291. data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb.h +190 -0
  292. data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.c +73 -0
  293. data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.h +31 -0
  294. data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb.h +202 -0
  295. data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.c +62 -0
  296. data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.h +30 -0
  297. data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb.h +409 -0
  298. data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.c +81 -0
  299. data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.h +30 -0
  300. data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +237 -0
  301. data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +65 -0
  302. data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.h +30 -0
  303. data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb.h +102 -0
  304. data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.c +51 -0
  305. data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.h +30 -0
  306. data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb.h +254 -0
  307. data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.c +85 -0
  308. data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.h +31 -0
  309. data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb.h +49 -0
  310. data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.c +33 -0
  311. data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.h +39 -0
  312. data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb.h +256 -0
  313. data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.c +87 -0
  314. data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.h +31 -0
  315. data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +201 -0
  316. data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +65 -0
  317. data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.h +30 -0
  318. data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +2709 -0
  319. data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.c +556 -0
  320. data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.h +45 -0
  321. data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +134 -0
  322. data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.c +46 -0
  323. data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.h +30 -0
  324. data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb.h +428 -0
  325. data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.c +116 -0
  326. data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.h +34 -0
  327. data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +656 -0
  328. data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +141 -0
  329. data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.h +32 -0
  330. data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +266 -0
  331. data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.c +87 -0
  332. data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.h +31 -0
  333. data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +463 -0
  334. data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +102 -0
  335. data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.h +31 -0
  336. data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +209 -0
  337. data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +75 -0
  338. data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.h +31 -0
  339. data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +3985 -0
  340. data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +682 -0
  341. data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +50 -0
  342. data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +101 -0
  343. data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.c +50 -0
  344. data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.h +30 -0
  345. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +239 -0
  346. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +67 -0
  347. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.h +30 -0
  348. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +488 -0
  349. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +135 -0
  350. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +34 -0
  351. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +86 -0
  352. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.c +44 -0
  353. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.h +30 -0
  354. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +250 -0
  355. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.c +68 -0
  356. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.h +30 -0
  357. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +101 -0
  358. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.c +50 -0
  359. data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.h +30 -0
  360. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +39 -0
  361. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.c +28 -0
  362. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.h +34 -0
  363. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +1484 -0
  364. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +267 -0
  365. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.h +36 -0
  366. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +361 -0
  367. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.c +108 -0
  368. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.h +32 -0
  369. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +1509 -0
  370. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.c +270 -0
  371. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.h +36 -0
  372. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +217 -0
  373. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +72 -0
  374. data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.h +31 -0
  375. data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h +712 -0
  376. data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.c +151 -0
  377. data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.h +33 -0
  378. data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb.h +73 -0
  379. data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.c +38 -0
  380. data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.h +30 -0
  381. data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb.h +2141 -0
  382. data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.c +402 -0
  383. data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.h +43 -0
  384. data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb.h +324 -0
  385. data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.c +84 -0
  386. data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.h +31 -0
  387. data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb.h +940 -0
  388. data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.c +188 -0
  389. data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.h +34 -0
  390. data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb.h +131 -0
  391. data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.c +54 -0
  392. data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.h +30 -0
  393. data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb.h +312 -0
  394. data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.c +86 -0
  395. data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.h +33 -0
  396. data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb.h +124 -0
  397. data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.c +53 -0
  398. data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.h +30 -0
  399. data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb.h +299 -0
  400. data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.c +105 -0
  401. data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.h +34 -0
  402. data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb.h +260 -0
  403. data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.c +76 -0
  404. data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.h +31 -0
  405. data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb.h +166 -0
  406. data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.c +55 -0
  407. data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.h +30 -0
  408. data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb.h +130 -0
  409. data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.c +54 -0
  410. data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.h +30 -0
  411. data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb.h +110 -0
  412. data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.c +51 -0
  413. data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.h +30 -0
  414. data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb.h +271 -0
  415. data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.c +96 -0
  416. data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.h +32 -0
  417. data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +109 -0
  418. data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +43 -0
  419. data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +31 -0
  420. data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb.h +306 -0
  421. data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.c +81 -0
  422. data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.h +31 -0
  423. data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb.h +230 -0
  424. data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.c +70 -0
  425. data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.h +31 -0
  426. data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb.h +476 -0
  427. data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.c +113 -0
  428. data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.h +33 -0
  429. data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb.h +525 -0
  430. data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.c +127 -0
  431. data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.h +36 -0
  432. data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb.h +506 -0
  433. data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.c +139 -0
  434. data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.h +34 -0
  435. data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb.h +227 -0
  436. data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.c +76 -0
  437. data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.h +32 -0
  438. data/src/core/ext/upb-gen/envoy/type/v3/http.upb.h +38 -0
  439. data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.c +26 -0
  440. data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.h +29 -0
  441. data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb.h +148 -0
  442. data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.c +46 -0
  443. data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.h +30 -0
  444. data/src/core/ext/upb-gen/envoy/type/v3/percent.upb.h +162 -0
  445. data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.c +64 -0
  446. data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.h +31 -0
  447. data/src/core/ext/upb-gen/envoy/type/v3/range.upb.h +238 -0
  448. data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.c +84 -0
  449. data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.h +32 -0
  450. data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb.h +232 -0
  451. data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.c +75 -0
  452. data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.h +31 -0
  453. data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb.h +42 -0
  454. data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.c +26 -0
  455. data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.h +29 -0
  456. data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb.h +117 -0
  457. data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.c +49 -0
  458. data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.h +30 -0
  459. data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb.h +146 -0
  460. data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.c +57 -0
  461. data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.h +30 -0
  462. data/src/core/ext/upb-gen/google/api/annotations.upb.h +56 -0
  463. data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.c +38 -0
  464. data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.h +30 -0
  465. data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb.h +1743 -0
  466. data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.c +369 -0
  467. data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.h +42 -0
  468. data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb.h +1829 -0
  469. data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.c +399 -0
  470. data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.h +43 -0
  471. data/src/core/ext/upb-gen/google/api/http.upb.h +496 -0
  472. data/src/core/ext/upb-gen/google/api/http.upb_minitable.c +111 -0
  473. data/src/core/ext/upb-gen/google/api/http.upb_minitable.h +32 -0
  474. data/src/core/ext/upb-gen/google/api/httpbody.upb.h +165 -0
  475. data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.c +52 -0
  476. data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.h +30 -0
  477. data/src/core/ext/upb-gen/google/protobuf/any.upb.h +99 -0
  478. data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.c +46 -0
  479. data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.h +30 -0
  480. data/src/core/ext/upb-gen/google/protobuf/descriptor.upb.h +6397 -0
  481. data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c +1357 -0
  482. data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.h +78 -0
  483. data/src/core/ext/upb-gen/google/protobuf/duration.upb.h +99 -0
  484. data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.c +46 -0
  485. data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.h +30 -0
  486. data/src/core/ext/upb-gen/google/protobuf/empty.upb.h +69 -0
  487. data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.c +35 -0
  488. data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.h +30 -0
  489. data/src/core/ext/upb-gen/google/protobuf/struct.upb.h +422 -0
  490. data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.c +115 -0
  491. data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.h +33 -0
  492. data/src/core/ext/upb-gen/google/protobuf/timestamp.upb.h +99 -0
  493. data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.c +46 -0
  494. data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.h +30 -0
  495. data/src/core/ext/upb-gen/google/protobuf/wrappers.upb.h +508 -0
  496. data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.c +163 -0
  497. data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.h +38 -0
  498. data/src/core/ext/upb-gen/google/rpc/status.upb.h +165 -0
  499. data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.c +52 -0
  500. data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.h +30 -0
  501. data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb.h +385 -0
  502. data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.c +106 -0
  503. data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.h +33 -0
  504. data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb.h +237 -0
  505. data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.c +79 -0
  506. data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.h +31 -0
  507. data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb.h +1658 -0
  508. data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.c +342 -0
  509. data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.h +41 -0
  510. data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb.h +197 -0
  511. data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.c +69 -0
  512. data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.h +31 -0
  513. data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb.h +144 -0
  514. data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.c +58 -0
  515. data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.h +31 -0
  516. data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb.h +877 -0
  517. data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.c +221 -0
  518. data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.h +38 -0
  519. data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb.h +297 -0
  520. data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.c +92 -0
  521. data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.h +32 -0
  522. data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb.h +1333 -0
  523. data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.c +243 -0
  524. data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.h +38 -0
  525. data/src/core/ext/upb-gen/udpa/annotations/migrate.upb.h +322 -0
  526. data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.c +118 -0
  527. data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.h +37 -0
  528. data/src/core/ext/upb-gen/udpa/annotations/security.upb.h +125 -0
  529. data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.c +59 -0
  530. data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.h +31 -0
  531. data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb.h +55 -0
  532. data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.c +37 -0
  533. data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.h +30 -0
  534. data/src/core/ext/upb-gen/udpa/annotations/status.upb.h +131 -0
  535. data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.c +58 -0
  536. data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.h +31 -0
  537. data/src/core/ext/upb-gen/udpa/annotations/versioning.upb.h +109 -0
  538. data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.c +55 -0
  539. data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.h +31 -0
  540. data/src/core/ext/upb-gen/validate/validate.upb.h +6507 -0
  541. data/src/core/ext/upb-gen/validate/validate.upb_minitable.c +943 -0
  542. data/src/core/ext/upb-gen/validate/validate.upb_minitable.h +57 -0
  543. data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h +322 -0
  544. data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c +118 -0
  545. data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h +37 -0
  546. data/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h +125 -0
  547. data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c +59 -0
  548. data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h +31 -0
  549. data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h +55 -0
  550. data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c +37 -0
  551. data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h +30 -0
  552. data/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h +336 -0
  553. data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c +117 -0
  554. data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h +36 -0
  555. data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h +109 -0
  556. data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c +55 -0
  557. data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h +31 -0
  558. data/src/core/ext/upb-gen/xds/core/v3/authority.upb.h +87 -0
  559. data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.c +45 -0
  560. data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.h +30 -0
  561. data/src/core/ext/upb-gen/xds/core/v3/cidr.upb.h +116 -0
  562. data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.c +53 -0
  563. data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.h +30 -0
  564. data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb.h +234 -0
  565. data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.c +78 -0
  566. data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.h +31 -0
  567. data/src/core/ext/upb-gen/xds/core/v3/context_params.upb.h +134 -0
  568. data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.c +62 -0
  569. data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.h +31 -0
  570. data/src/core/ext/upb-gen/xds/core/v3/extension.upb.h +115 -0
  571. data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.c +52 -0
  572. data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.h +30 -0
  573. data/src/core/ext/upb-gen/xds/core/v3/resource.upb.h +144 -0
  574. data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.c +55 -0
  575. data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.h +30 -0
  576. data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb.h +331 -0
  577. data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.c +84 -0
  578. data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.h +31 -0
  579. data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb.h +146 -0
  580. data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.c +59 -0
  581. data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.h +30 -0
  582. data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb.h +350 -0
  583. data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.c +126 -0
  584. data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.h +33 -0
  585. data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb.h +161 -0
  586. data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.c +52 -0
  587. data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.h +30 -0
  588. data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb.h +116 -0
  589. data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.c +53 -0
  590. data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.h +30 -0
  591. data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb.h +263 -0
  592. data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.c +72 -0
  593. data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.h +31 -0
  594. data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb.h +71 -0
  595. data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.c +36 -0
  596. data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.h +30 -0
  597. data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb.h +282 -0
  598. data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.c +75 -0
  599. data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.h +31 -0
  600. data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb.h +1107 -0
  601. data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.c +265 -0
  602. data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.h +39 -0
  603. data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb.h +726 -0
  604. data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.c +157 -0
  605. data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.h +35 -0
  606. data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb.h +159 -0
  607. data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.c +58 -0
  608. data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.h +31 -0
  609. data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb.h +304 -0
  610. data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.c +79 -0
  611. data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.h +31 -0
  612. data/src/core/ext/upb-gen/xds/type/v3/cel.upb.h +233 -0
  613. data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.c +79 -0
  614. data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.h +31 -0
  615. data/src/core/ext/upb-gen/xds/type/v3/range.upb.h +235 -0
  616. data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.c +82 -0
  617. data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.h +32 -0
  618. data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb.h +114 -0
  619. data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.c +51 -0
  620. data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.h +30 -0
  621. data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.c +83 -0
  622. data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.h +55 -0
  623. data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +127 -0
  624. data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.h +50 -0
  625. data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.c +101 -0
  626. data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.h +55 -0
  627. data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.c +276 -0
  628. data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.h +125 -0
  629. data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.c +42 -0
  630. data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.h +40 -0
  631. data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.c +55 -0
  632. data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.h +40 -0
  633. data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.c +48 -0
  634. data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.h +35 -0
  635. data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.c +45 -0
  636. data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.h +35 -0
  637. data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.c +45 -0
  638. data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.h +35 -0
  639. data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +141 -0
  640. data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.h +40 -0
  641. data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.c +50 -0
  642. data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.h +35 -0
  643. data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.c +47 -0
  644. data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.h +30 -0
  645. data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.c +37 -0
  646. data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.h +35 -0
  647. data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.c +233 -0
  648. data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.h +110 -0
  649. data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +444 -0
  650. data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +140 -0
  651. data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +97 -0
  652. data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +45 -0
  653. data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +574 -0
  654. data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +150 -0
  655. data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.c +57 -0
  656. data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.h +35 -0
  657. data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +142 -0
  658. data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.h +35 -0
  659. data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.c +201 -0
  660. data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.h +105 -0
  661. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +139 -0
  662. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.h +70 -0
  663. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.c +53 -0
  664. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.h +35 -0
  665. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +274 -0
  666. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +150 -0
  667. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.c +167 -0
  668. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.h +65 -0
  669. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.c +52 -0
  670. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.h +35 -0
  671. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.c +46 -0
  672. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.h +35 -0
  673. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.c +52 -0
  674. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.h +40 -0
  675. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.c +236 -0
  676. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.h +100 -0
  677. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.c +244 -0
  678. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.h +75 -0
  679. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +52 -0
  680. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.h +35 -0
  681. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.c +53 -0
  682. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.h +35 -0
  683. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +314 -0
  684. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +110 -0
  685. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.c +56 -0
  686. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.h +40 -0
  687. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.c +54 -0
  688. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.h +40 -0
  689. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +60 -0
  690. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.h +40 -0
  691. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.c +75 -0
  692. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.h +40 -0
  693. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.c +48 -0
  694. data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.h +35 -0
  695. data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.c +101 -0
  696. data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.h +50 -0
  697. data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +139 -0
  698. data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +65 -0
  699. data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.c +135 -0
  700. data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.h +55 -0
  701. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.c +47 -0
  702. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.h +35 -0
  703. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +231 -0
  704. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +80 -0
  705. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.c +189 -0
  706. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.h +65 -0
  707. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.c +100 -0
  708. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.h +35 -0
  709. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.c +70 -0
  710. data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.h +40 -0
  711. data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.c +75 -0
  712. data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.h +35 -0
  713. data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +124 -0
  714. data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.h +70 -0
  715. data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +141 -0
  716. data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +80 -0
  717. data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.c +222 -0
  718. data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.h +85 -0
  719. data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.c +125 -0
  720. data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.h +45 -0
  721. data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +984 -0
  722. data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +320 -0
  723. data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.c +76 -0
  724. data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.h +45 -0
  725. data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.c +205 -0
  726. data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.h +90 -0
  727. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.c +55 -0
  728. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.h +35 -0
  729. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.c +60 -0
  730. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.h +35 -0
  731. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.c +56 -0
  732. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.h +40 -0
  733. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.c +71 -0
  734. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.h +35 -0
  735. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.c +104 -0
  736. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.h +35 -0
  737. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +66 -0
  738. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.h +35 -0
  739. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.c +51 -0
  740. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.h +35 -0
  741. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.c +70 -0
  742. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.h +40 -0
  743. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.c +60 -0
  744. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.h +30 -0
  745. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.c +74 -0
  746. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.h +40 -0
  747. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +78 -0
  748. data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.h +35 -0
  749. data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +404 -0
  750. data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.h +110 -0
  751. data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +49 -0
  752. data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +35 -0
  753. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +91 -0
  754. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +55 -0
  755. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +122 -0
  756. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +45 -0
  757. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +79 -0
  758. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +40 -0
  759. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +108 -0
  760. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.h +40 -0
  761. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +60 -0
  762. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +40 -0
  763. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +605 -0
  764. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +135 -0
  765. data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +49 -0
  766. data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +35 -0
  767. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +47 -0
  768. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +30 -0
  769. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +216 -0
  770. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +65 -0
  771. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +90 -0
  772. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +45 -0
  773. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +263 -0
  774. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +65 -0
  775. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +57 -0
  776. data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +40 -0
  777. data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.c +133 -0
  778. data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h +50 -0
  779. data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.c +57 -0
  780. data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.h +35 -0
  781. data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.c +199 -0
  782. data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.h +100 -0
  783. data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.c +75 -0
  784. data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.h +40 -0
  785. data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.c +155 -0
  786. data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.h +55 -0
  787. data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.c +45 -0
  788. data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.h +35 -0
  789. data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.c +55 -0
  790. data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.h +50 -0
  791. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.c +47 -0
  792. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.h +35 -0
  793. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.c +54 -0
  794. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.h +55 -0
  795. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.c +60 -0
  796. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.h +40 -0
  797. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.c +53 -0
  798. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.h +35 -0
  799. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.c +51 -0
  800. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.h +35 -0
  801. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.c +50 -0
  802. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.h +35 -0
  803. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.c +70 -0
  804. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.h +45 -0
  805. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +39 -0
  806. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +40 -0
  807. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.c +64 -0
  808. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.h +40 -0
  809. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.c +57 -0
  810. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.h +40 -0
  811. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.c +81 -0
  812. data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.h +50 -0
  813. data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.c +77 -0
  814. data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.h +65 -0
  815. data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.c +84 -0
  816. data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.h +55 -0
  817. data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.c +52 -0
  818. data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.h +45 -0
  819. data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.c +35 -0
  820. data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.h +30 -0
  821. data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.c +93 -0
  822. data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.h +35 -0
  823. data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.c +53 -0
  824. data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.h +40 -0
  825. data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.c +47 -0
  826. data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.h +45 -0
  827. data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.c +68 -0
  828. data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.h +40 -0
  829. data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.c +38 -0
  830. data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.h +30 -0
  831. data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.c +43 -0
  832. data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.h +35 -0
  833. data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +56 -0
  834. data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.h +35 -0
  835. data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.c +39 -0
  836. data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.h +30 -0
  837. data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.c +153 -0
  838. data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.h +95 -0
  839. data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.c +152 -0
  840. data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.h +100 -0
  841. data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.c +51 -0
  842. data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.h +45 -0
  843. data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.c +38 -0
  844. data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.h +35 -0
  845. data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.c +33 -0
  846. data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.h +35 -0
  847. data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.c +488 -0
  848. data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.h +190 -0
  849. data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.c +34 -0
  850. data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.h +35 -0
  851. data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.c +31 -0
  852. data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.h +35 -0
  853. data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.c +53 -0
  854. data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.h +50 -0
  855. data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.c +34 -0
  856. data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.h +35 -0
  857. data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.c +44 -0
  858. data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.h +75 -0
  859. data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.c +36 -0
  860. data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.h +35 -0
  861. data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.c +66 -0
  862. data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.h +50 -0
  863. data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +98 -0
  864. data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +75 -0
  865. data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.c +61 -0
  866. data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.h +45 -0
  867. data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.c +46 -0
  868. data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.h +35 -0
  869. data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.c +33 -0
  870. data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.h +30 -0
  871. data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.c +45 -0
  872. data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.h +35 -0
  873. data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.c +38 -0
  874. data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.h +35 -0
  875. data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.c +282 -0
  876. data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.h +145 -0
  877. data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.c +62 -0
  878. data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.h +45 -0
  879. data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.c +46 -0
  880. data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.h +35 -0
  881. data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.c +34 -0
  882. data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.h +30 -0
  883. data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.c +63 -0
  884. data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.h +50 -0
  885. data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.c +39 -0
  886. data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.h +35 -0
  887. data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.c +37 -0
  888. data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.h +35 -0
  889. data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.c +44 -0
  890. data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.h +35 -0
  891. data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.c +55 -0
  892. data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.h +40 -0
  893. data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.c +38 -0
  894. data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.h +40 -0
  895. data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.c +40 -0
  896. data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.h +35 -0
  897. data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.c +44 -0
  898. data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.h +35 -0
  899. data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.c +60 -0
  900. data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.h +40 -0
  901. data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.c +45 -0
  902. data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.h +35 -0
  903. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.c +44 -0
  904. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.h +35 -0
  905. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.c +50 -0
  906. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.h +40 -0
  907. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.c +35 -0
  908. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.h +35 -0
  909. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.c +54 -0
  910. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.h +40 -0
  911. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.c +125 -0
  912. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.h +80 -0
  913. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.c +70 -0
  914. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.h +60 -0
  915. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.c +39 -0
  916. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.h +40 -0
  917. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.c +51 -0
  918. data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.h +40 -0
  919. data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c +59 -0
  920. data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h +40 -0
  921. data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c +35 -0
  922. data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h +45 -0
  923. data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c +36 -0
  924. data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h +35 -0
  925. data/src/core/ext/xds/certificate_provider_store.cc +2 -1
  926. data/src/core/ext/xds/certificate_provider_store.h +0 -5
  927. data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +0 -1
  928. data/src/core/ext/xds/xds_api.cc +92 -167
  929. data/src/core/ext/xds/xds_api.h +4 -9
  930. data/src/core/ext/xds/xds_bootstrap.h +6 -4
  931. data/src/core/ext/xds/xds_bootstrap_grpc.cc +4 -16
  932. data/src/core/ext/xds/xds_bootstrap_grpc.h +2 -1
  933. data/src/core/ext/xds/xds_certificate_provider.cc +88 -287
  934. data/src/core/ext/xds/xds_certificate_provider.h +44 -111
  935. data/src/core/ext/xds/xds_channel_stack_modifier.cc +17 -28
  936. data/src/core/ext/xds/xds_channel_stack_modifier.h +3 -5
  937. data/src/core/ext/xds/xds_client.cc +527 -468
  938. data/src/core/ext/xds/xds_client.h +50 -36
  939. data/src/core/ext/xds/xds_client_grpc.cc +56 -16
  940. data/src/core/ext/xds/xds_client_grpc.h +4 -1
  941. data/src/core/ext/xds/xds_client_stats.cc +11 -11
  942. data/src/core/ext/xds/xds_client_stats.h +8 -14
  943. data/src/core/ext/xds/xds_cluster.cc +105 -12
  944. data/src/core/ext/xds/xds_cluster.h +12 -2
  945. data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +9 -5
  946. data/src/core/ext/xds/xds_common_types.cc +14 -11
  947. data/src/core/ext/xds/xds_endpoint.cc +95 -49
  948. data/src/core/ext/xds/xds_endpoint.h +7 -3
  949. data/src/core/ext/xds/xds_health_status.cc +14 -2
  950. data/src/core/ext/xds/xds_health_status.h +5 -3
  951. data/src/core/ext/xds/xds_http_filters.cc +0 -1
  952. data/src/core/ext/xds/xds_http_rbac_filter.cc +5 -3
  953. data/src/core/ext/xds/xds_lb_policy_registry.cc +1 -1
  954. data/src/core/ext/xds/xds_listener.cc +15 -11
  955. data/src/core/ext/xds/xds_resource_type_impl.h +6 -4
  956. data/src/core/ext/xds/xds_route_config.cc +35 -24
  957. data/src/core/ext/xds/xds_route_config.h +1 -0
  958. data/src/core/ext/xds/xds_server_config_fetcher.cc +63 -59
  959. data/src/core/ext/xds/xds_transport.h +3 -0
  960. data/src/core/ext/xds/xds_transport_grpc.cc +53 -55
  961. data/src/core/ext/xds/xds_transport_grpc.h +4 -0
  962. data/src/core/lib/address_utils/sockaddr_utils.cc +0 -1
  963. data/src/core/lib/avl/avl.h +1 -0
  964. data/src/core/lib/channel/call_tracer.cc +20 -1
  965. data/src/core/lib/channel/call_tracer.h +24 -3
  966. data/src/core/lib/channel/channel_args.cc +24 -15
  967. data/src/core/lib/channel/channel_args.h +89 -14
  968. data/src/core/lib/channel/channel_args_preconditioning.cc +0 -1
  969. data/src/core/lib/channel/channel_stack.cc +36 -1
  970. data/src/core/lib/channel/channel_stack.h +10 -10
  971. data/src/core/lib/channel/channel_stack_builder.h +4 -15
  972. data/src/core/lib/channel/channel_stack_builder_impl.cc +1 -19
  973. data/src/core/lib/channel/channel_stack_trace.cc +19 -0
  974. data/src/core/lib/channel/channel_stack_trace.h +24 -0
  975. data/src/core/lib/channel/channel_trace.cc +1 -1
  976. data/src/core/lib/channel/connected_channel.cc +151 -91
  977. data/src/core/lib/channel/context.h +3 -0
  978. data/src/core/lib/channel/promise_based_filter.cc +10 -6
  979. data/src/core/lib/channel/promise_based_filter.h +1040 -2
  980. data/src/core/lib/channel/server_call_tracer_filter.cc +43 -42
  981. data/src/core/lib/channel/status_util.cc +0 -1
  982. data/src/core/lib/channel/tcp_tracer.h +140 -0
  983. data/src/core/lib/compression/compression_internal.cc +2 -3
  984. data/src/core/lib/config/config_vars.cc +0 -1
  985. data/src/core/lib/config/config_vars_non_generated.cc +0 -2
  986. data/src/core/lib/config/core_configuration.cc +0 -1
  987. data/src/core/lib/config/core_configuration.h +3 -3
  988. data/src/core/lib/event_engine/ares_resolver.cc +163 -90
  989. data/src/core/lib/event_engine/ares_resolver.h +13 -12
  990. data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +4 -0
  991. data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +9 -1
  992. data/src/core/lib/event_engine/channel_args_endpoint_config.cc +2 -0
  993. data/src/core/lib/event_engine/event_engine.cc +0 -2
  994. data/src/core/lib/event_engine/extensions/can_track_errors.h +40 -0
  995. data/src/core/lib/event_engine/extensions/supports_fd.h +160 -0
  996. data/src/core/lib/event_engine/forkable.cc +40 -57
  997. data/src/core/lib/event_engine/forkable.h +33 -27
  998. data/src/core/lib/event_engine/grpc_polled_fd.h +23 -4
  999. data/src/core/lib/event_engine/posix.h +11 -122
  1000. data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +6 -8
  1001. data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h +2 -3
  1002. data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +11 -16
  1003. data/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +4 -11
  1004. data/src/core/lib/event_engine/posix_engine/event_poller.h +3 -1
  1005. data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc +23 -4
  1006. data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.h +3 -1
  1007. data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +12 -4
  1008. data/src/core/lib/event_engine/posix_engine/internal_errqueue.cc +0 -2
  1009. data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc +132 -0
  1010. data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h +57 -0
  1011. data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +32 -9
  1012. data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +1 -1
  1013. data/src/core/lib/event_engine/posix_engine/posix_engine.cc +89 -51
  1014. data/src/core/lib/event_engine/posix_engine/posix_engine.h +25 -27
  1015. data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +14 -6
  1016. data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +21 -3
  1017. data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +9 -4
  1018. data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +7 -0
  1019. data/src/core/lib/event_engine/posix_engine/timer_manager.cc +17 -27
  1020. data/src/core/lib/event_engine/posix_engine/timer_manager.h +0 -3
  1021. data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc +0 -1
  1022. data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc +0 -1
  1023. data/src/core/lib/event_engine/query_extensions.h +85 -0
  1024. data/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h +55 -0
  1025. data/src/core/lib/event_engine/shim.cc +5 -17
  1026. data/src/core/lib/event_engine/shim.h +0 -2
  1027. data/src/core/lib/event_engine/slice_buffer.cc +0 -1
  1028. data/src/core/lib/event_engine/tcp_socket_utils.cc +0 -1
  1029. data/src/core/lib/event_engine/thread_pool/thread_count.cc +28 -7
  1030. data/src/core/lib/event_engine/thread_pool/thread_count.h +6 -1
  1031. data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +20 -6
  1032. data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +116 -8
  1033. data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h +9 -0
  1034. data/src/core/lib/event_engine/utils.cc +2 -1
  1035. data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc +824 -0
  1036. data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h +75 -0
  1037. data/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc +115 -0
  1038. data/src/core/lib/event_engine/windows/native_windows_dns_resolver.h +51 -0
  1039. data/src/core/lib/event_engine/windows/win_socket.cc +20 -13
  1040. data/src/core/lib/event_engine/windows/win_socket.h +19 -7
  1041. data/src/core/lib/event_engine/windows/windows_endpoint.cc +32 -33
  1042. data/src/core/lib/event_engine/windows/windows_endpoint.h +1 -1
  1043. data/src/core/lib/event_engine/windows/windows_engine.cc +83 -38
  1044. data/src/core/lib/event_engine/windows/windows_engine.h +16 -2
  1045. data/src/core/lib/event_engine/windows/windows_listener.cc +2 -3
  1046. data/src/core/lib/event_engine/work_queue/basic_work_queue.cc +2 -0
  1047. data/src/core/lib/event_engine/work_queue/basic_work_queue.h +4 -1
  1048. data/src/core/lib/event_engine/work_queue/work_queue.h +4 -0
  1049. data/src/core/lib/experiments/config.cc +23 -2
  1050. data/src/core/lib/experiments/config.h +9 -0
  1051. data/src/core/lib/experiments/experiments.cc +642 -553
  1052. data/src/core/lib/experiments/experiments.h +261 -270
  1053. data/src/core/lib/gpr/alloc.cc +1 -0
  1054. data/src/core/lib/gpr/posix/sync.cc +2 -2
  1055. data/src/core/lib/gpr/posix/time.cc +0 -5
  1056. data/src/core/lib/gpr/windows/sync.cc +2 -2
  1057. data/src/core/lib/gprpp/debug_location.h +15 -0
  1058. data/src/core/lib/gprpp/directory_reader.h +48 -0
  1059. data/src/core/lib/gprpp/down_cast.h +49 -0
  1060. data/src/core/lib/gprpp/dual_ref_counted.h +36 -7
  1061. data/src/core/lib/gprpp/host_port.cc +0 -2
  1062. data/src/core/lib/gprpp/linux/env.cc +1 -19
  1063. data/src/core/lib/gprpp/load_file.cc +2 -1
  1064. data/src/core/lib/gprpp/load_file.h +2 -1
  1065. data/src/core/lib/gprpp/match.h +1 -1
  1066. data/src/core/lib/gprpp/orphanable.h +27 -0
  1067. data/src/core/lib/gprpp/posix/directory_reader.cc +82 -0
  1068. data/src/core/lib/gprpp/posix/stat.cc +0 -1
  1069. data/src/core/lib/gprpp/posix/thd.cc +27 -2
  1070. data/src/core/lib/gprpp/ref_counted.h +63 -22
  1071. data/src/core/lib/gprpp/ref_counted_ptr.h +70 -27
  1072. data/src/core/lib/gprpp/ref_counted_string.h +15 -0
  1073. data/src/core/lib/gprpp/status_helper.cc +1 -3
  1074. data/src/core/lib/gprpp/strerror.cc +0 -2
  1075. data/src/core/lib/gprpp/thd.h +8 -0
  1076. data/src/core/lib/gprpp/time.cc +0 -1
  1077. data/src/core/lib/gprpp/time.h +4 -3
  1078. data/src/core/lib/gprpp/validation_errors.cc +0 -1
  1079. data/src/core/lib/gprpp/windows/directory_reader.cc +81 -0
  1080. data/src/core/lib/gprpp/windows/thd.cc +10 -1
  1081. data/src/core/lib/gprpp/work_serializer.cc +3 -0
  1082. data/src/core/lib/gprpp/xxhash_inline.h +29 -0
  1083. data/src/core/lib/http/format_request.cc +0 -1
  1084. data/src/core/lib/http/httpcli.cc +0 -2
  1085. data/src/core/lib/iomgr/combiner.cc +16 -52
  1086. data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +53 -14
  1087. data/src/core/lib/iomgr/event_engine_shims/endpoint.h +16 -0
  1088. data/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +3 -2
  1089. data/src/core/lib/iomgr/grpc_if_nametoindex_posix.cc +2 -2
  1090. data/src/core/lib/iomgr/grpc_if_nametoindex_unsupported.cc +2 -2
  1091. data/src/core/lib/iomgr/socket_utils_common_posix.cc +13 -0
  1092. data/src/core/lib/iomgr/tcp_client_posix.cc +4 -3
  1093. data/src/core/lib/iomgr/tcp_posix.cc +7 -1
  1094. data/src/core/lib/iomgr/tcp_server_posix.cc +65 -50
  1095. data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +12 -0
  1096. data/src/core/lib/iomgr/timer_manager.cc +7 -1
  1097. data/src/core/lib/iomgr/timer_manager.h +2 -0
  1098. data/src/core/lib/json/json_object_loader.h +0 -1
  1099. data/src/core/lib/json/json_reader.cc +0 -1
  1100. data/src/core/lib/json/json_writer.cc +1 -1
  1101. data/src/core/lib/matchers/matchers.cc +0 -1
  1102. data/src/core/lib/promise/activity.cc +17 -3
  1103. data/src/core/lib/promise/activity.h +13 -6
  1104. data/src/core/lib/promise/all_ok.h +80 -0
  1105. data/src/core/lib/promise/cancel_callback.h +0 -2
  1106. data/src/core/lib/promise/context.h +45 -8
  1107. data/src/core/lib/promise/detail/join_state.h +2077 -0
  1108. data/src/core/lib/promise/detail/promise_like.h +8 -1
  1109. data/src/core/lib/promise/detail/seq_state.h +3458 -151
  1110. data/src/core/lib/promise/detail/status.h +42 -5
  1111. data/src/core/lib/promise/for_each.h +13 -6
  1112. data/src/core/lib/promise/if.h +4 -1
  1113. data/src/core/lib/promise/interceptor_list.h +13 -6
  1114. data/src/core/lib/promise/latch.h +9 -8
  1115. data/src/core/lib/promise/loop.h +1 -1
  1116. data/src/core/lib/promise/map.h +0 -1
  1117. data/src/core/lib/promise/party.cc +45 -33
  1118. data/src/core/lib/promise/party.h +176 -10
  1119. data/src/core/lib/promise/pipe.h +6 -10
  1120. data/src/core/lib/promise/poll.h +39 -13
  1121. data/src/core/lib/promise/prioritized_race.h +0 -1
  1122. data/src/core/lib/promise/promise.h +4 -1
  1123. data/src/core/lib/promise/race.h +0 -1
  1124. data/src/core/lib/promise/seq.h +107 -8
  1125. data/src/core/lib/promise/sleep.cc +1 -1
  1126. data/src/core/lib/promise/status_flag.h +226 -0
  1127. data/src/core/lib/promise/try_join.h +132 -0
  1128. data/src/core/lib/promise/try_seq.h +132 -10
  1129. data/src/core/lib/resource_quota/arena.h +2 -2
  1130. data/src/core/lib/resource_quota/memory_quota.cc +74 -22
  1131. data/src/core/lib/resource_quota/memory_quota.h +8 -11
  1132. data/src/core/lib/security/authorization/audit_logging.cc +0 -1
  1133. data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +15 -12
  1134. data/src/core/lib/security/authorization/grpc_server_authz_filter.h +14 -5
  1135. data/src/core/lib/security/authorization/matchers.cc +0 -1
  1136. data/src/core/lib/security/authorization/rbac_policy.cc +0 -2
  1137. data/src/core/lib/security/authorization/stdout_logger.cc +0 -1
  1138. data/src/core/lib/security/credentials/alts/alts_credentials.cc +0 -2
  1139. data/src/core/lib/security/credentials/composite/composite_credentials.cc +1 -1
  1140. data/src/core/lib/security/credentials/composite/composite_credentials.h +1 -1
  1141. data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +4 -1
  1142. data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +4 -0
  1143. data/src/core/lib/security/credentials/external/aws_request_signer.cc +0 -2
  1144. data/src/core/lib/security/credentials/external/external_account_credentials.cc +28 -22
  1145. data/src/core/lib/security/credentials/external/external_account_credentials.h +4 -0
  1146. data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +9 -11
  1147. data/src/core/lib/security/credentials/external/file_external_account_credentials.h +4 -0
  1148. data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +5 -3
  1149. data/src/core/lib/security/credentials/external/url_external_account_credentials.h +4 -0
  1150. data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +11 -11
  1151. data/src/core/lib/security/credentials/iam/iam_credentials.cc +0 -1
  1152. data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +0 -2
  1153. data/src/core/lib/security/credentials/jwt/jwt_credentials.h +0 -1
  1154. data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +1 -2
  1155. data/src/core/lib/security/credentials/local/local_credentials.cc +0 -2
  1156. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +9 -7
  1157. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +0 -1
  1158. data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +2 -2
  1159. data/src/core/lib/security/credentials/plugin/plugin_credentials.h +1 -1
  1160. data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +0 -1
  1161. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +0 -2
  1162. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +16 -24
  1163. data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +0 -3
  1164. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +33 -0
  1165. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +23 -0
  1166. data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.cc +255 -0
  1167. data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.h +129 -0
  1168. data/src/core/lib/security/credentials/tls/tls_credentials.cc +25 -1
  1169. data/src/core/lib/security/credentials/tls/tls_utils.cc +2 -0
  1170. data/src/core/lib/security/credentials/xds/xds_credentials.cc +22 -30
  1171. data/src/core/lib/security/credentials/xds/xds_credentials.h +2 -4
  1172. data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +1 -2
  1173. data/src/core/lib/security/security_connector/load_system_roots_supported.cc +3 -7
  1174. data/src/core/lib/security/security_connector/local/local_security_connector.cc +1 -1
  1175. data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +0 -2
  1176. data/src/core/lib/security/security_connector/ssl_utils.cc +34 -19
  1177. data/src/core/lib/security/security_connector/ssl_utils.h +4 -0
  1178. data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +7 -6
  1179. data/src/core/lib/security/security_connector/tls/tls_security_connector.h +2 -2
  1180. data/src/core/lib/security/transport/auth_filters.h +71 -4
  1181. data/src/core/lib/security/transport/client_auth_filter.cc +2 -5
  1182. data/src/core/lib/security/transport/legacy_server_auth_filter.cc +244 -0
  1183. data/src/core/lib/security/transport/secure_endpoint.cc +3 -6
  1184. data/src/core/lib/security/transport/security_handshaker.cc +1 -11
  1185. data/src/core/lib/security/transport/security_handshaker.h +0 -6
  1186. data/src/core/lib/security/transport/server_auth_filter.cc +70 -94
  1187. data/src/core/lib/slice/slice.h +6 -1
  1188. data/src/core/lib/slice/slice_buffer.h +6 -1
  1189. data/src/core/lib/surface/builtins.cc +6 -25
  1190. data/src/core/lib/surface/call.cc +824 -217
  1191. data/src/core/lib/surface/call.h +26 -13
  1192. data/src/core/lib/surface/call_log_batch.cc +0 -2
  1193. data/src/core/lib/surface/call_trace.cc +46 -6
  1194. data/src/core/lib/surface/channel.cc +18 -29
  1195. data/src/core/lib/surface/channel.h +6 -28
  1196. data/src/core/lib/surface/channel_init.cc +441 -14
  1197. data/src/core/lib/surface/channel_init.h +272 -26
  1198. data/src/core/lib/surface/completion_queue.cc +0 -7
  1199. data/src/core/lib/surface/event_string.cc +0 -1
  1200. data/src/core/lib/surface/init.cc +21 -48
  1201. data/src/core/lib/surface/lame_client.cc +8 -1
  1202. data/src/core/lib/surface/server.cc +438 -265
  1203. data/src/core/lib/surface/server.h +52 -26
  1204. data/src/core/lib/surface/version.cc +2 -2
  1205. data/src/core/lib/surface/wait_for_cq_end_op.cc +75 -0
  1206. data/src/core/lib/surface/wait_for_cq_end_op.h +72 -0
  1207. data/src/core/lib/transport/batch_builder.cc +6 -7
  1208. data/src/core/lib/transport/batch_builder.h +2 -4
  1209. data/src/core/lib/transport/bdp_estimator.cc +2 -2
  1210. data/src/core/lib/transport/bdp_estimator.h +2 -2
  1211. data/src/core/lib/transport/call_factory.cc +41 -0
  1212. data/src/core/lib/transport/call_factory.h +56 -0
  1213. data/src/core/lib/transport/call_filters.cc +371 -0
  1214. data/src/core/lib/transport/call_filters.h +1500 -0
  1215. data/src/core/lib/transport/call_final_info.cc +38 -0
  1216. data/src/core/lib/transport/call_final_info.h +54 -0
  1217. data/src/core/lib/transport/call_size_estimator.cc +41 -0
  1218. data/src/core/lib/transport/call_size_estimator.h +52 -0
  1219. data/src/core/lib/transport/call_spine.cc +107 -0
  1220. data/src/core/lib/transport/call_spine.h +429 -0
  1221. data/src/core/lib/transport/connectivity_state.cc +3 -4
  1222. data/src/core/lib/transport/connectivity_state.h +4 -0
  1223. data/src/core/lib/transport/error_utils.cc +0 -2
  1224. data/src/core/lib/transport/handshaker.cc +0 -10
  1225. data/src/core/lib/transport/handshaker.h +0 -7
  1226. data/src/core/lib/transport/message.cc +45 -0
  1227. data/src/core/lib/transport/message.h +61 -0
  1228. data/src/core/lib/transport/metadata.cc +37 -0
  1229. data/src/core/lib/transport/metadata.h +78 -0
  1230. data/src/core/lib/transport/metadata_batch.cc +4 -3
  1231. data/src/core/lib/transport/metadata_batch.h +9 -4
  1232. data/src/core/lib/transport/tcp_connect_handshaker.cc +0 -1
  1233. data/src/core/lib/transport/timeout_encoding.h +2 -2
  1234. data/src/core/lib/transport/transport.cc +13 -105
  1235. data/src/core/lib/transport/transport.h +105 -157
  1236. data/src/core/lib/transport/transport_fwd.h +3 -1
  1237. data/src/core/lib/transport/transport_op_string.cc +0 -2
  1238. data/src/core/lib/uri/uri_parser.cc +0 -1
  1239. data/src/core/load_balancing/address_filtering.cc +108 -0
  1240. data/src/core/load_balancing/address_filtering.h +118 -0
  1241. data/src/core/load_balancing/backend_metric_data.h +57 -0
  1242. data/src/core/load_balancing/child_policy_handler.cc +317 -0
  1243. data/src/core/load_balancing/child_policy_handler.h +88 -0
  1244. data/src/core/load_balancing/delegating_helper.h +116 -0
  1245. data/src/core/load_balancing/endpoint_list.cc +187 -0
  1246. data/src/core/load_balancing/endpoint_list.h +220 -0
  1247. data/src/core/load_balancing/grpclb/client_load_reporting_filter.cc +83 -0
  1248. data/src/core/load_balancing/grpclb/client_load_reporting_filter.h +46 -0
  1249. data/src/core/load_balancing/grpclb/grpclb.cc +1935 -0
  1250. data/src/core/load_balancing/grpclb/grpclb.h +39 -0
  1251. data/src/core/load_balancing/grpclb/grpclb_balancer_addresses.cc +89 -0
  1252. data/src/core/load_balancing/grpclb/grpclb_balancer_addresses.h +39 -0
  1253. data/src/core/load_balancing/grpclb/grpclb_client_stats.cc +90 -0
  1254. data/src/core/load_balancing/grpclb/grpclb_client_stats.h +81 -0
  1255. data/src/core/load_balancing/grpclb/load_balancer_api.cc +202 -0
  1256. data/src/core/load_balancing/grpclb/load_balancer_api.h +77 -0
  1257. data/src/core/load_balancing/health_check_client.cc +520 -0
  1258. data/src/core/load_balancing/health_check_client.h +52 -0
  1259. data/src/core/load_balancing/health_check_client_internal.h +204 -0
  1260. data/src/core/load_balancing/lb_policy.cc +98 -0
  1261. data/src/core/load_balancing/lb_policy.h +481 -0
  1262. data/src/core/load_balancing/lb_policy_factory.h +49 -0
  1263. data/src/core/load_balancing/lb_policy_registry.cc +142 -0
  1264. data/src/core/load_balancing/lb_policy_registry.h +82 -0
  1265. data/src/core/load_balancing/oob_backend_metric.cc +340 -0
  1266. data/src/core/load_balancing/oob_backend_metric.h +57 -0
  1267. data/src/core/load_balancing/oob_backend_metric_internal.h +119 -0
  1268. data/src/core/load_balancing/outlier_detection/outlier_detection.cc +1208 -0
  1269. data/src/core/load_balancing/outlier_detection/outlier_detection.h +94 -0
  1270. data/src/core/load_balancing/pick_first/pick_first.cc +1232 -0
  1271. data/src/core/load_balancing/pick_first/pick_first.h +36 -0
  1272. data/src/core/load_balancing/priority/priority.cc +900 -0
  1273. data/src/core/load_balancing/ring_hash/ring_hash.cc +878 -0
  1274. data/src/core/load_balancing/ring_hash/ring_hash.h +62 -0
  1275. data/src/core/load_balancing/rls/rls.cc +2477 -0
  1276. data/src/core/load_balancing/round_robin/round_robin.cc +916 -0
  1277. data/src/core/load_balancing/subchannel_interface.h +141 -0
  1278. data/src/core/load_balancing/subchannel_list.h +455 -0
  1279. data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.cc +198 -0
  1280. data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h +71 -0
  1281. data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +1819 -0
  1282. data/src/core/load_balancing/weighted_target/weighted_target.cc +755 -0
  1283. data/src/core/load_balancing/xds/cds.cc +757 -0
  1284. data/src/core/load_balancing/xds/xds_channel_args.h +37 -0
  1285. data/src/core/load_balancing/xds/xds_cluster_impl.cc +863 -0
  1286. data/src/core/load_balancing/xds/xds_cluster_manager.cc +652 -0
  1287. data/src/core/load_balancing/xds/xds_override_host.cc +1313 -0
  1288. data/src/core/load_balancing/xds/xds_override_host.h +63 -0
  1289. data/src/core/load_balancing/xds/xds_wrr_locality.cc +300 -0
  1290. data/src/core/plugin_registry/grpc_plugin_registry.cc +5 -0
  1291. data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -3
  1292. data/src/core/resolver/binder/binder_resolver.cc +147 -0
  1293. data/src/core/resolver/dns/c_ares/dns_resolver_ares.cc +758 -0
  1294. data/src/core/resolver/dns/c_ares/dns_resolver_ares.h +30 -0
  1295. data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h +90 -0
  1296. data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +206 -0
  1297. data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +818 -0
  1298. data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc +1219 -0
  1299. data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h +140 -0
  1300. data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +29 -0
  1301. data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +35 -0
  1302. data/src/core/resolver/dns/dns_resolver_plugin.cc +68 -0
  1303. data/src/core/resolver/dns/dns_resolver_plugin.h +27 -0
  1304. data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +588 -0
  1305. data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h +35 -0
  1306. data/src/core/resolver/dns/event_engine/service_config_helper.cc +97 -0
  1307. data/src/core/resolver/dns/event_engine/service_config_helper.h +32 -0
  1308. data/src/core/resolver/dns/native/dns_resolver.cc +183 -0
  1309. data/src/core/resolver/dns/native/dns_resolver.h +24 -0
  1310. data/src/core/resolver/endpoint_addresses.cc +147 -0
  1311. data/src/core/resolver/endpoint_addresses.h +164 -0
  1312. data/src/core/resolver/fake/fake_resolver.cc +255 -0
  1313. data/src/core/resolver/fake/fake_resolver.h +129 -0
  1314. data/src/core/resolver/google_c2p/google_c2p_resolver.cc +326 -0
  1315. data/src/core/resolver/polling_resolver.cc +272 -0
  1316. data/src/core/resolver/polling_resolver.h +121 -0
  1317. data/src/core/resolver/resolver.cc +37 -0
  1318. data/src/core/resolver/resolver.h +139 -0
  1319. data/src/core/resolver/resolver_factory.h +78 -0
  1320. data/src/core/resolver/resolver_registry.cc +162 -0
  1321. data/src/core/resolver/resolver_registry.h +123 -0
  1322. data/src/core/resolver/server_address.h +35 -0
  1323. data/src/core/resolver/sockaddr/sockaddr_resolver.cc +202 -0
  1324. data/src/core/resolver/xds/xds_dependency_manager.cc +1031 -0
  1325. data/src/core/resolver/xds/xds_dependency_manager.h +277 -0
  1326. data/src/core/resolver/xds/xds_resolver.cc +1135 -0
  1327. data/src/core/resolver/xds/xds_resolver_attributes.h +62 -0
  1328. data/src/core/resolver/xds/xds_resolver_trace.cc +25 -0
  1329. data/src/core/resolver/xds/xds_resolver_trace.h +30 -0
  1330. data/src/core/service_config/service_config.h +89 -0
  1331. data/src/core/service_config/service_config_call_data.h +116 -0
  1332. data/src/core/service_config/service_config_impl.cc +198 -0
  1333. data/src/core/service_config/service_config_impl.h +125 -0
  1334. data/src/core/service_config/service_config_parser.cc +81 -0
  1335. data/src/core/service_config/service_config_parser.h +105 -0
  1336. data/src/core/tsi/alts/crypt/aes_gcm.cc +137 -109
  1337. data/src/core/tsi/alts/crypt/gsec.h +387 -319
  1338. data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +11 -7
  1339. data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +1 -1
  1340. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +5 -7
  1341. data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +1 -1
  1342. data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +12 -12
  1343. data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +26 -25
  1344. data/src/core/tsi/fake_transport_security.cc +1 -1
  1345. data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +9 -1
  1346. data/src/core/tsi/ssl_transport_security.cc +182 -60
  1347. data/src/core/tsi/ssl_transport_security.h +19 -1
  1348. data/src/ruby/bin/math_pb.rb +1 -1
  1349. data/src/ruby/ext/grpc/extconf.rb +77 -16
  1350. data/src/ruby/ext/grpc/rb_channel.c +11 -5
  1351. data/src/ruby/ext/grpc/rb_channel_args.c +3 -1
  1352. data/src/ruby/ext/grpc/rb_event_thread.c +9 -3
  1353. data/src/ruby/ext/grpc/rb_grpc.c +0 -1
  1354. data/src/ruby/ext/grpc/rb_grpc.h +0 -2
  1355. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +8 -0
  1356. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +12 -0
  1357. data/src/ruby/lib/grpc/version.rb +1 -1
  1358. data/src/ruby/pb/grpc/health/v1/health_pb.rb +1 -1
  1359. data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +1 -1
  1360. data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +7 -2
  1361. data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -2
  1362. data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +22 -0
  1363. data/third_party/abseil-cpp/absl/algorithm/algorithm.h +8 -103
  1364. data/third_party/abseil-cpp/absl/algorithm/container.h +57 -71
  1365. data/third_party/abseil-cpp/absl/base/attributes.h +51 -12
  1366. data/third_party/abseil-cpp/absl/base/call_once.h +15 -9
  1367. data/third_party/abseil-cpp/absl/base/casts.h +1 -1
  1368. data/third_party/abseil-cpp/absl/base/config.h +91 -24
  1369. data/third_party/abseil-cpp/absl/base/internal/endian.h +13 -12
  1370. data/third_party/abseil-cpp/absl/base/internal/identity.h +4 -2
  1371. data/third_party/abseil-cpp/absl/base/internal/inline_variable.h +19 -18
  1372. data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +1 -1
  1373. data/third_party/abseil-cpp/absl/base/internal/nullability_impl.h +106 -0
  1374. data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +9 -11
  1375. data/third_party/abseil-cpp/absl/base/internal/raw_logging.h +2 -0
  1376. data/third_party/abseil-cpp/absl/base/internal/spinlock.h +17 -4
  1377. data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +20 -0
  1378. data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +10 -4
  1379. data/third_party/abseil-cpp/absl/base/internal/unaligned_access.h +13 -6
  1380. data/third_party/abseil-cpp/absl/base/log_severity.cc +1 -0
  1381. data/third_party/abseil-cpp/absl/base/log_severity.h +23 -10
  1382. data/third_party/abseil-cpp/absl/base/no_destructor.h +217 -0
  1383. data/third_party/abseil-cpp/absl/base/nullability.h +224 -0
  1384. data/third_party/abseil-cpp/absl/base/optimization.h +1 -0
  1385. data/third_party/abseil-cpp/absl/base/options.h +27 -1
  1386. data/third_party/abseil-cpp/absl/base/prefetch.h +25 -14
  1387. data/third_party/abseil-cpp/absl/base/thread_annotations.h +0 -2
  1388. data/third_party/abseil-cpp/absl/container/flat_hash_map.h +3 -3
  1389. data/third_party/abseil-cpp/absl/container/flat_hash_set.h +1 -1
  1390. data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +4 -2
  1391. data/third_party/abseil-cpp/absl/container/internal/container_memory.h +13 -9
  1392. data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +2 -12
  1393. data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +12 -1
  1394. data/third_party/abseil-cpp/absl/container/internal/layout.h +6 -21
  1395. data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +11 -2
  1396. data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +148 -31
  1397. data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +717 -278
  1398. data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.cc +26 -2
  1399. data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.h +6 -0
  1400. data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +34 -5
  1401. data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy.h +6 -3
  1402. data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_fallback.cc +4 -2
  1403. data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_arm_combined.cc +450 -0
  1404. data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +10 -2
  1405. data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.cc +4 -2
  1406. data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +24 -0
  1407. data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +35 -33
  1408. data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +41 -17
  1409. data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +108 -44
  1410. data/third_party/abseil-cpp/absl/flags/declare.h +0 -5
  1411. data/third_party/abseil-cpp/absl/flags/flag.h +1 -10
  1412. data/third_party/abseil-cpp/absl/flags/internal/flag.h +0 -5
  1413. data/third_party/abseil-cpp/absl/flags/marshalling.cc +10 -1
  1414. data/third_party/abseil-cpp/absl/flags/reflection.cc +2 -1
  1415. data/third_party/abseil-cpp/absl/functional/function_ref.h +8 -0
  1416. data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +2 -2
  1417. data/third_party/abseil-cpp/absl/hash/internal/hash.h +49 -2
  1418. data/third_party/abseil-cpp/absl/numeric/bits.h +37 -18
  1419. data/third_party/abseil-cpp/absl/random/distributions.h +1 -1
  1420. data/third_party/abseil-cpp/absl/status/internal/status_internal.cc +248 -0
  1421. data/third_party/abseil-cpp/absl/status/internal/status_internal.h +55 -14
  1422. data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +53 -2
  1423. data/third_party/abseil-cpp/absl/status/status.cc +36 -238
  1424. data/third_party/abseil-cpp/absl/status/status.h +95 -53
  1425. data/third_party/abseil-cpp/absl/status/status_payload_printer.cc +1 -3
  1426. data/third_party/abseil-cpp/absl/status/status_payload_printer.h +3 -2
  1427. data/third_party/abseil-cpp/absl/status/statusor.cc +5 -2
  1428. data/third_party/abseil-cpp/absl/status/statusor.h +43 -3
  1429. data/third_party/abseil-cpp/absl/strings/ascii.cc +84 -12
  1430. data/third_party/abseil-cpp/absl/strings/ascii.h +8 -6
  1431. data/third_party/abseil-cpp/absl/strings/charconv.cc +19 -12
  1432. data/third_party/abseil-cpp/absl/strings/charconv.h +6 -3
  1433. data/third_party/abseil-cpp/absl/strings/charset.h +164 -0
  1434. data/third_party/abseil-cpp/absl/strings/cord.cc +266 -69
  1435. data/third_party/abseil-cpp/absl/strings/cord.h +138 -92
  1436. data/third_party/abseil-cpp/absl/strings/cord_analysis.cc +19 -33
  1437. data/third_party/abseil-cpp/absl/strings/cord_analysis.h +4 -3
  1438. data/third_party/abseil-cpp/absl/strings/escaping.cc +5 -4
  1439. data/third_party/abseil-cpp/absl/strings/has_absl_stringify.h +63 -0
  1440. data/third_party/abseil-cpp/absl/strings/has_ostream_operator.h +42 -0
  1441. data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +0 -6
  1442. data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +19 -45
  1443. data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +23 -28
  1444. data/third_party/abseil-cpp/absl/strings/internal/has_absl_stringify.h +15 -26
  1445. data/third_party/abseil-cpp/absl/strings/internal/memutil.cc +12 -4
  1446. data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.cc +145 -8
  1447. data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +72 -24
  1448. data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.cc +17 -1
  1449. data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +7 -4
  1450. data/third_party/abseil-cpp/absl/strings/internal/str_format/constexpr_parser.h +8 -3
  1451. data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +10 -4
  1452. data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.h +5 -4
  1453. data/third_party/abseil-cpp/absl/strings/match.cc +3 -0
  1454. data/third_party/abseil-cpp/absl/strings/numbers.cc +396 -153
  1455. data/third_party/abseil-cpp/absl/strings/numbers.h +193 -35
  1456. data/third_party/abseil-cpp/absl/strings/str_cat.cc +151 -21
  1457. data/third_party/abseil-cpp/absl/strings/str_cat.h +127 -25
  1458. data/third_party/abseil-cpp/absl/strings/str_format.h +30 -20
  1459. data/third_party/abseil-cpp/absl/strings/str_join.h +16 -16
  1460. data/third_party/abseil-cpp/absl/strings/str_replace.cc +12 -3
  1461. data/third_party/abseil-cpp/absl/strings/str_replace.h +8 -5
  1462. data/third_party/abseil-cpp/absl/strings/str_split.cc +8 -6
  1463. data/third_party/abseil-cpp/absl/strings/str_split.h +18 -0
  1464. data/third_party/abseil-cpp/absl/strings/string_view.cc +26 -5
  1465. data/third_party/abseil-cpp/absl/strings/string_view.h +91 -26
  1466. data/third_party/abseil-cpp/absl/strings/strip.h +5 -2
  1467. data/third_party/abseil-cpp/absl/strings/substitute.cc +12 -4
  1468. data/third_party/abseil-cpp/absl/strings/substitute.h +103 -91
  1469. data/third_party/abseil-cpp/absl/synchronization/internal/pthread_waiter.h +2 -2
  1470. data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +2 -0
  1471. data/third_party/abseil-cpp/absl/synchronization/internal/win32_waiter.h +4 -2
  1472. data/third_party/abseil-cpp/absl/synchronization/mutex.cc +296 -332
  1473. data/third_party/abseil-cpp/absl/synchronization/mutex.h +89 -34
  1474. data/third_party/abseil-cpp/absl/time/civil_time.h +26 -0
  1475. data/third_party/abseil-cpp/absl/time/clock.h +5 -1
  1476. data/third_party/abseil-cpp/absl/time/duration.cc +3 -3
  1477. data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time_detail.h +2 -2
  1478. data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +1 -1
  1479. data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +9 -14
  1480. data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +0 -8
  1481. data/third_party/abseil-cpp/absl/types/bad_optional_access.cc +18 -0
  1482. data/third_party/abseil-cpp/absl/types/bad_variant_access.cc +18 -0
  1483. data/third_party/abseil-cpp/absl/types/internal/variant.h +3 -3
  1484. data/third_party/abseil-cpp/absl/types/optional.h +3 -2
  1485. data/third_party/abseil-cpp/absl/types/span.h +9 -4
  1486. data/third_party/abseil-cpp/absl/utility/utility.h +11 -93
  1487. data/third_party/boringssl-with-bazel/err_data.c +278 -276
  1488. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_gentm.c +1 -1
  1489. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_mbstr.c +9 -9
  1490. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strex.c +8 -21
  1491. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +1 -1
  1492. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_type.c +19 -1
  1493. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utctm.c +1 -1
  1494. data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +11 -3
  1495. data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +4 -1
  1496. data/third_party/boringssl-with-bazel/src/crypto/asn1/posix_time.c +1 -1
  1497. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +3 -3
  1498. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +1 -6
  1499. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_new.c +4 -13
  1500. data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +1 -6
  1501. data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +27 -4
  1502. data/third_party/boringssl-with-bazel/src/crypto/bio/connect.c +1 -4
  1503. data/third_party/boringssl-with-bazel/src/crypto/bio/pair.c +1 -4
  1504. data/third_party/boringssl-with-bazel/src/crypto/bn_extra/convert.c +8 -0
  1505. data/third_party/boringssl-with-bazel/src/crypto/buf/buf.c +1 -11
  1506. data/third_party/boringssl-with-bazel/src/crypto/bytestring/ber.c +7 -8
  1507. data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbb.c +42 -12
  1508. data/third_party/boringssl-with-bazel/src/crypto/bytestring/internal.h +0 -22
  1509. data/third_party/boringssl-with-bazel/src/crypto/bytestring/unicode.c +9 -9
  1510. data/third_party/boringssl-with-bazel/src/crypto/chacha/chacha.c +34 -1
  1511. data/third_party/boringssl-with-bazel/src/crypto/chacha/internal.h +49 -3
  1512. data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesgcmsiv.c +30 -42
  1513. data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +87 -96
  1514. data/third_party/boringssl-with-bazel/src/crypto/conf/internal.h +5 -1
  1515. data/third_party/boringssl-with-bazel/src/crypto/cpu_intel.c +4 -2
  1516. data/third_party/boringssl-with-bazel/src/crypto/crypto.c +11 -0
  1517. data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519.c +4 -0
  1518. data/third_party/boringssl-with-bazel/src/crypto/curve25519/spake25519.c +1 -2
  1519. data/third_party/boringssl-with-bazel/src/crypto/des/des.c +105 -31
  1520. data/third_party/boringssl-with-bazel/src/crypto/des/internal.h +10 -81
  1521. data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +2 -15
  1522. data/third_party/boringssl-with-bazel/src/crypto/engine/engine.c +1 -9
  1523. data/third_party/boringssl-with-bazel/src/crypto/evp/evp.c +1 -5
  1524. data/third_party/boringssl-with-bazel/src/crypto/evp/evp_ctx.c +2 -5
  1525. data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec.c +1 -4
  1526. data/third_party/boringssl-with-bazel/src/crypto/evp/p_hkdf.c +1 -2
  1527. data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa.c +1 -3
  1528. data/third_party/boringssl-with-bazel/src/crypto/evp/scrypt.c +2 -2
  1529. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/add.c +2 -8
  1530. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bn.c +1 -1
  1531. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bytes.c +26 -17
  1532. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/ctx.c +1 -1
  1533. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/exponentiation.c +4 -2
  1534. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd.c +26 -5
  1535. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/generic.c +10 -41
  1536. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +49 -2
  1537. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery.c +26 -0
  1538. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery_inv.c +27 -26
  1539. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/mul.c +2 -6
  1540. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/prime.c +1 -8
  1541. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c +8 -2
  1542. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +11 -2
  1543. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_aes.c +11 -24
  1544. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_aesccm.c +43 -50
  1545. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/dh.c +2 -6
  1546. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digest.c +4 -0
  1547. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec.c +1 -2
  1548. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_key.c +16 -9
  1549. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p224-64.c +7 -6
  1550. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/wnaf.c +2 -7
  1551. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.c +51 -13
  1552. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.h +17 -0
  1553. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +5 -2
  1554. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/blinding.c +1 -2
  1555. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa.c +1 -3
  1556. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +6 -5
  1557. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/fips.c +1 -2
  1558. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/internal.h +153 -6
  1559. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha1.c +87 -7
  1560. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha256.c +39 -5
  1561. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha512.c +32 -5
  1562. data/third_party/boringssl-with-bazel/src/crypto/internal.h +254 -54
  1563. data/third_party/boringssl-with-bazel/src/crypto/keccak/internal.h +70 -0
  1564. data/third_party/boringssl-with-bazel/src/crypto/keccak/keccak.c +279 -0
  1565. data/third_party/boringssl-with-bazel/src/crypto/kyber/internal.h +8 -39
  1566. data/third_party/boringssl-with-bazel/src/crypto/kyber/kyber.c +39 -29
  1567. data/third_party/boringssl-with-bazel/src/crypto/lhash/lhash.c +3 -6
  1568. data/third_party/boringssl-with-bazel/src/crypto/mem.c +17 -33
  1569. data/third_party/boringssl-with-bazel/src/crypto/obj/obj.c +36 -16
  1570. data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +0 -3
  1571. data/third_party/boringssl-with-bazel/src/crypto/pem/pem_info.c +31 -0
  1572. data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7_x509.c +2 -4
  1573. data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +3 -3
  1574. data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +9 -13
  1575. data/third_party/boringssl-with-bazel/src/crypto/pool/pool.c +3 -6
  1576. data/third_party/boringssl-with-bazel/src/crypto/rand_extra/forkunsafe.c +4 -0
  1577. data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_crypt.c +3 -1
  1578. data/third_party/boringssl-with-bazel/src/crypto/spx/address.c +101 -0
  1579. data/third_party/boringssl-with-bazel/src/crypto/spx/address.h +50 -0
  1580. data/third_party/boringssl-with-bazel/src/crypto/spx/fors.c +133 -0
  1581. data/third_party/boringssl-with-bazel/src/crypto/spx/fors.h +54 -0
  1582. data/third_party/boringssl-with-bazel/src/crypto/spx/internal.h +79 -0
  1583. data/third_party/boringssl-with-bazel/src/crypto/spx/merkle.c +150 -0
  1584. data/third_party/boringssl-with-bazel/src/crypto/spx/merkle.h +61 -0
  1585. data/third_party/boringssl-with-bazel/src/crypto/spx/params.h +71 -0
  1586. data/third_party/boringssl-with-bazel/src/crypto/spx/spx.c +139 -0
  1587. data/third_party/boringssl-with-bazel/src/crypto/spx/spx_util.c +53 -0
  1588. data/third_party/boringssl-with-bazel/src/crypto/spx/spx_util.h +44 -0
  1589. data/third_party/boringssl-with-bazel/src/crypto/spx/thash.c +136 -0
  1590. data/third_party/boringssl-with-bazel/src/crypto/spx/thash.h +70 -0
  1591. data/third_party/boringssl-with-bazel/src/crypto/spx/wots.c +135 -0
  1592. data/third_party/boringssl-with-bazel/src/crypto/spx/wots.h +45 -0
  1593. data/third_party/boringssl-with-bazel/src/crypto/stack/stack.c +4 -9
  1594. data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +10 -22
  1595. data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +3 -6
  1596. data/third_party/boringssl-with-bazel/src/crypto/trust_token/voprf.c +12 -36
  1597. data/third_party/boringssl-with-bazel/src/crypto/x509/algorithm.c +1 -2
  1598. data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +0 -2
  1599. data/third_party/boringssl-with-bazel/src/crypto/x509/by_dir.c +14 -9
  1600. data/third_party/boringssl-with-bazel/src/crypto/x509/by_file.c +23 -33
  1601. data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +225 -51
  1602. data/third_party/boringssl-with-bazel/src/crypto/x509/policy.c +2 -6
  1603. data/third_party/boringssl-with-bazel/src/crypto/x509/rsa_pss.c +6 -2
  1604. data/third_party/boringssl-with-bazel/src/crypto/x509/t_crl.c +1 -1
  1605. data/third_party/boringssl-with-bazel/src/crypto/x509/t_req.c +1 -4
  1606. data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509.c +1 -3
  1607. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_akey.c +221 -0
  1608. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_akeya.c +73 -0
  1609. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_alt.c +634 -0
  1610. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_bcons.c +135 -0
  1611. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_bitst.c +141 -0
  1612. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_conf.c +416 -0
  1613. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_cpols.c +477 -0
  1614. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_crld.c +598 -0
  1615. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_enum.c +112 -0
  1616. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_extku.c +154 -0
  1617. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_genn.c +270 -0
  1618. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ia5.c +122 -0
  1619. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_info.c +211 -0
  1620. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_int.c +121 -0
  1621. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_lib.c +342 -0
  1622. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ncons.c +555 -0
  1623. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ocsp.c +81 -0
  1624. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_pcons.c +142 -0
  1625. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_pmaps.c +150 -0
  1626. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_prn.c +224 -0
  1627. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_purp.c +645 -0
  1628. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_skey.c +170 -0
  1629. data/third_party/boringssl-with-bazel/src/crypto/x509/v3_utl.c +1357 -0
  1630. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_att.c +35 -32
  1631. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +44 -59
  1632. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_ext.c +0 -1
  1633. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +107 -255
  1634. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_req.c +32 -20
  1635. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +25 -152
  1636. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +0 -1
  1637. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +330 -944
  1638. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +93 -215
  1639. data/third_party/boringssl-with-bazel/src/crypto/x509/x509name.c +28 -6
  1640. data/third_party/boringssl-with-bazel/src/crypto/x509/x509spki.c +1 -1
  1641. data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +35 -129
  1642. data/third_party/boringssl-with-bazel/src/crypto/x509/x_name.c +7 -8
  1643. data/third_party/boringssl-with-bazel/src/crypto/x509/x_pubkey.c +46 -50
  1644. data/third_party/boringssl-with-bazel/src/crypto/x509/x_spki.c +2 -0
  1645. data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +1 -4
  1646. data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509a.c +6 -6
  1647. data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +0 -21
  1648. data/third_party/boringssl-with-bazel/src/include/openssl/asm_base.h +5 -6
  1649. data/third_party/boringssl-with-bazel/src/include/openssl/base.h +3 -1
  1650. data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +24 -0
  1651. data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +14 -5
  1652. data/third_party/boringssl-with-bazel/src/include/openssl/bytestring.h +22 -0
  1653. data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +1 -0
  1654. data/third_party/boringssl-with-bazel/src/include/openssl/conf.h +4 -1
  1655. data/third_party/boringssl-with-bazel/src/include/openssl/curve25519.h +2 -2
  1656. data/third_party/boringssl-with-bazel/src/include/openssl/des.h +0 -13
  1657. data/third_party/boringssl-with-bazel/src/include/openssl/ec.h +33 -11
  1658. data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +1 -1
  1659. data/third_party/boringssl-with-bazel/src/include/openssl/ex_data.h +5 -4
  1660. data/third_party/boringssl-with-bazel/src/include/openssl/kyber.h +26 -18
  1661. data/third_party/boringssl-with-bazel/src/include/openssl/mem.h +13 -6
  1662. data/third_party/boringssl-with-bazel/src/include/openssl/obj.h +5 -1
  1663. data/third_party/boringssl-with-bazel/src/include/openssl/opensslconf.h +1 -0
  1664. data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +19 -5
  1665. data/third_party/boringssl-with-bazel/src/include/openssl/posix_time.h +45 -0
  1666. data/third_party/boringssl-with-bazel/src/include/openssl/rand.h +5 -0
  1667. data/third_party/boringssl-with-bazel/src/include/openssl/sha.h +20 -3
  1668. data/third_party/boringssl-with-bazel/src/include/openssl/span.h +18 -20
  1669. data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +76 -60
  1670. data/third_party/boringssl-with-bazel/src/include/openssl/target.h +31 -6
  1671. data/third_party/boringssl-with-bazel/src/include/openssl/time.h +3 -22
  1672. data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +2 -1
  1673. data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +2806 -941
  1674. data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +38 -1025
  1675. data/third_party/boringssl-with-bazel/src/include/openssl/x509v3_errors.h +124 -0
  1676. data/third_party/boringssl-with-bazel/src/ssl/d1_both.cc +1 -2
  1677. data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +82 -9
  1678. data/third_party/boringssl-with-bazel/src/ssl/handoff.cc +42 -4
  1679. data/third_party/boringssl-with-bazel/src/ssl/internal.h +4 -0
  1680. data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +4 -5
  1681. data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +9 -1
  1682. data/third_party/boringssl-with-bazel/src/ssl/ssl_x509.cc +0 -1
  1683. data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +5 -1
  1684. data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +5 -1
  1685. data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64_adx.h +4 -2
  1686. data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_64.h +21 -0
  1687. data/third_party/cares/config_linux/ares_config.h +2 -38
  1688. data/third_party/upb/upb/base/descriptor_constants.h +7 -27
  1689. data/third_party/upb/upb/base/internal/log2.h +38 -0
  1690. data/third_party/upb/upb/base/status.c +6 -26
  1691. data/third_party/upb/upb/base/status.h +6 -26
  1692. data/third_party/upb/upb/base/status.hpp +50 -0
  1693. data/third_party/upb/upb/base/string_view.h +11 -28
  1694. data/third_party/upb/upb/generated_code_support.h +13 -34
  1695. data/third_party/upb/upb/hash/common.c +7 -44
  1696. data/third_party/upb/upb/hash/common.h +16 -42
  1697. data/third_party/upb/upb/hash/int_table.h +6 -26
  1698. data/third_party/upb/upb/hash/str_table.h +6 -26
  1699. data/third_party/upb/upb/json/decode.c +31 -28
  1700. data/third_party/upb/upb/json/decode.h +32 -29
  1701. data/third_party/upb/upb/json/encode.c +31 -28
  1702. data/third_party/upb/upb/json/encode.h +35 -32
  1703. data/third_party/upb/upb/lex/atoi.c +6 -26
  1704. data/third_party/upb/upb/lex/atoi.h +8 -26
  1705. data/third_party/upb/upb/lex/round_trip.c +6 -26
  1706. data/third_party/upb/upb/lex/round_trip.h +6 -26
  1707. data/third_party/upb/upb/lex/strtod.c +6 -26
  1708. data/third_party/upb/upb/lex/strtod.h +6 -26
  1709. data/third_party/upb/upb/lex/unicode.c +6 -26
  1710. data/third_party/upb/upb/lex/unicode.h +8 -26
  1711. data/third_party/upb/upb/mem/alloc.c +6 -26
  1712. data/third_party/upb/upb/mem/alloc.h +6 -26
  1713. data/third_party/upb/upb/mem/arena.c +30 -29
  1714. data/third_party/upb/upb/mem/arena.h +16 -44
  1715. data/third_party/upb/upb/mem/arena.hpp +54 -0
  1716. data/third_party/upb/upb/mem/internal/arena.h +94 -0
  1717. data/third_party/upb/upb/message/accessors.c +10 -31
  1718. data/third_party/upb/upb/message/accessors.h +12 -32
  1719. data/third_party/upb/upb/message/array.c +154 -0
  1720. data/third_party/upb/upb/message/array.h +98 -0
  1721. data/third_party/upb/upb/message/internal/accessors.h +367 -0
  1722. data/third_party/upb/upb/message/internal/array.h +138 -0
  1723. data/third_party/upb/upb/message/internal/extension.h +63 -0
  1724. data/third_party/upb/upb/message/internal/map.h +173 -0
  1725. data/third_party/upb/upb/message/internal/map_entry.h +35 -33
  1726. data/third_party/upb/upb/message/internal/map_sorter.h +112 -0
  1727. data/third_party/upb/upb/message/internal/message.h +106 -0
  1728. data/third_party/upb/upb/message/internal/types.h +23 -0
  1729. data/third_party/upb/upb/message/map.c +145 -0
  1730. data/third_party/upb/upb/message/map.h +147 -0
  1731. data/third_party/upb/upb/message/map_gencode_util.h +81 -0
  1732. data/third_party/upb/upb/message/map_sorter.c +170 -0
  1733. data/third_party/upb/upb/message/message.c +8 -28
  1734. data/third_party/upb/upb/message/message.h +9 -26
  1735. data/third_party/upb/upb/message/tagged_ptr.h +8 -28
  1736. data/third_party/upb/upb/message/types.h +15 -0
  1737. data/third_party/upb/upb/message/value.h +46 -0
  1738. data/third_party/upb/upb/mini_descriptor/build_enum.c +6 -26
  1739. data/third_party/upb/upb/mini_descriptor/build_enum.h +7 -28
  1740. data/third_party/upb/upb/mini_descriptor/decode.c +21 -26
  1741. data/third_party/upb/upb/mini_descriptor/decode.h +6 -26
  1742. data/third_party/upb/upb/mini_descriptor/internal/base92.c +6 -26
  1743. data/third_party/upb/upb/mini_descriptor/internal/base92.h +9 -27
  1744. data/third_party/upb/upb/mini_descriptor/internal/decoder.h +6 -26
  1745. data/third_party/upb/upb/mini_descriptor/internal/encode.c +25 -28
  1746. data/third_party/upb/upb/mini_descriptor/internal/encode.h +8 -26
  1747. data/third_party/upb/upb/mini_descriptor/internal/encode.hpp +21 -39
  1748. data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +8 -26
  1749. data/third_party/upb/upb/mini_descriptor/internal/wire_constants.h +7 -26
  1750. data/third_party/upb/upb/mini_descriptor/link.c +8 -28
  1751. data/third_party/upb/upb/mini_descriptor/link.h +6 -26
  1752. data/third_party/upb/upb/mini_table/enum.h +14 -26
  1753. data/third_party/upb/upb/mini_table/extension.h +6 -31
  1754. data/third_party/upb/upb/mini_table/extension_registry.c +6 -26
  1755. data/third_party/upb/upb/mini_table/extension_registry.h +7 -27
  1756. data/third_party/upb/upb/mini_table/field.h +6 -26
  1757. data/third_party/upb/upb/mini_table/file.h +6 -26
  1758. data/third_party/upb/upb/mini_table/internal/enum.h +8 -26
  1759. data/third_party/upb/upb/mini_table/internal/extension.h +6 -26
  1760. data/third_party/upb/upb/mini_table/internal/field.h +8 -30
  1761. data/third_party/upb/upb/mini_table/internal/file.h +9 -29
  1762. data/third_party/upb/upb/mini_table/internal/message.c +6 -26
  1763. data/third_party/upb/upb/mini_table/internal/message.h +7 -32
  1764. data/third_party/upb/upb/mini_table/internal/sub.h +6 -27
  1765. data/third_party/upb/upb/mini_table/message.c +6 -26
  1766. data/third_party/upb/upb/mini_table/message.h +6 -26
  1767. data/third_party/upb/upb/mini_table/sub.h +6 -26
  1768. data/third_party/upb/upb/port/atomic.h +8 -26
  1769. data/third_party/upb/upb/port/def.inc +28 -29
  1770. data/third_party/upb/upb/port/undef.inc +8 -26
  1771. data/third_party/upb/upb/port/vsnprintf_compat.h +6 -26
  1772. data/third_party/upb/upb/reflection/common.h +11 -27
  1773. data/third_party/upb/upb/reflection/def.h +8 -26
  1774. data/third_party/upb/upb/reflection/def.hpp +10 -27
  1775. data/third_party/upb/upb/reflection/def_pool.c +16 -35
  1776. data/third_party/upb/upb/reflection/def_pool.h +17 -38
  1777. data/third_party/upb/upb/reflection/def_type.c +6 -26
  1778. data/third_party/upb/upb/reflection/def_type.h +6 -27
  1779. data/third_party/upb/upb/reflection/desc_state.c +7 -27
  1780. data/third_party/upb/upb/reflection/enum_def.c +18 -36
  1781. data/third_party/upb/upb/reflection/enum_def.h +13 -33
  1782. data/third_party/upb/upb/reflection/enum_reserved_range.c +9 -30
  1783. data/third_party/upb/upb/reflection/enum_reserved_range.h +6 -26
  1784. data/third_party/upb/upb/reflection/enum_value_def.c +13 -32
  1785. data/third_party/upb/upb/reflection/enum_value_def.h +8 -28
  1786. data/third_party/upb/upb/reflection/extension_range.c +9 -28
  1787. data/third_party/upb/upb/reflection/extension_range.h +6 -26
  1788. data/third_party/upb/upb/reflection/field_def.c +68 -51
  1789. data/third_party/upb/upb/reflection/field_def.h +25 -42
  1790. data/third_party/upb/upb/reflection/file_def.c +23 -48
  1791. data/third_party/upb/upb/reflection/file_def.h +10 -30
  1792. data/third_party/upb/upb/reflection/internal/def_builder.c +339 -0
  1793. data/third_party/upb/upb/reflection/internal/def_builder.h +137 -0
  1794. data/third_party/upb/upb/reflection/internal/def_pool.h +57 -0
  1795. data/third_party/upb/upb/reflection/internal/desc_state.h +44 -0
  1796. data/third_party/upb/upb/reflection/internal/enum_def.h +36 -0
  1797. data/third_party/upb/upb/reflection/internal/enum_reserved_range.h +35 -0
  1798. data/third_party/upb/upb/reflection/internal/enum_value_def.h +37 -0
  1799. data/third_party/upb/upb/reflection/internal/extension_range.h +34 -0
  1800. data/third_party/upb/upb/reflection/internal/field_def.h +56 -0
  1801. data/third_party/upb/upb/reflection/internal/file_def.h +37 -0
  1802. data/third_party/upb/upb/reflection/internal/message_def.h +43 -0
  1803. data/third_party/upb/upb/reflection/internal/message_reserved_range.h +35 -0
  1804. data/third_party/upb/upb/reflection/internal/method_def.h +33 -0
  1805. data/third_party/upb/upb/reflection/internal/oneof_def.h +37 -0
  1806. data/third_party/upb/upb/reflection/internal/service_def.h +33 -0
  1807. data/third_party/upb/upb/reflection/internal/strdup2.c +33 -0
  1808. data/third_party/upb/upb/reflection/internal/strdup2.h +32 -0
  1809. data/third_party/upb/upb/reflection/message.c +8 -28
  1810. data/third_party/upb/upb/reflection/message.h +27 -40
  1811. data/third_party/upb/upb/reflection/message.hpp +5 -23
  1812. data/third_party/upb/upb/reflection/message_def.c +70 -54
  1813. data/third_party/upb/upb/reflection/message_def.h +25 -43
  1814. data/third_party/upb/upb/reflection/message_reserved_range.c +8 -28
  1815. data/third_party/upb/upb/reflection/message_reserved_range.h +6 -26
  1816. data/third_party/upb/upb/reflection/method_def.c +10 -29
  1817. data/third_party/upb/upb/reflection/method_def.h +6 -26
  1818. data/third_party/upb/upb/reflection/oneof_def.c +15 -33
  1819. data/third_party/upb/upb/reflection/oneof_def.h +11 -30
  1820. data/third_party/upb/upb/reflection/service_def.c +12 -31
  1821. data/third_party/upb/upb/reflection/service_def.h +6 -26
  1822. data/third_party/upb/upb/text/encode.c +8 -28
  1823. data/third_party/upb/upb/text/encode.h +6 -26
  1824. data/third_party/upb/upb/wire/decode.c +39 -40
  1825. data/third_party/upb/upb/wire/decode.h +10 -26
  1826. data/third_party/upb/upb/wire/decode_fast.c +10 -28
  1827. data/third_party/upb/upb/wire/decode_fast.h +6 -26
  1828. data/third_party/upb/upb/wire/encode.c +30 -34
  1829. data/third_party/upb/upb/wire/encode.h +14 -30
  1830. data/third_party/upb/upb/wire/eps_copy_input_stream.c +6 -26
  1831. data/third_party/upb/upb/wire/eps_copy_input_stream.h +6 -26
  1832. data/third_party/upb/upb/wire/internal/constants.h +27 -0
  1833. data/third_party/upb/upb/wire/internal/decode.h +143 -0
  1834. data/third_party/upb/upb/wire/internal/swap.h +45 -0
  1835. data/third_party/upb/upb/wire/reader.c +6 -26
  1836. data/third_party/upb/upb/wire/reader.h +8 -28
  1837. data/third_party/upb/upb/wire/types.h +6 -26
  1838. data/third_party/zlib/adler32.c +5 -27
  1839. data/third_party/zlib/compress.c +5 -16
  1840. data/third_party/zlib/crc32.c +86 -162
  1841. data/third_party/zlib/deflate.c +233 -336
  1842. data/third_party/zlib/deflate.h +8 -8
  1843. data/third_party/zlib/gzguts.h +11 -12
  1844. data/third_party/zlib/infback.c +7 -23
  1845. data/third_party/zlib/inffast.c +1 -4
  1846. data/third_party/zlib/inffast.h +1 -1
  1847. data/third_party/zlib/inflate.c +30 -99
  1848. data/third_party/zlib/inftrees.c +6 -11
  1849. data/third_party/zlib/inftrees.h +3 -3
  1850. data/third_party/zlib/trees.c +224 -302
  1851. data/third_party/zlib/uncompr.c +4 -12
  1852. data/third_party/zlib/zconf.h +6 -2
  1853. data/third_party/zlib/zlib.h +191 -188
  1854. data/third_party/zlib/zutil.c +16 -44
  1855. data/third_party/zlib/zutil.h +10 -10
  1856. metadata +1085 -860
  1857. data/src/core/ext/filters/client_channel/backend_metric.cc +0 -95
  1858. data/src/core/ext/filters/client_channel/backend_metric.h +0 -47
  1859. data/src/core/ext/filters/client_channel/backup_poller.cc +0 -178
  1860. data/src/core/ext/filters/client_channel/backup_poller.h +0 -37
  1861. data/src/core/ext/filters/client_channel/channel_connectivity.cc +0 -265
  1862. data/src/core/ext/filters/client_channel/client_channel.cc +0 -3612
  1863. data/src/core/ext/filters/client_channel/client_channel.h +0 -639
  1864. data/src/core/ext/filters/client_channel/client_channel_channelz.cc +0 -93
  1865. data/src/core/ext/filters/client_channel/client_channel_channelz.h +0 -85
  1866. data/src/core/ext/filters/client_channel/client_channel_factory.cc +0 -32
  1867. data/src/core/ext/filters/client_channel/client_channel_factory.h +0 -46
  1868. data/src/core/ext/filters/client_channel/client_channel_internal.h +0 -77
  1869. data/src/core/ext/filters/client_channel/client_channel_plugin.cc +0 -56
  1870. data/src/core/ext/filters/client_channel/client_channel_service_config.cc +0 -153
  1871. data/src/core/ext/filters/client_channel/client_channel_service_config.h +0 -111
  1872. data/src/core/ext/filters/client_channel/config_selector.cc +0 -60
  1873. data/src/core/ext/filters/client_channel/config_selector.h +0 -125
  1874. data/src/core/ext/filters/client_channel/connector.h +0 -88
  1875. data/src/core/ext/filters/client_channel/dynamic_filters.cc +0 -175
  1876. data/src/core/ext/filters/client_channel/dynamic_filters.h +0 -110
  1877. data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +0 -65
  1878. data/src/core/ext/filters/client_channel/global_subchannel_pool.h +0 -63
  1879. data/src/core/ext/filters/client_channel/http_proxy_mapper.cc +0 -238
  1880. data/src/core/ext/filters/client_channel/http_proxy_mapper.h +0 -52
  1881. data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +0 -74
  1882. data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +0 -117
  1883. data/src/core/ext/filters/client_channel/lb_policy/backend_metric_data.h +0 -57
  1884. data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +0 -315
  1885. data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h +0 -88
  1886. data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.cc +0 -188
  1887. data/src/core/ext/filters/client_channel/lb_policy/endpoint_list.h +0 -214
  1888. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +0 -85
  1889. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +0 -46
  1890. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +0 -1880
  1891. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +0 -39
  1892. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +0 -89
  1893. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +0 -39
  1894. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +0 -90
  1895. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +0 -81
  1896. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +0 -202
  1897. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +0 -77
  1898. data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +0 -515
  1899. data/src/core/ext/filters/client_channel/lb_policy/health_check_client.h +0 -52
  1900. data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +0 -204
  1901. data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.cc +0 -335
  1902. data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.h +0 -57
  1903. data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric_internal.h +0 -119
  1904. data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +0 -1116
  1905. data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +0 -94
  1906. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +0 -875
  1907. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +0 -36
  1908. data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +0 -897
  1909. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +0 -856
  1910. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +0 -64
  1911. data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +0 -2457
  1912. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +0 -921
  1913. data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +0 -456
  1914. data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.cc +0 -198
  1915. data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.h +0 -71
  1916. data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +0 -1813
  1917. data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +0 -752
  1918. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +0 -712
  1919. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +0 -37
  1920. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +0 -750
  1921. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +0 -650
  1922. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +0 -1173
  1923. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +0 -832
  1924. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.h +0 -67
  1925. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_wrr_locality.cc +0 -301
  1926. data/src/core/ext/filters/client_channel/local_subchannel_pool.cc +0 -60
  1927. data/src/core/ext/filters/client_channel/local_subchannel_pool.h +0 -59
  1928. data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +0 -148
  1929. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +0 -758
  1930. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.h +0 -30
  1931. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +0 -90
  1932. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +0 -206
  1933. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +0 -818
  1934. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +0 -1218
  1935. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +0 -139
  1936. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +0 -29
  1937. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +0 -35
  1938. data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.cc +0 -66
  1939. data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.h +0 -27
  1940. data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +0 -586
  1941. data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.h +0 -35
  1942. data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.cc +0 -97
  1943. data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.h +0 -32
  1944. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +0 -184
  1945. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.h +0 -24
  1946. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +0 -386
  1947. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +0 -144
  1948. data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +0 -326
  1949. data/src/core/ext/filters/client_channel/resolver/polling_resolver.cc +0 -274
  1950. data/src/core/ext/filters/client_channel/resolver/polling_resolver.h +0 -121
  1951. data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +0 -202
  1952. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +0 -1286
  1953. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +0 -61
  1954. data/src/core/ext/filters/client_channel/retry_filter.cc +0 -160
  1955. data/src/core/ext/filters/client_channel/retry_filter.h +0 -122
  1956. data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.cc +0 -2052
  1957. data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.h +0 -442
  1958. data/src/core/ext/filters/client_channel/retry_service_config.cc +0 -283
  1959. data/src/core/ext/filters/client_channel/retry_service_config.h +0 -105
  1960. data/src/core/ext/filters/client_channel/retry_throttle.cc +0 -139
  1961. data/src/core/ext/filters/client_channel/retry_throttle.h +0 -92
  1962. data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +0 -124
  1963. data/src/core/ext/filters/client_channel/subchannel.cc +0 -811
  1964. data/src/core/ext/filters/client_channel/subchannel.h +0 -387
  1965. data/src/core/ext/filters/client_channel/subchannel_interface_internal.h +0 -41
  1966. data/src/core/ext/filters/client_channel/subchannel_pool_interface.cc +0 -66
  1967. data/src/core/ext/filters/client_channel/subchannel_pool_interface.h +0 -100
  1968. data/src/core/ext/filters/client_channel/subchannel_stream_client.cc +0 -469
  1969. data/src/core/ext/filters/client_channel/subchannel_stream_client.h +0 -225
  1970. data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +0 -150
  1971. data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +0 -727
  1972. data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +0 -181
  1973. data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +0 -827
  1974. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +0 -158
  1975. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +0 -735
  1976. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +0 -533
  1977. data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +0 -2788
  1978. data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +0 -67
  1979. data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +0 -248
  1980. data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +0 -75
  1981. data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +0 -279
  1982. data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +0 -57
  1983. data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +0 -160
  1984. data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +0 -50
  1985. data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +0 -120
  1986. data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +0 -50
  1987. data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +0 -115
  1988. data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +0 -151
  1989. data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +0 -927
  1990. data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +0 -55
  1991. data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +0 -114
  1992. data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +0 -61
  1993. data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +0 -126
  1994. data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +0 -58
  1995. data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +0 -110
  1996. data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +0 -376
  1997. data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +0 -1764
  1998. data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +0 -570
  1999. data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +0 -3249
  2000. data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +0 -126
  2001. data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +0 -524
  2002. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +0 -730
  2003. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +0 -3918
  2004. data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +0 -55
  2005. data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +0 -114
  2006. data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +0 -124
  2007. data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +0 -656
  2008. data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +0 -396
  2009. data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +0 -1841
  2010. data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +0 -225
  2011. data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +0 -1046
  2012. data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +0 -56
  2013. data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +0 -126
  2014. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +0 -578
  2015. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +0 -2440
  2016. data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +0 -226
  2017. data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +0 -1133
  2018. data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +0 -52
  2019. data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +0 -107
  2020. data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +0 -54
  2021. data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +0 -114
  2022. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +0 -69
  2023. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +0 -248
  2024. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +0 -379
  2025. data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +0 -1699
  2026. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +0 -316
  2027. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +0 -1943
  2028. data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +0 -56
  2029. data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +0 -141
  2030. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +0 -482
  2031. data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +0 -2256
  2032. data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +0 -71
  2033. data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +0 -237
  2034. data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +0 -73
  2035. data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +0 -231
  2036. data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +0 -77
  2037. data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +0 -285
  2038. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +0 -67
  2039. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +0 -252
  2040. data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +0 -55
  2041. data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +0 -128
  2042. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +0 -139
  2043. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +0 -490
  2044. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +0 -205
  2045. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +0 -867
  2046. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +0 -180
  2047. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +0 -912
  2048. data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +0 -51
  2049. data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +0 -99
  2050. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +0 -267
  2051. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +0 -1592
  2052. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +0 -261
  2053. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +0 -1451
  2054. data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +0 -87
  2055. data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +0 -323
  2056. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +0 -78
  2057. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +0 -196
  2058. data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +0 -65
  2059. data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +0 -179
  2060. data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +0 -220
  2061. data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +0 -980
  2062. data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +0 -251
  2063. data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +0 -1189
  2064. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +0 -349
  2065. data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +0 -1709
  2066. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +0 -134
  2067. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +0 -859
  2068. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +0 -1644
  2069. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +0 -9590
  2070. data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +0 -98
  2071. data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +0 -339
  2072. data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +0 -326
  2073. data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +0 -1522
  2074. data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +0 -52
  2075. data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +0 -115
  2076. data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +0 -56
  2077. data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +0 -114
  2078. data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +0 -74
  2079. data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +0 -188
  2080. data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +0 -63
  2081. data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +0 -197
  2082. data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +0 -82
  2083. data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +0 -405
  2084. data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +0 -53
  2085. data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +0 -114
  2086. data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +0 -52
  2087. data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +0 -99
  2088. data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +0 -86
  2089. data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +0 -251
  2090. data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +0 -34
  2091. data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +0 -40
  2092. data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +0 -88
  2093. data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +0 -253
  2094. data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +0 -66
  2095. data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +0 -196
  2096. data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.c +0 -556
  2097. data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.h +0 -2702
  2098. data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +0 -47
  2099. data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +0 -131
  2100. data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +0 -117
  2101. data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +0 -429
  2102. data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +0 -142
  2103. data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +0 -656
  2104. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +0 -88
  2105. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +0 -263
  2106. data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +0 -102
  2107. data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +0 -460
  2108. data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +0 -73
  2109. data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +0 -193
  2110. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +0 -680
  2111. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +0 -3965
  2112. data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +0 -51
  2113. data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +0 -99
  2114. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +0 -68
  2115. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +0 -238
  2116. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +0 -136
  2117. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +0 -491
  2118. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.c +0 -45
  2119. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +0 -85
  2120. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +0 -69
  2121. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +0 -249
  2122. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +0 -51
  2123. data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +0 -99
  2124. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +0 -29
  2125. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +0 -35
  2126. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +0 -263
  2127. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +0 -1471
  2128. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +0 -109
  2129. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +0 -361
  2130. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +0 -268
  2131. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +0 -1474
  2132. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +0 -73
  2133. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +0 -216
  2134. data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +0 -39
  2135. data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +0 -70
  2136. data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +0 -403
  2137. data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +0 -2153
  2138. data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +0 -85
  2139. data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +0 -323
  2140. data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +0 -183
  2141. data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +0 -915
  2142. data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +0 -55
  2143. data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +0 -129
  2144. data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +0 -87
  2145. data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +0 -313
  2146. data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +0 -54
  2147. data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +0 -122
  2148. data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +0 -106
  2149. data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +0 -301
  2150. data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +0 -77
  2151. data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +0 -258
  2152. data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +0 -56
  2153. data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +0 -164
  2154. data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +0 -55
  2155. data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +0 -127
  2156. data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +0 -52
  2157. data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +0 -107
  2158. data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +0 -97
  2159. data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +0 -269
  2160. data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +0 -44
  2161. data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +0 -109
  2162. data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +0 -82
  2163. data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +0 -304
  2164. data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +0 -71
  2165. data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +0 -228
  2166. data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +0 -93
  2167. data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +0 -346
  2168. data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +0 -128
  2169. data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +0 -528
  2170. data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +0 -140
  2171. data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +0 -508
  2172. data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +0 -77
  2173. data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +0 -226
  2174. data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +0 -27
  2175. data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +0 -36
  2176. data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +0 -47
  2177. data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +0 -145
  2178. data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +0 -65
  2179. data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +0 -160
  2180. data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +0 -85
  2181. data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +0 -238
  2182. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +0 -76
  2183. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +0 -229
  2184. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +0 -27
  2185. data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +0 -40
  2186. data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +0 -50
  2187. data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +0 -115
  2188. data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +0 -58
  2189. data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +0 -143
  2190. data/src/core/ext/upb-generated/google/api/annotations.upb.c +0 -41
  2191. data/src/core/ext/upb-generated/google/api/annotations.upb.h +0 -55
  2192. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +0 -370
  2193. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +0 -1756
  2194. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +0 -400
  2195. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +0 -1841
  2196. data/src/core/ext/upb-generated/google/api/http.upb.c +0 -112
  2197. data/src/core/ext/upb-generated/google/api/http.upb.h +0 -499
  2198. data/src/core/ext/upb-generated/google/api/httpbody.upb.c +0 -53
  2199. data/src/core/ext/upb-generated/google/api/httpbody.upb.h +0 -165
  2200. data/src/core/ext/upb-generated/google/protobuf/any.upb.c +0 -47
  2201. data/src/core/ext/upb-generated/google/protobuf/any.upb.h +0 -100
  2202. data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +0 -1327
  2203. data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +0 -6236
  2204. data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +0 -47
  2205. data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +0 -100
  2206. data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +0 -36
  2207. data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +0 -70
  2208. data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +0 -116
  2209. data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +0 -426
  2210. data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +0 -47
  2211. data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +0 -100
  2212. data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +0 -164
  2213. data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +0 -517
  2214. data/src/core/ext/upb-generated/google/rpc/status.upb.c +0 -53
  2215. data/src/core/ext/upb-generated/google/rpc/status.upb.h +0 -165
  2216. data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +0 -107
  2217. data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +0 -389
  2218. data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +0 -80
  2219. data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +0 -238
  2220. data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +0 -343
  2221. data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +0 -1669
  2222. data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +0 -70
  2223. data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +0 -199
  2224. data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +0 -59
  2225. data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +0 -146
  2226. data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +0 -222
  2227. data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +0 -885
  2228. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +0 -93
  2229. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +0 -300
  2230. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +0 -244
  2231. data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +0 -1341
  2232. data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +0 -127
  2233. data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +0 -333
  2234. data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +0 -62
  2235. data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +0 -125
  2236. data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +0 -39
  2237. data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +0 -55
  2238. data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +0 -61
  2239. data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +0 -132
  2240. data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +0 -58
  2241. data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +0 -110
  2242. data/src/core/ext/upb-generated/validate/validate.upb.c +0 -948
  2243. data/src/core/ext/upb-generated/validate/validate.upb.h +0 -6536
  2244. data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +0 -127
  2245. data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +0 -333
  2246. data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +0 -62
  2247. data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +0 -125
  2248. data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +0 -39
  2249. data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +0 -55
  2250. data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +0 -124
  2251. data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +0 -344
  2252. data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +0 -58
  2253. data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +0 -110
  2254. data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +0 -46
  2255. data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +0 -85
  2256. data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +0 -54
  2257. data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +0 -114
  2258. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +0 -79
  2259. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +0 -233
  2260. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +0 -63
  2261. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +0 -134
  2262. data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +0 -53
  2263. data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +0 -114
  2264. data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +0 -56
  2265. data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +0 -143
  2266. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +0 -85
  2267. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +0 -330
  2268. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +0 -60
  2269. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +0 -144
  2270. data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +0 -127
  2271. data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +0 -352
  2272. data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +0 -53
  2273. data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +0 -160
  2274. data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +0 -51
  2275. data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +0 -99
  2276. data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +0 -73
  2277. data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +0 -262
  2278. data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +0 -37
  2279. data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +0 -70
  2280. data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +0 -76
  2281. data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +0 -281
  2282. data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +0 -266
  2283. data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +0 -1114
  2284. data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +0 -158
  2285. data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +0 -732
  2286. data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +0 -59
  2287. data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +0 -159
  2288. data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +0 -80
  2289. data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +0 -304
  2290. data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +0 -80
  2291. data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +0 -232
  2292. data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +0 -83
  2293. data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +0 -238
  2294. data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +0 -52
  2295. data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +0 -114
  2296. data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +0 -84
  2297. data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +0 -56
  2298. data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +0 -128
  2299. data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +0 -51
  2300. data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +0 -102
  2301. data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +0 -56
  2302. data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.c +0 -277
  2303. data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.h +0 -126
  2304. data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +0 -43
  2305. data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +0 -41
  2306. data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +0 -56
  2307. data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +0 -41
  2308. data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +0 -49
  2309. data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +0 -36
  2310. data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +0 -46
  2311. data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +0 -36
  2312. data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +0 -46
  2313. data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +0 -36
  2314. data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +0 -142
  2315. data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +0 -41
  2316. data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +0 -51
  2317. data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +0 -36
  2318. data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +0 -48
  2319. data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +0 -31
  2320. data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +0 -38
  2321. data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +0 -36
  2322. data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +0 -234
  2323. data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +0 -111
  2324. data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +0 -408
  2325. data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +0 -121
  2326. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +0 -98
  2327. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +0 -46
  2328. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +0 -567
  2329. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +0 -151
  2330. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +0 -51
  2331. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +0 -36
  2332. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +0 -138
  2333. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +0 -36
  2334. data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +0 -206
  2335. data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +0 -106
  2336. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +0 -132
  2337. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +0 -71
  2338. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +0 -54
  2339. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +0 -36
  2340. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +0 -271
  2341. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +0 -151
  2342. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +0 -168
  2343. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +0 -66
  2344. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +0 -53
  2345. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +0 -36
  2346. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +0 -47
  2347. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +0 -36
  2348. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +0 -53
  2349. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +0 -41
  2350. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +0 -237
  2351. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +0 -101
  2352. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +0 -245
  2353. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +0 -76
  2354. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +0 -53
  2355. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +0 -36
  2356. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +0 -311
  2357. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +0 -111
  2358. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +0 -57
  2359. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +0 -41
  2360. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +0 -55
  2361. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +0 -41
  2362. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +0 -61
  2363. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +0 -41
  2364. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +0 -70
  2365. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +0 -36
  2366. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +0 -49
  2367. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +0 -36
  2368. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +0 -99
  2369. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +0 -51
  2370. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +0 -133
  2371. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +0 -61
  2372. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +0 -136
  2373. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +0 -56
  2374. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +0 -48
  2375. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +0 -36
  2376. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +0 -227
  2377. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +0 -81
  2378. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +0 -190
  2379. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +0 -66
  2380. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +0 -101
  2381. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +0 -36
  2382. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +0 -71
  2383. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +0 -41
  2384. data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +0 -76
  2385. data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +0 -36
  2386. data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +0 -125
  2387. data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +0 -71
  2388. data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +0 -142
  2389. data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +0 -81
  2390. data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +0 -223
  2391. data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +0 -86
  2392. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +0 -123
  2393. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +0 -46
  2394. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +0 -972
  2395. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +0 -316
  2396. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +0 -77
  2397. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +0 -46
  2398. data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +0 -199
  2399. data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +0 -91
  2400. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +0 -56
  2401. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +0 -36
  2402. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +0 -57
  2403. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +0 -36
  2404. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +0 -57
  2405. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +0 -41
  2406. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +0 -72
  2407. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +0 -36
  2408. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +0 -99
  2409. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +0 -36
  2410. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.c +0 -45
  2411. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.h +0 -36
  2412. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +0 -52
  2413. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +0 -36
  2414. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +0 -71
  2415. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +0 -41
  2416. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +0 -61
  2417. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +0 -31
  2418. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +0 -75
  2419. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +0 -41
  2420. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +0 -79
  2421. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +0 -36
  2422. data/src/core/ext/upbdefs-generated/envoy/data/accesslog/v3/accesslog.upbdefs.c +0 -402
  2423. data/src/core/ext/upbdefs-generated/envoy/data/accesslog/v3/accesslog.upbdefs.h +0 -111
  2424. data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +0 -50
  2425. data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +0 -36
  2426. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +0 -92
  2427. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +0 -56
  2428. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +0 -123
  2429. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +0 -46
  2430. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +0 -80
  2431. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +0 -41
  2432. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +0 -105
  2433. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +0 -41
  2434. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +0 -60
  2435. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +0 -41
  2436. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +0 -602
  2437. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +0 -136
  2438. data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +0 -50
  2439. data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +0 -36
  2440. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +0 -48
  2441. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +0 -31
  2442. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +0 -215
  2443. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +0 -66
  2444. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +0 -91
  2445. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +0 -46
  2446. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +0 -258
  2447. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +0 -66
  2448. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +0 -58
  2449. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +0 -41
  2450. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +0 -58
  2451. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +0 -36
  2452. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +0 -200
  2453. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +0 -101
  2454. data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +0 -76
  2455. data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +0 -41
  2456. data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +0 -152
  2457. data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +0 -56
  2458. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +0 -46
  2459. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +0 -36
  2460. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +0 -56
  2461. data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +0 -51
  2462. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.c +0 -48
  2463. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.h +0 -36
  2464. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +0 -55
  2465. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +0 -56
  2466. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +0 -61
  2467. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +0 -41
  2468. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +0 -54
  2469. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +0 -36
  2470. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +0 -52
  2471. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +0 -36
  2472. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +0 -51
  2473. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +0 -36
  2474. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +0 -71
  2475. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +0 -46
  2476. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.c +0 -40
  2477. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.h +0 -41
  2478. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +0 -65
  2479. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +0 -41
  2480. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +0 -58
  2481. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +0 -41
  2482. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +0 -75
  2483. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +0 -46
  2484. data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +0 -78
  2485. data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +0 -66
  2486. data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +0 -85
  2487. data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +0 -56
  2488. data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +0 -53
  2489. data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +0 -46
  2490. data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +0 -36
  2491. data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +0 -31
  2492. data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +0 -94
  2493. data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +0 -36
  2494. data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +0 -54
  2495. data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +0 -41
  2496. data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +0 -48
  2497. data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +0 -46
  2498. data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.c +0 -69
  2499. data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.h +0 -41
  2500. data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +0 -39
  2501. data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +0 -31
  2502. data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +0 -44
  2503. data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +0 -36
  2504. data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +0 -57
  2505. data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +0 -36
  2506. data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +0 -40
  2507. data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +0 -31
  2508. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +0 -154
  2509. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +0 -96
  2510. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +0 -153
  2511. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +0 -101
  2512. data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +0 -52
  2513. data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +0 -46
  2514. data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +0 -39
  2515. data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +0 -36
  2516. data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +0 -34
  2517. data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +0 -36
  2518. data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +0 -464
  2519. data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +0 -181
  2520. data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +0 -35
  2521. data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +0 -36
  2522. data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +0 -32
  2523. data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +0 -36
  2524. data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +0 -54
  2525. data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +0 -51
  2526. data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +0 -35
  2527. data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +0 -36
  2528. data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +0 -45
  2529. data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +0 -76
  2530. data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +0 -37
  2531. data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +0 -36
  2532. data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +0 -67
  2533. data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +0 -51
  2534. data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +0 -99
  2535. data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +0 -76
  2536. data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +0 -62
  2537. data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +0 -46
  2538. data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +0 -47
  2539. data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +0 -36
  2540. data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +0 -34
  2541. data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +0 -31
  2542. data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +0 -46
  2543. data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +0 -36
  2544. data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +0 -39
  2545. data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +0 -36
  2546. data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +0 -283
  2547. data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +0 -146
  2548. data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +0 -63
  2549. data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +0 -46
  2550. data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +0 -47
  2551. data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +0 -36
  2552. data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +0 -35
  2553. data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +0 -31
  2554. data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +0 -64
  2555. data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +0 -51
  2556. data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +0 -40
  2557. data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +0 -36
  2558. data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +0 -38
  2559. data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +0 -36
  2560. data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.c +0 -45
  2561. data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.h +0 -36
  2562. data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +0 -56
  2563. data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +0 -41
  2564. data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +0 -39
  2565. data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +0 -41
  2566. data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +0 -41
  2567. data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +0 -36
  2568. data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +0 -45
  2569. data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +0 -36
  2570. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +0 -61
  2571. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +0 -41
  2572. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +0 -46
  2573. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +0 -36
  2574. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.c +0 -43
  2575. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.h +0 -36
  2576. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.c +0 -51
  2577. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.h +0 -41
  2578. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.c +0 -36
  2579. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.h +0 -36
  2580. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.c +0 -55
  2581. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.h +0 -41
  2582. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +0 -126
  2583. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +0 -81
  2584. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.c +0 -71
  2585. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.h +0 -61
  2586. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +0 -40
  2587. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +0 -41
  2588. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +0 -52
  2589. data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +0 -41
  2590. data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.c +0 -60
  2591. data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.h +0 -41
  2592. data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.c +0 -36
  2593. data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.h +0 -46
  2594. data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +0 -37
  2595. data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +0 -36
  2596. data/src/core/lib/event_engine/memory_allocator.cc +0 -74
  2597. data/src/core/lib/iomgr/load_file.cc +0 -78
  2598. data/src/core/lib/iomgr/load_file.h +0 -35
  2599. data/src/core/lib/load_balancing/delegating_helper.h +0 -115
  2600. data/src/core/lib/load_balancing/lb_policy.cc +0 -98
  2601. data/src/core/lib/load_balancing/lb_policy.h +0 -478
  2602. data/src/core/lib/load_balancing/lb_policy_factory.h +0 -49
  2603. data/src/core/lib/load_balancing/lb_policy_registry.cc +0 -143
  2604. data/src/core/lib/load_balancing/lb_policy_registry.h +0 -82
  2605. data/src/core/lib/load_balancing/subchannel_interface.h +0 -141
  2606. data/src/core/lib/resolver/resolver.cc +0 -37
  2607. data/src/core/lib/resolver/resolver.h +0 -138
  2608. data/src/core/lib/resolver/resolver_factory.h +0 -78
  2609. data/src/core/lib/resolver/resolver_registry.cc +0 -164
  2610. data/src/core/lib/resolver/resolver_registry.h +0 -123
  2611. data/src/core/lib/resolver/server_address.cc +0 -89
  2612. data/src/core/lib/resolver/server_address.h +0 -86
  2613. data/src/core/lib/service_config/service_config.h +0 -89
  2614. data/src/core/lib/service_config/service_config_call_data.h +0 -116
  2615. data/src/core/lib/service_config/service_config_impl.cc +0 -198
  2616. data/src/core/lib/service_config/service_config_impl.h +0 -125
  2617. data/src/core/lib/service_config/service_config_parser.cc +0 -81
  2618. data/src/core/lib/service_config/service_config_parser.h +0 -105
  2619. data/src/core/lib/transport/pid_controller.cc +0 -51
  2620. data/src/core/lib/transport/pid_controller.h +0 -116
  2621. data/src/core/lib/transport/transport_impl.h +0 -102
  2622. data/third_party/abseil-cpp/absl/base/internal/prefetch.h +0 -137
  2623. data/third_party/abseil-cpp/absl/base/internal/thread_annotations.h +0 -280
  2624. data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_64.cc +0 -432
  2625. data/third_party/abseil-cpp/absl/flags/flag.cc +0 -38
  2626. data/third_party/abseil-cpp/absl/flags/internal/flag_msvc.inc +0 -116
  2627. data/third_party/abseil-cpp/absl/strings/internal/char_map.h +0 -158
  2628. data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.cc +0 -773
  2629. data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.h +0 -607
  2630. data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring_reader.h +0 -118
  2631. data/third_party/boringssl-with-bazel/src/crypto/kyber/keccak.c +0 -204
  2632. data/third_party/boringssl-with-bazel/src/crypto/x509/x_info.c +0 -100
  2633. data/third_party/boringssl-with-bazel/src/crypto/x509/x_pkey.c +0 -111
  2634. data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +0 -197
  2635. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akey.c +0 -221
  2636. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akeya.c +0 -71
  2637. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +0 -635
  2638. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bcons.c +0 -135
  2639. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bitst.c +0 -141
  2640. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +0 -418
  2641. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +0 -477
  2642. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_crld.c +0 -599
  2643. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_enum.c +0 -111
  2644. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_extku.c +0 -154
  2645. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_genn.c +0 -270
  2646. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ia5.c +0 -122
  2647. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_info.c +0 -213
  2648. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_int.c +0 -121
  2649. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +0 -341
  2650. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ncons.c +0 -555
  2651. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ocsp.c +0 -81
  2652. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pcons.c +0 -142
  2653. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pmaps.c +0 -150
  2654. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_prn.c +0 -225
  2655. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +0 -888
  2656. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +0 -171
  2657. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +0 -1355
  2658. data/third_party/upb/upb/alloc.h +0 -36
  2659. data/third_party/upb/upb/arena.h +0 -36
  2660. data/third_party/upb/upb/array.h +0 -36
  2661. data/third_party/upb/upb/base/log2.h +0 -57
  2662. data/third_party/upb/upb/collections/array.c +0 -151
  2663. data/third_party/upb/upb/collections/array.h +0 -91
  2664. data/third_party/upb/upb/collections/array_internal.h +0 -135
  2665. data/third_party/upb/upb/collections/map.c +0 -142
  2666. data/third_party/upb/upb/collections/map.h +0 -140
  2667. data/third_party/upb/upb/collections/map_gencode_util.h +0 -78
  2668. data/third_party/upb/upb/collections/map_internal.h +0 -170
  2669. data/third_party/upb/upb/collections/map_sorter.c +0 -166
  2670. data/third_party/upb/upb/collections/map_sorter_internal.h +0 -109
  2671. data/third_party/upb/upb/collections/message_value.h +0 -72
  2672. data/third_party/upb/upb/decode.h +0 -36
  2673. data/third_party/upb/upb/def.h +0 -36
  2674. data/third_party/upb/upb/def.hpp +0 -33
  2675. data/third_party/upb/upb/encode.h +0 -36
  2676. data/third_party/upb/upb/extension_registry.h +0 -35
  2677. data/third_party/upb/upb/map.h +0 -36
  2678. data/third_party/upb/upb/mem/arena_internal.h +0 -114
  2679. data/third_party/upb/upb/message/accessors_internal.h +0 -391
  2680. data/third_party/upb/upb/message/extension_internal.h +0 -83
  2681. data/third_party/upb/upb/message/internal.h +0 -131
  2682. data/third_party/upb/upb/msg.h +0 -36
  2683. data/third_party/upb/upb/reflection/def_builder.c +0 -357
  2684. data/third_party/upb/upb/reflection/def_builder_internal.h +0 -157
  2685. data/third_party/upb/upb/reflection/def_pool_internal.h +0 -77
  2686. data/third_party/upb/upb/reflection/desc_state_internal.h +0 -64
  2687. data/third_party/upb/upb/reflection/enum_def_internal.h +0 -56
  2688. data/third_party/upb/upb/reflection/enum_reserved_range_internal.h +0 -55
  2689. data/third_party/upb/upb/reflection/enum_value_def_internal.h +0 -57
  2690. data/third_party/upb/upb/reflection/extension_range_internal.h +0 -54
  2691. data/third_party/upb/upb/reflection/field_def_internal.h +0 -76
  2692. data/third_party/upb/upb/reflection/file_def_internal.h +0 -57
  2693. data/third_party/upb/upb/reflection/message_def_internal.h +0 -63
  2694. data/third_party/upb/upb/reflection/message_reserved_range_internal.h +0 -55
  2695. data/third_party/upb/upb/reflection/method_def_internal.h +0 -53
  2696. data/third_party/upb/upb/reflection/oneof_def_internal.h +0 -57
  2697. data/third_party/upb/upb/reflection/service_def_internal.h +0 -53
  2698. data/third_party/upb/upb/reflection.h +0 -36
  2699. data/third_party/upb/upb/reflection.hpp +0 -33
  2700. data/third_party/upb/upb/status.h +0 -36
  2701. data/third_party/upb/upb/string_view.h +0 -36
  2702. data/third_party/upb/upb/text_encode.h +0 -36
  2703. data/third_party/upb/upb/upb.h +0 -39
  2704. data/third_party/upb/upb/upb.hpp +0 -107
  2705. data/third_party/upb/upb/wire/common.h +0 -44
  2706. data/third_party/upb/upb/wire/common_internal.h +0 -50
  2707. data/third_party/upb/upb/wire/decode_internal.h +0 -163
  2708. data/third_party/upb/upb/wire/swap_internal.h +0 -63
  2709. /data/third_party/boringssl-with-bazel/src/crypto/{x509v3 → x509}/ext_dat.h +0 -0
@@ -0,0 +1,3654 @@
1
+ //
2
+ // Copyright 2015 gRPC authors.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+
17
+ #include <grpc/support/port_platform.h>
18
+
19
+ #include "src/core/client_channel/client_channel_filter.h"
20
+
21
+ #include <inttypes.h>
22
+ #include <limits.h>
23
+
24
+ #include <algorithm>
25
+ #include <functional>
26
+ #include <new>
27
+ #include <set>
28
+ #include <type_traits>
29
+ #include <utility>
30
+ #include <vector>
31
+
32
+ #include "absl/cleanup/cleanup.h"
33
+ #include "absl/status/status.h"
34
+ #include "absl/status/statusor.h"
35
+ #include "absl/strings/cord.h"
36
+ #include "absl/strings/numbers.h"
37
+ #include "absl/strings/str_cat.h"
38
+ #include "absl/strings/str_join.h"
39
+ #include "absl/strings/string_view.h"
40
+ #include "absl/types/optional.h"
41
+ #include "absl/types/variant.h"
42
+
43
+ #include <grpc/event_engine/event_engine.h>
44
+ #include <grpc/impl/channel_arg_names.h>
45
+ #include <grpc/slice.h>
46
+ #include <grpc/status.h>
47
+ #include <grpc/support/json.h>
48
+ #include <grpc/support/log.h>
49
+ #include <grpc/support/string_util.h>
50
+ #include <grpc/support/time.h>
51
+
52
+ #include "src/core/client_channel/backend_metric.h"
53
+ #include "src/core/client_channel/backup_poller.h"
54
+ #include "src/core/client_channel/client_channel_channelz.h"
55
+ #include "src/core/client_channel/client_channel_internal.h"
56
+ #include "src/core/client_channel/client_channel_service_config.h"
57
+ #include "src/core/client_channel/config_selector.h"
58
+ #include "src/core/client_channel/dynamic_filters.h"
59
+ #include "src/core/client_channel/global_subchannel_pool.h"
60
+ #include "src/core/client_channel/local_subchannel_pool.h"
61
+ #include "src/core/client_channel/retry_filter.h"
62
+ #include "src/core/client_channel/subchannel.h"
63
+ #include "src/core/client_channel/subchannel_interface_internal.h"
64
+ #include "src/core/ext/filters/deadline/deadline_filter.h"
65
+ #include "src/core/lib/channel/channel_args.h"
66
+ #include "src/core/lib/channel/channel_stack.h"
67
+ #include "src/core/lib/channel/channel_trace.h"
68
+ #include "src/core/lib/channel/status_util.h"
69
+ #include "src/core/lib/config/core_configuration.h"
70
+ #include "src/core/lib/debug/trace.h"
71
+ #include "src/core/lib/experiments/experiments.h"
72
+ #include "src/core/lib/gpr/useful.h"
73
+ #include "src/core/lib/gprpp/crash.h"
74
+ #include "src/core/lib/gprpp/debug_location.h"
75
+ #include "src/core/lib/gprpp/manual_constructor.h"
76
+ #include "src/core/lib/gprpp/status_helper.h"
77
+ #include "src/core/lib/gprpp/sync.h"
78
+ #include "src/core/lib/gprpp/unique_type_name.h"
79
+ #include "src/core/lib/gprpp/work_serializer.h"
80
+ #include "src/core/lib/handshaker/proxy_mapper_registry.h"
81
+ #include "src/core/lib/iomgr/exec_ctx.h"
82
+ #include "src/core/lib/iomgr/polling_entity.h"
83
+ #include "src/core/lib/iomgr/pollset_set.h"
84
+ #include "src/core/lib/iomgr/resolved_address.h"
85
+ #include "src/core/lib/json/json.h"
86
+ #include "src/core/lib/promise/cancel_callback.h"
87
+ #include "src/core/lib/promise/context.h"
88
+ #include "src/core/lib/promise/latch.h"
89
+ #include "src/core/lib/promise/map.h"
90
+ #include "src/core/lib/promise/pipe.h"
91
+ #include "src/core/lib/promise/poll.h"
92
+ #include "src/core/lib/promise/promise.h"
93
+ #include "src/core/lib/promise/try_seq.h"
94
+ #include "src/core/lib/security/credentials/credentials.h"
95
+ #include "src/core/service_config/service_config_call_data.h"
96
+ #include "src/core/service_config/service_config_impl.h"
97
+ #include "src/core/lib/slice/slice.h"
98
+ #include "src/core/lib/slice/slice_internal.h"
99
+ #include "src/core/lib/surface/call.h"
100
+ #include "src/core/lib/surface/channel.h"
101
+ #include "src/core/lib/transport/connectivity_state.h"
102
+ #include "src/core/lib/transport/error_utils.h"
103
+ #include "src/core/lib/transport/metadata_batch.h"
104
+ #include "src/core/load_balancing/child_policy_handler.h"
105
+ #include "src/core/load_balancing/lb_policy_registry.h"
106
+ #include "src/core/load_balancing/subchannel_interface.h"
107
+ #include "src/core/resolver/endpoint_addresses.h"
108
+ #include "src/core/resolver/resolver_registry.h"
109
+
110
+ //
111
+ // Client channel filter
112
+ //
113
+
114
+ namespace grpc_core {
115
+
116
+ using internal::ClientChannelMethodParsedConfig;
117
+
118
+ TraceFlag grpc_client_channel_trace(false, "client_channel");
119
+ TraceFlag grpc_client_channel_call_trace(false, "client_channel_call");
120
+ TraceFlag grpc_client_channel_lb_call_trace(false, "client_channel_lb_call");
121
+
122
+ //
123
+ // ClientChannelFilter::CallData definition
124
+ //
125
+
126
+ class ClientChannelFilter::CallData {
127
+ public:
128
+ // Removes the call from the channel's list of calls queued
129
+ // for name resolution.
130
+ void RemoveCallFromResolverQueuedCallsLocked()
131
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannelFilter::resolution_mu_);
132
+
133
+ // Called by the channel for each queued call when a new resolution
134
+ // result becomes available.
135
+ virtual void RetryCheckResolutionLocked()
136
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannelFilter::resolution_mu_) = 0;
137
+
138
+ RefCountedPtr<DynamicFilters> dynamic_filters() const {
139
+ return dynamic_filters_;
140
+ }
141
+
142
+ protected:
143
+ CallData() = default;
144
+ virtual ~CallData() = default;
145
+
146
+ // Checks whether a resolver result is available. The following
147
+ // outcomes are possible:
148
+ // - No resolver result is available yet. The call will be queued and
149
+ // absl::nullopt will be returned. Later, when a resolver result
150
+ // becomes available, RetryCheckResolutionLocked() will be called.
151
+ // - The resolver has returned a transient failure. If the call is
152
+ // not wait_for_ready, a non-OK status will be returned. (If the
153
+ // call *is* wait_for_ready, it will be queued instead.)
154
+ // - There is a valid resolver result. The service config will be
155
+ // stored in the call context and an OK status will be returned.
156
+ absl::optional<absl::Status> CheckResolution(bool was_queued);
157
+
158
+ private:
159
+ // Accessors for data stored in the subclass.
160
+ virtual ClientChannelFilter* chand() const = 0;
161
+ virtual Arena* arena() const = 0;
162
+ virtual grpc_polling_entity* pollent() = 0;
163
+ virtual grpc_metadata_batch* send_initial_metadata() = 0;
164
+ virtual grpc_call_context_element* call_context() const = 0;
165
+
166
+ // Helper function for CheckResolution(). Returns true if the call
167
+ // can continue (i.e., there is a valid resolution result, or there is
168
+ // an invalid resolution result but the call is not wait_for_ready).
169
+ bool CheckResolutionLocked(
170
+ absl::StatusOr<RefCountedPtr<ConfigSelector>>* config_selector)
171
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannelFilter::resolution_mu_);
172
+
173
+ // Adds the call to the channel's list of calls queued for name resolution.
174
+ void AddCallToResolverQueuedCallsLocked()
175
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannelFilter::resolution_mu_);
176
+
177
+ // Called when adding the call to the resolver queue.
178
+ virtual void OnAddToQueueLocked()
179
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannelFilter::resolution_mu_) {}
180
+
181
+ // Applies service config to the call. Must be invoked once we know
182
+ // that the resolver has returned results to the channel.
183
+ // If an error is returned, the error indicates the status with which
184
+ // the call should be failed.
185
+ grpc_error_handle ApplyServiceConfigToCallLocked(
186
+ const absl::StatusOr<RefCountedPtr<ConfigSelector>>& config_selector);
187
+
188
+ // Called to reset the deadline based on the service config obtained
189
+ // from the resolver.
190
+ virtual void ResetDeadline(Duration timeout) = 0;
191
+
192
+ RefCountedPtr<DynamicFilters> dynamic_filters_;
193
+ };
194
+
195
+ class ClientChannelFilter::FilterBasedCallData
196
+ : public ClientChannelFilter::CallData {
197
+ public:
198
+ static grpc_error_handle Init(grpc_call_element* elem,
199
+ const grpc_call_element_args* args);
200
+ static void Destroy(grpc_call_element* elem,
201
+ const grpc_call_final_info* final_info,
202
+ grpc_closure* then_schedule_closure);
203
+ static void StartTransportStreamOpBatch(
204
+ grpc_call_element* elem, grpc_transport_stream_op_batch* batch);
205
+ static void SetPollent(grpc_call_element* elem, grpc_polling_entity* pollent);
206
+
207
+ private:
208
+ class ResolverQueuedCallCanceller;
209
+
210
+ FilterBasedCallData(grpc_call_element* elem,
211
+ const grpc_call_element_args& args);
212
+ ~FilterBasedCallData() override;
213
+
214
+ grpc_call_element* elem() const { return deadline_state_.elem; }
215
+ grpc_call_stack* owning_call() const { return deadline_state_.call_stack; }
216
+ CallCombiner* call_combiner() const { return deadline_state_.call_combiner; }
217
+
218
+ ClientChannelFilter* chand() const override {
219
+ return static_cast<ClientChannelFilter*>(elem()->channel_data);
220
+ }
221
+ Arena* arena() const override { return deadline_state_.arena; }
222
+ grpc_polling_entity* pollent() override { return pollent_; }
223
+ grpc_metadata_batch* send_initial_metadata() override {
224
+ return pending_batches_[0]
225
+ ->payload->send_initial_metadata.send_initial_metadata;
226
+ }
227
+ grpc_call_context_element* call_context() const override {
228
+ return call_context_;
229
+ }
230
+
231
+ // Returns the index into pending_batches_ to be used for batch.
232
+ static size_t GetBatchIndex(grpc_transport_stream_op_batch* batch);
233
+ void PendingBatchesAdd(grpc_transport_stream_op_batch* batch);
234
+ static void FailPendingBatchInCallCombiner(void* arg,
235
+ grpc_error_handle error);
236
+ // A predicate type and some useful implementations for PendingBatchesFail().
237
+ typedef bool (*YieldCallCombinerPredicate)(
238
+ const CallCombinerClosureList& closures);
239
+ static bool YieldCallCombiner(const CallCombinerClosureList& /*closures*/) {
240
+ return true;
241
+ }
242
+ static bool NoYieldCallCombiner(const CallCombinerClosureList& /*closures*/) {
243
+ return false;
244
+ }
245
+ static bool YieldCallCombinerIfPendingBatchesFound(
246
+ const CallCombinerClosureList& closures) {
247
+ return closures.size() > 0;
248
+ }
249
+ // Fails all pending batches.
250
+ // If yield_call_combiner_predicate returns true, assumes responsibility for
251
+ // yielding the call combiner.
252
+ void PendingBatchesFail(
253
+ grpc_error_handle error,
254
+ YieldCallCombinerPredicate yield_call_combiner_predicate);
255
+ static void ResumePendingBatchInCallCombiner(void* arg,
256
+ grpc_error_handle ignored);
257
+ // Resumes all pending batches on dynamic_call_.
258
+ void PendingBatchesResume();
259
+
260
+ // Called to check for a resolution result, both when the call is
261
+ // initially started and when it is queued and the channel gets a new
262
+ // resolution result.
263
+ void TryCheckResolution(bool was_queued);
264
+
265
+ void OnAddToQueueLocked() override
266
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannelFilter::resolution_mu_);
267
+
268
+ void RetryCheckResolutionLocked() override
269
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannelFilter::resolution_mu_);
270
+
271
+ void ResetDeadline(Duration timeout) override {
272
+ const Timestamp per_method_deadline =
273
+ Timestamp::FromCycleCounterRoundUp(call_start_time_) + timeout;
274
+ if (per_method_deadline < deadline_) {
275
+ deadline_ = per_method_deadline;
276
+ grpc_deadline_state_reset(&deadline_state_, deadline_);
277
+ }
278
+ }
279
+
280
+ void CreateDynamicCall();
281
+
282
+ static void RecvTrailingMetadataReadyForConfigSelectorCommitCallback(
283
+ void* arg, grpc_error_handle error);
284
+
285
+ grpc_slice path_; // Request path.
286
+ grpc_call_context_element* call_context_;
287
+ gpr_cycle_counter call_start_time_;
288
+ Timestamp deadline_;
289
+
290
+ // State for handling deadlines.
291
+ grpc_deadline_state deadline_state_;
292
+
293
+ grpc_polling_entity* pollent_ = nullptr;
294
+
295
+ // Accessed while holding ClientChannelFilter::resolution_mu_.
296
+ ResolverQueuedCallCanceller* resolver_call_canceller_
297
+ ABSL_GUARDED_BY(&ClientChannelFilter::resolution_mu_) = nullptr;
298
+
299
+ grpc_closure* original_recv_trailing_metadata_ready_ = nullptr;
300
+ grpc_closure recv_trailing_metadata_ready_;
301
+
302
+ RefCountedPtr<DynamicFilters::Call> dynamic_call_;
303
+
304
+ // Batches are added to this list when received from above.
305
+ // They are removed when we are done handling the batch (i.e., when
306
+ // either we have invoked all of the batch's callbacks or we have
307
+ // passed the batch down to the LB call and are not intercepting any of
308
+ // its callbacks).
309
+ grpc_transport_stream_op_batch* pending_batches_[MAX_PENDING_BATCHES] = {};
310
+
311
+ // Set when we get a cancel_stream op.
312
+ grpc_error_handle cancel_error_;
313
+ };
314
+
315
+ class ClientChannelFilter::PromiseBasedCallData
316
+ : public ClientChannelFilter::CallData {
317
+ public:
318
+ explicit PromiseBasedCallData(ClientChannelFilter* chand) : chand_(chand) {}
319
+
320
+ ~PromiseBasedCallData() override {
321
+ if (was_queued_ && client_initial_metadata_ != nullptr) {
322
+ MutexLock lock(&chand_->resolution_mu_);
323
+ RemoveCallFromResolverQueuedCallsLocked();
324
+ chand_->resolver_queued_calls_.erase(this);
325
+ }
326
+ }
327
+
328
+ ArenaPromise<absl::StatusOr<CallArgs>> MakeNameResolutionPromise(
329
+ CallArgs call_args) {
330
+ pollent_ = NowOrNever(call_args.polling_entity->WaitAndCopy()).value();
331
+ client_initial_metadata_ = std::move(call_args.client_initial_metadata);
332
+ // If we're still in IDLE, we need to start resolving.
333
+ if (GPR_UNLIKELY(chand_->CheckConnectivityState(false) ==
334
+ GRPC_CHANNEL_IDLE)) {
335
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
336
+ gpr_log(GPR_INFO, "chand=%p calld=%p: %striggering exit idle", chand_,
337
+ this, GetContext<Activity>()->DebugTag().c_str());
338
+ }
339
+ // Bounce into the control plane work serializer to start resolving.
340
+ GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ExitIdle");
341
+ chand_->work_serializer_->Run(
342
+ [chand = chand_]()
343
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
344
+ chand->CheckConnectivityState(/*try_to_connect=*/true);
345
+ GRPC_CHANNEL_STACK_UNREF(chand->owning_stack_, "ExitIdle");
346
+ },
347
+ DEBUG_LOCATION);
348
+ }
349
+ return [this, call_args = std::move(
350
+ call_args)]() mutable -> Poll<absl::StatusOr<CallArgs>> {
351
+ auto result = CheckResolution(was_queued_);
352
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
353
+ gpr_log(GPR_INFO, "chand=%p calld=%p: %sCheckResolution returns %s",
354
+ chand_, this, GetContext<Activity>()->DebugTag().c_str(),
355
+ result.has_value() ? result->ToString().c_str() : "Pending");
356
+ }
357
+ if (!result.has_value()) return Pending{};
358
+ if (!result->ok()) return *result;
359
+ call_args.client_initial_metadata = std::move(client_initial_metadata_);
360
+ return std::move(call_args);
361
+ };
362
+ }
363
+
364
+ private:
365
+ ClientChannelFilter* chand() const override { return chand_; }
366
+ Arena* arena() const override { return GetContext<Arena>(); }
367
+ grpc_polling_entity* pollent() override { return &pollent_; }
368
+ grpc_metadata_batch* send_initial_metadata() override {
369
+ return client_initial_metadata_.get();
370
+ }
371
+ grpc_call_context_element* call_context() const override {
372
+ return GetContext<grpc_call_context_element>();
373
+ }
374
+
375
+ void OnAddToQueueLocked() override
376
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannelFilter::resolution_mu_) {
377
+ waker_ = GetContext<Activity>()->MakeNonOwningWaker();
378
+ was_queued_ = true;
379
+ }
380
+
381
+ void RetryCheckResolutionLocked() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
382
+ &ClientChannelFilter::resolution_mu_) override {
383
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
384
+ gpr_log(GPR_INFO, "chand=%p calld=%p: RetryCheckResolutionLocked(): %s",
385
+ chand_, this, waker_.ActivityDebugTag().c_str());
386
+ }
387
+ waker_.WakeupAsync();
388
+ }
389
+
390
+ void ResetDeadline(Duration timeout) override {
391
+ CallContext* call_context = GetContext<CallContext>();
392
+ const Timestamp per_method_deadline =
393
+ Timestamp::FromCycleCounterRoundUp(call_context->call_start_time()) +
394
+ timeout;
395
+ call_context->UpdateDeadline(per_method_deadline);
396
+ }
397
+
398
+ ClientChannelFilter* chand_;
399
+ grpc_polling_entity pollent_;
400
+ ClientMetadataHandle client_initial_metadata_;
401
+ bool was_queued_ = false;
402
+ Waker waker_ ABSL_GUARDED_BY(&ClientChannelFilter::resolution_mu_);
403
+ };
404
+
405
+ //
406
+ // Filter vtable
407
+ //
408
+
409
+ const grpc_channel_filter ClientChannelFilter::kFilterVtableWithPromises = {
410
+ ClientChannelFilter::FilterBasedCallData::StartTransportStreamOpBatch,
411
+ ClientChannelFilter::MakeCallPromise,
412
+ /* init_call: */ nullptr,
413
+ ClientChannelFilter::StartTransportOp,
414
+ sizeof(ClientChannelFilter::FilterBasedCallData),
415
+ ClientChannelFilter::FilterBasedCallData::Init,
416
+ ClientChannelFilter::FilterBasedCallData::SetPollent,
417
+ ClientChannelFilter::FilterBasedCallData::Destroy,
418
+ sizeof(ClientChannelFilter),
419
+ ClientChannelFilter::Init,
420
+ grpc_channel_stack_no_post_init,
421
+ ClientChannelFilter::Destroy,
422
+ ClientChannelFilter::GetChannelInfo,
423
+ "client-channel",
424
+ };
425
+
426
+ const grpc_channel_filter ClientChannelFilter::kFilterVtableWithoutPromises = {
427
+ ClientChannelFilter::FilterBasedCallData::StartTransportStreamOpBatch,
428
+ nullptr,
429
+ /* init_call: */ nullptr,
430
+ ClientChannelFilter::StartTransportOp,
431
+ sizeof(ClientChannelFilter::FilterBasedCallData),
432
+ ClientChannelFilter::FilterBasedCallData::Init,
433
+ ClientChannelFilter::FilterBasedCallData::SetPollent,
434
+ ClientChannelFilter::FilterBasedCallData::Destroy,
435
+ sizeof(ClientChannelFilter),
436
+ ClientChannelFilter::Init,
437
+ grpc_channel_stack_no_post_init,
438
+ ClientChannelFilter::Destroy,
439
+ ClientChannelFilter::GetChannelInfo,
440
+ "client-channel",
441
+ };
442
+
443
+ //
444
+ // dynamic termination filter
445
+ //
446
+
447
+ namespace {
448
+
449
+ ClientChannelServiceConfigCallData* GetServiceConfigCallData(
450
+ grpc_call_context_element* context) {
451
+ return static_cast<ClientChannelServiceConfigCallData*>(
452
+ context[GRPC_CONTEXT_SERVICE_CONFIG_CALL_DATA].value);
453
+ }
454
+
455
+ class DynamicTerminationFilter {
456
+ public:
457
+ class CallData;
458
+
459
+ static const grpc_channel_filter kFilterVtable;
460
+
461
+ static grpc_error_handle Init(grpc_channel_element* elem,
462
+ grpc_channel_element_args* args) {
463
+ GPR_ASSERT(args->is_last);
464
+ GPR_ASSERT(elem->filter == &kFilterVtable);
465
+ new (elem->channel_data) DynamicTerminationFilter(args->channel_args);
466
+ return absl::OkStatus();
467
+ }
468
+
469
+ static void Destroy(grpc_channel_element* elem) {
470
+ auto* chand = static_cast<DynamicTerminationFilter*>(elem->channel_data);
471
+ chand->~DynamicTerminationFilter();
472
+ }
473
+
474
+ // Will never be called.
475
+ static void StartTransportOp(grpc_channel_element* /*elem*/,
476
+ grpc_transport_op* /*op*/) {}
477
+ static void GetChannelInfo(grpc_channel_element* /*elem*/,
478
+ const grpc_channel_info* /*info*/) {}
479
+
480
+ static ArenaPromise<ServerMetadataHandle> MakeCallPromise(
481
+ grpc_channel_element* elem, CallArgs call_args, NextPromiseFactory) {
482
+ auto* chand = static_cast<DynamicTerminationFilter*>(elem->channel_data);
483
+ return chand->chand_->CreateLoadBalancedCallPromise(
484
+ std::move(call_args),
485
+ []() {
486
+ auto* service_config_call_data =
487
+ GetServiceConfigCallData(GetContext<grpc_call_context_element>());
488
+ service_config_call_data->Commit();
489
+ },
490
+ /*is_transparent_retry=*/false);
491
+ }
492
+
493
+ private:
494
+ explicit DynamicTerminationFilter(const ChannelArgs& args)
495
+ : chand_(args.GetObject<ClientChannelFilter>()) {}
496
+
497
+ ClientChannelFilter* chand_;
498
+ };
499
+
500
+ class DynamicTerminationFilter::CallData {
501
+ public:
502
+ static grpc_error_handle Init(grpc_call_element* elem,
503
+ const grpc_call_element_args* args) {
504
+ new (elem->call_data) CallData(*args);
505
+ return absl::OkStatus();
506
+ }
507
+
508
+ static void Destroy(grpc_call_element* elem,
509
+ const grpc_call_final_info* /*final_info*/,
510
+ grpc_closure* then_schedule_closure) {
511
+ auto* calld = static_cast<CallData*>(elem->call_data);
512
+ RefCountedPtr<SubchannelCall> subchannel_call;
513
+ if (GPR_LIKELY(calld->lb_call_ != nullptr)) {
514
+ subchannel_call = calld->lb_call_->subchannel_call();
515
+ }
516
+ calld->~CallData();
517
+ if (GPR_LIKELY(subchannel_call != nullptr)) {
518
+ subchannel_call->SetAfterCallStackDestroy(then_schedule_closure);
519
+ } else {
520
+ // TODO(yashkt) : This can potentially be a Closure::Run
521
+ ExecCtx::Run(DEBUG_LOCATION, then_schedule_closure, absl::OkStatus());
522
+ }
523
+ }
524
+
525
+ static void StartTransportStreamOpBatch(
526
+ grpc_call_element* elem, grpc_transport_stream_op_batch* batch) {
527
+ auto* calld = static_cast<CallData*>(elem->call_data);
528
+ calld->lb_call_->StartTransportStreamOpBatch(batch);
529
+ }
530
+
531
+ static void SetPollent(grpc_call_element* elem,
532
+ grpc_polling_entity* pollent) {
533
+ auto* calld = static_cast<CallData*>(elem->call_data);
534
+ auto* chand = static_cast<DynamicTerminationFilter*>(elem->channel_data);
535
+ ClientChannelFilter* client_channel = chand->chand_;
536
+ grpc_call_element_args args = {calld->owning_call_, nullptr,
537
+ calld->call_context_, calld->path_,
538
+ /*start_time=*/0, calld->deadline_,
539
+ calld->arena_, calld->call_combiner_};
540
+ auto* service_config_call_data =
541
+ GetServiceConfigCallData(calld->call_context_);
542
+ calld->lb_call_ = client_channel->CreateLoadBalancedCall(
543
+ args, pollent, nullptr,
544
+ [service_config_call_data]() { service_config_call_data->Commit(); },
545
+ /*is_transparent_retry=*/false);
546
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
547
+ gpr_log(GPR_INFO,
548
+ "chand=%p dynamic_termination_calld=%p: create lb_call=%p", chand,
549
+ client_channel, calld->lb_call_.get());
550
+ }
551
+ }
552
+
553
+ private:
554
+ explicit CallData(const grpc_call_element_args& args)
555
+ : path_(CSliceRef(args.path)),
556
+ deadline_(args.deadline),
557
+ arena_(args.arena),
558
+ owning_call_(args.call_stack),
559
+ call_combiner_(args.call_combiner),
560
+ call_context_(args.context) {}
561
+
562
+ ~CallData() { CSliceUnref(path_); }
563
+
564
+ grpc_slice path_; // Request path.
565
+ Timestamp deadline_;
566
+ Arena* arena_;
567
+ grpc_call_stack* owning_call_;
568
+ CallCombiner* call_combiner_;
569
+ grpc_call_context_element* call_context_;
570
+
571
+ OrphanablePtr<ClientChannelFilter::FilterBasedLoadBalancedCall> lb_call_;
572
+ };
573
+
574
+ const grpc_channel_filter DynamicTerminationFilter::kFilterVtable = {
575
+ DynamicTerminationFilter::CallData::StartTransportStreamOpBatch,
576
+ DynamicTerminationFilter::MakeCallPromise,
577
+ /* init_call: */ nullptr,
578
+ DynamicTerminationFilter::StartTransportOp,
579
+ sizeof(DynamicTerminationFilter::CallData),
580
+ DynamicTerminationFilter::CallData::Init,
581
+ DynamicTerminationFilter::CallData::SetPollent,
582
+ DynamicTerminationFilter::CallData::Destroy,
583
+ sizeof(DynamicTerminationFilter),
584
+ DynamicTerminationFilter::Init,
585
+ grpc_channel_stack_no_post_init,
586
+ DynamicTerminationFilter::Destroy,
587
+ DynamicTerminationFilter::GetChannelInfo,
588
+ "dynamic_filter_termination",
589
+ };
590
+
591
+ } // namespace
592
+
593
+ //
594
+ // ClientChannelFilter::ResolverResultHandler
595
+ //
596
+
597
+ class ClientChannelFilter::ResolverResultHandler
598
+ : public Resolver::ResultHandler {
599
+ public:
600
+ explicit ResolverResultHandler(ClientChannelFilter* chand) : chand_(chand) {
601
+ GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ResolverResultHandler");
602
+ }
603
+
604
+ ~ResolverResultHandler() override {
605
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
606
+ gpr_log(GPR_INFO, "chand=%p: resolver shutdown complete", chand_);
607
+ }
608
+ GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_, "ResolverResultHandler");
609
+ }
610
+
611
+ void ReportResult(Resolver::Result result) override
612
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
613
+ chand_->OnResolverResultChangedLocked(std::move(result));
614
+ }
615
+
616
+ private:
617
+ ClientChannelFilter* chand_;
618
+ };
619
+
620
+ //
621
+ // ClientChannelFilter::SubchannelWrapper
622
+ //
623
+
624
+ // This class is a wrapper for Subchannel that hides details of the
625
+ // channel's implementation (such as the connected subchannel) from the
626
+ // LB policy API.
627
+ //
628
+ // Note that no synchronization is needed here, because even if the
629
+ // underlying subchannel is shared between channels, this wrapper will only
630
+ // be used within one channel, so it will always be synchronized by the
631
+ // control plane work_serializer.
632
+ class ClientChannelFilter::SubchannelWrapper : public SubchannelInterface {
633
+ public:
634
+ SubchannelWrapper(ClientChannelFilter* chand,
635
+ RefCountedPtr<Subchannel> subchannel)
636
+ : SubchannelInterface(GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)
637
+ ? "SubchannelWrapper"
638
+ : nullptr),
639
+ chand_(chand),
640
+ subchannel_(std::move(subchannel)) {
641
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
642
+ gpr_log(GPR_INFO,
643
+ "chand=%p: creating subchannel wrapper %p for subchannel %p",
644
+ chand, this, subchannel_.get());
645
+ }
646
+ GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "SubchannelWrapper");
647
+ GPR_DEBUG_ASSERT(chand_->work_serializer_->RunningInWorkSerializer());
648
+ if (chand_->channelz_node_ != nullptr) {
649
+ auto* subchannel_node = subchannel_->channelz_node();
650
+ if (subchannel_node != nullptr) {
651
+ auto it = chand_->subchannel_refcount_map_.find(subchannel_.get());
652
+ if (it == chand_->subchannel_refcount_map_.end()) {
653
+ chand_->channelz_node_->AddChildSubchannel(subchannel_node->uuid());
654
+ it = chand_->subchannel_refcount_map_.emplace(subchannel_.get(), 0)
655
+ .first;
656
+ }
657
+ ++it->second;
658
+ }
659
+ }
660
+ chand_->subchannel_wrappers_.insert(this);
661
+ }
662
+
663
+ ~SubchannelWrapper() override {
664
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
665
+ gpr_log(GPR_INFO,
666
+ "chand=%p: destroying subchannel wrapper %p for subchannel %p",
667
+ chand_, this, subchannel_.get());
668
+ }
669
+ if (!IsWorkSerializerDispatchEnabled()) {
670
+ chand_->subchannel_wrappers_.erase(this);
671
+ if (chand_->channelz_node_ != nullptr) {
672
+ auto* subchannel_node = subchannel_->channelz_node();
673
+ if (subchannel_node != nullptr) {
674
+ auto it = chand_->subchannel_refcount_map_.find(subchannel_.get());
675
+ GPR_ASSERT(it != chand_->subchannel_refcount_map_.end());
676
+ --it->second;
677
+ if (it->second == 0) {
678
+ chand_->channelz_node_->RemoveChildSubchannel(
679
+ subchannel_node->uuid());
680
+ chand_->subchannel_refcount_map_.erase(it);
681
+ }
682
+ }
683
+ }
684
+ }
685
+ GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_, "SubchannelWrapper");
686
+ }
687
+
688
+ void Orphan() override {
689
+ if (!IsWorkSerializerDispatchEnabled()) return;
690
+ // Make sure we clean up the channel's subchannel maps inside the
691
+ // WorkSerializer.
692
+ // Ref held by callback.
693
+ WeakRef(DEBUG_LOCATION, "subchannel map cleanup").release();
694
+ chand_->work_serializer_->Run(
695
+ [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
696
+ chand_->subchannel_wrappers_.erase(this);
697
+ if (chand_->channelz_node_ != nullptr) {
698
+ auto* subchannel_node = subchannel_->channelz_node();
699
+ if (subchannel_node != nullptr) {
700
+ auto it =
701
+ chand_->subchannel_refcount_map_.find(subchannel_.get());
702
+ GPR_ASSERT(it != chand_->subchannel_refcount_map_.end());
703
+ --it->second;
704
+ if (it->second == 0) {
705
+ chand_->channelz_node_->RemoveChildSubchannel(
706
+ subchannel_node->uuid());
707
+ chand_->subchannel_refcount_map_.erase(it);
708
+ }
709
+ }
710
+ }
711
+ WeakUnref(DEBUG_LOCATION, "subchannel map cleanup");
712
+ },
713
+ DEBUG_LOCATION);
714
+ }
715
+
716
+ void WatchConnectivityState(
717
+ std::unique_ptr<ConnectivityStateWatcherInterface> watcher) override
718
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
719
+ auto& watcher_wrapper = watcher_map_[watcher.get()];
720
+ GPR_ASSERT(watcher_wrapper == nullptr);
721
+ watcher_wrapper = new WatcherWrapper(
722
+ std::move(watcher),
723
+ RefAsSubclass<SubchannelWrapper>(DEBUG_LOCATION, "WatcherWrapper"));
724
+ subchannel_->WatchConnectivityState(
725
+ RefCountedPtr<Subchannel::ConnectivityStateWatcherInterface>(
726
+ watcher_wrapper));
727
+ }
728
+
729
+ void CancelConnectivityStateWatch(ConnectivityStateWatcherInterface* watcher)
730
+ override ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
731
+ auto it = watcher_map_.find(watcher);
732
+ GPR_ASSERT(it != watcher_map_.end());
733
+ subchannel_->CancelConnectivityStateWatch(it->second);
734
+ watcher_map_.erase(it);
735
+ }
736
+
737
+ RefCountedPtr<ConnectedSubchannel> connected_subchannel() const {
738
+ return subchannel_->connected_subchannel();
739
+ }
740
+
741
+ void RequestConnection() override { subchannel_->RequestConnection(); }
742
+
743
+ void ResetBackoff() override { subchannel_->ResetBackoff(); }
744
+
745
+ void AddDataWatcher(std::unique_ptr<DataWatcherInterface> watcher) override
746
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
747
+ static_cast<InternalSubchannelDataWatcherInterface*>(watcher.get())
748
+ ->SetSubchannel(subchannel_.get());
749
+ GPR_ASSERT(data_watchers_.insert(std::move(watcher)).second);
750
+ }
751
+
752
+ void CancelDataWatcher(DataWatcherInterface* watcher) override
753
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
754
+ auto it = data_watchers_.find(watcher);
755
+ if (it != data_watchers_.end()) data_watchers_.erase(it);
756
+ }
757
+
758
+ void ThrottleKeepaliveTime(int new_keepalive_time) {
759
+ subchannel_->ThrottleKeepaliveTime(new_keepalive_time);
760
+ }
761
+
762
+ private:
763
+ // This wrapper provides a bridge between the internal Subchannel API
764
+ // and the SubchannelInterface API that we expose to LB policies.
765
+ // It implements Subchannel::ConnectivityStateWatcherInterface and wraps
766
+ // the instance of SubchannelInterface::ConnectivityStateWatcherInterface
767
+ // that was passed in by the LB policy. We pass an instance of this
768
+ // class to the underlying Subchannel, and when we get updates from
769
+ // the subchannel, we pass those on to the wrapped watcher to return
770
+ // the update to the LB policy.
771
+ //
772
+ // This class handles things like hopping into the WorkSerializer
773
+ // before passing notifications to the LB policy and propagating
774
+ // keepalive information betwen subchannels.
775
+ class WatcherWrapper : public Subchannel::ConnectivityStateWatcherInterface {
776
+ public:
777
+ WatcherWrapper(
778
+ std::unique_ptr<SubchannelInterface::ConnectivityStateWatcherInterface>
779
+ watcher,
780
+ RefCountedPtr<SubchannelWrapper> parent)
781
+ : watcher_(std::move(watcher)), parent_(std::move(parent)) {}
782
+
783
+ ~WatcherWrapper() override {
784
+ if (!IsWorkSerializerDispatchEnabled()) {
785
+ auto* parent = parent_.release(); // ref owned by lambda
786
+ parent->chand_->work_serializer_->Run(
787
+ [parent]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
788
+ *parent_->chand_->work_serializer_) {
789
+ parent->Unref(DEBUG_LOCATION, "WatcherWrapper");
790
+ },
791
+ DEBUG_LOCATION);
792
+ return;
793
+ }
794
+ parent_.reset(DEBUG_LOCATION, "WatcherWrapper");
795
+ }
796
+
797
+ void OnConnectivityStateChange(
798
+ RefCountedPtr<ConnectivityStateWatcherInterface> self,
799
+ grpc_connectivity_state state, const absl::Status& status) override {
800
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
801
+ gpr_log(GPR_INFO,
802
+ "chand=%p: connectivity change for subchannel wrapper %p "
803
+ "subchannel %p; hopping into work_serializer",
804
+ parent_->chand_, parent_.get(), parent_->subchannel_.get());
805
+ }
806
+ self.release(); // Held by callback.
807
+ parent_->chand_->work_serializer_->Run(
808
+ [this, state, status]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
809
+ *parent_->chand_->work_serializer_) {
810
+ ApplyUpdateInControlPlaneWorkSerializer(state, status);
811
+ Unref();
812
+ },
813
+ DEBUG_LOCATION);
814
+ }
815
+
816
+ grpc_pollset_set* interested_parties() override {
817
+ return watcher_->interested_parties();
818
+ }
819
+
820
+ private:
821
+ void ApplyUpdateInControlPlaneWorkSerializer(grpc_connectivity_state state,
822
+ const absl::Status& status)
823
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*parent_->chand_->work_serializer_) {
824
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
825
+ gpr_log(GPR_INFO,
826
+ "chand=%p: processing connectivity change in work serializer "
827
+ "for subchannel wrapper %p subchannel %p watcher=%p "
828
+ "state=%s status=%s",
829
+ parent_->chand_, parent_.get(), parent_->subchannel_.get(),
830
+ watcher_.get(), ConnectivityStateName(state),
831
+ status.ToString().c_str());
832
+ }
833
+ absl::optional<absl::Cord> keepalive_throttling =
834
+ status.GetPayload(kKeepaliveThrottlingKey);
835
+ if (keepalive_throttling.has_value()) {
836
+ int new_keepalive_time = -1;
837
+ if (absl::SimpleAtoi(std::string(keepalive_throttling.value()),
838
+ &new_keepalive_time)) {
839
+ if (new_keepalive_time > parent_->chand_->keepalive_time_) {
840
+ parent_->chand_->keepalive_time_ = new_keepalive_time;
841
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
842
+ gpr_log(GPR_INFO, "chand=%p: throttling keepalive time to %d",
843
+ parent_->chand_, parent_->chand_->keepalive_time_);
844
+ }
845
+ // Propagate the new keepalive time to all subchannels. This is so
846
+ // that new transports created by any subchannel (and not just the
847
+ // subchannel that received the GOAWAY), use the new keepalive time.
848
+ for (auto* subchannel_wrapper :
849
+ parent_->chand_->subchannel_wrappers_) {
850
+ subchannel_wrapper->ThrottleKeepaliveTime(new_keepalive_time);
851
+ }
852
+ }
853
+ } else {
854
+ gpr_log(GPR_ERROR, "chand=%p: Illegal keepalive throttling value %s",
855
+ parent_->chand_,
856
+ std::string(keepalive_throttling.value()).c_str());
857
+ }
858
+ }
859
+ // Propagate status only in state TF.
860
+ // We specifically want to avoid propagating the status for
861
+ // state IDLE that the real subchannel gave us only for the
862
+ // purpose of keepalive propagation.
863
+ watcher_->OnConnectivityStateChange(
864
+ state,
865
+ state == GRPC_CHANNEL_TRANSIENT_FAILURE ? status : absl::OkStatus());
866
+ }
867
+
868
+ std::unique_ptr<SubchannelInterface::ConnectivityStateWatcherInterface>
869
+ watcher_;
870
+ RefCountedPtr<SubchannelWrapper> parent_;
871
+ };
872
+
873
+ // A heterogenous lookup comparator for data watchers that allows
874
+ // unique_ptr keys to be looked up as raw pointers.
875
+ struct DataWatcherLessThan {
876
+ using is_transparent = void;
877
+ bool operator()(const std::unique_ptr<DataWatcherInterface>& p1,
878
+ const std::unique_ptr<DataWatcherInterface>& p2) const {
879
+ return p1 < p2;
880
+ }
881
+ bool operator()(const std::unique_ptr<DataWatcherInterface>& p1,
882
+ const DataWatcherInterface* p2) const {
883
+ return p1.get() < p2;
884
+ }
885
+ bool operator()(const DataWatcherInterface* p1,
886
+ const std::unique_ptr<DataWatcherInterface>& p2) const {
887
+ return p1 < p2.get();
888
+ }
889
+ };
890
+
891
+ ClientChannelFilter* chand_;
892
+ RefCountedPtr<Subchannel> subchannel_;
893
+ // Maps from the address of the watcher passed to us by the LB policy
894
+ // to the address of the WrapperWatcher that we passed to the underlying
895
+ // subchannel. This is needed so that when the LB policy calls
896
+ // CancelConnectivityStateWatch() with its watcher, we know the
897
+ // corresponding WrapperWatcher to cancel on the underlying subchannel.
898
+ std::map<ConnectivityStateWatcherInterface*, WatcherWrapper*> watcher_map_
899
+ ABSL_GUARDED_BY(*chand_->work_serializer_);
900
+ std::set<std::unique_ptr<DataWatcherInterface>, DataWatcherLessThan>
901
+ data_watchers_ ABSL_GUARDED_BY(*chand_->work_serializer_);
902
+ };
903
+
904
+ //
905
+ // ClientChannelFilter::ExternalConnectivityWatcher
906
+ //
907
+
908
+ ClientChannelFilter::ExternalConnectivityWatcher::ExternalConnectivityWatcher(
909
+ ClientChannelFilter* chand, grpc_polling_entity pollent,
910
+ grpc_connectivity_state* state, grpc_closure* on_complete,
911
+ grpc_closure* watcher_timer_init)
912
+ : chand_(chand),
913
+ pollent_(pollent),
914
+ initial_state_(*state),
915
+ state_(state),
916
+ on_complete_(on_complete),
917
+ watcher_timer_init_(watcher_timer_init) {
918
+ grpc_polling_entity_add_to_pollset_set(&pollent_,
919
+ chand_->interested_parties_);
920
+ GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ExternalConnectivityWatcher");
921
+ {
922
+ MutexLock lock(&chand_->external_watchers_mu_);
923
+ // Will be deleted when the watch is complete.
924
+ GPR_ASSERT(chand->external_watchers_[on_complete] == nullptr);
925
+ // Store a ref to the watcher in the external_watchers_ map.
926
+ chand->external_watchers_[on_complete] =
927
+ RefAsSubclass<ExternalConnectivityWatcher>(
928
+ DEBUG_LOCATION, "AddWatcherToExternalWatchersMapLocked");
929
+ }
930
+ // Pass the ref from creating the object to Start().
931
+ chand_->work_serializer_->Run(
932
+ [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
933
+ // The ref is passed to AddWatcherLocked().
934
+ AddWatcherLocked();
935
+ },
936
+ DEBUG_LOCATION);
937
+ }
938
+
939
+ ClientChannelFilter::ExternalConnectivityWatcher::
940
+ ~ExternalConnectivityWatcher() {
941
+ grpc_polling_entity_del_from_pollset_set(&pollent_,
942
+ chand_->interested_parties_);
943
+ GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_,
944
+ "ExternalConnectivityWatcher");
945
+ }
946
+
947
+ void ClientChannelFilter::ExternalConnectivityWatcher::
948
+ RemoveWatcherFromExternalWatchersMap(ClientChannelFilter* chand,
949
+ grpc_closure* on_complete,
950
+ bool cancel) {
951
+ RefCountedPtr<ExternalConnectivityWatcher> watcher;
952
+ {
953
+ MutexLock lock(&chand->external_watchers_mu_);
954
+ auto it = chand->external_watchers_.find(on_complete);
955
+ if (it != chand->external_watchers_.end()) {
956
+ watcher = std::move(it->second);
957
+ chand->external_watchers_.erase(it);
958
+ }
959
+ }
960
+ // watcher->Cancel() will hop into the WorkSerializer, so we have to unlock
961
+ // the mutex before calling it.
962
+ if (watcher != nullptr && cancel) watcher->Cancel();
963
+ }
964
+
965
+ void ClientChannelFilter::ExternalConnectivityWatcher::Notify(
966
+ grpc_connectivity_state state, const absl::Status& /* status */) {
967
+ bool done = false;
968
+ if (!done_.compare_exchange_strong(done, true, std::memory_order_relaxed,
969
+ std::memory_order_relaxed)) {
970
+ return; // Already done.
971
+ }
972
+ // Remove external watcher.
973
+ ExternalConnectivityWatcher::RemoveWatcherFromExternalWatchersMap(
974
+ chand_, on_complete_, /*cancel=*/false);
975
+ // Report new state to the user.
976
+ *state_ = state;
977
+ ExecCtx::Run(DEBUG_LOCATION, on_complete_, absl::OkStatus());
978
+ // Hop back into the work_serializer to clean up.
979
+ // Not needed in state SHUTDOWN, because the tracker will
980
+ // automatically remove all watchers in that case.
981
+ // Note: The callback takes a ref in case the ref inside the state tracker
982
+ // gets removed before the callback runs via a SHUTDOWN notification.
983
+ if (state != GRPC_CHANNEL_SHUTDOWN) {
984
+ Ref(DEBUG_LOCATION, "RemoveWatcherLocked()").release();
985
+ chand_->work_serializer_->Run(
986
+ [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
987
+ RemoveWatcherLocked();
988
+ Unref(DEBUG_LOCATION, "RemoveWatcherLocked()");
989
+ },
990
+ DEBUG_LOCATION);
991
+ }
992
+ }
993
+
994
+ void ClientChannelFilter::ExternalConnectivityWatcher::Cancel() {
995
+ bool done = false;
996
+ if (!done_.compare_exchange_strong(done, true, std::memory_order_relaxed,
997
+ std::memory_order_relaxed)) {
998
+ return; // Already done.
999
+ }
1000
+ ExecCtx::Run(DEBUG_LOCATION, on_complete_, absl::CancelledError());
1001
+ // Hop back into the work_serializer to clean up.
1002
+ // Note: The callback takes a ref in case the ref inside the state tracker
1003
+ // gets removed before the callback runs via a SHUTDOWN notification.
1004
+ Ref(DEBUG_LOCATION, "RemoveWatcherLocked()").release();
1005
+ chand_->work_serializer_->Run(
1006
+ [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1007
+ RemoveWatcherLocked();
1008
+ Unref(DEBUG_LOCATION, "RemoveWatcherLocked()");
1009
+ },
1010
+ DEBUG_LOCATION);
1011
+ }
1012
+
1013
+ void ClientChannelFilter::ExternalConnectivityWatcher::AddWatcherLocked() {
1014
+ Closure::Run(DEBUG_LOCATION, watcher_timer_init_, absl::OkStatus());
1015
+ // Add new watcher. Pass the ref of the object from creation to OrphanablePtr.
1016
+ chand_->state_tracker_.AddWatcher(
1017
+ initial_state_, OrphanablePtr<ConnectivityStateWatcherInterface>(this));
1018
+ }
1019
+
1020
+ void ClientChannelFilter::ExternalConnectivityWatcher::RemoveWatcherLocked() {
1021
+ chand_->state_tracker_.RemoveWatcher(this);
1022
+ }
1023
+
1024
+ //
1025
+ // ClientChannelFilter::ConnectivityWatcherAdder
1026
+ //
1027
+
1028
+ class ClientChannelFilter::ConnectivityWatcherAdder {
1029
+ public:
1030
+ ConnectivityWatcherAdder(
1031
+ ClientChannelFilter* chand, grpc_connectivity_state initial_state,
1032
+ OrphanablePtr<AsyncConnectivityStateWatcherInterface> watcher)
1033
+ : chand_(chand),
1034
+ initial_state_(initial_state),
1035
+ watcher_(std::move(watcher)) {
1036
+ GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ConnectivityWatcherAdder");
1037
+ chand_->work_serializer_->Run(
1038
+ [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1039
+ AddWatcherLocked();
1040
+ },
1041
+ DEBUG_LOCATION);
1042
+ }
1043
+
1044
+ private:
1045
+ void AddWatcherLocked()
1046
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1047
+ chand_->state_tracker_.AddWatcher(initial_state_, std::move(watcher_));
1048
+ GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_, "ConnectivityWatcherAdder");
1049
+ delete this;
1050
+ }
1051
+
1052
+ ClientChannelFilter* chand_;
1053
+ grpc_connectivity_state initial_state_;
1054
+ OrphanablePtr<AsyncConnectivityStateWatcherInterface> watcher_;
1055
+ };
1056
+
1057
+ //
1058
+ // ClientChannelFilter::ConnectivityWatcherRemover
1059
+ //
1060
+
1061
+ class ClientChannelFilter::ConnectivityWatcherRemover {
1062
+ public:
1063
+ ConnectivityWatcherRemover(ClientChannelFilter* chand,
1064
+ AsyncConnectivityStateWatcherInterface* watcher)
1065
+ : chand_(chand), watcher_(watcher) {
1066
+ GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ConnectivityWatcherRemover");
1067
+ chand_->work_serializer_->Run(
1068
+ [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1069
+ RemoveWatcherLocked();
1070
+ },
1071
+ DEBUG_LOCATION);
1072
+ }
1073
+
1074
+ private:
1075
+ void RemoveWatcherLocked()
1076
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1077
+ chand_->state_tracker_.RemoveWatcher(watcher_);
1078
+ GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_,
1079
+ "ConnectivityWatcherRemover");
1080
+ delete this;
1081
+ }
1082
+
1083
+ ClientChannelFilter* chand_;
1084
+ AsyncConnectivityStateWatcherInterface* watcher_;
1085
+ };
1086
+
1087
+ //
1088
+ // ClientChannelFilter::ClientChannelControlHelper
1089
+ //
1090
+
1091
+ class ClientChannelFilter::ClientChannelControlHelper
1092
+ : public LoadBalancingPolicy::ChannelControlHelper {
1093
+ public:
1094
+ explicit ClientChannelControlHelper(ClientChannelFilter* chand)
1095
+ : chand_(chand) {
1096
+ GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ClientChannelControlHelper");
1097
+ }
1098
+
1099
+ ~ClientChannelControlHelper() override {
1100
+ GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_,
1101
+ "ClientChannelControlHelper");
1102
+ }
1103
+
1104
+ RefCountedPtr<SubchannelInterface> CreateSubchannel(
1105
+ const grpc_resolved_address& address, const ChannelArgs& per_address_args,
1106
+ const ChannelArgs& args) override
1107
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1108
+ if (chand_->resolver_ == nullptr) return nullptr; // Shutting down.
1109
+ ChannelArgs subchannel_args = ClientChannelFilter::MakeSubchannelArgs(
1110
+ args, per_address_args, chand_->subchannel_pool_,
1111
+ chand_->default_authority_);
1112
+ // Create subchannel.
1113
+ RefCountedPtr<Subchannel> subchannel =
1114
+ chand_->client_channel_factory_->CreateSubchannel(address,
1115
+ subchannel_args);
1116
+ if (subchannel == nullptr) return nullptr;
1117
+ // Make sure the subchannel has updated keepalive time.
1118
+ subchannel->ThrottleKeepaliveTime(chand_->keepalive_time_);
1119
+ // Create and return wrapper for the subchannel.
1120
+ return MakeRefCounted<SubchannelWrapper>(chand_, std::move(subchannel));
1121
+ }
1122
+
1123
+ void UpdateState(grpc_connectivity_state state, const absl::Status& status,
1124
+ RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker)
1125
+ override ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1126
+ if (chand_->resolver_ == nullptr) return; // Shutting down.
1127
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1128
+ const char* extra = chand_->disconnect_error_.ok()
1129
+ ? ""
1130
+ : " (ignoring -- channel shutting down)";
1131
+ gpr_log(GPR_INFO, "chand=%p: update: state=%s status=(%s) picker=%p%s",
1132
+ chand_, ConnectivityStateName(state), status.ToString().c_str(),
1133
+ picker.get(), extra);
1134
+ }
1135
+ // Do update only if not shutting down.
1136
+ if (chand_->disconnect_error_.ok()) {
1137
+ chand_->UpdateStateAndPickerLocked(state, status, "helper",
1138
+ std::move(picker));
1139
+ }
1140
+ }
1141
+
1142
+ void RequestReresolution() override
1143
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1144
+ if (chand_->resolver_ == nullptr) return; // Shutting down.
1145
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1146
+ gpr_log(GPR_INFO, "chand=%p: started name re-resolving", chand_);
1147
+ }
1148
+ chand_->resolver_->RequestReresolutionLocked();
1149
+ }
1150
+
1151
+ absl::string_view GetAuthority() override {
1152
+ return chand_->default_authority_;
1153
+ }
1154
+
1155
+ RefCountedPtr<grpc_channel_credentials> GetChannelCredentials() override {
1156
+ return chand_->channel_args_.GetObject<grpc_channel_credentials>()
1157
+ ->duplicate_without_call_credentials();
1158
+ }
1159
+
1160
+ RefCountedPtr<grpc_channel_credentials> GetUnsafeChannelCredentials()
1161
+ override {
1162
+ return chand_->channel_args_.GetObject<grpc_channel_credentials>()->Ref();
1163
+ }
1164
+
1165
+ grpc_event_engine::experimental::EventEngine* GetEventEngine() override {
1166
+ return chand_->owning_stack_->EventEngine();
1167
+ }
1168
+
1169
+ void AddTraceEvent(TraceSeverity severity, absl::string_view message) override
1170
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1171
+ if (chand_->resolver_ == nullptr) return; // Shutting down.
1172
+ if (chand_->channelz_node_ != nullptr) {
1173
+ chand_->channelz_node_->AddTraceEvent(
1174
+ ConvertSeverityEnum(severity),
1175
+ grpc_slice_from_copied_buffer(message.data(), message.size()));
1176
+ }
1177
+ }
1178
+
1179
+ private:
1180
+ static channelz::ChannelTrace::Severity ConvertSeverityEnum(
1181
+ TraceSeverity severity) {
1182
+ if (severity == TRACE_INFO) return channelz::ChannelTrace::Info;
1183
+ if (severity == TRACE_WARNING) return channelz::ChannelTrace::Warning;
1184
+ return channelz::ChannelTrace::Error;
1185
+ }
1186
+
1187
+ ClientChannelFilter* chand_;
1188
+ };
1189
+
1190
+ //
1191
+ // ClientChannelFilter implementation
1192
+ //
1193
+
1194
+ ClientChannelFilter* ClientChannelFilter::GetFromChannel(Channel* channel) {
1195
+ grpc_channel_element* elem =
1196
+ grpc_channel_stack_last_element(channel->channel_stack());
1197
+ if (elem->filter != &kFilterVtableWithPromises &&
1198
+ elem->filter != &kFilterVtableWithoutPromises) {
1199
+ return nullptr;
1200
+ }
1201
+ return static_cast<ClientChannelFilter*>(elem->channel_data);
1202
+ }
1203
+
1204
+ grpc_error_handle ClientChannelFilter::Init(grpc_channel_element* elem,
1205
+ grpc_channel_element_args* args) {
1206
+ GPR_ASSERT(args->is_last);
1207
+ GPR_ASSERT(elem->filter == &kFilterVtableWithPromises ||
1208
+ elem->filter == &kFilterVtableWithoutPromises);
1209
+ grpc_error_handle error;
1210
+ new (elem->channel_data) ClientChannelFilter(args, &error);
1211
+ return error;
1212
+ }
1213
+
1214
+ void ClientChannelFilter::Destroy(grpc_channel_element* elem) {
1215
+ auto* chand = static_cast<ClientChannelFilter*>(elem->channel_data);
1216
+ chand->~ClientChannelFilter();
1217
+ }
1218
+
1219
+ namespace {
1220
+
1221
+ RefCountedPtr<SubchannelPoolInterface> GetSubchannelPool(
1222
+ const ChannelArgs& args) {
1223
+ if (args.GetBool(GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL).value_or(false)) {
1224
+ return MakeRefCounted<LocalSubchannelPool>();
1225
+ }
1226
+ return GlobalSubchannelPool::instance();
1227
+ }
1228
+
1229
+ } // namespace
1230
+
1231
+ ClientChannelFilter::ClientChannelFilter(grpc_channel_element_args* args,
1232
+ grpc_error_handle* error)
1233
+ : channel_args_(args->channel_args),
1234
+ deadline_checking_enabled_(
1235
+ channel_args_.GetBool(GRPC_ARG_ENABLE_DEADLINE_CHECKS)
1236
+ .value_or(!channel_args_.WantMinimalStack())),
1237
+ owning_stack_(args->channel_stack),
1238
+ client_channel_factory_(channel_args_.GetObject<ClientChannelFactory>()),
1239
+ channelz_node_(channel_args_.GetObject<channelz::ChannelNode>()),
1240
+ interested_parties_(grpc_pollset_set_create()),
1241
+ service_config_parser_index_(
1242
+ internal::ClientChannelServiceConfigParser::ParserIndex()),
1243
+ work_serializer_(
1244
+ std::make_shared<WorkSerializer>(*args->channel_stack->event_engine)),
1245
+ state_tracker_("client_channel", GRPC_CHANNEL_IDLE),
1246
+ subchannel_pool_(GetSubchannelPool(channel_args_)) {
1247
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1248
+ gpr_log(GPR_INFO, "chand=%p: creating client_channel for channel stack %p",
1249
+ this, owning_stack_);
1250
+ }
1251
+ // Start backup polling.
1252
+ grpc_client_channel_start_backup_polling(interested_parties_);
1253
+ // Check client channel factory.
1254
+ if (client_channel_factory_ == nullptr) {
1255
+ *error = GRPC_ERROR_CREATE(
1256
+ "Missing client channel factory in args for client channel filter");
1257
+ return;
1258
+ }
1259
+ // Get default service config. If none is specified via the client API,
1260
+ // we use an empty config.
1261
+ absl::optional<absl::string_view> service_config_json =
1262
+ channel_args_.GetString(GRPC_ARG_SERVICE_CONFIG);
1263
+ if (!service_config_json.has_value()) service_config_json = "{}";
1264
+ *error = absl::OkStatus();
1265
+ auto service_config =
1266
+ ServiceConfigImpl::Create(channel_args_, *service_config_json);
1267
+ if (!service_config.ok()) {
1268
+ *error = absl_status_to_grpc_error(service_config.status());
1269
+ return;
1270
+ }
1271
+ default_service_config_ = std::move(*service_config);
1272
+ // Get URI to resolve, using proxy mapper if needed.
1273
+ absl::optional<std::string> server_uri =
1274
+ channel_args_.GetOwnedString(GRPC_ARG_SERVER_URI);
1275
+ if (!server_uri.has_value()) {
1276
+ *error = GRPC_ERROR_CREATE(
1277
+ "target URI channel arg missing or wrong type in client channel "
1278
+ "filter");
1279
+ return;
1280
+ }
1281
+ uri_to_resolve_ = CoreConfiguration::Get()
1282
+ .proxy_mapper_registry()
1283
+ .MapName(*server_uri, &channel_args_)
1284
+ .value_or(*server_uri);
1285
+ // Make sure the URI to resolve is valid, so that we know that
1286
+ // resolver creation will succeed later.
1287
+ if (!CoreConfiguration::Get().resolver_registry().IsValidTarget(
1288
+ uri_to_resolve_)) {
1289
+ *error = GRPC_ERROR_CREATE(
1290
+ absl::StrCat("the target uri is not valid: ", uri_to_resolve_));
1291
+ return;
1292
+ }
1293
+ // Strip out service config channel arg, so that it doesn't affect
1294
+ // subchannel uniqueness when the args flow down to that layer.
1295
+ channel_args_ = channel_args_.Remove(GRPC_ARG_SERVICE_CONFIG);
1296
+ // Set initial keepalive time.
1297
+ auto keepalive_arg = channel_args_.GetInt(GRPC_ARG_KEEPALIVE_TIME_MS);
1298
+ if (keepalive_arg.has_value()) {
1299
+ keepalive_time_ = Clamp(*keepalive_arg, 1, INT_MAX);
1300
+ } else {
1301
+ keepalive_time_ = -1; // unset
1302
+ }
1303
+ // Set default authority.
1304
+ absl::optional<std::string> default_authority =
1305
+ channel_args_.GetOwnedString(GRPC_ARG_DEFAULT_AUTHORITY);
1306
+ if (!default_authority.has_value()) {
1307
+ default_authority_ =
1308
+ CoreConfiguration::Get().resolver_registry().GetDefaultAuthority(
1309
+ *server_uri);
1310
+ } else {
1311
+ default_authority_ = std::move(*default_authority);
1312
+ }
1313
+ // Success.
1314
+ *error = absl::OkStatus();
1315
+ }
1316
+
1317
+ ClientChannelFilter::~ClientChannelFilter() {
1318
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1319
+ gpr_log(GPR_INFO, "chand=%p: destroying channel", this);
1320
+ }
1321
+ DestroyResolverAndLbPolicyLocked();
1322
+ // Stop backup polling.
1323
+ grpc_client_channel_stop_backup_polling(interested_parties_);
1324
+ grpc_pollset_set_destroy(interested_parties_);
1325
+ }
1326
+
1327
+ ArenaPromise<ServerMetadataHandle> ClientChannelFilter::MakeCallPromise(
1328
+ grpc_channel_element* elem, CallArgs call_args, NextPromiseFactory) {
1329
+ auto* chand = static_cast<ClientChannelFilter*>(elem->channel_data);
1330
+ // TODO(roth): Is this the right lifetime story for calld?
1331
+ auto* calld = GetContext<Arena>()->ManagedNew<PromiseBasedCallData>(chand);
1332
+ return TrySeq(
1333
+ // Name resolution.
1334
+ calld->MakeNameResolutionPromise(std::move(call_args)),
1335
+ // Dynamic filter stack.
1336
+ [calld](CallArgs call_args) mutable {
1337
+ return calld->dynamic_filters()->channel_stack()->MakeClientCallPromise(
1338
+ std::move(call_args));
1339
+ });
1340
+ }
1341
+
1342
+ OrphanablePtr<ClientChannelFilter::FilterBasedLoadBalancedCall>
1343
+ ClientChannelFilter::CreateLoadBalancedCall(
1344
+ const grpc_call_element_args& args, grpc_polling_entity* pollent,
1345
+ grpc_closure* on_call_destruction_complete,
1346
+ absl::AnyInvocable<void()> on_commit, bool is_transparent_retry) {
1347
+ return OrphanablePtr<FilterBasedLoadBalancedCall>(
1348
+ args.arena->New<FilterBasedLoadBalancedCall>(
1349
+ this, args, pollent, on_call_destruction_complete,
1350
+ std::move(on_commit), is_transparent_retry));
1351
+ }
1352
+
1353
+ ArenaPromise<ServerMetadataHandle>
1354
+ ClientChannelFilter::CreateLoadBalancedCallPromise(
1355
+ CallArgs call_args, absl::AnyInvocable<void()> on_commit,
1356
+ bool is_transparent_retry) {
1357
+ OrphanablePtr<PromiseBasedLoadBalancedCall> lb_call(
1358
+ GetContext<Arena>()->New<PromiseBasedLoadBalancedCall>(
1359
+ this, std::move(on_commit), is_transparent_retry));
1360
+ auto* call_ptr = lb_call.get();
1361
+ return call_ptr->MakeCallPromise(std::move(call_args), std::move(lb_call));
1362
+ }
1363
+
1364
+ ChannelArgs ClientChannelFilter::MakeSubchannelArgs(
1365
+ const ChannelArgs& channel_args, const ChannelArgs& address_args,
1366
+ const RefCountedPtr<SubchannelPoolInterface>& subchannel_pool,
1367
+ const std::string& channel_default_authority) {
1368
+ // Note that we start with the channel-level args and then apply the
1369
+ // per-address args, so that if a value is present in both, the one
1370
+ // in the channel-level args is used. This is particularly important
1371
+ // for the GRPC_ARG_DEFAULT_AUTHORITY arg, which we want to allow
1372
+ // resolvers to set on a per-address basis only if the application
1373
+ // did not explicitly set it at the channel level.
1374
+ return channel_args.UnionWith(address_args)
1375
+ .SetObject(subchannel_pool)
1376
+ // If we haven't already set the default authority arg (i.e., it
1377
+ // was not explicitly set by the application nor overridden by
1378
+ // the resolver), add it from the channel's default.
1379
+ .SetIfUnset(GRPC_ARG_DEFAULT_AUTHORITY, channel_default_authority)
1380
+ // Remove channel args that should not affect subchannel
1381
+ // uniqueness.
1382
+ .Remove(GRPC_ARG_HEALTH_CHECK_SERVICE_NAME)
1383
+ .Remove(GRPC_ARG_INHIBIT_HEALTH_CHECKING)
1384
+ .Remove(GRPC_ARG_CHANNELZ_CHANNEL_NODE)
1385
+ // Remove all keys with the no-subchannel prefix.
1386
+ .RemoveAllKeysWithPrefix(GRPC_ARG_NO_SUBCHANNEL_PREFIX);
1387
+ }
1388
+
1389
+ void ClientChannelFilter::ReprocessQueuedResolverCalls() {
1390
+ for (CallData* calld : resolver_queued_calls_) {
1391
+ calld->RemoveCallFromResolverQueuedCallsLocked();
1392
+ calld->RetryCheckResolutionLocked();
1393
+ }
1394
+ resolver_queued_calls_.clear();
1395
+ }
1396
+
1397
+ namespace {
1398
+
1399
+ RefCountedPtr<LoadBalancingPolicy::Config> ChooseLbPolicy(
1400
+ const Resolver::Result& resolver_result,
1401
+ const internal::ClientChannelGlobalParsedConfig* parsed_service_config) {
1402
+ // Prefer the LB policy config found in the service config.
1403
+ if (parsed_service_config->parsed_lb_config() != nullptr) {
1404
+ return parsed_service_config->parsed_lb_config();
1405
+ }
1406
+ // Try the deprecated LB policy name from the service config.
1407
+ // If not, try the setting from channel args.
1408
+ absl::optional<absl::string_view> policy_name;
1409
+ if (!parsed_service_config->parsed_deprecated_lb_policy().empty()) {
1410
+ policy_name = parsed_service_config->parsed_deprecated_lb_policy();
1411
+ } else {
1412
+ policy_name = resolver_result.args.GetString(GRPC_ARG_LB_POLICY_NAME);
1413
+ bool requires_config = false;
1414
+ if (policy_name.has_value() &&
1415
+ (!CoreConfiguration::Get()
1416
+ .lb_policy_registry()
1417
+ .LoadBalancingPolicyExists(*policy_name, &requires_config) ||
1418
+ requires_config)) {
1419
+ if (requires_config) {
1420
+ gpr_log(GPR_ERROR,
1421
+ "LB policy: %s passed through channel_args must not "
1422
+ "require a config. Using pick_first instead.",
1423
+ std::string(*policy_name).c_str());
1424
+ } else {
1425
+ gpr_log(GPR_ERROR,
1426
+ "LB policy: %s passed through channel_args does not exist. "
1427
+ "Using pick_first instead.",
1428
+ std::string(*policy_name).c_str());
1429
+ }
1430
+ policy_name = "pick_first";
1431
+ }
1432
+ }
1433
+ // Use pick_first if nothing was specified and we didn't select grpclb
1434
+ // above.
1435
+ if (!policy_name.has_value()) policy_name = "pick_first";
1436
+ // Now that we have the policy name, construct an empty config for it.
1437
+ Json config_json = Json::FromArray({Json::FromObject({
1438
+ {std::string(*policy_name), Json::FromObject({})},
1439
+ })});
1440
+ auto lb_policy_config =
1441
+ CoreConfiguration::Get().lb_policy_registry().ParseLoadBalancingConfig(
1442
+ config_json);
1443
+ // The policy name came from one of three places:
1444
+ // - The deprecated loadBalancingPolicy field in the service config,
1445
+ // in which case the code in ClientChannelServiceConfigParser
1446
+ // already verified that the policy does not require a config.
1447
+ // - One of the hard-coded values here, all of which are known to not
1448
+ // require a config.
1449
+ // - A channel arg, in which case we check that the specified policy exists
1450
+ // and accepts an empty config. If not, we revert to using pick_first
1451
+ // lb_policy
1452
+ GPR_ASSERT(lb_policy_config.ok());
1453
+ return std::move(*lb_policy_config);
1454
+ }
1455
+
1456
+ } // namespace
1457
+
1458
+ void ClientChannelFilter::OnResolverResultChangedLocked(
1459
+ Resolver::Result result) {
1460
+ // Handle race conditions.
1461
+ if (resolver_ == nullptr) return;
1462
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1463
+ gpr_log(GPR_INFO, "chand=%p: got resolver result", this);
1464
+ }
1465
+ // Grab resolver result health callback.
1466
+ auto resolver_callback = std::move(result.result_health_callback);
1467
+ absl::Status resolver_result_status;
1468
+ // We only want to trace the address resolution in the follow cases:
1469
+ // (a) Address resolution resulted in service config change.
1470
+ // (b) Address resolution that causes number of backends to go from
1471
+ // zero to non-zero.
1472
+ // (c) Address resolution that causes number of backends to go from
1473
+ // non-zero to zero.
1474
+ // (d) Address resolution that causes a new LB policy to be created.
1475
+ //
1476
+ // We track a list of strings to eventually be concatenated and traced.
1477
+ std::vector<const char*> trace_strings;
1478
+ const bool resolution_contains_addresses =
1479
+ result.addresses.ok() && !result.addresses->empty();
1480
+ if (!resolution_contains_addresses &&
1481
+ previous_resolution_contained_addresses_) {
1482
+ trace_strings.push_back("Address list became empty");
1483
+ } else if (resolution_contains_addresses &&
1484
+ !previous_resolution_contained_addresses_) {
1485
+ trace_strings.push_back("Address list became non-empty");
1486
+ }
1487
+ previous_resolution_contained_addresses_ = resolution_contains_addresses;
1488
+ std::string service_config_error_string_storage;
1489
+ if (!result.service_config.ok()) {
1490
+ service_config_error_string_storage =
1491
+ result.service_config.status().ToString();
1492
+ trace_strings.push_back(service_config_error_string_storage.c_str());
1493
+ }
1494
+ // Choose the service config.
1495
+ RefCountedPtr<ServiceConfig> service_config;
1496
+ RefCountedPtr<ConfigSelector> config_selector;
1497
+ if (!result.service_config.ok()) {
1498
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1499
+ gpr_log(GPR_INFO, "chand=%p: resolver returned service config error: %s",
1500
+ this, result.service_config.status().ToString().c_str());
1501
+ }
1502
+ // If the service config was invalid, then fallback to the
1503
+ // previously returned service config.
1504
+ if (saved_service_config_ != nullptr) {
1505
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1506
+ gpr_log(GPR_INFO,
1507
+ "chand=%p: resolver returned invalid service config. "
1508
+ "Continuing to use previous service config.",
1509
+ this);
1510
+ }
1511
+ service_config = saved_service_config_;
1512
+ config_selector = saved_config_selector_;
1513
+ } else {
1514
+ // We received a service config error and we don't have a
1515
+ // previous service config to fall back to. Put the channel into
1516
+ // TRANSIENT_FAILURE.
1517
+ OnResolverErrorLocked(result.service_config.status());
1518
+ trace_strings.push_back("no valid service config");
1519
+ resolver_result_status =
1520
+ absl::UnavailableError("no valid service config");
1521
+ }
1522
+ } else if (*result.service_config == nullptr) {
1523
+ // Resolver did not return any service config.
1524
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1525
+ gpr_log(GPR_INFO,
1526
+ "chand=%p: resolver returned no service config. Using default "
1527
+ "service config for channel.",
1528
+ this);
1529
+ }
1530
+ service_config = default_service_config_;
1531
+ } else {
1532
+ // Use ServiceConfig and ConfigSelector returned by resolver.
1533
+ service_config = std::move(*result.service_config);
1534
+ config_selector = result.args.GetObjectRef<ConfigSelector>();
1535
+ }
1536
+ // Note: The only case in which service_config is null here is if the resolver
1537
+ // returned a service config error and we don't have a previous service
1538
+ // config to fall back to.
1539
+ if (service_config != nullptr) {
1540
+ // Extract global config for client channel.
1541
+ const internal::ClientChannelGlobalParsedConfig* parsed_service_config =
1542
+ static_cast<const internal::ClientChannelGlobalParsedConfig*>(
1543
+ service_config->GetGlobalParsedConfig(
1544
+ service_config_parser_index_));
1545
+ // Choose LB policy config.
1546
+ RefCountedPtr<LoadBalancingPolicy::Config> lb_policy_config =
1547
+ ChooseLbPolicy(result, parsed_service_config);
1548
+ // Check if the ServiceConfig has changed.
1549
+ const bool service_config_changed =
1550
+ saved_service_config_ == nullptr ||
1551
+ service_config->json_string() != saved_service_config_->json_string();
1552
+ // Check if the ConfigSelector has changed.
1553
+ const bool config_selector_changed = !ConfigSelector::Equals(
1554
+ saved_config_selector_.get(), config_selector.get());
1555
+ // If either has changed, apply the global parameters now.
1556
+ if (service_config_changed || config_selector_changed) {
1557
+ // Update service config in control plane.
1558
+ UpdateServiceConfigInControlPlaneLocked(
1559
+ std::move(service_config), std::move(config_selector),
1560
+ std::string(lb_policy_config->name()));
1561
+ } else if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1562
+ gpr_log(GPR_INFO, "chand=%p: service config not changed", this);
1563
+ }
1564
+ // Create or update LB policy, as needed.
1565
+ resolver_result_status = CreateOrUpdateLbPolicyLocked(
1566
+ std::move(lb_policy_config),
1567
+ parsed_service_config->health_check_service_name(), std::move(result));
1568
+ if (service_config_changed || config_selector_changed) {
1569
+ // Start using new service config for calls.
1570
+ // This needs to happen after the LB policy has been updated, since
1571
+ // the ConfigSelector may need the LB policy to know about new
1572
+ // destinations before it can send RPCs to those destinations.
1573
+ UpdateServiceConfigInDataPlaneLocked();
1574
+ // TODO(ncteisen): might be worth somehow including a snippet of the
1575
+ // config in the trace, at the risk of bloating the trace logs.
1576
+ trace_strings.push_back("Service config changed");
1577
+ }
1578
+ }
1579
+ // Invoke resolver callback if needed.
1580
+ if (resolver_callback != nullptr) {
1581
+ resolver_callback(std::move(resolver_result_status));
1582
+ }
1583
+ // Add channel trace event.
1584
+ if (!trace_strings.empty()) {
1585
+ std::string message =
1586
+ absl::StrCat("Resolution event: ", absl::StrJoin(trace_strings, ", "));
1587
+ if (channelz_node_ != nullptr) {
1588
+ channelz_node_->AddTraceEvent(channelz::ChannelTrace::Severity::Info,
1589
+ grpc_slice_from_cpp_string(message));
1590
+ }
1591
+ }
1592
+ }
1593
+
1594
+ void ClientChannelFilter::OnResolverErrorLocked(absl::Status status) {
1595
+ if (resolver_ == nullptr) return;
1596
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1597
+ gpr_log(GPR_INFO, "chand=%p: resolver transient failure: %s", this,
1598
+ status.ToString().c_str());
1599
+ }
1600
+ // If we already have an LB policy from a previous resolution
1601
+ // result, then we continue to let it set the connectivity state.
1602
+ // Otherwise, we go into TRANSIENT_FAILURE.
1603
+ if (lb_policy_ == nullptr) {
1604
+ // Update connectivity state.
1605
+ UpdateStateLocked(GRPC_CHANNEL_TRANSIENT_FAILURE, status,
1606
+ "resolver failure");
1607
+ {
1608
+ MutexLock lock(&resolution_mu_);
1609
+ // Update resolver transient failure.
1610
+ resolver_transient_failure_error_ =
1611
+ MaybeRewriteIllegalStatusCode(status, "resolver");
1612
+ ReprocessQueuedResolverCalls();
1613
+ }
1614
+ }
1615
+ }
1616
+
1617
+ absl::Status ClientChannelFilter::CreateOrUpdateLbPolicyLocked(
1618
+ RefCountedPtr<LoadBalancingPolicy::Config> lb_policy_config,
1619
+ const absl::optional<std::string>& health_check_service_name,
1620
+ Resolver::Result result) {
1621
+ // Construct update.
1622
+ LoadBalancingPolicy::UpdateArgs update_args;
1623
+ if (!result.addresses.ok()) {
1624
+ update_args.addresses = result.addresses.status();
1625
+ } else {
1626
+ update_args.addresses = std::make_shared<EndpointAddressesListIterator>(
1627
+ std::move(*result.addresses));
1628
+ }
1629
+ update_args.config = std::move(lb_policy_config);
1630
+ update_args.resolution_note = std::move(result.resolution_note);
1631
+ // Remove the config selector from channel args so that we're not holding
1632
+ // unnecessary refs that cause it to be destroyed somewhere other than in the
1633
+ // WorkSerializer.
1634
+ update_args.args = result.args.Remove(GRPC_ARG_CONFIG_SELECTOR);
1635
+ // Add health check service name to channel args.
1636
+ if (health_check_service_name.has_value()) {
1637
+ update_args.args = update_args.args.Set(GRPC_ARG_HEALTH_CHECK_SERVICE_NAME,
1638
+ *health_check_service_name);
1639
+ }
1640
+ // Create policy if needed.
1641
+ if (lb_policy_ == nullptr) {
1642
+ lb_policy_ = CreateLbPolicyLocked(update_args.args);
1643
+ }
1644
+ // Update the policy.
1645
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1646
+ gpr_log(GPR_INFO, "chand=%p: Updating child policy %p", this,
1647
+ lb_policy_.get());
1648
+ }
1649
+ return lb_policy_->UpdateLocked(std::move(update_args));
1650
+ }
1651
+
1652
+ // Creates a new LB policy.
1653
+ OrphanablePtr<LoadBalancingPolicy> ClientChannelFilter::CreateLbPolicyLocked(
1654
+ const ChannelArgs& args) {
1655
+ // The LB policy will start in state CONNECTING but will not
1656
+ // necessarily send us an update synchronously, so set state to
1657
+ // CONNECTING (in case the resolver had previously failed and put the
1658
+ // channel into TRANSIENT_FAILURE) and make sure we have a queueing picker.
1659
+ UpdateStateAndPickerLocked(
1660
+ GRPC_CHANNEL_CONNECTING, absl::Status(), "started resolving",
1661
+ MakeRefCounted<LoadBalancingPolicy::QueuePicker>(nullptr));
1662
+ // Now create the LB policy.
1663
+ LoadBalancingPolicy::Args lb_policy_args;
1664
+ lb_policy_args.work_serializer = work_serializer_;
1665
+ lb_policy_args.channel_control_helper =
1666
+ std::make_unique<ClientChannelControlHelper>(this);
1667
+ lb_policy_args.args = args;
1668
+ OrphanablePtr<LoadBalancingPolicy> lb_policy =
1669
+ MakeOrphanable<ChildPolicyHandler>(std::move(lb_policy_args),
1670
+ &grpc_client_channel_trace);
1671
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1672
+ gpr_log(GPR_INFO, "chand=%p: created new LB policy %p", this,
1673
+ lb_policy.get());
1674
+ }
1675
+ grpc_pollset_set_add_pollset_set(lb_policy->interested_parties(),
1676
+ interested_parties_);
1677
+ return lb_policy;
1678
+ }
1679
+
1680
+ void ClientChannelFilter::UpdateServiceConfigInControlPlaneLocked(
1681
+ RefCountedPtr<ServiceConfig> service_config,
1682
+ RefCountedPtr<ConfigSelector> config_selector, std::string lb_policy_name) {
1683
+ std::string service_config_json(service_config->json_string());
1684
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1685
+ gpr_log(GPR_INFO, "chand=%p: using service config: \"%s\"", this,
1686
+ service_config_json.c_str());
1687
+ }
1688
+ // Save service config.
1689
+ saved_service_config_ = std::move(service_config);
1690
+ // Swap out the data used by GetChannelInfo().
1691
+ {
1692
+ MutexLock lock(&info_mu_);
1693
+ info_lb_policy_name_ = std::move(lb_policy_name);
1694
+ info_service_config_json_ = std::move(service_config_json);
1695
+ }
1696
+ // Save config selector.
1697
+ saved_config_selector_ = std::move(config_selector);
1698
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1699
+ gpr_log(GPR_INFO, "chand=%p: using ConfigSelector %p", this,
1700
+ saved_config_selector_.get());
1701
+ }
1702
+ }
1703
+
1704
+ void ClientChannelFilter::UpdateServiceConfigInDataPlaneLocked() {
1705
+ // Grab ref to service config.
1706
+ RefCountedPtr<ServiceConfig> service_config = saved_service_config_;
1707
+ // Grab ref to config selector. Use default if resolver didn't supply one.
1708
+ RefCountedPtr<ConfigSelector> config_selector = saved_config_selector_;
1709
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1710
+ gpr_log(GPR_INFO, "chand=%p: switching to ConfigSelector %p", this,
1711
+ saved_config_selector_.get());
1712
+ }
1713
+ if (config_selector == nullptr) {
1714
+ config_selector =
1715
+ MakeRefCounted<DefaultConfigSelector>(saved_service_config_);
1716
+ }
1717
+ ChannelArgs new_args =
1718
+ channel_args_.SetObject(this).SetObject(service_config);
1719
+ bool enable_retries =
1720
+ !new_args.WantMinimalStack() &&
1721
+ new_args.GetBool(GRPC_ARG_ENABLE_RETRIES).value_or(true);
1722
+ // Construct dynamic filter stack.
1723
+ std::vector<const grpc_channel_filter*> filters =
1724
+ config_selector->GetFilters();
1725
+ if (enable_retries) {
1726
+ filters.push_back(&RetryFilter::kVtable);
1727
+ } else {
1728
+ filters.push_back(&DynamicTerminationFilter::kFilterVtable);
1729
+ }
1730
+ RefCountedPtr<DynamicFilters> dynamic_filters =
1731
+ DynamicFilters::Create(new_args, std::move(filters));
1732
+ GPR_ASSERT(dynamic_filters != nullptr);
1733
+ // Grab data plane lock to update service config.
1734
+ //
1735
+ // We defer unreffing the old values (and deallocating memory) until
1736
+ // after releasing the lock to keep the critical section small.
1737
+ {
1738
+ MutexLock lock(&resolution_mu_);
1739
+ resolver_transient_failure_error_ = absl::OkStatus();
1740
+ // Update service config.
1741
+ received_service_config_data_ = true;
1742
+ // Old values will be unreffed after lock is released.
1743
+ service_config_.swap(service_config);
1744
+ config_selector_.swap(config_selector);
1745
+ dynamic_filters_.swap(dynamic_filters);
1746
+ // Re-process queued calls asynchronously.
1747
+ ReprocessQueuedResolverCalls();
1748
+ }
1749
+ // Old values will be unreffed after lock is released when they go out
1750
+ // of scope.
1751
+ }
1752
+
1753
+ void ClientChannelFilter::CreateResolverLocked() {
1754
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1755
+ gpr_log(GPR_INFO, "chand=%p: starting name resolution for %s", this,
1756
+ uri_to_resolve_.c_str());
1757
+ }
1758
+ resolver_ = CoreConfiguration::Get().resolver_registry().CreateResolver(
1759
+ uri_to_resolve_, channel_args_, interested_parties_, work_serializer_,
1760
+ std::make_unique<ResolverResultHandler>(this));
1761
+ // Since the validity of the args was checked when the channel was created,
1762
+ // CreateResolver() must return a non-null result.
1763
+ GPR_ASSERT(resolver_ != nullptr);
1764
+ UpdateStateLocked(GRPC_CHANNEL_CONNECTING, absl::Status(),
1765
+ "started resolving");
1766
+ resolver_->StartLocked();
1767
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1768
+ gpr_log(GPR_INFO, "chand=%p: created resolver=%p", this, resolver_.get());
1769
+ }
1770
+ }
1771
+
1772
+ void ClientChannelFilter::DestroyResolverAndLbPolicyLocked() {
1773
+ if (resolver_ != nullptr) {
1774
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1775
+ gpr_log(GPR_INFO, "chand=%p: shutting down resolver=%p", this,
1776
+ resolver_.get());
1777
+ }
1778
+ resolver_.reset();
1779
+ // Clear resolution state.
1780
+ saved_service_config_.reset();
1781
+ saved_config_selector_.reset();
1782
+ // Acquire resolution lock to update config selector and associated state.
1783
+ // To minimize lock contention, we wait to unref these objects until
1784
+ // after we release the lock.
1785
+ RefCountedPtr<ServiceConfig> service_config_to_unref;
1786
+ RefCountedPtr<ConfigSelector> config_selector_to_unref;
1787
+ RefCountedPtr<DynamicFilters> dynamic_filters_to_unref;
1788
+ {
1789
+ MutexLock lock(&resolution_mu_);
1790
+ received_service_config_data_ = false;
1791
+ service_config_to_unref = std::move(service_config_);
1792
+ config_selector_to_unref = std::move(config_selector_);
1793
+ dynamic_filters_to_unref = std::move(dynamic_filters_);
1794
+ }
1795
+ // Clear LB policy if set.
1796
+ if (lb_policy_ != nullptr) {
1797
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1798
+ gpr_log(GPR_INFO, "chand=%p: shutting down lb_policy=%p", this,
1799
+ lb_policy_.get());
1800
+ }
1801
+ grpc_pollset_set_del_pollset_set(lb_policy_->interested_parties(),
1802
+ interested_parties_);
1803
+ lb_policy_.reset();
1804
+ }
1805
+ }
1806
+ }
1807
+
1808
+ void ClientChannelFilter::UpdateStateLocked(grpc_connectivity_state state,
1809
+ const absl::Status& status,
1810
+ const char* reason) {
1811
+ if (state != GRPC_CHANNEL_SHUTDOWN &&
1812
+ state_tracker_.state() == GRPC_CHANNEL_SHUTDOWN) {
1813
+ Crash("Illegal transition SHUTDOWN -> anything");
1814
+ }
1815
+ state_tracker_.SetState(state, status, reason);
1816
+ if (channelz_node_ != nullptr) {
1817
+ channelz_node_->SetConnectivityState(state);
1818
+ channelz_node_->AddTraceEvent(
1819
+ channelz::ChannelTrace::Severity::Info,
1820
+ grpc_slice_from_static_string(
1821
+ channelz::ChannelNode::GetChannelConnectivityStateChangeString(
1822
+ state)));
1823
+ }
1824
+ }
1825
+
1826
+ void ClientChannelFilter::UpdateStateAndPickerLocked(
1827
+ grpc_connectivity_state state, const absl::Status& status,
1828
+ const char* reason,
1829
+ RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker) {
1830
+ UpdateStateLocked(state, status, reason);
1831
+ // Grab the LB lock to update the picker and trigger reprocessing of the
1832
+ // queued picks.
1833
+ // Old picker will be unreffed after releasing the lock.
1834
+ MutexLock lock(&lb_mu_);
1835
+ picker_.swap(picker);
1836
+ // Reprocess queued picks.
1837
+ for (auto& call : lb_queued_calls_) {
1838
+ call->RemoveCallFromLbQueuedCallsLocked();
1839
+ call->RetryPickLocked();
1840
+ }
1841
+ lb_queued_calls_.clear();
1842
+ }
1843
+
1844
+ namespace {
1845
+
1846
+ // TODO(roth): Remove this in favor of the gprpp Match() function once
1847
+ // we can do that without breaking lock annotations.
1848
+ template <typename T>
1849
+ T HandlePickResult(
1850
+ LoadBalancingPolicy::PickResult* result,
1851
+ std::function<T(LoadBalancingPolicy::PickResult::Complete*)> complete_func,
1852
+ std::function<T(LoadBalancingPolicy::PickResult::Queue*)> queue_func,
1853
+ std::function<T(LoadBalancingPolicy::PickResult::Fail*)> fail_func,
1854
+ std::function<T(LoadBalancingPolicy::PickResult::Drop*)> drop_func) {
1855
+ auto* complete_pick =
1856
+ absl::get_if<LoadBalancingPolicy::PickResult::Complete>(&result->result);
1857
+ if (complete_pick != nullptr) {
1858
+ return complete_func(complete_pick);
1859
+ }
1860
+ auto* queue_pick =
1861
+ absl::get_if<LoadBalancingPolicy::PickResult::Queue>(&result->result);
1862
+ if (queue_pick != nullptr) {
1863
+ return queue_func(queue_pick);
1864
+ }
1865
+ auto* fail_pick =
1866
+ absl::get_if<LoadBalancingPolicy::PickResult::Fail>(&result->result);
1867
+ if (fail_pick != nullptr) {
1868
+ return fail_func(fail_pick);
1869
+ }
1870
+ auto* drop_pick =
1871
+ absl::get_if<LoadBalancingPolicy::PickResult::Drop>(&result->result);
1872
+ GPR_ASSERT(drop_pick != nullptr);
1873
+ return drop_func(drop_pick);
1874
+ }
1875
+
1876
+ } // namespace
1877
+
1878
+ grpc_error_handle ClientChannelFilter::DoPingLocked(grpc_transport_op* op) {
1879
+ if (state_tracker_.state() != GRPC_CHANNEL_READY) {
1880
+ return GRPC_ERROR_CREATE("channel not connected");
1881
+ }
1882
+ LoadBalancingPolicy::PickResult result;
1883
+ {
1884
+ MutexLock lock(&lb_mu_);
1885
+ result = picker_->Pick(LoadBalancingPolicy::PickArgs());
1886
+ }
1887
+ return HandlePickResult<grpc_error_handle>(
1888
+ &result,
1889
+ // Complete pick.
1890
+ [op](LoadBalancingPolicy::PickResult::Complete* complete_pick)
1891
+ ABSL_EXCLUSIVE_LOCKS_REQUIRED(
1892
+ *ClientChannelFilter::work_serializer_) {
1893
+ SubchannelWrapper* subchannel = static_cast<SubchannelWrapper*>(
1894
+ complete_pick->subchannel.get());
1895
+ RefCountedPtr<ConnectedSubchannel> connected_subchannel =
1896
+ subchannel->connected_subchannel();
1897
+ if (connected_subchannel == nullptr) {
1898
+ return GRPC_ERROR_CREATE("LB pick for ping not connected");
1899
+ }
1900
+ connected_subchannel->Ping(op->send_ping.on_initiate,
1901
+ op->send_ping.on_ack);
1902
+ return absl::OkStatus();
1903
+ },
1904
+ // Queue pick.
1905
+ [](LoadBalancingPolicy::PickResult::Queue* /*queue_pick*/) {
1906
+ return GRPC_ERROR_CREATE("LB picker queued call");
1907
+ },
1908
+ // Fail pick.
1909
+ [](LoadBalancingPolicy::PickResult::Fail* fail_pick) {
1910
+ return absl_status_to_grpc_error(fail_pick->status);
1911
+ },
1912
+ // Drop pick.
1913
+ [](LoadBalancingPolicy::PickResult::Drop* drop_pick) {
1914
+ return absl_status_to_grpc_error(drop_pick->status);
1915
+ });
1916
+ }
1917
+
1918
+ void ClientChannelFilter::StartTransportOpLocked(grpc_transport_op* op) {
1919
+ // Connectivity watch.
1920
+ if (op->start_connectivity_watch != nullptr) {
1921
+ state_tracker_.AddWatcher(op->start_connectivity_watch_state,
1922
+ std::move(op->start_connectivity_watch));
1923
+ }
1924
+ if (op->stop_connectivity_watch != nullptr) {
1925
+ state_tracker_.RemoveWatcher(op->stop_connectivity_watch);
1926
+ }
1927
+ // Ping.
1928
+ if (op->send_ping.on_initiate != nullptr || op->send_ping.on_ack != nullptr) {
1929
+ grpc_error_handle error = DoPingLocked(op);
1930
+ if (!error.ok()) {
1931
+ ExecCtx::Run(DEBUG_LOCATION, op->send_ping.on_initiate, error);
1932
+ ExecCtx::Run(DEBUG_LOCATION, op->send_ping.on_ack, error);
1933
+ }
1934
+ op->bind_pollset = nullptr;
1935
+ op->send_ping.on_initiate = nullptr;
1936
+ op->send_ping.on_ack = nullptr;
1937
+ }
1938
+ // Reset backoff.
1939
+ if (op->reset_connect_backoff) {
1940
+ if (lb_policy_ != nullptr) {
1941
+ lb_policy_->ResetBackoffLocked();
1942
+ }
1943
+ }
1944
+ // Disconnect or enter IDLE.
1945
+ if (!op->disconnect_with_error.ok()) {
1946
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1947
+ gpr_log(GPR_INFO, "chand=%p: disconnect_with_error: %s", this,
1948
+ StatusToString(op->disconnect_with_error).c_str());
1949
+ }
1950
+ DestroyResolverAndLbPolicyLocked();
1951
+ intptr_t value;
1952
+ if (grpc_error_get_int(op->disconnect_with_error,
1953
+ StatusIntProperty::ChannelConnectivityState,
1954
+ &value) &&
1955
+ static_cast<grpc_connectivity_state>(value) == GRPC_CHANNEL_IDLE) {
1956
+ if (disconnect_error_.ok()) { // Ignore if we're shutting down.
1957
+ // Enter IDLE state.
1958
+ UpdateStateAndPickerLocked(GRPC_CHANNEL_IDLE, absl::Status(),
1959
+ "channel entering IDLE", nullptr);
1960
+ // TODO(roth): Do we need to check for any queued picks here, in
1961
+ // case there's a race condition in the client_idle filter?
1962
+ // And maybe also check for calls in the resolver queue?
1963
+ }
1964
+ } else {
1965
+ // Disconnect.
1966
+ GPR_ASSERT(disconnect_error_.ok());
1967
+ disconnect_error_ = op->disconnect_with_error;
1968
+ UpdateStateAndPickerLocked(
1969
+ GRPC_CHANNEL_SHUTDOWN, absl::Status(), "shutdown from API",
1970
+ MakeRefCounted<LoadBalancingPolicy::TransientFailurePicker>(
1971
+ grpc_error_to_absl_status(op->disconnect_with_error)));
1972
+ // TODO(roth): If this happens when we're still waiting for a
1973
+ // resolver result, we need to trigger failures for all calls in
1974
+ // the resolver queue here.
1975
+ }
1976
+ }
1977
+ GRPC_CHANNEL_STACK_UNREF(owning_stack_, "start_transport_op");
1978
+ ExecCtx::Run(DEBUG_LOCATION, op->on_consumed, absl::OkStatus());
1979
+ }
1980
+
1981
+ void ClientChannelFilter::StartTransportOp(grpc_channel_element* elem,
1982
+ grpc_transport_op* op) {
1983
+ auto* chand = static_cast<ClientChannelFilter*>(elem->channel_data);
1984
+ GPR_ASSERT(op->set_accept_stream == false);
1985
+ // Handle bind_pollset.
1986
+ if (op->bind_pollset != nullptr) {
1987
+ grpc_pollset_set_add_pollset(chand->interested_parties_, op->bind_pollset);
1988
+ }
1989
+ // Pop into control plane work_serializer for remaining ops.
1990
+ GRPC_CHANNEL_STACK_REF(chand->owning_stack_, "start_transport_op");
1991
+ chand->work_serializer_->Run(
1992
+ [chand, op]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand->work_serializer_) {
1993
+ chand->StartTransportOpLocked(op);
1994
+ },
1995
+ DEBUG_LOCATION);
1996
+ }
1997
+
1998
+ void ClientChannelFilter::GetChannelInfo(grpc_channel_element* elem,
1999
+ const grpc_channel_info* info) {
2000
+ auto* chand = static_cast<ClientChannelFilter*>(elem->channel_data);
2001
+ MutexLock lock(&chand->info_mu_);
2002
+ if (info->lb_policy_name != nullptr) {
2003
+ *info->lb_policy_name = gpr_strdup(chand->info_lb_policy_name_.c_str());
2004
+ }
2005
+ if (info->service_config_json != nullptr) {
2006
+ *info->service_config_json =
2007
+ gpr_strdup(chand->info_service_config_json_.c_str());
2008
+ }
2009
+ }
2010
+
2011
+ void ClientChannelFilter::TryToConnectLocked() {
2012
+ if (disconnect_error_.ok()) {
2013
+ if (lb_policy_ != nullptr) {
2014
+ lb_policy_->ExitIdleLocked();
2015
+ } else if (resolver_ == nullptr) {
2016
+ CreateResolverLocked();
2017
+ }
2018
+ }
2019
+ GRPC_CHANNEL_STACK_UNREF(owning_stack_, "TryToConnect");
2020
+ }
2021
+
2022
+ grpc_connectivity_state ClientChannelFilter::CheckConnectivityState(
2023
+ bool try_to_connect) {
2024
+ // state_tracker_ is guarded by work_serializer_, which we're not
2025
+ // holding here. But the one method of state_tracker_ that *is*
2026
+ // thread-safe to call without external synchronization is the state()
2027
+ // method, so we can disable thread-safety analysis for this one read.
2028
+ grpc_connectivity_state out = ABSL_TS_UNCHECKED_READ(state_tracker_).state();
2029
+ if (out == GRPC_CHANNEL_IDLE && try_to_connect) {
2030
+ GRPC_CHANNEL_STACK_REF(owning_stack_, "TryToConnect");
2031
+ work_serializer_->Run([this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
2032
+ *work_serializer_) { TryToConnectLocked(); },
2033
+ DEBUG_LOCATION);
2034
+ }
2035
+ return out;
2036
+ }
2037
+
2038
+ void ClientChannelFilter::AddConnectivityWatcher(
2039
+ grpc_connectivity_state initial_state,
2040
+ OrphanablePtr<AsyncConnectivityStateWatcherInterface> watcher) {
2041
+ new ConnectivityWatcherAdder(this, initial_state, std::move(watcher));
2042
+ }
2043
+
2044
+ void ClientChannelFilter::RemoveConnectivityWatcher(
2045
+ AsyncConnectivityStateWatcherInterface* watcher) {
2046
+ new ConnectivityWatcherRemover(this, watcher);
2047
+ }
2048
+
2049
+ //
2050
+ // CallData implementation
2051
+ //
2052
+
2053
+ void ClientChannelFilter::CallData::RemoveCallFromResolverQueuedCallsLocked() {
2054
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2055
+ gpr_log(GPR_INFO,
2056
+ "chand=%p calld=%p: removing from resolver queued picks list",
2057
+ chand(), this);
2058
+ }
2059
+ // Remove call's pollent from channel's interested_parties.
2060
+ grpc_polling_entity_del_from_pollset_set(pollent(),
2061
+ chand()->interested_parties_);
2062
+ // Note: There's no need to actually remove the call from the queue
2063
+ // here, because that will be done in
2064
+ // ResolverQueuedCallCanceller::CancelLocked() or
2065
+ // ClientChannelFilter::ReprocessQueuedResolverCalls().
2066
+ }
2067
+
2068
+ void ClientChannelFilter::CallData::AddCallToResolverQueuedCallsLocked() {
2069
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2070
+ gpr_log(
2071
+ GPR_INFO,
2072
+ "chand=%p calld=%p: adding to resolver queued picks list; pollent=%s",
2073
+ chand(), this, grpc_polling_entity_string(pollent()).c_str());
2074
+ }
2075
+ // Add call's pollent to channel's interested_parties, so that I/O
2076
+ // can be done under the call's CQ.
2077
+ grpc_polling_entity_add_to_pollset_set(pollent(),
2078
+ chand()->interested_parties_);
2079
+ // Add to queue.
2080
+ chand()->resolver_queued_calls_.insert(this);
2081
+ OnAddToQueueLocked();
2082
+ }
2083
+
2084
+ grpc_error_handle ClientChannelFilter::CallData::ApplyServiceConfigToCallLocked(
2085
+ const absl::StatusOr<RefCountedPtr<ConfigSelector>>& config_selector) {
2086
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2087
+ gpr_log(GPR_INFO, "chand=%p calld=%p: applying service config to call",
2088
+ chand(), this);
2089
+ }
2090
+ if (!config_selector.ok()) return config_selector.status();
2091
+ // Create a ClientChannelServiceConfigCallData for the call. This stores
2092
+ // a ref to the ServiceConfig and caches the right set of parsed configs
2093
+ // to use for the call. The ClientChannelServiceConfigCallData will store
2094
+ // itself in the call context, so that it can be accessed by filters
2095
+ // below us in the stack, and it will be cleaned up when the call ends.
2096
+ auto* service_config_call_data =
2097
+ arena()->New<ClientChannelServiceConfigCallData>(arena(), call_context());
2098
+ // Use the ConfigSelector to determine the config for the call.
2099
+ absl::Status call_config_status =
2100
+ (*config_selector)
2101
+ ->GetCallConfig(
2102
+ {send_initial_metadata(), arena(), service_config_call_data});
2103
+ if (!call_config_status.ok()) {
2104
+ return absl_status_to_grpc_error(
2105
+ MaybeRewriteIllegalStatusCode(call_config_status, "ConfigSelector"));
2106
+ }
2107
+ // Apply our own method params to the call.
2108
+ auto* method_params = static_cast<ClientChannelMethodParsedConfig*>(
2109
+ service_config_call_data->GetMethodParsedConfig(
2110
+ chand()->service_config_parser_index_));
2111
+ if (method_params != nullptr) {
2112
+ // If the deadline from the service config is shorter than the one
2113
+ // from the client API, reset the deadline timer.
2114
+ if (chand()->deadline_checking_enabled_ &&
2115
+ method_params->timeout() != Duration::Zero()) {
2116
+ ResetDeadline(method_params->timeout());
2117
+ }
2118
+ // If the service config set wait_for_ready and the application
2119
+ // did not explicitly set it, use the value from the service config.
2120
+ auto* wait_for_ready =
2121
+ send_initial_metadata()->GetOrCreatePointer(WaitForReady());
2122
+ if (method_params->wait_for_ready().has_value() &&
2123
+ !wait_for_ready->explicitly_set) {
2124
+ wait_for_ready->value = method_params->wait_for_ready().value();
2125
+ }
2126
+ }
2127
+ return absl::OkStatus();
2128
+ }
2129
+
2130
+ absl::optional<absl::Status> ClientChannelFilter::CallData::CheckResolution(
2131
+ bool was_queued) {
2132
+ // Check if we have a resolver result to use.
2133
+ absl::StatusOr<RefCountedPtr<ConfigSelector>> config_selector;
2134
+ {
2135
+ MutexLock lock(&chand()->resolution_mu_);
2136
+ bool result_ready = CheckResolutionLocked(&config_selector);
2137
+ // If no result is available, queue the call.
2138
+ if (!result_ready) {
2139
+ AddCallToResolverQueuedCallsLocked();
2140
+ return absl::nullopt;
2141
+ }
2142
+ }
2143
+ // We have a result. Apply service config to call.
2144
+ grpc_error_handle error = ApplyServiceConfigToCallLocked(config_selector);
2145
+ // ConfigSelector must be unreffed inside the WorkSerializer.
2146
+ if (!IsWorkSerializerDispatchEnabled() && config_selector.ok()) {
2147
+ chand()->work_serializer_->Run(
2148
+ [config_selector = std::move(*config_selector)]() mutable {
2149
+ config_selector.reset();
2150
+ },
2151
+ DEBUG_LOCATION);
2152
+ }
2153
+ // Handle errors.
2154
+ if (!error.ok()) {
2155
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2156
+ gpr_log(GPR_INFO,
2157
+ "chand=%p calld=%p: error applying config to call: error=%s",
2158
+ chand(), this, StatusToString(error).c_str());
2159
+ }
2160
+ return error;
2161
+ }
2162
+ // If the call was queued, add trace annotation.
2163
+ if (was_queued) {
2164
+ auto* call_tracer = static_cast<CallTracerAnnotationInterface*>(
2165
+ call_context()[GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE].value);
2166
+ if (call_tracer != nullptr) {
2167
+ call_tracer->RecordAnnotation("Delayed name resolution complete.");
2168
+ }
2169
+ }
2170
+ return absl::OkStatus();
2171
+ }
2172
+
2173
+ bool ClientChannelFilter::CallData::CheckResolutionLocked(
2174
+ absl::StatusOr<RefCountedPtr<ConfigSelector>>* config_selector) {
2175
+ // If we don't yet have a resolver result, we need to queue the call
2176
+ // until we get one.
2177
+ if (GPR_UNLIKELY(!chand()->received_service_config_data_)) {
2178
+ // If the resolver returned transient failure before returning the
2179
+ // first service config, fail any non-wait_for_ready calls.
2180
+ absl::Status resolver_error = chand()->resolver_transient_failure_error_;
2181
+ if (!resolver_error.ok() &&
2182
+ !send_initial_metadata()->GetOrCreatePointer(WaitForReady())->value) {
2183
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2184
+ gpr_log(GPR_INFO, "chand=%p calld=%p: resolution failed, failing call",
2185
+ chand(), this);
2186
+ }
2187
+ *config_selector = absl_status_to_grpc_error(resolver_error);
2188
+ return true;
2189
+ }
2190
+ // Either the resolver has not yet returned a result, or it has
2191
+ // returned transient failure but the call is wait_for_ready. In
2192
+ // either case, queue the call.
2193
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2194
+ gpr_log(GPR_INFO, "chand=%p calld=%p: no resolver result yet", chand(),
2195
+ this);
2196
+ }
2197
+ return false;
2198
+ }
2199
+ // Result found.
2200
+ *config_selector = chand()->config_selector_;
2201
+ dynamic_filters_ = chand()->dynamic_filters_;
2202
+ return true;
2203
+ }
2204
+
2205
+ //
2206
+ // FilterBasedCallData implementation
2207
+ //
2208
+
2209
+ ClientChannelFilter::FilterBasedCallData::FilterBasedCallData(
2210
+ grpc_call_element* elem, const grpc_call_element_args& args)
2211
+ : path_(CSliceRef(args.path)),
2212
+ call_context_(args.context),
2213
+ call_start_time_(args.start_time),
2214
+ deadline_(args.deadline),
2215
+ deadline_state_(
2216
+ elem, args,
2217
+ GPR_LIKELY(static_cast<ClientChannelFilter*>(elem->channel_data)
2218
+ ->deadline_checking_enabled_)
2219
+ ? args.deadline
2220
+ : Timestamp::InfFuture()) {
2221
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2222
+ gpr_log(GPR_INFO, "chand=%p calld=%p: created call", chand(), this);
2223
+ }
2224
+ }
2225
+
2226
+ ClientChannelFilter::FilterBasedCallData::~FilterBasedCallData() {
2227
+ CSliceUnref(path_);
2228
+ // Make sure there are no remaining pending batches.
2229
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2230
+ GPR_ASSERT(pending_batches_[i] == nullptr);
2231
+ }
2232
+ }
2233
+
2234
+ grpc_error_handle ClientChannelFilter::FilterBasedCallData::Init(
2235
+ grpc_call_element* elem, const grpc_call_element_args* args) {
2236
+ new (elem->call_data) FilterBasedCallData(elem, *args);
2237
+ return absl::OkStatus();
2238
+ }
2239
+
2240
+ void ClientChannelFilter::FilterBasedCallData::Destroy(
2241
+ grpc_call_element* elem, const grpc_call_final_info* /*final_info*/,
2242
+ grpc_closure* then_schedule_closure) {
2243
+ auto* calld = static_cast<FilterBasedCallData*>(elem->call_data);
2244
+ RefCountedPtr<DynamicFilters::Call> dynamic_call =
2245
+ std::move(calld->dynamic_call_);
2246
+ calld->~FilterBasedCallData();
2247
+ if (GPR_LIKELY(dynamic_call != nullptr)) {
2248
+ dynamic_call->SetAfterCallStackDestroy(then_schedule_closure);
2249
+ } else {
2250
+ // TODO(yashkt) : This can potentially be a Closure::Run
2251
+ ExecCtx::Run(DEBUG_LOCATION, then_schedule_closure, absl::OkStatus());
2252
+ }
2253
+ }
2254
+
2255
+ void ClientChannelFilter::FilterBasedCallData::StartTransportStreamOpBatch(
2256
+ grpc_call_element* elem, grpc_transport_stream_op_batch* batch) {
2257
+ auto* calld = static_cast<FilterBasedCallData*>(elem->call_data);
2258
+ auto* chand = static_cast<ClientChannelFilter*>(elem->channel_data);
2259
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace) &&
2260
+ !GRPC_TRACE_FLAG_ENABLED(grpc_trace_channel)) {
2261
+ gpr_log(GPR_INFO, "chand=%p calld=%p: batch started from above: %s", chand,
2262
+ calld, grpc_transport_stream_op_batch_string(batch, false).c_str());
2263
+ }
2264
+ if (GPR_LIKELY(chand->deadline_checking_enabled_)) {
2265
+ grpc_deadline_state_client_start_transport_stream_op_batch(
2266
+ &calld->deadline_state_, batch);
2267
+ }
2268
+ // Intercept recv_trailing_metadata to commit the call, in case we wind up
2269
+ // failing the call before we get down to the retry or LB call layer.
2270
+ if (batch->recv_trailing_metadata) {
2271
+ calld->original_recv_trailing_metadata_ready_ =
2272
+ batch->payload->recv_trailing_metadata.recv_trailing_metadata_ready;
2273
+ GRPC_CLOSURE_INIT(&calld->recv_trailing_metadata_ready_,
2274
+ RecvTrailingMetadataReadyForConfigSelectorCommitCallback,
2275
+ calld, nullptr);
2276
+ batch->payload->recv_trailing_metadata.recv_trailing_metadata_ready =
2277
+ &calld->recv_trailing_metadata_ready_;
2278
+ }
2279
+ // If we already have a dynamic call, pass the batch down to it.
2280
+ // Note that once we have done so, we do not need to acquire the channel's
2281
+ // resolution mutex, which is more efficient (especially for streaming calls).
2282
+ if (calld->dynamic_call_ != nullptr) {
2283
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2284
+ gpr_log(GPR_INFO, "chand=%p calld=%p: starting batch on dynamic_call=%p",
2285
+ chand, calld, calld->dynamic_call_.get());
2286
+ }
2287
+ calld->dynamic_call_->StartTransportStreamOpBatch(batch);
2288
+ return;
2289
+ }
2290
+ // We do not yet have a dynamic call.
2291
+ //
2292
+ // If we've previously been cancelled, immediately fail any new batches.
2293
+ if (GPR_UNLIKELY(!calld->cancel_error_.ok())) {
2294
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2295
+ gpr_log(GPR_INFO, "chand=%p calld=%p: failing batch with error: %s",
2296
+ chand, calld, StatusToString(calld->cancel_error_).c_str());
2297
+ }
2298
+ // Note: This will release the call combiner.
2299
+ grpc_transport_stream_op_batch_finish_with_failure(
2300
+ batch, calld->cancel_error_, calld->call_combiner());
2301
+ return;
2302
+ }
2303
+ // Handle cancellation.
2304
+ if (GPR_UNLIKELY(batch->cancel_stream)) {
2305
+ // Stash a copy of cancel_error in our call data, so that we can use
2306
+ // it for subsequent operations. This ensures that if the call is
2307
+ // cancelled before any batches are passed down (e.g., if the deadline
2308
+ // is in the past when the call starts), we can return the right
2309
+ // error to the caller when the first batch does get passed down.
2310
+ calld->cancel_error_ = batch->payload->cancel_stream.cancel_error;
2311
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2312
+ gpr_log(GPR_INFO, "chand=%p calld=%p: recording cancel_error=%s", chand,
2313
+ calld, StatusToString(calld->cancel_error_).c_str());
2314
+ }
2315
+ // Fail all pending batches.
2316
+ calld->PendingBatchesFail(calld->cancel_error_, NoYieldCallCombiner);
2317
+ // Note: This will release the call combiner.
2318
+ grpc_transport_stream_op_batch_finish_with_failure(
2319
+ batch, calld->cancel_error_, calld->call_combiner());
2320
+ return;
2321
+ }
2322
+ // Add the batch to the pending list.
2323
+ calld->PendingBatchesAdd(batch);
2324
+ // For batches containing a send_initial_metadata op, acquire the
2325
+ // channel's resolution mutex to apply the service config to the call,
2326
+ // after which we will create a dynamic call.
2327
+ if (GPR_LIKELY(batch->send_initial_metadata)) {
2328
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2329
+ gpr_log(GPR_INFO,
2330
+ "chand=%p calld=%p: grabbing resolution mutex to apply service "
2331
+ "config",
2332
+ chand, calld);
2333
+ }
2334
+ // If we're still in IDLE, we need to start resolving.
2335
+ if (GPR_UNLIKELY(chand->CheckConnectivityState(false) ==
2336
+ GRPC_CHANNEL_IDLE)) {
2337
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2338
+ gpr_log(GPR_INFO, "chand=%p calld=%p: triggering exit idle", chand,
2339
+ calld);
2340
+ }
2341
+ // Bounce into the control plane work serializer to start resolving.
2342
+ GRPC_CHANNEL_STACK_REF(chand->owning_stack_, "ExitIdle");
2343
+ chand->work_serializer_->Run(
2344
+ [chand]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand->work_serializer_) {
2345
+ chand->CheckConnectivityState(/*try_to_connect=*/true);
2346
+ GRPC_CHANNEL_STACK_UNREF(chand->owning_stack_, "ExitIdle");
2347
+ },
2348
+ DEBUG_LOCATION);
2349
+ }
2350
+ calld->TryCheckResolution(/*was_queued=*/false);
2351
+ } else {
2352
+ // For all other batches, release the call combiner.
2353
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2354
+ gpr_log(GPR_INFO,
2355
+ "chand=%p calld=%p: saved batch, yielding call combiner", chand,
2356
+ calld);
2357
+ }
2358
+ GRPC_CALL_COMBINER_STOP(calld->call_combiner(),
2359
+ "batch does not include send_initial_metadata");
2360
+ }
2361
+ }
2362
+
2363
+ void ClientChannelFilter::FilterBasedCallData::SetPollent(
2364
+ grpc_call_element* elem, grpc_polling_entity* pollent) {
2365
+ auto* calld = static_cast<FilterBasedCallData*>(elem->call_data);
2366
+ calld->pollent_ = pollent;
2367
+ }
2368
+
2369
+ size_t ClientChannelFilter::FilterBasedCallData::GetBatchIndex(
2370
+ grpc_transport_stream_op_batch* batch) {
2371
+ // Note: It is important the send_initial_metadata be the first entry
2372
+ // here, since the code in CheckResolution() assumes it will be.
2373
+ if (batch->send_initial_metadata) return 0;
2374
+ if (batch->send_message) return 1;
2375
+ if (batch->send_trailing_metadata) return 2;
2376
+ if (batch->recv_initial_metadata) return 3;
2377
+ if (batch->recv_message) return 4;
2378
+ if (batch->recv_trailing_metadata) return 5;
2379
+ GPR_UNREACHABLE_CODE(return (size_t)-1);
2380
+ }
2381
+
2382
+ // This is called via the call combiner, so access to calld is synchronized.
2383
+ void ClientChannelFilter::FilterBasedCallData::PendingBatchesAdd(
2384
+ grpc_transport_stream_op_batch* batch) {
2385
+ const size_t idx = GetBatchIndex(batch);
2386
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2387
+ gpr_log(GPR_INFO,
2388
+ "chand=%p calld=%p: adding pending batch at index %" PRIuPTR,
2389
+ chand(), this, idx);
2390
+ }
2391
+ grpc_transport_stream_op_batch*& pending = pending_batches_[idx];
2392
+ GPR_ASSERT(pending == nullptr);
2393
+ pending = batch;
2394
+ }
2395
+
2396
+ // This is called via the call combiner, so access to calld is synchronized.
2397
+ void ClientChannelFilter::FilterBasedCallData::FailPendingBatchInCallCombiner(
2398
+ void* arg, grpc_error_handle error) {
2399
+ grpc_transport_stream_op_batch* batch =
2400
+ static_cast<grpc_transport_stream_op_batch*>(arg);
2401
+ auto* calld =
2402
+ static_cast<FilterBasedCallData*>(batch->handler_private.extra_arg);
2403
+ // Note: This will release the call combiner.
2404
+ grpc_transport_stream_op_batch_finish_with_failure(batch, error,
2405
+ calld->call_combiner());
2406
+ }
2407
+
2408
+ // This is called via the call combiner, so access to calld is synchronized.
2409
+ void ClientChannelFilter::FilterBasedCallData::PendingBatchesFail(
2410
+ grpc_error_handle error,
2411
+ YieldCallCombinerPredicate yield_call_combiner_predicate) {
2412
+ GPR_ASSERT(!error.ok());
2413
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2414
+ size_t num_batches = 0;
2415
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2416
+ if (pending_batches_[i] != nullptr) ++num_batches;
2417
+ }
2418
+ gpr_log(GPR_INFO,
2419
+ "chand=%p calld=%p: failing %" PRIuPTR " pending batches: %s",
2420
+ chand(), this, num_batches, StatusToString(error).c_str());
2421
+ }
2422
+ CallCombinerClosureList closures;
2423
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2424
+ grpc_transport_stream_op_batch*& batch = pending_batches_[i];
2425
+ if (batch != nullptr) {
2426
+ batch->handler_private.extra_arg = this;
2427
+ GRPC_CLOSURE_INIT(&batch->handler_private.closure,
2428
+ FailPendingBatchInCallCombiner, batch,
2429
+ grpc_schedule_on_exec_ctx);
2430
+ closures.Add(&batch->handler_private.closure, error,
2431
+ "PendingBatchesFail");
2432
+ batch = nullptr;
2433
+ }
2434
+ }
2435
+ if (yield_call_combiner_predicate(closures)) {
2436
+ closures.RunClosures(call_combiner());
2437
+ } else {
2438
+ closures.RunClosuresWithoutYielding(call_combiner());
2439
+ }
2440
+ }
2441
+
2442
+ // This is called via the call combiner, so access to calld is synchronized.
2443
+ void ClientChannelFilter::FilterBasedCallData::ResumePendingBatchInCallCombiner(
2444
+ void* arg, grpc_error_handle /*ignored*/) {
2445
+ grpc_transport_stream_op_batch* batch =
2446
+ static_cast<grpc_transport_stream_op_batch*>(arg);
2447
+ auto* calld =
2448
+ static_cast<FilterBasedCallData*>(batch->handler_private.extra_arg);
2449
+ // Note: This will release the call combiner.
2450
+ calld->dynamic_call_->StartTransportStreamOpBatch(batch);
2451
+ }
2452
+
2453
+ // This is called via the call combiner, so access to calld is synchronized.
2454
+ void ClientChannelFilter::FilterBasedCallData::PendingBatchesResume() {
2455
+ // Retries not enabled; send down batches as-is.
2456
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2457
+ size_t num_batches = 0;
2458
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2459
+ if (pending_batches_[i] != nullptr) ++num_batches;
2460
+ }
2461
+ gpr_log(GPR_INFO,
2462
+ "chand=%p calld=%p: starting %" PRIuPTR
2463
+ " pending batches on dynamic_call=%p",
2464
+ chand(), this, num_batches, dynamic_call_.get());
2465
+ }
2466
+ CallCombinerClosureList closures;
2467
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2468
+ grpc_transport_stream_op_batch*& batch = pending_batches_[i];
2469
+ if (batch != nullptr) {
2470
+ batch->handler_private.extra_arg = this;
2471
+ GRPC_CLOSURE_INIT(&batch->handler_private.closure,
2472
+ ResumePendingBatchInCallCombiner, batch, nullptr);
2473
+ closures.Add(&batch->handler_private.closure, absl::OkStatus(),
2474
+ "resuming pending batch from client channel call");
2475
+ batch = nullptr;
2476
+ }
2477
+ }
2478
+ // Note: This will release the call combiner.
2479
+ closures.RunClosures(call_combiner());
2480
+ }
2481
+
2482
+ // A class to handle the call combiner cancellation callback for a
2483
+ // queued pick.
2484
+ class ClientChannelFilter::FilterBasedCallData::ResolverQueuedCallCanceller {
2485
+ public:
2486
+ explicit ResolverQueuedCallCanceller(FilterBasedCallData* calld)
2487
+ : calld_(calld) {
2488
+ GRPC_CALL_STACK_REF(calld->owning_call(), "ResolverQueuedCallCanceller");
2489
+ GRPC_CLOSURE_INIT(&closure_, &CancelLocked, this,
2490
+ grpc_schedule_on_exec_ctx);
2491
+ calld->call_combiner()->SetNotifyOnCancel(&closure_);
2492
+ }
2493
+
2494
+ private:
2495
+ static void CancelLocked(void* arg, grpc_error_handle error) {
2496
+ auto* self = static_cast<ResolverQueuedCallCanceller*>(arg);
2497
+ auto* calld = self->calld_;
2498
+ auto* chand = calld->chand();
2499
+ {
2500
+ MutexLock lock(&chand->resolution_mu_);
2501
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2502
+ gpr_log(GPR_INFO,
2503
+ "chand=%p calld=%p: cancelling resolver queued pick: "
2504
+ "error=%s self=%p calld->resolver_pick_canceller=%p",
2505
+ chand, calld, StatusToString(error).c_str(), self,
2506
+ calld->resolver_call_canceller_);
2507
+ }
2508
+ if (calld->resolver_call_canceller_ == self && !error.ok()) {
2509
+ // Remove pick from list of queued picks.
2510
+ calld->RemoveCallFromResolverQueuedCallsLocked();
2511
+ chand->resolver_queued_calls_.erase(calld);
2512
+ // Fail pending batches on the call.
2513
+ calld->PendingBatchesFail(error,
2514
+ YieldCallCombinerIfPendingBatchesFound);
2515
+ }
2516
+ }
2517
+ GRPC_CALL_STACK_UNREF(calld->owning_call(), "ResolvingQueuedCallCanceller");
2518
+ delete self;
2519
+ }
2520
+
2521
+ FilterBasedCallData* calld_;
2522
+ grpc_closure closure_;
2523
+ };
2524
+
2525
+ void ClientChannelFilter::FilterBasedCallData::TryCheckResolution(
2526
+ bool was_queued) {
2527
+ auto result = CheckResolution(was_queued);
2528
+ if (result.has_value()) {
2529
+ if (!result->ok()) {
2530
+ PendingBatchesFail(*result, YieldCallCombiner);
2531
+ return;
2532
+ }
2533
+ CreateDynamicCall();
2534
+ }
2535
+ }
2536
+
2537
+ void ClientChannelFilter::FilterBasedCallData::OnAddToQueueLocked() {
2538
+ // Register call combiner cancellation callback.
2539
+ resolver_call_canceller_ = new ResolverQueuedCallCanceller(this);
2540
+ }
2541
+
2542
+ void ClientChannelFilter::FilterBasedCallData::RetryCheckResolutionLocked() {
2543
+ // Lame the call combiner canceller.
2544
+ resolver_call_canceller_ = nullptr;
2545
+ // Do an async callback to resume call processing, so that we're not
2546
+ // doing it while holding the channel's resolution mutex.
2547
+ chand()->owning_stack_->EventEngine()->Run([this]() {
2548
+ ApplicationCallbackExecCtx application_exec_ctx;
2549
+ ExecCtx exec_ctx;
2550
+ TryCheckResolution(/*was_queued=*/true);
2551
+ });
2552
+ }
2553
+
2554
+ void ClientChannelFilter::FilterBasedCallData::CreateDynamicCall() {
2555
+ DynamicFilters::Call::Args args = {dynamic_filters(), pollent_, path_,
2556
+ call_start_time_, deadline_, arena(),
2557
+ call_context_, call_combiner()};
2558
+ grpc_error_handle error;
2559
+ DynamicFilters* channel_stack = args.channel_stack.get();
2560
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2561
+ gpr_log(
2562
+ GPR_INFO,
2563
+ "chand=%p calld=%p: creating dynamic call stack on channel_stack=%p",
2564
+ chand(), this, channel_stack);
2565
+ }
2566
+ dynamic_call_ = channel_stack->CreateCall(std::move(args), &error);
2567
+ if (!error.ok()) {
2568
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2569
+ gpr_log(GPR_INFO,
2570
+ "chand=%p calld=%p: failed to create dynamic call: error=%s",
2571
+ chand(), this, StatusToString(error).c_str());
2572
+ }
2573
+ PendingBatchesFail(error, YieldCallCombiner);
2574
+ return;
2575
+ }
2576
+ PendingBatchesResume();
2577
+ }
2578
+
2579
+ void ClientChannelFilter::FilterBasedCallData::
2580
+ RecvTrailingMetadataReadyForConfigSelectorCommitCallback(
2581
+ void* arg, grpc_error_handle error) {
2582
+ auto* calld = static_cast<FilterBasedCallData*>(arg);
2583
+ auto* chand = calld->chand();
2584
+ auto* service_config_call_data =
2585
+ GetServiceConfigCallData(calld->call_context());
2586
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2587
+ gpr_log(GPR_INFO,
2588
+ "chand=%p calld=%p: got recv_trailing_metadata_ready: error=%s "
2589
+ "service_config_call_data=%p",
2590
+ chand, calld, StatusToString(error).c_str(),
2591
+ service_config_call_data);
2592
+ }
2593
+ if (service_config_call_data != nullptr) {
2594
+ service_config_call_data->Commit();
2595
+ }
2596
+ // Chain to original callback.
2597
+ Closure::Run(DEBUG_LOCATION, calld->original_recv_trailing_metadata_ready_,
2598
+ error);
2599
+ }
2600
+
2601
+ //
2602
+ // ClientChannelFilter::LoadBalancedCall::LbCallState
2603
+ //
2604
+
2605
+ class ClientChannelFilter::LoadBalancedCall::LbCallState
2606
+ : public ClientChannelLbCallState {
2607
+ public:
2608
+ explicit LbCallState(LoadBalancedCall* lb_call) : lb_call_(lb_call) {}
2609
+
2610
+ void* Alloc(size_t size) override { return lb_call_->arena()->Alloc(size); }
2611
+
2612
+ // Internal API to allow first-party LB policies to access per-call
2613
+ // attributes set by the ConfigSelector.
2614
+ ServiceConfigCallData::CallAttributeInterface* GetCallAttribute(
2615
+ UniqueTypeName type) const override;
2616
+
2617
+ ClientCallTracer::CallAttemptTracer* GetCallAttemptTracer() const override;
2618
+
2619
+ private:
2620
+ LoadBalancedCall* lb_call_;
2621
+ };
2622
+
2623
+ //
2624
+ // ClientChannelFilter::LoadBalancedCall::Metadata
2625
+ //
2626
+
2627
+ class ClientChannelFilter::LoadBalancedCall::Metadata
2628
+ : public LoadBalancingPolicy::MetadataInterface {
2629
+ public:
2630
+ explicit Metadata(grpc_metadata_batch* batch) : batch_(batch) {}
2631
+
2632
+ void Add(absl::string_view key, absl::string_view value) override {
2633
+ if (batch_ == nullptr) return;
2634
+ // Gross, egregious hack to support legacy grpclb behavior.
2635
+ // TODO(ctiller): Use a promise context for this once that plumbing is done.
2636
+ if (key == GrpcLbClientStatsMetadata::key()) {
2637
+ batch_->Set(
2638
+ GrpcLbClientStatsMetadata(),
2639
+ const_cast<GrpcLbClientStats*>(
2640
+ reinterpret_cast<const GrpcLbClientStats*>(value.data())));
2641
+ return;
2642
+ }
2643
+ batch_->Append(key, Slice::FromStaticString(value),
2644
+ [key](absl::string_view error, const Slice& value) {
2645
+ gpr_log(GPR_ERROR, "%s",
2646
+ absl::StrCat(error, " key:", key,
2647
+ " value:", value.as_string_view())
2648
+ .c_str());
2649
+ });
2650
+ }
2651
+
2652
+ std::vector<std::pair<std::string, std::string>> TestOnlyCopyToVector()
2653
+ override {
2654
+ if (batch_ == nullptr) return {};
2655
+ Encoder encoder;
2656
+ batch_->Encode(&encoder);
2657
+ return encoder.Take();
2658
+ }
2659
+
2660
+ absl::optional<absl::string_view> Lookup(absl::string_view key,
2661
+ std::string* buffer) const override {
2662
+ if (batch_ == nullptr) return absl::nullopt;
2663
+ return batch_->GetStringValue(key, buffer);
2664
+ }
2665
+
2666
+ private:
2667
+ class Encoder {
2668
+ public:
2669
+ void Encode(const Slice& key, const Slice& value) {
2670
+ out_.emplace_back(std::string(key.as_string_view()),
2671
+ std::string(value.as_string_view()));
2672
+ }
2673
+
2674
+ template <class Which>
2675
+ void Encode(Which, const typename Which::ValueType& value) {
2676
+ auto value_slice = Which::Encode(value);
2677
+ out_.emplace_back(std::string(Which::key()),
2678
+ std::string(value_slice.as_string_view()));
2679
+ }
2680
+
2681
+ void Encode(GrpcTimeoutMetadata,
2682
+ const typename GrpcTimeoutMetadata::ValueType&) {}
2683
+ void Encode(HttpPathMetadata, const Slice&) {}
2684
+ void Encode(HttpMethodMetadata,
2685
+ const typename HttpMethodMetadata::ValueType&) {}
2686
+
2687
+ std::vector<std::pair<std::string, std::string>> Take() {
2688
+ return std::move(out_);
2689
+ }
2690
+
2691
+ private:
2692
+ std::vector<std::pair<std::string, std::string>> out_;
2693
+ };
2694
+
2695
+ grpc_metadata_batch* batch_;
2696
+ };
2697
+
2698
+ //
2699
+ // ClientChannelFilter::LoadBalancedCall::LbCallState
2700
+ //
2701
+
2702
+ ServiceConfigCallData::CallAttributeInterface*
2703
+ ClientChannelFilter::LoadBalancedCall::LbCallState::GetCallAttribute(
2704
+ UniqueTypeName type) const {
2705
+ auto* service_config_call_data =
2706
+ GetServiceConfigCallData(lb_call_->call_context_);
2707
+ return service_config_call_data->GetCallAttribute(type);
2708
+ }
2709
+
2710
+ ClientCallTracer::CallAttemptTracer*
2711
+ ClientChannelFilter::LoadBalancedCall::LbCallState::GetCallAttemptTracer()
2712
+ const {
2713
+ return lb_call_->call_attempt_tracer();
2714
+ }
2715
+
2716
+ //
2717
+ // ClientChannelFilter::LoadBalancedCall::BackendMetricAccessor
2718
+ //
2719
+
2720
+ class ClientChannelFilter::LoadBalancedCall::BackendMetricAccessor
2721
+ : public LoadBalancingPolicy::BackendMetricAccessor {
2722
+ public:
2723
+ BackendMetricAccessor(LoadBalancedCall* lb_call,
2724
+ grpc_metadata_batch* recv_trailing_metadata)
2725
+ : lb_call_(lb_call), recv_trailing_metadata_(recv_trailing_metadata) {}
2726
+
2727
+ const BackendMetricData* GetBackendMetricData() override {
2728
+ if (lb_call_->backend_metric_data_ == nullptr &&
2729
+ recv_trailing_metadata_ != nullptr) {
2730
+ if (const auto* md = recv_trailing_metadata_->get_pointer(
2731
+ EndpointLoadMetricsBinMetadata())) {
2732
+ BackendMetricAllocator allocator(lb_call_->arena());
2733
+ lb_call_->backend_metric_data_ =
2734
+ ParseBackendMetricData(md->as_string_view(), &allocator);
2735
+ }
2736
+ }
2737
+ return lb_call_->backend_metric_data_;
2738
+ }
2739
+
2740
+ private:
2741
+ class BackendMetricAllocator : public BackendMetricAllocatorInterface {
2742
+ public:
2743
+ explicit BackendMetricAllocator(Arena* arena) : arena_(arena) {}
2744
+
2745
+ BackendMetricData* AllocateBackendMetricData() override {
2746
+ return arena_->New<BackendMetricData>();
2747
+ }
2748
+
2749
+ char* AllocateString(size_t size) override {
2750
+ return static_cast<char*>(arena_->Alloc(size));
2751
+ }
2752
+
2753
+ private:
2754
+ Arena* arena_;
2755
+ };
2756
+
2757
+ LoadBalancedCall* lb_call_;
2758
+ grpc_metadata_batch* recv_trailing_metadata_;
2759
+ };
2760
+
2761
+ //
2762
+ // ClientChannelFilter::LoadBalancedCall
2763
+ //
2764
+
2765
+ namespace {
2766
+
2767
+ void CreateCallAttemptTracer(grpc_call_context_element* context,
2768
+ bool is_transparent_retry) {
2769
+ auto* call_tracer = static_cast<ClientCallTracer*>(
2770
+ context[GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE].value);
2771
+ if (call_tracer == nullptr) return;
2772
+ auto* tracer = call_tracer->StartNewAttempt(is_transparent_retry);
2773
+ context[GRPC_CONTEXT_CALL_TRACER].value = tracer;
2774
+ }
2775
+
2776
+ } // namespace
2777
+
2778
+ ClientChannelFilter::LoadBalancedCall::LoadBalancedCall(
2779
+ ClientChannelFilter* chand, grpc_call_context_element* call_context,
2780
+ absl::AnyInvocable<void()> on_commit, bool is_transparent_retry)
2781
+ : InternallyRefCounted(
2782
+ GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)
2783
+ ? "LoadBalancedCall"
2784
+ : nullptr),
2785
+ chand_(chand),
2786
+ on_commit_(std::move(on_commit)),
2787
+ call_context_(call_context) {
2788
+ CreateCallAttemptTracer(call_context, is_transparent_retry);
2789
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2790
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: created", chand_, this);
2791
+ }
2792
+ }
2793
+
2794
+ ClientChannelFilter::LoadBalancedCall::~LoadBalancedCall() {
2795
+ if (backend_metric_data_ != nullptr) {
2796
+ backend_metric_data_->BackendMetricData::~BackendMetricData();
2797
+ }
2798
+ }
2799
+
2800
+ void ClientChannelFilter::LoadBalancedCall::RecordCallCompletion(
2801
+ absl::Status status, grpc_metadata_batch* recv_trailing_metadata,
2802
+ grpc_transport_stream_stats* transport_stream_stats,
2803
+ absl::string_view peer_address) {
2804
+ // If we have a tracer, notify it.
2805
+ if (call_attempt_tracer() != nullptr) {
2806
+ call_attempt_tracer()->RecordReceivedTrailingMetadata(
2807
+ status, recv_trailing_metadata, transport_stream_stats);
2808
+ }
2809
+ // If the LB policy requested a callback for trailing metadata, invoke
2810
+ // the callback.
2811
+ if (lb_subchannel_call_tracker_ != nullptr) {
2812
+ Metadata trailing_metadata(recv_trailing_metadata);
2813
+ BackendMetricAccessor backend_metric_accessor(this, recv_trailing_metadata);
2814
+ LoadBalancingPolicy::SubchannelCallTrackerInterface::FinishArgs args = {
2815
+ peer_address, status, &trailing_metadata, &backend_metric_accessor};
2816
+ lb_subchannel_call_tracker_->Finish(args);
2817
+ lb_subchannel_call_tracker_.reset();
2818
+ }
2819
+ }
2820
+
2821
+ void ClientChannelFilter::LoadBalancedCall::RecordLatency() {
2822
+ // Compute latency and report it to the tracer.
2823
+ if (call_attempt_tracer() != nullptr) {
2824
+ gpr_timespec latency =
2825
+ gpr_cycle_counter_sub(gpr_get_cycle_counter(), lb_call_start_time_);
2826
+ call_attempt_tracer()->RecordEnd(latency);
2827
+ }
2828
+ }
2829
+
2830
+ void ClientChannelFilter::LoadBalancedCall::
2831
+ RemoveCallFromLbQueuedCallsLocked() {
2832
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2833
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: removing from queued picks list",
2834
+ chand_, this);
2835
+ }
2836
+ // Remove pollset_set linkage.
2837
+ grpc_polling_entity_del_from_pollset_set(pollent(),
2838
+ chand_->interested_parties_);
2839
+ // Note: There's no need to actually remove the call from the queue
2840
+ // here, beacuse that will be done in either
2841
+ // LbQueuedCallCanceller::CancelLocked() or
2842
+ // in ClientChannelFilter::UpdateStateAndPickerLocked().
2843
+ }
2844
+
2845
+ void ClientChannelFilter::LoadBalancedCall::AddCallToLbQueuedCallsLocked() {
2846
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2847
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: adding to queued picks list",
2848
+ chand_, this);
2849
+ }
2850
+ // Add call's pollent to channel's interested_parties, so that I/O
2851
+ // can be done under the call's CQ.
2852
+ grpc_polling_entity_add_to_pollset_set(pollent(),
2853
+ chand_->interested_parties_);
2854
+ // Add to queue.
2855
+ chand_->lb_queued_calls_.insert(Ref());
2856
+ OnAddToQueueLocked();
2857
+ }
2858
+
2859
+ absl::optional<absl::Status>
2860
+ ClientChannelFilter::LoadBalancedCall::PickSubchannel(bool was_queued) {
2861
+ // We may accumulate multiple pickers here, because if a picker says
2862
+ // to queue the call, we check again to see if the picker has been
2863
+ // updated before we queue it.
2864
+ // We need to unref pickers in the WorkSerializer.
2865
+ std::vector<RefCountedPtr<LoadBalancingPolicy::SubchannelPicker>> pickers;
2866
+ auto cleanup = absl::MakeCleanup([&]() {
2867
+ if (IsWorkSerializerDispatchEnabled()) return;
2868
+ chand_->work_serializer_->Run(
2869
+ [pickers = std::move(pickers)]() mutable {
2870
+ for (auto& picker : pickers) {
2871
+ picker.reset(DEBUG_LOCATION, "PickSubchannel");
2872
+ }
2873
+ },
2874
+ DEBUG_LOCATION);
2875
+ });
2876
+ absl::AnyInvocable<void(RefCountedPtr<LoadBalancingPolicy::SubchannelPicker>)>
2877
+ set_picker;
2878
+ if (!IsWorkSerializerDispatchEnabled()) {
2879
+ set_picker =
2880
+ [&](RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker) {
2881
+ pickers.emplace_back(std::move(picker));
2882
+ };
2883
+ } else {
2884
+ pickers.emplace_back();
2885
+ set_picker =
2886
+ [&](RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker) {
2887
+ pickers[0] = std::move(picker);
2888
+ };
2889
+ }
2890
+ // Grab mutex and take a ref to the picker.
2891
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2892
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: grabbing LB mutex to get picker",
2893
+ chand_, this);
2894
+ }
2895
+ RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker;
2896
+ {
2897
+ MutexLock lock(&chand_->lb_mu_);
2898
+ set_picker(chand_->picker_);
2899
+ }
2900
+ while (true) {
2901
+ // Do pick.
2902
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2903
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: performing pick with picker=%p",
2904
+ chand_, this, pickers.back().get());
2905
+ }
2906
+ grpc_error_handle error;
2907
+ bool pick_complete = PickSubchannelImpl(pickers.back().get(), &error);
2908
+ if (!pick_complete) {
2909
+ RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> old_picker;
2910
+ MutexLock lock(&chand_->lb_mu_);
2911
+ // If picker has been swapped out since we grabbed it, try again.
2912
+ if (pickers.back() != chand_->picker_) {
2913
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2914
+ gpr_log(GPR_INFO,
2915
+ "chand=%p lb_call=%p: pick not complete, but picker changed",
2916
+ chand_, this);
2917
+ }
2918
+ if (IsWorkSerializerDispatchEnabled()) {
2919
+ // Don't unref until after we release the mutex.
2920
+ old_picker = std::move(pickers.back());
2921
+ }
2922
+ set_picker(chand_->picker_);
2923
+ continue;
2924
+ }
2925
+ // Otherwise queue the pick to try again later when we get a new picker.
2926
+ AddCallToLbQueuedCallsLocked();
2927
+ return absl::nullopt;
2928
+ }
2929
+ // Pick is complete.
2930
+ // If it was queued, add a trace annotation.
2931
+ if (was_queued && call_attempt_tracer() != nullptr) {
2932
+ call_attempt_tracer()->RecordAnnotation("Delayed LB pick complete.");
2933
+ }
2934
+ // If the pick failed, fail the call.
2935
+ if (!error.ok()) {
2936
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2937
+ gpr_log(GPR_INFO,
2938
+ "chand=%p lb_call=%p: failed to pick subchannel: error=%s",
2939
+ chand_, this, StatusToString(error).c_str());
2940
+ }
2941
+ return error;
2942
+ }
2943
+ // Pick succeeded.
2944
+ Commit();
2945
+ return absl::OkStatus();
2946
+ }
2947
+ }
2948
+
2949
+ bool ClientChannelFilter::LoadBalancedCall::PickSubchannelImpl(
2950
+ LoadBalancingPolicy::SubchannelPicker* picker, grpc_error_handle* error) {
2951
+ GPR_ASSERT(connected_subchannel_ == nullptr);
2952
+ // Perform LB pick.
2953
+ LoadBalancingPolicy::PickArgs pick_args;
2954
+ Slice* path = send_initial_metadata()->get_pointer(HttpPathMetadata());
2955
+ GPR_ASSERT(path != nullptr);
2956
+ pick_args.path = path->as_string_view();
2957
+ LbCallState lb_call_state(this);
2958
+ pick_args.call_state = &lb_call_state;
2959
+ Metadata initial_metadata(send_initial_metadata());
2960
+ pick_args.initial_metadata = &initial_metadata;
2961
+ auto result = picker->Pick(pick_args);
2962
+ return HandlePickResult<bool>(
2963
+ &result,
2964
+ // CompletePick
2965
+ [this](LoadBalancingPolicy::PickResult::Complete* complete_pick) {
2966
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2967
+ gpr_log(GPR_INFO,
2968
+ "chand=%p lb_call=%p: LB pick succeeded: subchannel=%p",
2969
+ chand_, this, complete_pick->subchannel.get());
2970
+ }
2971
+ GPR_ASSERT(complete_pick->subchannel != nullptr);
2972
+ // Grab a ref to the connected subchannel while we're still
2973
+ // holding the data plane mutex.
2974
+ SubchannelWrapper* subchannel =
2975
+ static_cast<SubchannelWrapper*>(complete_pick->subchannel.get());
2976
+ connected_subchannel_ = subchannel->connected_subchannel();
2977
+ // If the subchannel has no connected subchannel (e.g., if the
2978
+ // subchannel has moved out of state READY but the LB policy hasn't
2979
+ // yet seen that change and given us a new picker), then just
2980
+ // queue the pick. We'll try again as soon as we get a new picker.
2981
+ if (connected_subchannel_ == nullptr) {
2982
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2983
+ gpr_log(GPR_INFO,
2984
+ "chand=%p lb_call=%p: subchannel returned by LB picker "
2985
+ "has no connected subchannel; queueing pick",
2986
+ chand_, this);
2987
+ }
2988
+ return false;
2989
+ }
2990
+ lb_subchannel_call_tracker_ =
2991
+ std::move(complete_pick->subchannel_call_tracker);
2992
+ if (lb_subchannel_call_tracker_ != nullptr) {
2993
+ lb_subchannel_call_tracker_->Start();
2994
+ }
2995
+ return true;
2996
+ },
2997
+ // QueuePick
2998
+ [this](LoadBalancingPolicy::PickResult::Queue* /*queue_pick*/) {
2999
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3000
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: LB pick queued", chand_,
3001
+ this);
3002
+ }
3003
+ return false;
3004
+ },
3005
+ // FailPick
3006
+ [this, &error](LoadBalancingPolicy::PickResult::Fail* fail_pick) {
3007
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3008
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: LB pick failed: %s", chand_,
3009
+ this, fail_pick->status.ToString().c_str());
3010
+ }
3011
+ // If wait_for_ready is false, then the error indicates the RPC
3012
+ // attempt's final status.
3013
+ if (!send_initial_metadata()
3014
+ ->GetOrCreatePointer(WaitForReady())
3015
+ ->value) {
3016
+ *error = absl_status_to_grpc_error(MaybeRewriteIllegalStatusCode(
3017
+ std::move(fail_pick->status), "LB pick"));
3018
+ return true;
3019
+ }
3020
+ // If wait_for_ready is true, then queue to retry when we get a new
3021
+ // picker.
3022
+ return false;
3023
+ },
3024
+ // DropPick
3025
+ [this, &error](LoadBalancingPolicy::PickResult::Drop* drop_pick) {
3026
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3027
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: LB pick dropped: %s", chand_,
3028
+ this, drop_pick->status.ToString().c_str());
3029
+ }
3030
+ *error = grpc_error_set_int(
3031
+ absl_status_to_grpc_error(MaybeRewriteIllegalStatusCode(
3032
+ std::move(drop_pick->status), "LB drop")),
3033
+ StatusIntProperty::kLbPolicyDrop, 1);
3034
+ return true;
3035
+ });
3036
+ }
3037
+
3038
+ //
3039
+ // ClientChannelFilter::FilterBasedLoadBalancedCall
3040
+ //
3041
+
3042
+ ClientChannelFilter::FilterBasedLoadBalancedCall::FilterBasedLoadBalancedCall(
3043
+ ClientChannelFilter* chand, const grpc_call_element_args& args,
3044
+ grpc_polling_entity* pollent, grpc_closure* on_call_destruction_complete,
3045
+ absl::AnyInvocable<void()> on_commit, bool is_transparent_retry)
3046
+ : LoadBalancedCall(chand, args.context, std::move(on_commit),
3047
+ is_transparent_retry),
3048
+ deadline_(args.deadline),
3049
+ arena_(args.arena),
3050
+ owning_call_(args.call_stack),
3051
+ call_combiner_(args.call_combiner),
3052
+ pollent_(pollent),
3053
+ on_call_destruction_complete_(on_call_destruction_complete) {}
3054
+
3055
+ ClientChannelFilter::FilterBasedLoadBalancedCall::
3056
+ ~FilterBasedLoadBalancedCall() {
3057
+ // Make sure there are no remaining pending batches.
3058
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3059
+ GPR_ASSERT(pending_batches_[i] == nullptr);
3060
+ }
3061
+ if (on_call_destruction_complete_ != nullptr) {
3062
+ ExecCtx::Run(DEBUG_LOCATION, on_call_destruction_complete_,
3063
+ absl::OkStatus());
3064
+ }
3065
+ }
3066
+
3067
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::Orphan() {
3068
+ // If the recv_trailing_metadata op was never started, then notify
3069
+ // about call completion here, as best we can. We assume status
3070
+ // CANCELLED in this case.
3071
+ if (recv_trailing_metadata_ == nullptr) {
3072
+ RecordCallCompletion(absl::CancelledError("call cancelled"), nullptr,
3073
+ nullptr, "");
3074
+ }
3075
+ RecordLatency();
3076
+ // Delegate to parent.
3077
+ LoadBalancedCall::Orphan();
3078
+ }
3079
+
3080
+ size_t ClientChannelFilter::FilterBasedLoadBalancedCall::GetBatchIndex(
3081
+ grpc_transport_stream_op_batch* batch) {
3082
+ // Note: It is important the send_initial_metadata be the first entry
3083
+ // here, since the code in PickSubchannelImpl() assumes it will be.
3084
+ if (batch->send_initial_metadata) return 0;
3085
+ if (batch->send_message) return 1;
3086
+ if (batch->send_trailing_metadata) return 2;
3087
+ if (batch->recv_initial_metadata) return 3;
3088
+ if (batch->recv_message) return 4;
3089
+ if (batch->recv_trailing_metadata) return 5;
3090
+ GPR_UNREACHABLE_CODE(return (size_t)-1);
3091
+ }
3092
+
3093
+ // This is called via the call combiner, so access to calld is synchronized.
3094
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::PendingBatchesAdd(
3095
+ grpc_transport_stream_op_batch* batch) {
3096
+ const size_t idx = GetBatchIndex(batch);
3097
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3098
+ gpr_log(GPR_INFO,
3099
+ "chand=%p lb_call=%p: adding pending batch at index %" PRIuPTR,
3100
+ chand(), this, idx);
3101
+ }
3102
+ GPR_ASSERT(pending_batches_[idx] == nullptr);
3103
+ pending_batches_[idx] = batch;
3104
+ }
3105
+
3106
+ // This is called via the call combiner, so access to calld is synchronized.
3107
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::
3108
+ FailPendingBatchInCallCombiner(void* arg, grpc_error_handle error) {
3109
+ grpc_transport_stream_op_batch* batch =
3110
+ static_cast<grpc_transport_stream_op_batch*>(arg);
3111
+ auto* self = static_cast<FilterBasedLoadBalancedCall*>(
3112
+ batch->handler_private.extra_arg);
3113
+ // Note: This will release the call combiner.
3114
+ grpc_transport_stream_op_batch_finish_with_failure(batch, error,
3115
+ self->call_combiner_);
3116
+ }
3117
+
3118
+ // This is called via the call combiner, so access to calld is synchronized.
3119
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::PendingBatchesFail(
3120
+ grpc_error_handle error,
3121
+ YieldCallCombinerPredicate yield_call_combiner_predicate) {
3122
+ GPR_ASSERT(!error.ok());
3123
+ failure_error_ = error;
3124
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3125
+ size_t num_batches = 0;
3126
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3127
+ if (pending_batches_[i] != nullptr) ++num_batches;
3128
+ }
3129
+ gpr_log(GPR_INFO,
3130
+ "chand=%p lb_call=%p: failing %" PRIuPTR " pending batches: %s",
3131
+ chand(), this, num_batches, StatusToString(error).c_str());
3132
+ }
3133
+ CallCombinerClosureList closures;
3134
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3135
+ grpc_transport_stream_op_batch*& batch = pending_batches_[i];
3136
+ if (batch != nullptr) {
3137
+ batch->handler_private.extra_arg = this;
3138
+ GRPC_CLOSURE_INIT(&batch->handler_private.closure,
3139
+ FailPendingBatchInCallCombiner, batch,
3140
+ grpc_schedule_on_exec_ctx);
3141
+ closures.Add(&batch->handler_private.closure, error,
3142
+ "PendingBatchesFail");
3143
+ batch = nullptr;
3144
+ }
3145
+ }
3146
+ if (yield_call_combiner_predicate(closures)) {
3147
+ closures.RunClosures(call_combiner_);
3148
+ } else {
3149
+ closures.RunClosuresWithoutYielding(call_combiner_);
3150
+ }
3151
+ }
3152
+
3153
+ // This is called via the call combiner, so access to calld is synchronized.
3154
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::
3155
+ ResumePendingBatchInCallCombiner(void* arg, grpc_error_handle /*ignored*/) {
3156
+ grpc_transport_stream_op_batch* batch =
3157
+ static_cast<grpc_transport_stream_op_batch*>(arg);
3158
+ SubchannelCall* subchannel_call =
3159
+ static_cast<SubchannelCall*>(batch->handler_private.extra_arg);
3160
+ // Note: This will release the call combiner.
3161
+ subchannel_call->StartTransportStreamOpBatch(batch);
3162
+ }
3163
+
3164
+ // This is called via the call combiner, so access to calld is synchronized.
3165
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::PendingBatchesResume() {
3166
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3167
+ size_t num_batches = 0;
3168
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3169
+ if (pending_batches_[i] != nullptr) ++num_batches;
3170
+ }
3171
+ gpr_log(GPR_INFO,
3172
+ "chand=%p lb_call=%p: starting %" PRIuPTR
3173
+ " pending batches on subchannel_call=%p",
3174
+ chand(), this, num_batches, subchannel_call_.get());
3175
+ }
3176
+ CallCombinerClosureList closures;
3177
+ for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3178
+ grpc_transport_stream_op_batch*& batch = pending_batches_[i];
3179
+ if (batch != nullptr) {
3180
+ batch->handler_private.extra_arg = subchannel_call_.get();
3181
+ GRPC_CLOSURE_INIT(&batch->handler_private.closure,
3182
+ ResumePendingBatchInCallCombiner, batch,
3183
+ grpc_schedule_on_exec_ctx);
3184
+ closures.Add(&batch->handler_private.closure, absl::OkStatus(),
3185
+ "resuming pending batch from LB call");
3186
+ batch = nullptr;
3187
+ }
3188
+ }
3189
+ // Note: This will release the call combiner.
3190
+ closures.RunClosures(call_combiner_);
3191
+ }
3192
+
3193
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::
3194
+ StartTransportStreamOpBatch(grpc_transport_stream_op_batch* batch) {
3195
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace) ||
3196
+ GRPC_TRACE_FLAG_ENABLED(grpc_trace_channel)) {
3197
+ gpr_log(GPR_INFO,
3198
+ "chand=%p lb_call=%p: batch started from above: %s, "
3199
+ "call_attempt_tracer()=%p",
3200
+ chand(), this,
3201
+ grpc_transport_stream_op_batch_string(batch, false).c_str(),
3202
+ call_attempt_tracer());
3203
+ }
3204
+ // Handle call tracing.
3205
+ if (call_attempt_tracer() != nullptr) {
3206
+ // Record send ops in tracer.
3207
+ if (batch->cancel_stream) {
3208
+ call_attempt_tracer()->RecordCancel(
3209
+ batch->payload->cancel_stream.cancel_error);
3210
+ }
3211
+ if (batch->send_initial_metadata) {
3212
+ call_attempt_tracer()->RecordSendInitialMetadata(
3213
+ batch->payload->send_initial_metadata.send_initial_metadata);
3214
+ }
3215
+ if (batch->send_trailing_metadata) {
3216
+ call_attempt_tracer()->RecordSendTrailingMetadata(
3217
+ batch->payload->send_trailing_metadata.send_trailing_metadata);
3218
+ }
3219
+ // Intercept recv ops.
3220
+ if (batch->recv_initial_metadata) {
3221
+ recv_initial_metadata_ =
3222
+ batch->payload->recv_initial_metadata.recv_initial_metadata;
3223
+ original_recv_initial_metadata_ready_ =
3224
+ batch->payload->recv_initial_metadata.recv_initial_metadata_ready;
3225
+ GRPC_CLOSURE_INIT(&recv_initial_metadata_ready_, RecvInitialMetadataReady,
3226
+ this, nullptr);
3227
+ batch->payload->recv_initial_metadata.recv_initial_metadata_ready =
3228
+ &recv_initial_metadata_ready_;
3229
+ }
3230
+ }
3231
+ // Intercept recv_trailing_metadata even if there is no call tracer,
3232
+ // since we may need to notify the LB policy about trailing metadata.
3233
+ if (batch->recv_trailing_metadata) {
3234
+ recv_trailing_metadata_ =
3235
+ batch->payload->recv_trailing_metadata.recv_trailing_metadata;
3236
+ transport_stream_stats_ =
3237
+ batch->payload->recv_trailing_metadata.collect_stats;
3238
+ original_recv_trailing_metadata_ready_ =
3239
+ batch->payload->recv_trailing_metadata.recv_trailing_metadata_ready;
3240
+ GRPC_CLOSURE_INIT(&recv_trailing_metadata_ready_, RecvTrailingMetadataReady,
3241
+ this, nullptr);
3242
+ batch->payload->recv_trailing_metadata.recv_trailing_metadata_ready =
3243
+ &recv_trailing_metadata_ready_;
3244
+ }
3245
+ // If we've already gotten a subchannel call, pass the batch down to it.
3246
+ // Note that once we have picked a subchannel, we do not need to acquire
3247
+ // the channel's data plane mutex, which is more efficient (especially for
3248
+ // streaming calls).
3249
+ if (subchannel_call_ != nullptr) {
3250
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3251
+ gpr_log(GPR_INFO,
3252
+ "chand=%p lb_call=%p: starting batch on subchannel_call=%p",
3253
+ chand(), this, subchannel_call_.get());
3254
+ }
3255
+ subchannel_call_->StartTransportStreamOpBatch(batch);
3256
+ return;
3257
+ }
3258
+ // We do not yet have a subchannel call.
3259
+ //
3260
+ // If we've previously been cancelled, immediately fail any new batches.
3261
+ if (GPR_UNLIKELY(!cancel_error_.ok())) {
3262
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3263
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: failing batch with error: %s",
3264
+ chand(), this, StatusToString(cancel_error_).c_str());
3265
+ }
3266
+ // Note: This will release the call combiner.
3267
+ grpc_transport_stream_op_batch_finish_with_failure(batch, cancel_error_,
3268
+ call_combiner_);
3269
+ return;
3270
+ }
3271
+ // Handle cancellation.
3272
+ if (GPR_UNLIKELY(batch->cancel_stream)) {
3273
+ // Stash a copy of cancel_error in our call data, so that we can use
3274
+ // it for subsequent operations. This ensures that if the call is
3275
+ // cancelled before any batches are passed down (e.g., if the deadline
3276
+ // is in the past when the call starts), we can return the right
3277
+ // error to the caller when the first batch does get passed down.
3278
+ cancel_error_ = batch->payload->cancel_stream.cancel_error;
3279
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3280
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: recording cancel_error=%s",
3281
+ chand(), this, StatusToString(cancel_error_).c_str());
3282
+ }
3283
+ // Fail all pending batches.
3284
+ PendingBatchesFail(cancel_error_, NoYieldCallCombiner);
3285
+ // Note: This will release the call combiner.
3286
+ grpc_transport_stream_op_batch_finish_with_failure(batch, cancel_error_,
3287
+ call_combiner_);
3288
+ return;
3289
+ }
3290
+ // Add the batch to the pending list.
3291
+ PendingBatchesAdd(batch);
3292
+ // For batches containing a send_initial_metadata op, acquire the
3293
+ // channel's LB mutex to pick a subchannel.
3294
+ if (GPR_LIKELY(batch->send_initial_metadata)) {
3295
+ TryPick(/*was_queued=*/false);
3296
+ } else {
3297
+ // For all other batches, release the call combiner.
3298
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3299
+ gpr_log(GPR_INFO,
3300
+ "chand=%p lb_call=%p: saved batch, yielding call combiner",
3301
+ chand(), this);
3302
+ }
3303
+ GRPC_CALL_COMBINER_STOP(call_combiner_,
3304
+ "batch does not include send_initial_metadata");
3305
+ }
3306
+ }
3307
+
3308
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::RecvInitialMetadataReady(
3309
+ void* arg, grpc_error_handle error) {
3310
+ auto* self = static_cast<FilterBasedLoadBalancedCall*>(arg);
3311
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3312
+ gpr_log(GPR_INFO,
3313
+ "chand=%p lb_call=%p: got recv_initial_metadata_ready: error=%s",
3314
+ self->chand(), self, StatusToString(error).c_str());
3315
+ }
3316
+ if (error.ok()) {
3317
+ // recv_initial_metadata_flags is not populated for clients
3318
+ self->call_attempt_tracer()->RecordReceivedInitialMetadata(
3319
+ self->recv_initial_metadata_);
3320
+ auto* peer_string = self->recv_initial_metadata_->get_pointer(PeerString());
3321
+ if (peer_string != nullptr) self->peer_string_ = peer_string->Ref();
3322
+ }
3323
+ Closure::Run(DEBUG_LOCATION, self->original_recv_initial_metadata_ready_,
3324
+ error);
3325
+ }
3326
+
3327
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::
3328
+ RecvTrailingMetadataReady(void* arg, grpc_error_handle error) {
3329
+ auto* self = static_cast<FilterBasedLoadBalancedCall*>(arg);
3330
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3331
+ gpr_log(GPR_INFO,
3332
+ "chand=%p lb_call=%p: got recv_trailing_metadata_ready: error=%s "
3333
+ "call_attempt_tracer()=%p lb_subchannel_call_tracker_=%p "
3334
+ "failure_error_=%s",
3335
+ self->chand(), self, StatusToString(error).c_str(),
3336
+ self->call_attempt_tracer(), self->lb_subchannel_call_tracker(),
3337
+ StatusToString(self->failure_error_).c_str());
3338
+ }
3339
+ // Check if we have a tracer or an LB callback to invoke.
3340
+ if (self->call_attempt_tracer() != nullptr ||
3341
+ self->lb_subchannel_call_tracker() != nullptr) {
3342
+ // Get the call's status.
3343
+ absl::Status status;
3344
+ if (!error.ok()) {
3345
+ // Get status from error.
3346
+ grpc_status_code code;
3347
+ std::string message;
3348
+ grpc_error_get_status(error, self->deadline_, &code, &message,
3349
+ /*http_error=*/nullptr, /*error_string=*/nullptr);
3350
+ status = absl::Status(static_cast<absl::StatusCode>(code), message);
3351
+ } else {
3352
+ // Get status from headers.
3353
+ const auto& md = *self->recv_trailing_metadata_;
3354
+ grpc_status_code code =
3355
+ md.get(GrpcStatusMetadata()).value_or(GRPC_STATUS_UNKNOWN);
3356
+ if (code != GRPC_STATUS_OK) {
3357
+ absl::string_view message;
3358
+ if (const auto* grpc_message = md.get_pointer(GrpcMessageMetadata())) {
3359
+ message = grpc_message->as_string_view();
3360
+ }
3361
+ status = absl::Status(static_cast<absl::StatusCode>(code), message);
3362
+ }
3363
+ }
3364
+ absl::string_view peer_string;
3365
+ if (self->peer_string_.has_value()) {
3366
+ peer_string = self->peer_string_->as_string_view();
3367
+ }
3368
+ self->RecordCallCompletion(status, self->recv_trailing_metadata_,
3369
+ self->transport_stream_stats_, peer_string);
3370
+ }
3371
+ // Chain to original callback.
3372
+ if (!self->failure_error_.ok()) {
3373
+ error = self->failure_error_;
3374
+ self->failure_error_ = absl::OkStatus();
3375
+ }
3376
+ Closure::Run(DEBUG_LOCATION, self->original_recv_trailing_metadata_ready_,
3377
+ error);
3378
+ }
3379
+
3380
+ // A class to handle the call combiner cancellation callback for a
3381
+ // queued pick.
3382
+ // TODO(roth): When we implement hedging support, we won't be able to
3383
+ // register a call combiner cancellation closure for each LB pick,
3384
+ // because there may be multiple LB picks happening in parallel.
3385
+ // Instead, we will probably need to maintain a list in the CallData
3386
+ // object of pending LB picks to be cancelled when the closure runs.
3387
+ class ClientChannelFilter::FilterBasedLoadBalancedCall::LbQueuedCallCanceller {
3388
+ public:
3389
+ explicit LbQueuedCallCanceller(
3390
+ RefCountedPtr<FilterBasedLoadBalancedCall> lb_call)
3391
+ : lb_call_(std::move(lb_call)) {
3392
+ GRPC_CALL_STACK_REF(lb_call_->owning_call_, "LbQueuedCallCanceller");
3393
+ GRPC_CLOSURE_INIT(&closure_, &CancelLocked, this, nullptr);
3394
+ lb_call_->call_combiner_->SetNotifyOnCancel(&closure_);
3395
+ }
3396
+
3397
+ private:
3398
+ static void CancelLocked(void* arg, grpc_error_handle error) {
3399
+ auto* self = static_cast<LbQueuedCallCanceller*>(arg);
3400
+ auto* lb_call = self->lb_call_.get();
3401
+ auto* chand = lb_call->chand();
3402
+ {
3403
+ MutexLock lock(&chand->lb_mu_);
3404
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3405
+ gpr_log(GPR_INFO,
3406
+ "chand=%p lb_call=%p: cancelling queued pick: "
3407
+ "error=%s self=%p calld->pick_canceller=%p",
3408
+ chand, lb_call, StatusToString(error).c_str(), self,
3409
+ lb_call->lb_call_canceller_);
3410
+ }
3411
+ if (lb_call->lb_call_canceller_ == self && !error.ok()) {
3412
+ lb_call->Commit();
3413
+ // Remove pick from list of queued picks.
3414
+ lb_call->RemoveCallFromLbQueuedCallsLocked();
3415
+ // Remove from queued picks list.
3416
+ chand->lb_queued_calls_.erase(self->lb_call_);
3417
+ // Fail pending batches on the call.
3418
+ lb_call->PendingBatchesFail(error,
3419
+ YieldCallCombinerIfPendingBatchesFound);
3420
+ }
3421
+ }
3422
+ // Unref lb_call before unreffing the call stack, since unreffing
3423
+ // the call stack may destroy the arena in which lb_call is allocated.
3424
+ auto* owning_call = lb_call->owning_call_;
3425
+ self->lb_call_.reset();
3426
+ GRPC_CALL_STACK_UNREF(owning_call, "LbQueuedCallCanceller");
3427
+ delete self;
3428
+ }
3429
+
3430
+ RefCountedPtr<FilterBasedLoadBalancedCall> lb_call_;
3431
+ grpc_closure closure_;
3432
+ };
3433
+
3434
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::TryPick(
3435
+ bool was_queued) {
3436
+ auto result = PickSubchannel(was_queued);
3437
+ if (result.has_value()) {
3438
+ if (!result->ok()) {
3439
+ PendingBatchesFail(*result, YieldCallCombiner);
3440
+ return;
3441
+ }
3442
+ CreateSubchannelCall();
3443
+ }
3444
+ }
3445
+
3446
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::OnAddToQueueLocked() {
3447
+ // Register call combiner cancellation callback.
3448
+ lb_call_canceller_ =
3449
+ new LbQueuedCallCanceller(RefAsSubclass<FilterBasedLoadBalancedCall>());
3450
+ }
3451
+
3452
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::RetryPickLocked() {
3453
+ // Lame the call combiner canceller.
3454
+ lb_call_canceller_ = nullptr;
3455
+ // Do an async callback to resume call processing, so that we're not
3456
+ // doing it while holding the channel's LB mutex.
3457
+ // TODO(roth): We should really be using EventEngine::Run() here
3458
+ // instead of ExecCtx::Run(). Unfortunately, doing that seems to cause
3459
+ // a flaky TSAN failure for reasons that I do not fully understand.
3460
+ // However, given that we are working toward eliminating this code as
3461
+ // part of the promise conversion, it doesn't seem worth further
3462
+ // investigation right now.
3463
+ ExecCtx::Run(DEBUG_LOCATION, NewClosure([this](grpc_error_handle) {
3464
+ // If there are a lot of queued calls here, resuming them
3465
+ // all may cause us to stay inside C-core for a long period
3466
+ // of time. All of that work would be done using the same
3467
+ // ExecCtx instance and therefore the same cached value of
3468
+ // "now". The longer it takes to finish all of this work
3469
+ // and exit from C-core, the more stale the cached value of
3470
+ // "now" may become. This can cause problems whereby (e.g.)
3471
+ // we calculate a timer deadline based on the stale value,
3472
+ // which results in the timer firing too early. To avoid
3473
+ // this, we invalidate the cached value for each call we
3474
+ // process.
3475
+ ExecCtx::Get()->InvalidateNow();
3476
+ TryPick(/*was_queued=*/true);
3477
+ }),
3478
+ absl::OkStatus());
3479
+ }
3480
+
3481
+ void ClientChannelFilter::FilterBasedLoadBalancedCall::CreateSubchannelCall() {
3482
+ Slice* path = send_initial_metadata()->get_pointer(HttpPathMetadata());
3483
+ GPR_ASSERT(path != nullptr);
3484
+ SubchannelCall::Args call_args = {
3485
+ connected_subchannel()->Ref(), pollent_, path->Ref(), /*start_time=*/0,
3486
+ deadline_, arena_,
3487
+ // TODO(roth): When we implement hedging support, we will probably
3488
+ // need to use a separate call context for each subchannel call.
3489
+ call_context(), call_combiner_};
3490
+ grpc_error_handle error;
3491
+ subchannel_call_ = SubchannelCall::Create(std::move(call_args), &error);
3492
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3493
+ gpr_log(GPR_INFO,
3494
+ "chand=%p lb_call=%p: create subchannel_call=%p: error=%s", chand(),
3495
+ this, subchannel_call_.get(), StatusToString(error).c_str());
3496
+ }
3497
+ if (on_call_destruction_complete_ != nullptr) {
3498
+ subchannel_call_->SetAfterCallStackDestroy(on_call_destruction_complete_);
3499
+ on_call_destruction_complete_ = nullptr;
3500
+ }
3501
+ if (GPR_UNLIKELY(!error.ok())) {
3502
+ PendingBatchesFail(error, YieldCallCombiner);
3503
+ } else {
3504
+ PendingBatchesResume();
3505
+ }
3506
+ }
3507
+
3508
+ //
3509
+ // ClientChannelFilter::PromiseBasedLoadBalancedCall
3510
+ //
3511
+
3512
+ ClientChannelFilter::PromiseBasedLoadBalancedCall::PromiseBasedLoadBalancedCall(
3513
+ ClientChannelFilter* chand, absl::AnyInvocable<void()> on_commit,
3514
+ bool is_transparent_retry)
3515
+ : LoadBalancedCall(chand, GetContext<grpc_call_context_element>(),
3516
+ std::move(on_commit), is_transparent_retry) {}
3517
+
3518
+ ArenaPromise<ServerMetadataHandle>
3519
+ ClientChannelFilter::PromiseBasedLoadBalancedCall::MakeCallPromise(
3520
+ CallArgs call_args, OrphanablePtr<PromiseBasedLoadBalancedCall> lb_call) {
3521
+ pollent_ = NowOrNever(call_args.polling_entity->WaitAndCopy()).value();
3522
+ // Record ops in tracer.
3523
+ if (call_attempt_tracer() != nullptr) {
3524
+ call_attempt_tracer()->RecordSendInitialMetadata(
3525
+ call_args.client_initial_metadata.get());
3526
+ // TODO(ctiller): Find a way to do this without registering a no-op mapper.
3527
+ call_args.client_to_server_messages->InterceptAndMapWithHalfClose(
3528
+ [](MessageHandle message) { return message; }, // No-op.
3529
+ [this]() {
3530
+ // TODO(roth): Change CallTracer API to not pass metadata
3531
+ // batch to this method, since the batch is always empty.
3532
+ grpc_metadata_batch metadata(GetContext<Arena>());
3533
+ call_attempt_tracer()->RecordSendTrailingMetadata(&metadata);
3534
+ });
3535
+ }
3536
+ // Extract peer name from server initial metadata.
3537
+ call_args.server_initial_metadata->InterceptAndMap(
3538
+ [self = lb_call->RefAsSubclass<PromiseBasedLoadBalancedCall>()](
3539
+ ServerMetadataHandle metadata) {
3540
+ if (self->call_attempt_tracer() != nullptr) {
3541
+ self->call_attempt_tracer()->RecordReceivedInitialMetadata(
3542
+ metadata.get());
3543
+ }
3544
+ Slice* peer_string = metadata->get_pointer(PeerString());
3545
+ if (peer_string != nullptr) self->peer_string_ = peer_string->Ref();
3546
+ return metadata;
3547
+ });
3548
+ client_initial_metadata_ = std::move(call_args.client_initial_metadata);
3549
+ return OnCancel(
3550
+ Map(TrySeq(
3551
+ // LB pick.
3552
+ [this]() -> Poll<absl::Status> {
3553
+ auto result = PickSubchannel(was_queued_);
3554
+ if (GRPC_TRACE_FLAG_ENABLED(
3555
+ grpc_client_channel_lb_call_trace)) {
3556
+ gpr_log(GPR_INFO,
3557
+ "chand=%p lb_call=%p: %sPickSubchannel() returns %s",
3558
+ chand(), this,
3559
+ GetContext<Activity>()->DebugTag().c_str(),
3560
+ result.has_value() ? result->ToString().c_str()
3561
+ : "Pending");
3562
+ }
3563
+ if (result == absl::nullopt) return Pending{};
3564
+ return std::move(*result);
3565
+ },
3566
+ [this, call_args = std::move(call_args)]() mutable
3567
+ -> ArenaPromise<ServerMetadataHandle> {
3568
+ call_args.client_initial_metadata =
3569
+ std::move(client_initial_metadata_);
3570
+ return connected_subchannel()->MakeCallPromise(
3571
+ std::move(call_args));
3572
+ }),
3573
+ // Record call completion.
3574
+ [this](ServerMetadataHandle metadata) {
3575
+ if (call_attempt_tracer() != nullptr ||
3576
+ lb_subchannel_call_tracker() != nullptr) {
3577
+ absl::Status status;
3578
+ grpc_status_code code = metadata->get(GrpcStatusMetadata())
3579
+ .value_or(GRPC_STATUS_UNKNOWN);
3580
+ if (code != GRPC_STATUS_OK) {
3581
+ absl::string_view message;
3582
+ if (const auto* grpc_message =
3583
+ metadata->get_pointer(GrpcMessageMetadata())) {
3584
+ message = grpc_message->as_string_view();
3585
+ }
3586
+ status =
3587
+ absl::Status(static_cast<absl::StatusCode>(code), message);
3588
+ }
3589
+ RecordCallCompletion(status, metadata.get(),
3590
+ &GetContext<CallContext>()
3591
+ ->call_stats()
3592
+ ->transport_stream_stats,
3593
+ peer_string_.as_string_view());
3594
+ }
3595
+ RecordLatency();
3596
+ return metadata;
3597
+ }),
3598
+ [lb_call = std::move(lb_call)]() {
3599
+ // If the waker is pending, then we need to remove ourself from
3600
+ // the list of queued LB calls.
3601
+ if (!lb_call->waker_.is_unwakeable()) {
3602
+ MutexLock lock(&lb_call->chand()->lb_mu_);
3603
+ lb_call->Commit();
3604
+ // Remove pick from list of queued picks.
3605
+ lb_call->RemoveCallFromLbQueuedCallsLocked();
3606
+ // Remove from queued picks list.
3607
+ lb_call->chand()->lb_queued_calls_.erase(lb_call.get());
3608
+ }
3609
+ // TODO(ctiller): We don't have access to the call's actual status
3610
+ // here, so we just assume CANCELLED. We could change this to use
3611
+ // CallFinalization instead of OnCancel() so that we can get the
3612
+ // actual status. But we should also have access to the trailing
3613
+ // metadata, which we don't have in either case. Ultimately, we
3614
+ // need a better story for code that needs to run at the end of a
3615
+ // call in both cancellation and non-cancellation cases that needs
3616
+ // access to server trailing metadata and the call's real status.
3617
+ if (lb_call->call_attempt_tracer() != nullptr) {
3618
+ lb_call->call_attempt_tracer()->RecordCancel(
3619
+ absl::CancelledError("call cancelled"));
3620
+ }
3621
+ if (lb_call->call_attempt_tracer() != nullptr ||
3622
+ lb_call->lb_subchannel_call_tracker() != nullptr) {
3623
+ // If we were cancelled without recording call completion, then
3624
+ // record call completion here, as best we can. We assume status
3625
+ // CANCELLED in this case.
3626
+ lb_call->RecordCallCompletion(absl::CancelledError("call cancelled"),
3627
+ nullptr, nullptr, "");
3628
+ }
3629
+ });
3630
+ }
3631
+
3632
+ Arena* ClientChannelFilter::PromiseBasedLoadBalancedCall::arena() const {
3633
+ return GetContext<Arena>();
3634
+ }
3635
+
3636
+ grpc_metadata_batch*
3637
+ ClientChannelFilter::PromiseBasedLoadBalancedCall::send_initial_metadata()
3638
+ const {
3639
+ return client_initial_metadata_.get();
3640
+ }
3641
+
3642
+ void ClientChannelFilter::PromiseBasedLoadBalancedCall::OnAddToQueueLocked() {
3643
+ waker_ = GetContext<Activity>()->MakeNonOwningWaker();
3644
+ was_queued_ = true;
3645
+ }
3646
+
3647
+ void ClientChannelFilter::PromiseBasedLoadBalancedCall::RetryPickLocked() {
3648
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3649
+ gpr_log(GPR_INFO, "chand=%p lb_call=%p: RetryPickLocked()", chand(), this);
3650
+ }
3651
+ waker_.WakeupAsync();
3652
+ }
3653
+
3654
+ } // namespace grpc_core