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
@@ -1,3612 +0,0 @@
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/ext/filters/client_channel/client_channel.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/ext/filters/client_channel/backend_metric.h"
53
- #include "src/core/ext/filters/client_channel/backup_poller.h"
54
- #include "src/core/ext/filters/client_channel/client_channel_channelz.h"
55
- #include "src/core/ext/filters/client_channel/client_channel_internal.h"
56
- #include "src/core/ext/filters/client_channel/client_channel_service_config.h"
57
- #include "src/core/ext/filters/client_channel/config_selector.h"
58
- #include "src/core/ext/filters/client_channel/dynamic_filters.h"
59
- #include "src/core/ext/filters/client_channel/global_subchannel_pool.h"
60
- #include "src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h"
61
- #include "src/core/ext/filters/client_channel/local_subchannel_pool.h"
62
- #include "src/core/ext/filters/client_channel/retry_filter.h"
63
- #include "src/core/ext/filters/client_channel/subchannel.h"
64
- #include "src/core/ext/filters/client_channel/subchannel_interface_internal.h"
65
- #include "src/core/ext/filters/deadline/deadline_filter.h"
66
- #include "src/core/lib/channel/channel_args.h"
67
- #include "src/core/lib/channel/channel_stack.h"
68
- #include "src/core/lib/channel/channel_trace.h"
69
- #include "src/core/lib/channel/status_util.h"
70
- #include "src/core/lib/config/core_configuration.h"
71
- #include "src/core/lib/debug/trace.h"
72
- #include "src/core/lib/experiments/experiments.h"
73
- #include "src/core/lib/gpr/useful.h"
74
- #include "src/core/lib/gprpp/crash.h"
75
- #include "src/core/lib/gprpp/debug_location.h"
76
- #include "src/core/lib/gprpp/manual_constructor.h"
77
- #include "src/core/lib/gprpp/status_helper.h"
78
- #include "src/core/lib/gprpp/sync.h"
79
- #include "src/core/lib/gprpp/unique_type_name.h"
80
- #include "src/core/lib/gprpp/work_serializer.h"
81
- #include "src/core/lib/handshaker/proxy_mapper_registry.h"
82
- #include "src/core/lib/iomgr/exec_ctx.h"
83
- #include "src/core/lib/iomgr/polling_entity.h"
84
- #include "src/core/lib/iomgr/pollset_set.h"
85
- #include "src/core/lib/json/json.h"
86
- #include "src/core/lib/load_balancing/lb_policy_registry.h"
87
- #include "src/core/lib/load_balancing/subchannel_interface.h"
88
- #include "src/core/lib/promise/cancel_callback.h"
89
- #include "src/core/lib/promise/context.h"
90
- #include "src/core/lib/promise/latch.h"
91
- #include "src/core/lib/promise/map.h"
92
- #include "src/core/lib/promise/pipe.h"
93
- #include "src/core/lib/promise/poll.h"
94
- #include "src/core/lib/promise/promise.h"
95
- #include "src/core/lib/promise/try_seq.h"
96
- #include "src/core/lib/resolver/resolver_registry.h"
97
- #include "src/core/lib/resolver/server_address.h"
98
- #include "src/core/lib/security/credentials/credentials.h"
99
- #include "src/core/lib/service_config/service_config_call_data.h"
100
- #include "src/core/lib/service_config/service_config_impl.h"
101
- #include "src/core/lib/slice/slice.h"
102
- #include "src/core/lib/slice/slice_internal.h"
103
- #include "src/core/lib/surface/call.h"
104
- #include "src/core/lib/surface/channel.h"
105
- #include "src/core/lib/transport/connectivity_state.h"
106
- #include "src/core/lib/transport/error_utils.h"
107
- #include "src/core/lib/transport/metadata_batch.h"
108
-
109
- //
110
- // Client channel filter
111
- //
112
-
113
- namespace grpc_core {
114
-
115
- using internal::ClientChannelMethodParsedConfig;
116
-
117
- TraceFlag grpc_client_channel_trace(false, "client_channel");
118
- TraceFlag grpc_client_channel_call_trace(false, "client_channel_call");
119
- TraceFlag grpc_client_channel_lb_call_trace(false, "client_channel_lb_call");
120
-
121
- //
122
- // ClientChannel::CallData definition
123
- //
124
-
125
- class ClientChannel::CallData {
126
- public:
127
- // Removes the call from the channel's list of calls queued
128
- // for name resolution.
129
- void RemoveCallFromResolverQueuedCallsLocked()
130
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_);
131
-
132
- // Called by the channel for each queued call when a new resolution
133
- // result becomes available.
134
- virtual void RetryCheckResolutionLocked()
135
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_) = 0;
136
-
137
- RefCountedPtr<DynamicFilters> dynamic_filters() const {
138
- return dynamic_filters_;
139
- }
140
-
141
- protected:
142
- CallData() = default;
143
- virtual ~CallData() = default;
144
-
145
- // Checks whether a resolver result is available. The following
146
- // outcomes are possible:
147
- // - No resolver result is available yet. The call will be queued and
148
- // absl::nullopt will be returned. Later, when a resolver result
149
- // becomes available, RetryCheckResolutionLocked() will be called.
150
- // - The resolver has returned a transient failure. If the call is
151
- // not wait_for_ready, a non-OK status will be returned. (If the
152
- // call *is* wait_for_ready, it will be queued instead.)
153
- // - There is a valid resolver result. The service config will be
154
- // stored in the call context and an OK status will be returned.
155
- absl::optional<absl::Status> CheckResolution(bool was_queued);
156
-
157
- private:
158
- // Accessors for data stored in the subclass.
159
- virtual ClientChannel* chand() const = 0;
160
- virtual Arena* arena() const = 0;
161
- virtual grpc_polling_entity* pollent() = 0;
162
- virtual grpc_metadata_batch* send_initial_metadata() = 0;
163
- virtual grpc_call_context_element* call_context() const = 0;
164
-
165
- // Helper function for CheckResolution(). Returns true if the call
166
- // can continue (i.e., there is a valid resolution result, or there is
167
- // an invalid resolution result but the call is not wait_for_ready).
168
- bool CheckResolutionLocked(
169
- absl::StatusOr<RefCountedPtr<ConfigSelector>>* config_selector)
170
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_);
171
-
172
- // Adds the call to the channel's list of calls queued for name resolution.
173
- void AddCallToResolverQueuedCallsLocked()
174
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_);
175
-
176
- // Called when adding the call to the resolver queue.
177
- virtual void OnAddToQueueLocked()
178
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_) {}
179
-
180
- // Applies service config to the call. Must be invoked once we know
181
- // that the resolver has returned results to the channel.
182
- // If an error is returned, the error indicates the status with which
183
- // the call should be failed.
184
- grpc_error_handle ApplyServiceConfigToCallLocked(
185
- const absl::StatusOr<RefCountedPtr<ConfigSelector>>& config_selector);
186
-
187
- // Called to reset the deadline based on the service config obtained
188
- // from the resolver.
189
- virtual void ResetDeadline(Duration timeout) = 0;
190
-
191
- RefCountedPtr<DynamicFilters> dynamic_filters_;
192
- };
193
-
194
- class ClientChannel::FilterBasedCallData : public ClientChannel::CallData {
195
- public:
196
- static grpc_error_handle Init(grpc_call_element* elem,
197
- const grpc_call_element_args* args);
198
- static void Destroy(grpc_call_element* elem,
199
- const grpc_call_final_info* final_info,
200
- grpc_closure* then_schedule_closure);
201
- static void StartTransportStreamOpBatch(
202
- grpc_call_element* elem, grpc_transport_stream_op_batch* batch);
203
- static void SetPollent(grpc_call_element* elem, grpc_polling_entity* pollent);
204
-
205
- private:
206
- class ResolverQueuedCallCanceller;
207
-
208
- FilterBasedCallData(grpc_call_element* elem,
209
- const grpc_call_element_args& args);
210
- ~FilterBasedCallData() override;
211
-
212
- grpc_call_element* elem() const { return deadline_state_.elem; }
213
- grpc_call_stack* owning_call() const { return deadline_state_.call_stack; }
214
- CallCombiner* call_combiner() const { return deadline_state_.call_combiner; }
215
-
216
- ClientChannel* chand() const override {
217
- return static_cast<ClientChannel*>(elem()->channel_data);
218
- }
219
- Arena* arena() const override { return deadline_state_.arena; }
220
- grpc_polling_entity* pollent() override { return pollent_; }
221
- grpc_metadata_batch* send_initial_metadata() override {
222
- return pending_batches_[0]
223
- ->payload->send_initial_metadata.send_initial_metadata;
224
- }
225
- grpc_call_context_element* call_context() const override {
226
- return call_context_;
227
- }
228
-
229
- // Returns the index into pending_batches_ to be used for batch.
230
- static size_t GetBatchIndex(grpc_transport_stream_op_batch* batch);
231
- void PendingBatchesAdd(grpc_transport_stream_op_batch* batch);
232
- static void FailPendingBatchInCallCombiner(void* arg,
233
- grpc_error_handle error);
234
- // A predicate type and some useful implementations for PendingBatchesFail().
235
- typedef bool (*YieldCallCombinerPredicate)(
236
- const CallCombinerClosureList& closures);
237
- static bool YieldCallCombiner(const CallCombinerClosureList& /*closures*/) {
238
- return true;
239
- }
240
- static bool NoYieldCallCombiner(const CallCombinerClosureList& /*closures*/) {
241
- return false;
242
- }
243
- static bool YieldCallCombinerIfPendingBatchesFound(
244
- const CallCombinerClosureList& closures) {
245
- return closures.size() > 0;
246
- }
247
- // Fails all pending batches.
248
- // If yield_call_combiner_predicate returns true, assumes responsibility for
249
- // yielding the call combiner.
250
- void PendingBatchesFail(
251
- grpc_error_handle error,
252
- YieldCallCombinerPredicate yield_call_combiner_predicate);
253
- static void ResumePendingBatchInCallCombiner(void* arg,
254
- grpc_error_handle ignored);
255
- // Resumes all pending batches on dynamic_call_.
256
- void PendingBatchesResume();
257
-
258
- // Called to check for a resolution result, both when the call is
259
- // initially started and when it is queued and the channel gets a new
260
- // resolution result.
261
- void TryCheckResolution(bool was_queued);
262
-
263
- void OnAddToQueueLocked() override
264
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_);
265
-
266
- void RetryCheckResolutionLocked() override
267
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_);
268
-
269
- void ResetDeadline(Duration timeout) override {
270
- const Timestamp per_method_deadline =
271
- Timestamp::FromCycleCounterRoundUp(call_start_time_) + timeout;
272
- if (per_method_deadline < deadline_) {
273
- deadline_ = per_method_deadline;
274
- grpc_deadline_state_reset(&deadline_state_, deadline_);
275
- }
276
- }
277
-
278
- void CreateDynamicCall();
279
-
280
- static void RecvTrailingMetadataReadyForConfigSelectorCommitCallback(
281
- void* arg, grpc_error_handle error);
282
-
283
- grpc_slice path_; // Request path.
284
- grpc_call_context_element* call_context_;
285
- gpr_cycle_counter call_start_time_;
286
- Timestamp deadline_;
287
-
288
- // State for handling deadlines.
289
- grpc_deadline_state deadline_state_;
290
-
291
- grpc_polling_entity* pollent_ = nullptr;
292
-
293
- // Accessed while holding ClientChannel::resolution_mu_.
294
- ResolverQueuedCallCanceller* resolver_call_canceller_
295
- ABSL_GUARDED_BY(&ClientChannel::resolution_mu_) = nullptr;
296
-
297
- grpc_closure* original_recv_trailing_metadata_ready_ = nullptr;
298
- grpc_closure recv_trailing_metadata_ready_;
299
-
300
- RefCountedPtr<DynamicFilters::Call> dynamic_call_;
301
-
302
- // Batches are added to this list when received from above.
303
- // They are removed when we are done handling the batch (i.e., when
304
- // either we have invoked all of the batch's callbacks or we have
305
- // passed the batch down to the LB call and are not intercepting any of
306
- // its callbacks).
307
- grpc_transport_stream_op_batch* pending_batches_[MAX_PENDING_BATCHES] = {};
308
-
309
- // Set when we get a cancel_stream op.
310
- grpc_error_handle cancel_error_;
311
- };
312
-
313
- class ClientChannel::PromiseBasedCallData : public ClientChannel::CallData {
314
- public:
315
- explicit PromiseBasedCallData(ClientChannel* chand) : chand_(chand) {}
316
-
317
- ArenaPromise<absl::StatusOr<CallArgs>> MakeNameResolutionPromise(
318
- CallArgs call_args) {
319
- pollent_ = NowOrNever(call_args.polling_entity->WaitAndCopy()).value();
320
- client_initial_metadata_ = std::move(call_args.client_initial_metadata);
321
- // If we're still in IDLE, we need to start resolving.
322
- if (GPR_UNLIKELY(chand_->CheckConnectivityState(false) ==
323
- GRPC_CHANNEL_IDLE)) {
324
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
325
- gpr_log(GPR_INFO, "chand=%p calld=%p: %striggering exit idle", chand_,
326
- this, Activity::current()->DebugTag().c_str());
327
- }
328
- // Bounce into the control plane work serializer to start resolving.
329
- GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ExitIdle");
330
- chand_->work_serializer_->Run(
331
- [chand = chand_]()
332
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
333
- chand->CheckConnectivityState(/*try_to_connect=*/true);
334
- GRPC_CHANNEL_STACK_UNREF(chand->owning_stack_, "ExitIdle");
335
- },
336
- DEBUG_LOCATION);
337
- }
338
- return [this, call_args = std::move(
339
- call_args)]() mutable -> Poll<absl::StatusOr<CallArgs>> {
340
- auto result = CheckResolution(was_queued_);
341
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
342
- gpr_log(GPR_INFO, "chand=%p calld=%p: %sCheckResolution returns %s",
343
- chand_, this, Activity::current()->DebugTag().c_str(),
344
- result.has_value() ? result->ToString().c_str() : "Pending");
345
- }
346
- if (!result.has_value()) return Pending{};
347
- if (!result->ok()) return *result;
348
- call_args.client_initial_metadata = std::move(client_initial_metadata_);
349
- return std::move(call_args);
350
- };
351
- }
352
-
353
- private:
354
- ClientChannel* chand() const override { return chand_; }
355
- Arena* arena() const override { return GetContext<Arena>(); }
356
- grpc_polling_entity* pollent() override { return &pollent_; }
357
- grpc_metadata_batch* send_initial_metadata() override {
358
- return client_initial_metadata_.get();
359
- }
360
- grpc_call_context_element* call_context() const override {
361
- return GetContext<grpc_call_context_element>();
362
- }
363
-
364
- void OnAddToQueueLocked() override
365
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_) {
366
- waker_ = Activity::current()->MakeNonOwningWaker();
367
- was_queued_ = true;
368
- }
369
-
370
- void RetryCheckResolutionLocked()
371
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(&ClientChannel::resolution_mu_) override {
372
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
373
- gpr_log(GPR_INFO, "chand=%p calld=%p: RetryCheckResolutionLocked(): %s",
374
- chand_, this, waker_.ActivityDebugTag().c_str());
375
- }
376
- waker_.WakeupAsync();
377
- }
378
-
379
- void ResetDeadline(Duration timeout) override {
380
- CallContext* call_context = GetContext<CallContext>();
381
- const Timestamp per_method_deadline =
382
- Timestamp::FromCycleCounterRoundUp(call_context->call_start_time()) +
383
- timeout;
384
- call_context->UpdateDeadline(per_method_deadline);
385
- }
386
-
387
- ClientChannel* chand_;
388
- grpc_polling_entity pollent_;
389
- ClientMetadataHandle client_initial_metadata_;
390
- bool was_queued_ = false;
391
- Waker waker_ ABSL_GUARDED_BY(&ClientChannel::resolution_mu_);
392
- };
393
-
394
- //
395
- // Filter vtable
396
- //
397
-
398
- const grpc_channel_filter ClientChannel::kFilterVtableWithPromises = {
399
- ClientChannel::FilterBasedCallData::StartTransportStreamOpBatch,
400
- ClientChannel::MakeCallPromise,
401
- ClientChannel::StartTransportOp,
402
- sizeof(ClientChannel::FilterBasedCallData),
403
- ClientChannel::FilterBasedCallData::Init,
404
- ClientChannel::FilterBasedCallData::SetPollent,
405
- ClientChannel::FilterBasedCallData::Destroy,
406
- sizeof(ClientChannel),
407
- ClientChannel::Init,
408
- grpc_channel_stack_no_post_init,
409
- ClientChannel::Destroy,
410
- ClientChannel::GetChannelInfo,
411
- "client-channel",
412
- };
413
-
414
- const grpc_channel_filter ClientChannel::kFilterVtableWithoutPromises = {
415
- ClientChannel::FilterBasedCallData::StartTransportStreamOpBatch,
416
- nullptr,
417
- ClientChannel::StartTransportOp,
418
- sizeof(ClientChannel::FilterBasedCallData),
419
- ClientChannel::FilterBasedCallData::Init,
420
- ClientChannel::FilterBasedCallData::SetPollent,
421
- ClientChannel::FilterBasedCallData::Destroy,
422
- sizeof(ClientChannel),
423
- ClientChannel::Init,
424
- grpc_channel_stack_no_post_init,
425
- ClientChannel::Destroy,
426
- ClientChannel::GetChannelInfo,
427
- "client-channel",
428
- };
429
-
430
- //
431
- // dynamic termination filter
432
- //
433
-
434
- namespace {
435
-
436
- ClientChannelServiceConfigCallData* GetServiceConfigCallData(
437
- grpc_call_context_element* context) {
438
- return static_cast<ClientChannelServiceConfigCallData*>(
439
- context[GRPC_CONTEXT_SERVICE_CONFIG_CALL_DATA].value);
440
- }
441
-
442
- class DynamicTerminationFilter {
443
- public:
444
- class CallData;
445
-
446
- static const grpc_channel_filter kFilterVtable;
447
-
448
- static grpc_error_handle Init(grpc_channel_element* elem,
449
- grpc_channel_element_args* args) {
450
- GPR_ASSERT(args->is_last);
451
- GPR_ASSERT(elem->filter == &kFilterVtable);
452
- new (elem->channel_data) DynamicTerminationFilter(args->channel_args);
453
- return absl::OkStatus();
454
- }
455
-
456
- static void Destroy(grpc_channel_element* elem) {
457
- auto* chand = static_cast<DynamicTerminationFilter*>(elem->channel_data);
458
- chand->~DynamicTerminationFilter();
459
- }
460
-
461
- // Will never be called.
462
- static void StartTransportOp(grpc_channel_element* /*elem*/,
463
- grpc_transport_op* /*op*/) {}
464
- static void GetChannelInfo(grpc_channel_element* /*elem*/,
465
- const grpc_channel_info* /*info*/) {}
466
-
467
- static ArenaPromise<ServerMetadataHandle> MakeCallPromise(
468
- grpc_channel_element* elem, CallArgs call_args, NextPromiseFactory) {
469
- auto* chand = static_cast<DynamicTerminationFilter*>(elem->channel_data);
470
- return chand->chand_->CreateLoadBalancedCallPromise(
471
- std::move(call_args),
472
- []() {
473
- auto* service_config_call_data =
474
- GetServiceConfigCallData(GetContext<grpc_call_context_element>());
475
- service_config_call_data->Commit();
476
- },
477
- /*is_transparent_retry=*/false);
478
- }
479
-
480
- private:
481
- explicit DynamicTerminationFilter(const ChannelArgs& args)
482
- : chand_(args.GetObject<ClientChannel>()) {}
483
-
484
- ClientChannel* chand_;
485
- };
486
-
487
- class DynamicTerminationFilter::CallData {
488
- public:
489
- static grpc_error_handle Init(grpc_call_element* elem,
490
- const grpc_call_element_args* args) {
491
- new (elem->call_data) CallData(*args);
492
- return absl::OkStatus();
493
- }
494
-
495
- static void Destroy(grpc_call_element* elem,
496
- const grpc_call_final_info* /*final_info*/,
497
- grpc_closure* then_schedule_closure) {
498
- auto* calld = static_cast<CallData*>(elem->call_data);
499
- RefCountedPtr<SubchannelCall> subchannel_call;
500
- if (GPR_LIKELY(calld->lb_call_ != nullptr)) {
501
- subchannel_call = calld->lb_call_->subchannel_call();
502
- }
503
- calld->~CallData();
504
- if (GPR_LIKELY(subchannel_call != nullptr)) {
505
- subchannel_call->SetAfterCallStackDestroy(then_schedule_closure);
506
- } else {
507
- // TODO(yashkt) : This can potentially be a Closure::Run
508
- ExecCtx::Run(DEBUG_LOCATION, then_schedule_closure, absl::OkStatus());
509
- }
510
- }
511
-
512
- static void StartTransportStreamOpBatch(
513
- grpc_call_element* elem, grpc_transport_stream_op_batch* batch) {
514
- auto* calld = static_cast<CallData*>(elem->call_data);
515
- calld->lb_call_->StartTransportStreamOpBatch(batch);
516
- }
517
-
518
- static void SetPollent(grpc_call_element* elem,
519
- grpc_polling_entity* pollent) {
520
- auto* calld = static_cast<CallData*>(elem->call_data);
521
- auto* chand = static_cast<DynamicTerminationFilter*>(elem->channel_data);
522
- ClientChannel* client_channel = chand->chand_;
523
- grpc_call_element_args args = {calld->owning_call_, nullptr,
524
- calld->call_context_, calld->path_,
525
- /*start_time=*/0, calld->deadline_,
526
- calld->arena_, calld->call_combiner_};
527
- auto* service_config_call_data =
528
- GetServiceConfigCallData(calld->call_context_);
529
- calld->lb_call_ = client_channel->CreateLoadBalancedCall(
530
- args, pollent, nullptr,
531
- [service_config_call_data]() { service_config_call_data->Commit(); },
532
- /*is_transparent_retry=*/false);
533
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
534
- gpr_log(GPR_INFO,
535
- "chand=%p dynamic_termination_calld=%p: create lb_call=%p", chand,
536
- client_channel, calld->lb_call_.get());
537
- }
538
- }
539
-
540
- private:
541
- explicit CallData(const grpc_call_element_args& args)
542
- : path_(CSliceRef(args.path)),
543
- deadline_(args.deadline),
544
- arena_(args.arena),
545
- owning_call_(args.call_stack),
546
- call_combiner_(args.call_combiner),
547
- call_context_(args.context) {}
548
-
549
- ~CallData() { CSliceUnref(path_); }
550
-
551
- grpc_slice path_; // Request path.
552
- Timestamp deadline_;
553
- Arena* arena_;
554
- grpc_call_stack* owning_call_;
555
- CallCombiner* call_combiner_;
556
- grpc_call_context_element* call_context_;
557
-
558
- OrphanablePtr<ClientChannel::FilterBasedLoadBalancedCall> lb_call_;
559
- };
560
-
561
- const grpc_channel_filter DynamicTerminationFilter::kFilterVtable = {
562
- DynamicTerminationFilter::CallData::StartTransportStreamOpBatch,
563
- DynamicTerminationFilter::MakeCallPromise,
564
- DynamicTerminationFilter::StartTransportOp,
565
- sizeof(DynamicTerminationFilter::CallData),
566
- DynamicTerminationFilter::CallData::Init,
567
- DynamicTerminationFilter::CallData::SetPollent,
568
- DynamicTerminationFilter::CallData::Destroy,
569
- sizeof(DynamicTerminationFilter),
570
- DynamicTerminationFilter::Init,
571
- grpc_channel_stack_no_post_init,
572
- DynamicTerminationFilter::Destroy,
573
- DynamicTerminationFilter::GetChannelInfo,
574
- "dynamic_filter_termination",
575
- };
576
-
577
- } // namespace
578
-
579
- //
580
- // ClientChannel::ResolverResultHandler
581
- //
582
-
583
- class ClientChannel::ResolverResultHandler : public Resolver::ResultHandler {
584
- public:
585
- explicit ResolverResultHandler(ClientChannel* chand) : chand_(chand) {
586
- GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ResolverResultHandler");
587
- }
588
-
589
- ~ResolverResultHandler() override {
590
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
591
- gpr_log(GPR_INFO, "chand=%p: resolver shutdown complete", chand_);
592
- }
593
- GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_, "ResolverResultHandler");
594
- }
595
-
596
- void ReportResult(Resolver::Result result) override
597
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
598
- chand_->OnResolverResultChangedLocked(std::move(result));
599
- }
600
-
601
- private:
602
- ClientChannel* chand_;
603
- };
604
-
605
- //
606
- // ClientChannel::SubchannelWrapper
607
- //
608
-
609
- // This class is a wrapper for Subchannel that hides details of the
610
- // channel's implementation (such as the connected subchannel) from the
611
- // LB policy API.
612
- //
613
- // Note that no synchronization is needed here, because even if the
614
- // underlying subchannel is shared between channels, this wrapper will only
615
- // be used within one channel, so it will always be synchronized by the
616
- // control plane work_serializer.
617
- class ClientChannel::SubchannelWrapper : public SubchannelInterface {
618
- public:
619
- SubchannelWrapper(ClientChannel* chand, RefCountedPtr<Subchannel> subchannel)
620
- : SubchannelInterface(GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)
621
- ? "SubchannelWrapper"
622
- : nullptr),
623
- chand_(chand),
624
- subchannel_(std::move(subchannel)) {
625
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
626
- gpr_log(GPR_INFO,
627
- "chand=%p: creating subchannel wrapper %p for subchannel %p",
628
- chand, this, subchannel_.get());
629
- }
630
- GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "SubchannelWrapper");
631
- GPR_DEBUG_ASSERT(chand_->work_serializer_->RunningInWorkSerializer());
632
- if (chand_->channelz_node_ != nullptr) {
633
- auto* subchannel_node = subchannel_->channelz_node();
634
- if (subchannel_node != nullptr) {
635
- auto it = chand_->subchannel_refcount_map_.find(subchannel_.get());
636
- if (it == chand_->subchannel_refcount_map_.end()) {
637
- chand_->channelz_node_->AddChildSubchannel(subchannel_node->uuid());
638
- it = chand_->subchannel_refcount_map_.emplace(subchannel_.get(), 0)
639
- .first;
640
- }
641
- ++it->second;
642
- }
643
- }
644
- chand_->subchannel_wrappers_.insert(this);
645
- }
646
-
647
- ~SubchannelWrapper() override {
648
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
649
- gpr_log(GPR_INFO,
650
- "chand=%p: destroying subchannel wrapper %p for subchannel %p",
651
- chand_, this, subchannel_.get());
652
- }
653
- if (!IsWorkSerializerDispatchEnabled()) {
654
- chand_->subchannel_wrappers_.erase(this);
655
- if (chand_->channelz_node_ != nullptr) {
656
- auto* subchannel_node = subchannel_->channelz_node();
657
- if (subchannel_node != nullptr) {
658
- auto it = chand_->subchannel_refcount_map_.find(subchannel_.get());
659
- GPR_ASSERT(it != chand_->subchannel_refcount_map_.end());
660
- --it->second;
661
- if (it->second == 0) {
662
- chand_->channelz_node_->RemoveChildSubchannel(
663
- subchannel_node->uuid());
664
- chand_->subchannel_refcount_map_.erase(it);
665
- }
666
- }
667
- }
668
- }
669
- GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_, "SubchannelWrapper");
670
- }
671
-
672
- void Orphan() override {
673
- if (!IsWorkSerializerDispatchEnabled()) return;
674
- // Make sure we clean up the channel's subchannel maps inside the
675
- // WorkSerializer.
676
- // Ref held by callback.
677
- WeakRef(DEBUG_LOCATION, "subchannel map cleanup").release();
678
- chand_->work_serializer_->Run(
679
- [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
680
- chand_->subchannel_wrappers_.erase(this);
681
- if (chand_->channelz_node_ != nullptr) {
682
- auto* subchannel_node = subchannel_->channelz_node();
683
- if (subchannel_node != nullptr) {
684
- auto it =
685
- chand_->subchannel_refcount_map_.find(subchannel_.get());
686
- GPR_ASSERT(it != chand_->subchannel_refcount_map_.end());
687
- --it->second;
688
- if (it->second == 0) {
689
- chand_->channelz_node_->RemoveChildSubchannel(
690
- subchannel_node->uuid());
691
- chand_->subchannel_refcount_map_.erase(it);
692
- }
693
- }
694
- }
695
- WeakUnref(DEBUG_LOCATION, "subchannel map cleanup");
696
- },
697
- DEBUG_LOCATION);
698
- }
699
-
700
- void WatchConnectivityState(
701
- std::unique_ptr<ConnectivityStateWatcherInterface> watcher) override
702
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
703
- auto& watcher_wrapper = watcher_map_[watcher.get()];
704
- GPR_ASSERT(watcher_wrapper == nullptr);
705
- watcher_wrapper = new WatcherWrapper(std::move(watcher),
706
- Ref(DEBUG_LOCATION, "WatcherWrapper"));
707
- subchannel_->WatchConnectivityState(
708
- RefCountedPtr<Subchannel::ConnectivityStateWatcherInterface>(
709
- watcher_wrapper));
710
- }
711
-
712
- void CancelConnectivityStateWatch(ConnectivityStateWatcherInterface* watcher)
713
- override ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
714
- auto it = watcher_map_.find(watcher);
715
- GPR_ASSERT(it != watcher_map_.end());
716
- subchannel_->CancelConnectivityStateWatch(it->second);
717
- watcher_map_.erase(it);
718
- }
719
-
720
- RefCountedPtr<ConnectedSubchannel> connected_subchannel() const {
721
- return subchannel_->connected_subchannel();
722
- }
723
-
724
- void RequestConnection() override { subchannel_->RequestConnection(); }
725
-
726
- void ResetBackoff() override { subchannel_->ResetBackoff(); }
727
-
728
- void AddDataWatcher(std::unique_ptr<DataWatcherInterface> watcher) override
729
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
730
- static_cast<InternalSubchannelDataWatcherInterface*>(watcher.get())
731
- ->SetSubchannel(subchannel_.get());
732
- GPR_ASSERT(data_watchers_.insert(std::move(watcher)).second);
733
- }
734
-
735
- void CancelDataWatcher(DataWatcherInterface* watcher) override
736
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
737
- auto it = data_watchers_.find(watcher);
738
- if (it != data_watchers_.end()) data_watchers_.erase(it);
739
- }
740
-
741
- void ThrottleKeepaliveTime(int new_keepalive_time) {
742
- subchannel_->ThrottleKeepaliveTime(new_keepalive_time);
743
- }
744
-
745
- private:
746
- // This wrapper provides a bridge between the internal Subchannel API
747
- // and the SubchannelInterface API that we expose to LB policies.
748
- // It implements Subchannel::ConnectivityStateWatcherInterface and wraps
749
- // the instance of SubchannelInterface::ConnectivityStateWatcherInterface
750
- // that was passed in by the LB policy. We pass an instance of this
751
- // class to the underlying Subchannel, and when we get updates from
752
- // the subchannel, we pass those on to the wrapped watcher to return
753
- // the update to the LB policy.
754
- //
755
- // This class handles things like hopping into the WorkSerializer
756
- // before passing notifications to the LB policy and propagating
757
- // keepalive information betwen subchannels.
758
- class WatcherWrapper : public Subchannel::ConnectivityStateWatcherInterface {
759
- public:
760
- WatcherWrapper(
761
- std::unique_ptr<SubchannelInterface::ConnectivityStateWatcherInterface>
762
- watcher,
763
- RefCountedPtr<SubchannelWrapper> parent)
764
- : watcher_(std::move(watcher)), parent_(std::move(parent)) {}
765
-
766
- ~WatcherWrapper() override {
767
- if (!IsWorkSerializerDispatchEnabled()) {
768
- auto* parent = parent_.release(); // ref owned by lambda
769
- parent->chand_->work_serializer_->Run(
770
- [parent]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
771
- *parent_->chand_->work_serializer_) {
772
- parent->Unref(DEBUG_LOCATION, "WatcherWrapper");
773
- },
774
- DEBUG_LOCATION);
775
- return;
776
- }
777
- parent_.reset(DEBUG_LOCATION, "WatcherWrapper");
778
- }
779
-
780
- void OnConnectivityStateChange(
781
- RefCountedPtr<ConnectivityStateWatcherInterface> self,
782
- grpc_connectivity_state state, const absl::Status& status) override {
783
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
784
- gpr_log(GPR_INFO,
785
- "chand=%p: connectivity change for subchannel wrapper %p "
786
- "subchannel %p; hopping into work_serializer",
787
- parent_->chand_, parent_.get(), parent_->subchannel_.get());
788
- }
789
- self.release(); // Held by callback.
790
- parent_->chand_->work_serializer_->Run(
791
- [this, state, status]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
792
- *parent_->chand_->work_serializer_) {
793
- ApplyUpdateInControlPlaneWorkSerializer(state, status);
794
- Unref();
795
- },
796
- DEBUG_LOCATION);
797
- }
798
-
799
- grpc_pollset_set* interested_parties() override {
800
- return watcher_->interested_parties();
801
- }
802
-
803
- private:
804
- void ApplyUpdateInControlPlaneWorkSerializer(grpc_connectivity_state state,
805
- const absl::Status& status)
806
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*parent_->chand_->work_serializer_) {
807
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
808
- gpr_log(GPR_INFO,
809
- "chand=%p: processing connectivity change in work serializer "
810
- "for subchannel wrapper %p subchannel %p watcher=%p "
811
- "state=%s status=%s",
812
- parent_->chand_, parent_.get(), parent_->subchannel_.get(),
813
- watcher_.get(), ConnectivityStateName(state),
814
- status.ToString().c_str());
815
- }
816
- absl::optional<absl::Cord> keepalive_throttling =
817
- status.GetPayload(kKeepaliveThrottlingKey);
818
- if (keepalive_throttling.has_value()) {
819
- int new_keepalive_time = -1;
820
- if (absl::SimpleAtoi(std::string(keepalive_throttling.value()),
821
- &new_keepalive_time)) {
822
- if (new_keepalive_time > parent_->chand_->keepalive_time_) {
823
- parent_->chand_->keepalive_time_ = new_keepalive_time;
824
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
825
- gpr_log(GPR_INFO, "chand=%p: throttling keepalive time to %d",
826
- parent_->chand_, parent_->chand_->keepalive_time_);
827
- }
828
- // Propagate the new keepalive time to all subchannels. This is so
829
- // that new transports created by any subchannel (and not just the
830
- // subchannel that received the GOAWAY), use the new keepalive time.
831
- for (auto* subchannel_wrapper :
832
- parent_->chand_->subchannel_wrappers_) {
833
- subchannel_wrapper->ThrottleKeepaliveTime(new_keepalive_time);
834
- }
835
- }
836
- } else {
837
- gpr_log(GPR_ERROR, "chand=%p: Illegal keepalive throttling value %s",
838
- parent_->chand_,
839
- std::string(keepalive_throttling.value()).c_str());
840
- }
841
- }
842
- // Propagate status only in state TF.
843
- // We specifically want to avoid propagating the status for
844
- // state IDLE that the real subchannel gave us only for the
845
- // purpose of keepalive propagation.
846
- watcher_->OnConnectivityStateChange(
847
- state,
848
- state == GRPC_CHANNEL_TRANSIENT_FAILURE ? status : absl::OkStatus());
849
- }
850
-
851
- std::unique_ptr<SubchannelInterface::ConnectivityStateWatcherInterface>
852
- watcher_;
853
- RefCountedPtr<SubchannelWrapper> parent_;
854
- };
855
-
856
- // A heterogenous lookup comparator for data watchers that allows
857
- // unique_ptr keys to be looked up as raw pointers.
858
- struct DataWatcherLessThan {
859
- using is_transparent = void;
860
- bool operator()(const std::unique_ptr<DataWatcherInterface>& p1,
861
- const std::unique_ptr<DataWatcherInterface>& p2) const {
862
- return p1 < p2;
863
- }
864
- bool operator()(const std::unique_ptr<DataWatcherInterface>& p1,
865
- const DataWatcherInterface* p2) const {
866
- return p1.get() < p2;
867
- }
868
- bool operator()(const DataWatcherInterface* p1,
869
- const std::unique_ptr<DataWatcherInterface>& p2) const {
870
- return p1 < p2.get();
871
- }
872
- };
873
-
874
- ClientChannel* chand_;
875
- RefCountedPtr<Subchannel> subchannel_;
876
- // Maps from the address of the watcher passed to us by the LB policy
877
- // to the address of the WrapperWatcher that we passed to the underlying
878
- // subchannel. This is needed so that when the LB policy calls
879
- // CancelConnectivityStateWatch() with its watcher, we know the
880
- // corresponding WrapperWatcher to cancel on the underlying subchannel.
881
- std::map<ConnectivityStateWatcherInterface*, WatcherWrapper*> watcher_map_
882
- ABSL_GUARDED_BY(*chand_->work_serializer_);
883
- std::set<std::unique_ptr<DataWatcherInterface>, DataWatcherLessThan>
884
- data_watchers_ ABSL_GUARDED_BY(*chand_->work_serializer_);
885
- };
886
-
887
- //
888
- // ClientChannel::ExternalConnectivityWatcher
889
- //
890
-
891
- ClientChannel::ExternalConnectivityWatcher::ExternalConnectivityWatcher(
892
- ClientChannel* chand, grpc_polling_entity pollent,
893
- grpc_connectivity_state* state, grpc_closure* on_complete,
894
- grpc_closure* watcher_timer_init)
895
- : chand_(chand),
896
- pollent_(pollent),
897
- initial_state_(*state),
898
- state_(state),
899
- on_complete_(on_complete),
900
- watcher_timer_init_(watcher_timer_init) {
901
- grpc_polling_entity_add_to_pollset_set(&pollent_,
902
- chand_->interested_parties_);
903
- GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ExternalConnectivityWatcher");
904
- {
905
- MutexLock lock(&chand_->external_watchers_mu_);
906
- // Will be deleted when the watch is complete.
907
- GPR_ASSERT(chand->external_watchers_[on_complete] == nullptr);
908
- // Store a ref to the watcher in the external_watchers_ map.
909
- chand->external_watchers_[on_complete] =
910
- Ref(DEBUG_LOCATION, "AddWatcherToExternalWatchersMapLocked");
911
- }
912
- // Pass the ref from creating the object to Start().
913
- chand_->work_serializer_->Run(
914
- [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
915
- // The ref is passed to AddWatcherLocked().
916
- AddWatcherLocked();
917
- },
918
- DEBUG_LOCATION);
919
- }
920
-
921
- ClientChannel::ExternalConnectivityWatcher::~ExternalConnectivityWatcher() {
922
- grpc_polling_entity_del_from_pollset_set(&pollent_,
923
- chand_->interested_parties_);
924
- GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_,
925
- "ExternalConnectivityWatcher");
926
- }
927
-
928
- void ClientChannel::ExternalConnectivityWatcher::
929
- RemoveWatcherFromExternalWatchersMap(ClientChannel* chand,
930
- grpc_closure* on_complete,
931
- bool cancel) {
932
- RefCountedPtr<ExternalConnectivityWatcher> watcher;
933
- {
934
- MutexLock lock(&chand->external_watchers_mu_);
935
- auto it = chand->external_watchers_.find(on_complete);
936
- if (it != chand->external_watchers_.end()) {
937
- watcher = std::move(it->second);
938
- chand->external_watchers_.erase(it);
939
- }
940
- }
941
- // watcher->Cancel() will hop into the WorkSerializer, so we have to unlock
942
- // the mutex before calling it.
943
- if (watcher != nullptr && cancel) watcher->Cancel();
944
- }
945
-
946
- void ClientChannel::ExternalConnectivityWatcher::Notify(
947
- grpc_connectivity_state state, const absl::Status& /* status */) {
948
- bool done = false;
949
- if (!done_.compare_exchange_strong(done, true, std::memory_order_relaxed,
950
- std::memory_order_relaxed)) {
951
- return; // Already done.
952
- }
953
- // Remove external watcher.
954
- ExternalConnectivityWatcher::RemoveWatcherFromExternalWatchersMap(
955
- chand_, on_complete_, /*cancel=*/false);
956
- // Report new state to the user.
957
- *state_ = state;
958
- ExecCtx::Run(DEBUG_LOCATION, on_complete_, absl::OkStatus());
959
- // Hop back into the work_serializer to clean up.
960
- // Not needed in state SHUTDOWN, because the tracker will
961
- // automatically remove all watchers in that case.
962
- // Note: The callback takes a ref in case the ref inside the state tracker
963
- // gets removed before the callback runs via a SHUTDOWN notification.
964
- if (state != GRPC_CHANNEL_SHUTDOWN) {
965
- Ref(DEBUG_LOCATION, "RemoveWatcherLocked()").release();
966
- chand_->work_serializer_->Run(
967
- [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
968
- RemoveWatcherLocked();
969
- Unref(DEBUG_LOCATION, "RemoveWatcherLocked()");
970
- },
971
- DEBUG_LOCATION);
972
- }
973
- }
974
-
975
- void ClientChannel::ExternalConnectivityWatcher::Cancel() {
976
- bool done = false;
977
- if (!done_.compare_exchange_strong(done, true, std::memory_order_relaxed,
978
- std::memory_order_relaxed)) {
979
- return; // Already done.
980
- }
981
- ExecCtx::Run(DEBUG_LOCATION, on_complete_, absl::CancelledError());
982
- // Hop back into the work_serializer to clean up.
983
- // Note: The callback takes a ref in case the ref inside the state tracker
984
- // gets removed before the callback runs via a SHUTDOWN notification.
985
- Ref(DEBUG_LOCATION, "RemoveWatcherLocked()").release();
986
- chand_->work_serializer_->Run(
987
- [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
988
- RemoveWatcherLocked();
989
- Unref(DEBUG_LOCATION, "RemoveWatcherLocked()");
990
- },
991
- DEBUG_LOCATION);
992
- }
993
-
994
- void ClientChannel::ExternalConnectivityWatcher::AddWatcherLocked() {
995
- Closure::Run(DEBUG_LOCATION, watcher_timer_init_, absl::OkStatus());
996
- // Add new watcher. Pass the ref of the object from creation to OrphanablePtr.
997
- chand_->state_tracker_.AddWatcher(
998
- initial_state_, OrphanablePtr<ConnectivityStateWatcherInterface>(this));
999
- }
1000
-
1001
- void ClientChannel::ExternalConnectivityWatcher::RemoveWatcherLocked() {
1002
- chand_->state_tracker_.RemoveWatcher(this);
1003
- }
1004
-
1005
- //
1006
- // ClientChannel::ConnectivityWatcherAdder
1007
- //
1008
-
1009
- class ClientChannel::ConnectivityWatcherAdder {
1010
- public:
1011
- ConnectivityWatcherAdder(
1012
- ClientChannel* chand, grpc_connectivity_state initial_state,
1013
- OrphanablePtr<AsyncConnectivityStateWatcherInterface> watcher)
1014
- : chand_(chand),
1015
- initial_state_(initial_state),
1016
- watcher_(std::move(watcher)) {
1017
- GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ConnectivityWatcherAdder");
1018
- chand_->work_serializer_->Run(
1019
- [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1020
- AddWatcherLocked();
1021
- },
1022
- DEBUG_LOCATION);
1023
- }
1024
-
1025
- private:
1026
- void AddWatcherLocked()
1027
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1028
- chand_->state_tracker_.AddWatcher(initial_state_, std::move(watcher_));
1029
- GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_, "ConnectivityWatcherAdder");
1030
- delete this;
1031
- }
1032
-
1033
- ClientChannel* chand_;
1034
- grpc_connectivity_state initial_state_;
1035
- OrphanablePtr<AsyncConnectivityStateWatcherInterface> watcher_;
1036
- };
1037
-
1038
- //
1039
- // ClientChannel::ConnectivityWatcherRemover
1040
- //
1041
-
1042
- class ClientChannel::ConnectivityWatcherRemover {
1043
- public:
1044
- ConnectivityWatcherRemover(ClientChannel* chand,
1045
- AsyncConnectivityStateWatcherInterface* watcher)
1046
- : chand_(chand), watcher_(watcher) {
1047
- GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ConnectivityWatcherRemover");
1048
- chand_->work_serializer_->Run(
1049
- [this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1050
- RemoveWatcherLocked();
1051
- },
1052
- DEBUG_LOCATION);
1053
- }
1054
-
1055
- private:
1056
- void RemoveWatcherLocked()
1057
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1058
- chand_->state_tracker_.RemoveWatcher(watcher_);
1059
- GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_,
1060
- "ConnectivityWatcherRemover");
1061
- delete this;
1062
- }
1063
-
1064
- ClientChannel* chand_;
1065
- AsyncConnectivityStateWatcherInterface* watcher_;
1066
- };
1067
-
1068
- //
1069
- // ClientChannel::ClientChannelControlHelper
1070
- //
1071
-
1072
- class ClientChannel::ClientChannelControlHelper
1073
- : public LoadBalancingPolicy::ChannelControlHelper {
1074
- public:
1075
- explicit ClientChannelControlHelper(ClientChannel* chand) : chand_(chand) {
1076
- GRPC_CHANNEL_STACK_REF(chand_->owning_stack_, "ClientChannelControlHelper");
1077
- }
1078
-
1079
- ~ClientChannelControlHelper() override {
1080
- GRPC_CHANNEL_STACK_UNREF(chand_->owning_stack_,
1081
- "ClientChannelControlHelper");
1082
- }
1083
-
1084
- RefCountedPtr<SubchannelInterface> CreateSubchannel(
1085
- ServerAddress address, const ChannelArgs& args) override
1086
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1087
- if (chand_->resolver_ == nullptr) return nullptr; // Shutting down.
1088
- ChannelArgs subchannel_args = ClientChannel::MakeSubchannelArgs(
1089
- args, address.args(), chand_->subchannel_pool_,
1090
- chand_->default_authority_);
1091
- // Create subchannel.
1092
- RefCountedPtr<Subchannel> subchannel =
1093
- chand_->client_channel_factory_->CreateSubchannel(address.address(),
1094
- subchannel_args);
1095
- if (subchannel == nullptr) return nullptr;
1096
- // Make sure the subchannel has updated keepalive time.
1097
- subchannel->ThrottleKeepaliveTime(chand_->keepalive_time_);
1098
- // Create and return wrapper for the subchannel.
1099
- return MakeRefCounted<SubchannelWrapper>(chand_, std::move(subchannel));
1100
- }
1101
-
1102
- void UpdateState(grpc_connectivity_state state, const absl::Status& status,
1103
- RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker)
1104
- override ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1105
- if (chand_->resolver_ == nullptr) return; // Shutting down.
1106
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1107
- const char* extra = chand_->disconnect_error_.ok()
1108
- ? ""
1109
- : " (ignoring -- channel shutting down)";
1110
- gpr_log(GPR_INFO, "chand=%p: update: state=%s status=(%s) picker=%p%s",
1111
- chand_, ConnectivityStateName(state), status.ToString().c_str(),
1112
- picker.get(), extra);
1113
- }
1114
- // Do update only if not shutting down.
1115
- if (chand_->disconnect_error_.ok()) {
1116
- chand_->UpdateStateAndPickerLocked(state, status, "helper",
1117
- std::move(picker));
1118
- }
1119
- }
1120
-
1121
- void RequestReresolution() override
1122
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1123
- if (chand_->resolver_ == nullptr) return; // Shutting down.
1124
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1125
- gpr_log(GPR_INFO, "chand=%p: started name re-resolving", chand_);
1126
- }
1127
- chand_->resolver_->RequestReresolutionLocked();
1128
- }
1129
-
1130
- absl::string_view GetAuthority() override {
1131
- return chand_->default_authority_;
1132
- }
1133
-
1134
- RefCountedPtr<grpc_channel_credentials> GetChannelCredentials() override {
1135
- return chand_->channel_args_.GetObject<grpc_channel_credentials>()
1136
- ->duplicate_without_call_credentials();
1137
- }
1138
-
1139
- RefCountedPtr<grpc_channel_credentials> GetUnsafeChannelCredentials()
1140
- override {
1141
- return chand_->channel_args_.GetObject<grpc_channel_credentials>()->Ref();
1142
- }
1143
-
1144
- grpc_event_engine::experimental::EventEngine* GetEventEngine() override {
1145
- return chand_->owning_stack_->EventEngine();
1146
- }
1147
-
1148
- void AddTraceEvent(TraceSeverity severity, absl::string_view message) override
1149
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand_->work_serializer_) {
1150
- if (chand_->resolver_ == nullptr) return; // Shutting down.
1151
- if (chand_->channelz_node_ != nullptr) {
1152
- chand_->channelz_node_->AddTraceEvent(
1153
- ConvertSeverityEnum(severity),
1154
- grpc_slice_from_copied_buffer(message.data(), message.size()));
1155
- }
1156
- }
1157
-
1158
- private:
1159
- static channelz::ChannelTrace::Severity ConvertSeverityEnum(
1160
- TraceSeverity severity) {
1161
- if (severity == TRACE_INFO) return channelz::ChannelTrace::Info;
1162
- if (severity == TRACE_WARNING) return channelz::ChannelTrace::Warning;
1163
- return channelz::ChannelTrace::Error;
1164
- }
1165
-
1166
- ClientChannel* chand_;
1167
- };
1168
-
1169
- //
1170
- // ClientChannel implementation
1171
- //
1172
-
1173
- ClientChannel* ClientChannel::GetFromChannel(Channel* channel) {
1174
- grpc_channel_element* elem =
1175
- grpc_channel_stack_last_element(channel->channel_stack());
1176
- if (elem->filter != &kFilterVtableWithPromises &&
1177
- elem->filter != &kFilterVtableWithoutPromises) {
1178
- return nullptr;
1179
- }
1180
- return static_cast<ClientChannel*>(elem->channel_data);
1181
- }
1182
-
1183
- grpc_error_handle ClientChannel::Init(grpc_channel_element* elem,
1184
- grpc_channel_element_args* args) {
1185
- GPR_ASSERT(args->is_last);
1186
- GPR_ASSERT(elem->filter == &kFilterVtableWithPromises ||
1187
- elem->filter == &kFilterVtableWithoutPromises);
1188
- grpc_error_handle error;
1189
- new (elem->channel_data) ClientChannel(args, &error);
1190
- return error;
1191
- }
1192
-
1193
- void ClientChannel::Destroy(grpc_channel_element* elem) {
1194
- ClientChannel* chand = static_cast<ClientChannel*>(elem->channel_data);
1195
- chand->~ClientChannel();
1196
- }
1197
-
1198
- namespace {
1199
-
1200
- RefCountedPtr<SubchannelPoolInterface> GetSubchannelPool(
1201
- const ChannelArgs& args) {
1202
- if (args.GetBool(GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL).value_or(false)) {
1203
- return MakeRefCounted<LocalSubchannelPool>();
1204
- }
1205
- return GlobalSubchannelPool::instance();
1206
- }
1207
-
1208
- } // namespace
1209
-
1210
- ClientChannel::ClientChannel(grpc_channel_element_args* args,
1211
- grpc_error_handle* error)
1212
- : channel_args_(args->channel_args),
1213
- deadline_checking_enabled_(grpc_deadline_checking_enabled(channel_args_)),
1214
- owning_stack_(args->channel_stack),
1215
- client_channel_factory_(channel_args_.GetObject<ClientChannelFactory>()),
1216
- channelz_node_(channel_args_.GetObject<channelz::ChannelNode>()),
1217
- interested_parties_(grpc_pollset_set_create()),
1218
- service_config_parser_index_(
1219
- internal::ClientChannelServiceConfigParser::ParserIndex()),
1220
- work_serializer_(
1221
- std::make_shared<WorkSerializer>(*args->channel_stack->event_engine)),
1222
- state_tracker_("client_channel", GRPC_CHANNEL_IDLE),
1223
- subchannel_pool_(GetSubchannelPool(channel_args_)) {
1224
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1225
- gpr_log(GPR_INFO, "chand=%p: creating client_channel for channel stack %p",
1226
- this, owning_stack_);
1227
- }
1228
- // Start backup polling.
1229
- grpc_client_channel_start_backup_polling(interested_parties_);
1230
- // Check client channel factory.
1231
- if (client_channel_factory_ == nullptr) {
1232
- *error = GRPC_ERROR_CREATE(
1233
- "Missing client channel factory in args for client channel filter");
1234
- return;
1235
- }
1236
- // Get default service config. If none is specified via the client API,
1237
- // we use an empty config.
1238
- absl::optional<absl::string_view> service_config_json =
1239
- channel_args_.GetString(GRPC_ARG_SERVICE_CONFIG);
1240
- if (!service_config_json.has_value()) service_config_json = "{}";
1241
- *error = absl::OkStatus();
1242
- auto service_config =
1243
- ServiceConfigImpl::Create(channel_args_, *service_config_json);
1244
- if (!service_config.ok()) {
1245
- *error = absl_status_to_grpc_error(service_config.status());
1246
- return;
1247
- }
1248
- default_service_config_ = std::move(*service_config);
1249
- // Get URI to resolve, using proxy mapper if needed.
1250
- absl::optional<std::string> server_uri =
1251
- channel_args_.GetOwnedString(GRPC_ARG_SERVER_URI);
1252
- if (!server_uri.has_value()) {
1253
- *error = GRPC_ERROR_CREATE(
1254
- "target URI channel arg missing or wrong type in client channel "
1255
- "filter");
1256
- return;
1257
- }
1258
- uri_to_resolve_ = CoreConfiguration::Get()
1259
- .proxy_mapper_registry()
1260
- .MapName(*server_uri, &channel_args_)
1261
- .value_or(*server_uri);
1262
- // Make sure the URI to resolve is valid, so that we know that
1263
- // resolver creation will succeed later.
1264
- if (!CoreConfiguration::Get().resolver_registry().IsValidTarget(
1265
- uri_to_resolve_)) {
1266
- *error = GRPC_ERROR_CREATE(
1267
- absl::StrCat("the target uri is not valid: ", uri_to_resolve_));
1268
- return;
1269
- }
1270
- // Strip out service config channel arg, so that it doesn't affect
1271
- // subchannel uniqueness when the args flow down to that layer.
1272
- channel_args_ = channel_args_.Remove(GRPC_ARG_SERVICE_CONFIG);
1273
- // Set initial keepalive time.
1274
- auto keepalive_arg = channel_args_.GetInt(GRPC_ARG_KEEPALIVE_TIME_MS);
1275
- if (keepalive_arg.has_value()) {
1276
- keepalive_time_ = Clamp(*keepalive_arg, 1, INT_MAX);
1277
- } else {
1278
- keepalive_time_ = -1; // unset
1279
- }
1280
- // Set default authority.
1281
- absl::optional<std::string> default_authority =
1282
- channel_args_.GetOwnedString(GRPC_ARG_DEFAULT_AUTHORITY);
1283
- if (!default_authority.has_value()) {
1284
- default_authority_ =
1285
- CoreConfiguration::Get().resolver_registry().GetDefaultAuthority(
1286
- *server_uri);
1287
- } else {
1288
- default_authority_ = std::move(*default_authority);
1289
- }
1290
- // Success.
1291
- *error = absl::OkStatus();
1292
- }
1293
-
1294
- ClientChannel::~ClientChannel() {
1295
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1296
- gpr_log(GPR_INFO, "chand=%p: destroying channel", this);
1297
- }
1298
- DestroyResolverAndLbPolicyLocked();
1299
- // Stop backup polling.
1300
- grpc_client_channel_stop_backup_polling(interested_parties_);
1301
- grpc_pollset_set_destroy(interested_parties_);
1302
- }
1303
-
1304
- ArenaPromise<ServerMetadataHandle> ClientChannel::MakeCallPromise(
1305
- grpc_channel_element* elem, CallArgs call_args, NextPromiseFactory) {
1306
- auto* chand = static_cast<ClientChannel*>(elem->channel_data);
1307
- // TODO(roth): Is this the right lifetime story for calld?
1308
- auto* calld = GetContext<Arena>()->ManagedNew<PromiseBasedCallData>(chand);
1309
- return TrySeq(
1310
- // Name resolution.
1311
- calld->MakeNameResolutionPromise(std::move(call_args)),
1312
- // Dynamic filter stack.
1313
- [calld](CallArgs call_args) mutable {
1314
- return calld->dynamic_filters()->channel_stack()->MakeClientCallPromise(
1315
- std::move(call_args));
1316
- });
1317
- }
1318
-
1319
- OrphanablePtr<ClientChannel::FilterBasedLoadBalancedCall>
1320
- ClientChannel::CreateLoadBalancedCall(
1321
- const grpc_call_element_args& args, grpc_polling_entity* pollent,
1322
- grpc_closure* on_call_destruction_complete,
1323
- absl::AnyInvocable<void()> on_commit, bool is_transparent_retry) {
1324
- return OrphanablePtr<FilterBasedLoadBalancedCall>(
1325
- args.arena->New<FilterBasedLoadBalancedCall>(
1326
- this, args, pollent, on_call_destruction_complete,
1327
- std::move(on_commit), is_transparent_retry));
1328
- }
1329
-
1330
- ArenaPromise<ServerMetadataHandle> ClientChannel::CreateLoadBalancedCallPromise(
1331
- CallArgs call_args, absl::AnyInvocable<void()> on_commit,
1332
- bool is_transparent_retry) {
1333
- OrphanablePtr<PromiseBasedLoadBalancedCall> lb_call(
1334
- GetContext<Arena>()->New<PromiseBasedLoadBalancedCall>(
1335
- this, std::move(on_commit), is_transparent_retry));
1336
- auto* call_ptr = lb_call.get();
1337
- return call_ptr->MakeCallPromise(std::move(call_args), std::move(lb_call));
1338
- }
1339
-
1340
- ChannelArgs ClientChannel::MakeSubchannelArgs(
1341
- const ChannelArgs& channel_args, const ChannelArgs& address_args,
1342
- const RefCountedPtr<SubchannelPoolInterface>& subchannel_pool,
1343
- const std::string& channel_default_authority) {
1344
- // Note that we start with the channel-level args and then apply the
1345
- // per-address args, so that if a value is present in both, the one
1346
- // in the channel-level args is used. This is particularly important
1347
- // for the GRPC_ARG_DEFAULT_AUTHORITY arg, which we want to allow
1348
- // resolvers to set on a per-address basis only if the application
1349
- // did not explicitly set it at the channel level.
1350
- return channel_args.UnionWith(address_args)
1351
- .SetObject(subchannel_pool)
1352
- // If we haven't already set the default authority arg (i.e., it
1353
- // was not explicitly set by the application nor overridden by
1354
- // the resolver), add it from the channel's default.
1355
- .SetIfUnset(GRPC_ARG_DEFAULT_AUTHORITY, channel_default_authority)
1356
- // Remove channel args that should not affect subchannel
1357
- // uniqueness.
1358
- .Remove(GRPC_ARG_HEALTH_CHECK_SERVICE_NAME)
1359
- .Remove(GRPC_ARG_INHIBIT_HEALTH_CHECKING)
1360
- .Remove(GRPC_ARG_CHANNELZ_CHANNEL_NODE)
1361
- // Remove all keys with the no-subchannel prefix.
1362
- .RemoveAllKeysWithPrefix(GRPC_ARG_NO_SUBCHANNEL_PREFIX);
1363
- }
1364
-
1365
- void ClientChannel::ReprocessQueuedResolverCalls() {
1366
- for (CallData* calld : resolver_queued_calls_) {
1367
- calld->RemoveCallFromResolverQueuedCallsLocked();
1368
- calld->RetryCheckResolutionLocked();
1369
- }
1370
- resolver_queued_calls_.clear();
1371
- }
1372
-
1373
- namespace {
1374
-
1375
- RefCountedPtr<LoadBalancingPolicy::Config> ChooseLbPolicy(
1376
- const Resolver::Result& resolver_result,
1377
- const internal::ClientChannelGlobalParsedConfig* parsed_service_config) {
1378
- // Prefer the LB policy config found in the service config.
1379
- if (parsed_service_config->parsed_lb_config() != nullptr) {
1380
- return parsed_service_config->parsed_lb_config();
1381
- }
1382
- // Try the deprecated LB policy name from the service config.
1383
- // If not, try the setting from channel args.
1384
- absl::optional<absl::string_view> policy_name;
1385
- if (!parsed_service_config->parsed_deprecated_lb_policy().empty()) {
1386
- policy_name = parsed_service_config->parsed_deprecated_lb_policy();
1387
- } else {
1388
- policy_name = resolver_result.args.GetString(GRPC_ARG_LB_POLICY_NAME);
1389
- bool requires_config = false;
1390
- if (policy_name.has_value() &&
1391
- (!CoreConfiguration::Get()
1392
- .lb_policy_registry()
1393
- .LoadBalancingPolicyExists(*policy_name, &requires_config) ||
1394
- requires_config)) {
1395
- if (requires_config) {
1396
- gpr_log(GPR_ERROR,
1397
- "LB policy: %s passed through channel_args must not "
1398
- "require a config. Using pick_first instead.",
1399
- std::string(*policy_name).c_str());
1400
- } else {
1401
- gpr_log(GPR_ERROR,
1402
- "LB policy: %s passed through channel_args does not exist. "
1403
- "Using pick_first instead.",
1404
- std::string(*policy_name).c_str());
1405
- }
1406
- policy_name = "pick_first";
1407
- }
1408
- }
1409
- // Use pick_first if nothing was specified and we didn't select grpclb
1410
- // above.
1411
- if (!policy_name.has_value()) policy_name = "pick_first";
1412
- // Now that we have the policy name, construct an empty config for it.
1413
- Json config_json = Json::FromArray({Json::FromObject({
1414
- {std::string(*policy_name), Json::FromObject({})},
1415
- })});
1416
- auto lb_policy_config =
1417
- CoreConfiguration::Get().lb_policy_registry().ParseLoadBalancingConfig(
1418
- config_json);
1419
- // The policy name came from one of three places:
1420
- // - The deprecated loadBalancingPolicy field in the service config,
1421
- // in which case the code in ClientChannelServiceConfigParser
1422
- // already verified that the policy does not require a config.
1423
- // - One of the hard-coded values here, all of which are known to not
1424
- // require a config.
1425
- // - A channel arg, in which case we check that the specified policy exists
1426
- // and accepts an empty config. If not, we revert to using pick_first
1427
- // lb_policy
1428
- GPR_ASSERT(lb_policy_config.ok());
1429
- return std::move(*lb_policy_config);
1430
- }
1431
-
1432
- } // namespace
1433
-
1434
- void ClientChannel::OnResolverResultChangedLocked(Resolver::Result result) {
1435
- // Handle race conditions.
1436
- if (resolver_ == nullptr) return;
1437
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1438
- gpr_log(GPR_INFO, "chand=%p: got resolver result", this);
1439
- }
1440
- // Grab resolver result health callback.
1441
- auto resolver_callback = std::move(result.result_health_callback);
1442
- absl::Status resolver_result_status;
1443
- // We only want to trace the address resolution in the follow cases:
1444
- // (a) Address resolution resulted in service config change.
1445
- // (b) Address resolution that causes number of backends to go from
1446
- // zero to non-zero.
1447
- // (c) Address resolution that causes number of backends to go from
1448
- // non-zero to zero.
1449
- // (d) Address resolution that causes a new LB policy to be created.
1450
- //
1451
- // We track a list of strings to eventually be concatenated and traced.
1452
- std::vector<const char*> trace_strings;
1453
- const bool resolution_contains_addresses =
1454
- result.addresses.ok() && !result.addresses->empty();
1455
- if (!resolution_contains_addresses &&
1456
- previous_resolution_contained_addresses_) {
1457
- trace_strings.push_back("Address list became empty");
1458
- } else if (resolution_contains_addresses &&
1459
- !previous_resolution_contained_addresses_) {
1460
- trace_strings.push_back("Address list became non-empty");
1461
- }
1462
- previous_resolution_contained_addresses_ = resolution_contains_addresses;
1463
- std::string service_config_error_string_storage;
1464
- if (!result.service_config.ok()) {
1465
- service_config_error_string_storage =
1466
- result.service_config.status().ToString();
1467
- trace_strings.push_back(service_config_error_string_storage.c_str());
1468
- }
1469
- // Choose the service config.
1470
- RefCountedPtr<ServiceConfig> service_config;
1471
- RefCountedPtr<ConfigSelector> config_selector;
1472
- if (!result.service_config.ok()) {
1473
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1474
- gpr_log(GPR_INFO, "chand=%p: resolver returned service config error: %s",
1475
- this, result.service_config.status().ToString().c_str());
1476
- }
1477
- // If the service config was invalid, then fallback to the
1478
- // previously returned service config.
1479
- if (saved_service_config_ != nullptr) {
1480
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1481
- gpr_log(GPR_INFO,
1482
- "chand=%p: resolver returned invalid service config. "
1483
- "Continuing to use previous service config.",
1484
- this);
1485
- }
1486
- service_config = saved_service_config_;
1487
- config_selector = saved_config_selector_;
1488
- } else {
1489
- // We received a service config error and we don't have a
1490
- // previous service config to fall back to. Put the channel into
1491
- // TRANSIENT_FAILURE.
1492
- OnResolverErrorLocked(result.service_config.status());
1493
- trace_strings.push_back("no valid service config");
1494
- resolver_result_status =
1495
- absl::UnavailableError("no valid service config");
1496
- }
1497
- } else if (*result.service_config == nullptr) {
1498
- // Resolver did not return any service config.
1499
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1500
- gpr_log(GPR_INFO,
1501
- "chand=%p: resolver returned no service config. Using default "
1502
- "service config for channel.",
1503
- this);
1504
- }
1505
- service_config = default_service_config_;
1506
- } else {
1507
- // Use ServiceConfig and ConfigSelector returned by resolver.
1508
- service_config = std::move(*result.service_config);
1509
- config_selector = result.args.GetObjectRef<ConfigSelector>();
1510
- }
1511
- // Note: The only case in which service_config is null here is if the resolver
1512
- // returned a service config error and we don't have a previous service
1513
- // config to fall back to.
1514
- if (service_config != nullptr) {
1515
- // Extract global config for client channel.
1516
- const internal::ClientChannelGlobalParsedConfig* parsed_service_config =
1517
- static_cast<const internal::ClientChannelGlobalParsedConfig*>(
1518
- service_config->GetGlobalParsedConfig(
1519
- service_config_parser_index_));
1520
- // Choose LB policy config.
1521
- RefCountedPtr<LoadBalancingPolicy::Config> lb_policy_config =
1522
- ChooseLbPolicy(result, parsed_service_config);
1523
- // Check if the ServiceConfig has changed.
1524
- const bool service_config_changed =
1525
- saved_service_config_ == nullptr ||
1526
- service_config->json_string() != saved_service_config_->json_string();
1527
- // Check if the ConfigSelector has changed.
1528
- const bool config_selector_changed = !ConfigSelector::Equals(
1529
- saved_config_selector_.get(), config_selector.get());
1530
- // If either has changed, apply the global parameters now.
1531
- if (service_config_changed || config_selector_changed) {
1532
- // Update service config in control plane.
1533
- UpdateServiceConfigInControlPlaneLocked(
1534
- std::move(service_config), std::move(config_selector),
1535
- std::string(lb_policy_config->name()));
1536
- } else if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1537
- gpr_log(GPR_INFO, "chand=%p: service config not changed", this);
1538
- }
1539
- // Create or update LB policy, as needed.
1540
- resolver_result_status = CreateOrUpdateLbPolicyLocked(
1541
- std::move(lb_policy_config),
1542
- parsed_service_config->health_check_service_name(), std::move(result));
1543
- if (service_config_changed || config_selector_changed) {
1544
- // Start using new service config for calls.
1545
- // This needs to happen after the LB policy has been updated, since
1546
- // the ConfigSelector may need the LB policy to know about new
1547
- // destinations before it can send RPCs to those destinations.
1548
- UpdateServiceConfigInDataPlaneLocked();
1549
- // TODO(ncteisen): might be worth somehow including a snippet of the
1550
- // config in the trace, at the risk of bloating the trace logs.
1551
- trace_strings.push_back("Service config changed");
1552
- }
1553
- }
1554
- // Invoke resolver callback if needed.
1555
- if (resolver_callback != nullptr) {
1556
- resolver_callback(std::move(resolver_result_status));
1557
- }
1558
- // Add channel trace event.
1559
- if (!trace_strings.empty()) {
1560
- std::string message =
1561
- absl::StrCat("Resolution event: ", absl::StrJoin(trace_strings, ", "));
1562
- if (channelz_node_ != nullptr) {
1563
- channelz_node_->AddTraceEvent(channelz::ChannelTrace::Severity::Info,
1564
- grpc_slice_from_cpp_string(message));
1565
- }
1566
- }
1567
- }
1568
-
1569
- void ClientChannel::OnResolverErrorLocked(absl::Status status) {
1570
- if (resolver_ == nullptr) return;
1571
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1572
- gpr_log(GPR_INFO, "chand=%p: resolver transient failure: %s", this,
1573
- status.ToString().c_str());
1574
- }
1575
- // If we already have an LB policy from a previous resolution
1576
- // result, then we continue to let it set the connectivity state.
1577
- // Otherwise, we go into TRANSIENT_FAILURE.
1578
- if (lb_policy_ == nullptr) {
1579
- // Update connectivity state.
1580
- UpdateStateLocked(GRPC_CHANNEL_TRANSIENT_FAILURE, status,
1581
- "resolver failure");
1582
- {
1583
- MutexLock lock(&resolution_mu_);
1584
- // Update resolver transient failure.
1585
- resolver_transient_failure_error_ =
1586
- MaybeRewriteIllegalStatusCode(status, "resolver");
1587
- ReprocessQueuedResolverCalls();
1588
- }
1589
- }
1590
- }
1591
-
1592
- absl::Status ClientChannel::CreateOrUpdateLbPolicyLocked(
1593
- RefCountedPtr<LoadBalancingPolicy::Config> lb_policy_config,
1594
- const absl::optional<std::string>& health_check_service_name,
1595
- Resolver::Result result) {
1596
- // Construct update.
1597
- LoadBalancingPolicy::UpdateArgs update_args;
1598
- update_args.addresses = std::move(result.addresses);
1599
- update_args.config = std::move(lb_policy_config);
1600
- update_args.resolution_note = std::move(result.resolution_note);
1601
- // Remove the config selector from channel args so that we're not holding
1602
- // unnecessary refs that cause it to be destroyed somewhere other than in the
1603
- // WorkSerializer.
1604
- update_args.args = result.args.Remove(GRPC_ARG_CONFIG_SELECTOR);
1605
- // Add health check service name to channel args.
1606
- if (health_check_service_name.has_value()) {
1607
- update_args.args = update_args.args.Set(GRPC_ARG_HEALTH_CHECK_SERVICE_NAME,
1608
- *health_check_service_name);
1609
- }
1610
- // Create policy if needed.
1611
- if (lb_policy_ == nullptr) {
1612
- lb_policy_ = CreateLbPolicyLocked(update_args.args);
1613
- }
1614
- // Update the policy.
1615
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1616
- gpr_log(GPR_INFO, "chand=%p: Updating child policy %p", this,
1617
- lb_policy_.get());
1618
- }
1619
- return lb_policy_->UpdateLocked(std::move(update_args));
1620
- }
1621
-
1622
- // Creates a new LB policy.
1623
- OrphanablePtr<LoadBalancingPolicy> ClientChannel::CreateLbPolicyLocked(
1624
- const ChannelArgs& args) {
1625
- // The LB policy will start in state CONNECTING but will not
1626
- // necessarily send us an update synchronously, so set state to
1627
- // CONNECTING (in case the resolver had previously failed and put the
1628
- // channel into TRANSIENT_FAILURE) and make sure we have a queueing picker.
1629
- UpdateStateAndPickerLocked(
1630
- GRPC_CHANNEL_CONNECTING, absl::Status(), "started resolving",
1631
- MakeRefCounted<LoadBalancingPolicy::QueuePicker>(nullptr));
1632
- // Now create the LB policy.
1633
- LoadBalancingPolicy::Args lb_policy_args;
1634
- lb_policy_args.work_serializer = work_serializer_;
1635
- lb_policy_args.channel_control_helper =
1636
- std::make_unique<ClientChannelControlHelper>(this);
1637
- lb_policy_args.args = args;
1638
- OrphanablePtr<LoadBalancingPolicy> lb_policy =
1639
- MakeOrphanable<ChildPolicyHandler>(std::move(lb_policy_args),
1640
- &grpc_client_channel_trace);
1641
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1642
- gpr_log(GPR_INFO, "chand=%p: created new LB policy %p", this,
1643
- lb_policy.get());
1644
- }
1645
- grpc_pollset_set_add_pollset_set(lb_policy->interested_parties(),
1646
- interested_parties_);
1647
- return lb_policy;
1648
- }
1649
-
1650
- void ClientChannel::UpdateServiceConfigInControlPlaneLocked(
1651
- RefCountedPtr<ServiceConfig> service_config,
1652
- RefCountedPtr<ConfigSelector> config_selector, std::string lb_policy_name) {
1653
- std::string service_config_json(service_config->json_string());
1654
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1655
- gpr_log(GPR_INFO, "chand=%p: using service config: \"%s\"", this,
1656
- service_config_json.c_str());
1657
- }
1658
- // Save service config.
1659
- saved_service_config_ = std::move(service_config);
1660
- // Swap out the data used by GetChannelInfo().
1661
- {
1662
- MutexLock lock(&info_mu_);
1663
- info_lb_policy_name_ = std::move(lb_policy_name);
1664
- info_service_config_json_ = std::move(service_config_json);
1665
- }
1666
- // Save config selector.
1667
- saved_config_selector_ = std::move(config_selector);
1668
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1669
- gpr_log(GPR_INFO, "chand=%p: using ConfigSelector %p", this,
1670
- saved_config_selector_.get());
1671
- }
1672
- }
1673
-
1674
- void ClientChannel::UpdateServiceConfigInDataPlaneLocked() {
1675
- // Grab ref to service config.
1676
- RefCountedPtr<ServiceConfig> service_config = saved_service_config_;
1677
- // Grab ref to config selector. Use default if resolver didn't supply one.
1678
- RefCountedPtr<ConfigSelector> config_selector = saved_config_selector_;
1679
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1680
- gpr_log(GPR_INFO, "chand=%p: switching to ConfigSelector %p", this,
1681
- saved_config_selector_.get());
1682
- }
1683
- if (config_selector == nullptr) {
1684
- config_selector =
1685
- MakeRefCounted<DefaultConfigSelector>(saved_service_config_);
1686
- }
1687
- ChannelArgs new_args =
1688
- channel_args_.SetObject(this).SetObject(service_config);
1689
- bool enable_retries =
1690
- !new_args.WantMinimalStack() &&
1691
- new_args.GetBool(GRPC_ARG_ENABLE_RETRIES).value_or(true);
1692
- // Construct dynamic filter stack.
1693
- std::vector<const grpc_channel_filter*> filters =
1694
- config_selector->GetFilters();
1695
- if (enable_retries) {
1696
- filters.push_back(&RetryFilter::kVtable);
1697
- } else {
1698
- filters.push_back(&DynamicTerminationFilter::kFilterVtable);
1699
- }
1700
- RefCountedPtr<DynamicFilters> dynamic_filters =
1701
- DynamicFilters::Create(new_args, std::move(filters));
1702
- GPR_ASSERT(dynamic_filters != nullptr);
1703
- // Grab data plane lock to update service config.
1704
- //
1705
- // We defer unreffing the old values (and deallocating memory) until
1706
- // after releasing the lock to keep the critical section small.
1707
- {
1708
- MutexLock lock(&resolution_mu_);
1709
- resolver_transient_failure_error_ = absl::OkStatus();
1710
- // Update service config.
1711
- received_service_config_data_ = true;
1712
- // Old values will be unreffed after lock is released.
1713
- service_config_.swap(service_config);
1714
- config_selector_.swap(config_selector);
1715
- dynamic_filters_.swap(dynamic_filters);
1716
- // Re-process queued calls asynchronously.
1717
- ReprocessQueuedResolverCalls();
1718
- }
1719
- // Old values will be unreffed after lock is released when they go out
1720
- // of scope.
1721
- }
1722
-
1723
- void ClientChannel::CreateResolverLocked() {
1724
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1725
- gpr_log(GPR_INFO, "chand=%p: starting name resolution for %s", this,
1726
- uri_to_resolve_.c_str());
1727
- }
1728
- resolver_ = CoreConfiguration::Get().resolver_registry().CreateResolver(
1729
- uri_to_resolve_, channel_args_, interested_parties_, work_serializer_,
1730
- std::make_unique<ResolverResultHandler>(this));
1731
- // Since the validity of the args was checked when the channel was created,
1732
- // CreateResolver() must return a non-null result.
1733
- GPR_ASSERT(resolver_ != nullptr);
1734
- UpdateStateLocked(GRPC_CHANNEL_CONNECTING, absl::Status(),
1735
- "started resolving");
1736
- resolver_->StartLocked();
1737
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1738
- gpr_log(GPR_INFO, "chand=%p: created resolver=%p", this, resolver_.get());
1739
- }
1740
- }
1741
-
1742
- void ClientChannel::DestroyResolverAndLbPolicyLocked() {
1743
- if (resolver_ != nullptr) {
1744
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1745
- gpr_log(GPR_INFO, "chand=%p: shutting down resolver=%p", this,
1746
- resolver_.get());
1747
- }
1748
- resolver_.reset();
1749
- // Clear resolution state.
1750
- saved_service_config_.reset();
1751
- saved_config_selector_.reset();
1752
- // Acquire resolution lock to update config selector and associated state.
1753
- // To minimize lock contention, we wait to unref these objects until
1754
- // after we release the lock.
1755
- RefCountedPtr<ServiceConfig> service_config_to_unref;
1756
- RefCountedPtr<ConfigSelector> config_selector_to_unref;
1757
- RefCountedPtr<DynamicFilters> dynamic_filters_to_unref;
1758
- {
1759
- MutexLock lock(&resolution_mu_);
1760
- received_service_config_data_ = false;
1761
- service_config_to_unref = std::move(service_config_);
1762
- config_selector_to_unref = std::move(config_selector_);
1763
- dynamic_filters_to_unref = std::move(dynamic_filters_);
1764
- }
1765
- // Clear LB policy if set.
1766
- if (lb_policy_ != nullptr) {
1767
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1768
- gpr_log(GPR_INFO, "chand=%p: shutting down lb_policy=%p", this,
1769
- lb_policy_.get());
1770
- }
1771
- grpc_pollset_set_del_pollset_set(lb_policy_->interested_parties(),
1772
- interested_parties_);
1773
- lb_policy_.reset();
1774
- }
1775
- }
1776
- }
1777
-
1778
- void ClientChannel::UpdateStateLocked(grpc_connectivity_state state,
1779
- const absl::Status& status,
1780
- const char* reason) {
1781
- if (state != GRPC_CHANNEL_SHUTDOWN &&
1782
- state_tracker_.state() == GRPC_CHANNEL_SHUTDOWN) {
1783
- Crash("Illegal transition SHUTDOWN -> anything");
1784
- }
1785
- state_tracker_.SetState(state, status, reason);
1786
- if (channelz_node_ != nullptr) {
1787
- channelz_node_->SetConnectivityState(state);
1788
- channelz_node_->AddTraceEvent(
1789
- channelz::ChannelTrace::Severity::Info,
1790
- grpc_slice_from_static_string(
1791
- channelz::ChannelNode::GetChannelConnectivityStateChangeString(
1792
- state)));
1793
- }
1794
- }
1795
-
1796
- void ClientChannel::UpdateStateAndPickerLocked(
1797
- grpc_connectivity_state state, const absl::Status& status,
1798
- const char* reason,
1799
- RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker) {
1800
- UpdateStateLocked(state, status, reason);
1801
- // Grab the LB lock to update the picker and trigger reprocessing of the
1802
- // queued picks.
1803
- // Old picker will be unreffed after releasing the lock.
1804
- MutexLock lock(&lb_mu_);
1805
- picker_.swap(picker);
1806
- // Reprocess queued picks.
1807
- for (auto& call : lb_queued_calls_) {
1808
- call->RemoveCallFromLbQueuedCallsLocked();
1809
- call->RetryPickLocked();
1810
- }
1811
- lb_queued_calls_.clear();
1812
- }
1813
-
1814
- namespace {
1815
-
1816
- // TODO(roth): Remove this in favor of the gprpp Match() function once
1817
- // we can do that without breaking lock annotations.
1818
- template <typename T>
1819
- T HandlePickResult(
1820
- LoadBalancingPolicy::PickResult* result,
1821
- std::function<T(LoadBalancingPolicy::PickResult::Complete*)> complete_func,
1822
- std::function<T(LoadBalancingPolicy::PickResult::Queue*)> queue_func,
1823
- std::function<T(LoadBalancingPolicy::PickResult::Fail*)> fail_func,
1824
- std::function<T(LoadBalancingPolicy::PickResult::Drop*)> drop_func) {
1825
- auto* complete_pick =
1826
- absl::get_if<LoadBalancingPolicy::PickResult::Complete>(&result->result);
1827
- if (complete_pick != nullptr) {
1828
- return complete_func(complete_pick);
1829
- }
1830
- auto* queue_pick =
1831
- absl::get_if<LoadBalancingPolicy::PickResult::Queue>(&result->result);
1832
- if (queue_pick != nullptr) {
1833
- return queue_func(queue_pick);
1834
- }
1835
- auto* fail_pick =
1836
- absl::get_if<LoadBalancingPolicy::PickResult::Fail>(&result->result);
1837
- if (fail_pick != nullptr) {
1838
- return fail_func(fail_pick);
1839
- }
1840
- auto* drop_pick =
1841
- absl::get_if<LoadBalancingPolicy::PickResult::Drop>(&result->result);
1842
- GPR_ASSERT(drop_pick != nullptr);
1843
- return drop_func(drop_pick);
1844
- }
1845
-
1846
- } // namespace
1847
-
1848
- grpc_error_handle ClientChannel::DoPingLocked(grpc_transport_op* op) {
1849
- if (state_tracker_.state() != GRPC_CHANNEL_READY) {
1850
- return GRPC_ERROR_CREATE("channel not connected");
1851
- }
1852
- LoadBalancingPolicy::PickResult result;
1853
- {
1854
- MutexLock lock(&lb_mu_);
1855
- result = picker_->Pick(LoadBalancingPolicy::PickArgs());
1856
- }
1857
- return HandlePickResult<grpc_error_handle>(
1858
- &result,
1859
- // Complete pick.
1860
- [op](LoadBalancingPolicy::PickResult::Complete* complete_pick)
1861
- ABSL_EXCLUSIVE_LOCKS_REQUIRED(*ClientChannel::work_serializer_) {
1862
- SubchannelWrapper* subchannel = static_cast<SubchannelWrapper*>(
1863
- complete_pick->subchannel.get());
1864
- RefCountedPtr<ConnectedSubchannel> connected_subchannel =
1865
- subchannel->connected_subchannel();
1866
- if (connected_subchannel == nullptr) {
1867
- return GRPC_ERROR_CREATE("LB pick for ping not connected");
1868
- }
1869
- connected_subchannel->Ping(op->send_ping.on_initiate,
1870
- op->send_ping.on_ack);
1871
- return absl::OkStatus();
1872
- },
1873
- // Queue pick.
1874
- [](LoadBalancingPolicy::PickResult::Queue* /*queue_pick*/) {
1875
- return GRPC_ERROR_CREATE("LB picker queued call");
1876
- },
1877
- // Fail pick.
1878
- [](LoadBalancingPolicy::PickResult::Fail* fail_pick) {
1879
- return absl_status_to_grpc_error(fail_pick->status);
1880
- },
1881
- // Drop pick.
1882
- [](LoadBalancingPolicy::PickResult::Drop* drop_pick) {
1883
- return absl_status_to_grpc_error(drop_pick->status);
1884
- });
1885
- }
1886
-
1887
- void ClientChannel::StartTransportOpLocked(grpc_transport_op* op) {
1888
- // Connectivity watch.
1889
- if (op->start_connectivity_watch != nullptr) {
1890
- state_tracker_.AddWatcher(op->start_connectivity_watch_state,
1891
- std::move(op->start_connectivity_watch));
1892
- }
1893
- if (op->stop_connectivity_watch != nullptr) {
1894
- state_tracker_.RemoveWatcher(op->stop_connectivity_watch);
1895
- }
1896
- // Ping.
1897
- if (op->send_ping.on_initiate != nullptr || op->send_ping.on_ack != nullptr) {
1898
- grpc_error_handle error = DoPingLocked(op);
1899
- if (!error.ok()) {
1900
- ExecCtx::Run(DEBUG_LOCATION, op->send_ping.on_initiate, error);
1901
- ExecCtx::Run(DEBUG_LOCATION, op->send_ping.on_ack, error);
1902
- }
1903
- op->bind_pollset = nullptr;
1904
- op->send_ping.on_initiate = nullptr;
1905
- op->send_ping.on_ack = nullptr;
1906
- }
1907
- // Reset backoff.
1908
- if (op->reset_connect_backoff) {
1909
- if (lb_policy_ != nullptr) {
1910
- lb_policy_->ResetBackoffLocked();
1911
- }
1912
- }
1913
- // Disconnect or enter IDLE.
1914
- if (!op->disconnect_with_error.ok()) {
1915
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_trace)) {
1916
- gpr_log(GPR_INFO, "chand=%p: disconnect_with_error: %s", this,
1917
- StatusToString(op->disconnect_with_error).c_str());
1918
- }
1919
- DestroyResolverAndLbPolicyLocked();
1920
- intptr_t value;
1921
- if (grpc_error_get_int(op->disconnect_with_error,
1922
- StatusIntProperty::ChannelConnectivityState,
1923
- &value) &&
1924
- static_cast<grpc_connectivity_state>(value) == GRPC_CHANNEL_IDLE) {
1925
- if (disconnect_error_.ok()) { // Ignore if we're shutting down.
1926
- // Enter IDLE state.
1927
- UpdateStateAndPickerLocked(GRPC_CHANNEL_IDLE, absl::Status(),
1928
- "channel entering IDLE", nullptr);
1929
- // TODO(roth): Do we need to check for any queued picks here, in
1930
- // case there's a race condition in the client_idle filter?
1931
- // And maybe also check for calls in the resolver queue?
1932
- }
1933
- } else {
1934
- // Disconnect.
1935
- GPR_ASSERT(disconnect_error_.ok());
1936
- disconnect_error_ = op->disconnect_with_error;
1937
- UpdateStateAndPickerLocked(
1938
- GRPC_CHANNEL_SHUTDOWN, absl::Status(), "shutdown from API",
1939
- MakeRefCounted<LoadBalancingPolicy::TransientFailurePicker>(
1940
- grpc_error_to_absl_status(op->disconnect_with_error)));
1941
- // TODO(roth): If this happens when we're still waiting for a
1942
- // resolver result, we need to trigger failures for all calls in
1943
- // the resolver queue here.
1944
- }
1945
- }
1946
- GRPC_CHANNEL_STACK_UNREF(owning_stack_, "start_transport_op");
1947
- ExecCtx::Run(DEBUG_LOCATION, op->on_consumed, absl::OkStatus());
1948
- }
1949
-
1950
- void ClientChannel::StartTransportOp(grpc_channel_element* elem,
1951
- grpc_transport_op* op) {
1952
- ClientChannel* chand = static_cast<ClientChannel*>(elem->channel_data);
1953
- GPR_ASSERT(op->set_accept_stream == false);
1954
- // Handle bind_pollset.
1955
- if (op->bind_pollset != nullptr) {
1956
- grpc_pollset_set_add_pollset(chand->interested_parties_, op->bind_pollset);
1957
- }
1958
- // Pop into control plane work_serializer for remaining ops.
1959
- GRPC_CHANNEL_STACK_REF(chand->owning_stack_, "start_transport_op");
1960
- chand->work_serializer_->Run(
1961
- [chand, op]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand->work_serializer_) {
1962
- chand->StartTransportOpLocked(op);
1963
- },
1964
- DEBUG_LOCATION);
1965
- }
1966
-
1967
- void ClientChannel::GetChannelInfo(grpc_channel_element* elem,
1968
- const grpc_channel_info* info) {
1969
- ClientChannel* chand = static_cast<ClientChannel*>(elem->channel_data);
1970
- MutexLock lock(&chand->info_mu_);
1971
- if (info->lb_policy_name != nullptr) {
1972
- *info->lb_policy_name = gpr_strdup(chand->info_lb_policy_name_.c_str());
1973
- }
1974
- if (info->service_config_json != nullptr) {
1975
- *info->service_config_json =
1976
- gpr_strdup(chand->info_service_config_json_.c_str());
1977
- }
1978
- }
1979
-
1980
- void ClientChannel::TryToConnectLocked() {
1981
- if (disconnect_error_.ok()) {
1982
- if (lb_policy_ != nullptr) {
1983
- lb_policy_->ExitIdleLocked();
1984
- } else if (resolver_ == nullptr) {
1985
- CreateResolverLocked();
1986
- }
1987
- }
1988
- GRPC_CHANNEL_STACK_UNREF(owning_stack_, "TryToConnect");
1989
- }
1990
-
1991
- grpc_connectivity_state ClientChannel::CheckConnectivityState(
1992
- bool try_to_connect) {
1993
- // state_tracker_ is guarded by work_serializer_, which we're not
1994
- // holding here. But the one method of state_tracker_ that *is*
1995
- // thread-safe to call without external synchronization is the state()
1996
- // method, so we can disable thread-safety analysis for this one read.
1997
- grpc_connectivity_state out = ABSL_TS_UNCHECKED_READ(state_tracker_).state();
1998
- if (out == GRPC_CHANNEL_IDLE && try_to_connect) {
1999
- GRPC_CHANNEL_STACK_REF(owning_stack_, "TryToConnect");
2000
- work_serializer_->Run([this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(
2001
- *work_serializer_) { TryToConnectLocked(); },
2002
- DEBUG_LOCATION);
2003
- }
2004
- return out;
2005
- }
2006
-
2007
- void ClientChannel::AddConnectivityWatcher(
2008
- grpc_connectivity_state initial_state,
2009
- OrphanablePtr<AsyncConnectivityStateWatcherInterface> watcher) {
2010
- new ConnectivityWatcherAdder(this, initial_state, std::move(watcher));
2011
- }
2012
-
2013
- void ClientChannel::RemoveConnectivityWatcher(
2014
- AsyncConnectivityStateWatcherInterface* watcher) {
2015
- new ConnectivityWatcherRemover(this, watcher);
2016
- }
2017
-
2018
- //
2019
- // CallData implementation
2020
- //
2021
-
2022
- void ClientChannel::CallData::RemoveCallFromResolverQueuedCallsLocked() {
2023
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2024
- gpr_log(GPR_INFO,
2025
- "chand=%p calld=%p: removing from resolver queued picks list",
2026
- chand(), this);
2027
- }
2028
- // Remove call's pollent from channel's interested_parties.
2029
- grpc_polling_entity_del_from_pollset_set(pollent(),
2030
- chand()->interested_parties_);
2031
- // Note: There's no need to actually remove the call from the queue
2032
- // here, because that will be done in
2033
- // ResolverQueuedCallCanceller::CancelLocked() or
2034
- // ClientChannel::ReprocessQueuedResolverCalls().
2035
- }
2036
-
2037
- void ClientChannel::CallData::AddCallToResolverQueuedCallsLocked() {
2038
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2039
- gpr_log(
2040
- GPR_INFO,
2041
- "chand=%p calld=%p: adding to resolver queued picks list; pollent=%s",
2042
- chand(), this, grpc_polling_entity_string(pollent()).c_str());
2043
- }
2044
- // Add call's pollent to channel's interested_parties, so that I/O
2045
- // can be done under the call's CQ.
2046
- grpc_polling_entity_add_to_pollset_set(pollent(),
2047
- chand()->interested_parties_);
2048
- // Add to queue.
2049
- chand()->resolver_queued_calls_.insert(this);
2050
- OnAddToQueueLocked();
2051
- }
2052
-
2053
- grpc_error_handle ClientChannel::CallData::ApplyServiceConfigToCallLocked(
2054
- const absl::StatusOr<RefCountedPtr<ConfigSelector>>& config_selector) {
2055
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2056
- gpr_log(GPR_INFO, "chand=%p calld=%p: applying service config to call",
2057
- chand(), this);
2058
- }
2059
- if (!config_selector.ok()) return config_selector.status();
2060
- // Create a ClientChannelServiceConfigCallData for the call. This stores
2061
- // a ref to the ServiceConfig and caches the right set of parsed configs
2062
- // to use for the call. The ClientChannelServiceConfigCallData will store
2063
- // itself in the call context, so that it can be accessed by filters
2064
- // below us in the stack, and it will be cleaned up when the call ends.
2065
- auto* service_config_call_data =
2066
- arena()->New<ClientChannelServiceConfigCallData>(arena(), call_context());
2067
- // Use the ConfigSelector to determine the config for the call.
2068
- absl::Status call_config_status =
2069
- (*config_selector)
2070
- ->GetCallConfig(
2071
- {send_initial_metadata(), arena(), service_config_call_data});
2072
- if (!call_config_status.ok()) {
2073
- return absl_status_to_grpc_error(
2074
- MaybeRewriteIllegalStatusCode(call_config_status, "ConfigSelector"));
2075
- }
2076
- // Apply our own method params to the call.
2077
- auto* method_params = static_cast<ClientChannelMethodParsedConfig*>(
2078
- service_config_call_data->GetMethodParsedConfig(
2079
- chand()->service_config_parser_index_));
2080
- if (method_params != nullptr) {
2081
- // If the deadline from the service config is shorter than the one
2082
- // from the client API, reset the deadline timer.
2083
- if (chand()->deadline_checking_enabled_ &&
2084
- method_params->timeout() != Duration::Zero()) {
2085
- ResetDeadline(method_params->timeout());
2086
- }
2087
- // If the service config set wait_for_ready and the application
2088
- // did not explicitly set it, use the value from the service config.
2089
- auto* wait_for_ready =
2090
- send_initial_metadata()->GetOrCreatePointer(WaitForReady());
2091
- if (method_params->wait_for_ready().has_value() &&
2092
- !wait_for_ready->explicitly_set) {
2093
- wait_for_ready->value = method_params->wait_for_ready().value();
2094
- }
2095
- }
2096
- return absl::OkStatus();
2097
- }
2098
-
2099
- absl::optional<absl::Status> ClientChannel::CallData::CheckResolution(
2100
- bool was_queued) {
2101
- // Check if we have a resolver result to use.
2102
- absl::StatusOr<RefCountedPtr<ConfigSelector>> config_selector;
2103
- {
2104
- MutexLock lock(&chand()->resolution_mu_);
2105
- bool result_ready = CheckResolutionLocked(&config_selector);
2106
- // If no result is available, queue the call.
2107
- if (!result_ready) {
2108
- AddCallToResolverQueuedCallsLocked();
2109
- return absl::nullopt;
2110
- }
2111
- }
2112
- // We have a result. Apply service config to call.
2113
- grpc_error_handle error = ApplyServiceConfigToCallLocked(config_selector);
2114
- // ConfigSelector must be unreffed inside the WorkSerializer.
2115
- if (!IsWorkSerializerDispatchEnabled() && config_selector.ok()) {
2116
- chand()->work_serializer_->Run(
2117
- [config_selector = std::move(*config_selector)]() mutable {
2118
- config_selector.reset();
2119
- },
2120
- DEBUG_LOCATION);
2121
- }
2122
- // Handle errors.
2123
- if (!error.ok()) {
2124
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2125
- gpr_log(GPR_INFO,
2126
- "chand=%p calld=%p: error applying config to call: error=%s",
2127
- chand(), this, StatusToString(error).c_str());
2128
- }
2129
- return error;
2130
- }
2131
- // If the call was queued, add trace annotation.
2132
- if (was_queued) {
2133
- auto* call_tracer = static_cast<CallTracerAnnotationInterface*>(
2134
- call_context()[GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE].value);
2135
- if (call_tracer != nullptr) {
2136
- call_tracer->RecordAnnotation("Delayed name resolution complete.");
2137
- }
2138
- }
2139
- return absl::OkStatus();
2140
- }
2141
-
2142
- bool ClientChannel::CallData::CheckResolutionLocked(
2143
- absl::StatusOr<RefCountedPtr<ConfigSelector>>* config_selector) {
2144
- // If we don't yet have a resolver result, we need to queue the call
2145
- // until we get one.
2146
- if (GPR_UNLIKELY(!chand()->received_service_config_data_)) {
2147
- // If the resolver returned transient failure before returning the
2148
- // first service config, fail any non-wait_for_ready calls.
2149
- absl::Status resolver_error = chand()->resolver_transient_failure_error_;
2150
- if (!resolver_error.ok() &&
2151
- !send_initial_metadata()->GetOrCreatePointer(WaitForReady())->value) {
2152
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2153
- gpr_log(GPR_INFO, "chand=%p calld=%p: resolution failed, failing call",
2154
- chand(), this);
2155
- }
2156
- *config_selector = absl_status_to_grpc_error(resolver_error);
2157
- return true;
2158
- }
2159
- // Either the resolver has not yet returned a result, or it has
2160
- // returned transient failure but the call is wait_for_ready. In
2161
- // either case, queue the call.
2162
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2163
- gpr_log(GPR_INFO, "chand=%p calld=%p: no resolver result yet", chand(),
2164
- this);
2165
- }
2166
- return false;
2167
- }
2168
- // Result found.
2169
- *config_selector = chand()->config_selector_;
2170
- dynamic_filters_ = chand()->dynamic_filters_;
2171
- return true;
2172
- }
2173
-
2174
- //
2175
- // FilterBasedCallData implementation
2176
- //
2177
-
2178
- ClientChannel::FilterBasedCallData::FilterBasedCallData(
2179
- grpc_call_element* elem, const grpc_call_element_args& args)
2180
- : path_(CSliceRef(args.path)),
2181
- call_context_(args.context),
2182
- call_start_time_(args.start_time),
2183
- deadline_(args.deadline),
2184
- deadline_state_(elem, args,
2185
- GPR_LIKELY(static_cast<ClientChannel*>(elem->channel_data)
2186
- ->deadline_checking_enabled_)
2187
- ? args.deadline
2188
- : Timestamp::InfFuture()) {
2189
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2190
- gpr_log(GPR_INFO, "chand=%p calld=%p: created call", chand(), this);
2191
- }
2192
- }
2193
-
2194
- ClientChannel::FilterBasedCallData::~FilterBasedCallData() {
2195
- CSliceUnref(path_);
2196
- // Make sure there are no remaining pending batches.
2197
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2198
- GPR_ASSERT(pending_batches_[i] == nullptr);
2199
- }
2200
- }
2201
-
2202
- grpc_error_handle ClientChannel::FilterBasedCallData::Init(
2203
- grpc_call_element* elem, const grpc_call_element_args* args) {
2204
- new (elem->call_data) FilterBasedCallData(elem, *args);
2205
- return absl::OkStatus();
2206
- }
2207
-
2208
- void ClientChannel::FilterBasedCallData::Destroy(
2209
- grpc_call_element* elem, const grpc_call_final_info* /*final_info*/,
2210
- grpc_closure* then_schedule_closure) {
2211
- auto* calld = static_cast<FilterBasedCallData*>(elem->call_data);
2212
- RefCountedPtr<DynamicFilters::Call> dynamic_call =
2213
- std::move(calld->dynamic_call_);
2214
- calld->~FilterBasedCallData();
2215
- if (GPR_LIKELY(dynamic_call != nullptr)) {
2216
- dynamic_call->SetAfterCallStackDestroy(then_schedule_closure);
2217
- } else {
2218
- // TODO(yashkt) : This can potentially be a Closure::Run
2219
- ExecCtx::Run(DEBUG_LOCATION, then_schedule_closure, absl::OkStatus());
2220
- }
2221
- }
2222
-
2223
- void ClientChannel::FilterBasedCallData::StartTransportStreamOpBatch(
2224
- grpc_call_element* elem, grpc_transport_stream_op_batch* batch) {
2225
- auto* calld = static_cast<FilterBasedCallData*>(elem->call_data);
2226
- ClientChannel* chand = static_cast<ClientChannel*>(elem->channel_data);
2227
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace) &&
2228
- !GRPC_TRACE_FLAG_ENABLED(grpc_trace_channel)) {
2229
- gpr_log(GPR_INFO, "chand=%p calld=%p: batch started from above: %s", chand,
2230
- calld, grpc_transport_stream_op_batch_string(batch, false).c_str());
2231
- }
2232
- if (GPR_LIKELY(chand->deadline_checking_enabled_)) {
2233
- grpc_deadline_state_client_start_transport_stream_op_batch(
2234
- &calld->deadline_state_, batch);
2235
- }
2236
- // Intercept recv_trailing_metadata to commit the call, in case we wind up
2237
- // failing the call before we get down to the retry or LB call layer.
2238
- if (batch->recv_trailing_metadata) {
2239
- calld->original_recv_trailing_metadata_ready_ =
2240
- batch->payload->recv_trailing_metadata.recv_trailing_metadata_ready;
2241
- GRPC_CLOSURE_INIT(&calld->recv_trailing_metadata_ready_,
2242
- RecvTrailingMetadataReadyForConfigSelectorCommitCallback,
2243
- calld, nullptr);
2244
- batch->payload->recv_trailing_metadata.recv_trailing_metadata_ready =
2245
- &calld->recv_trailing_metadata_ready_;
2246
- }
2247
- // If we already have a dynamic call, pass the batch down to it.
2248
- // Note that once we have done so, we do not need to acquire the channel's
2249
- // resolution mutex, which is more efficient (especially for streaming calls).
2250
- if (calld->dynamic_call_ != nullptr) {
2251
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2252
- gpr_log(GPR_INFO, "chand=%p calld=%p: starting batch on dynamic_call=%p",
2253
- chand, calld, calld->dynamic_call_.get());
2254
- }
2255
- calld->dynamic_call_->StartTransportStreamOpBatch(batch);
2256
- return;
2257
- }
2258
- // We do not yet have a dynamic call.
2259
- //
2260
- // If we've previously been cancelled, immediately fail any new batches.
2261
- if (GPR_UNLIKELY(!calld->cancel_error_.ok())) {
2262
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2263
- gpr_log(GPR_INFO, "chand=%p calld=%p: failing batch with error: %s",
2264
- chand, calld, StatusToString(calld->cancel_error_).c_str());
2265
- }
2266
- // Note: This will release the call combiner.
2267
- grpc_transport_stream_op_batch_finish_with_failure(
2268
- batch, calld->cancel_error_, calld->call_combiner());
2269
- return;
2270
- }
2271
- // Handle cancellation.
2272
- if (GPR_UNLIKELY(batch->cancel_stream)) {
2273
- // Stash a copy of cancel_error in our call data, so that we can use
2274
- // it for subsequent operations. This ensures that if the call is
2275
- // cancelled before any batches are passed down (e.g., if the deadline
2276
- // is in the past when the call starts), we can return the right
2277
- // error to the caller when the first batch does get passed down.
2278
- calld->cancel_error_ = batch->payload->cancel_stream.cancel_error;
2279
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2280
- gpr_log(GPR_INFO, "chand=%p calld=%p: recording cancel_error=%s", chand,
2281
- calld, StatusToString(calld->cancel_error_).c_str());
2282
- }
2283
- // Fail all pending batches.
2284
- calld->PendingBatchesFail(calld->cancel_error_, NoYieldCallCombiner);
2285
- // Note: This will release the call combiner.
2286
- grpc_transport_stream_op_batch_finish_with_failure(
2287
- batch, calld->cancel_error_, calld->call_combiner());
2288
- return;
2289
- }
2290
- // Add the batch to the pending list.
2291
- calld->PendingBatchesAdd(batch);
2292
- // For batches containing a send_initial_metadata op, acquire the
2293
- // channel's resolution mutex to apply the service config to the call,
2294
- // after which we will create a dynamic call.
2295
- if (GPR_LIKELY(batch->send_initial_metadata)) {
2296
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2297
- gpr_log(GPR_INFO,
2298
- "chand=%p calld=%p: grabbing resolution mutex to apply service "
2299
- "config",
2300
- chand, calld);
2301
- }
2302
- // If we're still in IDLE, we need to start resolving.
2303
- if (GPR_UNLIKELY(chand->CheckConnectivityState(false) ==
2304
- GRPC_CHANNEL_IDLE)) {
2305
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2306
- gpr_log(GPR_INFO, "chand=%p calld=%p: triggering exit idle", chand,
2307
- calld);
2308
- }
2309
- // Bounce into the control plane work serializer to start resolving.
2310
- GRPC_CHANNEL_STACK_REF(chand->owning_stack_, "ExitIdle");
2311
- chand->work_serializer_->Run(
2312
- [chand]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(*chand->work_serializer_) {
2313
- chand->CheckConnectivityState(/*try_to_connect=*/true);
2314
- GRPC_CHANNEL_STACK_UNREF(chand->owning_stack_, "ExitIdle");
2315
- },
2316
- DEBUG_LOCATION);
2317
- }
2318
- calld->TryCheckResolution(/*was_queued=*/false);
2319
- } else {
2320
- // For all other batches, release the call combiner.
2321
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2322
- gpr_log(GPR_INFO,
2323
- "chand=%p calld=%p: saved batch, yielding call combiner", chand,
2324
- calld);
2325
- }
2326
- GRPC_CALL_COMBINER_STOP(calld->call_combiner(),
2327
- "batch does not include send_initial_metadata");
2328
- }
2329
- }
2330
-
2331
- void ClientChannel::FilterBasedCallData::SetPollent(
2332
- grpc_call_element* elem, grpc_polling_entity* pollent) {
2333
- auto* calld = static_cast<FilterBasedCallData*>(elem->call_data);
2334
- calld->pollent_ = pollent;
2335
- }
2336
-
2337
- size_t ClientChannel::FilterBasedCallData::GetBatchIndex(
2338
- grpc_transport_stream_op_batch* batch) {
2339
- // Note: It is important the send_initial_metadata be the first entry
2340
- // here, since the code in CheckResolution() assumes it will be.
2341
- if (batch->send_initial_metadata) return 0;
2342
- if (batch->send_message) return 1;
2343
- if (batch->send_trailing_metadata) return 2;
2344
- if (batch->recv_initial_metadata) return 3;
2345
- if (batch->recv_message) return 4;
2346
- if (batch->recv_trailing_metadata) return 5;
2347
- GPR_UNREACHABLE_CODE(return (size_t)-1);
2348
- }
2349
-
2350
- // This is called via the call combiner, so access to calld is synchronized.
2351
- void ClientChannel::FilterBasedCallData::PendingBatchesAdd(
2352
- grpc_transport_stream_op_batch* batch) {
2353
- const size_t idx = GetBatchIndex(batch);
2354
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2355
- gpr_log(GPR_INFO,
2356
- "chand=%p calld=%p: adding pending batch at index %" PRIuPTR,
2357
- chand(), this, idx);
2358
- }
2359
- grpc_transport_stream_op_batch*& pending = pending_batches_[idx];
2360
- GPR_ASSERT(pending == nullptr);
2361
- pending = batch;
2362
- }
2363
-
2364
- // This is called via the call combiner, so access to calld is synchronized.
2365
- void ClientChannel::FilterBasedCallData::FailPendingBatchInCallCombiner(
2366
- void* arg, grpc_error_handle error) {
2367
- grpc_transport_stream_op_batch* batch =
2368
- static_cast<grpc_transport_stream_op_batch*>(arg);
2369
- auto* calld =
2370
- static_cast<FilterBasedCallData*>(batch->handler_private.extra_arg);
2371
- // Note: This will release the call combiner.
2372
- grpc_transport_stream_op_batch_finish_with_failure(batch, error,
2373
- calld->call_combiner());
2374
- }
2375
-
2376
- // This is called via the call combiner, so access to calld is synchronized.
2377
- void ClientChannel::FilterBasedCallData::PendingBatchesFail(
2378
- grpc_error_handle error,
2379
- YieldCallCombinerPredicate yield_call_combiner_predicate) {
2380
- GPR_ASSERT(!error.ok());
2381
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2382
- size_t num_batches = 0;
2383
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2384
- if (pending_batches_[i] != nullptr) ++num_batches;
2385
- }
2386
- gpr_log(GPR_INFO,
2387
- "chand=%p calld=%p: failing %" PRIuPTR " pending batches: %s",
2388
- chand(), this, num_batches, StatusToString(error).c_str());
2389
- }
2390
- CallCombinerClosureList closures;
2391
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2392
- grpc_transport_stream_op_batch*& batch = pending_batches_[i];
2393
- if (batch != nullptr) {
2394
- batch->handler_private.extra_arg = this;
2395
- GRPC_CLOSURE_INIT(&batch->handler_private.closure,
2396
- FailPendingBatchInCallCombiner, batch,
2397
- grpc_schedule_on_exec_ctx);
2398
- closures.Add(&batch->handler_private.closure, error,
2399
- "PendingBatchesFail");
2400
- batch = nullptr;
2401
- }
2402
- }
2403
- if (yield_call_combiner_predicate(closures)) {
2404
- closures.RunClosures(call_combiner());
2405
- } else {
2406
- closures.RunClosuresWithoutYielding(call_combiner());
2407
- }
2408
- }
2409
-
2410
- // This is called via the call combiner, so access to calld is synchronized.
2411
- void ClientChannel::FilterBasedCallData::ResumePendingBatchInCallCombiner(
2412
- void* arg, grpc_error_handle /*ignored*/) {
2413
- grpc_transport_stream_op_batch* batch =
2414
- static_cast<grpc_transport_stream_op_batch*>(arg);
2415
- auto* calld =
2416
- static_cast<FilterBasedCallData*>(batch->handler_private.extra_arg);
2417
- // Note: This will release the call combiner.
2418
- calld->dynamic_call_->StartTransportStreamOpBatch(batch);
2419
- }
2420
-
2421
- // This is called via the call combiner, so access to calld is synchronized.
2422
- void ClientChannel::FilterBasedCallData::PendingBatchesResume() {
2423
- // Retries not enabled; send down batches as-is.
2424
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2425
- size_t num_batches = 0;
2426
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2427
- if (pending_batches_[i] != nullptr) ++num_batches;
2428
- }
2429
- gpr_log(GPR_INFO,
2430
- "chand=%p calld=%p: starting %" PRIuPTR
2431
- " pending batches on dynamic_call=%p",
2432
- chand(), this, num_batches, dynamic_call_.get());
2433
- }
2434
- CallCombinerClosureList closures;
2435
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
2436
- grpc_transport_stream_op_batch*& batch = pending_batches_[i];
2437
- if (batch != nullptr) {
2438
- batch->handler_private.extra_arg = this;
2439
- GRPC_CLOSURE_INIT(&batch->handler_private.closure,
2440
- ResumePendingBatchInCallCombiner, batch, nullptr);
2441
- closures.Add(&batch->handler_private.closure, absl::OkStatus(),
2442
- "resuming pending batch from client channel call");
2443
- batch = nullptr;
2444
- }
2445
- }
2446
- // Note: This will release the call combiner.
2447
- closures.RunClosures(call_combiner());
2448
- }
2449
-
2450
- // A class to handle the call combiner cancellation callback for a
2451
- // queued pick.
2452
- class ClientChannel::FilterBasedCallData::ResolverQueuedCallCanceller {
2453
- public:
2454
- explicit ResolverQueuedCallCanceller(FilterBasedCallData* calld)
2455
- : calld_(calld) {
2456
- GRPC_CALL_STACK_REF(calld->owning_call(), "ResolverQueuedCallCanceller");
2457
- GRPC_CLOSURE_INIT(&closure_, &CancelLocked, this,
2458
- grpc_schedule_on_exec_ctx);
2459
- calld->call_combiner()->SetNotifyOnCancel(&closure_);
2460
- }
2461
-
2462
- private:
2463
- static void CancelLocked(void* arg, grpc_error_handle error) {
2464
- auto* self = static_cast<ResolverQueuedCallCanceller*>(arg);
2465
- auto* calld = self->calld_;
2466
- auto* chand = calld->chand();
2467
- {
2468
- MutexLock lock(&chand->resolution_mu_);
2469
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2470
- gpr_log(GPR_INFO,
2471
- "chand=%p calld=%p: cancelling resolver queued pick: "
2472
- "error=%s self=%p calld->resolver_pick_canceller=%p",
2473
- chand, calld, StatusToString(error).c_str(), self,
2474
- calld->resolver_call_canceller_);
2475
- }
2476
- if (calld->resolver_call_canceller_ == self && !error.ok()) {
2477
- // Remove pick from list of queued picks.
2478
- calld->RemoveCallFromResolverQueuedCallsLocked();
2479
- chand->resolver_queued_calls_.erase(calld);
2480
- // Fail pending batches on the call.
2481
- calld->PendingBatchesFail(error,
2482
- YieldCallCombinerIfPendingBatchesFound);
2483
- }
2484
- }
2485
- GRPC_CALL_STACK_UNREF(calld->owning_call(), "ResolvingQueuedCallCanceller");
2486
- delete self;
2487
- }
2488
-
2489
- FilterBasedCallData* calld_;
2490
- grpc_closure closure_;
2491
- };
2492
-
2493
- void ClientChannel::FilterBasedCallData::TryCheckResolution(bool was_queued) {
2494
- auto result = CheckResolution(was_queued);
2495
- if (result.has_value()) {
2496
- if (!result->ok()) {
2497
- PendingBatchesFail(*result, YieldCallCombiner);
2498
- return;
2499
- }
2500
- CreateDynamicCall();
2501
- }
2502
- }
2503
-
2504
- void ClientChannel::FilterBasedCallData::OnAddToQueueLocked() {
2505
- // Register call combiner cancellation callback.
2506
- resolver_call_canceller_ = new ResolverQueuedCallCanceller(this);
2507
- }
2508
-
2509
- void ClientChannel::FilterBasedCallData::RetryCheckResolutionLocked() {
2510
- // Lame the call combiner canceller.
2511
- resolver_call_canceller_ = nullptr;
2512
- // Do an async callback to resume call processing, so that we're not
2513
- // doing it while holding the channel's resolution mutex.
2514
- chand()->owning_stack_->EventEngine()->Run([this]() {
2515
- ApplicationCallbackExecCtx application_exec_ctx;
2516
- ExecCtx exec_ctx;
2517
- TryCheckResolution(/*was_queued=*/true);
2518
- });
2519
- }
2520
-
2521
- void ClientChannel::FilterBasedCallData::CreateDynamicCall() {
2522
- DynamicFilters::Call::Args args = {dynamic_filters(), pollent_, path_,
2523
- call_start_time_, deadline_, arena(),
2524
- call_context_, call_combiner()};
2525
- grpc_error_handle error;
2526
- DynamicFilters* channel_stack = args.channel_stack.get();
2527
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2528
- gpr_log(
2529
- GPR_INFO,
2530
- "chand=%p calld=%p: creating dynamic call stack on channel_stack=%p",
2531
- chand(), this, channel_stack);
2532
- }
2533
- dynamic_call_ = channel_stack->CreateCall(std::move(args), &error);
2534
- if (!error.ok()) {
2535
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2536
- gpr_log(GPR_INFO,
2537
- "chand=%p calld=%p: failed to create dynamic call: error=%s",
2538
- chand(), this, StatusToString(error).c_str());
2539
- }
2540
- PendingBatchesFail(error, YieldCallCombiner);
2541
- return;
2542
- }
2543
- PendingBatchesResume();
2544
- }
2545
-
2546
- void ClientChannel::FilterBasedCallData::
2547
- RecvTrailingMetadataReadyForConfigSelectorCommitCallback(
2548
- void* arg, grpc_error_handle error) {
2549
- auto* calld = static_cast<FilterBasedCallData*>(arg);
2550
- auto* chand = calld->chand();
2551
- auto* service_config_call_data =
2552
- GetServiceConfigCallData(calld->call_context());
2553
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_call_trace)) {
2554
- gpr_log(GPR_INFO,
2555
- "chand=%p calld=%p: got recv_trailing_metadata_ready: error=%s "
2556
- "service_config_call_data=%p",
2557
- chand, calld, StatusToString(error).c_str(),
2558
- service_config_call_data);
2559
- }
2560
- if (service_config_call_data != nullptr) {
2561
- service_config_call_data->Commit();
2562
- }
2563
- // Chain to original callback.
2564
- Closure::Run(DEBUG_LOCATION, calld->original_recv_trailing_metadata_ready_,
2565
- error);
2566
- }
2567
-
2568
- //
2569
- // ClientChannel::LoadBalancedCall::LbCallState
2570
- //
2571
-
2572
- class ClientChannel::LoadBalancedCall::LbCallState
2573
- : public ClientChannelLbCallState {
2574
- public:
2575
- explicit LbCallState(LoadBalancedCall* lb_call) : lb_call_(lb_call) {}
2576
-
2577
- void* Alloc(size_t size) override { return lb_call_->arena()->Alloc(size); }
2578
-
2579
- // Internal API to allow first-party LB policies to access per-call
2580
- // attributes set by the ConfigSelector.
2581
- ServiceConfigCallData::CallAttributeInterface* GetCallAttribute(
2582
- UniqueTypeName type) const override;
2583
-
2584
- private:
2585
- LoadBalancedCall* lb_call_;
2586
- };
2587
-
2588
- //
2589
- // ClientChannel::LoadBalancedCall::Metadata
2590
- //
2591
-
2592
- class ClientChannel::LoadBalancedCall::Metadata
2593
- : public LoadBalancingPolicy::MetadataInterface {
2594
- public:
2595
- explicit Metadata(grpc_metadata_batch* batch) : batch_(batch) {}
2596
-
2597
- void Add(absl::string_view key, absl::string_view value) override {
2598
- if (batch_ == nullptr) return;
2599
- // Gross, egregious hack to support legacy grpclb behavior.
2600
- // TODO(ctiller): Use a promise context for this once that plumbing is done.
2601
- if (key == GrpcLbClientStatsMetadata::key()) {
2602
- batch_->Set(
2603
- GrpcLbClientStatsMetadata(),
2604
- const_cast<GrpcLbClientStats*>(
2605
- reinterpret_cast<const GrpcLbClientStats*>(value.data())));
2606
- return;
2607
- }
2608
- batch_->Append(key, Slice::FromStaticString(value),
2609
- [key](absl::string_view error, const Slice& value) {
2610
- gpr_log(GPR_ERROR, "%s",
2611
- absl::StrCat(error, " key:", key,
2612
- " value:", value.as_string_view())
2613
- .c_str());
2614
- });
2615
- }
2616
-
2617
- std::vector<std::pair<std::string, std::string>> TestOnlyCopyToVector()
2618
- override {
2619
- if (batch_ == nullptr) return {};
2620
- Encoder encoder;
2621
- batch_->Encode(&encoder);
2622
- return encoder.Take();
2623
- }
2624
-
2625
- absl::optional<absl::string_view> Lookup(absl::string_view key,
2626
- std::string* buffer) const override {
2627
- if (batch_ == nullptr) return absl::nullopt;
2628
- return batch_->GetStringValue(key, buffer);
2629
- }
2630
-
2631
- private:
2632
- class Encoder {
2633
- public:
2634
- void Encode(const Slice& key, const Slice& value) {
2635
- out_.emplace_back(std::string(key.as_string_view()),
2636
- std::string(value.as_string_view()));
2637
- }
2638
-
2639
- template <class Which>
2640
- void Encode(Which, const typename Which::ValueType& value) {
2641
- auto value_slice = Which::Encode(value);
2642
- out_.emplace_back(std::string(Which::key()),
2643
- std::string(value_slice.as_string_view()));
2644
- }
2645
-
2646
- void Encode(GrpcTimeoutMetadata,
2647
- const typename GrpcTimeoutMetadata::ValueType&) {}
2648
- void Encode(HttpPathMetadata, const Slice&) {}
2649
- void Encode(HttpMethodMetadata,
2650
- const typename HttpMethodMetadata::ValueType&) {}
2651
-
2652
- std::vector<std::pair<std::string, std::string>> Take() {
2653
- return std::move(out_);
2654
- }
2655
-
2656
- private:
2657
- std::vector<std::pair<std::string, std::string>> out_;
2658
- };
2659
-
2660
- grpc_metadata_batch* batch_;
2661
- };
2662
-
2663
- //
2664
- // ClientChannel::LoadBalancedCall::LbCallState
2665
- //
2666
-
2667
- ServiceConfigCallData::CallAttributeInterface*
2668
- ClientChannel::LoadBalancedCall::LbCallState::GetCallAttribute(
2669
- UniqueTypeName type) const {
2670
- auto* service_config_call_data =
2671
- GetServiceConfigCallData(lb_call_->call_context());
2672
- return service_config_call_data->GetCallAttribute(type);
2673
- }
2674
-
2675
- //
2676
- // ClientChannel::LoadBalancedCall::BackendMetricAccessor
2677
- //
2678
-
2679
- class ClientChannel::LoadBalancedCall::BackendMetricAccessor
2680
- : public LoadBalancingPolicy::BackendMetricAccessor {
2681
- public:
2682
- BackendMetricAccessor(LoadBalancedCall* lb_call,
2683
- grpc_metadata_batch* recv_trailing_metadata)
2684
- : lb_call_(lb_call), recv_trailing_metadata_(recv_trailing_metadata) {}
2685
-
2686
- const BackendMetricData* GetBackendMetricData() override {
2687
- if (lb_call_->backend_metric_data_ == nullptr &&
2688
- recv_trailing_metadata_ != nullptr) {
2689
- if (const auto* md = recv_trailing_metadata_->get_pointer(
2690
- EndpointLoadMetricsBinMetadata())) {
2691
- BackendMetricAllocator allocator(lb_call_->arena());
2692
- lb_call_->backend_metric_data_ =
2693
- ParseBackendMetricData(md->as_string_view(), &allocator);
2694
- }
2695
- }
2696
- return lb_call_->backend_metric_data_;
2697
- }
2698
-
2699
- private:
2700
- class BackendMetricAllocator : public BackendMetricAllocatorInterface {
2701
- public:
2702
- explicit BackendMetricAllocator(Arena* arena) : arena_(arena) {}
2703
-
2704
- BackendMetricData* AllocateBackendMetricData() override {
2705
- return arena_->New<BackendMetricData>();
2706
- }
2707
-
2708
- char* AllocateString(size_t size) override {
2709
- return static_cast<char*>(arena_->Alloc(size));
2710
- }
2711
-
2712
- private:
2713
- Arena* arena_;
2714
- };
2715
-
2716
- LoadBalancedCall* lb_call_;
2717
- grpc_metadata_batch* recv_trailing_metadata_;
2718
- };
2719
-
2720
- //
2721
- // ClientChannel::LoadBalancedCall
2722
- //
2723
-
2724
- namespace {
2725
-
2726
- ClientCallTracer::CallAttemptTracer* CreateCallAttemptTracer(
2727
- grpc_call_context_element* context, bool is_transparent_retry) {
2728
- auto* call_tracer = static_cast<ClientCallTracer*>(
2729
- context[GRPC_CONTEXT_CALL_TRACER_ANNOTATION_INTERFACE].value);
2730
- if (call_tracer == nullptr) return nullptr;
2731
- auto* tracer = call_tracer->StartNewAttempt(is_transparent_retry);
2732
- context[GRPC_CONTEXT_CALL_TRACER].value = tracer;
2733
- return tracer;
2734
- }
2735
-
2736
- } // namespace
2737
-
2738
- ClientChannel::LoadBalancedCall::LoadBalancedCall(
2739
- ClientChannel* chand, grpc_call_context_element* call_context,
2740
- absl::AnyInvocable<void()> on_commit, bool is_transparent_retry)
2741
- : InternallyRefCounted(
2742
- GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)
2743
- ? "LoadBalancedCall"
2744
- : nullptr),
2745
- chand_(chand),
2746
- on_commit_(std::move(on_commit)) {
2747
- CreateCallAttemptTracer(call_context, is_transparent_retry);
2748
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2749
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: created", chand_, this);
2750
- }
2751
- }
2752
-
2753
- ClientChannel::LoadBalancedCall::~LoadBalancedCall() {
2754
- if (backend_metric_data_ != nullptr) {
2755
- backend_metric_data_->BackendMetricData::~BackendMetricData();
2756
- }
2757
- }
2758
-
2759
- void ClientChannel::LoadBalancedCall::RecordCallCompletion(
2760
- absl::Status status, grpc_metadata_batch* recv_trailing_metadata,
2761
- grpc_transport_stream_stats* transport_stream_stats,
2762
- absl::string_view peer_address) {
2763
- // If we have a tracer, notify it.
2764
- if (call_attempt_tracer() != nullptr) {
2765
- call_attempt_tracer()->RecordReceivedTrailingMetadata(
2766
- status, recv_trailing_metadata, transport_stream_stats);
2767
- }
2768
- // If the LB policy requested a callback for trailing metadata, invoke
2769
- // the callback.
2770
- if (lb_subchannel_call_tracker_ != nullptr) {
2771
- Metadata trailing_metadata(recv_trailing_metadata);
2772
- BackendMetricAccessor backend_metric_accessor(this, recv_trailing_metadata);
2773
- LoadBalancingPolicy::SubchannelCallTrackerInterface::FinishArgs args = {
2774
- peer_address, status, &trailing_metadata, &backend_metric_accessor};
2775
- lb_subchannel_call_tracker_->Finish(args);
2776
- lb_subchannel_call_tracker_.reset();
2777
- }
2778
- }
2779
-
2780
- void ClientChannel::LoadBalancedCall::RecordLatency() {
2781
- // Compute latency and report it to the tracer.
2782
- if (call_attempt_tracer() != nullptr) {
2783
- gpr_timespec latency =
2784
- gpr_cycle_counter_sub(gpr_get_cycle_counter(), lb_call_start_time_);
2785
- call_attempt_tracer()->RecordEnd(latency);
2786
- }
2787
- }
2788
-
2789
- void ClientChannel::LoadBalancedCall::RemoveCallFromLbQueuedCallsLocked() {
2790
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2791
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: removing from queued picks list",
2792
- chand_, this);
2793
- }
2794
- // Remove pollset_set linkage.
2795
- grpc_polling_entity_del_from_pollset_set(pollent(),
2796
- chand_->interested_parties_);
2797
- // Note: There's no need to actually remove the call from the queue
2798
- // here, beacuse that will be done in either
2799
- // LbQueuedCallCanceller::CancelLocked() or
2800
- // in ClientChannel::UpdateStateAndPickerLocked().
2801
- }
2802
-
2803
- void ClientChannel::LoadBalancedCall::AddCallToLbQueuedCallsLocked() {
2804
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2805
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: adding to queued picks list",
2806
- chand_, this);
2807
- }
2808
- // Add call's pollent to channel's interested_parties, so that I/O
2809
- // can be done under the call's CQ.
2810
- grpc_polling_entity_add_to_pollset_set(pollent(),
2811
- chand_->interested_parties_);
2812
- // Add to queue.
2813
- chand_->lb_queued_calls_.insert(Ref());
2814
- OnAddToQueueLocked();
2815
- }
2816
-
2817
- absl::optional<absl::Status> ClientChannel::LoadBalancedCall::PickSubchannel(
2818
- bool was_queued) {
2819
- // We may accumulate multiple pickers here, because if a picker says
2820
- // to queue the call, we check again to see if the picker has been
2821
- // updated before we queue it.
2822
- // We need to unref pickers in the WorkSerializer.
2823
- std::vector<RefCountedPtr<LoadBalancingPolicy::SubchannelPicker>> pickers;
2824
- auto cleanup = absl::MakeCleanup([&]() {
2825
- if (IsWorkSerializerDispatchEnabled()) return;
2826
- chand_->work_serializer_->Run(
2827
- [pickers = std::move(pickers)]() mutable {
2828
- for (auto& picker : pickers) {
2829
- picker.reset(DEBUG_LOCATION, "PickSubchannel");
2830
- }
2831
- },
2832
- DEBUG_LOCATION);
2833
- });
2834
- absl::AnyInvocable<void(RefCountedPtr<LoadBalancingPolicy::SubchannelPicker>)>
2835
- set_picker;
2836
- if (!IsWorkSerializerDispatchEnabled()) {
2837
- set_picker =
2838
- [&](RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker) {
2839
- pickers.emplace_back(std::move(picker));
2840
- };
2841
- } else {
2842
- pickers.emplace_back();
2843
- set_picker =
2844
- [&](RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker) {
2845
- pickers[0] = std::move(picker);
2846
- };
2847
- }
2848
- // Grab mutex and take a ref to the picker.
2849
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2850
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: grabbing LB mutex to get picker",
2851
- chand_, this);
2852
- }
2853
- RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> picker;
2854
- {
2855
- MutexLock lock(&chand_->lb_mu_);
2856
- set_picker(chand_->picker_);
2857
- }
2858
- while (true) {
2859
- // Do pick.
2860
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2861
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: performing pick with picker=%p",
2862
- chand_, this, pickers.back().get());
2863
- }
2864
- grpc_error_handle error;
2865
- bool pick_complete = PickSubchannelImpl(pickers.back().get(), &error);
2866
- if (!pick_complete) {
2867
- RefCountedPtr<LoadBalancingPolicy::SubchannelPicker> old_picker;
2868
- MutexLock lock(&chand_->lb_mu_);
2869
- // If picker has been swapped out since we grabbed it, try again.
2870
- if (pickers.back() != chand_->picker_) {
2871
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2872
- gpr_log(GPR_INFO,
2873
- "chand=%p lb_call=%p: pick not complete, but picker changed",
2874
- chand_, this);
2875
- }
2876
- if (IsWorkSerializerDispatchEnabled()) {
2877
- // Don't unref until after we release the mutex.
2878
- old_picker = std::move(pickers.back());
2879
- }
2880
- set_picker(chand_->picker_);
2881
- continue;
2882
- }
2883
- // Otherwise queue the pick to try again later when we get a new picker.
2884
- AddCallToLbQueuedCallsLocked();
2885
- return absl::nullopt;
2886
- }
2887
- // Pick is complete.
2888
- // If it was queued, add a trace annotation.
2889
- if (was_queued && call_attempt_tracer() != nullptr) {
2890
- call_attempt_tracer()->RecordAnnotation("Delayed LB pick complete.");
2891
- }
2892
- // If the pick failed, fail the call.
2893
- if (!error.ok()) {
2894
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2895
- gpr_log(GPR_INFO,
2896
- "chand=%p lb_call=%p: failed to pick subchannel: error=%s",
2897
- chand_, this, StatusToString(error).c_str());
2898
- }
2899
- return error;
2900
- }
2901
- // Pick succeeded.
2902
- Commit();
2903
- return absl::OkStatus();
2904
- }
2905
- }
2906
-
2907
- bool ClientChannel::LoadBalancedCall::PickSubchannelImpl(
2908
- LoadBalancingPolicy::SubchannelPicker* picker, grpc_error_handle* error) {
2909
- GPR_ASSERT(connected_subchannel_ == nullptr);
2910
- // Perform LB pick.
2911
- LoadBalancingPolicy::PickArgs pick_args;
2912
- Slice* path = send_initial_metadata()->get_pointer(HttpPathMetadata());
2913
- GPR_ASSERT(path != nullptr);
2914
- pick_args.path = path->as_string_view();
2915
- LbCallState lb_call_state(this);
2916
- pick_args.call_state = &lb_call_state;
2917
- Metadata initial_metadata(send_initial_metadata());
2918
- pick_args.initial_metadata = &initial_metadata;
2919
- auto result = picker->Pick(pick_args);
2920
- return HandlePickResult<bool>(
2921
- &result,
2922
- // CompletePick
2923
- [this](LoadBalancingPolicy::PickResult::Complete* complete_pick) {
2924
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2925
- gpr_log(GPR_INFO,
2926
- "chand=%p lb_call=%p: LB pick succeeded: subchannel=%p",
2927
- chand_, this, complete_pick->subchannel.get());
2928
- }
2929
- GPR_ASSERT(complete_pick->subchannel != nullptr);
2930
- // Grab a ref to the connected subchannel while we're still
2931
- // holding the data plane mutex.
2932
- SubchannelWrapper* subchannel =
2933
- static_cast<SubchannelWrapper*>(complete_pick->subchannel.get());
2934
- connected_subchannel_ = subchannel->connected_subchannel();
2935
- // If the subchannel has no connected subchannel (e.g., if the
2936
- // subchannel has moved out of state READY but the LB policy hasn't
2937
- // yet seen that change and given us a new picker), then just
2938
- // queue the pick. We'll try again as soon as we get a new picker.
2939
- if (connected_subchannel_ == nullptr) {
2940
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2941
- gpr_log(GPR_INFO,
2942
- "chand=%p lb_call=%p: subchannel returned by LB picker "
2943
- "has no connected subchannel; queueing pick",
2944
- chand_, this);
2945
- }
2946
- return false;
2947
- }
2948
- lb_subchannel_call_tracker_ =
2949
- std::move(complete_pick->subchannel_call_tracker);
2950
- if (lb_subchannel_call_tracker_ != nullptr) {
2951
- lb_subchannel_call_tracker_->Start();
2952
- }
2953
- return true;
2954
- },
2955
- // QueuePick
2956
- [this](LoadBalancingPolicy::PickResult::Queue* /*queue_pick*/) {
2957
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2958
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: LB pick queued", chand_,
2959
- this);
2960
- }
2961
- return false;
2962
- },
2963
- // FailPick
2964
- [this, &error](LoadBalancingPolicy::PickResult::Fail* fail_pick) {
2965
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2966
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: LB pick failed: %s", chand_,
2967
- this, fail_pick->status.ToString().c_str());
2968
- }
2969
- // If wait_for_ready is false, then the error indicates the RPC
2970
- // attempt's final status.
2971
- if (!send_initial_metadata()
2972
- ->GetOrCreatePointer(WaitForReady())
2973
- ->value) {
2974
- *error = absl_status_to_grpc_error(MaybeRewriteIllegalStatusCode(
2975
- std::move(fail_pick->status), "LB pick"));
2976
- return true;
2977
- }
2978
- // If wait_for_ready is true, then queue to retry when we get a new
2979
- // picker.
2980
- return false;
2981
- },
2982
- // DropPick
2983
- [this, &error](LoadBalancingPolicy::PickResult::Drop* drop_pick) {
2984
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
2985
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: LB pick dropped: %s", chand_,
2986
- this, drop_pick->status.ToString().c_str());
2987
- }
2988
- *error = grpc_error_set_int(
2989
- absl_status_to_grpc_error(MaybeRewriteIllegalStatusCode(
2990
- std::move(drop_pick->status), "LB drop")),
2991
- StatusIntProperty::kLbPolicyDrop, 1);
2992
- return true;
2993
- });
2994
- }
2995
-
2996
- //
2997
- // ClientChannel::FilterBasedLoadBalancedCall
2998
- //
2999
-
3000
- ClientChannel::FilterBasedLoadBalancedCall::FilterBasedLoadBalancedCall(
3001
- ClientChannel* chand, const grpc_call_element_args& args,
3002
- grpc_polling_entity* pollent, grpc_closure* on_call_destruction_complete,
3003
- absl::AnyInvocable<void()> on_commit, bool is_transparent_retry)
3004
- : LoadBalancedCall(chand, args.context, std::move(on_commit),
3005
- is_transparent_retry),
3006
- deadline_(args.deadline),
3007
- arena_(args.arena),
3008
- call_context_(args.context),
3009
- owning_call_(args.call_stack),
3010
- call_combiner_(args.call_combiner),
3011
- pollent_(pollent),
3012
- on_call_destruction_complete_(on_call_destruction_complete) {}
3013
-
3014
- ClientChannel::FilterBasedLoadBalancedCall::~FilterBasedLoadBalancedCall() {
3015
- // Make sure there are no remaining pending batches.
3016
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3017
- GPR_ASSERT(pending_batches_[i] == nullptr);
3018
- }
3019
- if (on_call_destruction_complete_ != nullptr) {
3020
- ExecCtx::Run(DEBUG_LOCATION, on_call_destruction_complete_,
3021
- absl::OkStatus());
3022
- }
3023
- }
3024
-
3025
- void ClientChannel::FilterBasedLoadBalancedCall::Orphan() {
3026
- // If the recv_trailing_metadata op was never started, then notify
3027
- // about call completion here, as best we can. We assume status
3028
- // CANCELLED in this case.
3029
- if (recv_trailing_metadata_ == nullptr) {
3030
- RecordCallCompletion(absl::CancelledError("call cancelled"), nullptr,
3031
- nullptr, "");
3032
- }
3033
- RecordLatency();
3034
- // Delegate to parent.
3035
- LoadBalancedCall::Orphan();
3036
- }
3037
-
3038
- size_t ClientChannel::FilterBasedLoadBalancedCall::GetBatchIndex(
3039
- grpc_transport_stream_op_batch* batch) {
3040
- // Note: It is important the send_initial_metadata be the first entry
3041
- // here, since the code in PickSubchannelImpl() assumes it will be.
3042
- if (batch->send_initial_metadata) return 0;
3043
- if (batch->send_message) return 1;
3044
- if (batch->send_trailing_metadata) return 2;
3045
- if (batch->recv_initial_metadata) return 3;
3046
- if (batch->recv_message) return 4;
3047
- if (batch->recv_trailing_metadata) return 5;
3048
- GPR_UNREACHABLE_CODE(return (size_t)-1);
3049
- }
3050
-
3051
- // This is called via the call combiner, so access to calld is synchronized.
3052
- void ClientChannel::FilterBasedLoadBalancedCall::PendingBatchesAdd(
3053
- grpc_transport_stream_op_batch* batch) {
3054
- const size_t idx = GetBatchIndex(batch);
3055
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3056
- gpr_log(GPR_INFO,
3057
- "chand=%p lb_call=%p: adding pending batch at index %" PRIuPTR,
3058
- chand(), this, idx);
3059
- }
3060
- GPR_ASSERT(pending_batches_[idx] == nullptr);
3061
- pending_batches_[idx] = batch;
3062
- }
3063
-
3064
- // This is called via the call combiner, so access to calld is synchronized.
3065
- void ClientChannel::FilterBasedLoadBalancedCall::FailPendingBatchInCallCombiner(
3066
- void* arg, grpc_error_handle error) {
3067
- grpc_transport_stream_op_batch* batch =
3068
- static_cast<grpc_transport_stream_op_batch*>(arg);
3069
- auto* self = static_cast<FilterBasedLoadBalancedCall*>(
3070
- batch->handler_private.extra_arg);
3071
- // Note: This will release the call combiner.
3072
- grpc_transport_stream_op_batch_finish_with_failure(batch, error,
3073
- self->call_combiner_);
3074
- }
3075
-
3076
- // This is called via the call combiner, so access to calld is synchronized.
3077
- void ClientChannel::FilterBasedLoadBalancedCall::PendingBatchesFail(
3078
- grpc_error_handle error,
3079
- YieldCallCombinerPredicate yield_call_combiner_predicate) {
3080
- GPR_ASSERT(!error.ok());
3081
- failure_error_ = error;
3082
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3083
- size_t num_batches = 0;
3084
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3085
- if (pending_batches_[i] != nullptr) ++num_batches;
3086
- }
3087
- gpr_log(GPR_INFO,
3088
- "chand=%p lb_call=%p: failing %" PRIuPTR " pending batches: %s",
3089
- chand(), this, num_batches, StatusToString(error).c_str());
3090
- }
3091
- CallCombinerClosureList closures;
3092
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3093
- grpc_transport_stream_op_batch*& batch = pending_batches_[i];
3094
- if (batch != nullptr) {
3095
- batch->handler_private.extra_arg = this;
3096
- GRPC_CLOSURE_INIT(&batch->handler_private.closure,
3097
- FailPendingBatchInCallCombiner, batch,
3098
- grpc_schedule_on_exec_ctx);
3099
- closures.Add(&batch->handler_private.closure, error,
3100
- "PendingBatchesFail");
3101
- batch = nullptr;
3102
- }
3103
- }
3104
- if (yield_call_combiner_predicate(closures)) {
3105
- closures.RunClosures(call_combiner_);
3106
- } else {
3107
- closures.RunClosuresWithoutYielding(call_combiner_);
3108
- }
3109
- }
3110
-
3111
- // This is called via the call combiner, so access to calld is synchronized.
3112
- void ClientChannel::FilterBasedLoadBalancedCall::
3113
- ResumePendingBatchInCallCombiner(void* arg, grpc_error_handle /*ignored*/) {
3114
- grpc_transport_stream_op_batch* batch =
3115
- static_cast<grpc_transport_stream_op_batch*>(arg);
3116
- SubchannelCall* subchannel_call =
3117
- static_cast<SubchannelCall*>(batch->handler_private.extra_arg);
3118
- // Note: This will release the call combiner.
3119
- subchannel_call->StartTransportStreamOpBatch(batch);
3120
- }
3121
-
3122
- // This is called via the call combiner, so access to calld is synchronized.
3123
- void ClientChannel::FilterBasedLoadBalancedCall::PendingBatchesResume() {
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: starting %" PRIuPTR
3131
- " pending batches on subchannel_call=%p",
3132
- chand(), this, num_batches, subchannel_call_.get());
3133
- }
3134
- CallCombinerClosureList closures;
3135
- for (size_t i = 0; i < GPR_ARRAY_SIZE(pending_batches_); ++i) {
3136
- grpc_transport_stream_op_batch*& batch = pending_batches_[i];
3137
- if (batch != nullptr) {
3138
- batch->handler_private.extra_arg = subchannel_call_.get();
3139
- GRPC_CLOSURE_INIT(&batch->handler_private.closure,
3140
- ResumePendingBatchInCallCombiner, batch,
3141
- grpc_schedule_on_exec_ctx);
3142
- closures.Add(&batch->handler_private.closure, absl::OkStatus(),
3143
- "resuming pending batch from LB call");
3144
- batch = nullptr;
3145
- }
3146
- }
3147
- // Note: This will release the call combiner.
3148
- closures.RunClosures(call_combiner_);
3149
- }
3150
-
3151
- void ClientChannel::FilterBasedLoadBalancedCall::StartTransportStreamOpBatch(
3152
- grpc_transport_stream_op_batch* batch) {
3153
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace) ||
3154
- GRPC_TRACE_FLAG_ENABLED(grpc_trace_channel)) {
3155
- gpr_log(GPR_INFO,
3156
- "chand=%p lb_call=%p: batch started from above: %s, "
3157
- "call_attempt_tracer()=%p",
3158
- chand(), this,
3159
- grpc_transport_stream_op_batch_string(batch, false).c_str(),
3160
- call_attempt_tracer());
3161
- }
3162
- // Handle call tracing.
3163
- if (call_attempt_tracer() != nullptr) {
3164
- // Record send ops in tracer.
3165
- if (batch->cancel_stream) {
3166
- call_attempt_tracer()->RecordCancel(
3167
- batch->payload->cancel_stream.cancel_error);
3168
- }
3169
- if (batch->send_initial_metadata) {
3170
- call_attempt_tracer()->RecordSendInitialMetadata(
3171
- batch->payload->send_initial_metadata.send_initial_metadata);
3172
- }
3173
- if (batch->send_trailing_metadata) {
3174
- call_attempt_tracer()->RecordSendTrailingMetadata(
3175
- batch->payload->send_trailing_metadata.send_trailing_metadata);
3176
- }
3177
- // Intercept recv ops.
3178
- if (batch->recv_initial_metadata) {
3179
- recv_initial_metadata_ =
3180
- batch->payload->recv_initial_metadata.recv_initial_metadata;
3181
- original_recv_initial_metadata_ready_ =
3182
- batch->payload->recv_initial_metadata.recv_initial_metadata_ready;
3183
- GRPC_CLOSURE_INIT(&recv_initial_metadata_ready_, RecvInitialMetadataReady,
3184
- this, nullptr);
3185
- batch->payload->recv_initial_metadata.recv_initial_metadata_ready =
3186
- &recv_initial_metadata_ready_;
3187
- }
3188
- }
3189
- // Intercept recv_trailing_metadata even if there is no call tracer,
3190
- // since we may need to notify the LB policy about trailing metadata.
3191
- if (batch->recv_trailing_metadata) {
3192
- recv_trailing_metadata_ =
3193
- batch->payload->recv_trailing_metadata.recv_trailing_metadata;
3194
- transport_stream_stats_ =
3195
- batch->payload->recv_trailing_metadata.collect_stats;
3196
- original_recv_trailing_metadata_ready_ =
3197
- batch->payload->recv_trailing_metadata.recv_trailing_metadata_ready;
3198
- GRPC_CLOSURE_INIT(&recv_trailing_metadata_ready_, RecvTrailingMetadataReady,
3199
- this, nullptr);
3200
- batch->payload->recv_trailing_metadata.recv_trailing_metadata_ready =
3201
- &recv_trailing_metadata_ready_;
3202
- }
3203
- // If we've already gotten a subchannel call, pass the batch down to it.
3204
- // Note that once we have picked a subchannel, we do not need to acquire
3205
- // the channel's data plane mutex, which is more efficient (especially for
3206
- // streaming calls).
3207
- if (subchannel_call_ != nullptr) {
3208
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3209
- gpr_log(GPR_INFO,
3210
- "chand=%p lb_call=%p: starting batch on subchannel_call=%p",
3211
- chand(), this, subchannel_call_.get());
3212
- }
3213
- subchannel_call_->StartTransportStreamOpBatch(batch);
3214
- return;
3215
- }
3216
- // We do not yet have a subchannel call.
3217
- //
3218
- // If we've previously been cancelled, immediately fail any new batches.
3219
- if (GPR_UNLIKELY(!cancel_error_.ok())) {
3220
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3221
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: failing batch with error: %s",
3222
- chand(), this, StatusToString(cancel_error_).c_str());
3223
- }
3224
- // Note: This will release the call combiner.
3225
- grpc_transport_stream_op_batch_finish_with_failure(batch, cancel_error_,
3226
- call_combiner_);
3227
- return;
3228
- }
3229
- // Handle cancellation.
3230
- if (GPR_UNLIKELY(batch->cancel_stream)) {
3231
- // Stash a copy of cancel_error in our call data, so that we can use
3232
- // it for subsequent operations. This ensures that if the call is
3233
- // cancelled before any batches are passed down (e.g., if the deadline
3234
- // is in the past when the call starts), we can return the right
3235
- // error to the caller when the first batch does get passed down.
3236
- cancel_error_ = batch->payload->cancel_stream.cancel_error;
3237
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3238
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: recording cancel_error=%s",
3239
- chand(), this, StatusToString(cancel_error_).c_str());
3240
- }
3241
- // Fail all pending batches.
3242
- PendingBatchesFail(cancel_error_, NoYieldCallCombiner);
3243
- // Note: This will release the call combiner.
3244
- grpc_transport_stream_op_batch_finish_with_failure(batch, cancel_error_,
3245
- call_combiner_);
3246
- return;
3247
- }
3248
- // Add the batch to the pending list.
3249
- PendingBatchesAdd(batch);
3250
- // For batches containing a send_initial_metadata op, acquire the
3251
- // channel's LB mutex to pick a subchannel.
3252
- if (GPR_LIKELY(batch->send_initial_metadata)) {
3253
- TryPick(/*was_queued=*/false);
3254
- } else {
3255
- // For all other batches, release the call combiner.
3256
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3257
- gpr_log(GPR_INFO,
3258
- "chand=%p lb_call=%p: saved batch, yielding call combiner",
3259
- chand(), this);
3260
- }
3261
- GRPC_CALL_COMBINER_STOP(call_combiner_,
3262
- "batch does not include send_initial_metadata");
3263
- }
3264
- }
3265
-
3266
- void ClientChannel::FilterBasedLoadBalancedCall::RecvInitialMetadataReady(
3267
- void* arg, grpc_error_handle error) {
3268
- auto* self = static_cast<FilterBasedLoadBalancedCall*>(arg);
3269
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3270
- gpr_log(GPR_INFO,
3271
- "chand=%p lb_call=%p: got recv_initial_metadata_ready: error=%s",
3272
- self->chand(), self, StatusToString(error).c_str());
3273
- }
3274
- if (error.ok()) {
3275
- // recv_initial_metadata_flags is not populated for clients
3276
- self->call_attempt_tracer()->RecordReceivedInitialMetadata(
3277
- self->recv_initial_metadata_);
3278
- auto* peer_string = self->recv_initial_metadata_->get_pointer(PeerString());
3279
- if (peer_string != nullptr) self->peer_string_ = peer_string->Ref();
3280
- }
3281
- Closure::Run(DEBUG_LOCATION, self->original_recv_initial_metadata_ready_,
3282
- error);
3283
- }
3284
-
3285
- void ClientChannel::FilterBasedLoadBalancedCall::RecvTrailingMetadataReady(
3286
- void* arg, grpc_error_handle error) {
3287
- auto* self = static_cast<FilterBasedLoadBalancedCall*>(arg);
3288
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3289
- gpr_log(GPR_INFO,
3290
- "chand=%p lb_call=%p: got recv_trailing_metadata_ready: error=%s "
3291
- "call_attempt_tracer()=%p lb_subchannel_call_tracker_=%p "
3292
- "failure_error_=%s",
3293
- self->chand(), self, StatusToString(error).c_str(),
3294
- self->call_attempt_tracer(), self->lb_subchannel_call_tracker(),
3295
- StatusToString(self->failure_error_).c_str());
3296
- }
3297
- // Check if we have a tracer or an LB callback to invoke.
3298
- if (self->call_attempt_tracer() != nullptr ||
3299
- self->lb_subchannel_call_tracker() != nullptr) {
3300
- // Get the call's status.
3301
- absl::Status status;
3302
- if (!error.ok()) {
3303
- // Get status from error.
3304
- grpc_status_code code;
3305
- std::string message;
3306
- grpc_error_get_status(error, self->deadline_, &code, &message,
3307
- /*http_error=*/nullptr, /*error_string=*/nullptr);
3308
- status = absl::Status(static_cast<absl::StatusCode>(code), message);
3309
- } else {
3310
- // Get status from headers.
3311
- const auto& md = *self->recv_trailing_metadata_;
3312
- grpc_status_code code =
3313
- md.get(GrpcStatusMetadata()).value_or(GRPC_STATUS_UNKNOWN);
3314
- if (code != GRPC_STATUS_OK) {
3315
- absl::string_view message;
3316
- if (const auto* grpc_message = md.get_pointer(GrpcMessageMetadata())) {
3317
- message = grpc_message->as_string_view();
3318
- }
3319
- status = absl::Status(static_cast<absl::StatusCode>(code), message);
3320
- }
3321
- }
3322
- absl::string_view peer_string;
3323
- if (self->peer_string_.has_value()) {
3324
- peer_string = self->peer_string_->as_string_view();
3325
- }
3326
- self->RecordCallCompletion(status, self->recv_trailing_metadata_,
3327
- self->transport_stream_stats_, peer_string);
3328
- }
3329
- // Chain to original callback.
3330
- if (!self->failure_error_.ok()) {
3331
- error = self->failure_error_;
3332
- self->failure_error_ = absl::OkStatus();
3333
- }
3334
- Closure::Run(DEBUG_LOCATION, self->original_recv_trailing_metadata_ready_,
3335
- error);
3336
- }
3337
-
3338
- // A class to handle the call combiner cancellation callback for a
3339
- // queued pick.
3340
- // TODO(roth): When we implement hedging support, we won't be able to
3341
- // register a call combiner cancellation closure for each LB pick,
3342
- // because there may be multiple LB picks happening in parallel.
3343
- // Instead, we will probably need to maintain a list in the CallData
3344
- // object of pending LB picks to be cancelled when the closure runs.
3345
- class ClientChannel::FilterBasedLoadBalancedCall::LbQueuedCallCanceller {
3346
- public:
3347
- explicit LbQueuedCallCanceller(
3348
- RefCountedPtr<FilterBasedLoadBalancedCall> lb_call)
3349
- : lb_call_(std::move(lb_call)) {
3350
- GRPC_CALL_STACK_REF(lb_call_->owning_call_, "LbQueuedCallCanceller");
3351
- GRPC_CLOSURE_INIT(&closure_, &CancelLocked, this, nullptr);
3352
- lb_call_->call_combiner_->SetNotifyOnCancel(&closure_);
3353
- }
3354
-
3355
- private:
3356
- static void CancelLocked(void* arg, grpc_error_handle error) {
3357
- auto* self = static_cast<LbQueuedCallCanceller*>(arg);
3358
- auto* lb_call = self->lb_call_.get();
3359
- auto* chand = lb_call->chand();
3360
- {
3361
- MutexLock lock(&chand->lb_mu_);
3362
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3363
- gpr_log(GPR_INFO,
3364
- "chand=%p lb_call=%p: cancelling queued pick: "
3365
- "error=%s self=%p calld->pick_canceller=%p",
3366
- chand, lb_call, StatusToString(error).c_str(), self,
3367
- lb_call->lb_call_canceller_);
3368
- }
3369
- if (lb_call->lb_call_canceller_ == self && !error.ok()) {
3370
- lb_call->Commit();
3371
- // Remove pick from list of queued picks.
3372
- lb_call->RemoveCallFromLbQueuedCallsLocked();
3373
- // Remove from queued picks list.
3374
- chand->lb_queued_calls_.erase(self->lb_call_);
3375
- // Fail pending batches on the call.
3376
- lb_call->PendingBatchesFail(error,
3377
- YieldCallCombinerIfPendingBatchesFound);
3378
- }
3379
- }
3380
- // Unref lb_call before unreffing the call stack, since unreffing
3381
- // the call stack may destroy the arena in which lb_call is allocated.
3382
- auto* owning_call = lb_call->owning_call_;
3383
- self->lb_call_.reset();
3384
- GRPC_CALL_STACK_UNREF(owning_call, "LbQueuedCallCanceller");
3385
- delete self;
3386
- }
3387
-
3388
- RefCountedPtr<FilterBasedLoadBalancedCall> lb_call_;
3389
- grpc_closure closure_;
3390
- };
3391
-
3392
- void ClientChannel::FilterBasedLoadBalancedCall::TryPick(bool was_queued) {
3393
- auto result = PickSubchannel(was_queued);
3394
- if (result.has_value()) {
3395
- if (!result->ok()) {
3396
- PendingBatchesFail(*result, YieldCallCombiner);
3397
- return;
3398
- }
3399
- CreateSubchannelCall();
3400
- }
3401
- }
3402
-
3403
- void ClientChannel::FilterBasedLoadBalancedCall::OnAddToQueueLocked() {
3404
- // Register call combiner cancellation callback.
3405
- lb_call_canceller_ = new LbQueuedCallCanceller(Ref());
3406
- }
3407
-
3408
- void ClientChannel::FilterBasedLoadBalancedCall::RetryPickLocked() {
3409
- // Lame the call combiner canceller.
3410
- lb_call_canceller_ = nullptr;
3411
- // Do an async callback to resume call processing, so that we're not
3412
- // doing it while holding the channel's LB mutex.
3413
- // TODO(roth): We should really be using EventEngine::Run() here
3414
- // instead of ExecCtx::Run(). Unfortunately, doing that seems to cause
3415
- // a flaky TSAN failure for reasons that I do not fully understand.
3416
- // However, given that we are working toward eliminating this code as
3417
- // part of the promise conversion, it doesn't seem worth further
3418
- // investigation right now.
3419
- ExecCtx::Run(DEBUG_LOCATION, NewClosure([this](grpc_error_handle) {
3420
- // If there are a lot of queued calls here, resuming them
3421
- // all may cause us to stay inside C-core for a long period
3422
- // of time. All of that work would be done using the same
3423
- // ExecCtx instance and therefore the same cached value of
3424
- // "now". The longer it takes to finish all of this work
3425
- // and exit from C-core, the more stale the cached value of
3426
- // "now" may become. This can cause problems whereby (e.g.)
3427
- // we calculate a timer deadline based on the stale value,
3428
- // which results in the timer firing too early. To avoid
3429
- // this, we invalidate the cached value for each call we
3430
- // process.
3431
- ExecCtx::Get()->InvalidateNow();
3432
- TryPick(/*was_queued=*/true);
3433
- }),
3434
- absl::OkStatus());
3435
- }
3436
-
3437
- void ClientChannel::FilterBasedLoadBalancedCall::CreateSubchannelCall() {
3438
- Slice* path = send_initial_metadata()->get_pointer(HttpPathMetadata());
3439
- GPR_ASSERT(path != nullptr);
3440
- SubchannelCall::Args call_args = {
3441
- connected_subchannel()->Ref(), pollent_, path->Ref(), /*start_time=*/0,
3442
- deadline_, arena_,
3443
- // TODO(roth): When we implement hedging support, we will probably
3444
- // need to use a separate call context for each subchannel call.
3445
- call_context_, call_combiner_};
3446
- grpc_error_handle error;
3447
- subchannel_call_ = SubchannelCall::Create(std::move(call_args), &error);
3448
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3449
- gpr_log(GPR_INFO,
3450
- "chand=%p lb_call=%p: create subchannel_call=%p: error=%s", chand(),
3451
- this, subchannel_call_.get(), StatusToString(error).c_str());
3452
- }
3453
- if (on_call_destruction_complete_ != nullptr) {
3454
- subchannel_call_->SetAfterCallStackDestroy(on_call_destruction_complete_);
3455
- on_call_destruction_complete_ = nullptr;
3456
- }
3457
- if (GPR_UNLIKELY(!error.ok())) {
3458
- PendingBatchesFail(error, YieldCallCombiner);
3459
- } else {
3460
- PendingBatchesResume();
3461
- }
3462
- }
3463
-
3464
- //
3465
- // ClientChannel::PromiseBasedLoadBalancedCall
3466
- //
3467
-
3468
- ClientChannel::PromiseBasedLoadBalancedCall::PromiseBasedLoadBalancedCall(
3469
- ClientChannel* chand, absl::AnyInvocable<void()> on_commit,
3470
- bool is_transparent_retry)
3471
- : LoadBalancedCall(chand, GetContext<grpc_call_context_element>(),
3472
- std::move(on_commit), is_transparent_retry) {}
3473
-
3474
- ArenaPromise<ServerMetadataHandle>
3475
- ClientChannel::PromiseBasedLoadBalancedCall::MakeCallPromise(
3476
- CallArgs call_args, OrphanablePtr<PromiseBasedLoadBalancedCall> lb_call) {
3477
- pollent_ = NowOrNever(call_args.polling_entity->WaitAndCopy()).value();
3478
- // Record ops in tracer.
3479
- if (call_attempt_tracer() != nullptr) {
3480
- call_attempt_tracer()->RecordSendInitialMetadata(
3481
- call_args.client_initial_metadata.get());
3482
- // TODO(ctiller): Find a way to do this without registering a no-op mapper.
3483
- call_args.client_to_server_messages->InterceptAndMapWithHalfClose(
3484
- [](MessageHandle message) { return message; }, // No-op.
3485
- [this]() {
3486
- // TODO(roth): Change CallTracer API to not pass metadata
3487
- // batch to this method, since the batch is always empty.
3488
- grpc_metadata_batch metadata(GetContext<Arena>());
3489
- call_attempt_tracer()->RecordSendTrailingMetadata(&metadata);
3490
- });
3491
- }
3492
- // Extract peer name from server initial metadata.
3493
- call_args.server_initial_metadata->InterceptAndMap(
3494
- [this](ServerMetadataHandle metadata) {
3495
- if (call_attempt_tracer() != nullptr) {
3496
- call_attempt_tracer()->RecordReceivedInitialMetadata(metadata.get());
3497
- }
3498
- Slice* peer_string = metadata->get_pointer(PeerString());
3499
- if (peer_string != nullptr) peer_string_ = peer_string->Ref();
3500
- return metadata;
3501
- });
3502
- client_initial_metadata_ = std::move(call_args.client_initial_metadata);
3503
- return OnCancel(
3504
- Map(TrySeq(
3505
- // LB pick.
3506
- [this]() -> Poll<absl::Status> {
3507
- auto result = PickSubchannel(was_queued_);
3508
- if (GRPC_TRACE_FLAG_ENABLED(
3509
- grpc_client_channel_lb_call_trace)) {
3510
- gpr_log(GPR_INFO,
3511
- "chand=%p lb_call=%p: %sPickSubchannel() returns %s",
3512
- chand(), this,
3513
- Activity::current()->DebugTag().c_str(),
3514
- result.has_value() ? result->ToString().c_str()
3515
- : "Pending");
3516
- }
3517
- if (result == absl::nullopt) return Pending{};
3518
- return std::move(*result);
3519
- },
3520
- [this, call_args = std::move(call_args)]() mutable
3521
- -> ArenaPromise<ServerMetadataHandle> {
3522
- call_args.client_initial_metadata =
3523
- std::move(client_initial_metadata_);
3524
- return connected_subchannel()->MakeCallPromise(
3525
- std::move(call_args));
3526
- }),
3527
- // Record call completion.
3528
- [this](ServerMetadataHandle metadata) {
3529
- if (call_attempt_tracer() != nullptr ||
3530
- lb_subchannel_call_tracker() != nullptr) {
3531
- absl::Status status;
3532
- grpc_status_code code = metadata->get(GrpcStatusMetadata())
3533
- .value_or(GRPC_STATUS_UNKNOWN);
3534
- if (code != GRPC_STATUS_OK) {
3535
- absl::string_view message;
3536
- if (const auto* grpc_message =
3537
- metadata->get_pointer(GrpcMessageMetadata())) {
3538
- message = grpc_message->as_string_view();
3539
- }
3540
- status =
3541
- absl::Status(static_cast<absl::StatusCode>(code), message);
3542
- }
3543
- RecordCallCompletion(status, metadata.get(),
3544
- &GetContext<CallContext>()
3545
- ->call_stats()
3546
- ->transport_stream_stats,
3547
- peer_string_.as_string_view());
3548
- }
3549
- RecordLatency();
3550
- return metadata;
3551
- }),
3552
- [lb_call = std::move(lb_call)]() {
3553
- // If the waker is pending, then we need to remove ourself from
3554
- // the list of queued LB calls.
3555
- if (!lb_call->waker_.is_unwakeable()) {
3556
- MutexLock lock(&lb_call->chand()->lb_mu_);
3557
- lb_call->Commit();
3558
- // Remove pick from list of queued picks.
3559
- lb_call->RemoveCallFromLbQueuedCallsLocked();
3560
- // Remove from queued picks list.
3561
- lb_call->chand()->lb_queued_calls_.erase(lb_call.get());
3562
- }
3563
- // TODO(ctiller): We don't have access to the call's actual status
3564
- // here, so we just assume CANCELLED. We could change this to use
3565
- // CallFinalization instead of OnCancel() so that we can get the
3566
- // actual status. But we should also have access to the trailing
3567
- // metadata, which we don't have in either case. Ultimately, we
3568
- // need a better story for code that needs to run at the end of a
3569
- // call in both cancellation and non-cancellation cases that needs
3570
- // access to server trailing metadata and the call's real status.
3571
- if (lb_call->call_attempt_tracer() != nullptr) {
3572
- lb_call->call_attempt_tracer()->RecordCancel(
3573
- absl::CancelledError("call cancelled"));
3574
- }
3575
- if (lb_call->call_attempt_tracer() != nullptr ||
3576
- lb_call->lb_subchannel_call_tracker() != nullptr) {
3577
- // If we were cancelled without recording call completion, then
3578
- // record call completion here, as best we can. We assume status
3579
- // CANCELLED in this case.
3580
- lb_call->RecordCallCompletion(absl::CancelledError("call cancelled"),
3581
- nullptr, nullptr, "");
3582
- }
3583
- });
3584
- }
3585
-
3586
- Arena* ClientChannel::PromiseBasedLoadBalancedCall::arena() const {
3587
- return GetContext<Arena>();
3588
- }
3589
-
3590
- grpc_call_context_element*
3591
- ClientChannel::PromiseBasedLoadBalancedCall::call_context() const {
3592
- return GetContext<grpc_call_context_element>();
3593
- }
3594
-
3595
- grpc_metadata_batch*
3596
- ClientChannel::PromiseBasedLoadBalancedCall::send_initial_metadata() const {
3597
- return client_initial_metadata_.get();
3598
- }
3599
-
3600
- void ClientChannel::PromiseBasedLoadBalancedCall::OnAddToQueueLocked() {
3601
- waker_ = Activity::current()->MakeNonOwningWaker();
3602
- was_queued_ = true;
3603
- }
3604
-
3605
- void ClientChannel::PromiseBasedLoadBalancedCall::RetryPickLocked() {
3606
- if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_lb_call_trace)) {
3607
- gpr_log(GPR_INFO, "chand=%p lb_call=%p: RetryPickLocked()", chand(), this);
3608
- }
3609
- waker_.WakeupAsync();
3610
- }
3611
-
3612
- } // namespace grpc_core