grpc 1.23.1 → 1.24.0.pre1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

Files changed (245) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +757 -477
  3. data/include/grpc/grpc.h +3 -1
  4. data/include/grpc/grpc_security.h +20 -4
  5. data/include/grpc/impl/codegen/grpc_types.h +6 -5
  6. data/include/grpc/impl/codegen/port_platform.h +25 -0
  7. data/src/core/ext/filters/client_channel/backend_metric.cc +78 -0
  8. data/src/core/ext/filters/client_channel/backend_metric.h +36 -0
  9. data/src/core/ext/filters/client_channel/channel_connectivity.cc +16 -2
  10. data/src/core/ext/filters/client_channel/client_channel.cc +325 -267
  11. data/src/core/ext/filters/client_channel/client_channel_factory.h +0 -4
  12. data/src/core/ext/filters/client_channel/health/health_check_client.cc +23 -32
  13. data/src/core/ext/filters/client_channel/http_proxy.cc +7 -3
  14. data/src/core/ext/filters/client_channel/lb_policy.cc +1 -1
  15. data/src/core/ext/filters/client_channel/lb_policy.h +58 -34
  16. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +46 -50
  17. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +9 -2
  18. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +35 -17
  19. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +130 -215
  20. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +34 -21
  21. data/src/core/ext/filters/client_channel/lb_policy/xds/xds.cc +1120 -802
  22. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel.h +8 -2
  23. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_secure.cc +33 -12
  24. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_client_stats.cc +151 -40
  25. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_client_stats.h +184 -26
  26. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc +389 -245
  27. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h +98 -60
  28. data/src/core/ext/filters/client_channel/lb_policy_registry.cc +6 -1
  29. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +89 -0
  30. data/src/core/ext/filters/client_channel/resolving_lb_policy.cc +3 -8
  31. data/src/core/ext/filters/client_channel/server_address.cc +1 -3
  32. data/src/core/ext/filters/client_channel/server_address.h +1 -1
  33. data/src/core/ext/filters/client_channel/subchannel.h +2 -1
  34. data/src/core/ext/filters/client_idle/client_idle_filter.cc +207 -29
  35. data/src/core/ext/filters/http/client/http_client_filter.cc +10 -8
  36. data/src/core/ext/filters/http/client_authority_filter.cc +1 -1
  37. data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +10 -7
  38. data/src/core/ext/filters/http/server/http_server_filter.cc +52 -26
  39. data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +23 -20
  40. data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +24 -21
  41. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +1 -1
  42. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +37 -24
  43. data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +1 -0
  44. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +237 -191
  45. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +29 -27
  46. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +1 -1
  47. data/src/core/ext/transport/chttp2/transport/hpack_table.cc +19 -4
  48. data/src/core/ext/transport/chttp2/transport/hpack_table.h +13 -4
  49. data/src/core/ext/transport/chttp2/transport/incoming_metadata.cc +2 -1
  50. data/src/core/ext/transport/chttp2/transport/internal.h +0 -2
  51. data/src/core/ext/transport/chttp2/transport/parsing.cc +99 -71
  52. data/src/core/ext/upb-generated/envoy/api/v2/auth/cert.upb.c +222 -0
  53. data/src/core/ext/upb-generated/envoy/api/v2/auth/cert.upb.h +818 -0
  54. data/src/core/ext/upb-generated/envoy/api/v2/cds.upb.c +314 -0
  55. data/src/core/ext/upb-generated/envoy/api/v2/cds.upb.h +1142 -0
  56. data/src/core/ext/upb-generated/envoy/api/v2/cluster/circuit_breaker.upb.c +53 -0
  57. data/src/core/ext/upb-generated/envoy/api/v2/cluster/circuit_breaker.upb.h +158 -0
  58. data/src/core/ext/upb-generated/envoy/api/v2/cluster/filter.upb.c +34 -0
  59. data/src/core/ext/upb-generated/envoy/api/v2/cluster/filter.upb.h +69 -0
  60. data/src/core/ext/upb-generated/envoy/api/v2/cluster/outlier_detection.upb.c +49 -0
  61. data/src/core/ext/upb-generated/envoy/api/v2/cluster/outlier_detection.upb.h +240 -0
  62. data/src/core/ext/upb-generated/envoy/api/v2/core/address.upb.c +110 -0
  63. data/src/core/ext/upb-generated/envoy/api/v2/core/address.upb.h +324 -0
  64. data/src/core/ext/upb-generated/envoy/api/v2/core/base.upb.c +235 -0
  65. data/src/core/ext/upb-generated/envoy/api/v2/core/base.upb.h +661 -0
  66. data/src/core/ext/upb-generated/envoy/api/v2/core/config_source.upb.c +84 -0
  67. data/src/core/ext/upb-generated/envoy/api/v2/core/config_source.upb.h +274 -0
  68. data/src/core/ext/upb-generated/envoy/api/v2/core/grpc_service.upb.c +175 -0
  69. data/src/core/ext/upb-generated/envoy/api/v2/core/grpc_service.upb.h +572 -0
  70. data/src/core/ext/upb-generated/envoy/api/v2/core/health_check.upb.c +150 -0
  71. data/src/core/ext/upb-generated/envoy/api/v2/core/health_check.upb.h +596 -0
  72. data/src/core/ext/upb-generated/envoy/api/v2/core/http_uri.upb.c +35 -0
  73. data/src/core/ext/upb-generated/envoy/api/v2/core/http_uri.upb.h +80 -0
  74. data/src/core/ext/upb-generated/envoy/api/v2/core/protocol.upb.c +95 -0
  75. data/src/core/ext/upb-generated/envoy/api/v2/core/protocol.upb.h +308 -0
  76. data/src/core/ext/upb-generated/envoy/api/v2/discovery.upb.c +128 -0
  77. data/src/core/ext/upb-generated/envoy/api/v2/discovery.upb.h +392 -0
  78. data/src/core/ext/upb-generated/envoy/api/v2/eds.upb.c +91 -0
  79. data/src/core/ext/upb-generated/envoy/api/v2/eds.upb.h +236 -0
  80. data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint.upb.c +88 -0
  81. data/src/core/ext/upb-generated/envoy/api/v2/endpoint/endpoint.upb.h +258 -0
  82. data/src/core/ext/upb-generated/envoy/api/v2/endpoint/load_report.upb.c +111 -0
  83. data/src/core/ext/upb-generated/envoy/api/v2/endpoint/load_report.upb.h +324 -0
  84. data/src/core/ext/upb-generated/envoy/service/discovery/v2/ads.upb.c +23 -0
  85. data/src/core/ext/upb-generated/envoy/service/discovery/v2/ads.upb.h +50 -0
  86. data/src/core/ext/upb-generated/envoy/service/load_stats/v2/lrs.upb.c +52 -0
  87. data/src/core/ext/upb-generated/envoy/service/load_stats/v2/lrs.upb.h +130 -0
  88. data/src/core/ext/upb-generated/envoy/type/percent.upb.c +39 -0
  89. data/src/core/ext/upb-generated/envoy/type/percent.upb.h +87 -0
  90. data/src/core/ext/upb-generated/envoy/type/range.upb.c +39 -0
  91. data/src/core/ext/upb-generated/envoy/type/range.upb.h +85 -0
  92. data/src/core/ext/upb-generated/gogoproto/gogo.upb.c +17 -0
  93. data/src/core/ext/upb-generated/gogoproto/gogo.upb.h +30 -0
  94. data/src/core/ext/upb-generated/google/api/annotations.upb.c +18 -0
  95. data/src/core/ext/upb-generated/google/api/annotations.upb.h +30 -0
  96. data/src/core/ext/upb-generated/google/api/http.upb.c +66 -0
  97. data/src/core/ext/upb-generated/google/api/http.upb.h +190 -0
  98. data/src/core/ext/upb-generated/google/protobuf/any.upb.c +27 -0
  99. data/src/core/ext/upb-generated/google/protobuf/any.upb.h +58 -0
  100. data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +485 -0
  101. data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +1690 -0
  102. data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +27 -0
  103. data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +58 -0
  104. data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +22 -0
  105. data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +50 -0
  106. data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +79 -0
  107. data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +215 -0
  108. data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +27 -0
  109. data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +58 -0
  110. data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +106 -0
  111. data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +238 -0
  112. data/src/core/ext/upb-generated/google/rpc/status.upb.c +33 -0
  113. data/src/core/ext/upb-generated/google/rpc/status.upb.h +74 -0
  114. data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +49 -0
  115. data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +126 -0
  116. data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +209 -0
  117. data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +681 -0
  118. data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +42 -0
  119. data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +109 -0
  120. data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +36 -0
  121. data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +84 -0
  122. data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +133 -0
  123. data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +359 -0
  124. data/src/core/ext/upb-generated/udpa/data/orca/v1/orca_load_report.upb.c +58 -0
  125. data/src/core/ext/upb-generated/udpa/data/orca/v1/orca_load_report.upb.h +144 -0
  126. data/src/core/ext/upb-generated/validate/validate.upb.c +443 -0
  127. data/src/core/ext/upb-generated/validate/validate.upb.h +2037 -0
  128. data/src/core/lib/channel/channel_args.cc +21 -0
  129. data/src/core/lib/channel/channel_args.h +16 -2
  130. data/src/core/lib/channel/channel_stack.h +2 -1
  131. data/src/core/lib/channel/channelz.cc +54 -56
  132. data/src/core/lib/channel/channelz.h +29 -12
  133. data/src/core/lib/compression/compression.cc +2 -1
  134. data/src/core/lib/compression/compression_internal.h +8 -0
  135. data/src/core/lib/gpr/log_linux.cc +2 -2
  136. data/src/core/lib/gpr/log_posix.cc +2 -2
  137. data/src/core/lib/gpr/time_precise.cc +123 -36
  138. data/src/core/lib/gpr/time_precise.h +37 -0
  139. data/src/core/lib/gprpp/abstract.h +10 -0
  140. data/src/core/lib/gprpp/atomic.h +4 -0
  141. data/src/core/lib/gprpp/inlined_vector.h +20 -4
  142. data/src/core/lib/gprpp/map.h +109 -6
  143. data/src/core/lib/gprpp/memory.h +6 -0
  144. data/src/core/lib/gprpp/ref_counted_ptr.h +2 -0
  145. data/src/core/lib/iomgr/ev_epollex_linux.cc +29 -54
  146. data/src/core/lib/iomgr/exec_ctx.cc +27 -17
  147. data/src/core/lib/iomgr/exec_ctx.h +3 -0
  148. data/src/core/lib/iomgr/sockaddr_utils.cc +1 -3
  149. data/src/core/lib/iomgr/tcp_posix.cc +16 -25
  150. data/src/core/lib/iomgr/tcp_server_custom.cc +1 -1
  151. data/src/core/lib/iomgr/timer_manager.cc +8 -1
  152. data/src/core/lib/iomgr/timer_manager.h +2 -0
  153. data/src/core/lib/security/credentials/credentials.h +8 -2
  154. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +23 -0
  155. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +3 -0
  156. data/src/core/lib/security/credentials/tls/spiffe_credentials.cc +3 -3
  157. data/src/core/lib/security/security_connector/ssl_utils.cc +1 -12
  158. data/src/core/lib/security/security_connector/ssl_utils.h +10 -6
  159. data/src/core/lib/security/security_connector/ssl_utils_config.cc +32 -0
  160. data/src/core/lib/security/security_connector/ssl_utils_config.h +30 -0
  161. data/src/core/lib/security/security_connector/tls/spiffe_security_connector.cc +161 -49
  162. data/src/core/lib/security/security_connector/tls/spiffe_security_connector.h +34 -1
  163. data/src/core/lib/slice/slice_intern.cc +17 -9
  164. data/src/core/lib/slice/slice_internal.h +34 -7
  165. data/src/core/lib/slice/slice_utils.h +7 -3
  166. data/src/core/lib/surface/call.cc +97 -57
  167. data/src/core/lib/surface/channel.cc +2 -2
  168. data/src/core/lib/surface/completion_queue.cc +10 -16
  169. data/src/core/lib/surface/init.cc +3 -0
  170. data/src/core/lib/surface/server.cc +11 -14
  171. data/src/core/lib/surface/validate_metadata.cc +4 -0
  172. data/src/core/lib/surface/version.cc +2 -2
  173. data/src/core/lib/transport/metadata.cc +4 -4
  174. data/src/core/lib/transport/metadata_batch.cc +72 -16
  175. data/src/core/lib/transport/metadata_batch.h +38 -0
  176. data/src/core/lib/transport/static_metadata.cc +814 -1023
  177. data/src/core/lib/transport/static_metadata.h +271 -213
  178. data/src/core/lib/transport/transport.h +12 -0
  179. data/src/core/plugin_registry/grpc_plugin_registry.cc +4 -0
  180. data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +104 -76
  181. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +34 -16
  182. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.h +2 -2
  183. data/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +10 -6
  184. data/src/core/tsi/alts/handshaker/alts_tsi_utils.h +4 -3
  185. data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +74 -48
  186. data/src/core/tsi/alts/handshaker/transport_security_common_api.h +34 -26
  187. data/src/core/tsi/ssl_transport_security.cc +14 -6
  188. data/src/core/tsi/ssl_transport_security.h +4 -0
  189. data/src/ruby/ext/grpc/ext-export.clang +1 -0
  190. data/src/ruby/ext/grpc/ext-export.gcc +6 -0
  191. data/src/ruby/ext/grpc/extconf.rb +5 -0
  192. data/src/ruby/ext/grpc/rb_enable_cpp.cc +22 -0
  193. data/src/ruby/ext/grpc/rb_grpc.c +1 -42
  194. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
  195. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -0
  196. data/src/ruby/lib/grpc.rb +2 -0
  197. data/src/ruby/lib/grpc/core/status_codes.rb +135 -0
  198. data/src/ruby/lib/grpc/errors.rb +4 -7
  199. data/src/ruby/lib/grpc/google_rpc_status_utils.rb +9 -4
  200. data/src/ruby/lib/grpc/structs.rb +15 -0
  201. data/src/ruby/lib/grpc/version.rb +1 -1
  202. data/src/ruby/spec/errors_spec.rb +1 -0
  203. data/src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto +22 -0
  204. data/src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto +34 -0
  205. data/src/ruby/spec/pb/codegen/package_option_spec.rb +53 -29
  206. data/third_party/upb/upb/decode.c +604 -0
  207. data/third_party/upb/upb/decode.h +21 -0
  208. data/third_party/upb/upb/encode.c +378 -0
  209. data/third_party/upb/upb/encode.h +21 -0
  210. data/third_party/upb/upb/generated_util.h +105 -0
  211. data/third_party/upb/upb/msg.c +111 -0
  212. data/third_party/upb/upb/msg.h +69 -0
  213. data/third_party/upb/upb/port.c +27 -0
  214. data/third_party/upb/upb/port_def.inc +152 -0
  215. data/third_party/upb/upb/port_undef.inc +21 -0
  216. data/third_party/upb/upb/table.c +911 -0
  217. data/third_party/upb/upb/table.int.h +507 -0
  218. data/third_party/upb/upb/upb.c +261 -0
  219. data/third_party/upb/upb/upb.h +364 -0
  220. metadata +134 -55
  221. data/src/core/ext/filters/client_channel/health/health.pb.c +0 -23
  222. data/src/core/ext/filters/client_channel/health/health.pb.h +0 -73
  223. data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/duration.pb.c +0 -19
  224. data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/duration.pb.h +0 -54
  225. data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/timestamp.pb.c +0 -19
  226. data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/timestamp.pb.h +0 -54
  227. data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c +0 -89
  228. data/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h +0 -164
  229. data/src/core/tsi/alts/handshaker/alts_handshaker_service_api.cc +0 -520
  230. data/src/core/tsi/alts/handshaker/alts_handshaker_service_api.h +0 -323
  231. data/src/core/tsi/alts/handshaker/alts_handshaker_service_api_util.cc +0 -145
  232. data/src/core/tsi/alts/handshaker/alts_handshaker_service_api_util.h +0 -149
  233. data/src/core/tsi/alts/handshaker/altscontext.pb.c +0 -47
  234. data/src/core/tsi/alts/handshaker/altscontext.pb.h +0 -63
  235. data/src/core/tsi/alts/handshaker/handshaker.pb.c +0 -122
  236. data/src/core/tsi/alts/handshaker/handshaker.pb.h +0 -254
  237. data/src/core/tsi/alts/handshaker/transport_security_common.pb.c +0 -49
  238. data/src/core/tsi/alts/handshaker/transport_security_common.pb.h +0 -78
  239. data/third_party/nanopb/pb.h +0 -579
  240. data/third_party/nanopb/pb_common.c +0 -97
  241. data/third_party/nanopb/pb_common.h +0 -42
  242. data/third_party/nanopb/pb_decode.c +0 -1347
  243. data/third_party/nanopb/pb_decode.h +0 -149
  244. data/third_party/nanopb/pb_encode.c +0 -696
  245. data/third_party/nanopb/pb_encode.h +0 -154
@@ -0,0 +1,58 @@
1
+ /* This file was generated by upbc (the upb compiler) from the input
2
+ * file:
3
+ *
4
+ * udpa/data/orca/v1/orca_load_report.proto
5
+ *
6
+ * Do not edit -- your changes will be discarded when the file is
7
+ * regenerated. */
8
+
9
+ #include <stddef.h>
10
+ #include "upb/msg.h"
11
+ #include "udpa/data/orca/v1/orca_load_report.upb.h"
12
+ #include "validate/validate.upb.h"
13
+
14
+ #include "upb/port_def.inc"
15
+
16
+ static const upb_msglayout *const udpa_data_orca_v1_OrcaLoadReport_submsgs[2] = {
17
+ &udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit,
18
+ &udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit,
19
+ };
20
+
21
+ static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport__fields[5] = {
22
+ {1, UPB_SIZE(0, 0), 0, 0, 1, 1},
23
+ {2, UPB_SIZE(8, 8), 0, 0, 1, 1},
24
+ {3, UPB_SIZE(16, 16), 0, 0, 4, 1},
25
+ {4, UPB_SIZE(24, 24), 0, 0, 11, 3},
26
+ {5, UPB_SIZE(28, 32), 0, 1, 11, 3},
27
+ };
28
+
29
+ const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_msginit = {
30
+ &udpa_data_orca_v1_OrcaLoadReport_submsgs[0],
31
+ &udpa_data_orca_v1_OrcaLoadReport__fields[0],
32
+ UPB_SIZE(32, 40), 5, false,
33
+ };
34
+
35
+ static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry__fields[2] = {
36
+ {1, UPB_SIZE(8, 8), 0, 0, 9, 1},
37
+ {2, UPB_SIZE(0, 0), 0, 0, 1, 1},
38
+ };
39
+
40
+ const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit = {
41
+ NULL,
42
+ &udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry__fields[0],
43
+ UPB_SIZE(16, 32), 2, false,
44
+ };
45
+
46
+ static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry__fields[2] = {
47
+ {1, UPB_SIZE(8, 8), 0, 0, 9, 1},
48
+ {2, UPB_SIZE(0, 0), 0, 0, 1, 1},
49
+ };
50
+
51
+ const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit = {
52
+ NULL,
53
+ &udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry__fields[0],
54
+ UPB_SIZE(16, 32), 2, false,
55
+ };
56
+
57
+ #include "upb/port_undef.inc"
58
+
@@ -0,0 +1,144 @@
1
+ /* This file was generated by upbc (the upb compiler) from the input
2
+ * file:
3
+ *
4
+ * udpa/data/orca/v1/orca_load_report.proto
5
+ *
6
+ * Do not edit -- your changes will be discarded when the file is
7
+ * regenerated. */
8
+
9
+ #ifndef UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPB_H_
10
+ #define UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPB_H_
11
+
12
+ #include "upb/generated_util.h"
13
+ #include "upb/msg.h"
14
+ #include "upb/decode.h"
15
+ #include "upb/encode.h"
16
+
17
+ #include "upb/port_def.inc"
18
+
19
+ #ifdef __cplusplus
20
+ extern "C" {
21
+ #endif
22
+
23
+ struct udpa_data_orca_v1_OrcaLoadReport;
24
+ struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry;
25
+ struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry;
26
+ typedef struct udpa_data_orca_v1_OrcaLoadReport udpa_data_orca_v1_OrcaLoadReport;
27
+ typedef struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry;
28
+ typedef struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry;
29
+ extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_msginit;
30
+ extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit;
31
+ extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit;
32
+
33
+
34
+ /* udpa.data.orca.v1.OrcaLoadReport */
35
+
36
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport *udpa_data_orca_v1_OrcaLoadReport_new(upb_arena *arena) {
37
+ return (udpa_data_orca_v1_OrcaLoadReport *)upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_msginit, arena);
38
+ }
39
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport *udpa_data_orca_v1_OrcaLoadReport_parse(const char *buf, size_t size,
40
+ upb_arena *arena) {
41
+ udpa_data_orca_v1_OrcaLoadReport *ret = udpa_data_orca_v1_OrcaLoadReport_new(arena);
42
+ return (ret && upb_decode(buf, size, ret, &udpa_data_orca_v1_OrcaLoadReport_msginit, arena)) ? ret : NULL;
43
+ }
44
+ UPB_INLINE char *udpa_data_orca_v1_OrcaLoadReport_serialize(const udpa_data_orca_v1_OrcaLoadReport *msg, upb_arena *arena, size_t *len) {
45
+ return upb_encode(msg, &udpa_data_orca_v1_OrcaLoadReport_msginit, arena, len);
46
+ }
47
+
48
+ UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_cpu_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)); }
49
+ UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_mem_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(8, 8)); }
50
+ UPB_INLINE uint64_t udpa_data_orca_v1_OrcaLoadReport_rps(const udpa_data_orca_v1_OrcaLoadReport *msg) { return UPB_FIELD_AT(msg, uint64_t, UPB_SIZE(16, 16)); }
51
+ UPB_INLINE const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* const* udpa_data_orca_v1_OrcaLoadReport_request_cost(const udpa_data_orca_v1_OrcaLoadReport *msg, size_t *len) { return (const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* const*)_upb_array_accessor(msg, UPB_SIZE(24, 24), len); }
52
+ UPB_INLINE const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* const* udpa_data_orca_v1_OrcaLoadReport_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg, size_t *len) { return (const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
53
+
54
+ UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_cpu_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, double value) {
55
+ UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)) = value;
56
+ }
57
+ UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_mem_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, double value) {
58
+ UPB_FIELD_AT(msg, double, UPB_SIZE(8, 8)) = value;
59
+ }
60
+ UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_rps(udpa_data_orca_v1_OrcaLoadReport *msg, uint64_t value) {
61
+ UPB_FIELD_AT(msg, uint64_t, UPB_SIZE(16, 16)) = value;
62
+ }
63
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry** udpa_data_orca_v1_OrcaLoadReport_mutable_request_cost(udpa_data_orca_v1_OrcaLoadReport *msg, size_t *len) {
64
+ return (udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry**)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
65
+ }
66
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry** udpa_data_orca_v1_OrcaLoadReport_resize_request_cost(udpa_data_orca_v1_OrcaLoadReport *msg, size_t len, upb_arena *arena) {
67
+ return (udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry**)_upb_array_resize_accessor(msg, UPB_SIZE(24, 24), len, UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, arena);
68
+ }
69
+ UPB_INLINE struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* udpa_data_orca_v1_OrcaLoadReport_add_request_cost(udpa_data_orca_v1_OrcaLoadReport *msg, upb_arena *arena) {
70
+ struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* sub = (struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry*)upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit, arena);
71
+ bool ok = _upb_array_append_accessor(
72
+ msg, UPB_SIZE(24, 24), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
73
+ if (!ok) return NULL;
74
+ return sub;
75
+ }
76
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry** udpa_data_orca_v1_OrcaLoadReport_mutable_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, size_t *len) {
77
+ return (udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry**)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
78
+ }
79
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry** udpa_data_orca_v1_OrcaLoadReport_resize_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, size_t len, upb_arena *arena) {
80
+ return (udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry**)_upb_array_resize_accessor(msg, UPB_SIZE(28, 32), len, UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, arena);
81
+ }
82
+ UPB_INLINE struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* udpa_data_orca_v1_OrcaLoadReport_add_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, upb_arena *arena) {
83
+ struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* sub = (struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry*)upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit, arena);
84
+ bool ok = _upb_array_append_accessor(
85
+ msg, UPB_SIZE(28, 32), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
86
+ if (!ok) return NULL;
87
+ return sub;
88
+ }
89
+
90
+ /* udpa.data.orca.v1.OrcaLoadReport.RequestCostEntry */
91
+
92
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_new(upb_arena *arena) {
93
+ return (udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *)upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit, arena);
94
+ }
95
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_parse(const char *buf, size_t size,
96
+ upb_arena *arena) {
97
+ udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *ret = udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_new(arena);
98
+ return (ret && upb_decode(buf, size, ret, &udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit, arena)) ? ret : NULL;
99
+ }
100
+ UPB_INLINE char *udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_serialize(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg, upb_arena *arena, size_t *len) {
101
+ return upb_encode(msg, &udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit, arena, len);
102
+ }
103
+
104
+ UPB_INLINE upb_strview udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_key(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)); }
105
+ UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_value(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)); }
106
+
107
+ UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_set_key(udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg, upb_strview value) {
108
+ UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)) = value;
109
+ }
110
+ UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_set_value(udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg, double value) {
111
+ UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)) = value;
112
+ }
113
+
114
+ /* udpa.data.orca.v1.OrcaLoadReport.UtilizationEntry */
115
+
116
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_new(upb_arena *arena) {
117
+ return (udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *)upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit, arena);
118
+ }
119
+ UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_parse(const char *buf, size_t size,
120
+ upb_arena *arena) {
121
+ udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *ret = udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_new(arena);
122
+ return (ret && upb_decode(buf, size, ret, &udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit, arena)) ? ret : NULL;
123
+ }
124
+ UPB_INLINE char *udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_serialize(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg, upb_arena *arena, size_t *len) {
125
+ return upb_encode(msg, &udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit, arena, len);
126
+ }
127
+
128
+ UPB_INLINE upb_strview udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_key(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)); }
129
+ UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_value(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)); }
130
+
131
+ UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_set_key(udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg, upb_strview value) {
132
+ UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)) = value;
133
+ }
134
+ UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_set_value(udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg, double value) {
135
+ UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)) = value;
136
+ }
137
+
138
+ #ifdef __cplusplus
139
+ } /* extern "C" */
140
+ #endif
141
+
142
+ #include "upb/port_undef.inc"
143
+
144
+ #endif /* UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPB_H_ */
@@ -0,0 +1,443 @@
1
+ /* This file was generated by upbc (the upb compiler) from the input
2
+ * file:
3
+ *
4
+ * validate/validate.proto
5
+ *
6
+ * Do not edit -- your changes will be discarded when the file is
7
+ * regenerated. */
8
+
9
+ #include <stddef.h>
10
+ #include "upb/msg.h"
11
+ #include "validate/validate.upb.h"
12
+ #include "google/protobuf/descriptor.upb.h"
13
+ #include "google/protobuf/duration.upb.h"
14
+ #include "google/protobuf/timestamp.upb.h"
15
+
16
+ #include "upb/port_def.inc"
17
+
18
+ static const upb_msglayout *const validate_FieldRules_submsgs[22] = {
19
+ &validate_AnyRules_msginit,
20
+ &validate_BoolRules_msginit,
21
+ &validate_BytesRules_msginit,
22
+ &validate_DoubleRules_msginit,
23
+ &validate_DurationRules_msginit,
24
+ &validate_EnumRules_msginit,
25
+ &validate_Fixed32Rules_msginit,
26
+ &validate_Fixed64Rules_msginit,
27
+ &validate_FloatRules_msginit,
28
+ &validate_Int32Rules_msginit,
29
+ &validate_Int64Rules_msginit,
30
+ &validate_MapRules_msginit,
31
+ &validate_MessageRules_msginit,
32
+ &validate_RepeatedRules_msginit,
33
+ &validate_SFixed32Rules_msginit,
34
+ &validate_SFixed64Rules_msginit,
35
+ &validate_SInt32Rules_msginit,
36
+ &validate_SInt64Rules_msginit,
37
+ &validate_StringRules_msginit,
38
+ &validate_TimestampRules_msginit,
39
+ &validate_UInt32Rules_msginit,
40
+ &validate_UInt64Rules_msginit,
41
+ };
42
+
43
+ static const upb_msglayout_field validate_FieldRules__fields[22] = {
44
+ {1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 8, 11, 1},
45
+ {2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, 1},
46
+ {3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 9, 11, 1},
47
+ {4, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 10, 11, 1},
48
+ {5, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 20, 11, 1},
49
+ {6, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 21, 11, 1},
50
+ {7, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 16, 11, 1},
51
+ {8, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 17, 11, 1},
52
+ {9, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 6, 11, 1},
53
+ {10, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 7, 11, 1},
54
+ {11, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 14, 11, 1},
55
+ {12, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 15, 11, 1},
56
+ {13, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, 1},
57
+ {14, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 18, 11, 1},
58
+ {15, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, 1},
59
+ {16, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 5, 11, 1},
60
+ {17, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 12, 11, 1},
61
+ {18, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 13, 11, 1},
62
+ {19, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 11, 11, 1},
63
+ {20, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
64
+ {21, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 4, 11, 1},
65
+ {22, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 19, 11, 1},
66
+ };
67
+
68
+ const upb_msglayout validate_FieldRules_msginit = {
69
+ &validate_FieldRules_submsgs[0],
70
+ &validate_FieldRules__fields[0],
71
+ UPB_SIZE(8, 16), 22, false,
72
+ };
73
+
74
+ static const upb_msglayout_field validate_FloatRules__fields[7] = {
75
+ {1, UPB_SIZE(4, 4), 1, 0, 2, 1},
76
+ {2, UPB_SIZE(8, 8), 2, 0, 2, 1},
77
+ {3, UPB_SIZE(12, 12), 3, 0, 2, 1},
78
+ {4, UPB_SIZE(16, 16), 4, 0, 2, 1},
79
+ {5, UPB_SIZE(20, 20), 5, 0, 2, 1},
80
+ {6, UPB_SIZE(24, 24), 0, 0, 2, 3},
81
+ {7, UPB_SIZE(28, 32), 0, 0, 2, 3},
82
+ };
83
+
84
+ const upb_msglayout validate_FloatRules_msginit = {
85
+ NULL,
86
+ &validate_FloatRules__fields[0],
87
+ UPB_SIZE(32, 40), 7, false,
88
+ };
89
+
90
+ static const upb_msglayout_field validate_DoubleRules__fields[7] = {
91
+ {1, UPB_SIZE(8, 8), 1, 0, 1, 1},
92
+ {2, UPB_SIZE(16, 16), 2, 0, 1, 1},
93
+ {3, UPB_SIZE(24, 24), 3, 0, 1, 1},
94
+ {4, UPB_SIZE(32, 32), 4, 0, 1, 1},
95
+ {5, UPB_SIZE(40, 40), 5, 0, 1, 1},
96
+ {6, UPB_SIZE(48, 48), 0, 0, 1, 3},
97
+ {7, UPB_SIZE(52, 56), 0, 0, 1, 3},
98
+ };
99
+
100
+ const upb_msglayout validate_DoubleRules_msginit = {
101
+ NULL,
102
+ &validate_DoubleRules__fields[0],
103
+ UPB_SIZE(56, 64), 7, false,
104
+ };
105
+
106
+ static const upb_msglayout_field validate_Int32Rules__fields[7] = {
107
+ {1, UPB_SIZE(4, 4), 1, 0, 5, 1},
108
+ {2, UPB_SIZE(8, 8), 2, 0, 5, 1},
109
+ {3, UPB_SIZE(12, 12), 3, 0, 5, 1},
110
+ {4, UPB_SIZE(16, 16), 4, 0, 5, 1},
111
+ {5, UPB_SIZE(20, 20), 5, 0, 5, 1},
112
+ {6, UPB_SIZE(24, 24), 0, 0, 5, 3},
113
+ {7, UPB_SIZE(28, 32), 0, 0, 5, 3},
114
+ };
115
+
116
+ const upb_msglayout validate_Int32Rules_msginit = {
117
+ NULL,
118
+ &validate_Int32Rules__fields[0],
119
+ UPB_SIZE(32, 40), 7, false,
120
+ };
121
+
122
+ static const upb_msglayout_field validate_Int64Rules__fields[7] = {
123
+ {1, UPB_SIZE(8, 8), 1, 0, 3, 1},
124
+ {2, UPB_SIZE(16, 16), 2, 0, 3, 1},
125
+ {3, UPB_SIZE(24, 24), 3, 0, 3, 1},
126
+ {4, UPB_SIZE(32, 32), 4, 0, 3, 1},
127
+ {5, UPB_SIZE(40, 40), 5, 0, 3, 1},
128
+ {6, UPB_SIZE(48, 48), 0, 0, 3, 3},
129
+ {7, UPB_SIZE(52, 56), 0, 0, 3, 3},
130
+ };
131
+
132
+ const upb_msglayout validate_Int64Rules_msginit = {
133
+ NULL,
134
+ &validate_Int64Rules__fields[0],
135
+ UPB_SIZE(56, 64), 7, false,
136
+ };
137
+
138
+ static const upb_msglayout_field validate_UInt32Rules__fields[7] = {
139
+ {1, UPB_SIZE(4, 4), 1, 0, 13, 1},
140
+ {2, UPB_SIZE(8, 8), 2, 0, 13, 1},
141
+ {3, UPB_SIZE(12, 12), 3, 0, 13, 1},
142
+ {4, UPB_SIZE(16, 16), 4, 0, 13, 1},
143
+ {5, UPB_SIZE(20, 20), 5, 0, 13, 1},
144
+ {6, UPB_SIZE(24, 24), 0, 0, 13, 3},
145
+ {7, UPB_SIZE(28, 32), 0, 0, 13, 3},
146
+ };
147
+
148
+ const upb_msglayout validate_UInt32Rules_msginit = {
149
+ NULL,
150
+ &validate_UInt32Rules__fields[0],
151
+ UPB_SIZE(32, 40), 7, false,
152
+ };
153
+
154
+ static const upb_msglayout_field validate_UInt64Rules__fields[7] = {
155
+ {1, UPB_SIZE(8, 8), 1, 0, 4, 1},
156
+ {2, UPB_SIZE(16, 16), 2, 0, 4, 1},
157
+ {3, UPB_SIZE(24, 24), 3, 0, 4, 1},
158
+ {4, UPB_SIZE(32, 32), 4, 0, 4, 1},
159
+ {5, UPB_SIZE(40, 40), 5, 0, 4, 1},
160
+ {6, UPB_SIZE(48, 48), 0, 0, 4, 3},
161
+ {7, UPB_SIZE(52, 56), 0, 0, 4, 3},
162
+ };
163
+
164
+ const upb_msglayout validate_UInt64Rules_msginit = {
165
+ NULL,
166
+ &validate_UInt64Rules__fields[0],
167
+ UPB_SIZE(56, 64), 7, false,
168
+ };
169
+
170
+ static const upb_msglayout_field validate_SInt32Rules__fields[7] = {
171
+ {1, UPB_SIZE(4, 4), 1, 0, 17, 1},
172
+ {2, UPB_SIZE(8, 8), 2, 0, 17, 1},
173
+ {3, UPB_SIZE(12, 12), 3, 0, 17, 1},
174
+ {4, UPB_SIZE(16, 16), 4, 0, 17, 1},
175
+ {5, UPB_SIZE(20, 20), 5, 0, 17, 1},
176
+ {6, UPB_SIZE(24, 24), 0, 0, 17, 3},
177
+ {7, UPB_SIZE(28, 32), 0, 0, 17, 3},
178
+ };
179
+
180
+ const upb_msglayout validate_SInt32Rules_msginit = {
181
+ NULL,
182
+ &validate_SInt32Rules__fields[0],
183
+ UPB_SIZE(32, 40), 7, false,
184
+ };
185
+
186
+ static const upb_msglayout_field validate_SInt64Rules__fields[7] = {
187
+ {1, UPB_SIZE(8, 8), 1, 0, 18, 1},
188
+ {2, UPB_SIZE(16, 16), 2, 0, 18, 1},
189
+ {3, UPB_SIZE(24, 24), 3, 0, 18, 1},
190
+ {4, UPB_SIZE(32, 32), 4, 0, 18, 1},
191
+ {5, UPB_SIZE(40, 40), 5, 0, 18, 1},
192
+ {6, UPB_SIZE(48, 48), 0, 0, 18, 3},
193
+ {7, UPB_SIZE(52, 56), 0, 0, 18, 3},
194
+ };
195
+
196
+ const upb_msglayout validate_SInt64Rules_msginit = {
197
+ NULL,
198
+ &validate_SInt64Rules__fields[0],
199
+ UPB_SIZE(56, 64), 7, false,
200
+ };
201
+
202
+ static const upb_msglayout_field validate_Fixed32Rules__fields[7] = {
203
+ {1, UPB_SIZE(4, 4), 1, 0, 7, 1},
204
+ {2, UPB_SIZE(8, 8), 2, 0, 7, 1},
205
+ {3, UPB_SIZE(12, 12), 3, 0, 7, 1},
206
+ {4, UPB_SIZE(16, 16), 4, 0, 7, 1},
207
+ {5, UPB_SIZE(20, 20), 5, 0, 7, 1},
208
+ {6, UPB_SIZE(24, 24), 0, 0, 7, 3},
209
+ {7, UPB_SIZE(28, 32), 0, 0, 7, 3},
210
+ };
211
+
212
+ const upb_msglayout validate_Fixed32Rules_msginit = {
213
+ NULL,
214
+ &validate_Fixed32Rules__fields[0],
215
+ UPB_SIZE(32, 40), 7, false,
216
+ };
217
+
218
+ static const upb_msglayout_field validate_Fixed64Rules__fields[7] = {
219
+ {1, UPB_SIZE(8, 8), 1, 0, 6, 1},
220
+ {2, UPB_SIZE(16, 16), 2, 0, 6, 1},
221
+ {3, UPB_SIZE(24, 24), 3, 0, 6, 1},
222
+ {4, UPB_SIZE(32, 32), 4, 0, 6, 1},
223
+ {5, UPB_SIZE(40, 40), 5, 0, 6, 1},
224
+ {6, UPB_SIZE(48, 48), 0, 0, 6, 3},
225
+ {7, UPB_SIZE(52, 56), 0, 0, 6, 3},
226
+ };
227
+
228
+ const upb_msglayout validate_Fixed64Rules_msginit = {
229
+ NULL,
230
+ &validate_Fixed64Rules__fields[0],
231
+ UPB_SIZE(56, 64), 7, false,
232
+ };
233
+
234
+ static const upb_msglayout_field validate_SFixed32Rules__fields[7] = {
235
+ {1, UPB_SIZE(4, 4), 1, 0, 15, 1},
236
+ {2, UPB_SIZE(8, 8), 2, 0, 15, 1},
237
+ {3, UPB_SIZE(12, 12), 3, 0, 15, 1},
238
+ {4, UPB_SIZE(16, 16), 4, 0, 15, 1},
239
+ {5, UPB_SIZE(20, 20), 5, 0, 15, 1},
240
+ {6, UPB_SIZE(24, 24), 0, 0, 15, 3},
241
+ {7, UPB_SIZE(28, 32), 0, 0, 15, 3},
242
+ };
243
+
244
+ const upb_msglayout validate_SFixed32Rules_msginit = {
245
+ NULL,
246
+ &validate_SFixed32Rules__fields[0],
247
+ UPB_SIZE(32, 40), 7, false,
248
+ };
249
+
250
+ static const upb_msglayout_field validate_SFixed64Rules__fields[7] = {
251
+ {1, UPB_SIZE(8, 8), 1, 0, 16, 1},
252
+ {2, UPB_SIZE(16, 16), 2, 0, 16, 1},
253
+ {3, UPB_SIZE(24, 24), 3, 0, 16, 1},
254
+ {4, UPB_SIZE(32, 32), 4, 0, 16, 1},
255
+ {5, UPB_SIZE(40, 40), 5, 0, 16, 1},
256
+ {6, UPB_SIZE(48, 48), 0, 0, 16, 3},
257
+ {7, UPB_SIZE(52, 56), 0, 0, 16, 3},
258
+ };
259
+
260
+ const upb_msglayout validate_SFixed64Rules_msginit = {
261
+ NULL,
262
+ &validate_SFixed64Rules__fields[0],
263
+ UPB_SIZE(56, 64), 7, false,
264
+ };
265
+
266
+ static const upb_msglayout_field validate_BoolRules__fields[1] = {
267
+ {1, UPB_SIZE(1, 1), 1, 0, 8, 1},
268
+ };
269
+
270
+ const upb_msglayout validate_BoolRules_msginit = {
271
+ NULL,
272
+ &validate_BoolRules__fields[0],
273
+ UPB_SIZE(2, 2), 1, false,
274
+ };
275
+
276
+ static const upb_msglayout_field validate_StringRules__fields[20] = {
277
+ {1, UPB_SIZE(56, 56), 7, 0, 9, 1},
278
+ {2, UPB_SIZE(8, 8), 1, 0, 4, 1},
279
+ {3, UPB_SIZE(16, 16), 2, 0, 4, 1},
280
+ {4, UPB_SIZE(24, 24), 3, 0, 4, 1},
281
+ {5, UPB_SIZE(32, 32), 4, 0, 4, 1},
282
+ {6, UPB_SIZE(64, 72), 8, 0, 9, 1},
283
+ {7, UPB_SIZE(72, 88), 9, 0, 9, 1},
284
+ {8, UPB_SIZE(80, 104), 10, 0, 9, 1},
285
+ {9, UPB_SIZE(88, 120), 11, 0, 9, 1},
286
+ {10, UPB_SIZE(96, 136), 0, 0, 9, 3},
287
+ {11, UPB_SIZE(100, 144), 0, 0, 9, 3},
288
+ {12, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
289
+ {13, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
290
+ {14, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
291
+ {15, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
292
+ {16, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
293
+ {17, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
294
+ {18, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
295
+ {19, UPB_SIZE(40, 40), 5, 0, 4, 1},
296
+ {20, UPB_SIZE(48, 48), 6, 0, 4, 1},
297
+ };
298
+
299
+ const upb_msglayout validate_StringRules_msginit = {
300
+ NULL,
301
+ &validate_StringRules__fields[0],
302
+ UPB_SIZE(112, 160), 20, false,
303
+ };
304
+
305
+ static const upb_msglayout_field validate_BytesRules__fields[13] = {
306
+ {1, UPB_SIZE(32, 32), 4, 0, 12, 1},
307
+ {2, UPB_SIZE(8, 8), 1, 0, 4, 1},
308
+ {3, UPB_SIZE(16, 16), 2, 0, 4, 1},
309
+ {4, UPB_SIZE(40, 48), 5, 0, 9, 1},
310
+ {5, UPB_SIZE(48, 64), 6, 0, 12, 1},
311
+ {6, UPB_SIZE(56, 80), 7, 0, 12, 1},
312
+ {7, UPB_SIZE(64, 96), 8, 0, 12, 1},
313
+ {8, UPB_SIZE(72, 112), 0, 0, 12, 3},
314
+ {9, UPB_SIZE(76, 120), 0, 0, 12, 3},
315
+ {10, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1},
316
+ {11, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1},
317
+ {12, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1},
318
+ {13, UPB_SIZE(24, 24), 3, 0, 4, 1},
319
+ };
320
+
321
+ const upb_msglayout validate_BytesRules_msginit = {
322
+ NULL,
323
+ &validate_BytesRules__fields[0],
324
+ UPB_SIZE(88, 144), 13, false,
325
+ };
326
+
327
+ static const upb_msglayout_field validate_EnumRules__fields[4] = {
328
+ {1, UPB_SIZE(4, 4), 1, 0, 5, 1},
329
+ {2, UPB_SIZE(8, 8), 2, 0, 8, 1},
330
+ {3, UPB_SIZE(12, 16), 0, 0, 5, 3},
331
+ {4, UPB_SIZE(16, 24), 0, 0, 5, 3},
332
+ };
333
+
334
+ const upb_msglayout validate_EnumRules_msginit = {
335
+ NULL,
336
+ &validate_EnumRules__fields[0],
337
+ UPB_SIZE(20, 32), 4, false,
338
+ };
339
+
340
+ static const upb_msglayout_field validate_MessageRules__fields[2] = {
341
+ {1, UPB_SIZE(1, 1), 1, 0, 8, 1},
342
+ {2, UPB_SIZE(2, 2), 2, 0, 8, 1},
343
+ };
344
+
345
+ const upb_msglayout validate_MessageRules_msginit = {
346
+ NULL,
347
+ &validate_MessageRules__fields[0],
348
+ UPB_SIZE(3, 3), 2, false,
349
+ };
350
+
351
+ static const upb_msglayout *const validate_RepeatedRules_submsgs[1] = {
352
+ &validate_FieldRules_msginit,
353
+ };
354
+
355
+ static const upb_msglayout_field validate_RepeatedRules__fields[4] = {
356
+ {1, UPB_SIZE(8, 8), 1, 0, 4, 1},
357
+ {2, UPB_SIZE(16, 16), 2, 0, 4, 1},
358
+ {3, UPB_SIZE(24, 24), 3, 0, 8, 1},
359
+ {4, UPB_SIZE(28, 32), 4, 0, 11, 1},
360
+ };
361
+
362
+ const upb_msglayout validate_RepeatedRules_msginit = {
363
+ &validate_RepeatedRules_submsgs[0],
364
+ &validate_RepeatedRules__fields[0],
365
+ UPB_SIZE(32, 40), 4, false,
366
+ };
367
+
368
+ static const upb_msglayout *const validate_MapRules_submsgs[2] = {
369
+ &validate_FieldRules_msginit,
370
+ };
371
+
372
+ static const upb_msglayout_field validate_MapRules__fields[5] = {
373
+ {1, UPB_SIZE(8, 8), 1, 0, 4, 1},
374
+ {2, UPB_SIZE(16, 16), 2, 0, 4, 1},
375
+ {3, UPB_SIZE(24, 24), 3, 0, 8, 1},
376
+ {4, UPB_SIZE(28, 32), 4, 0, 11, 1},
377
+ {5, UPB_SIZE(32, 40), 5, 0, 11, 1},
378
+ };
379
+
380
+ const upb_msglayout validate_MapRules_msginit = {
381
+ &validate_MapRules_submsgs[0],
382
+ &validate_MapRules__fields[0],
383
+ UPB_SIZE(40, 48), 5, false,
384
+ };
385
+
386
+ static const upb_msglayout_field validate_AnyRules__fields[3] = {
387
+ {1, UPB_SIZE(1, 1), 1, 0, 8, 1},
388
+ {2, UPB_SIZE(4, 8), 0, 0, 9, 3},
389
+ {3, UPB_SIZE(8, 16), 0, 0, 9, 3},
390
+ };
391
+
392
+ const upb_msglayout validate_AnyRules_msginit = {
393
+ NULL,
394
+ &validate_AnyRules__fields[0],
395
+ UPB_SIZE(12, 24), 3, false,
396
+ };
397
+
398
+ static const upb_msglayout *const validate_DurationRules_submsgs[7] = {
399
+ &google_protobuf_Duration_msginit,
400
+ };
401
+
402
+ static const upb_msglayout_field validate_DurationRules__fields[8] = {
403
+ {1, UPB_SIZE(1, 1), 1, 0, 8, 1},
404
+ {2, UPB_SIZE(4, 8), 2, 0, 11, 1},
405
+ {3, UPB_SIZE(8, 16), 3, 0, 11, 1},
406
+ {4, UPB_SIZE(12, 24), 4, 0, 11, 1},
407
+ {5, UPB_SIZE(16, 32), 5, 0, 11, 1},
408
+ {6, UPB_SIZE(20, 40), 6, 0, 11, 1},
409
+ {7, UPB_SIZE(24, 48), 0, 0, 11, 3},
410
+ {8, UPB_SIZE(28, 56), 0, 0, 11, 3},
411
+ };
412
+
413
+ const upb_msglayout validate_DurationRules_msginit = {
414
+ &validate_DurationRules_submsgs[0],
415
+ &validate_DurationRules__fields[0],
416
+ UPB_SIZE(32, 64), 8, false,
417
+ };
418
+
419
+ static const upb_msglayout *const validate_TimestampRules_submsgs[6] = {
420
+ &google_protobuf_Duration_msginit,
421
+ &google_protobuf_Timestamp_msginit,
422
+ };
423
+
424
+ static const upb_msglayout_field validate_TimestampRules__fields[9] = {
425
+ {1, UPB_SIZE(2, 2), 1, 0, 8, 1},
426
+ {2, UPB_SIZE(8, 8), 4, 1, 11, 1},
427
+ {3, UPB_SIZE(12, 16), 5, 1, 11, 1},
428
+ {4, UPB_SIZE(16, 24), 6, 1, 11, 1},
429
+ {5, UPB_SIZE(20, 32), 7, 1, 11, 1},
430
+ {6, UPB_SIZE(24, 40), 8, 1, 11, 1},
431
+ {7, UPB_SIZE(3, 3), 2, 0, 8, 1},
432
+ {8, UPB_SIZE(4, 4), 3, 0, 8, 1},
433
+ {9, UPB_SIZE(28, 48), 9, 0, 11, 1},
434
+ };
435
+
436
+ const upb_msglayout validate_TimestampRules_msginit = {
437
+ &validate_TimestampRules_submsgs[0],
438
+ &validate_TimestampRules__fields[0],
439
+ UPB_SIZE(32, 56), 9, false,
440
+ };
441
+
442
+ #include "upb/port_undef.inc"
443
+