chalkpy 2.89.22__py3-none-any.whl → 2.95.3__py3-none-any.whl

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 (268) hide show
  1. chalk/__init__.py +2 -1
  2. chalk/_gen/chalk/arrow/v1/arrow_pb2.py +7 -5
  3. chalk/_gen/chalk/arrow/v1/arrow_pb2.pyi +6 -0
  4. chalk/_gen/chalk/artifacts/v1/chart_pb2.py +36 -33
  5. chalk/_gen/chalk/artifacts/v1/chart_pb2.pyi +41 -1
  6. chalk/_gen/chalk/artifacts/v1/cron_query_pb2.py +8 -7
  7. chalk/_gen/chalk/artifacts/v1/cron_query_pb2.pyi +5 -0
  8. chalk/_gen/chalk/common/v1/offline_query_pb2.py +19 -13
  9. chalk/_gen/chalk/common/v1/offline_query_pb2.pyi +37 -0
  10. chalk/_gen/chalk/common/v1/online_query_pb2.py +54 -54
  11. chalk/_gen/chalk/common/v1/online_query_pb2.pyi +13 -1
  12. chalk/_gen/chalk/common/v1/script_task_pb2.py +13 -11
  13. chalk/_gen/chalk/common/v1/script_task_pb2.pyi +19 -1
  14. chalk/_gen/chalk/dataframe/__init__.py +0 -0
  15. chalk/_gen/chalk/dataframe/v1/__init__.py +0 -0
  16. chalk/_gen/chalk/dataframe/v1/dataframe_pb2.py +48 -0
  17. chalk/_gen/chalk/dataframe/v1/dataframe_pb2.pyi +123 -0
  18. chalk/_gen/chalk/dataframe/v1/dataframe_pb2_grpc.py +4 -0
  19. chalk/_gen/chalk/dataframe/v1/dataframe_pb2_grpc.pyi +4 -0
  20. chalk/_gen/chalk/graph/v1/graph_pb2.py +150 -149
  21. chalk/_gen/chalk/graph/v1/graph_pb2.pyi +25 -0
  22. chalk/_gen/chalk/graph/v1/sources_pb2.py +94 -84
  23. chalk/_gen/chalk/graph/v1/sources_pb2.pyi +56 -0
  24. chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2.py +79 -0
  25. chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2.pyi +377 -0
  26. chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2_grpc.py +4 -0
  27. chalk/_gen/chalk/kubernetes/v1/horizontalpodautoscaler_pb2_grpc.pyi +4 -0
  28. chalk/_gen/chalk/kubernetes/v1/scaledobject_pb2.py +43 -7
  29. chalk/_gen/chalk/kubernetes/v1/scaledobject_pb2.pyi +252 -2
  30. chalk/_gen/chalk/protosql/v1/sql_service_pb2.py +54 -27
  31. chalk/_gen/chalk/protosql/v1/sql_service_pb2.pyi +131 -3
  32. chalk/_gen/chalk/protosql/v1/sql_service_pb2_grpc.py +45 -0
  33. chalk/_gen/chalk/protosql/v1/sql_service_pb2_grpc.pyi +14 -0
  34. chalk/_gen/chalk/python/v1/types_pb2.py +14 -14
  35. chalk/_gen/chalk/python/v1/types_pb2.pyi +8 -0
  36. chalk/_gen/chalk/server/v1/benchmark_pb2.py +76 -0
  37. chalk/_gen/chalk/server/v1/benchmark_pb2.pyi +156 -0
  38. chalk/_gen/chalk/server/v1/benchmark_pb2_grpc.py +258 -0
  39. chalk/_gen/chalk/server/v1/benchmark_pb2_grpc.pyi +84 -0
  40. chalk/_gen/chalk/server/v1/billing_pb2.py +40 -38
  41. chalk/_gen/chalk/server/v1/billing_pb2.pyi +17 -1
  42. chalk/_gen/chalk/server/v1/branches_pb2.py +45 -0
  43. chalk/_gen/chalk/server/v1/branches_pb2.pyi +80 -0
  44. chalk/_gen/chalk/server/v1/branches_pb2_grpc.pyi +36 -0
  45. chalk/_gen/chalk/server/v1/builder_pb2.py +372 -272
  46. chalk/_gen/chalk/server/v1/builder_pb2.pyi +479 -12
  47. chalk/_gen/chalk/server/v1/builder_pb2_grpc.py +360 -0
  48. chalk/_gen/chalk/server/v1/builder_pb2_grpc.pyi +96 -0
  49. chalk/_gen/chalk/server/v1/chart_pb2.py +10 -10
  50. chalk/_gen/chalk/server/v1/chart_pb2.pyi +18 -2
  51. chalk/_gen/chalk/server/v1/clickhouse_pb2.py +42 -0
  52. chalk/_gen/chalk/server/v1/clickhouse_pb2.pyi +17 -0
  53. chalk/_gen/chalk/server/v1/clickhouse_pb2_grpc.py +78 -0
  54. chalk/_gen/chalk/server/v1/clickhouse_pb2_grpc.pyi +38 -0
  55. chalk/_gen/chalk/server/v1/cloud_components_pb2.py +153 -107
  56. chalk/_gen/chalk/server/v1/cloud_components_pb2.pyi +146 -4
  57. chalk/_gen/chalk/server/v1/cloud_components_pb2_grpc.py +180 -0
  58. chalk/_gen/chalk/server/v1/cloud_components_pb2_grpc.pyi +48 -0
  59. chalk/_gen/chalk/server/v1/cloud_credentials_pb2.py +11 -3
  60. chalk/_gen/chalk/server/v1/cloud_credentials_pb2.pyi +20 -0
  61. chalk/_gen/chalk/server/v1/cloud_credentials_pb2_grpc.py +45 -0
  62. chalk/_gen/chalk/server/v1/cloud_credentials_pb2_grpc.pyi +12 -0
  63. chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2.py +59 -35
  64. chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2.pyi +127 -1
  65. chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2_grpc.py +135 -0
  66. chalk/_gen/chalk/server/v1/dataplanejobqueue_pb2_grpc.pyi +36 -0
  67. chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2.py +90 -0
  68. chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2.pyi +264 -0
  69. chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2_grpc.py +170 -0
  70. chalk/_gen/chalk/server/v1/dataplaneworkflows_pb2_grpc.pyi +62 -0
  71. chalk/_gen/chalk/server/v1/datasets_pb2.py +36 -24
  72. chalk/_gen/chalk/server/v1/datasets_pb2.pyi +71 -2
  73. chalk/_gen/chalk/server/v1/datasets_pb2_grpc.py +45 -0
  74. chalk/_gen/chalk/server/v1/datasets_pb2_grpc.pyi +12 -0
  75. chalk/_gen/chalk/server/v1/deploy_pb2.py +9 -3
  76. chalk/_gen/chalk/server/v1/deploy_pb2.pyi +12 -0
  77. chalk/_gen/chalk/server/v1/deploy_pb2_grpc.py +45 -0
  78. chalk/_gen/chalk/server/v1/deploy_pb2_grpc.pyi +12 -0
  79. chalk/_gen/chalk/server/v1/deployment_pb2.py +20 -15
  80. chalk/_gen/chalk/server/v1/deployment_pb2.pyi +25 -0
  81. chalk/_gen/chalk/server/v1/environment_pb2.py +25 -15
  82. chalk/_gen/chalk/server/v1/environment_pb2.pyi +93 -1
  83. chalk/_gen/chalk/server/v1/eventbus_pb2.py +44 -0
  84. chalk/_gen/chalk/server/v1/eventbus_pb2.pyi +64 -0
  85. chalk/_gen/chalk/server/v1/eventbus_pb2_grpc.py +4 -0
  86. chalk/_gen/chalk/server/v1/eventbus_pb2_grpc.pyi +4 -0
  87. chalk/_gen/chalk/server/v1/files_pb2.py +65 -0
  88. chalk/_gen/chalk/server/v1/files_pb2.pyi +167 -0
  89. chalk/_gen/chalk/server/v1/files_pb2_grpc.py +4 -0
  90. chalk/_gen/chalk/server/v1/files_pb2_grpc.pyi +4 -0
  91. chalk/_gen/chalk/server/v1/graph_pb2.py +41 -3
  92. chalk/_gen/chalk/server/v1/graph_pb2.pyi +191 -0
  93. chalk/_gen/chalk/server/v1/graph_pb2_grpc.py +92 -0
  94. chalk/_gen/chalk/server/v1/graph_pb2_grpc.pyi +32 -0
  95. chalk/_gen/chalk/server/v1/incident_pb2.py +57 -0
  96. chalk/_gen/chalk/server/v1/incident_pb2.pyi +165 -0
  97. chalk/_gen/chalk/server/v1/incident_pb2_grpc.py +4 -0
  98. chalk/_gen/chalk/server/v1/incident_pb2_grpc.pyi +4 -0
  99. chalk/_gen/chalk/server/v1/indexing_job_pb2.py +44 -0
  100. chalk/_gen/chalk/server/v1/indexing_job_pb2.pyi +38 -0
  101. chalk/_gen/chalk/server/v1/indexing_job_pb2_grpc.py +78 -0
  102. chalk/_gen/chalk/server/v1/indexing_job_pb2_grpc.pyi +38 -0
  103. chalk/_gen/chalk/server/v1/integrations_pb2.py +11 -9
  104. chalk/_gen/chalk/server/v1/integrations_pb2.pyi +34 -2
  105. chalk/_gen/chalk/server/v1/kube_pb2.py +29 -19
  106. chalk/_gen/chalk/server/v1/kube_pb2.pyi +28 -0
  107. chalk/_gen/chalk/server/v1/kube_pb2_grpc.py +45 -0
  108. chalk/_gen/chalk/server/v1/kube_pb2_grpc.pyi +12 -0
  109. chalk/_gen/chalk/server/v1/log_pb2.py +21 -3
  110. chalk/_gen/chalk/server/v1/log_pb2.pyi +68 -0
  111. chalk/_gen/chalk/server/v1/log_pb2_grpc.py +90 -0
  112. chalk/_gen/chalk/server/v1/log_pb2_grpc.pyi +24 -0
  113. chalk/_gen/chalk/server/v1/metadataplanejobqueue_pb2.py +73 -0
  114. chalk/_gen/chalk/server/v1/metadataplanejobqueue_pb2.pyi +212 -0
  115. chalk/_gen/chalk/server/v1/metadataplanejobqueue_pb2_grpc.py +217 -0
  116. chalk/_gen/chalk/server/v1/metadataplanejobqueue_pb2_grpc.pyi +74 -0
  117. chalk/_gen/chalk/server/v1/model_registry_pb2.py +10 -10
  118. chalk/_gen/chalk/server/v1/model_registry_pb2.pyi +4 -1
  119. chalk/_gen/chalk/server/v1/monitoring_pb2.py +84 -75
  120. chalk/_gen/chalk/server/v1/monitoring_pb2.pyi +1 -0
  121. chalk/_gen/chalk/server/v1/monitoring_pb2_grpc.py +136 -0
  122. chalk/_gen/chalk/server/v1/monitoring_pb2_grpc.pyi +38 -0
  123. chalk/_gen/chalk/server/v1/offline_queries_pb2.py +32 -10
  124. chalk/_gen/chalk/server/v1/offline_queries_pb2.pyi +73 -0
  125. chalk/_gen/chalk/server/v1/offline_queries_pb2_grpc.py +90 -0
  126. chalk/_gen/chalk/server/v1/offline_queries_pb2_grpc.pyi +24 -0
  127. chalk/_gen/chalk/server/v1/plandebug_pb2.py +53 -0
  128. chalk/_gen/chalk/server/v1/plandebug_pb2.pyi +86 -0
  129. chalk/_gen/chalk/server/v1/plandebug_pb2_grpc.py +168 -0
  130. chalk/_gen/chalk/server/v1/plandebug_pb2_grpc.pyi +60 -0
  131. chalk/_gen/chalk/server/v1/queries_pb2.py +76 -48
  132. chalk/_gen/chalk/server/v1/queries_pb2.pyi +155 -2
  133. chalk/_gen/chalk/server/v1/queries_pb2_grpc.py +180 -0
  134. chalk/_gen/chalk/server/v1/queries_pb2_grpc.pyi +48 -0
  135. chalk/_gen/chalk/server/v1/scheduled_query_pb2.py +4 -2
  136. chalk/_gen/chalk/server/v1/scheduled_query_pb2_grpc.py +45 -0
  137. chalk/_gen/chalk/server/v1/scheduled_query_pb2_grpc.pyi +12 -0
  138. chalk/_gen/chalk/server/v1/scheduled_query_run_pb2.py +12 -6
  139. chalk/_gen/chalk/server/v1/scheduled_query_run_pb2.pyi +75 -2
  140. chalk/_gen/chalk/server/v1/scheduler_pb2.py +24 -12
  141. chalk/_gen/chalk/server/v1/scheduler_pb2.pyi +61 -1
  142. chalk/_gen/chalk/server/v1/scheduler_pb2_grpc.py +90 -0
  143. chalk/_gen/chalk/server/v1/scheduler_pb2_grpc.pyi +24 -0
  144. chalk/_gen/chalk/server/v1/script_tasks_pb2.py +26 -14
  145. chalk/_gen/chalk/server/v1/script_tasks_pb2.pyi +33 -3
  146. chalk/_gen/chalk/server/v1/script_tasks_pb2_grpc.py +90 -0
  147. chalk/_gen/chalk/server/v1/script_tasks_pb2_grpc.pyi +24 -0
  148. chalk/_gen/chalk/server/v1/sql_interface_pb2.py +75 -0
  149. chalk/_gen/chalk/server/v1/sql_interface_pb2.pyi +142 -0
  150. chalk/_gen/chalk/server/v1/sql_interface_pb2_grpc.py +349 -0
  151. chalk/_gen/chalk/server/v1/sql_interface_pb2_grpc.pyi +114 -0
  152. chalk/_gen/chalk/server/v1/sql_queries_pb2.py +48 -0
  153. chalk/_gen/chalk/server/v1/sql_queries_pb2.pyi +150 -0
  154. chalk/_gen/chalk/server/v1/sql_queries_pb2_grpc.py +123 -0
  155. chalk/_gen/chalk/server/v1/sql_queries_pb2_grpc.pyi +52 -0
  156. chalk/_gen/chalk/server/v1/team_pb2.py +156 -137
  157. chalk/_gen/chalk/server/v1/team_pb2.pyi +56 -10
  158. chalk/_gen/chalk/server/v1/team_pb2_grpc.py +90 -0
  159. chalk/_gen/chalk/server/v1/team_pb2_grpc.pyi +24 -0
  160. chalk/_gen/chalk/server/v1/topic_pb2.py +5 -3
  161. chalk/_gen/chalk/server/v1/topic_pb2.pyi +10 -1
  162. chalk/_gen/chalk/server/v1/trace_pb2.py +50 -28
  163. chalk/_gen/chalk/server/v1/trace_pb2.pyi +121 -0
  164. chalk/_gen/chalk/server/v1/trace_pb2_grpc.py +135 -0
  165. chalk/_gen/chalk/server/v1/trace_pb2_grpc.pyi +42 -0
  166. chalk/_gen/chalk/server/v1/webhook_pb2.py +9 -3
  167. chalk/_gen/chalk/server/v1/webhook_pb2.pyi +18 -0
  168. chalk/_gen/chalk/server/v1/webhook_pb2_grpc.py +45 -0
  169. chalk/_gen/chalk/server/v1/webhook_pb2_grpc.pyi +12 -0
  170. chalk/_gen/chalk/streaming/v1/debug_service_pb2.py +62 -0
  171. chalk/_gen/chalk/streaming/v1/debug_service_pb2.pyi +75 -0
  172. chalk/_gen/chalk/streaming/v1/debug_service_pb2_grpc.py +221 -0
  173. chalk/_gen/chalk/streaming/v1/debug_service_pb2_grpc.pyi +88 -0
  174. chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2.py +19 -7
  175. chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2.pyi +96 -3
  176. chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2_grpc.py +48 -0
  177. chalk/_gen/chalk/streaming/v1/simple_streaming_service_pb2_grpc.pyi +20 -0
  178. chalk/_gen/chalk/utils/v1/field_change_pb2.py +32 -0
  179. chalk/_gen/chalk/utils/v1/field_change_pb2.pyi +42 -0
  180. chalk/_gen/chalk/utils/v1/field_change_pb2_grpc.py +4 -0
  181. chalk/_gen/chalk/utils/v1/field_change_pb2_grpc.pyi +4 -0
  182. chalk/_lsp/error_builder.py +11 -0
  183. chalk/_monitoring/Chart.py +1 -3
  184. chalk/_version.py +1 -1
  185. chalk/cli.py +5 -10
  186. chalk/client/client.py +178 -64
  187. chalk/client/client_async.py +154 -0
  188. chalk/client/client_async_impl.py +22 -0
  189. chalk/client/client_grpc.py +738 -112
  190. chalk/client/client_impl.py +541 -136
  191. chalk/client/dataset.py +27 -6
  192. chalk/client/models.py +99 -2
  193. chalk/client/serialization/model_serialization.py +126 -10
  194. chalk/config/project_config.py +1 -1
  195. chalk/df/LazyFramePlaceholder.py +1154 -0
  196. chalk/df/ast_parser.py +2 -10
  197. chalk/features/_class_property.py +7 -0
  198. chalk/features/_embedding/embedding.py +1 -0
  199. chalk/features/_embedding/sentence_transformer.py +1 -1
  200. chalk/features/_encoding/converter.py +83 -2
  201. chalk/features/_encoding/pyarrow.py +20 -4
  202. chalk/features/_encoding/rich.py +1 -3
  203. chalk/features/_tensor.py +1 -2
  204. chalk/features/dataframe/_filters.py +14 -5
  205. chalk/features/dataframe/_impl.py +91 -36
  206. chalk/features/dataframe/_validation.py +11 -7
  207. chalk/features/feature_field.py +40 -30
  208. chalk/features/feature_set.py +1 -2
  209. chalk/features/feature_set_decorator.py +1 -0
  210. chalk/features/feature_wrapper.py +42 -3
  211. chalk/features/hooks.py +81 -12
  212. chalk/features/inference.py +65 -10
  213. chalk/features/resolver.py +338 -56
  214. chalk/features/tag.py +1 -3
  215. chalk/features/underscore_features.py +2 -1
  216. chalk/functions/__init__.py +456 -21
  217. chalk/functions/holidays.py +1 -3
  218. chalk/gitignore/gitignore_parser.py +5 -1
  219. chalk/importer.py +186 -74
  220. chalk/ml/__init__.py +6 -2
  221. chalk/ml/model_hooks.py +368 -51
  222. chalk/ml/model_reference.py +68 -10
  223. chalk/ml/model_version.py +34 -21
  224. chalk/ml/utils.py +143 -40
  225. chalk/operators/_utils.py +14 -3
  226. chalk/parsed/_proto/export.py +22 -0
  227. chalk/parsed/duplicate_input_gql.py +4 -0
  228. chalk/parsed/expressions.py +1 -3
  229. chalk/parsed/json_conversions.py +21 -14
  230. chalk/parsed/to_proto.py +16 -4
  231. chalk/parsed/user_types_to_json.py +31 -10
  232. chalk/parsed/validation_from_registries.py +182 -0
  233. chalk/queries/named_query.py +16 -6
  234. chalk/queries/scheduled_query.py +13 -1
  235. chalk/serialization/parsed_annotation.py +25 -12
  236. chalk/sql/__init__.py +221 -0
  237. chalk/sql/_internal/integrations/athena.py +6 -1
  238. chalk/sql/_internal/integrations/bigquery.py +22 -2
  239. chalk/sql/_internal/integrations/databricks.py +61 -18
  240. chalk/sql/_internal/integrations/mssql.py +281 -0
  241. chalk/sql/_internal/integrations/postgres.py +11 -3
  242. chalk/sql/_internal/integrations/redshift.py +4 -0
  243. chalk/sql/_internal/integrations/snowflake.py +11 -2
  244. chalk/sql/_internal/integrations/util.py +2 -1
  245. chalk/sql/_internal/sql_file_resolver.py +55 -10
  246. chalk/sql/_internal/sql_source.py +36 -2
  247. chalk/streams/__init__.py +1 -3
  248. chalk/streams/_kafka_source.py +5 -1
  249. chalk/streams/_windows.py +16 -4
  250. chalk/streams/types.py +1 -2
  251. chalk/utils/__init__.py +1 -3
  252. chalk/utils/_otel_version.py +13 -0
  253. chalk/utils/async_helpers.py +14 -5
  254. chalk/utils/df_utils.py +2 -2
  255. chalk/utils/duration.py +1 -3
  256. chalk/utils/job_log_display.py +538 -0
  257. chalk/utils/missing_dependency.py +5 -4
  258. chalk/utils/notebook.py +255 -2
  259. chalk/utils/pl_helpers.py +190 -37
  260. chalk/utils/pydanticutil/pydantic_compat.py +1 -2
  261. chalk/utils/storage_client.py +246 -0
  262. chalk/utils/threading.py +1 -3
  263. chalk/utils/tracing.py +194 -86
  264. {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/METADATA +53 -21
  265. {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/RECORD +268 -198
  266. {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/WHEEL +0 -0
  267. {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/entry_points.txt +0 -0
  268. {chalkpy-2.89.22.dist-info → chalkpy-2.95.3.dist-info}/top_level.txt +0 -0
@@ -22,7 +22,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
22
22
 
23
23
 
24
24
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
25
- b'\n\x1b\x63halk/server/v1/chart.proto\x12\x0f\x63halk.server.v1\x1a\x1e\x63halk/artifacts/v1/chart.proto\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a)chalk/chart/v1/densetimeserieschart.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"L\n\x06Series\x12\x16\n\x06points\x18\x01 \x03(\x01R\x06points\x12\x14\n\x05label\x18\x02 \x01(\tR\x05label\x12\x14\n\x05units\x18\x03 \x01(\tR\x05units"t\n\x05\x43hart\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12/\n\x06series\x18\x02 \x03(\x0b\x32\x17.chalk.server.v1.SeriesR\x06series\x12$\n\x0ex_timestamp_ms\x18\x04 \x03(\x03R\x0cxTimestampMs"0\n\x05Point\x12\x19\n\x05value\x18\x01 \x01(\x03H\x00R\x05value\x88\x01\x01:\x02\x18\x01\x42\x08\n\x06_value"l\n\nTimeSeries\x12.\n\x06points\x18\x01 \x03(\x0b\x32\x16.chalk.server.v1.PointR\x06points\x12\x14\n\x05label\x18\x02 \x01(\tR\x05label\x12\x14\n\x05units\x18\x03 \x01(\tR\x05units:\x02\x18\x01"\xd7\x01\n\x0fTimeSeriesChart\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12\x33\n\x06series\x18\x02 \x03(\x0b\x32\x1b.chalk.server.v1.TimeSeriesR\x06series\x12\x35\n\x08x_series\x18\x03 \x03(\x0b\x32\x1a.google.protobuf.TimestampR\x07xSeries\x12>\n\rwindow_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0cwindowPeriod:\x02\x18\x01"\xbe\x01\n\x11ListChartsFilters\x12P\n\x10link_entity_kind\x18\x01 \x01(\x0e\x32!.chalk.artifacts.v1.ChartLinkKindH\x00R\x0elinkEntityKind\x88\x01\x01\x12-\n\x10linked_entity_id\x18\x02 \x01(\tH\x01R\x0elinkedEntityId\x88\x01\x01\x42\x13\n\x11_link_entity_kindB\x13\n\x11_linked_entity_id"m\n\x12ListChartPageToken\x12@\n\x0e\x63reated_at_hwm\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0c\x63reatedAtHwm\x12\x15\n\x06id_hwm\x18\x02 \x01(\tR\x05idHwm"\xba\x01\n\x11ListChartsRequest\x12\x41\n\x07\x66ilters\x18\x01 \x01(\x0b\x32".chalk.server.v1.ListChartsFiltersH\x00R\x07\x66ilters\x88\x01\x01\x12\x19\n\x05limit\x18\x02 \x01(\x05H\x01R\x05limit\x88\x01\x01\x12"\n\npage_token\x18\x03 \x01(\tH\x02R\tpageToken\x88\x01\x01\x42\n\n\x08_filtersB\x08\n\x06_limitB\r\n\x0b_page_token"\xda\x01\n\x12ListChartsResponse\x12<\n\x06\x63harts\x18\x01 \x03(\x0b\x32 .chalk.artifacts.v1.MetricConfigB\x02\x18\x01R\x06\x63harts\x12\x45\n\x11\x63harts_with_links\x18\x02 \x03(\x0b\x32\x19.chalk.artifacts.v1.ChartR\x0f\x63hartsWithLinks\x12+\n\x0fnext_page_token\x18\x03 \x01(\tH\x00R\rnextPageToken\x88\x01\x01\x42\x12\n\x10_next_page_token"\x89\x03\n\x1bUpdateMetricConfigOperation\x12\x17\n\x04name\x18\x01 \x01(\tH\x00R\x04name\x88\x01\x01\x12(\n\rwindow_period\x18\x02 \x01(\tH\x01R\x0cwindowPeriod\x88\x01\x01\x12>\n\x06series\x18\x03 \x03(\x0b\x32&.chalk.artifacts.v1.MetricConfigSeriesR\x06series\x12=\n\x08\x66ormulas\x18\x04 \x03(\x0b\x32!.chalk.artifacts.v1.MetricFormulaR\x08\x66ormulas\x12?\n\x07trigger\x18\x05 \x01(\x0b\x32 .chalk.artifacts.v1.AlertTriggerH\x02R\x07trigger\x88\x01\x01\x12,\n\x0fgraph_generated\x18\x06 \x01(\x08H\x03R\x0egraphGenerated\x88\x01\x01\x42\x07\n\x05_nameB\x10\n\x0e_window_periodB\n\n\x08_triggerB\x12\n\x10_graph_generated"\xc2\x03\n\x12\x43reateChartRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12#\n\rwindow_period\x18\x02 \x01(\tR\x0cwindowPeriod\x12>\n\x06series\x18\x03 \x03(\x0b\x32&.chalk.artifacts.v1.MetricConfigSeriesR\x06series\x12=\n\x08\x66ormulas\x18\x04 \x03(\x0b\x32!.chalk.artifacts.v1.MetricFormulaR\x08\x66ormulas\x12:\n\x07trigger\x18\x05 \x01(\x0b\x32 .chalk.artifacts.v1.AlertTriggerR\x07trigger\x12K\n\x10link_entity_kind\x18\x06 \x01(\x0e\x32!.chalk.artifacts.v1.ChartLinkKindR\x0elinkEntityKind\x12-\n\x10linked_entity_id\x18\x07 \x01(\tH\x00R\x0elinkedEntityId\x88\x01\x01\x12\'\n\x0fgraph_generated\x18\x08 \x01(\x08R\x0egraphGeneratedB\x13\n\x11_linked_entity_id"U\n\x13\x43reateChartResponse\x12\x34\n\x05\x63hart\x18\x02 \x01(\x0b\x32\x19.chalk.artifacts.v1.ChartH\x00R\x05\x63hart\x88\x01\x01\x42\x08\n\x06_chart"\xc8\x01\n\x19UpdateMetricConfigRequest\x12(\n\x10metric_config_id\x18\x01 \x01(\tR\x0emetricConfigId\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32,.chalk.server.v1.UpdateMetricConfigOperationR\x06update\x12;\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\nupdateMask"c\n\x1aUpdateMetricConfigResponse\x12\x45\n\rmetric_config\x18\x01 \x01(\x0b\x32 .chalk.artifacts.v1.MetricConfigR\x0cmetricConfig"\x9e\x02\n\x17GetChartSnapshotRequest\x12\x45\n\rmetric_config\x18\x01 \x01(\x0b\x32 .chalk.artifacts.v1.MetricConfigR\x0cmetricConfig\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12\x32\n\x13use_start_as_origin\x18\x04 \x01(\x08H\x00R\x10useStartAsOrigin\x88\x01\x01\x42\x16\n\x14_use_start_as_origin"\xcf\x01\n\x18GetChartSnapshotResponse\x12<\n\x06\x63harts\x18\x01 \x03(\x0b\x32$.chalk.chart.v1.DenseTimeSeriesChartR\x06\x63harts\x12\x35\n\x08x_series\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.TimestampR\x07xSeries\x12>\n\rwindow_period\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0cwindowPeriod">\n\x12\x44\x65leteChartRequest\x12(\n\x10metric_config_id\x18\x01 \x01(\tR\x0emetricConfigId"\x15\n\x13\x44\x65leteChartResponse2\x8b\x04\n\rChartsService\x12Z\n\nListCharts\x12".chalk.server.v1.ListChartsRequest\x1a#.chalk.server.v1.ListChartsResponse"\x03\x80}\x06\x12l\n\x10GetChartSnapshot\x12(.chalk.server.v1.GetChartSnapshotRequest\x1a).chalk.server.v1.GetChartSnapshotResponse"\x03\x80}\x06\x12r\n\x12UpdateMetricConfig\x12*.chalk.server.v1.UpdateMetricConfigRequest\x1a+.chalk.server.v1.UpdateMetricConfigResponse"\x03\x80}\x05\x12]\n\x0b\x43reateChart\x12#.chalk.server.v1.CreateChartRequest\x1a$.chalk.server.v1.CreateChartResponse"\x03\x80}\x05\x12]\n\x0b\x44\x65leteChart\x12#.chalk.server.v1.DeleteChartRequest\x1a$.chalk.server.v1.DeleteChartResponse"\x03\x80}\x05\x42\x93\x01\n\x13\x63om.chalk.server.v1B\nChartProtoP\x01Z\x12server/v1;serverv1\xa2\x02\x03\x43SX\xaa\x02\x0f\x43halk.Server.V1\xca\x02\x0f\x43halk\\Server\\V1\xe2\x02\x1b\x43halk\\Server\\V1\\GPBMetadata\xea\x02\x11\x43halk::Server::V1b\x06proto3'
25
+ b'\n\x1b\x63halk/server/v1/chart.proto\x12\x0f\x63halk.server.v1\x1a\x1e\x63halk/artifacts/v1/chart.proto\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a)chalk/chart/v1/densetimeserieschart.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"L\n\x06Series\x12\x16\n\x06points\x18\x01 \x03(\x01R\x06points\x12\x14\n\x05label\x18\x02 \x01(\tR\x05label\x12\x14\n\x05units\x18\x03 \x01(\tR\x05units"t\n\x05\x43hart\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12/\n\x06series\x18\x02 \x03(\x0b\x32\x17.chalk.server.v1.SeriesR\x06series\x12$\n\x0ex_timestamp_ms\x18\x04 \x03(\x03R\x0cxTimestampMs"0\n\x05Point\x12\x19\n\x05value\x18\x01 \x01(\x03H\x00R\x05value\x88\x01\x01:\x02\x18\x01\x42\x08\n\x06_value"l\n\nTimeSeries\x12.\n\x06points\x18\x01 \x03(\x0b\x32\x16.chalk.server.v1.PointR\x06points\x12\x14\n\x05label\x18\x02 \x01(\tR\x05label\x12\x14\n\x05units\x18\x03 \x01(\tR\x05units:\x02\x18\x01"\xd7\x01\n\x0fTimeSeriesChart\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12\x33\n\x06series\x18\x02 \x03(\x0b\x32\x1b.chalk.server.v1.TimeSeriesR\x06series\x12\x35\n\x08x_series\x18\x03 \x03(\x0b\x32\x1a.google.protobuf.TimestampR\x07xSeries\x12>\n\rwindow_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0cwindowPeriod:\x02\x18\x01"\xbe\x01\n\x11ListChartsFilters\x12P\n\x10link_entity_kind\x18\x01 \x01(\x0e\x32!.chalk.artifacts.v1.ChartLinkKindH\x00R\x0elinkEntityKind\x88\x01\x01\x12-\n\x10linked_entity_id\x18\x02 \x01(\tH\x01R\x0elinkedEntityId\x88\x01\x01\x42\x13\n\x11_link_entity_kindB\x13\n\x11_linked_entity_id"m\n\x12ListChartPageToken\x12@\n\x0e\x63reated_at_hwm\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0c\x63reatedAtHwm\x12\x15\n\x06id_hwm\x18\x02 \x01(\tR\x05idHwm"\xba\x01\n\x11ListChartsRequest\x12\x41\n\x07\x66ilters\x18\x01 \x01(\x0b\x32".chalk.server.v1.ListChartsFiltersH\x00R\x07\x66ilters\x88\x01\x01\x12\x19\n\x05limit\x18\x02 \x01(\x05H\x01R\x05limit\x88\x01\x01\x12"\n\npage_token\x18\x03 \x01(\tH\x02R\tpageToken\x88\x01\x01\x42\n\n\x08_filtersB\x08\n\x06_limitB\r\n\x0b_page_token"\xda\x01\n\x12ListChartsResponse\x12<\n\x06\x63harts\x18\x01 \x03(\x0b\x32 .chalk.artifacts.v1.MetricConfigB\x02\x18\x01R\x06\x63harts\x12\x45\n\x11\x63harts_with_links\x18\x02 \x03(\x0b\x32\x19.chalk.artifacts.v1.ChartR\x0f\x63hartsWithLinks\x12+\n\x0fnext_page_token\x18\x03 \x01(\tH\x00R\rnextPageToken\x88\x01\x01\x42\x12\n\x10_next_page_token"\x89\x03\n\x1bUpdateMetricConfigOperation\x12\x17\n\x04name\x18\x01 \x01(\tH\x00R\x04name\x88\x01\x01\x12(\n\rwindow_period\x18\x02 \x01(\tH\x01R\x0cwindowPeriod\x88\x01\x01\x12>\n\x06series\x18\x03 \x03(\x0b\x32&.chalk.artifacts.v1.MetricConfigSeriesR\x06series\x12=\n\x08\x66ormulas\x18\x04 \x03(\x0b\x32!.chalk.artifacts.v1.MetricFormulaR\x08\x66ormulas\x12?\n\x07trigger\x18\x05 \x01(\x0b\x32 .chalk.artifacts.v1.AlertTriggerH\x02R\x07trigger\x88\x01\x01\x12,\n\x0fgraph_generated\x18\x06 \x01(\x08H\x03R\x0egraphGenerated\x88\x01\x01\x42\x07\n\x05_nameB\x10\n\x0e_window_periodB\n\n\x08_triggerB\x12\n\x10_graph_generated"\xc2\x03\n\x12\x43reateChartRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12#\n\rwindow_period\x18\x02 \x01(\tR\x0cwindowPeriod\x12>\n\x06series\x18\x03 \x03(\x0b\x32&.chalk.artifacts.v1.MetricConfigSeriesR\x06series\x12=\n\x08\x66ormulas\x18\x04 \x03(\x0b\x32!.chalk.artifacts.v1.MetricFormulaR\x08\x66ormulas\x12:\n\x07trigger\x18\x05 \x01(\x0b\x32 .chalk.artifacts.v1.AlertTriggerR\x07trigger\x12K\n\x10link_entity_kind\x18\x06 \x01(\x0e\x32!.chalk.artifacts.v1.ChartLinkKindR\x0elinkEntityKind\x12-\n\x10linked_entity_id\x18\x07 \x01(\tH\x00R\x0elinkedEntityId\x88\x01\x01\x12\'\n\x0fgraph_generated\x18\x08 \x01(\x08R\x0egraphGeneratedB\x13\n\x11_linked_entity_id"U\n\x13\x43reateChartResponse\x12\x34\n\x05\x63hart\x18\x02 \x01(\x0b\x32\x19.chalk.artifacts.v1.ChartH\x00R\x05\x63hart\x88\x01\x01\x42\x08\n\x06_chart"\xc8\x01\n\x19UpdateMetricConfigRequest\x12(\n\x10metric_config_id\x18\x01 \x01(\tR\x0emetricConfigId\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32,.chalk.server.v1.UpdateMetricConfigOperationR\x06update\x12;\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\nupdateMask"c\n\x1aUpdateMetricConfigResponse\x12\x45\n\rmetric_config\x18\x01 \x01(\x0b\x32 .chalk.artifacts.v1.MetricConfigR\x0cmetricConfig"\xd1\x03\n\x17GetChartSnapshotRequest\x12\x45\n\rmetric_config\x18\x01 \x01(\x0b\x32 .chalk.artifacts.v1.MetricConfigR\x0cmetricConfig\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12\x32\n\x13use_start_as_origin\x18\x04 \x01(\x08H\x00R\x10useStartAsOrigin\x88\x01\x01\x12<\n\x18use_sketch_metrics_table\x18\x05 \x01(\x08H\x01R\x15useSketchMetricsTable\x88\x01\x01\x12:\n\x17return_sql_query_string\x18\x06 \x01(\x08H\x02R\x14returnSqlQueryString\x88\x01\x01\x42\x16\n\x14_use_start_as_originB\x1b\n\x19_use_sketch_metrics_tableB\x1a\n\x18_return_sql_query_string"\xfb\x01\n\x18GetChartSnapshotResponse\x12<\n\x06\x63harts\x18\x01 \x03(\x0b\x32$.chalk.chart.v1.DenseTimeSeriesChartR\x06\x63harts\x12\x35\n\x08x_series\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.TimestampR\x07xSeries\x12>\n\rwindow_period\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0cwindowPeriod\x12*\n\x11sql_query_strings\x18\x04 \x03(\tR\x0fsqlQueryStrings">\n\x12\x44\x65leteChartRequest\x12(\n\x10metric_config_id\x18\x01 \x01(\tR\x0emetricConfigId"\x15\n\x13\x44\x65leteChartResponse2\x8b\x04\n\rChartsService\x12Z\n\nListCharts\x12".chalk.server.v1.ListChartsRequest\x1a#.chalk.server.v1.ListChartsResponse"\x03\x80}\x06\x12l\n\x10GetChartSnapshot\x12(.chalk.server.v1.GetChartSnapshotRequest\x1a).chalk.server.v1.GetChartSnapshotResponse"\x03\x80}\x06\x12r\n\x12UpdateMetricConfig\x12*.chalk.server.v1.UpdateMetricConfigRequest\x1a+.chalk.server.v1.UpdateMetricConfigResponse"\x03\x80}\x05\x12]\n\x0b\x43reateChart\x12#.chalk.server.v1.CreateChartRequest\x1a$.chalk.server.v1.CreateChartResponse"\x03\x80}\x05\x12]\n\x0b\x44\x65leteChart\x12#.chalk.server.v1.DeleteChartRequest\x1a$.chalk.server.v1.DeleteChartResponse"\x03\x80}\x05\x42\x93\x01\n\x13\x63om.chalk.server.v1B\nChartProtoP\x01Z\x12server/v1;serverv1\xa2\x02\x03\x43SX\xaa\x02\x0f\x43halk.Server.V1\xca\x02\x0f\x43halk\\Server\\V1\xe2\x02\x1b\x43halk\\Server\\V1\\GPBMetadata\xea\x02\x11\x43halk::Server::V1b\x06proto3'
26
26
  )
27
27
 
28
28
  _globals = globals()
@@ -80,13 +80,13 @@ if _descriptor._USE_C_DESCRIPTORS == False:
80
80
  _globals["_UPDATEMETRICCONFIGRESPONSE"]._serialized_start = 2682
81
81
  _globals["_UPDATEMETRICCONFIGRESPONSE"]._serialized_end = 2781
82
82
  _globals["_GETCHARTSNAPSHOTREQUEST"]._serialized_start = 2784
83
- _globals["_GETCHARTSNAPSHOTREQUEST"]._serialized_end = 3070
84
- _globals["_GETCHARTSNAPSHOTRESPONSE"]._serialized_start = 3073
85
- _globals["_GETCHARTSNAPSHOTRESPONSE"]._serialized_end = 3280
86
- _globals["_DELETECHARTREQUEST"]._serialized_start = 3282
87
- _globals["_DELETECHARTREQUEST"]._serialized_end = 3344
88
- _globals["_DELETECHARTRESPONSE"]._serialized_start = 3346
89
- _globals["_DELETECHARTRESPONSE"]._serialized_end = 3367
90
- _globals["_CHARTSSERVICE"]._serialized_start = 3370
91
- _globals["_CHARTSSERVICE"]._serialized_end = 3893
83
+ _globals["_GETCHARTSNAPSHOTREQUEST"]._serialized_end = 3249
84
+ _globals["_GETCHARTSNAPSHOTRESPONSE"]._serialized_start = 3252
85
+ _globals["_GETCHARTSNAPSHOTRESPONSE"]._serialized_end = 3503
86
+ _globals["_DELETECHARTREQUEST"]._serialized_start = 3505
87
+ _globals["_DELETECHARTREQUEST"]._serialized_end = 3567
88
+ _globals["_DELETECHARTRESPONSE"]._serialized_start = 3569
89
+ _globals["_DELETECHARTRESPONSE"]._serialized_end = 3590
90
+ _globals["_CHARTSSERVICE"]._serialized_start = 3593
91
+ _globals["_CHARTSSERVICE"]._serialized_end = 4116
92
92
  # @@protoc_insertion_point(module_scope)
@@ -226,36 +226,52 @@ class UpdateMetricConfigResponse(_message.Message):
226
226
  def __init__(self, metric_config: _Optional[_Union[_chart_pb2.MetricConfig, _Mapping]] = ...) -> None: ...
227
227
 
228
228
  class GetChartSnapshotRequest(_message.Message):
229
- __slots__ = ("metric_config", "start_time", "end_time", "use_start_as_origin")
229
+ __slots__ = (
230
+ "metric_config",
231
+ "start_time",
232
+ "end_time",
233
+ "use_start_as_origin",
234
+ "use_sketch_metrics_table",
235
+ "return_sql_query_string",
236
+ )
230
237
  METRIC_CONFIG_FIELD_NUMBER: _ClassVar[int]
231
238
  START_TIME_FIELD_NUMBER: _ClassVar[int]
232
239
  END_TIME_FIELD_NUMBER: _ClassVar[int]
233
240
  USE_START_AS_ORIGIN_FIELD_NUMBER: _ClassVar[int]
241
+ USE_SKETCH_METRICS_TABLE_FIELD_NUMBER: _ClassVar[int]
242
+ RETURN_SQL_QUERY_STRING_FIELD_NUMBER: _ClassVar[int]
234
243
  metric_config: _chart_pb2.MetricConfig
235
244
  start_time: _timestamp_pb2.Timestamp
236
245
  end_time: _timestamp_pb2.Timestamp
237
246
  use_start_as_origin: bool
247
+ use_sketch_metrics_table: bool
248
+ return_sql_query_string: bool
238
249
  def __init__(
239
250
  self,
240
251
  metric_config: _Optional[_Union[_chart_pb2.MetricConfig, _Mapping]] = ...,
241
252
  start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...,
242
253
  end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...,
243
254
  use_start_as_origin: bool = ...,
255
+ use_sketch_metrics_table: bool = ...,
256
+ return_sql_query_string: bool = ...,
244
257
  ) -> None: ...
245
258
 
246
259
  class GetChartSnapshotResponse(_message.Message):
247
- __slots__ = ("charts", "x_series", "window_period")
260
+ __slots__ = ("charts", "x_series", "window_period", "sql_query_strings")
248
261
  CHARTS_FIELD_NUMBER: _ClassVar[int]
249
262
  X_SERIES_FIELD_NUMBER: _ClassVar[int]
250
263
  WINDOW_PERIOD_FIELD_NUMBER: _ClassVar[int]
264
+ SQL_QUERY_STRINGS_FIELD_NUMBER: _ClassVar[int]
251
265
  charts: _containers.RepeatedCompositeFieldContainer[_densetimeserieschart_pb2.DenseTimeSeriesChart]
252
266
  x_series: _containers.RepeatedCompositeFieldContainer[_timestamp_pb2.Timestamp]
253
267
  window_period: _duration_pb2.Duration
268
+ sql_query_strings: _containers.RepeatedScalarFieldContainer[str]
254
269
  def __init__(
255
270
  self,
256
271
  charts: _Optional[_Iterable[_Union[_densetimeserieschart_pb2.DenseTimeSeriesChart, _Mapping]]] = ...,
257
272
  x_series: _Optional[_Iterable[_Union[_timestamp_pb2.Timestamp, _Mapping]]] = ...,
258
273
  window_period: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...,
274
+ sql_query_strings: _Optional[_Iterable[str]] = ...,
259
275
  ) -> None: ...
260
276
 
261
277
  class DeleteChartRequest(_message.Message):
@@ -0,0 +1,42 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: chalk/server/v1/clickhouse.proto
4
+ # Protobuf Python Version: 4.25.3
5
+ """Generated protocol buffer code."""
6
+
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import symbol_database as _symbol_database
10
+ from google.protobuf.internal import builder as _builder
11
+ # @@protoc_insertion_point(imports)
12
+
13
+ _sym_db = _symbol_database.Default()
14
+
15
+
16
+ from chalk._gen.chalk.auth.v1 import permissions_pb2 as chalk_dot_auth_dot_v1_dot_permissions__pb2
17
+ from chalk._gen.chalk.utils.v1 import sensitive_pb2 as chalk_dot_utils_dot_v1_dot_sensitive__pb2
18
+
19
+
20
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
21
+ b'\n chalk/server/v1/clickhouse.proto\x12\x0f\x63halk.server.v1\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a\x1e\x63halk/utils/v1/sensitive.proto"\x19\n\x17GetClickhouseUriRequest"2\n\x18GetClickhouseUriResponse\x12\x16\n\x03uri\x18\x01 \x01(\tB\x04\xd8\xa1\'\x01R\x03uri2\x84\x01\n\x11\x43lickhouseService\x12o\n\x10GetClickhouseUri\x12(.chalk.server.v1.GetClickhouseUriRequest\x1a).chalk.server.v1.GetClickhouseUriResponse"\x06\x90\x02\x01\x80}\x0b\x42\x98\x01\n\x13\x63om.chalk.server.v1B\x0f\x43lickhouseProtoP\x01Z\x12server/v1;serverv1\xa2\x02\x03\x43SX\xaa\x02\x0f\x43halk.Server.V1\xca\x02\x0f\x43halk\\Server\\V1\xe2\x02\x1b\x43halk\\Server\\V1\\GPBMetadata\xea\x02\x11\x43halk::Server::V1b\x06proto3'
22
+ )
23
+
24
+ _globals = globals()
25
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
26
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "chalk.server.v1.clickhouse_pb2", _globals)
27
+ if _descriptor._USE_C_DESCRIPTORS == False:
28
+ _globals["DESCRIPTOR"]._options = None
29
+ _globals[
30
+ "DESCRIPTOR"
31
+ ]._serialized_options = b"\n\023com.chalk.server.v1B\017ClickhouseProtoP\001Z\022server/v1;serverv1\242\002\003CSX\252\002\017Chalk.Server.V1\312\002\017Chalk\\Server\\V1\342\002\033Chalk\\Server\\V1\\GPBMetadata\352\002\021Chalk::Server::V1"
32
+ _globals["_GETCLICKHOUSEURIRESPONSE"].fields_by_name["uri"]._options = None
33
+ _globals["_GETCLICKHOUSEURIRESPONSE"].fields_by_name["uri"]._serialized_options = b"\330\241'\001"
34
+ _globals["_CLICKHOUSESERVICE"].methods_by_name["GetClickhouseUri"]._options = None
35
+ _globals["_CLICKHOUSESERVICE"].methods_by_name["GetClickhouseUri"]._serialized_options = b"\220\002\001\200}\013"
36
+ _globals["_GETCLICKHOUSEURIREQUEST"]._serialized_start = 118
37
+ _globals["_GETCLICKHOUSEURIREQUEST"]._serialized_end = 143
38
+ _globals["_GETCLICKHOUSEURIRESPONSE"]._serialized_start = 145
39
+ _globals["_GETCLICKHOUSEURIRESPONSE"]._serialized_end = 195
40
+ _globals["_CLICKHOUSESERVICE"]._serialized_start = 198
41
+ _globals["_CLICKHOUSESERVICE"]._serialized_end = 330
42
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,17 @@
1
+ from chalk._gen.chalk.auth.v1 import permissions_pb2 as _permissions_pb2
2
+ from chalk._gen.chalk.utils.v1 import sensitive_pb2 as _sensitive_pb2
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from typing import ClassVar as _ClassVar, Optional as _Optional
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class GetClickhouseUriRequest(_message.Message):
10
+ __slots__ = ()
11
+ def __init__(self) -> None: ...
12
+
13
+ class GetClickhouseUriResponse(_message.Message):
14
+ __slots__ = ("uri",)
15
+ URI_FIELD_NUMBER: _ClassVar[int]
16
+ uri: str
17
+ def __init__(self, uri: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,78 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+
4
+ import grpc
5
+
6
+ from chalk._gen.chalk.server.v1 import clickhouse_pb2 as chalk_dot_server_dot_v1_dot_clickhouse__pb2
7
+
8
+
9
+ class ClickhouseServiceStub(object):
10
+ """Missing associated documentation comment in .proto file."""
11
+
12
+ def __init__(self, channel):
13
+ """Constructor.
14
+
15
+ Args:
16
+ channel: A grpc.Channel.
17
+ """
18
+ self.GetClickhouseUri = channel.unary_unary(
19
+ "/chalk.server.v1.ClickhouseService/GetClickhouseUri",
20
+ request_serializer=chalk_dot_server_dot_v1_dot_clickhouse__pb2.GetClickhouseUriRequest.SerializeToString,
21
+ response_deserializer=chalk_dot_server_dot_v1_dot_clickhouse__pb2.GetClickhouseUriResponse.FromString,
22
+ )
23
+
24
+
25
+ class ClickhouseServiceServicer(object):
26
+ """Missing associated documentation comment in .proto file."""
27
+
28
+ def GetClickhouseUri(self, request, context):
29
+ """Get the Clickhouse connection URI for an environment"""
30
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
31
+ context.set_details("Method not implemented!")
32
+ raise NotImplementedError("Method not implemented!")
33
+
34
+
35
+ def add_ClickhouseServiceServicer_to_server(servicer, server):
36
+ rpc_method_handlers = {
37
+ "GetClickhouseUri": grpc.unary_unary_rpc_method_handler(
38
+ servicer.GetClickhouseUri,
39
+ request_deserializer=chalk_dot_server_dot_v1_dot_clickhouse__pb2.GetClickhouseUriRequest.FromString,
40
+ response_serializer=chalk_dot_server_dot_v1_dot_clickhouse__pb2.GetClickhouseUriResponse.SerializeToString,
41
+ ),
42
+ }
43
+ generic_handler = grpc.method_handlers_generic_handler("chalk.server.v1.ClickhouseService", rpc_method_handlers)
44
+ server.add_generic_rpc_handlers((generic_handler,))
45
+
46
+
47
+ # This class is part of an EXPERIMENTAL API.
48
+ class ClickhouseService(object):
49
+ """Missing associated documentation comment in .proto file."""
50
+
51
+ @staticmethod
52
+ def GetClickhouseUri(
53
+ request,
54
+ target,
55
+ options=(),
56
+ channel_credentials=None,
57
+ call_credentials=None,
58
+ insecure=False,
59
+ compression=None,
60
+ wait_for_ready=None,
61
+ timeout=None,
62
+ metadata=None,
63
+ ):
64
+ return grpc.experimental.unary_unary(
65
+ request,
66
+ target,
67
+ "/chalk.server.v1.ClickhouseService/GetClickhouseUri",
68
+ chalk_dot_server_dot_v1_dot_clickhouse__pb2.GetClickhouseUriRequest.SerializeToString,
69
+ chalk_dot_server_dot_v1_dot_clickhouse__pb2.GetClickhouseUriResponse.FromString,
70
+ options,
71
+ channel_credentials,
72
+ insecure,
73
+ call_credentials,
74
+ compression,
75
+ wait_for_ready,
76
+ timeout,
77
+ metadata,
78
+ )
@@ -0,0 +1,38 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ from abc import (
7
+ ABCMeta,
8
+ abstractmethod,
9
+ )
10
+ from chalk._gen.chalk.server.v1.clickhouse_pb2 import (
11
+ GetClickhouseUriRequest,
12
+ GetClickhouseUriResponse,
13
+ )
14
+ from grpc import (
15
+ Channel,
16
+ Server,
17
+ ServicerContext,
18
+ UnaryUnaryMultiCallable,
19
+ )
20
+
21
+ class ClickhouseServiceStub:
22
+ def __init__(self, channel: Channel) -> None: ...
23
+ GetClickhouseUri: UnaryUnaryMultiCallable[
24
+ GetClickhouseUriRequest,
25
+ GetClickhouseUriResponse,
26
+ ]
27
+ """Get the Clickhouse connection URI for an environment"""
28
+
29
+ class ClickhouseServiceServicer(metaclass=ABCMeta):
30
+ @abstractmethod
31
+ def GetClickhouseUri(
32
+ self,
33
+ request: GetClickhouseUriRequest,
34
+ context: ServicerContext,
35
+ ) -> GetClickhouseUriResponse:
36
+ """Get the Clickhouse connection URI for an environment"""
37
+
38
+ def add_ClickhouseServiceServicer_to_server(servicer: ClickhouseServiceServicer, server: Server) -> None: ...