grpc 1.83.1 → 1.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +21 -17
  3. data/include/grpc/credentials.h +10 -0
  4. data/include/grpc/grpc_security_constants.h +2 -0
  5. data/include/grpc/impl/channel_arg_names.h +9 -0
  6. data/src/core/call/call_filters.h +4 -2
  7. data/src/core/call/client_call.cc +20 -8
  8. data/src/core/call/client_call.h +4 -0
  9. data/src/core/call/interception_chain.cc +2 -0
  10. data/src/core/call/interception_chain.h +14 -1
  11. data/src/core/call/metadata.cc +1 -3
  12. data/src/core/call/metadata_batch.h +13 -5
  13. data/src/core/call/server_call.cc +31 -14
  14. data/src/core/call/server_call.h +4 -0
  15. data/src/core/channelz/text_encode.cc +9 -4
  16. data/src/core/channelz/v2tov1/convert.cc +2 -2
  17. data/src/core/client_channel/backup_poller.cc +1 -2
  18. data/src/core/client_channel/client_channel.cc +6 -33
  19. data/src/core/client_channel/client_channel_filter.cc +22 -55
  20. data/src/core/client_channel/client_channel_filter.h +2 -2
  21. data/src/core/client_channel/client_channel_service_config.cc +3 -19
  22. data/src/core/client_channel/direct_channel.cc +7 -1
  23. data/src/core/client_channel/direct_channel.h +2 -2
  24. data/src/core/client_channel/load_balanced_call_destination.cc +5 -3
  25. data/src/core/client_channel/retry_filter_legacy_call_data.cc +5 -12
  26. data/src/core/client_channel/subchannel.cc +310 -1058
  27. data/src/core/client_channel/subchannel.h +44 -329
  28. data/src/core/client_channel/subchannel_metrics.cc +48 -0
  29. data/src/core/client_channel/subchannel_metrics.h +60 -0
  30. data/src/core/credentials/call/external/file_external_account_credentials.cc +1 -1
  31. data/src/core/credentials/call/external/url_external_account_credentials.cc +2 -3
  32. data/src/core/credentials/call/gcp_service_account_identity/gcp_service_account_identity_credentials.cc +8 -24
  33. data/src/core/credentials/call/gcp_service_account_identity/gcp_service_account_identity_credentials.h +3 -6
  34. data/src/core/credentials/call/gdch_service_account/gdch_service_account_credentials.cc +525 -0
  35. data/src/core/credentials/call/gdch_service_account/gdch_service_account_credentials.h +138 -0
  36. data/src/core/credentials/call/json_util.h +1 -0
  37. data/src/core/credentials/call/jwt/json_token.cc +10 -2
  38. data/src/core/credentials/call/jwt/jwt_verifier.cc +15 -1
  39. data/src/core/credentials/call/jwt_token_file/jwt_token_file_call_credentials.cc +1 -1
  40. data/src/core/credentials/call/oauth2/oauth2_credentials.cc +42 -79
  41. data/src/core/credentials/call/oauth2/oauth2_credentials.h +2 -5
  42. data/src/core/credentials/call/token_fetcher/token_fetcher_credentials.cc +52 -31
  43. data/src/core/credentials/call/token_fetcher/token_fetcher_credentials.h +21 -8
  44. data/src/core/credentials/transport/google_default/google_default_credentials.cc +3 -4
  45. data/src/core/credentials/transport/ssl/ssl_credentials.cc +59 -72
  46. data/src/core/credentials/transport/ssl/ssl_credentials.h +9 -8
  47. data/src/core/credentials/transport/ssl/ssl_security_connector.cc +12 -6
  48. data/src/core/credentials/transport/ssl/ssl_security_connector.h +4 -4
  49. data/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.cc +29 -18
  50. data/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h +9 -6
  51. data/src/core/credentials/transport/tls/grpc_tls_certificate_provider.cc +45 -56
  52. data/src/core/credentials/transport/tls/grpc_tls_certificate_provider.h +5 -4
  53. data/src/core/credentials/transport/tls/grpc_tls_certificate_selector.h +26 -0
  54. data/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc +1 -1
  55. data/src/core/credentials/transport/tls/load_system_roots.h +2 -6
  56. data/src/core/credentials/transport/tls/load_system_roots_fallback.cc +2 -4
  57. data/src/core/credentials/transport/tls/load_system_roots_supported.cc +13 -15
  58. data/src/core/credentials/transport/tls/load_system_roots_supported.h +3 -2
  59. data/src/core/credentials/transport/tls/load_system_roots_windows.cc +5 -8
  60. data/src/core/credentials/transport/tls/spiffe_utils.cc +1 -1
  61. data/src/core/credentials/transport/tls/ssl_utils.cc +39 -28
  62. data/src/core/credentials/transport/tls/ssl_utils.h +12 -49
  63. data/src/core/credentials/transport/tls/tls_security_connector.cc +48 -33
  64. data/src/core/credentials/transport/tls/tls_security_connector.h +31 -10
  65. data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +15 -11
  66. data/src/core/ext/filters/http/http_filters_plugin.cc +20 -9
  67. data/src/core/ext/filters/rbac/rbac_filter.cc +43 -21
  68. data/src/core/ext/filters/rbac/rbac_filter.h +21 -3
  69. data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +2 -2
  70. data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +1 -1
  71. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +6 -20
  72. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +32 -67
  73. data/src/core/ext/transport/chttp2/transport/flow_control.cc +2 -0
  74. data/src/core/ext/transport/chttp2/transport/flow_control.h +78 -4
  75. data/src/core/ext/transport/chttp2/transport/frame.h +2 -0
  76. data/src/core/ext/transport/chttp2/transport/frame_data.cc +3 -4
  77. data/src/core/ext/transport/chttp2/transport/goaway.h +7 -0
  78. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +5 -3
  79. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +3 -1
  80. data/src/core/ext/transport/chttp2/transport/http2_client_transport.cc +141 -130
  81. data/src/core/ext/transport/chttp2/transport/http2_client_transport.h +22 -22
  82. data/src/core/ext/transport/chttp2/transport/http2_server_transport.cc +402 -269
  83. data/src/core/ext/transport/chttp2/transport/http2_server_transport.h +80 -49
  84. data/src/core/ext/transport/chttp2/transport/http2_settings_promises.h +1 -2
  85. data/src/core/ext/transport/chttp2/transport/http2_status.h +38 -37
  86. data/src/core/ext/transport/chttp2/transport/http2_transport.cc +178 -5
  87. data/src/core/ext/transport/chttp2/transport/http2_transport.h +345 -5
  88. data/src/core/ext/transport/chttp2/transport/parsing.cc +5 -5
  89. data/src/core/ext/transport/chttp2/transport/ping_promise.cc +3 -2
  90. data/src/core/ext/transport/chttp2/transport/ping_promise.h +25 -5
  91. data/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +3 -4
  92. data/src/core/ext/transport/chttp2/transport/read_context.h +30 -3
  93. data/src/core/ext/transport/chttp2/transport/stream.h +65 -23
  94. data/src/core/ext/transport/chttp2/transport/writing.cc +0 -3
  95. data/src/core/ext/transport/inproc/inproc_transport.cc +1 -5
  96. data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +4 -17
  97. data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb.h +1912 -0
  98. data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb_minitable.c +300 -0
  99. data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb_minitable.h +37 -0
  100. data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/processing_mode.upb.h +187 -0
  101. data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/processing_mode.upb_minitable.c +64 -0
  102. data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/processing_mode.upb_minitable.h +31 -0
  103. data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb.h +2362 -0
  104. data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.c +556 -0
  105. data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.h +47 -0
  106. data/src/core/ext/upb-gen/{src/proto/grpc/channelz → grpc/channelz/v1}/channelz.upb.h +5 -5
  107. data/src/core/ext/upb-gen/{src/proto/grpc/channelz → grpc/channelz/v1}/channelz.upb_minitable.c +3 -3
  108. data/src/core/ext/upb-gen/{src/proto/grpc/channelz → grpc/channelz/v1}/channelz.upb_minitable.h +5 -5
  109. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upbdefs.c +453 -0
  110. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upbdefs.h +67 -0
  111. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/ext_proc/v3/processing_mode.upbdefs.c +142 -0
  112. data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/ext_proc/v3/processing_mode.upbdefs.h +37 -0
  113. data/src/core/ext/upbdefs-gen/grpc/channelz/v1/channelz.upbdefs.c +715 -0
  114. data/src/core/ext/upbdefs-gen/{src/proto/grpc/channelz → grpc/channelz/v1}/channelz.upbdefs.h +44 -44
  115. data/src/core/filter/auth/server_auth_filter.cc +2 -3
  116. data/src/core/filter/composite/composite_filter.cc +45 -33
  117. data/src/core/filter/composite/composite_filter.h +5 -4
  118. data/src/core/filter/ext_proc/ext_proc_filter.cc +224 -0
  119. data/src/core/filter/ext_proc/ext_proc_filter.h +155 -0
  120. data/src/core/filter/ext_proc/ext_proc_messages.cc +701 -0
  121. data/src/core/filter/ext_proc/ext_proc_messages.h +297 -0
  122. data/src/core/filter/filter_args.h +13 -2
  123. data/src/core/handshaker/http_connect/http_proxy_mapper.cc +30 -3
  124. data/src/core/handshaker/security/security_handshaker.cc +9 -6
  125. data/src/core/lib/channel/channel_stack.cc +3 -0
  126. data/src/core/lib/channel/channel_stack.h +2 -0
  127. data/src/core/lib/channel/channel_stack_builder_impl.cc +1 -2
  128. data/src/core/lib/channel/promise_based_filter.cc +132 -20
  129. data/src/core/lib/channel/promise_based_filter.h +42 -12
  130. data/src/core/lib/compression/compression_internal.cc +4 -5
  131. data/src/core/lib/debug/trace_flags.cc +8 -0
  132. data/src/core/lib/debug/trace_flags.h +3 -0
  133. data/src/core/lib/event_engine/ares_resolver.cc +54 -50
  134. data/src/core/lib/event_engine/ares_resolver.h +3 -2
  135. data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +3 -3
  136. data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +4 -10
  137. data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +74 -33
  138. data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +4 -4
  139. data/src/core/lib/event_engine/posix_engine/posix_engine.cc +6 -2
  140. data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +3 -0
  141. data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +3 -0
  142. data/src/core/lib/event_engine/windows/windows_endpoint.cc +1 -3
  143. data/src/core/lib/experiments/experiments.cc +60 -96
  144. data/src/core/lib/experiments/experiments.h +34 -50
  145. data/src/core/lib/iomgr/cfstream_handle.cc +2 -6
  146. data/src/core/lib/iomgr/endpoint_cfstream.cc +3 -10
  147. data/src/core/lib/iomgr/error.cc +2 -6
  148. data/src/core/lib/iomgr/error_cfstream.cc +1 -1
  149. data/src/core/lib/iomgr/ev_poll_posix.cc +5 -9
  150. data/src/core/lib/iomgr/event_engine_shims/closure.cc +1 -1
  151. data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +1 -2
  152. data/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +1 -2
  153. data/src/core/lib/iomgr/iomgr_posix.cc +0 -4
  154. data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +0 -4
  155. data/src/core/lib/iomgr/iomgr_windows.cc +0 -4
  156. data/src/core/lib/iomgr/socket_factory_posix.h +1 -1
  157. data/src/core/lib/iomgr/socket_utils_posix.cc +3 -0
  158. data/src/core/lib/iomgr/socket_utils_posix.h +3 -0
  159. data/src/core/lib/iomgr/systemd_utils.cc +0 -1
  160. data/src/core/lib/iomgr/tcp_client.h +1 -1
  161. data/src/core/lib/iomgr/tcp_posix.cc +23 -15
  162. data/src/core/lib/iomgr/tcp_server.h +1 -1
  163. data/src/core/lib/iomgr/tcp_server_posix.cc +2 -3
  164. data/src/core/lib/iomgr/tcp_server_utils_posix.h +0 -1
  165. data/src/core/lib/iomgr/tcp_server_windows.cc +0 -1
  166. data/src/core/lib/iomgr/tcp_windows.cc +5 -10
  167. data/src/core/lib/iomgr/unix_sockets_posix.cc +2 -4
  168. data/src/core/lib/iomgr/unix_sockets_posix.h +3 -1
  169. data/src/core/lib/iomgr/vsock.h +3 -1
  170. data/src/core/lib/resource_quota/memory_quota.cc +1 -1
  171. data/src/core/lib/security/authorization/rbac_policy.cc +139 -56
  172. data/src/core/lib/security/authorization/rbac_policy.h +21 -3
  173. data/src/core/lib/surface/call.cc +3 -9
  174. data/src/core/lib/surface/call_utils.h +113 -0
  175. data/src/core/lib/surface/channel_create.cc +1 -1
  176. data/src/core/lib/surface/channel_create.h +0 -2
  177. data/src/core/lib/surface/channel_init.cc +77 -38
  178. data/src/core/lib/surface/channel_init.h +30 -16
  179. data/src/core/lib/surface/filter_stack_call.cc +5 -10
  180. data/src/core/lib/surface/init.cc +13 -27
  181. data/src/core/lib/surface/version.cc +1 -1
  182. data/src/core/lib/transport/error_utils.cc +0 -27
  183. data/src/core/lib/transport/error_utils.h +0 -16
  184. data/src/core/lib/transport/transport.h +7 -5
  185. data/src/core/load_balancing/pick_first/pick_first.cc +2 -0
  186. data/src/core/load_balancing/rls/rls.cc +28 -11
  187. data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +33 -42
  188. data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.h +0 -2
  189. data/src/core/load_balancing/xds/cds.cc +3 -1
  190. data/src/core/load_balancing/xds/xds_cluster_impl.cc +0 -1
  191. data/src/core/mitigation_engine/mitigation.h +14 -5
  192. data/src/core/mitigation_engine/mitigation_engine.h +7 -3
  193. data/src/core/mitigation_engine/mitigation_provider.h +2 -1
  194. data/src/core/plugin_registry/grpc_plugin_registry.cc +39 -8
  195. data/src/core/resolver/dns/{event_engine/event_engine_client_channel_resolver.cc → dns_resolver.cc} +42 -41
  196. data/src/core/resolver/dns/{event_engine/event_engine_client_channel_resolver.h → dns_resolver.h} +8 -5
  197. data/src/core/resolver/dns/{event_engine/service_config_helper.cc → service_config_helper.cc} +1 -1
  198. data/src/core/resolver/dns/{event_engine/service_config_helper.h → service_config_helper.h} +3 -3
  199. data/src/core/resolver/endpoint_addresses.h +3 -0
  200. data/src/core/resolver/google_c2p/google_c2p_resolver.cc +2 -1
  201. data/src/core/resolver/xds/xds_resolver.cc +35 -9
  202. data/src/core/server/server.cc +2 -6
  203. data/src/core/server/server_config_selector.h +18 -3
  204. data/src/core/server/server_config_selector_filter.cc +178 -91
  205. data/src/core/server/server_config_selector_filter.h +58 -3
  206. data/src/core/server/xds_server_config_fetcher.cc +196 -129
  207. data/src/core/server/xds_server_config_fetcher.h +49 -0
  208. data/src/core/server/xds_server_config_fetcher_legacy.cc +41 -37
  209. data/src/core/telemetry/histogram.h +94 -14
  210. data/src/core/telemetry/instrument.cc +179 -74
  211. data/src/core/telemetry/instrument.h +78 -30
  212. data/src/core/telemetry/metrics.h +5 -0
  213. data/src/core/{resolver/dns/dns_resolver_plugin.h → telemetry/telemetry_label.h} +12 -8
  214. data/src/core/tsi/alts/crypt/aes_gcm.cc +10 -13
  215. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +2 -2
  216. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.h +3 -1
  217. data/src/core/tsi/ssl_telemetry_utils.cc +216 -259
  218. data/src/core/tsi/ssl_telemetry_utils.h +12 -2
  219. data/src/core/tsi/ssl_transport_security.cc +238 -80
  220. data/src/core/tsi/ssl_transport_security.h +63 -33
  221. data/src/core/tsi/tls_telemetry.cc +31 -0
  222. data/src/core/tsi/tls_telemetry.h +47 -0
  223. data/src/core/tsi/transport_security.cc +2 -2
  224. data/src/core/tsi/transport_security.h +1 -1
  225. data/src/core/tsi/transport_security_interface.h +1 -1
  226. data/src/core/{resolver/dns/native/dns_resolver.h → util/address_sorting_init.cc} +21 -8
  227. data/src/core/{resolver/dns/c_ares/grpc_ares_wrapper_posix.cc → util/address_sorting_init.h} +7 -8
  228. data/src/core/util/http_client/httpcli.cc +16 -53
  229. data/src/core/util/http_client/httpcli.h +0 -7
  230. data/src/core/util/http_client/httpcli_security_connector.cc +13 -8
  231. data/src/core/util/linux/cpu.cc +1 -1
  232. data/src/core/util/load_file.cc +3 -9
  233. data/src/core/util/load_file.h +3 -4
  234. data/src/core/util/matchers.h +8 -0
  235. data/src/core/util/posix/cpu.cc +1 -1
  236. data/src/core/util/status_helper.cc +0 -20
  237. data/src/core/util/status_helper.h +3 -14
  238. data/src/core/xds/grpc/xds_audit_logger_registry.cc +51 -31
  239. data/src/core/xds/grpc/xds_audit_logger_registry.h +17 -3
  240. data/src/core/xds/grpc/xds_bootstrap_grpc.cc +2 -10
  241. data/src/core/xds/grpc/xds_bootstrap_grpc.h +8 -6
  242. data/src/core/xds/grpc/xds_bootstrap_grpc_builder.cc +488 -0
  243. data/src/core/xds/grpc/xds_bootstrap_grpc_builder.h +97 -0
  244. data/src/core/xds/grpc/xds_certificate_provider.cc +7 -7
  245. data/src/core/xds/grpc/xds_client_grpc.cc +4 -8
  246. data/src/core/xds/grpc/xds_client_grpc.h +0 -4
  247. data/src/core/xds/grpc/xds_cluster.h +1 -0
  248. data/src/core/xds/grpc/xds_cluster_parser.cc +1 -5
  249. data/src/core/xds/grpc/xds_cluster_parser.h +0 -2
  250. data/src/core/xds/grpc/xds_cluster_specifier_plugin.cc +0 -2
  251. data/src/core/xds/grpc/xds_cluster_specifier_plugin.h +0 -2
  252. data/src/core/xds/grpc/xds_common_types.cc +0 -91
  253. data/src/core/xds/grpc/xds_common_types.h +1 -47
  254. data/src/core/xds/grpc/xds_common_types_parser.cc +84 -378
  255. data/src/core/xds/grpc/xds_common_types_parser.h +9 -11
  256. data/src/core/xds/grpc/xds_endpoint_parser.cc +0 -2
  257. data/src/core/xds/grpc/xds_grpc_service_parser.cc +177 -0
  258. data/src/core/{resolver/dns/c_ares/dns_resolver_ares.h → xds/grpc/xds_grpc_service_parser.h} +14 -9
  259. data/src/core/xds/grpc/xds_http_composite_filter.cc +26 -21
  260. data/src/core/xds/grpc/xds_http_composite_filter.h +4 -3
  261. data/src/core/xds/grpc/xds_http_ext_proc_filter.cc +418 -0
  262. data/src/core/xds/grpc/xds_http_ext_proc_filter.h +89 -0
  263. data/src/core/xds/grpc/xds_http_fault_filter.cc +9 -12
  264. data/src/core/xds/grpc/xds_http_fault_filter.h +1 -4
  265. data/src/core/xds/grpc/xds_http_filter.cc +2 -1
  266. data/src/core/xds/grpc/xds_http_filter.h +6 -5
  267. data/src/core/xds/grpc/xds_http_filter_registry.cc +10 -127
  268. data/src/core/xds/grpc/xds_http_filter_registry.h +7 -59
  269. data/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +13 -14
  270. data/src/core/xds/grpc/xds_http_gcp_authn_filter.h +3 -2
  271. data/src/core/xds/grpc/xds_http_rbac_filter.cc +403 -25
  272. data/src/core/xds/grpc/xds_http_rbac_filter.h +1 -3
  273. data/src/core/xds/grpc/xds_http_stateful_session_filter.cc +8 -13
  274. data/src/core/xds/grpc/xds_http_stateful_session_filter.h +1 -4
  275. data/src/core/xds/grpc/xds_lb_policy_registry.cc +0 -292
  276. data/src/core/xds/grpc/xds_lb_policy_registry.h +7 -3
  277. data/src/core/xds/grpc/xds_listener.cc +2 -0
  278. data/src/core/xds/grpc/xds_listener.h +5 -0
  279. data/src/core/xds/grpc/xds_listener_parser.cc +16 -11
  280. data/src/core/xds/grpc/xds_matcher_parse.h +3 -1
  281. data/src/core/xds/grpc/xds_metadata_parser.cc +6 -1
  282. data/src/core/xds/grpc/xds_metadata_parser.h +2 -0
  283. data/src/core/xds/grpc/xds_route_config.cc +2 -0
  284. data/src/core/xds/grpc/xds_route_config.h +3 -1
  285. data/src/core/xds/grpc/xds_route_config_parser.cc +13 -79
  286. data/src/core/xds/grpc/xds_route_config_parser.h +0 -3
  287. data/src/core/xds/grpc/xds_routing.cc +116 -69
  288. data/src/core/xds/grpc/xds_routing.h +19 -8
  289. data/src/core/xds/grpc/xds_tls_context.cc +117 -0
  290. data/src/core/xds/grpc/xds_tls_context.h +76 -0
  291. data/src/core/xds/grpc/xds_tls_context_parser.cc +275 -0
  292. data/src/core/xds/grpc/xds_tls_context_parser.h +35 -0
  293. data/src/core/xds/grpc/xds_transport_grpc.cc +41 -38
  294. data/src/core/xds/grpc/xds_transport_grpc.h +4 -2
  295. data/src/ruby/ext/grpc/rb_call.c +26 -15
  296. data/src/ruby/ext/grpc/rb_completion_queue.c +6 -5
  297. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +2 -0
  298. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +3 -0
  299. data/src/ruby/lib/grpc/version.rb +1 -1
  300. data/src/ruby/pb/test/client.rb +5 -4
  301. data/src/ruby/spec/call_spec.rb +14 -0
  302. data/src/ruby/spec/generic/server_interceptors_spec.rb +3 -6
  303. metadata +50 -35
  304. data/src/core/ext/upbdefs-gen/src/proto/grpc/channelz/channelz.upbdefs.c +0 -716
  305. data/src/core/lib/iomgr/resolve_address.cc +0 -59
  306. data/src/core/lib/iomgr/resolve_address.h +0 -125
  307. data/src/core/lib/iomgr/resolve_address_impl.h +0 -58
  308. data/src/core/lib/iomgr/resolve_address_posix.cc +0 -184
  309. data/src/core/lib/iomgr/resolve_address_posix.h +0 -78
  310. data/src/core/lib/iomgr/resolve_address_windows.cc +0 -169
  311. data/src/core/lib/iomgr/resolve_address_windows.h +0 -76
  312. data/src/core/resolver/dns/c_ares/dns_resolver_ares.cc +0 -781
  313. data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h +0 -93
  314. data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +0 -203
  315. data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +0 -838
  316. data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc +0 -1237
  317. data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h +0 -130
  318. data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +0 -35
  319. data/src/core/resolver/dns/dns_resolver_plugin.cc +0 -64
  320. data/src/core/resolver/dns/native/dns_resolver.cc +0 -173
  321. data/src/core/util/json/json_util.cc +0 -101
  322. data/src/core/util/json/json_util.h +0 -163
@@ -0,0 +1,2362 @@
1
+ /* This file was generated by upb_generator from the input file:
2
+ *
3
+ * envoy/service/ext_proc/v3/external_processor.proto
4
+ *
5
+ * Do not edit -- your changes will be discarded when the file is
6
+ * regenerated.
7
+ * NO CHECKED-IN PROTOBUF GENCODE */
8
+
9
+ #ifndef ENVOY_SERVICE_EXT_PROC_V3_EXTERNAL_PROCESSOR_PROTO_UPB_H__UPB_H_
10
+ #define ENVOY_SERVICE_EXT_PROC_V3_EXTERNAL_PROCESSOR_PROTO_UPB_H__UPB_H_
11
+
12
+ #include "upb/generated_code_support.h"
13
+ #include "envoy/service/ext_proc/v3/external_processor.upb_minitable.h"
14
+ #include "envoy/config/core/v3/base.upb_minitable.h"
15
+ #include "envoy/extensions/filters/http/ext_proc/v3/processing_mode.upb_minitable.h"
16
+ #include "envoy/type/v3/http_status.upb_minitable.h"
17
+ #include "google/protobuf/duration.upb_minitable.h"
18
+ #include "google/protobuf/struct.upb_minitable.h"
19
+ #include "xds/annotations/v3/status.upb_minitable.h"
20
+ #include "envoy/annotations/deprecation.upb_minitable.h"
21
+ #include "udpa/annotations/status.upb_minitable.h"
22
+ #include "validate/validate.upb_minitable.h"
23
+
24
+ // Must be last.
25
+ #include "upb/port/def.inc"
26
+
27
+ #ifdef __cplusplus
28
+ extern "C" {
29
+ #endif
30
+ typedef struct envoy_service_ext_proc_v3_ProtocolConfiguration {
31
+ upb_Message UPB_PRIVATE(base);
32
+ } envoy_service_ext_proc_v3_ProtocolConfiguration;
33
+
34
+ typedef struct envoy_service_ext_proc_v3_ProcessingRequest {
35
+ upb_Message UPB_PRIVATE(base);
36
+ } envoy_service_ext_proc_v3_ProcessingRequest;
37
+
38
+ typedef struct envoy_service_ext_proc_v3_ProcessingResponse {
39
+ upb_Message UPB_PRIVATE(base);
40
+ } envoy_service_ext_proc_v3_ProcessingResponse;
41
+
42
+ typedef struct envoy_service_ext_proc_v3_HttpHeaders {
43
+ upb_Message UPB_PRIVATE(base);
44
+ } envoy_service_ext_proc_v3_HttpHeaders;
45
+
46
+ typedef struct envoy_service_ext_proc_v3_HttpBody {
47
+ upb_Message UPB_PRIVATE(base);
48
+ } envoy_service_ext_proc_v3_HttpBody;
49
+
50
+ typedef struct envoy_service_ext_proc_v3_HttpTrailers {
51
+ upb_Message UPB_PRIVATE(base);
52
+ } envoy_service_ext_proc_v3_HttpTrailers;
53
+
54
+ typedef struct envoy_service_ext_proc_v3_HeadersResponse {
55
+ upb_Message UPB_PRIVATE(base);
56
+ } envoy_service_ext_proc_v3_HeadersResponse;
57
+
58
+ typedef struct envoy_service_ext_proc_v3_BodyResponse {
59
+ upb_Message UPB_PRIVATE(base);
60
+ } envoy_service_ext_proc_v3_BodyResponse;
61
+
62
+ typedef struct envoy_service_ext_proc_v3_TrailersResponse {
63
+ upb_Message UPB_PRIVATE(base);
64
+ } envoy_service_ext_proc_v3_TrailersResponse;
65
+
66
+ typedef struct envoy_service_ext_proc_v3_CommonResponse {
67
+ upb_Message UPB_PRIVATE(base);
68
+ } envoy_service_ext_proc_v3_CommonResponse;
69
+
70
+ typedef struct envoy_service_ext_proc_v3_ImmediateResponse {
71
+ upb_Message UPB_PRIVATE(base);
72
+ } envoy_service_ext_proc_v3_ImmediateResponse;
73
+
74
+ typedef struct envoy_service_ext_proc_v3_GrpcStatus {
75
+ upb_Message UPB_PRIVATE(base);
76
+ } envoy_service_ext_proc_v3_GrpcStatus;
77
+
78
+ typedef struct envoy_service_ext_proc_v3_HeaderMutation {
79
+ upb_Message UPB_PRIVATE(base);
80
+ } envoy_service_ext_proc_v3_HeaderMutation;
81
+
82
+ typedef struct envoy_service_ext_proc_v3_StreamedBodyResponse {
83
+ upb_Message UPB_PRIVATE(base);
84
+ } envoy_service_ext_proc_v3_StreamedBodyResponse;
85
+
86
+ typedef struct envoy_service_ext_proc_v3_BodyMutation {
87
+ upb_Message UPB_PRIVATE(base);
88
+ } envoy_service_ext_proc_v3_BodyMutation;
89
+
90
+ struct envoy_config_core_v3_HeaderMap;
91
+ struct envoy_config_core_v3_HeaderValueOption;
92
+ struct envoy_config_core_v3_Metadata;
93
+ struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode;
94
+ struct envoy_type_v3_HttpStatus;
95
+ struct google_protobuf_Duration;
96
+ struct google_protobuf_Struct;
97
+
98
+ typedef enum {
99
+ envoy_service_ext_proc_v3_CommonResponse_CONTINUE = 0,
100
+ envoy_service_ext_proc_v3_CommonResponse_CONTINUE_AND_REPLACE = 1
101
+ } envoy_service_ext_proc_v3_CommonResponse_ResponseStatus;
102
+
103
+
104
+
105
+ /* envoy.service.ext_proc.v3.ProtocolConfiguration */
106
+ UPB_INLINE envoy_service_ext_proc_v3_ProtocolConfiguration* envoy_service_ext_proc_v3_ProtocolConfiguration_new(upb_Arena* arena) {
107
+ return (envoy_service_ext_proc_v3_ProtocolConfiguration*)_upb_Message_New(&envoy__service__ext_0proc__v3__ProtocolConfiguration_msg_init, arena);
108
+ }
109
+ UPB_INLINE envoy_service_ext_proc_v3_ProtocolConfiguration* envoy_service_ext_proc_v3_ProtocolConfiguration_parse(const char* buf, size_t size,
110
+ upb_Arena* arena) {
111
+ envoy_service_ext_proc_v3_ProtocolConfiguration* ret = envoy_service_ext_proc_v3_ProtocolConfiguration_new(arena);
112
+ if (!ret) return NULL;
113
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__ProtocolConfiguration_msg_init, NULL, 0,
114
+ arena) != kUpb_DecodeStatus_Ok) {
115
+ return NULL;
116
+ }
117
+ return ret;
118
+ }
119
+ UPB_INLINE envoy_service_ext_proc_v3_ProtocolConfiguration* envoy_service_ext_proc_v3_ProtocolConfiguration_parse_ex(
120
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
121
+ int options, upb_Arena* arena) {
122
+ envoy_service_ext_proc_v3_ProtocolConfiguration* ret = envoy_service_ext_proc_v3_ProtocolConfiguration_new(arena);
123
+ if (!ret) return NULL;
124
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__ProtocolConfiguration_msg_init, extreg,
125
+ options, arena) != kUpb_DecodeStatus_Ok) {
126
+ return NULL;
127
+ }
128
+ return ret;
129
+ }
130
+ UPB_INLINE char* envoy_service_ext_proc_v3_ProtocolConfiguration_serialize(const envoy_service_ext_proc_v3_ProtocolConfiguration* msg,
131
+ upb_Arena* arena, size_t* len) {
132
+ char* ptr;
133
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ProtocolConfiguration_msg_init, 0, arena, &ptr, len);
134
+ return ptr;
135
+ }
136
+ UPB_INLINE char* envoy_service_ext_proc_v3_ProtocolConfiguration_serialize_ex(const envoy_service_ext_proc_v3_ProtocolConfiguration* msg,
137
+ int options, upb_Arena* arena,
138
+ size_t* len) {
139
+ char* ptr;
140
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ProtocolConfiguration_msg_init, options, arena, &ptr, len);
141
+ return ptr;
142
+ }
143
+ UPB_INLINE void envoy_service_ext_proc_v3_ProtocolConfiguration_clear_request_body_mode(envoy_service_ext_proc_v3_ProtocolConfiguration* msg) {
144
+ const upb_MiniTableField field = {1, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
145
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
146
+ }
147
+ UPB_INLINE int32_t envoy_service_ext_proc_v3_ProtocolConfiguration_request_body_mode(const envoy_service_ext_proc_v3_ProtocolConfiguration* msg) {
148
+ int32_t default_val = 0;
149
+ int32_t ret;
150
+ const upb_MiniTableField field = {1, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
151
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
152
+ &default_val, &ret);
153
+ return ret;
154
+ }
155
+ UPB_INLINE void envoy_service_ext_proc_v3_ProtocolConfiguration_clear_response_body_mode(envoy_service_ext_proc_v3_ProtocolConfiguration* msg) {
156
+ const upb_MiniTableField field = {2, 16, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
157
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
158
+ }
159
+ UPB_INLINE int32_t envoy_service_ext_proc_v3_ProtocolConfiguration_response_body_mode(const envoy_service_ext_proc_v3_ProtocolConfiguration* msg) {
160
+ int32_t default_val = 0;
161
+ int32_t ret;
162
+ const upb_MiniTableField field = {2, 16, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
163
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
164
+ &default_val, &ret);
165
+ return ret;
166
+ }
167
+ UPB_INLINE void envoy_service_ext_proc_v3_ProtocolConfiguration_clear_send_body_without_waiting_for_header_response(envoy_service_ext_proc_v3_ProtocolConfiguration* msg) {
168
+ const upb_MiniTableField field = {3, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
169
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
170
+ }
171
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProtocolConfiguration_send_body_without_waiting_for_header_response(const envoy_service_ext_proc_v3_ProtocolConfiguration* msg) {
172
+ bool default_val = false;
173
+ bool ret;
174
+ const upb_MiniTableField field = {3, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
175
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
176
+ &default_val, &ret);
177
+ return ret;
178
+ }
179
+
180
+ UPB_INLINE void envoy_service_ext_proc_v3_ProtocolConfiguration_set_request_body_mode(envoy_service_ext_proc_v3_ProtocolConfiguration* msg, int32_t value) {
181
+ const upb_MiniTableField field = {1, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
182
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
183
+ }
184
+ UPB_INLINE void envoy_service_ext_proc_v3_ProtocolConfiguration_set_response_body_mode(envoy_service_ext_proc_v3_ProtocolConfiguration* msg, int32_t value) {
185
+ const upb_MiniTableField field = {2, 16, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
186
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
187
+ }
188
+ UPB_INLINE void envoy_service_ext_proc_v3_ProtocolConfiguration_set_send_body_without_waiting_for_header_response(envoy_service_ext_proc_v3_ProtocolConfiguration* msg, bool value) {
189
+ const upb_MiniTableField field = {3, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
190
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
191
+ }
192
+
193
+ /* envoy.service.ext_proc.v3.ProcessingRequest */
194
+ UPB_INLINE envoy_service_ext_proc_v3_ProcessingRequest* envoy_service_ext_proc_v3_ProcessingRequest_new(upb_Arena* arena) {
195
+ return (envoy_service_ext_proc_v3_ProcessingRequest*)_upb_Message_New(&envoy__service__ext_0proc__v3__ProcessingRequest_msg_init, arena);
196
+ }
197
+ UPB_INLINE envoy_service_ext_proc_v3_ProcessingRequest* envoy_service_ext_proc_v3_ProcessingRequest_parse(const char* buf, size_t size,
198
+ upb_Arena* arena) {
199
+ envoy_service_ext_proc_v3_ProcessingRequest* ret = envoy_service_ext_proc_v3_ProcessingRequest_new(arena);
200
+ if (!ret) return NULL;
201
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__ProcessingRequest_msg_init, NULL, 0,
202
+ arena) != kUpb_DecodeStatus_Ok) {
203
+ return NULL;
204
+ }
205
+ return ret;
206
+ }
207
+ UPB_INLINE envoy_service_ext_proc_v3_ProcessingRequest* envoy_service_ext_proc_v3_ProcessingRequest_parse_ex(
208
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
209
+ int options, upb_Arena* arena) {
210
+ envoy_service_ext_proc_v3_ProcessingRequest* ret = envoy_service_ext_proc_v3_ProcessingRequest_new(arena);
211
+ if (!ret) return NULL;
212
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__ProcessingRequest_msg_init, extreg,
213
+ options, arena) != kUpb_DecodeStatus_Ok) {
214
+ return NULL;
215
+ }
216
+ return ret;
217
+ }
218
+ UPB_INLINE char* envoy_service_ext_proc_v3_ProcessingRequest_serialize(const envoy_service_ext_proc_v3_ProcessingRequest* msg,
219
+ upb_Arena* arena, size_t* len) {
220
+ char* ptr;
221
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ProcessingRequest_msg_init, 0, arena, &ptr, len);
222
+ return ptr;
223
+ }
224
+ UPB_INLINE char* envoy_service_ext_proc_v3_ProcessingRequest_serialize_ex(const envoy_service_ext_proc_v3_ProcessingRequest* msg,
225
+ int options, upb_Arena* arena,
226
+ size_t* len) {
227
+ char* ptr;
228
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ProcessingRequest_msg_init, options, arena, &ptr, len);
229
+ return ptr;
230
+ }
231
+ typedef enum {
232
+ envoy_service_ext_proc_v3_ProcessingRequest_request_request_headers = 2,
233
+ envoy_service_ext_proc_v3_ProcessingRequest_request_response_headers = 3,
234
+ envoy_service_ext_proc_v3_ProcessingRequest_request_request_body = 4,
235
+ envoy_service_ext_proc_v3_ProcessingRequest_request_response_body = 5,
236
+ envoy_service_ext_proc_v3_ProcessingRequest_request_request_trailers = 6,
237
+ envoy_service_ext_proc_v3_ProcessingRequest_request_response_trailers = 7,
238
+ envoy_service_ext_proc_v3_ProcessingRequest_request_NOT_SET = 0
239
+ } envoy_service_ext_proc_v3_ProcessingRequest_request_oneofcases;
240
+
241
+ UPB_INLINE envoy_service_ext_proc_v3_ProcessingRequest_request_oneofcases
242
+ envoy_service_ext_proc_v3_ProcessingRequest_request_case(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
243
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), 30, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
244
+ return (envoy_service_ext_proc_v3_ProcessingRequest_request_oneofcases)upb_Message_WhichOneofFieldNumber(
245
+ UPB_UPCAST(msg), &field);
246
+ }
247
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_request(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
248
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), 30, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
249
+ upb_Message_ClearOneof(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ProcessingRequest_msg_init, &field);
250
+ }
251
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_request_headers(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
252
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), 30, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
253
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
254
+ }
255
+ UPB_INLINE const envoy_service_ext_proc_v3_HttpHeaders* envoy_service_ext_proc_v3_ProcessingRequest_request_headers(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
256
+ const envoy_service_ext_proc_v3_HttpHeaders* default_val = NULL;
257
+ const envoy_service_ext_proc_v3_HttpHeaders* ret;
258
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), 30, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
259
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders_msg_init);
260
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
261
+ &default_val, &ret);
262
+ return ret;
263
+ }
264
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_has_request_headers(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
265
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), 30, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
266
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
267
+ }
268
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_response_headers(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
269
+ const upb_MiniTableField field = {3, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(28, 29), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
270
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
271
+ }
272
+ UPB_INLINE const envoy_service_ext_proc_v3_HttpHeaders* envoy_service_ext_proc_v3_ProcessingRequest_response_headers(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
273
+ const envoy_service_ext_proc_v3_HttpHeaders* default_val = NULL;
274
+ const envoy_service_ext_proc_v3_HttpHeaders* ret;
275
+ const upb_MiniTableField field = {3, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(28, 29), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
276
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders_msg_init);
277
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
278
+ &default_val, &ret);
279
+ return ret;
280
+ }
281
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_has_response_headers(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
282
+ const upb_MiniTableField field = {3, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(28, 29), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
283
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
284
+ }
285
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_request_body(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
286
+ const upb_MiniTableField field = {4, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(26, 28), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
287
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
288
+ }
289
+ UPB_INLINE const envoy_service_ext_proc_v3_HttpBody* envoy_service_ext_proc_v3_ProcessingRequest_request_body(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
290
+ const envoy_service_ext_proc_v3_HttpBody* default_val = NULL;
291
+ const envoy_service_ext_proc_v3_HttpBody* ret;
292
+ const upb_MiniTableField field = {4, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(26, 28), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
293
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpBody_msg_init);
294
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
295
+ &default_val, &ret);
296
+ return ret;
297
+ }
298
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_has_request_body(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
299
+ const upb_MiniTableField field = {4, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(26, 28), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
300
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
301
+ }
302
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_response_body(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
303
+ const upb_MiniTableField field = {5, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(24, 27), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
304
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
305
+ }
306
+ UPB_INLINE const envoy_service_ext_proc_v3_HttpBody* envoy_service_ext_proc_v3_ProcessingRequest_response_body(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
307
+ const envoy_service_ext_proc_v3_HttpBody* default_val = NULL;
308
+ const envoy_service_ext_proc_v3_HttpBody* ret;
309
+ const upb_MiniTableField field = {5, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(24, 27), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
310
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpBody_msg_init);
311
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
312
+ &default_val, &ret);
313
+ return ret;
314
+ }
315
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_has_response_body(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
316
+ const upb_MiniTableField field = {5, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(24, 27), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
317
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
318
+ }
319
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_request_trailers(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
320
+ const upb_MiniTableField field = {6, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(22, 26), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
321
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
322
+ }
323
+ UPB_INLINE const envoy_service_ext_proc_v3_HttpTrailers* envoy_service_ext_proc_v3_ProcessingRequest_request_trailers(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
324
+ const envoy_service_ext_proc_v3_HttpTrailers* default_val = NULL;
325
+ const envoy_service_ext_proc_v3_HttpTrailers* ret;
326
+ const upb_MiniTableField field = {6, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(22, 26), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
327
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpTrailers_msg_init);
328
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
329
+ &default_val, &ret);
330
+ return ret;
331
+ }
332
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_has_request_trailers(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
333
+ const upb_MiniTableField field = {6, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(22, 26), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
334
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
335
+ }
336
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_response_trailers(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
337
+ const upb_MiniTableField field = {7, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(20, 25), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
338
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
339
+ }
340
+ UPB_INLINE const envoy_service_ext_proc_v3_HttpTrailers* envoy_service_ext_proc_v3_ProcessingRequest_response_trailers(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
341
+ const envoy_service_ext_proc_v3_HttpTrailers* default_val = NULL;
342
+ const envoy_service_ext_proc_v3_HttpTrailers* ret;
343
+ const upb_MiniTableField field = {7, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(20, 25), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
344
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpTrailers_msg_init);
345
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
346
+ &default_val, &ret);
347
+ return ret;
348
+ }
349
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_has_response_trailers(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
350
+ const upb_MiniTableField field = {7, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(20, 25), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
351
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
352
+ }
353
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_metadata_context(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
354
+ const upb_MiniTableField field = {8, UPB_SIZE(12, 16), 64, UPB_SIZE(18, 24), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
355
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
356
+ }
357
+ UPB_INLINE const struct envoy_config_core_v3_Metadata* envoy_service_ext_proc_v3_ProcessingRequest_metadata_context(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
358
+ const struct envoy_config_core_v3_Metadata* default_val = NULL;
359
+ const struct envoy_config_core_v3_Metadata* ret;
360
+ const upb_MiniTableField field = {8, UPB_SIZE(12, 16), 64, UPB_SIZE(18, 24), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
361
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__Metadata_msg_init);
362
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
363
+ &default_val, &ret);
364
+ return ret;
365
+ }
366
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_has_metadata_context(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
367
+ const upb_MiniTableField field = {8, UPB_SIZE(12, 16), 64, UPB_SIZE(18, 24), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
368
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
369
+ }
370
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_attributes(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
371
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
372
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
373
+ }
374
+ UPB_INLINE size_t envoy_service_ext_proc_v3_ProcessingRequest_attributes_size(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
375
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
376
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProcessingRequest__AttributesEntry_msg_init);
377
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
378
+ const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
379
+ return map ? _upb_Map_Size(map) : 0;
380
+ }
381
+
382
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_attributes_get(const envoy_service_ext_proc_v3_ProcessingRequest* msg,
383
+ upb_StringView key, struct google_protobuf_Struct** val) {
384
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
385
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProcessingRequest__AttributesEntry_msg_init);
386
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
387
+ const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
388
+ if (!map) return false;
389
+ return _upb_Map_Get(map, &key, 0, val, sizeof(struct google_protobuf_Struct*));
390
+ }
391
+
392
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_attributes_next(const envoy_service_ext_proc_v3_ProcessingRequest* msg,
393
+ upb_StringView* key,
394
+ const struct google_protobuf_Struct** val,
395
+ size_t* iter) {
396
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
397
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProcessingRequest__AttributesEntry_msg_init);
398
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
399
+ const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
400
+ if (!map) return false;
401
+ upb_MessageValue k;
402
+ upb_MessageValue v;
403
+ if (!upb_Map_Next(map, &k, &v, iter)) return false;
404
+ memcpy(key, &k, sizeof(*key));
405
+ memcpy(val, &v, sizeof(*val));
406
+ return true;
407
+ }
408
+
409
+ // and ~ a upb_Map for mutable.
410
+ //
411
+ UPB_INLINE const upb_Map* _envoy_service_ext_proc_v3_ProcessingRequest_attributes_upb_map(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
412
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
413
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProcessingRequest__AttributesEntry_msg_init);
414
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
415
+ return upb_Message_GetMap(UPB_UPCAST(msg), &field);
416
+ }
417
+
418
+ UPB_INLINE upb_Map* _envoy_service_ext_proc_v3_ProcessingRequest_attributes_mutable_upb_map(
419
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* a) {
420
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
421
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProcessingRequest__AttributesEntry_msg_init);
422
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
423
+ return _upb_Message_GetOrCreateMutableMap(UPB_UPCAST(msg), &field,
424
+ 0, sizeof(struct google_protobuf_Struct*), a);
425
+ }
426
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_observability_mode(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
427
+ const upb_MiniTableField field = {10, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
428
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
429
+ }
430
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_observability_mode(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
431
+ bool default_val = false;
432
+ bool ret;
433
+ const upb_MiniTableField field = {10, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
434
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
435
+ &default_val, &ret);
436
+ return ret;
437
+ }
438
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_clear_protocol_config(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
439
+ const upb_MiniTableField field = {11, UPB_SIZE(20, 32), 65, UPB_SIZE(11, 19), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
440
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
441
+ }
442
+ UPB_INLINE const envoy_service_ext_proc_v3_ProtocolConfiguration* envoy_service_ext_proc_v3_ProcessingRequest_protocol_config(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
443
+ const envoy_service_ext_proc_v3_ProtocolConfiguration* default_val = NULL;
444
+ const envoy_service_ext_proc_v3_ProtocolConfiguration* ret;
445
+ const upb_MiniTableField field = {11, UPB_SIZE(20, 32), 65, UPB_SIZE(11, 19), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
446
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProtocolConfiguration_msg_init);
447
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
448
+ &default_val, &ret);
449
+ return ret;
450
+ }
451
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_has_protocol_config(const envoy_service_ext_proc_v3_ProcessingRequest* msg) {
452
+ const upb_MiniTableField field = {11, UPB_SIZE(20, 32), 65, UPB_SIZE(11, 19), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
453
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
454
+ }
455
+
456
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_request_headers(envoy_service_ext_proc_v3_ProcessingRequest* msg, envoy_service_ext_proc_v3_HttpHeaders* value) {
457
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), 30, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
458
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders_msg_init);
459
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
460
+ }
461
+ UPB_INLINE struct envoy_service_ext_proc_v3_HttpHeaders* envoy_service_ext_proc_v3_ProcessingRequest_mutable_request_headers(
462
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* arena) {
463
+ struct envoy_service_ext_proc_v3_HttpHeaders* sub = (struct envoy_service_ext_proc_v3_HttpHeaders*)envoy_service_ext_proc_v3_ProcessingRequest_request_headers(msg);
464
+ if (sub == NULL) {
465
+ sub = (struct envoy_service_ext_proc_v3_HttpHeaders*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpHeaders_msg_init, arena);
466
+ if (sub) envoy_service_ext_proc_v3_ProcessingRequest_set_request_headers(msg, sub);
467
+ }
468
+ return sub;
469
+ }
470
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_response_headers(envoy_service_ext_proc_v3_ProcessingRequest* msg, envoy_service_ext_proc_v3_HttpHeaders* value) {
471
+ const upb_MiniTableField field = {3, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(28, 29), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
472
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders_msg_init);
473
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
474
+ }
475
+ UPB_INLINE struct envoy_service_ext_proc_v3_HttpHeaders* envoy_service_ext_proc_v3_ProcessingRequest_mutable_response_headers(
476
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* arena) {
477
+ struct envoy_service_ext_proc_v3_HttpHeaders* sub = (struct envoy_service_ext_proc_v3_HttpHeaders*)envoy_service_ext_proc_v3_ProcessingRequest_response_headers(msg);
478
+ if (sub == NULL) {
479
+ sub = (struct envoy_service_ext_proc_v3_HttpHeaders*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpHeaders_msg_init, arena);
480
+ if (sub) envoy_service_ext_proc_v3_ProcessingRequest_set_response_headers(msg, sub);
481
+ }
482
+ return sub;
483
+ }
484
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_request_body(envoy_service_ext_proc_v3_ProcessingRequest* msg, envoy_service_ext_proc_v3_HttpBody* value) {
485
+ const upb_MiniTableField field = {4, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(26, 28), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
486
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpBody_msg_init);
487
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
488
+ }
489
+ UPB_INLINE struct envoy_service_ext_proc_v3_HttpBody* envoy_service_ext_proc_v3_ProcessingRequest_mutable_request_body(
490
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* arena) {
491
+ struct envoy_service_ext_proc_v3_HttpBody* sub = (struct envoy_service_ext_proc_v3_HttpBody*)envoy_service_ext_proc_v3_ProcessingRequest_request_body(msg);
492
+ if (sub == NULL) {
493
+ sub = (struct envoy_service_ext_proc_v3_HttpBody*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpBody_msg_init, arena);
494
+ if (sub) envoy_service_ext_proc_v3_ProcessingRequest_set_request_body(msg, sub);
495
+ }
496
+ return sub;
497
+ }
498
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_response_body(envoy_service_ext_proc_v3_ProcessingRequest* msg, envoy_service_ext_proc_v3_HttpBody* value) {
499
+ const upb_MiniTableField field = {5, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(24, 27), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
500
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpBody_msg_init);
501
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
502
+ }
503
+ UPB_INLINE struct envoy_service_ext_proc_v3_HttpBody* envoy_service_ext_proc_v3_ProcessingRequest_mutable_response_body(
504
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* arena) {
505
+ struct envoy_service_ext_proc_v3_HttpBody* sub = (struct envoy_service_ext_proc_v3_HttpBody*)envoy_service_ext_proc_v3_ProcessingRequest_response_body(msg);
506
+ if (sub == NULL) {
507
+ sub = (struct envoy_service_ext_proc_v3_HttpBody*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpBody_msg_init, arena);
508
+ if (sub) envoy_service_ext_proc_v3_ProcessingRequest_set_response_body(msg, sub);
509
+ }
510
+ return sub;
511
+ }
512
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_request_trailers(envoy_service_ext_proc_v3_ProcessingRequest* msg, envoy_service_ext_proc_v3_HttpTrailers* value) {
513
+ const upb_MiniTableField field = {6, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(22, 26), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
514
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpTrailers_msg_init);
515
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
516
+ }
517
+ UPB_INLINE struct envoy_service_ext_proc_v3_HttpTrailers* envoy_service_ext_proc_v3_ProcessingRequest_mutable_request_trailers(
518
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* arena) {
519
+ struct envoy_service_ext_proc_v3_HttpTrailers* sub = (struct envoy_service_ext_proc_v3_HttpTrailers*)envoy_service_ext_proc_v3_ProcessingRequest_request_trailers(msg);
520
+ if (sub == NULL) {
521
+ sub = (struct envoy_service_ext_proc_v3_HttpTrailers*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpTrailers_msg_init, arena);
522
+ if (sub) envoy_service_ext_proc_v3_ProcessingRequest_set_request_trailers(msg, sub);
523
+ }
524
+ return sub;
525
+ }
526
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_response_trailers(envoy_service_ext_proc_v3_ProcessingRequest* msg, envoy_service_ext_proc_v3_HttpTrailers* value) {
527
+ const upb_MiniTableField field = {7, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(20, 25), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
528
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpTrailers_msg_init);
529
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
530
+ }
531
+ UPB_INLINE struct envoy_service_ext_proc_v3_HttpTrailers* envoy_service_ext_proc_v3_ProcessingRequest_mutable_response_trailers(
532
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* arena) {
533
+ struct envoy_service_ext_proc_v3_HttpTrailers* sub = (struct envoy_service_ext_proc_v3_HttpTrailers*)envoy_service_ext_proc_v3_ProcessingRequest_response_trailers(msg);
534
+ if (sub == NULL) {
535
+ sub = (struct envoy_service_ext_proc_v3_HttpTrailers*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpTrailers_msg_init, arena);
536
+ if (sub) envoy_service_ext_proc_v3_ProcessingRequest_set_response_trailers(msg, sub);
537
+ }
538
+ return sub;
539
+ }
540
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_metadata_context(envoy_service_ext_proc_v3_ProcessingRequest* msg, struct envoy_config_core_v3_Metadata* value) {
541
+ const upb_MiniTableField field = {8, UPB_SIZE(12, 16), 64, UPB_SIZE(18, 24), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
542
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__Metadata_msg_init);
543
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
544
+ }
545
+ UPB_INLINE struct envoy_config_core_v3_Metadata* envoy_service_ext_proc_v3_ProcessingRequest_mutable_metadata_context(
546
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* arena) {
547
+ struct envoy_config_core_v3_Metadata* sub = (struct envoy_config_core_v3_Metadata*)envoy_service_ext_proc_v3_ProcessingRequest_metadata_context(msg);
548
+ if (sub == NULL) {
549
+ sub = (struct envoy_config_core_v3_Metadata*)_upb_Message_New(&envoy__config__core__v3__Metadata_msg_init, arena);
550
+ if (sub) envoy_service_ext_proc_v3_ProcessingRequest_set_metadata_context(msg, sub);
551
+ }
552
+ return sub;
553
+ }
554
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_attributes_clear(envoy_service_ext_proc_v3_ProcessingRequest* msg) {
555
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
556
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProcessingRequest__AttributesEntry_msg_init);
557
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
558
+ upb_Map* map = (upb_Map*)upb_Message_GetMap(UPB_UPCAST(msg), &field);
559
+ if (!map) return;
560
+ _upb_Map_Clear(map);
561
+ }
562
+
563
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_attributes_set(envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_StringView key,
564
+ struct google_protobuf_Struct* val, upb_Arena* a) {
565
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
566
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProcessingRequest__AttributesEntry_msg_init);
567
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
568
+ upb_Map* map = _upb_Message_GetOrCreateMutableMap(
569
+ UPB_UPCAST(msg), &field, 0, sizeof(val), a);
570
+ return _upb_Map_Insert(map, &key, 0, &val, sizeof(val), a) !=
571
+ kUpb_MapInsertStatus_OutOfMemory;
572
+ }
573
+
574
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingRequest_attributes_delete(envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_StringView key) {
575
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 0, UPB_SIZE(16, 23), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
576
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProcessingRequest__AttributesEntry_msg_init);
577
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
578
+ upb_Map* map = (upb_Map*)upb_Message_GetMap(UPB_UPCAST(msg), &field);
579
+ if (!map) return false;
580
+ return _upb_Map_Delete(map, &key, 0, NULL);
581
+ }
582
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_observability_mode(envoy_service_ext_proc_v3_ProcessingRequest* msg, bool value) {
583
+ const upb_MiniTableField field = {10, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
584
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
585
+ }
586
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingRequest_set_protocol_config(envoy_service_ext_proc_v3_ProcessingRequest* msg, envoy_service_ext_proc_v3_ProtocolConfiguration* value) {
587
+ const upb_MiniTableField field = {11, UPB_SIZE(20, 32), 65, UPB_SIZE(11, 19), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
588
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ProtocolConfiguration_msg_init);
589
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
590
+ }
591
+ UPB_INLINE struct envoy_service_ext_proc_v3_ProtocolConfiguration* envoy_service_ext_proc_v3_ProcessingRequest_mutable_protocol_config(
592
+ envoy_service_ext_proc_v3_ProcessingRequest* msg, upb_Arena* arena) {
593
+ struct envoy_service_ext_proc_v3_ProtocolConfiguration* sub = (struct envoy_service_ext_proc_v3_ProtocolConfiguration*)envoy_service_ext_proc_v3_ProcessingRequest_protocol_config(msg);
594
+ if (sub == NULL) {
595
+ sub = (struct envoy_service_ext_proc_v3_ProtocolConfiguration*)_upb_Message_New(&envoy__service__ext_0proc__v3__ProtocolConfiguration_msg_init, arena);
596
+ if (sub) envoy_service_ext_proc_v3_ProcessingRequest_set_protocol_config(msg, sub);
597
+ }
598
+ return sub;
599
+ }
600
+
601
+ /* envoy.service.ext_proc.v3.ProcessingResponse */
602
+ UPB_INLINE envoy_service_ext_proc_v3_ProcessingResponse* envoy_service_ext_proc_v3_ProcessingResponse_new(upb_Arena* arena) {
603
+ return (envoy_service_ext_proc_v3_ProcessingResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__ProcessingResponse_msg_init, arena);
604
+ }
605
+ UPB_INLINE envoy_service_ext_proc_v3_ProcessingResponse* envoy_service_ext_proc_v3_ProcessingResponse_parse(const char* buf, size_t size,
606
+ upb_Arena* arena) {
607
+ envoy_service_ext_proc_v3_ProcessingResponse* ret = envoy_service_ext_proc_v3_ProcessingResponse_new(arena);
608
+ if (!ret) return NULL;
609
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__ProcessingResponse_msg_init, NULL, 0,
610
+ arena) != kUpb_DecodeStatus_Ok) {
611
+ return NULL;
612
+ }
613
+ return ret;
614
+ }
615
+ UPB_INLINE envoy_service_ext_proc_v3_ProcessingResponse* envoy_service_ext_proc_v3_ProcessingResponse_parse_ex(
616
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
617
+ int options, upb_Arena* arena) {
618
+ envoy_service_ext_proc_v3_ProcessingResponse* ret = envoy_service_ext_proc_v3_ProcessingResponse_new(arena);
619
+ if (!ret) return NULL;
620
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__ProcessingResponse_msg_init, extreg,
621
+ options, arena) != kUpb_DecodeStatus_Ok) {
622
+ return NULL;
623
+ }
624
+ return ret;
625
+ }
626
+ UPB_INLINE char* envoy_service_ext_proc_v3_ProcessingResponse_serialize(const envoy_service_ext_proc_v3_ProcessingResponse* msg,
627
+ upb_Arena* arena, size_t* len) {
628
+ char* ptr;
629
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ProcessingResponse_msg_init, 0, arena, &ptr, len);
630
+ return ptr;
631
+ }
632
+ UPB_INLINE char* envoy_service_ext_proc_v3_ProcessingResponse_serialize_ex(const envoy_service_ext_proc_v3_ProcessingResponse* msg,
633
+ int options, upb_Arena* arena,
634
+ size_t* len) {
635
+ char* ptr;
636
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ProcessingResponse_msg_init, options, arena, &ptr, len);
637
+ return ptr;
638
+ }
639
+ typedef enum {
640
+ envoy_service_ext_proc_v3_ProcessingResponse_response_request_headers = 1,
641
+ envoy_service_ext_proc_v3_ProcessingResponse_response_response_headers = 2,
642
+ envoy_service_ext_proc_v3_ProcessingResponse_response_request_body = 3,
643
+ envoy_service_ext_proc_v3_ProcessingResponse_response_response_body = 4,
644
+ envoy_service_ext_proc_v3_ProcessingResponse_response_request_trailers = 5,
645
+ envoy_service_ext_proc_v3_ProcessingResponse_response_response_trailers = 6,
646
+ envoy_service_ext_proc_v3_ProcessingResponse_response_immediate_response = 7,
647
+ envoy_service_ext_proc_v3_ProcessingResponse_response_NOT_SET = 0
648
+ } envoy_service_ext_proc_v3_ProcessingResponse_response_oneofcases;
649
+
650
+ UPB_INLINE envoy_service_ext_proc_v3_ProcessingResponse_response_oneofcases
651
+ envoy_service_ext_proc_v3_ProcessingResponse_response_case(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
652
+ const upb_MiniTableField field = {1, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(33, 34), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
653
+ return (envoy_service_ext_proc_v3_ProcessingResponse_response_oneofcases)upb_Message_WhichOneofFieldNumber(
654
+ UPB_UPCAST(msg), &field);
655
+ }
656
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_response(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
657
+ const upb_MiniTableField field = {1, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(33, 34), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
658
+ upb_Message_ClearOneof(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ProcessingResponse_msg_init, &field);
659
+ }
660
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_request_headers(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
661
+ const upb_MiniTableField field = {1, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(33, 34), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
662
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
663
+ }
664
+ UPB_INLINE const envoy_service_ext_proc_v3_HeadersResponse* envoy_service_ext_proc_v3_ProcessingResponse_request_headers(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
665
+ const envoy_service_ext_proc_v3_HeadersResponse* default_val = NULL;
666
+ const envoy_service_ext_proc_v3_HeadersResponse* ret;
667
+ const upb_MiniTableField field = {1, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(33, 34), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
668
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeadersResponse_msg_init);
669
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
670
+ &default_val, &ret);
671
+ return ret;
672
+ }
673
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_request_headers(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
674
+ const upb_MiniTableField field = {1, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(33, 34), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
675
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
676
+ }
677
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_response_headers(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
678
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(31, 33), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
679
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
680
+ }
681
+ UPB_INLINE const envoy_service_ext_proc_v3_HeadersResponse* envoy_service_ext_proc_v3_ProcessingResponse_response_headers(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
682
+ const envoy_service_ext_proc_v3_HeadersResponse* default_val = NULL;
683
+ const envoy_service_ext_proc_v3_HeadersResponse* ret;
684
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(31, 33), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
685
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeadersResponse_msg_init);
686
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
687
+ &default_val, &ret);
688
+ return ret;
689
+ }
690
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_response_headers(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
691
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(31, 33), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
692
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
693
+ }
694
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_request_body(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
695
+ const upb_MiniTableField field = {3, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(29, 32), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
696
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
697
+ }
698
+ UPB_INLINE const envoy_service_ext_proc_v3_BodyResponse* envoy_service_ext_proc_v3_ProcessingResponse_request_body(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
699
+ const envoy_service_ext_proc_v3_BodyResponse* default_val = NULL;
700
+ const envoy_service_ext_proc_v3_BodyResponse* ret;
701
+ const upb_MiniTableField field = {3, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(29, 32), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
702
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__BodyResponse_msg_init);
703
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
704
+ &default_val, &ret);
705
+ return ret;
706
+ }
707
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_request_body(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
708
+ const upb_MiniTableField field = {3, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(29, 32), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
709
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
710
+ }
711
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_response_body(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
712
+ const upb_MiniTableField field = {4, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(27, 31), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
713
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
714
+ }
715
+ UPB_INLINE const envoy_service_ext_proc_v3_BodyResponse* envoy_service_ext_proc_v3_ProcessingResponse_response_body(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
716
+ const envoy_service_ext_proc_v3_BodyResponse* default_val = NULL;
717
+ const envoy_service_ext_proc_v3_BodyResponse* ret;
718
+ const upb_MiniTableField field = {4, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(27, 31), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
719
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__BodyResponse_msg_init);
720
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
721
+ &default_val, &ret);
722
+ return ret;
723
+ }
724
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_response_body(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
725
+ const upb_MiniTableField field = {4, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(27, 31), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
726
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
727
+ }
728
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_request_trailers(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
729
+ const upb_MiniTableField field = {5, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(25, 30), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
730
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
731
+ }
732
+ UPB_INLINE const envoy_service_ext_proc_v3_TrailersResponse* envoy_service_ext_proc_v3_ProcessingResponse_request_trailers(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
733
+ const envoy_service_ext_proc_v3_TrailersResponse* default_val = NULL;
734
+ const envoy_service_ext_proc_v3_TrailersResponse* ret;
735
+ const upb_MiniTableField field = {5, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(25, 30), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
736
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__TrailersResponse_msg_init);
737
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
738
+ &default_val, &ret);
739
+ return ret;
740
+ }
741
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_request_trailers(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
742
+ const upb_MiniTableField field = {5, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(25, 30), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
743
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
744
+ }
745
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_response_trailers(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
746
+ const upb_MiniTableField field = {6, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(23, 29), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
747
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
748
+ }
749
+ UPB_INLINE const envoy_service_ext_proc_v3_TrailersResponse* envoy_service_ext_proc_v3_ProcessingResponse_response_trailers(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
750
+ const envoy_service_ext_proc_v3_TrailersResponse* default_val = NULL;
751
+ const envoy_service_ext_proc_v3_TrailersResponse* ret;
752
+ const upb_MiniTableField field = {6, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(23, 29), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
753
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__TrailersResponse_msg_init);
754
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
755
+ &default_val, &ret);
756
+ return ret;
757
+ }
758
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_response_trailers(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
759
+ const upb_MiniTableField field = {6, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(23, 29), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
760
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
761
+ }
762
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_immediate_response(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
763
+ const upb_MiniTableField field = {7, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(21, 28), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
764
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
765
+ }
766
+ UPB_INLINE const envoy_service_ext_proc_v3_ImmediateResponse* envoy_service_ext_proc_v3_ProcessingResponse_immediate_response(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
767
+ const envoy_service_ext_proc_v3_ImmediateResponse* default_val = NULL;
768
+ const envoy_service_ext_proc_v3_ImmediateResponse* ret;
769
+ const upb_MiniTableField field = {7, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(21, 28), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
770
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ImmediateResponse_msg_init);
771
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
772
+ &default_val, &ret);
773
+ return ret;
774
+ }
775
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_immediate_response(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
776
+ const upb_MiniTableField field = {7, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(21, 28), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
777
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
778
+ }
779
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_dynamic_metadata(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
780
+ const upb_MiniTableField field = {8, UPB_SIZE(12, 16), 64, UPB_SIZE(19, 27), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
781
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
782
+ }
783
+ UPB_INLINE const struct google_protobuf_Struct* envoy_service_ext_proc_v3_ProcessingResponse_dynamic_metadata(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
784
+ const struct google_protobuf_Struct* default_val = NULL;
785
+ const struct google_protobuf_Struct* ret;
786
+ const upb_MiniTableField field = {8, UPB_SIZE(12, 16), 64, UPB_SIZE(19, 27), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
787
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
788
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
789
+ &default_val, &ret);
790
+ return ret;
791
+ }
792
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_dynamic_metadata(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
793
+ const upb_MiniTableField field = {8, UPB_SIZE(12, 16), 64, UPB_SIZE(19, 27), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
794
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
795
+ }
796
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_mode_override(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
797
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 65, UPB_SIZE(17, 26), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
798
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
799
+ }
800
+ UPB_INLINE const struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode* envoy_service_ext_proc_v3_ProcessingResponse_mode_override(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
801
+ const struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode* default_val = NULL;
802
+ const struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode* ret;
803
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 65, UPB_SIZE(17, 26), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
804
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__extensions__filters__http__ext_0proc__v3__ProcessingMode_msg_init);
805
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
806
+ &default_val, &ret);
807
+ return ret;
808
+ }
809
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_mode_override(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
810
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 65, UPB_SIZE(17, 26), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
811
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
812
+ }
813
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_override_message_timeout(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
814
+ const upb_MiniTableField field = {10, UPB_SIZE(20, 32), 66, UPB_SIZE(15, 25), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
815
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
816
+ }
817
+ UPB_INLINE const struct google_protobuf_Duration* envoy_service_ext_proc_v3_ProcessingResponse_override_message_timeout(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
818
+ const struct google_protobuf_Duration* default_val = NULL;
819
+ const struct google_protobuf_Duration* ret;
820
+ const upb_MiniTableField field = {10, UPB_SIZE(20, 32), 66, UPB_SIZE(15, 25), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
821
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Duration_msg_init);
822
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
823
+ &default_val, &ret);
824
+ return ret;
825
+ }
826
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_has_override_message_timeout(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
827
+ const upb_MiniTableField field = {10, UPB_SIZE(20, 32), 66, UPB_SIZE(15, 25), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
828
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
829
+ }
830
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_clear_request_drain(envoy_service_ext_proc_v3_ProcessingResponse* msg) {
831
+ const upb_MiniTableField field = {11, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
832
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
833
+ }
834
+ UPB_INLINE bool envoy_service_ext_proc_v3_ProcessingResponse_request_drain(const envoy_service_ext_proc_v3_ProcessingResponse* msg) {
835
+ bool default_val = false;
836
+ bool ret;
837
+ const upb_MiniTableField field = {11, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
838
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
839
+ &default_val, &ret);
840
+ return ret;
841
+ }
842
+
843
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_request_headers(envoy_service_ext_proc_v3_ProcessingResponse* msg, envoy_service_ext_proc_v3_HeadersResponse* value) {
844
+ const upb_MiniTableField field = {1, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(33, 34), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
845
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeadersResponse_msg_init);
846
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
847
+ }
848
+ UPB_INLINE struct envoy_service_ext_proc_v3_HeadersResponse* envoy_service_ext_proc_v3_ProcessingResponse_mutable_request_headers(
849
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
850
+ struct envoy_service_ext_proc_v3_HeadersResponse* sub = (struct envoy_service_ext_proc_v3_HeadersResponse*)envoy_service_ext_proc_v3_ProcessingResponse_request_headers(msg);
851
+ if (sub == NULL) {
852
+ sub = (struct envoy_service_ext_proc_v3_HeadersResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__HeadersResponse_msg_init, arena);
853
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_request_headers(msg, sub);
854
+ }
855
+ return sub;
856
+ }
857
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_response_headers(envoy_service_ext_proc_v3_ProcessingResponse* msg, envoy_service_ext_proc_v3_HeadersResponse* value) {
858
+ const upb_MiniTableField field = {2, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(31, 33), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
859
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeadersResponse_msg_init);
860
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
861
+ }
862
+ UPB_INLINE struct envoy_service_ext_proc_v3_HeadersResponse* envoy_service_ext_proc_v3_ProcessingResponse_mutable_response_headers(
863
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
864
+ struct envoy_service_ext_proc_v3_HeadersResponse* sub = (struct envoy_service_ext_proc_v3_HeadersResponse*)envoy_service_ext_proc_v3_ProcessingResponse_response_headers(msg);
865
+ if (sub == NULL) {
866
+ sub = (struct envoy_service_ext_proc_v3_HeadersResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__HeadersResponse_msg_init, arena);
867
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_response_headers(msg, sub);
868
+ }
869
+ return sub;
870
+ }
871
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_request_body(envoy_service_ext_proc_v3_ProcessingResponse* msg, envoy_service_ext_proc_v3_BodyResponse* value) {
872
+ const upb_MiniTableField field = {3, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(29, 32), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
873
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__BodyResponse_msg_init);
874
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
875
+ }
876
+ UPB_INLINE struct envoy_service_ext_proc_v3_BodyResponse* envoy_service_ext_proc_v3_ProcessingResponse_mutable_request_body(
877
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
878
+ struct envoy_service_ext_proc_v3_BodyResponse* sub = (struct envoy_service_ext_proc_v3_BodyResponse*)envoy_service_ext_proc_v3_ProcessingResponse_request_body(msg);
879
+ if (sub == NULL) {
880
+ sub = (struct envoy_service_ext_proc_v3_BodyResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__BodyResponse_msg_init, arena);
881
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_request_body(msg, sub);
882
+ }
883
+ return sub;
884
+ }
885
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_response_body(envoy_service_ext_proc_v3_ProcessingResponse* msg, envoy_service_ext_proc_v3_BodyResponse* value) {
886
+ const upb_MiniTableField field = {4, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(27, 31), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
887
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__BodyResponse_msg_init);
888
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
889
+ }
890
+ UPB_INLINE struct envoy_service_ext_proc_v3_BodyResponse* envoy_service_ext_proc_v3_ProcessingResponse_mutable_response_body(
891
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
892
+ struct envoy_service_ext_proc_v3_BodyResponse* sub = (struct envoy_service_ext_proc_v3_BodyResponse*)envoy_service_ext_proc_v3_ProcessingResponse_response_body(msg);
893
+ if (sub == NULL) {
894
+ sub = (struct envoy_service_ext_proc_v3_BodyResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__BodyResponse_msg_init, arena);
895
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_response_body(msg, sub);
896
+ }
897
+ return sub;
898
+ }
899
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_request_trailers(envoy_service_ext_proc_v3_ProcessingResponse* msg, envoy_service_ext_proc_v3_TrailersResponse* value) {
900
+ const upb_MiniTableField field = {5, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(25, 30), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
901
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__TrailersResponse_msg_init);
902
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
903
+ }
904
+ UPB_INLINE struct envoy_service_ext_proc_v3_TrailersResponse* envoy_service_ext_proc_v3_ProcessingResponse_mutable_request_trailers(
905
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
906
+ struct envoy_service_ext_proc_v3_TrailersResponse* sub = (struct envoy_service_ext_proc_v3_TrailersResponse*)envoy_service_ext_proc_v3_ProcessingResponse_request_trailers(msg);
907
+ if (sub == NULL) {
908
+ sub = (struct envoy_service_ext_proc_v3_TrailersResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__TrailersResponse_msg_init, arena);
909
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_request_trailers(msg, sub);
910
+ }
911
+ return sub;
912
+ }
913
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_response_trailers(envoy_service_ext_proc_v3_ProcessingResponse* msg, envoy_service_ext_proc_v3_TrailersResponse* value) {
914
+ const upb_MiniTableField field = {6, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(23, 29), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
915
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__TrailersResponse_msg_init);
916
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
917
+ }
918
+ UPB_INLINE struct envoy_service_ext_proc_v3_TrailersResponse* envoy_service_ext_proc_v3_ProcessingResponse_mutable_response_trailers(
919
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
920
+ struct envoy_service_ext_proc_v3_TrailersResponse* sub = (struct envoy_service_ext_proc_v3_TrailersResponse*)envoy_service_ext_proc_v3_ProcessingResponse_response_trailers(msg);
921
+ if (sub == NULL) {
922
+ sub = (struct envoy_service_ext_proc_v3_TrailersResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__TrailersResponse_msg_init, arena);
923
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_response_trailers(msg, sub);
924
+ }
925
+ return sub;
926
+ }
927
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_immediate_response(envoy_service_ext_proc_v3_ProcessingResponse* msg, envoy_service_ext_proc_v3_ImmediateResponse* value) {
928
+ const upb_MiniTableField field = {7, UPB_SIZE(28, 40), UPB_SIZE(-25, -13), UPB_SIZE(21, 28), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
929
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__ImmediateResponse_msg_init);
930
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
931
+ }
932
+ UPB_INLINE struct envoy_service_ext_proc_v3_ImmediateResponse* envoy_service_ext_proc_v3_ProcessingResponse_mutable_immediate_response(
933
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
934
+ struct envoy_service_ext_proc_v3_ImmediateResponse* sub = (struct envoy_service_ext_proc_v3_ImmediateResponse*)envoy_service_ext_proc_v3_ProcessingResponse_immediate_response(msg);
935
+ if (sub == NULL) {
936
+ sub = (struct envoy_service_ext_proc_v3_ImmediateResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__ImmediateResponse_msg_init, arena);
937
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_immediate_response(msg, sub);
938
+ }
939
+ return sub;
940
+ }
941
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_dynamic_metadata(envoy_service_ext_proc_v3_ProcessingResponse* msg, struct google_protobuf_Struct* value) {
942
+ const upb_MiniTableField field = {8, UPB_SIZE(12, 16), 64, UPB_SIZE(19, 27), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
943
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
944
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
945
+ }
946
+ UPB_INLINE struct google_protobuf_Struct* envoy_service_ext_proc_v3_ProcessingResponse_mutable_dynamic_metadata(
947
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
948
+ struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_service_ext_proc_v3_ProcessingResponse_dynamic_metadata(msg);
949
+ if (sub == NULL) {
950
+ sub = (struct google_protobuf_Struct*)_upb_Message_New(&google__protobuf__Struct_msg_init, arena);
951
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_dynamic_metadata(msg, sub);
952
+ }
953
+ return sub;
954
+ }
955
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_mode_override(envoy_service_ext_proc_v3_ProcessingResponse* msg, struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode* value) {
956
+ const upb_MiniTableField field = {9, UPB_SIZE(16, 24), 65, UPB_SIZE(17, 26), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
957
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__extensions__filters__http__ext_0proc__v3__ProcessingMode_msg_init);
958
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
959
+ }
960
+ UPB_INLINE struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode* envoy_service_ext_proc_v3_ProcessingResponse_mutable_mode_override(
961
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
962
+ struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode* sub = (struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode*)envoy_service_ext_proc_v3_ProcessingResponse_mode_override(msg);
963
+ if (sub == NULL) {
964
+ sub = (struct envoy_extensions_filters_http_ext_proc_v3_ProcessingMode*)_upb_Message_New(&envoy__extensions__filters__http__ext_0proc__v3__ProcessingMode_msg_init, arena);
965
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_mode_override(msg, sub);
966
+ }
967
+ return sub;
968
+ }
969
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_override_message_timeout(envoy_service_ext_proc_v3_ProcessingResponse* msg, struct google_protobuf_Duration* value) {
970
+ const upb_MiniTableField field = {10, UPB_SIZE(20, 32), 66, UPB_SIZE(15, 25), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
971
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Duration_msg_init);
972
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
973
+ }
974
+ UPB_INLINE struct google_protobuf_Duration* envoy_service_ext_proc_v3_ProcessingResponse_mutable_override_message_timeout(
975
+ envoy_service_ext_proc_v3_ProcessingResponse* msg, upb_Arena* arena) {
976
+ struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_service_ext_proc_v3_ProcessingResponse_override_message_timeout(msg);
977
+ if (sub == NULL) {
978
+ sub = (struct google_protobuf_Duration*)_upb_Message_New(&google__protobuf__Duration_msg_init, arena);
979
+ if (sub) envoy_service_ext_proc_v3_ProcessingResponse_set_override_message_timeout(msg, sub);
980
+ }
981
+ return sub;
982
+ }
983
+ UPB_INLINE void envoy_service_ext_proc_v3_ProcessingResponse_set_request_drain(envoy_service_ext_proc_v3_ProcessingResponse* msg, bool value) {
984
+ const upb_MiniTableField field = {11, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
985
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
986
+ }
987
+
988
+ /* envoy.service.ext_proc.v3.HttpHeaders */
989
+ UPB_INLINE envoy_service_ext_proc_v3_HttpHeaders* envoy_service_ext_proc_v3_HttpHeaders_new(upb_Arena* arena) {
990
+ return (envoy_service_ext_proc_v3_HttpHeaders*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpHeaders_msg_init, arena);
991
+ }
992
+ UPB_INLINE envoy_service_ext_proc_v3_HttpHeaders* envoy_service_ext_proc_v3_HttpHeaders_parse(const char* buf, size_t size,
993
+ upb_Arena* arena) {
994
+ envoy_service_ext_proc_v3_HttpHeaders* ret = envoy_service_ext_proc_v3_HttpHeaders_new(arena);
995
+ if (!ret) return NULL;
996
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HttpHeaders_msg_init, NULL, 0,
997
+ arena) != kUpb_DecodeStatus_Ok) {
998
+ return NULL;
999
+ }
1000
+ return ret;
1001
+ }
1002
+ UPB_INLINE envoy_service_ext_proc_v3_HttpHeaders* envoy_service_ext_proc_v3_HttpHeaders_parse_ex(
1003
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1004
+ int options, upb_Arena* arena) {
1005
+ envoy_service_ext_proc_v3_HttpHeaders* ret = envoy_service_ext_proc_v3_HttpHeaders_new(arena);
1006
+ if (!ret) return NULL;
1007
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HttpHeaders_msg_init, extreg,
1008
+ options, arena) != kUpb_DecodeStatus_Ok) {
1009
+ return NULL;
1010
+ }
1011
+ return ret;
1012
+ }
1013
+ UPB_INLINE char* envoy_service_ext_proc_v3_HttpHeaders_serialize(const envoy_service_ext_proc_v3_HttpHeaders* msg,
1014
+ upb_Arena* arena, size_t* len) {
1015
+ char* ptr;
1016
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HttpHeaders_msg_init, 0, arena, &ptr, len);
1017
+ return ptr;
1018
+ }
1019
+ UPB_INLINE char* envoy_service_ext_proc_v3_HttpHeaders_serialize_ex(const envoy_service_ext_proc_v3_HttpHeaders* msg,
1020
+ int options, upb_Arena* arena,
1021
+ size_t* len) {
1022
+ char* ptr;
1023
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HttpHeaders_msg_init, options, arena, &ptr, len);
1024
+ return ptr;
1025
+ }
1026
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpHeaders_clear_headers(envoy_service_ext_proc_v3_HttpHeaders* msg) {
1027
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(9, 10), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1028
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1029
+ }
1030
+ UPB_INLINE const struct envoy_config_core_v3_HeaderMap* envoy_service_ext_proc_v3_HttpHeaders_headers(const envoy_service_ext_proc_v3_HttpHeaders* msg) {
1031
+ const struct envoy_config_core_v3_HeaderMap* default_val = NULL;
1032
+ const struct envoy_config_core_v3_HeaderMap* ret;
1033
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(9, 10), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1034
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderMap_msg_init);
1035
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1036
+ &default_val, &ret);
1037
+ return ret;
1038
+ }
1039
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpHeaders_has_headers(const envoy_service_ext_proc_v3_HttpHeaders* msg) {
1040
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(9, 10), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1041
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1042
+ }
1043
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpHeaders_clear_attributes(envoy_service_ext_proc_v3_HttpHeaders* msg) {
1044
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1045
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1046
+ }
1047
+ UPB_INLINE size_t envoy_service_ext_proc_v3_HttpHeaders_attributes_size(const envoy_service_ext_proc_v3_HttpHeaders* msg) {
1048
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1049
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders__AttributesEntry_msg_init);
1050
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
1051
+ const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
1052
+ return map ? _upb_Map_Size(map) : 0;
1053
+ }
1054
+
1055
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpHeaders_attributes_get(const envoy_service_ext_proc_v3_HttpHeaders* msg,
1056
+ upb_StringView key, struct google_protobuf_Struct** val) {
1057
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1058
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders__AttributesEntry_msg_init);
1059
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
1060
+ const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
1061
+ if (!map) return false;
1062
+ return _upb_Map_Get(map, &key, 0, val, sizeof(struct google_protobuf_Struct*));
1063
+ }
1064
+
1065
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpHeaders_attributes_next(const envoy_service_ext_proc_v3_HttpHeaders* msg,
1066
+ upb_StringView* key,
1067
+ const struct google_protobuf_Struct** val,
1068
+ size_t* iter) {
1069
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1070
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders__AttributesEntry_msg_init);
1071
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
1072
+ const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
1073
+ if (!map) return false;
1074
+ upb_MessageValue k;
1075
+ upb_MessageValue v;
1076
+ if (!upb_Map_Next(map, &k, &v, iter)) return false;
1077
+ memcpy(key, &k, sizeof(*key));
1078
+ memcpy(val, &v, sizeof(*val));
1079
+ return true;
1080
+ }
1081
+
1082
+ // and ~ a upb_Map for mutable.
1083
+ //
1084
+ UPB_INLINE const upb_Map* _envoy_service_ext_proc_v3_HttpHeaders_attributes_upb_map(envoy_service_ext_proc_v3_HttpHeaders* msg) {
1085
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1086
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders__AttributesEntry_msg_init);
1087
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
1088
+ return upb_Message_GetMap(UPB_UPCAST(msg), &field);
1089
+ }
1090
+
1091
+ UPB_INLINE upb_Map* _envoy_service_ext_proc_v3_HttpHeaders_attributes_mutable_upb_map(
1092
+ envoy_service_ext_proc_v3_HttpHeaders* msg, upb_Arena* a) {
1093
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1094
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders__AttributesEntry_msg_init);
1095
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
1096
+ return _upb_Message_GetOrCreateMutableMap(UPB_UPCAST(msg), &field,
1097
+ 0, sizeof(struct google_protobuf_Struct*), a);
1098
+ }
1099
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpHeaders_clear_end_of_stream(envoy_service_ext_proc_v3_HttpHeaders* msg) {
1100
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1101
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1102
+ }
1103
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpHeaders_end_of_stream(const envoy_service_ext_proc_v3_HttpHeaders* msg) {
1104
+ bool default_val = false;
1105
+ bool ret;
1106
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1107
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1108
+ &default_val, &ret);
1109
+ return ret;
1110
+ }
1111
+
1112
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpHeaders_set_headers(envoy_service_ext_proc_v3_HttpHeaders* msg, struct envoy_config_core_v3_HeaderMap* value) {
1113
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(9, 10), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1114
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderMap_msg_init);
1115
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1116
+ }
1117
+ UPB_INLINE struct envoy_config_core_v3_HeaderMap* envoy_service_ext_proc_v3_HttpHeaders_mutable_headers(
1118
+ envoy_service_ext_proc_v3_HttpHeaders* msg, upb_Arena* arena) {
1119
+ struct envoy_config_core_v3_HeaderMap* sub = (struct envoy_config_core_v3_HeaderMap*)envoy_service_ext_proc_v3_HttpHeaders_headers(msg);
1120
+ if (sub == NULL) {
1121
+ sub = (struct envoy_config_core_v3_HeaderMap*)_upb_Message_New(&envoy__config__core__v3__HeaderMap_msg_init, arena);
1122
+ if (sub) envoy_service_ext_proc_v3_HttpHeaders_set_headers(msg, sub);
1123
+ }
1124
+ return sub;
1125
+ }
1126
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpHeaders_attributes_clear(envoy_service_ext_proc_v3_HttpHeaders* msg) {
1127
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1128
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders__AttributesEntry_msg_init);
1129
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
1130
+ upb_Map* map = (upb_Map*)upb_Message_GetMap(UPB_UPCAST(msg), &field);
1131
+ if (!map) return;
1132
+ _upb_Map_Clear(map);
1133
+ }
1134
+
1135
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpHeaders_attributes_set(envoy_service_ext_proc_v3_HttpHeaders* msg, upb_StringView key,
1136
+ struct google_protobuf_Struct* val, upb_Arena* a) {
1137
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1138
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders__AttributesEntry_msg_init);
1139
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
1140
+ upb_Map* map = _upb_Message_GetOrCreateMutableMap(
1141
+ UPB_UPCAST(msg), &field, 0, sizeof(val), a);
1142
+ return _upb_Map_Insert(map, &key, 0, &val, sizeof(val), a) !=
1143
+ kUpb_MapInsertStatus_OutOfMemory;
1144
+ }
1145
+
1146
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpHeaders_attributes_delete(envoy_service_ext_proc_v3_HttpHeaders* msg, upb_StringView key) {
1147
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 24), 0, UPB_SIZE(7, 9), 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1148
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HttpHeaders__AttributesEntry_msg_init);
1149
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&google__protobuf__Struct_msg_init);
1150
+ upb_Map* map = (upb_Map*)upb_Message_GetMap(UPB_UPCAST(msg), &field);
1151
+ if (!map) return false;
1152
+ return _upb_Map_Delete(map, &key, 0, NULL);
1153
+ }
1154
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpHeaders_set_end_of_stream(envoy_service_ext_proc_v3_HttpHeaders* msg, bool value) {
1155
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1156
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1157
+ }
1158
+
1159
+ /* envoy.service.ext_proc.v3.HttpBody */
1160
+ UPB_INLINE envoy_service_ext_proc_v3_HttpBody* envoy_service_ext_proc_v3_HttpBody_new(upb_Arena* arena) {
1161
+ return (envoy_service_ext_proc_v3_HttpBody*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpBody_msg_init, arena);
1162
+ }
1163
+ UPB_INLINE envoy_service_ext_proc_v3_HttpBody* envoy_service_ext_proc_v3_HttpBody_parse(const char* buf, size_t size,
1164
+ upb_Arena* arena) {
1165
+ envoy_service_ext_proc_v3_HttpBody* ret = envoy_service_ext_proc_v3_HttpBody_new(arena);
1166
+ if (!ret) return NULL;
1167
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HttpBody_msg_init, NULL, 0,
1168
+ arena) != kUpb_DecodeStatus_Ok) {
1169
+ return NULL;
1170
+ }
1171
+ return ret;
1172
+ }
1173
+ UPB_INLINE envoy_service_ext_proc_v3_HttpBody* envoy_service_ext_proc_v3_HttpBody_parse_ex(
1174
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1175
+ int options, upb_Arena* arena) {
1176
+ envoy_service_ext_proc_v3_HttpBody* ret = envoy_service_ext_proc_v3_HttpBody_new(arena);
1177
+ if (!ret) return NULL;
1178
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HttpBody_msg_init, extreg,
1179
+ options, arena) != kUpb_DecodeStatus_Ok) {
1180
+ return NULL;
1181
+ }
1182
+ return ret;
1183
+ }
1184
+ UPB_INLINE char* envoy_service_ext_proc_v3_HttpBody_serialize(const envoy_service_ext_proc_v3_HttpBody* msg,
1185
+ upb_Arena* arena, size_t* len) {
1186
+ char* ptr;
1187
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HttpBody_msg_init, 0, arena, &ptr, len);
1188
+ return ptr;
1189
+ }
1190
+ UPB_INLINE char* envoy_service_ext_proc_v3_HttpBody_serialize_ex(const envoy_service_ext_proc_v3_HttpBody* msg,
1191
+ int options, upb_Arena* arena,
1192
+ size_t* len) {
1193
+ char* ptr;
1194
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HttpBody_msg_init, options, arena, &ptr, len);
1195
+ return ptr;
1196
+ }
1197
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpBody_clear_body(envoy_service_ext_proc_v3_HttpBody* msg) {
1198
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1199
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1200
+ }
1201
+ UPB_INLINE upb_StringView envoy_service_ext_proc_v3_HttpBody_body(const envoy_service_ext_proc_v3_HttpBody* msg) {
1202
+ upb_StringView default_val = upb_StringView_FromString("");
1203
+ upb_StringView ret;
1204
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1205
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1206
+ &default_val, &ret);
1207
+ return ret;
1208
+ }
1209
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpBody_clear_end_of_stream(envoy_service_ext_proc_v3_HttpBody* msg) {
1210
+ const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1211
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1212
+ }
1213
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpBody_end_of_stream(const envoy_service_ext_proc_v3_HttpBody* msg) {
1214
+ bool default_val = false;
1215
+ bool ret;
1216
+ const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1217
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1218
+ &default_val, &ret);
1219
+ return ret;
1220
+ }
1221
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpBody_clear_end_of_stream_without_message(envoy_service_ext_proc_v3_HttpBody* msg) {
1222
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1223
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1224
+ }
1225
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpBody_end_of_stream_without_message(const envoy_service_ext_proc_v3_HttpBody* msg) {
1226
+ bool default_val = false;
1227
+ bool ret;
1228
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1229
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1230
+ &default_val, &ret);
1231
+ return ret;
1232
+ }
1233
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpBody_clear_grpc_message_compressed(envoy_service_ext_proc_v3_HttpBody* msg) {
1234
+ const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1235
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1236
+ }
1237
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpBody_grpc_message_compressed(const envoy_service_ext_proc_v3_HttpBody* msg) {
1238
+ bool default_val = false;
1239
+ bool ret;
1240
+ const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1241
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1242
+ &default_val, &ret);
1243
+ return ret;
1244
+ }
1245
+
1246
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpBody_set_body(envoy_service_ext_proc_v3_HttpBody* msg, upb_StringView value) {
1247
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1248
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1249
+ }
1250
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpBody_set_end_of_stream(envoy_service_ext_proc_v3_HttpBody* msg, bool value) {
1251
+ const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1252
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1253
+ }
1254
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpBody_set_end_of_stream_without_message(envoy_service_ext_proc_v3_HttpBody* msg, bool value) {
1255
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1256
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1257
+ }
1258
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpBody_set_grpc_message_compressed(envoy_service_ext_proc_v3_HttpBody* msg, bool value) {
1259
+ const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1260
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1261
+ }
1262
+
1263
+ /* envoy.service.ext_proc.v3.HttpTrailers */
1264
+ UPB_INLINE envoy_service_ext_proc_v3_HttpTrailers* envoy_service_ext_proc_v3_HttpTrailers_new(upb_Arena* arena) {
1265
+ return (envoy_service_ext_proc_v3_HttpTrailers*)_upb_Message_New(&envoy__service__ext_0proc__v3__HttpTrailers_msg_init, arena);
1266
+ }
1267
+ UPB_INLINE envoy_service_ext_proc_v3_HttpTrailers* envoy_service_ext_proc_v3_HttpTrailers_parse(const char* buf, size_t size,
1268
+ upb_Arena* arena) {
1269
+ envoy_service_ext_proc_v3_HttpTrailers* ret = envoy_service_ext_proc_v3_HttpTrailers_new(arena);
1270
+ if (!ret) return NULL;
1271
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HttpTrailers_msg_init, NULL, 0,
1272
+ arena) != kUpb_DecodeStatus_Ok) {
1273
+ return NULL;
1274
+ }
1275
+ return ret;
1276
+ }
1277
+ UPB_INLINE envoy_service_ext_proc_v3_HttpTrailers* envoy_service_ext_proc_v3_HttpTrailers_parse_ex(
1278
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1279
+ int options, upb_Arena* arena) {
1280
+ envoy_service_ext_proc_v3_HttpTrailers* ret = envoy_service_ext_proc_v3_HttpTrailers_new(arena);
1281
+ if (!ret) return NULL;
1282
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HttpTrailers_msg_init, extreg,
1283
+ options, arena) != kUpb_DecodeStatus_Ok) {
1284
+ return NULL;
1285
+ }
1286
+ return ret;
1287
+ }
1288
+ UPB_INLINE char* envoy_service_ext_proc_v3_HttpTrailers_serialize(const envoy_service_ext_proc_v3_HttpTrailers* msg,
1289
+ upb_Arena* arena, size_t* len) {
1290
+ char* ptr;
1291
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HttpTrailers_msg_init, 0, arena, &ptr, len);
1292
+ return ptr;
1293
+ }
1294
+ UPB_INLINE char* envoy_service_ext_proc_v3_HttpTrailers_serialize_ex(const envoy_service_ext_proc_v3_HttpTrailers* msg,
1295
+ int options, upb_Arena* arena,
1296
+ size_t* len) {
1297
+ char* ptr;
1298
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HttpTrailers_msg_init, options, arena, &ptr, len);
1299
+ return ptr;
1300
+ }
1301
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpTrailers_clear_trailers(envoy_service_ext_proc_v3_HttpTrailers* msg) {
1302
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1303
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1304
+ }
1305
+ UPB_INLINE const struct envoy_config_core_v3_HeaderMap* envoy_service_ext_proc_v3_HttpTrailers_trailers(const envoy_service_ext_proc_v3_HttpTrailers* msg) {
1306
+ const struct envoy_config_core_v3_HeaderMap* default_val = NULL;
1307
+ const struct envoy_config_core_v3_HeaderMap* ret;
1308
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1309
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderMap_msg_init);
1310
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1311
+ &default_val, &ret);
1312
+ return ret;
1313
+ }
1314
+ UPB_INLINE bool envoy_service_ext_proc_v3_HttpTrailers_has_trailers(const envoy_service_ext_proc_v3_HttpTrailers* msg) {
1315
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1316
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1317
+ }
1318
+
1319
+ UPB_INLINE void envoy_service_ext_proc_v3_HttpTrailers_set_trailers(envoy_service_ext_proc_v3_HttpTrailers* msg, struct envoy_config_core_v3_HeaderMap* value) {
1320
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1321
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderMap_msg_init);
1322
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1323
+ }
1324
+ UPB_INLINE struct envoy_config_core_v3_HeaderMap* envoy_service_ext_proc_v3_HttpTrailers_mutable_trailers(
1325
+ envoy_service_ext_proc_v3_HttpTrailers* msg, upb_Arena* arena) {
1326
+ struct envoy_config_core_v3_HeaderMap* sub = (struct envoy_config_core_v3_HeaderMap*)envoy_service_ext_proc_v3_HttpTrailers_trailers(msg);
1327
+ if (sub == NULL) {
1328
+ sub = (struct envoy_config_core_v3_HeaderMap*)_upb_Message_New(&envoy__config__core__v3__HeaderMap_msg_init, arena);
1329
+ if (sub) envoy_service_ext_proc_v3_HttpTrailers_set_trailers(msg, sub);
1330
+ }
1331
+ return sub;
1332
+ }
1333
+
1334
+ /* envoy.service.ext_proc.v3.HeadersResponse */
1335
+ UPB_INLINE envoy_service_ext_proc_v3_HeadersResponse* envoy_service_ext_proc_v3_HeadersResponse_new(upb_Arena* arena) {
1336
+ return (envoy_service_ext_proc_v3_HeadersResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__HeadersResponse_msg_init, arena);
1337
+ }
1338
+ UPB_INLINE envoy_service_ext_proc_v3_HeadersResponse* envoy_service_ext_proc_v3_HeadersResponse_parse(const char* buf, size_t size,
1339
+ upb_Arena* arena) {
1340
+ envoy_service_ext_proc_v3_HeadersResponse* ret = envoy_service_ext_proc_v3_HeadersResponse_new(arena);
1341
+ if (!ret) return NULL;
1342
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HeadersResponse_msg_init, NULL, 0,
1343
+ arena) != kUpb_DecodeStatus_Ok) {
1344
+ return NULL;
1345
+ }
1346
+ return ret;
1347
+ }
1348
+ UPB_INLINE envoy_service_ext_proc_v3_HeadersResponse* envoy_service_ext_proc_v3_HeadersResponse_parse_ex(
1349
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1350
+ int options, upb_Arena* arena) {
1351
+ envoy_service_ext_proc_v3_HeadersResponse* ret = envoy_service_ext_proc_v3_HeadersResponse_new(arena);
1352
+ if (!ret) return NULL;
1353
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HeadersResponse_msg_init, extreg,
1354
+ options, arena) != kUpb_DecodeStatus_Ok) {
1355
+ return NULL;
1356
+ }
1357
+ return ret;
1358
+ }
1359
+ UPB_INLINE char* envoy_service_ext_proc_v3_HeadersResponse_serialize(const envoy_service_ext_proc_v3_HeadersResponse* msg,
1360
+ upb_Arena* arena, size_t* len) {
1361
+ char* ptr;
1362
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HeadersResponse_msg_init, 0, arena, &ptr, len);
1363
+ return ptr;
1364
+ }
1365
+ UPB_INLINE char* envoy_service_ext_proc_v3_HeadersResponse_serialize_ex(const envoy_service_ext_proc_v3_HeadersResponse* msg,
1366
+ int options, upb_Arena* arena,
1367
+ size_t* len) {
1368
+ char* ptr;
1369
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HeadersResponse_msg_init, options, arena, &ptr, len);
1370
+ return ptr;
1371
+ }
1372
+ UPB_INLINE void envoy_service_ext_proc_v3_HeadersResponse_clear_response(envoy_service_ext_proc_v3_HeadersResponse* msg) {
1373
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1374
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1375
+ }
1376
+ UPB_INLINE const envoy_service_ext_proc_v3_CommonResponse* envoy_service_ext_proc_v3_HeadersResponse_response(const envoy_service_ext_proc_v3_HeadersResponse* msg) {
1377
+ const envoy_service_ext_proc_v3_CommonResponse* default_val = NULL;
1378
+ const envoy_service_ext_proc_v3_CommonResponse* ret;
1379
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1380
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__CommonResponse_msg_init);
1381
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1382
+ &default_val, &ret);
1383
+ return ret;
1384
+ }
1385
+ UPB_INLINE bool envoy_service_ext_proc_v3_HeadersResponse_has_response(const envoy_service_ext_proc_v3_HeadersResponse* msg) {
1386
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1387
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1388
+ }
1389
+
1390
+ UPB_INLINE void envoy_service_ext_proc_v3_HeadersResponse_set_response(envoy_service_ext_proc_v3_HeadersResponse* msg, envoy_service_ext_proc_v3_CommonResponse* value) {
1391
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1392
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__CommonResponse_msg_init);
1393
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1394
+ }
1395
+ UPB_INLINE struct envoy_service_ext_proc_v3_CommonResponse* envoy_service_ext_proc_v3_HeadersResponse_mutable_response(
1396
+ envoy_service_ext_proc_v3_HeadersResponse* msg, upb_Arena* arena) {
1397
+ struct envoy_service_ext_proc_v3_CommonResponse* sub = (struct envoy_service_ext_proc_v3_CommonResponse*)envoy_service_ext_proc_v3_HeadersResponse_response(msg);
1398
+ if (sub == NULL) {
1399
+ sub = (struct envoy_service_ext_proc_v3_CommonResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__CommonResponse_msg_init, arena);
1400
+ if (sub) envoy_service_ext_proc_v3_HeadersResponse_set_response(msg, sub);
1401
+ }
1402
+ return sub;
1403
+ }
1404
+
1405
+ /* envoy.service.ext_proc.v3.BodyResponse */
1406
+ UPB_INLINE envoy_service_ext_proc_v3_BodyResponse* envoy_service_ext_proc_v3_BodyResponse_new(upb_Arena* arena) {
1407
+ return (envoy_service_ext_proc_v3_BodyResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__BodyResponse_msg_init, arena);
1408
+ }
1409
+ UPB_INLINE envoy_service_ext_proc_v3_BodyResponse* envoy_service_ext_proc_v3_BodyResponse_parse(const char* buf, size_t size,
1410
+ upb_Arena* arena) {
1411
+ envoy_service_ext_proc_v3_BodyResponse* ret = envoy_service_ext_proc_v3_BodyResponse_new(arena);
1412
+ if (!ret) return NULL;
1413
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__BodyResponse_msg_init, NULL, 0,
1414
+ arena) != kUpb_DecodeStatus_Ok) {
1415
+ return NULL;
1416
+ }
1417
+ return ret;
1418
+ }
1419
+ UPB_INLINE envoy_service_ext_proc_v3_BodyResponse* envoy_service_ext_proc_v3_BodyResponse_parse_ex(
1420
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1421
+ int options, upb_Arena* arena) {
1422
+ envoy_service_ext_proc_v3_BodyResponse* ret = envoy_service_ext_proc_v3_BodyResponse_new(arena);
1423
+ if (!ret) return NULL;
1424
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__BodyResponse_msg_init, extreg,
1425
+ options, arena) != kUpb_DecodeStatus_Ok) {
1426
+ return NULL;
1427
+ }
1428
+ return ret;
1429
+ }
1430
+ UPB_INLINE char* envoy_service_ext_proc_v3_BodyResponse_serialize(const envoy_service_ext_proc_v3_BodyResponse* msg,
1431
+ upb_Arena* arena, size_t* len) {
1432
+ char* ptr;
1433
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__BodyResponse_msg_init, 0, arena, &ptr, len);
1434
+ return ptr;
1435
+ }
1436
+ UPB_INLINE char* envoy_service_ext_proc_v3_BodyResponse_serialize_ex(const envoy_service_ext_proc_v3_BodyResponse* msg,
1437
+ int options, upb_Arena* arena,
1438
+ size_t* len) {
1439
+ char* ptr;
1440
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__BodyResponse_msg_init, options, arena, &ptr, len);
1441
+ return ptr;
1442
+ }
1443
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyResponse_clear_response(envoy_service_ext_proc_v3_BodyResponse* msg) {
1444
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1445
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1446
+ }
1447
+ UPB_INLINE const envoy_service_ext_proc_v3_CommonResponse* envoy_service_ext_proc_v3_BodyResponse_response(const envoy_service_ext_proc_v3_BodyResponse* msg) {
1448
+ const envoy_service_ext_proc_v3_CommonResponse* default_val = NULL;
1449
+ const envoy_service_ext_proc_v3_CommonResponse* ret;
1450
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1451
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__CommonResponse_msg_init);
1452
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1453
+ &default_val, &ret);
1454
+ return ret;
1455
+ }
1456
+ UPB_INLINE bool envoy_service_ext_proc_v3_BodyResponse_has_response(const envoy_service_ext_proc_v3_BodyResponse* msg) {
1457
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1458
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1459
+ }
1460
+
1461
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyResponse_set_response(envoy_service_ext_proc_v3_BodyResponse* msg, envoy_service_ext_proc_v3_CommonResponse* value) {
1462
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1463
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__CommonResponse_msg_init);
1464
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1465
+ }
1466
+ UPB_INLINE struct envoy_service_ext_proc_v3_CommonResponse* envoy_service_ext_proc_v3_BodyResponse_mutable_response(
1467
+ envoy_service_ext_proc_v3_BodyResponse* msg, upb_Arena* arena) {
1468
+ struct envoy_service_ext_proc_v3_CommonResponse* sub = (struct envoy_service_ext_proc_v3_CommonResponse*)envoy_service_ext_proc_v3_BodyResponse_response(msg);
1469
+ if (sub == NULL) {
1470
+ sub = (struct envoy_service_ext_proc_v3_CommonResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__CommonResponse_msg_init, arena);
1471
+ if (sub) envoy_service_ext_proc_v3_BodyResponse_set_response(msg, sub);
1472
+ }
1473
+ return sub;
1474
+ }
1475
+
1476
+ /* envoy.service.ext_proc.v3.TrailersResponse */
1477
+ UPB_INLINE envoy_service_ext_proc_v3_TrailersResponse* envoy_service_ext_proc_v3_TrailersResponse_new(upb_Arena* arena) {
1478
+ return (envoy_service_ext_proc_v3_TrailersResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__TrailersResponse_msg_init, arena);
1479
+ }
1480
+ UPB_INLINE envoy_service_ext_proc_v3_TrailersResponse* envoy_service_ext_proc_v3_TrailersResponse_parse(const char* buf, size_t size,
1481
+ upb_Arena* arena) {
1482
+ envoy_service_ext_proc_v3_TrailersResponse* ret = envoy_service_ext_proc_v3_TrailersResponse_new(arena);
1483
+ if (!ret) return NULL;
1484
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__TrailersResponse_msg_init, NULL, 0,
1485
+ arena) != kUpb_DecodeStatus_Ok) {
1486
+ return NULL;
1487
+ }
1488
+ return ret;
1489
+ }
1490
+ UPB_INLINE envoy_service_ext_proc_v3_TrailersResponse* envoy_service_ext_proc_v3_TrailersResponse_parse_ex(
1491
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1492
+ int options, upb_Arena* arena) {
1493
+ envoy_service_ext_proc_v3_TrailersResponse* ret = envoy_service_ext_proc_v3_TrailersResponse_new(arena);
1494
+ if (!ret) return NULL;
1495
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__TrailersResponse_msg_init, extreg,
1496
+ options, arena) != kUpb_DecodeStatus_Ok) {
1497
+ return NULL;
1498
+ }
1499
+ return ret;
1500
+ }
1501
+ UPB_INLINE char* envoy_service_ext_proc_v3_TrailersResponse_serialize(const envoy_service_ext_proc_v3_TrailersResponse* msg,
1502
+ upb_Arena* arena, size_t* len) {
1503
+ char* ptr;
1504
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__TrailersResponse_msg_init, 0, arena, &ptr, len);
1505
+ return ptr;
1506
+ }
1507
+ UPB_INLINE char* envoy_service_ext_proc_v3_TrailersResponse_serialize_ex(const envoy_service_ext_proc_v3_TrailersResponse* msg,
1508
+ int options, upb_Arena* arena,
1509
+ size_t* len) {
1510
+ char* ptr;
1511
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__TrailersResponse_msg_init, options, arena, &ptr, len);
1512
+ return ptr;
1513
+ }
1514
+ UPB_INLINE void envoy_service_ext_proc_v3_TrailersResponse_clear_header_mutation(envoy_service_ext_proc_v3_TrailersResponse* msg) {
1515
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1516
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1517
+ }
1518
+ UPB_INLINE const envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_TrailersResponse_header_mutation(const envoy_service_ext_proc_v3_TrailersResponse* msg) {
1519
+ const envoy_service_ext_proc_v3_HeaderMutation* default_val = NULL;
1520
+ const envoy_service_ext_proc_v3_HeaderMutation* ret;
1521
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1522
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init);
1523
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1524
+ &default_val, &ret);
1525
+ return ret;
1526
+ }
1527
+ UPB_INLINE bool envoy_service_ext_proc_v3_TrailersResponse_has_header_mutation(const envoy_service_ext_proc_v3_TrailersResponse* msg) {
1528
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1529
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1530
+ }
1531
+
1532
+ UPB_INLINE void envoy_service_ext_proc_v3_TrailersResponse_set_header_mutation(envoy_service_ext_proc_v3_TrailersResponse* msg, envoy_service_ext_proc_v3_HeaderMutation* value) {
1533
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 64, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1534
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init);
1535
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1536
+ }
1537
+ UPB_INLINE struct envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_TrailersResponse_mutable_header_mutation(
1538
+ envoy_service_ext_proc_v3_TrailersResponse* msg, upb_Arena* arena) {
1539
+ struct envoy_service_ext_proc_v3_HeaderMutation* sub = (struct envoy_service_ext_proc_v3_HeaderMutation*)envoy_service_ext_proc_v3_TrailersResponse_header_mutation(msg);
1540
+ if (sub == NULL) {
1541
+ sub = (struct envoy_service_ext_proc_v3_HeaderMutation*)_upb_Message_New(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init, arena);
1542
+ if (sub) envoy_service_ext_proc_v3_TrailersResponse_set_header_mutation(msg, sub);
1543
+ }
1544
+ return sub;
1545
+ }
1546
+
1547
+ /* envoy.service.ext_proc.v3.CommonResponse */
1548
+ UPB_INLINE envoy_service_ext_proc_v3_CommonResponse* envoy_service_ext_proc_v3_CommonResponse_new(upb_Arena* arena) {
1549
+ return (envoy_service_ext_proc_v3_CommonResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__CommonResponse_msg_init, arena);
1550
+ }
1551
+ UPB_INLINE envoy_service_ext_proc_v3_CommonResponse* envoy_service_ext_proc_v3_CommonResponse_parse(const char* buf, size_t size,
1552
+ upb_Arena* arena) {
1553
+ envoy_service_ext_proc_v3_CommonResponse* ret = envoy_service_ext_proc_v3_CommonResponse_new(arena);
1554
+ if (!ret) return NULL;
1555
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__CommonResponse_msg_init, NULL, 0,
1556
+ arena) != kUpb_DecodeStatus_Ok) {
1557
+ return NULL;
1558
+ }
1559
+ return ret;
1560
+ }
1561
+ UPB_INLINE envoy_service_ext_proc_v3_CommonResponse* envoy_service_ext_proc_v3_CommonResponse_parse_ex(
1562
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1563
+ int options, upb_Arena* arena) {
1564
+ envoy_service_ext_proc_v3_CommonResponse* ret = envoy_service_ext_proc_v3_CommonResponse_new(arena);
1565
+ if (!ret) return NULL;
1566
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__CommonResponse_msg_init, extreg,
1567
+ options, arena) != kUpb_DecodeStatus_Ok) {
1568
+ return NULL;
1569
+ }
1570
+ return ret;
1571
+ }
1572
+ UPB_INLINE char* envoy_service_ext_proc_v3_CommonResponse_serialize(const envoy_service_ext_proc_v3_CommonResponse* msg,
1573
+ upb_Arena* arena, size_t* len) {
1574
+ char* ptr;
1575
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__CommonResponse_msg_init, 0, arena, &ptr, len);
1576
+ return ptr;
1577
+ }
1578
+ UPB_INLINE char* envoy_service_ext_proc_v3_CommonResponse_serialize_ex(const envoy_service_ext_proc_v3_CommonResponse* msg,
1579
+ int options, upb_Arena* arena,
1580
+ size_t* len) {
1581
+ char* ptr;
1582
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__CommonResponse_msg_init, options, arena, &ptr, len);
1583
+ return ptr;
1584
+ }
1585
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_clear_status(envoy_service_ext_proc_v3_CommonResponse* msg) {
1586
+ const upb_MiniTableField field = {1, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1587
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1588
+ }
1589
+ UPB_INLINE int32_t envoy_service_ext_proc_v3_CommonResponse_status(const envoy_service_ext_proc_v3_CommonResponse* msg) {
1590
+ int32_t default_val = 0;
1591
+ int32_t ret;
1592
+ const upb_MiniTableField field = {1, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1593
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1594
+ &default_val, &ret);
1595
+ return ret;
1596
+ }
1597
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_clear_header_mutation(envoy_service_ext_proc_v3_CommonResponse* msg) {
1598
+ const upb_MiniTableField field = {2, 16, 64, UPB_SIZE(12, 13), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1599
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1600
+ }
1601
+ UPB_INLINE const envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_CommonResponse_header_mutation(const envoy_service_ext_proc_v3_CommonResponse* msg) {
1602
+ const envoy_service_ext_proc_v3_HeaderMutation* default_val = NULL;
1603
+ const envoy_service_ext_proc_v3_HeaderMutation* ret;
1604
+ const upb_MiniTableField field = {2, 16, 64, UPB_SIZE(12, 13), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1605
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init);
1606
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1607
+ &default_val, &ret);
1608
+ return ret;
1609
+ }
1610
+ UPB_INLINE bool envoy_service_ext_proc_v3_CommonResponse_has_header_mutation(const envoy_service_ext_proc_v3_CommonResponse* msg) {
1611
+ const upb_MiniTableField field = {2, 16, 64, UPB_SIZE(12, 13), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1612
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1613
+ }
1614
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_clear_body_mutation(envoy_service_ext_proc_v3_CommonResponse* msg) {
1615
+ const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 65, UPB_SIZE(10, 12), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1616
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1617
+ }
1618
+ UPB_INLINE const envoy_service_ext_proc_v3_BodyMutation* envoy_service_ext_proc_v3_CommonResponse_body_mutation(const envoy_service_ext_proc_v3_CommonResponse* msg) {
1619
+ const envoy_service_ext_proc_v3_BodyMutation* default_val = NULL;
1620
+ const envoy_service_ext_proc_v3_BodyMutation* ret;
1621
+ const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 65, UPB_SIZE(10, 12), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1622
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__BodyMutation_msg_init);
1623
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1624
+ &default_val, &ret);
1625
+ return ret;
1626
+ }
1627
+ UPB_INLINE bool envoy_service_ext_proc_v3_CommonResponse_has_body_mutation(const envoy_service_ext_proc_v3_CommonResponse* msg) {
1628
+ const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 65, UPB_SIZE(10, 12), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1629
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1630
+ }
1631
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_clear_trailers(envoy_service_ext_proc_v3_CommonResponse* msg) {
1632
+ const upb_MiniTableField field = {4, UPB_SIZE(24, 32), 66, UPB_SIZE(8, 11), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1633
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1634
+ }
1635
+ UPB_INLINE const struct envoy_config_core_v3_HeaderMap* envoy_service_ext_proc_v3_CommonResponse_trailers(const envoy_service_ext_proc_v3_CommonResponse* msg) {
1636
+ const struct envoy_config_core_v3_HeaderMap* default_val = NULL;
1637
+ const struct envoy_config_core_v3_HeaderMap* ret;
1638
+ const upb_MiniTableField field = {4, UPB_SIZE(24, 32), 66, UPB_SIZE(8, 11), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1639
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderMap_msg_init);
1640
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1641
+ &default_val, &ret);
1642
+ return ret;
1643
+ }
1644
+ UPB_INLINE bool envoy_service_ext_proc_v3_CommonResponse_has_trailers(const envoy_service_ext_proc_v3_CommonResponse* msg) {
1645
+ const upb_MiniTableField field = {4, UPB_SIZE(24, 32), 66, UPB_SIZE(8, 11), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1646
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1647
+ }
1648
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_clear_clear_route_cache(envoy_service_ext_proc_v3_CommonResponse* msg) {
1649
+ const upb_MiniTableField field = {5, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1650
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1651
+ }
1652
+ UPB_INLINE bool envoy_service_ext_proc_v3_CommonResponse_clear_route_cache(const envoy_service_ext_proc_v3_CommonResponse* msg) {
1653
+ bool default_val = false;
1654
+ bool ret;
1655
+ const upb_MiniTableField field = {5, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1656
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1657
+ &default_val, &ret);
1658
+ return ret;
1659
+ }
1660
+
1661
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_set_status(envoy_service_ext_proc_v3_CommonResponse* msg, int32_t value) {
1662
+ const upb_MiniTableField field = {1, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1663
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1664
+ }
1665
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_set_header_mutation(envoy_service_ext_proc_v3_CommonResponse* msg, envoy_service_ext_proc_v3_HeaderMutation* value) {
1666
+ const upb_MiniTableField field = {2, 16, 64, UPB_SIZE(12, 13), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1667
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init);
1668
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1669
+ }
1670
+ UPB_INLINE struct envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_CommonResponse_mutable_header_mutation(
1671
+ envoy_service_ext_proc_v3_CommonResponse* msg, upb_Arena* arena) {
1672
+ struct envoy_service_ext_proc_v3_HeaderMutation* sub = (struct envoy_service_ext_proc_v3_HeaderMutation*)envoy_service_ext_proc_v3_CommonResponse_header_mutation(msg);
1673
+ if (sub == NULL) {
1674
+ sub = (struct envoy_service_ext_proc_v3_HeaderMutation*)_upb_Message_New(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init, arena);
1675
+ if (sub) envoy_service_ext_proc_v3_CommonResponse_set_header_mutation(msg, sub);
1676
+ }
1677
+ return sub;
1678
+ }
1679
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_set_body_mutation(envoy_service_ext_proc_v3_CommonResponse* msg, envoy_service_ext_proc_v3_BodyMutation* value) {
1680
+ const upb_MiniTableField field = {3, UPB_SIZE(20, 24), 65, UPB_SIZE(10, 12), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1681
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__BodyMutation_msg_init);
1682
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1683
+ }
1684
+ UPB_INLINE struct envoy_service_ext_proc_v3_BodyMutation* envoy_service_ext_proc_v3_CommonResponse_mutable_body_mutation(
1685
+ envoy_service_ext_proc_v3_CommonResponse* msg, upb_Arena* arena) {
1686
+ struct envoy_service_ext_proc_v3_BodyMutation* sub = (struct envoy_service_ext_proc_v3_BodyMutation*)envoy_service_ext_proc_v3_CommonResponse_body_mutation(msg);
1687
+ if (sub == NULL) {
1688
+ sub = (struct envoy_service_ext_proc_v3_BodyMutation*)_upb_Message_New(&envoy__service__ext_0proc__v3__BodyMutation_msg_init, arena);
1689
+ if (sub) envoy_service_ext_proc_v3_CommonResponse_set_body_mutation(msg, sub);
1690
+ }
1691
+ return sub;
1692
+ }
1693
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_set_trailers(envoy_service_ext_proc_v3_CommonResponse* msg, struct envoy_config_core_v3_HeaderMap* value) {
1694
+ const upb_MiniTableField field = {4, UPB_SIZE(24, 32), 66, UPB_SIZE(8, 11), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1695
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderMap_msg_init);
1696
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1697
+ }
1698
+ UPB_INLINE struct envoy_config_core_v3_HeaderMap* envoy_service_ext_proc_v3_CommonResponse_mutable_trailers(
1699
+ envoy_service_ext_proc_v3_CommonResponse* msg, upb_Arena* arena) {
1700
+ struct envoy_config_core_v3_HeaderMap* sub = (struct envoy_config_core_v3_HeaderMap*)envoy_service_ext_proc_v3_CommonResponse_trailers(msg);
1701
+ if (sub == NULL) {
1702
+ sub = (struct envoy_config_core_v3_HeaderMap*)_upb_Message_New(&envoy__config__core__v3__HeaderMap_msg_init, arena);
1703
+ if (sub) envoy_service_ext_proc_v3_CommonResponse_set_trailers(msg, sub);
1704
+ }
1705
+ return sub;
1706
+ }
1707
+ UPB_INLINE void envoy_service_ext_proc_v3_CommonResponse_set_clear_route_cache(envoy_service_ext_proc_v3_CommonResponse* msg, bool value) {
1708
+ const upb_MiniTableField field = {5, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
1709
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1710
+ }
1711
+
1712
+ /* envoy.service.ext_proc.v3.ImmediateResponse */
1713
+ UPB_INLINE envoy_service_ext_proc_v3_ImmediateResponse* envoy_service_ext_proc_v3_ImmediateResponse_new(upb_Arena* arena) {
1714
+ return (envoy_service_ext_proc_v3_ImmediateResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__ImmediateResponse_msg_init, arena);
1715
+ }
1716
+ UPB_INLINE envoy_service_ext_proc_v3_ImmediateResponse* envoy_service_ext_proc_v3_ImmediateResponse_parse(const char* buf, size_t size,
1717
+ upb_Arena* arena) {
1718
+ envoy_service_ext_proc_v3_ImmediateResponse* ret = envoy_service_ext_proc_v3_ImmediateResponse_new(arena);
1719
+ if (!ret) return NULL;
1720
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__ImmediateResponse_msg_init, NULL, 0,
1721
+ arena) != kUpb_DecodeStatus_Ok) {
1722
+ return NULL;
1723
+ }
1724
+ return ret;
1725
+ }
1726
+ UPB_INLINE envoy_service_ext_proc_v3_ImmediateResponse* envoy_service_ext_proc_v3_ImmediateResponse_parse_ex(
1727
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1728
+ int options, upb_Arena* arena) {
1729
+ envoy_service_ext_proc_v3_ImmediateResponse* ret = envoy_service_ext_proc_v3_ImmediateResponse_new(arena);
1730
+ if (!ret) return NULL;
1731
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__ImmediateResponse_msg_init, extreg,
1732
+ options, arena) != kUpb_DecodeStatus_Ok) {
1733
+ return NULL;
1734
+ }
1735
+ return ret;
1736
+ }
1737
+ UPB_INLINE char* envoy_service_ext_proc_v3_ImmediateResponse_serialize(const envoy_service_ext_proc_v3_ImmediateResponse* msg,
1738
+ upb_Arena* arena, size_t* len) {
1739
+ char* ptr;
1740
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ImmediateResponse_msg_init, 0, arena, &ptr, len);
1741
+ return ptr;
1742
+ }
1743
+ UPB_INLINE char* envoy_service_ext_proc_v3_ImmediateResponse_serialize_ex(const envoy_service_ext_proc_v3_ImmediateResponse* msg,
1744
+ int options, upb_Arena* arena,
1745
+ size_t* len) {
1746
+ char* ptr;
1747
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__ImmediateResponse_msg_init, options, arena, &ptr, len);
1748
+ return ptr;
1749
+ }
1750
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_clear_status(envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1751
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 48), 64, UPB_SIZE(15, 16), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1752
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1753
+ }
1754
+ UPB_INLINE const struct envoy_type_v3_HttpStatus* envoy_service_ext_proc_v3_ImmediateResponse_status(const envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1755
+ const struct envoy_type_v3_HttpStatus* default_val = NULL;
1756
+ const struct envoy_type_v3_HttpStatus* ret;
1757
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 48), 64, UPB_SIZE(15, 16), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1758
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__type__v3__HttpStatus_msg_init);
1759
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1760
+ &default_val, &ret);
1761
+ return ret;
1762
+ }
1763
+ UPB_INLINE bool envoy_service_ext_proc_v3_ImmediateResponse_has_status(const envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1764
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 48), 64, UPB_SIZE(15, 16), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1765
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1766
+ }
1767
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_clear_headers(envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1768
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 56), 65, UPB_SIZE(13, 15), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1769
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1770
+ }
1771
+ UPB_INLINE const envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_ImmediateResponse_headers(const envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1772
+ const envoy_service_ext_proc_v3_HeaderMutation* default_val = NULL;
1773
+ const envoy_service_ext_proc_v3_HeaderMutation* ret;
1774
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 56), 65, UPB_SIZE(13, 15), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1775
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init);
1776
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1777
+ &default_val, &ret);
1778
+ return ret;
1779
+ }
1780
+ UPB_INLINE bool envoy_service_ext_proc_v3_ImmediateResponse_has_headers(const envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1781
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 56), 65, UPB_SIZE(13, 15), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1782
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1783
+ }
1784
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_clear_body(envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1785
+ const upb_MiniTableField field = {3, UPB_SIZE(24, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1786
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1787
+ }
1788
+ UPB_INLINE upb_StringView envoy_service_ext_proc_v3_ImmediateResponse_body(const envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1789
+ upb_StringView default_val = upb_StringView_FromString("");
1790
+ upb_StringView ret;
1791
+ const upb_MiniTableField field = {3, UPB_SIZE(24, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1792
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1793
+ &default_val, &ret);
1794
+ return ret;
1795
+ }
1796
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_clear_grpc_status(envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1797
+ const upb_MiniTableField field = {4, UPB_SIZE(20, 64), 66, UPB_SIZE(8, 11), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1798
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1799
+ }
1800
+ UPB_INLINE const envoy_service_ext_proc_v3_GrpcStatus* envoy_service_ext_proc_v3_ImmediateResponse_grpc_status(const envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1801
+ const envoy_service_ext_proc_v3_GrpcStatus* default_val = NULL;
1802
+ const envoy_service_ext_proc_v3_GrpcStatus* ret;
1803
+ const upb_MiniTableField field = {4, UPB_SIZE(20, 64), 66, UPB_SIZE(8, 11), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1804
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__GrpcStatus_msg_init);
1805
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1806
+ &default_val, &ret);
1807
+ return ret;
1808
+ }
1809
+ UPB_INLINE bool envoy_service_ext_proc_v3_ImmediateResponse_has_grpc_status(const envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1810
+ const upb_MiniTableField field = {4, UPB_SIZE(20, 64), 66, UPB_SIZE(8, 11), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1811
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
1812
+ }
1813
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_clear_details(envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1814
+ const upb_MiniTableField field = {5, 32, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1815
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1816
+ }
1817
+ UPB_INLINE upb_StringView envoy_service_ext_proc_v3_ImmediateResponse_details(const envoy_service_ext_proc_v3_ImmediateResponse* msg) {
1818
+ upb_StringView default_val = upb_StringView_FromString("");
1819
+ upb_StringView ret;
1820
+ const upb_MiniTableField field = {5, 32, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1821
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1822
+ &default_val, &ret);
1823
+ return ret;
1824
+ }
1825
+
1826
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_set_status(envoy_service_ext_proc_v3_ImmediateResponse* msg, struct envoy_type_v3_HttpStatus* value) {
1827
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 48), 64, UPB_SIZE(15, 16), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1828
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__type__v3__HttpStatus_msg_init);
1829
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1830
+ }
1831
+ UPB_INLINE struct envoy_type_v3_HttpStatus* envoy_service_ext_proc_v3_ImmediateResponse_mutable_status(
1832
+ envoy_service_ext_proc_v3_ImmediateResponse* msg, upb_Arena* arena) {
1833
+ struct envoy_type_v3_HttpStatus* sub = (struct envoy_type_v3_HttpStatus*)envoy_service_ext_proc_v3_ImmediateResponse_status(msg);
1834
+ if (sub == NULL) {
1835
+ sub = (struct envoy_type_v3_HttpStatus*)_upb_Message_New(&envoy__type__v3__HttpStatus_msg_init, arena);
1836
+ if (sub) envoy_service_ext_proc_v3_ImmediateResponse_set_status(msg, sub);
1837
+ }
1838
+ return sub;
1839
+ }
1840
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_set_headers(envoy_service_ext_proc_v3_ImmediateResponse* msg, envoy_service_ext_proc_v3_HeaderMutation* value) {
1841
+ const upb_MiniTableField field = {2, UPB_SIZE(16, 56), 65, UPB_SIZE(13, 15), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1842
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init);
1843
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1844
+ }
1845
+ UPB_INLINE struct envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_ImmediateResponse_mutable_headers(
1846
+ envoy_service_ext_proc_v3_ImmediateResponse* msg, upb_Arena* arena) {
1847
+ struct envoy_service_ext_proc_v3_HeaderMutation* sub = (struct envoy_service_ext_proc_v3_HeaderMutation*)envoy_service_ext_proc_v3_ImmediateResponse_headers(msg);
1848
+ if (sub == NULL) {
1849
+ sub = (struct envoy_service_ext_proc_v3_HeaderMutation*)_upb_Message_New(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init, arena);
1850
+ if (sub) envoy_service_ext_proc_v3_ImmediateResponse_set_headers(msg, sub);
1851
+ }
1852
+ return sub;
1853
+ }
1854
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_set_body(envoy_service_ext_proc_v3_ImmediateResponse* msg, upb_StringView value) {
1855
+ const upb_MiniTableField field = {3, UPB_SIZE(24, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1856
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1857
+ }
1858
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_set_grpc_status(envoy_service_ext_proc_v3_ImmediateResponse* msg, envoy_service_ext_proc_v3_GrpcStatus* value) {
1859
+ const upb_MiniTableField field = {4, UPB_SIZE(20, 64), 66, UPB_SIZE(8, 11), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1860
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__GrpcStatus_msg_init);
1861
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1862
+ }
1863
+ UPB_INLINE struct envoy_service_ext_proc_v3_GrpcStatus* envoy_service_ext_proc_v3_ImmediateResponse_mutable_grpc_status(
1864
+ envoy_service_ext_proc_v3_ImmediateResponse* msg, upb_Arena* arena) {
1865
+ struct envoy_service_ext_proc_v3_GrpcStatus* sub = (struct envoy_service_ext_proc_v3_GrpcStatus*)envoy_service_ext_proc_v3_ImmediateResponse_grpc_status(msg);
1866
+ if (sub == NULL) {
1867
+ sub = (struct envoy_service_ext_proc_v3_GrpcStatus*)_upb_Message_New(&envoy__service__ext_0proc__v3__GrpcStatus_msg_init, arena);
1868
+ if (sub) envoy_service_ext_proc_v3_ImmediateResponse_set_grpc_status(msg, sub);
1869
+ }
1870
+ return sub;
1871
+ }
1872
+ UPB_INLINE void envoy_service_ext_proc_v3_ImmediateResponse_set_details(envoy_service_ext_proc_v3_ImmediateResponse* msg, upb_StringView value) {
1873
+ const upb_MiniTableField field = {5, 32, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
1874
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1875
+ }
1876
+
1877
+ /* envoy.service.ext_proc.v3.GrpcStatus */
1878
+ UPB_INLINE envoy_service_ext_proc_v3_GrpcStatus* envoy_service_ext_proc_v3_GrpcStatus_new(upb_Arena* arena) {
1879
+ return (envoy_service_ext_proc_v3_GrpcStatus*)_upb_Message_New(&envoy__service__ext_0proc__v3__GrpcStatus_msg_init, arena);
1880
+ }
1881
+ UPB_INLINE envoy_service_ext_proc_v3_GrpcStatus* envoy_service_ext_proc_v3_GrpcStatus_parse(const char* buf, size_t size,
1882
+ upb_Arena* arena) {
1883
+ envoy_service_ext_proc_v3_GrpcStatus* ret = envoy_service_ext_proc_v3_GrpcStatus_new(arena);
1884
+ if (!ret) return NULL;
1885
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__GrpcStatus_msg_init, NULL, 0,
1886
+ arena) != kUpb_DecodeStatus_Ok) {
1887
+ return NULL;
1888
+ }
1889
+ return ret;
1890
+ }
1891
+ UPB_INLINE envoy_service_ext_proc_v3_GrpcStatus* envoy_service_ext_proc_v3_GrpcStatus_parse_ex(
1892
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1893
+ int options, upb_Arena* arena) {
1894
+ envoy_service_ext_proc_v3_GrpcStatus* ret = envoy_service_ext_proc_v3_GrpcStatus_new(arena);
1895
+ if (!ret) return NULL;
1896
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__GrpcStatus_msg_init, extreg,
1897
+ options, arena) != kUpb_DecodeStatus_Ok) {
1898
+ return NULL;
1899
+ }
1900
+ return ret;
1901
+ }
1902
+ UPB_INLINE char* envoy_service_ext_proc_v3_GrpcStatus_serialize(const envoy_service_ext_proc_v3_GrpcStatus* msg,
1903
+ upb_Arena* arena, size_t* len) {
1904
+ char* ptr;
1905
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__GrpcStatus_msg_init, 0, arena, &ptr, len);
1906
+ return ptr;
1907
+ }
1908
+ UPB_INLINE char* envoy_service_ext_proc_v3_GrpcStatus_serialize_ex(const envoy_service_ext_proc_v3_GrpcStatus* msg,
1909
+ int options, upb_Arena* arena,
1910
+ size_t* len) {
1911
+ char* ptr;
1912
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__GrpcStatus_msg_init, options, arena, &ptr, len);
1913
+ return ptr;
1914
+ }
1915
+ UPB_INLINE void envoy_service_ext_proc_v3_GrpcStatus_clear_status(envoy_service_ext_proc_v3_GrpcStatus* msg) {
1916
+ const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1917
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1918
+ }
1919
+ UPB_INLINE uint32_t envoy_service_ext_proc_v3_GrpcStatus_status(const envoy_service_ext_proc_v3_GrpcStatus* msg) {
1920
+ uint32_t default_val = (uint32_t)0u;
1921
+ uint32_t ret;
1922
+ const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1923
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
1924
+ &default_val, &ret);
1925
+ return ret;
1926
+ }
1927
+
1928
+ UPB_INLINE void envoy_service_ext_proc_v3_GrpcStatus_set_status(envoy_service_ext_proc_v3_GrpcStatus* msg, uint32_t value) {
1929
+ const upb_MiniTableField field = {1, 8, 0, kUpb_NoSub, 13, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
1930
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
1931
+ }
1932
+
1933
+ /* envoy.service.ext_proc.v3.HeaderMutation */
1934
+ UPB_INLINE envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_HeaderMutation_new(upb_Arena* arena) {
1935
+ return (envoy_service_ext_proc_v3_HeaderMutation*)_upb_Message_New(&envoy__service__ext_0proc__v3__HeaderMutation_msg_init, arena);
1936
+ }
1937
+ UPB_INLINE envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_HeaderMutation_parse(const char* buf, size_t size,
1938
+ upb_Arena* arena) {
1939
+ envoy_service_ext_proc_v3_HeaderMutation* ret = envoy_service_ext_proc_v3_HeaderMutation_new(arena);
1940
+ if (!ret) return NULL;
1941
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HeaderMutation_msg_init, NULL, 0,
1942
+ arena) != kUpb_DecodeStatus_Ok) {
1943
+ return NULL;
1944
+ }
1945
+ return ret;
1946
+ }
1947
+ UPB_INLINE envoy_service_ext_proc_v3_HeaderMutation* envoy_service_ext_proc_v3_HeaderMutation_parse_ex(
1948
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
1949
+ int options, upb_Arena* arena) {
1950
+ envoy_service_ext_proc_v3_HeaderMutation* ret = envoy_service_ext_proc_v3_HeaderMutation_new(arena);
1951
+ if (!ret) return NULL;
1952
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__HeaderMutation_msg_init, extreg,
1953
+ options, arena) != kUpb_DecodeStatus_Ok) {
1954
+ return NULL;
1955
+ }
1956
+ return ret;
1957
+ }
1958
+ UPB_INLINE char* envoy_service_ext_proc_v3_HeaderMutation_serialize(const envoy_service_ext_proc_v3_HeaderMutation* msg,
1959
+ upb_Arena* arena, size_t* len) {
1960
+ char* ptr;
1961
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HeaderMutation_msg_init, 0, arena, &ptr, len);
1962
+ return ptr;
1963
+ }
1964
+ UPB_INLINE char* envoy_service_ext_proc_v3_HeaderMutation_serialize_ex(const envoy_service_ext_proc_v3_HeaderMutation* msg,
1965
+ int options, upb_Arena* arena,
1966
+ size_t* len) {
1967
+ char* ptr;
1968
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__HeaderMutation_msg_init, options, arena, &ptr, len);
1969
+ return ptr;
1970
+ }
1971
+ UPB_INLINE void envoy_service_ext_proc_v3_HeaderMutation_clear_set_headers(envoy_service_ext_proc_v3_HeaderMutation* msg) {
1972
+ const upb_MiniTableField field = {1, 8, 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1973
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
1974
+ }
1975
+ UPB_INLINE const struct envoy_config_core_v3_HeaderValueOption* const* envoy_service_ext_proc_v3_HeaderMutation_set_headers(const envoy_service_ext_proc_v3_HeaderMutation* msg,
1976
+ size_t* size) {
1977
+ const upb_MiniTableField field = {1, 8, 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1978
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderValueOption_msg_init);
1979
+ const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1980
+ if (arr) {
1981
+ if (size) *size = arr->UPB_PRIVATE(size);
1982
+ return (const struct envoy_config_core_v3_HeaderValueOption* const*)upb_Array_DataPtr(arr);
1983
+ } else {
1984
+ if (size) *size = 0;
1985
+ return NULL;
1986
+ }
1987
+ }
1988
+
1989
+ //
1990
+ UPB_INLINE const upb_Array* _envoy_service_ext_proc_v3_HeaderMutation_set_headers_upb_array(
1991
+ const envoy_service_ext_proc_v3_HeaderMutation* msg, size_t* size) {
1992
+ const upb_MiniTableField field = {1, 8, 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
1993
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderValueOption_msg_init);
1994
+ const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
1995
+ if (size) {
1996
+ *size = arr ? arr->UPB_PRIVATE(size) : 0;
1997
+ }
1998
+ return arr;
1999
+ }
2000
+
2001
+ UPB_INLINE upb_Array* _envoy_service_ext_proc_v3_HeaderMutation_set_headers_mutable_upb_array(
2002
+ envoy_service_ext_proc_v3_HeaderMutation* msg, size_t* size, upb_Arena* arena) {
2003
+ const upb_MiniTableField field = {1, 8, 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2004
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderValueOption_msg_init);
2005
+ upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2006
+ &field, arena);
2007
+ if (size) {
2008
+ *size = arr ? arr->UPB_PRIVATE(size) : 0;
2009
+ }
2010
+ return arr;
2011
+ }
2012
+ UPB_INLINE void envoy_service_ext_proc_v3_HeaderMutation_clear_remove_headers(envoy_service_ext_proc_v3_HeaderMutation* msg) {
2013
+ const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2014
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2015
+ }
2016
+ UPB_INLINE upb_StringView const* envoy_service_ext_proc_v3_HeaderMutation_remove_headers(const envoy_service_ext_proc_v3_HeaderMutation* msg,
2017
+ size_t* size) {
2018
+ const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2019
+ const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2020
+ if (arr) {
2021
+ if (size) *size = arr->UPB_PRIVATE(size);
2022
+ return (upb_StringView const*)upb_Array_DataPtr(arr);
2023
+ } else {
2024
+ if (size) *size = 0;
2025
+ return NULL;
2026
+ }
2027
+ }
2028
+
2029
+ //
2030
+ UPB_INLINE const upb_Array* _envoy_service_ext_proc_v3_HeaderMutation_remove_headers_upb_array(
2031
+ const envoy_service_ext_proc_v3_HeaderMutation* msg, size_t* size) {
2032
+ const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2033
+ const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
2034
+ if (size) {
2035
+ *size = arr ? arr->UPB_PRIVATE(size) : 0;
2036
+ }
2037
+ return arr;
2038
+ }
2039
+
2040
+ UPB_INLINE upb_Array* _envoy_service_ext_proc_v3_HeaderMutation_remove_headers_mutable_upb_array(
2041
+ envoy_service_ext_proc_v3_HeaderMutation* msg, size_t* size, upb_Arena* arena) {
2042
+ const upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2043
+ upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
2044
+ &field, arena);
2045
+ if (size) {
2046
+ *size = arr ? arr->UPB_PRIVATE(size) : 0;
2047
+ }
2048
+ return arr;
2049
+ }
2050
+
2051
+ UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_service_ext_proc_v3_HeaderMutation_mutable_set_headers(envoy_service_ext_proc_v3_HeaderMutation* msg,
2052
+ size_t* size) {
2053
+ upb_MiniTableField field = {1, 8, 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2054
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderValueOption_msg_init);
2055
+ upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2056
+ if (arr) {
2057
+ if (size) *size = arr->UPB_PRIVATE(size);
2058
+ return (struct envoy_config_core_v3_HeaderValueOption**)upb_Array_MutableDataPtr(arr);
2059
+ } else {
2060
+ if (size) *size = 0;
2061
+ return NULL;
2062
+ }
2063
+ }
2064
+
2065
+ UPB_INLINE struct envoy_config_core_v3_HeaderValueOption** envoy_service_ext_proc_v3_HeaderMutation_resize_set_headers(envoy_service_ext_proc_v3_HeaderMutation* msg,
2066
+ size_t size,
2067
+ upb_Arena* arena) {
2068
+ upb_MiniTableField field = {1, 8, 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2069
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderValueOption_msg_init);
2070
+ return (struct envoy_config_core_v3_HeaderValueOption**)upb_Message_ResizeArrayUninitialized(
2071
+ UPB_UPCAST(msg), &field, size, arena);
2072
+ }
2073
+ UPB_INLINE struct envoy_config_core_v3_HeaderValueOption* envoy_service_ext_proc_v3_HeaderMutation_add_set_headers(
2074
+ envoy_service_ext_proc_v3_HeaderMutation* msg, upb_Arena* arena) {
2075
+ upb_MiniTableField field = {1, 8, 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2076
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__config__core__v3__HeaderValueOption_msg_init);
2077
+ upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2078
+ UPB_UPCAST(msg), &field, arena);
2079
+ if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2080
+ arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2081
+ return NULL;
2082
+ }
2083
+ struct envoy_config_core_v3_HeaderValueOption* sub =
2084
+ (struct envoy_config_core_v3_HeaderValueOption*)_upb_Message_New(&envoy__config__core__v3__HeaderValueOption_msg_init, arena);
2085
+ if (!arr || !sub) return NULL;
2086
+ UPB_PRIVATE(_upb_Array_Set)
2087
+ (arr, arr->UPB_PRIVATE(size) - 1, &sub, sizeof(sub));
2088
+ return sub;
2089
+ }
2090
+ UPB_INLINE upb_StringView* envoy_service_ext_proc_v3_HeaderMutation_mutable_remove_headers(envoy_service_ext_proc_v3_HeaderMutation* msg,
2091
+ size_t* size) {
2092
+ upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2093
+ upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
2094
+ if (arr) {
2095
+ if (size) *size = arr->UPB_PRIVATE(size);
2096
+ return (upb_StringView*)upb_Array_MutableDataPtr(arr);
2097
+ } else {
2098
+ if (size) *size = 0;
2099
+ return NULL;
2100
+ }
2101
+ }
2102
+
2103
+ UPB_INLINE upb_StringView* envoy_service_ext_proc_v3_HeaderMutation_resize_remove_headers(envoy_service_ext_proc_v3_HeaderMutation* msg,
2104
+ size_t size,
2105
+ upb_Arena* arena) {
2106
+ upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2107
+ return (upb_StringView*)upb_Message_ResizeArrayUninitialized(
2108
+ UPB_UPCAST(msg), &field, size, arena);
2109
+ }
2110
+ UPB_INLINE bool envoy_service_ext_proc_v3_HeaderMutation_add_remove_headers(envoy_service_ext_proc_v3_HeaderMutation* msg, upb_StringView val,
2111
+ upb_Arena* arena) {
2112
+ upb_MiniTableField field = {2, UPB_SIZE(12, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2113
+ upb_Array* arr = upb_Message_GetOrCreateMutableArray(
2114
+ UPB_UPCAST(msg), &field, arena);
2115
+ if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
2116
+ arr, arr->UPB_PRIVATE(size) + 1, arena)) {
2117
+ return false;
2118
+ }
2119
+ UPB_PRIVATE(_upb_Array_Set)
2120
+ (arr, arr->UPB_PRIVATE(size) - 1, &val, sizeof(val));
2121
+ return true;
2122
+ }
2123
+
2124
+ /* envoy.service.ext_proc.v3.StreamedBodyResponse */
2125
+ UPB_INLINE envoy_service_ext_proc_v3_StreamedBodyResponse* envoy_service_ext_proc_v3_StreamedBodyResponse_new(upb_Arena* arena) {
2126
+ return (envoy_service_ext_proc_v3_StreamedBodyResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__StreamedBodyResponse_msg_init, arena);
2127
+ }
2128
+ UPB_INLINE envoy_service_ext_proc_v3_StreamedBodyResponse* envoy_service_ext_proc_v3_StreamedBodyResponse_parse(const char* buf, size_t size,
2129
+ upb_Arena* arena) {
2130
+ envoy_service_ext_proc_v3_StreamedBodyResponse* ret = envoy_service_ext_proc_v3_StreamedBodyResponse_new(arena);
2131
+ if (!ret) return NULL;
2132
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__StreamedBodyResponse_msg_init, NULL, 0,
2133
+ arena) != kUpb_DecodeStatus_Ok) {
2134
+ return NULL;
2135
+ }
2136
+ return ret;
2137
+ }
2138
+ UPB_INLINE envoy_service_ext_proc_v3_StreamedBodyResponse* envoy_service_ext_proc_v3_StreamedBodyResponse_parse_ex(
2139
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
2140
+ int options, upb_Arena* arena) {
2141
+ envoy_service_ext_proc_v3_StreamedBodyResponse* ret = envoy_service_ext_proc_v3_StreamedBodyResponse_new(arena);
2142
+ if (!ret) return NULL;
2143
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__StreamedBodyResponse_msg_init, extreg,
2144
+ options, arena) != kUpb_DecodeStatus_Ok) {
2145
+ return NULL;
2146
+ }
2147
+ return ret;
2148
+ }
2149
+ UPB_INLINE char* envoy_service_ext_proc_v3_StreamedBodyResponse_serialize(const envoy_service_ext_proc_v3_StreamedBodyResponse* msg,
2150
+ upb_Arena* arena, size_t* len) {
2151
+ char* ptr;
2152
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__StreamedBodyResponse_msg_init, 0, arena, &ptr, len);
2153
+ return ptr;
2154
+ }
2155
+ UPB_INLINE char* envoy_service_ext_proc_v3_StreamedBodyResponse_serialize_ex(const envoy_service_ext_proc_v3_StreamedBodyResponse* msg,
2156
+ int options, upb_Arena* arena,
2157
+ size_t* len) {
2158
+ char* ptr;
2159
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__StreamedBodyResponse_msg_init, options, arena, &ptr, len);
2160
+ return ptr;
2161
+ }
2162
+ UPB_INLINE void envoy_service_ext_proc_v3_StreamedBodyResponse_clear_body(envoy_service_ext_proc_v3_StreamedBodyResponse* msg) {
2163
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2164
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2165
+ }
2166
+ UPB_INLINE upb_StringView envoy_service_ext_proc_v3_StreamedBodyResponse_body(const envoy_service_ext_proc_v3_StreamedBodyResponse* msg) {
2167
+ upb_StringView default_val = upb_StringView_FromString("");
2168
+ upb_StringView ret;
2169
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2170
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2171
+ &default_val, &ret);
2172
+ return ret;
2173
+ }
2174
+ UPB_INLINE void envoy_service_ext_proc_v3_StreamedBodyResponse_clear_end_of_stream(envoy_service_ext_proc_v3_StreamedBodyResponse* msg) {
2175
+ const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2176
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2177
+ }
2178
+ UPB_INLINE bool envoy_service_ext_proc_v3_StreamedBodyResponse_end_of_stream(const envoy_service_ext_proc_v3_StreamedBodyResponse* msg) {
2179
+ bool default_val = false;
2180
+ bool ret;
2181
+ const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2182
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2183
+ &default_val, &ret);
2184
+ return ret;
2185
+ }
2186
+ UPB_INLINE void envoy_service_ext_proc_v3_StreamedBodyResponse_clear_end_of_stream_without_message(envoy_service_ext_proc_v3_StreamedBodyResponse* msg) {
2187
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2188
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2189
+ }
2190
+ UPB_INLINE bool envoy_service_ext_proc_v3_StreamedBodyResponse_end_of_stream_without_message(const envoy_service_ext_proc_v3_StreamedBodyResponse* msg) {
2191
+ bool default_val = false;
2192
+ bool ret;
2193
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2194
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2195
+ &default_val, &ret);
2196
+ return ret;
2197
+ }
2198
+ UPB_INLINE void envoy_service_ext_proc_v3_StreamedBodyResponse_clear_grpc_message_compressed(envoy_service_ext_proc_v3_StreamedBodyResponse* msg) {
2199
+ const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2200
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2201
+ }
2202
+ UPB_INLINE bool envoy_service_ext_proc_v3_StreamedBodyResponse_grpc_message_compressed(const envoy_service_ext_proc_v3_StreamedBodyResponse* msg) {
2203
+ bool default_val = false;
2204
+ bool ret;
2205
+ const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2206
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2207
+ &default_val, &ret);
2208
+ return ret;
2209
+ }
2210
+
2211
+ UPB_INLINE void envoy_service_ext_proc_v3_StreamedBodyResponse_set_body(envoy_service_ext_proc_v3_StreamedBodyResponse* msg, upb_StringView value) {
2212
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2213
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
2214
+ }
2215
+ UPB_INLINE void envoy_service_ext_proc_v3_StreamedBodyResponse_set_end_of_stream(envoy_service_ext_proc_v3_StreamedBodyResponse* msg, bool value) {
2216
+ const upb_MiniTableField field = {2, 8, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2217
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
2218
+ }
2219
+ UPB_INLINE void envoy_service_ext_proc_v3_StreamedBodyResponse_set_end_of_stream_without_message(envoy_service_ext_proc_v3_StreamedBodyResponse* msg, bool value) {
2220
+ const upb_MiniTableField field = {3, 9, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2221
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
2222
+ }
2223
+ UPB_INLINE void envoy_service_ext_proc_v3_StreamedBodyResponse_set_grpc_message_compressed(envoy_service_ext_proc_v3_StreamedBodyResponse* msg, bool value) {
2224
+ const upb_MiniTableField field = {4, 10, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2225
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
2226
+ }
2227
+
2228
+ /* envoy.service.ext_proc.v3.BodyMutation */
2229
+ UPB_INLINE envoy_service_ext_proc_v3_BodyMutation* envoy_service_ext_proc_v3_BodyMutation_new(upb_Arena* arena) {
2230
+ return (envoy_service_ext_proc_v3_BodyMutation*)_upb_Message_New(&envoy__service__ext_0proc__v3__BodyMutation_msg_init, arena);
2231
+ }
2232
+ UPB_INLINE envoy_service_ext_proc_v3_BodyMutation* envoy_service_ext_proc_v3_BodyMutation_parse(const char* buf, size_t size,
2233
+ upb_Arena* arena) {
2234
+ envoy_service_ext_proc_v3_BodyMutation* ret = envoy_service_ext_proc_v3_BodyMutation_new(arena);
2235
+ if (!ret) return NULL;
2236
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__BodyMutation_msg_init, NULL, 0,
2237
+ arena) != kUpb_DecodeStatus_Ok) {
2238
+ return NULL;
2239
+ }
2240
+ return ret;
2241
+ }
2242
+ UPB_INLINE envoy_service_ext_proc_v3_BodyMutation* envoy_service_ext_proc_v3_BodyMutation_parse_ex(
2243
+ const char* buf, size_t size, const upb_ExtensionRegistry* extreg,
2244
+ int options, upb_Arena* arena) {
2245
+ envoy_service_ext_proc_v3_BodyMutation* ret = envoy_service_ext_proc_v3_BodyMutation_new(arena);
2246
+ if (!ret) return NULL;
2247
+ if (upb_Decode(buf, size, UPB_UPCAST(ret), &envoy__service__ext_0proc__v3__BodyMutation_msg_init, extreg,
2248
+ options, arena) != kUpb_DecodeStatus_Ok) {
2249
+ return NULL;
2250
+ }
2251
+ return ret;
2252
+ }
2253
+ UPB_INLINE char* envoy_service_ext_proc_v3_BodyMutation_serialize(const envoy_service_ext_proc_v3_BodyMutation* msg,
2254
+ upb_Arena* arena, size_t* len) {
2255
+ char* ptr;
2256
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__BodyMutation_msg_init, 0, arena, &ptr, len);
2257
+ return ptr;
2258
+ }
2259
+ UPB_INLINE char* envoy_service_ext_proc_v3_BodyMutation_serialize_ex(const envoy_service_ext_proc_v3_BodyMutation* msg,
2260
+ int options, upb_Arena* arena,
2261
+ size_t* len) {
2262
+ char* ptr;
2263
+ (void)upb_Encode(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__BodyMutation_msg_init, options, arena, &ptr, len);
2264
+ return ptr;
2265
+ }
2266
+ typedef enum {
2267
+ envoy_service_ext_proc_v3_BodyMutation_mutation_body = 1,
2268
+ envoy_service_ext_proc_v3_BodyMutation_mutation_clear_body = 2,
2269
+ envoy_service_ext_proc_v3_BodyMutation_mutation_streamed_response = 3,
2270
+ envoy_service_ext_proc_v3_BodyMutation_mutation_NOT_SET = 0
2271
+ } envoy_service_ext_proc_v3_BodyMutation_mutation_oneofcases;
2272
+
2273
+ UPB_INLINE envoy_service_ext_proc_v3_BodyMutation_mutation_oneofcases
2274
+ envoy_service_ext_proc_v3_BodyMutation_mutation_case(const envoy_service_ext_proc_v3_BodyMutation* msg) {
2275
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2276
+ return (envoy_service_ext_proc_v3_BodyMutation_mutation_oneofcases)upb_Message_WhichOneofFieldNumber(
2277
+ UPB_UPCAST(msg), &field);
2278
+ }
2279
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyMutation_clear_mutation(envoy_service_ext_proc_v3_BodyMutation* msg) {
2280
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2281
+ upb_Message_ClearOneof(UPB_UPCAST(msg), &envoy__service__ext_0proc__v3__BodyMutation_msg_init, &field);
2282
+ }
2283
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyMutation_clear_body(envoy_service_ext_proc_v3_BodyMutation* msg) {
2284
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2285
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2286
+ }
2287
+ UPB_INLINE upb_StringView envoy_service_ext_proc_v3_BodyMutation_body(const envoy_service_ext_proc_v3_BodyMutation* msg) {
2288
+ upb_StringView default_val = upb_StringView_FromString("");
2289
+ upb_StringView ret;
2290
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2291
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2292
+ &default_val, &ret);
2293
+ return ret;
2294
+ }
2295
+ UPB_INLINE bool envoy_service_ext_proc_v3_BodyMutation_has_body(const envoy_service_ext_proc_v3_BodyMutation* msg) {
2296
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2297
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2298
+ }
2299
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyMutation_clear_clear_body_(envoy_service_ext_proc_v3_BodyMutation* msg) {
2300
+ const upb_MiniTableField field = {2, UPB_SIZE(12, 16), -9, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2301
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2302
+ }
2303
+ UPB_INLINE bool envoy_service_ext_proc_v3_BodyMutation_clear_body_(const envoy_service_ext_proc_v3_BodyMutation* msg) {
2304
+ bool default_val = false;
2305
+ bool ret;
2306
+ const upb_MiniTableField field = {2, UPB_SIZE(12, 16), -9, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2307
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2308
+ &default_val, &ret);
2309
+ return ret;
2310
+ }
2311
+ UPB_INLINE bool envoy_service_ext_proc_v3_BodyMutation_has_clear_body_(const envoy_service_ext_proc_v3_BodyMutation* msg) {
2312
+ const upb_MiniTableField field = {2, UPB_SIZE(12, 16), -9, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2313
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2314
+ }
2315
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyMutation_clear_streamed_response(envoy_service_ext_proc_v3_BodyMutation* msg) {
2316
+ const upb_MiniTableField field = {3, UPB_SIZE(12, 16), -9, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2317
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
2318
+ }
2319
+ UPB_INLINE const envoy_service_ext_proc_v3_StreamedBodyResponse* envoy_service_ext_proc_v3_BodyMutation_streamed_response(const envoy_service_ext_proc_v3_BodyMutation* msg) {
2320
+ const envoy_service_ext_proc_v3_StreamedBodyResponse* default_val = NULL;
2321
+ const envoy_service_ext_proc_v3_StreamedBodyResponse* ret;
2322
+ const upb_MiniTableField field = {3, UPB_SIZE(12, 16), -9, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2323
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__StreamedBodyResponse_msg_init);
2324
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
2325
+ &default_val, &ret);
2326
+ return ret;
2327
+ }
2328
+ UPB_INLINE bool envoy_service_ext_proc_v3_BodyMutation_has_streamed_response(const envoy_service_ext_proc_v3_BodyMutation* msg) {
2329
+ const upb_MiniTableField field = {3, UPB_SIZE(12, 16), -9, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2330
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
2331
+ }
2332
+
2333
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyMutation_set_body(envoy_service_ext_proc_v3_BodyMutation* msg, upb_StringView value) {
2334
+ const upb_MiniTableField field = {1, UPB_SIZE(12, 16), -9, kUpb_NoSub, 12, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
2335
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
2336
+ }
2337
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyMutation_set_clear_body_(envoy_service_ext_proc_v3_BodyMutation* msg, bool value) {
2338
+ const upb_MiniTableField field = {2, UPB_SIZE(12, 16), -9, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
2339
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
2340
+ }
2341
+ UPB_INLINE void envoy_service_ext_proc_v3_BodyMutation_set_streamed_response(envoy_service_ext_proc_v3_BodyMutation* msg, envoy_service_ext_proc_v3_StreamedBodyResponse* value) {
2342
+ const upb_MiniTableField field = {3, UPB_SIZE(12, 16), -9, UPB_SIZE(3, 4), 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
2343
+ UPB_PRIVATE(_upb_MiniTable_StrongReference)(&envoy__service__ext_0proc__v3__StreamedBodyResponse_msg_init);
2344
+ upb_Message_SetBaseField((upb_Message*)msg, &field, &value);
2345
+ }
2346
+ UPB_INLINE struct envoy_service_ext_proc_v3_StreamedBodyResponse* envoy_service_ext_proc_v3_BodyMutation_mutable_streamed_response(
2347
+ envoy_service_ext_proc_v3_BodyMutation* msg, upb_Arena* arena) {
2348
+ struct envoy_service_ext_proc_v3_StreamedBodyResponse* sub = (struct envoy_service_ext_proc_v3_StreamedBodyResponse*)envoy_service_ext_proc_v3_BodyMutation_streamed_response(msg);
2349
+ if (sub == NULL) {
2350
+ sub = (struct envoy_service_ext_proc_v3_StreamedBodyResponse*)_upb_Message_New(&envoy__service__ext_0proc__v3__StreamedBodyResponse_msg_init, arena);
2351
+ if (sub) envoy_service_ext_proc_v3_BodyMutation_set_streamed_response(msg, sub);
2352
+ }
2353
+ return sub;
2354
+ }
2355
+
2356
+ #ifdef __cplusplus
2357
+ } /* extern "C" */
2358
+ #endif
2359
+
2360
+ #include "upb/port/undef.inc"
2361
+
2362
+ #endif /* ENVOY_SERVICE_EXT_PROC_V3_EXTERNAL_PROCESSOR_PROTO_UPB_H__UPB_H_ */