@raystack/proton 0.1.0-8a4f578dceca476c696c82054faaf4871b1b949c → 0.1.0-8cb19702a3e47d173732860d58084b83d6941865

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 (198) hide show
  1. package/google/api/annotations_pb.ts +15 -9
  2. package/google/api/field_behavior_pb.ts +19 -19
  3. package/google/api/http_pb.ts +43 -108
  4. package/google/api/httpbody_pb.ts +23 -37
  5. package/index.ts +10 -0
  6. package/package.json +61 -17
  7. package/protoc-gen-openapiv2/options/annotations_pb.ts +23 -29
  8. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +338 -808
  9. package/raystack/assets/index.ts +29 -29
  10. package/raystack/assets/v1beta1/bucket_pb.ts +46 -89
  11. package/raystack/assets/v1beta1/dashboard_pb.ts +49 -97
  12. package/raystack/assets/v1beta1/event_pb.ts +22 -36
  13. package/raystack/assets/v1beta1/group_pb.ts +38 -74
  14. package/raystack/assets/v1beta1/job_pb.ts +30 -43
  15. package/raystack/assets/v1beta1/lineage_pb.ts +22 -36
  16. package/raystack/assets/v1beta1/ownership_pb.ts +31 -68
  17. package/raystack/assets/v1beta1/preview_pb.ts +21 -34
  18. package/raystack/assets/v1beta1/properties_pb.ts +22 -37
  19. package/raystack/assets/v1beta1/resource_pb.ts +24 -43
  20. package/raystack/assets/v1beta1/schema_pb.ts +59 -145
  21. package/raystack/assets/v1beta1/table_pb.ts +59 -120
  22. package/raystack/assets/v1beta1/timestamp_pb.ts +28 -62
  23. package/raystack/assets/v1beta1/topic_pb.ts +43 -78
  24. package/raystack/assets/v1beta1/user_pb.ts +58 -125
  25. package/raystack/assets/v1beta2/application_pb.ts +23 -39
  26. package/raystack/assets/v1beta2/asset_pb.ts +30 -53
  27. package/raystack/assets/v1beta2/bucket_pb.ts +41 -87
  28. package/raystack/assets/v1beta2/common_pb.ts +56 -137
  29. package/raystack/assets/v1beta2/dashboard_pb.ts +44 -93
  30. package/raystack/assets/v1beta2/experiment_pb.ts +38 -79
  31. package/raystack/assets/v1beta2/feature_table_pb.ts +51 -115
  32. package/raystack/assets/v1beta2/group_pb.ts +32 -68
  33. package/raystack/assets/v1beta2/job_pb.ts +21 -35
  34. package/raystack/assets/v1beta2/metric_pb.ts +25 -43
  35. package/raystack/assets/v1beta2/model_pb.ts +59 -147
  36. package/raystack/assets/v1beta2/table_pb.ts +82 -200
  37. package/raystack/assets/v1beta2/topic_pb.ts +41 -99
  38. package/raystack/assets/v1beta2/user_pb.ts +53 -121
  39. package/raystack/common/index.ts +1 -2
  40. package/raystack/common/v1/service-CommonService_connectquery.ts +3 -14
  41. package/raystack/common/v1/service_pb.ts +57 -97
  42. package/raystack/compass/index.ts +1 -2
  43. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +44 -424
  44. package/raystack/compass/v1beta1/service_pb.ts +1448 -3319
  45. package/raystack/entropy/index.ts +2 -4
  46. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +7 -54
  47. package/raystack/entropy/v1beta1/module_pb.ts +156 -324
  48. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +9 -74
  49. package/raystack/entropy/v1beta1/resource_pb.ts +330 -756
  50. package/raystack/frontier/index.ts +3 -5
  51. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +60 -514
  52. package/raystack/frontier/v1beta1/admin_pb.ts +1774 -3791
  53. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +169 -1674
  54. package/raystack/frontier/v1beta1/frontier_pb.ts +4850 -10959
  55. package/raystack/frontier/v1beta1/models_pb.ts +810 -2296
  56. package/raystack/guardian/index.ts +1 -2
  57. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +42 -404
  58. package/raystack/guardian/v1beta1/guardian_pb.ts +1584 -3783
  59. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +5 -34
  60. package/raystack/optimus/core/v1beta1/backup_pb.ts +137 -273
  61. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +6 -44
  62. package/raystack/optimus/core/v1beta1/job_run_pb.ts +194 -376
  63. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +17 -154
  64. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +910 -2081
  65. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +5 -34
  66. package/raystack/optimus/core/v1beta1/namespace_pb.ts +113 -212
  67. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +5 -34
  68. package/raystack/optimus/core/v1beta1/project_pb.ts +121 -238
  69. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +6 -44
  70. package/raystack/optimus/core/v1beta1/replay_pb.ts +160 -335
  71. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +8 -64
  72. package/raystack/optimus/core/v1beta1/resource_pb.ts +266 -527
  73. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +3 -14
  74. package/raystack/optimus/core/v1beta1/runtime_pb.ts +48 -61
  75. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +6 -44
  76. package/raystack/optimus/core/v1beta1/secret_pb.ts +155 -283
  77. package/raystack/optimus/core/v1beta1/status_pb.ts +35 -54
  78. package/raystack/optimus/integration/v1beta1/event_pb.ts +75 -187
  79. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +6 -44
  80. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +193 -426
  81. package/raystack/predator/index.ts +2 -2
  82. package/raystack/predator/v1beta1/metrics_log_pb.ts +67 -173
  83. package/raystack/predator/v1beta1/result_log_pb.ts +60 -144
  84. package/raystack/raccoon/index.ts +1 -2
  85. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +3 -14
  86. package/raystack/raccoon/v1beta1/raccoon_pb.ts +142 -189
  87. package/raystack/siren/index.ts +1 -2
  88. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +37 -354
  89. package/raystack/siren/v1beta1/siren_pb.ts +1155 -2637
  90. package/raystack/stencil/index.ts +1 -2
  91. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +18 -164
  92. package/raystack/stencil/v1beta1/stencil_pb.ts +530 -1157
  93. package/validate/validate_pb.ts +401 -1038
  94. package/google/api/field_behavior.ts +0 -95
  95. package/google/api/http.ts +0 -695
  96. package/google/api/httpbody.ts +0 -159
  97. package/google/protobuf/any.ts +0 -322
  98. package/google/protobuf/descriptor.ts +0 -3475
  99. package/google/protobuf/duration.ts +0 -231
  100. package/google/protobuf/struct.ts +0 -484
  101. package/google/protobuf/timestamp.ts +0 -290
  102. package/google/protobuf/wrappers.ts +0 -752
  103. package/protoc-gen-openapiv2/options/openapiv2.ts +0 -3110
  104. package/raystack/assets/v1beta1/bucket.ts +0 -362
  105. package/raystack/assets/v1beta1/dashboard.ts +0 -426
  106. package/raystack/assets/v1beta1/event.ts +0 -105
  107. package/raystack/assets/v1beta1/group.ts +0 -223
  108. package/raystack/assets/v1beta1/job.ts +0 -147
  109. package/raystack/assets/v1beta1/lineage.ts +0 -90
  110. package/raystack/assets/v1beta1/ownership.ts +0 -179
  111. package/raystack/assets/v1beta1/preview.ts +0 -87
  112. package/raystack/assets/v1beta1/properties.ts +0 -116
  113. package/raystack/assets/v1beta1/resource.ts +0 -149
  114. package/raystack/assets/v1beta1/schema.ts +0 -421
  115. package/raystack/assets/v1beta1/table.ts +0 -408
  116. package/raystack/assets/v1beta1/timestamp.ts +0 -158
  117. package/raystack/assets/v1beta1/topic.ts +0 -253
  118. package/raystack/assets/v1beta1/user.ts +0 -451
  119. package/raystack/assets/v1beta2/application.ts +0 -125
  120. package/raystack/assets/v1beta2/asset.ts +0 -269
  121. package/raystack/assets/v1beta2/bucket.ts +0 -341
  122. package/raystack/assets/v1beta2/common.ts +0 -392
  123. package/raystack/assets/v1beta2/dashboard.ts +0 -393
  124. package/raystack/assets/v1beta2/experiment.ts +0 -274
  125. package/raystack/assets/v1beta2/feature_table.ts +0 -387
  126. package/raystack/assets/v1beta2/group.ts +0 -178
  127. package/raystack/assets/v1beta2/job.ts +0 -99
  128. package/raystack/assets/v1beta2/metric.ts +0 -163
  129. package/raystack/assets/v1beta2/model.ts +0 -519
  130. package/raystack/assets/v1beta2/table.ts +0 -663
  131. package/raystack/assets/v1beta2/topic.ts +0 -275
  132. package/raystack/assets/v1beta2/user.ts +0 -433
  133. package/raystack/common/v1/service.client.ts +0 -37
  134. package/raystack/common/v1/service.ts +0 -245
  135. package/raystack/common/v1/service_connect.ts +0 -26
  136. package/raystack/compass/v1beta1/service.client.ts +0 -594
  137. package/raystack/compass/v1beta1/service.ts +0 -8169
  138. package/raystack/compass/v1beta1/service_connect.ts +0 -407
  139. package/raystack/entropy/v1beta1/module.client.ts +0 -89
  140. package/raystack/entropy/v1beta1/module.ts +0 -692
  141. package/raystack/entropy/v1beta1/module_connect.ts +0 -62
  142. package/raystack/entropy/v1beta1/resource.client.ts +0 -129
  143. package/raystack/entropy/v1beta1/resource.ts +0 -1817
  144. package/raystack/entropy/v1beta1/resource_connect.ts +0 -89
  145. package/raystack/frontier/v1beta1/admin.client.ts +0 -849
  146. package/raystack/frontier/v1beta1/admin.ts +0 -9007
  147. package/raystack/frontier/v1beta1/admin_connect.ts +0 -573
  148. package/raystack/frontier/v1beta1/frontier.client.ts +0 -2307
  149. package/raystack/frontier/v1beta1/frontier.ts +0 -23706
  150. package/raystack/frontier/v1beta1/frontier_connect.ts +0 -1574
  151. package/raystack/frontier/v1beta1/models.ts +0 -7433
  152. package/raystack/guardian/v1beta1/guardian.client.ts +0 -552
  153. package/raystack/guardian/v1beta1/guardian.ts +0 -9688
  154. package/raystack/guardian/v1beta1/guardian_connect.ts +0 -381
  155. package/raystack/optimus/core/v1beta1/backup.client.ts +0 -63
  156. package/raystack/optimus/core/v1beta1/backup.ts +0 -708
  157. package/raystack/optimus/core/v1beta1/backup_connect.ts +0 -44
  158. package/raystack/optimus/core/v1beta1/job_run.client.ts +0 -96
  159. package/raystack/optimus/core/v1beta1/job_run.ts +0 -1008
  160. package/raystack/optimus/core/v1beta1/job_run_connect.ts +0 -63
  161. package/raystack/optimus/core/v1beta1/job_spec.client.ts +0 -363
  162. package/raystack/optimus/core/v1beta1/job_spec.ts +0 -5134
  163. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +0 -233
  164. package/raystack/optimus/core/v1beta1/namespace.client.ts +0 -75
  165. package/raystack/optimus/core/v1beta1/namespace.ts +0 -477
  166. package/raystack/optimus/core/v1beta1/namespace_connect.ts +0 -50
  167. package/raystack/optimus/core/v1beta1/project.client.ts +0 -75
  168. package/raystack/optimus/core/v1beta1/project.ts +0 -520
  169. package/raystack/optimus/core/v1beta1/project_connect.ts +0 -50
  170. package/raystack/optimus/core/v1beta1/replay.client.ts +0 -76
  171. package/raystack/optimus/core/v1beta1/replay.ts +0 -881
  172. package/raystack/optimus/core/v1beta1/replay_connect.ts +0 -53
  173. package/raystack/optimus/core/v1beta1/resource.client.ts +0 -148
  174. package/raystack/optimus/core/v1beta1/resource.ts +0 -1329
  175. package/raystack/optimus/core/v1beta1/resource_connect.ts +0 -96
  176. package/raystack/optimus/core/v1beta1/runtime.client.ts +0 -45
  177. package/raystack/optimus/core/v1beta1/runtime.ts +0 -131
  178. package/raystack/optimus/core/v1beta1/runtime_connect.ts +0 -30
  179. package/raystack/optimus/core/v1beta1/secret.client.ts +0 -92
  180. package/raystack/optimus/core/v1beta1/secret.ts +0 -619
  181. package/raystack/optimus/core/v1beta1/secret_connect.ts +0 -61
  182. package/raystack/optimus/core/v1beta1/status.ts +0 -113
  183. package/raystack/optimus/integration/v1beta1/event.ts +0 -531
  184. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +0 -100
  185. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +0 -950
  186. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +0 -65
  187. package/raystack/predator/v1beta1/metrics_log.ts +0 -457
  188. package/raystack/predator/v1beta1/result_log.ts +0 -390
  189. package/raystack/raccoon/v1beta1/raccoon.client.ts +0 -37
  190. package/raystack/raccoon/v1beta1/raccoon.ts +0 -442
  191. package/raystack/raccoon/v1beta1/raccoon_connect.ts +0 -26
  192. package/raystack/siren/v1beta1/siren.client.ts +0 -479
  193. package/raystack/siren/v1beta1/siren.ts +0 -6507
  194. package/raystack/siren/v1beta1/siren_connect.ts +0 -332
  195. package/raystack/stencil/v1beta1/stencil.client.ts +0 -232
  196. package/raystack/stencil/v1beta1/stencil.ts +0 -2716
  197. package/raystack/stencil/v1beta1/stencil_connect.ts +0 -161
  198. package/validate/validate.ts +0 -4130
@@ -1,663 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "raystack/assets/v1beta2/table.proto" (package "raystack.assets.v1beta2", syntax proto3)
3
- // tslint:disable
4
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
- import { WireType } from "@protobuf-ts/runtime";
7
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
- import type { IBinaryReader } from "@protobuf-ts/runtime";
9
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
- import type { PartialMessage } from "@protobuf-ts/runtime";
11
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
- import { MessageType } from "@protobuf-ts/runtime";
13
- import { Timestamp } from "../../../google/protobuf/timestamp";
14
- import { Struct } from "../../../google/protobuf/struct";
15
- import { ListValue } from "../../../google/protobuf/struct";
16
- /**
17
- * Table is a table in a database.
18
- * It can be a file, a table, a view, a materialized view, a temporary table, or a virtual table.
19
- *
20
- * @generated from protobuf message raystack.assets.v1beta2.Table
21
- */
22
- export interface Table {
23
- /**
24
- * The metrics about the table.
25
- * For example check the profile schem.
26
- *
27
- * @generated from protobuf field: raystack.assets.v1beta2.TableProfile profile = 1
28
- */
29
- profile?: TableProfile;
30
- /**
31
- * The columns of the table.
32
- * Example: 'id', `name`, `age'.
33
- *
34
- * @generated from protobuf field: repeated raystack.assets.v1beta2.Column columns = 2
35
- */
36
- columns: Column[];
37
- /**
38
- * preview_fields of the table.
39
- *
40
- * @generated from protobuf field: repeated string preview_fields = 3
41
- */
42
- previewFields: string[];
43
- /**
44
- * preview_rows is a multidimensional array containing preview of table
45
- *
46
- * @generated from protobuf field: google.protobuf.ListValue preview_rows = 4
47
- */
48
- previewRows?: ListValue;
49
- /**
50
- * List of attributes the model has.
51
- *
52
- * @generated from protobuf field: google.protobuf.Struct attributes = 10
53
- */
54
- attributes?: Struct;
55
- /**
56
- * The timestamp of the table's creation.
57
- *
58
- * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
59
- */
60
- createTime?: Timestamp;
61
- /**
62
- * The timestamp when the table was last modified.
63
- *
64
- * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
65
- */
66
- updateTime?: Timestamp;
67
- }
68
- /**
69
- * TableProfile is the metrics about the table.
70
- *
71
- * @generated from protobuf message raystack.assets.v1beta2.TableProfile
72
- */
73
- export interface TableProfile {
74
- /**
75
- * The number of rows in the table.
76
- * Example: `100`.
77
- *
78
- * @generated from protobuf field: int64 total_rows = 1
79
- */
80
- totalRows: bigint;
81
- /**
82
- * The number of rows in the table that are not deleted.
83
- * Example: `event_timestamp`.
84
- *
85
- * @generated from protobuf field: string partition_key = 2
86
- */
87
- partitionKey: string;
88
- /**
89
- * @generated from protobuf field: string partition_value = 3
90
- */
91
- partitionValue: string;
92
- /**
93
- * The number of how many times table is being used
94
- *
95
- * @generated from protobuf field: int64 usage_count = 4
96
- */
97
- usageCount: bigint;
98
- /**
99
- * The information of `join` applied to the table
100
- *
101
- * @generated from protobuf field: repeated raystack.assets.v1beta2.TableCommonJoin common_joins = 5
102
- */
103
- commonJoins: TableCommonJoin[];
104
- /**
105
- * The information of `filter` applied to the table
106
- *
107
- * @generated from protobuf field: repeated string filters = 6
108
- */
109
- filters: string[];
110
- }
111
- /**
112
- * Join is the metric of which are other tables that are joined with this table
113
- *
114
- * @generated from protobuf message raystack.assets.v1beta2.TableCommonJoin
115
- */
116
- export interface TableCommonJoin {
117
- /**
118
- * @generated from protobuf field: string urn = 1
119
- */
120
- urn: string;
121
- /**
122
- * The number of how many times table is being joined with a certain table urn
123
- *
124
- * @generated from protobuf field: int64 count = 2
125
- */
126
- count: bigint;
127
- /**
128
- * The information of `join conditions` applied to the table
129
- *
130
- * @generated from protobuf field: repeated string conditions = 3
131
- */
132
- conditions: string[];
133
- }
134
- /**
135
- * Column represents a column in a table or a file.
136
- *
137
- * @generated from protobuf message raystack.assets.v1beta2.Column
138
- */
139
- export interface Column {
140
- /**
141
- * The name of the column.
142
- * Example: `customer_id`.
143
- *
144
- * @generated from protobuf field: string name = 1
145
- */
146
- name: string;
147
- /**
148
- * The description of the column.
149
- * Example: `The unique id of the customer`
150
- *
151
- * @generated from protobuf field: string description = 2
152
- */
153
- description: string;
154
- // The data type of the column.
155
- // Example: `INT64`.
156
-
157
- /**
158
- * @generated from protobuf field: string data_type = 3
159
- */
160
- dataType: string;
161
- /**
162
- * The format of the column.
163
- * Example: `true`.
164
- *
165
- * @generated from protobuf field: bool is_nullable = 4
166
- */
167
- isNullable: boolean;
168
- /**
169
- * The length of the column.
170
- * Example: `10`.
171
- *
172
- * @generated from protobuf field: int64 length = 5
173
- */
174
- length: bigint;
175
- /**
176
- * The profile of the column.
177
- *
178
- * @generated from protobuf field: raystack.assets.v1beta2.ColumnProfile profile = 6
179
- */
180
- profile?: ColumnProfile;
181
- /**
182
- * To capture nested columns.
183
- *
184
- * @generated from protobuf field: repeated raystack.assets.v1beta2.Column columns = 7
185
- */
186
- columns: Column[];
187
- /**
188
- * Representation of the column properties.
189
- * Properties facet can be used to set custom properties, tags and labels for a column.
190
- *
191
- * @generated from protobuf field: google.protobuf.Struct attributes = 31
192
- */
193
- attributes?: Struct;
194
- }
195
- /**
196
- * @generated from protobuf message raystack.assets.v1beta2.ColumnProfile
197
- */
198
- export interface ColumnProfile {
199
- /**
200
- * @generated from protobuf field: string min = 1
201
- */
202
- min: string;
203
- /**
204
- * @generated from protobuf field: string max = 2
205
- */
206
- max: string;
207
- /**
208
- * @generated from protobuf field: double avg = 3
209
- */
210
- avg: number;
211
- /**
212
- * @generated from protobuf field: double med = 4
213
- */
214
- med: number;
215
- /**
216
- * @generated from protobuf field: int64 unique = 5
217
- */
218
- unique: bigint;
219
- /**
220
- * @generated from protobuf field: int64 count = 6
221
- */
222
- count: bigint;
223
- /**
224
- * @generated from protobuf field: string top = 7
225
- */
226
- top: string;
227
- }
228
- // @generated message type with reflection information, may provide speed optimized methods
229
- class Table$Type extends MessageType<Table> {
230
- constructor() {
231
- super("raystack.assets.v1beta2.Table", [
232
- { no: 1, name: "profile", kind: "message", T: () => TableProfile },
233
- { no: 2, name: "columns", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Column },
234
- { no: 3, name: "preview_fields", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
235
- { no: 4, name: "preview_rows", kind: "message", T: () => ListValue },
236
- { no: 10, name: "attributes", kind: "message", T: () => Struct },
237
- { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
238
- { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
239
- ]);
240
- }
241
- create(value?: PartialMessage<Table>): Table {
242
- const message = globalThis.Object.create((this.messagePrototype!));
243
- message.columns = [];
244
- message.previewFields = [];
245
- if (value !== undefined)
246
- reflectionMergePartial<Table>(this, message, value);
247
- return message;
248
- }
249
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Table): Table {
250
- let message = target ?? this.create(), end = reader.pos + length;
251
- while (reader.pos < end) {
252
- let [fieldNo, wireType] = reader.tag();
253
- switch (fieldNo) {
254
- case /* raystack.assets.v1beta2.TableProfile profile */ 1:
255
- message.profile = TableProfile.internalBinaryRead(reader, reader.uint32(), options, message.profile);
256
- break;
257
- case /* repeated raystack.assets.v1beta2.Column columns */ 2:
258
- message.columns.push(Column.internalBinaryRead(reader, reader.uint32(), options));
259
- break;
260
- case /* repeated string preview_fields */ 3:
261
- message.previewFields.push(reader.string());
262
- break;
263
- case /* google.protobuf.ListValue preview_rows */ 4:
264
- message.previewRows = ListValue.internalBinaryRead(reader, reader.uint32(), options, message.previewRows);
265
- break;
266
- case /* google.protobuf.Struct attributes */ 10:
267
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
268
- break;
269
- case /* google.protobuf.Timestamp create_time */ 101:
270
- message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
271
- break;
272
- case /* google.protobuf.Timestamp update_time */ 102:
273
- message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
274
- break;
275
- default:
276
- let u = options.readUnknownField;
277
- if (u === "throw")
278
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
279
- let d = reader.skip(wireType);
280
- if (u !== false)
281
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
282
- }
283
- }
284
- return message;
285
- }
286
- internalBinaryWrite(message: Table, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
287
- /* raystack.assets.v1beta2.TableProfile profile = 1; */
288
- if (message.profile)
289
- TableProfile.internalBinaryWrite(message.profile, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
290
- /* repeated raystack.assets.v1beta2.Column columns = 2; */
291
- for (let i = 0; i < message.columns.length; i++)
292
- Column.internalBinaryWrite(message.columns[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
293
- /* repeated string preview_fields = 3; */
294
- for (let i = 0; i < message.previewFields.length; i++)
295
- writer.tag(3, WireType.LengthDelimited).string(message.previewFields[i]);
296
- /* google.protobuf.ListValue preview_rows = 4; */
297
- if (message.previewRows)
298
- ListValue.internalBinaryWrite(message.previewRows, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
299
- /* google.protobuf.Struct attributes = 10; */
300
- if (message.attributes)
301
- Struct.internalBinaryWrite(message.attributes, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
302
- /* google.protobuf.Timestamp create_time = 101; */
303
- if (message.createTime)
304
- Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
305
- /* google.protobuf.Timestamp update_time = 102; */
306
- if (message.updateTime)
307
- Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
308
- let u = options.writeUnknownFields;
309
- if (u !== false)
310
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
311
- return writer;
312
- }
313
- }
314
- /**
315
- * @generated MessageType for protobuf message raystack.assets.v1beta2.Table
316
- */
317
- export const Table = new Table$Type();
318
- // @generated message type with reflection information, may provide speed optimized methods
319
- class TableProfile$Type extends MessageType<TableProfile> {
320
- constructor() {
321
- super("raystack.assets.v1beta2.TableProfile", [
322
- { no: 1, name: "total_rows", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
323
- { no: 2, name: "partition_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
324
- { no: 3, name: "partition_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
325
- { no: 4, name: "usage_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
326
- { no: 5, name: "common_joins", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TableCommonJoin },
327
- { no: 6, name: "filters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
328
- ]);
329
- }
330
- create(value?: PartialMessage<TableProfile>): TableProfile {
331
- const message = globalThis.Object.create((this.messagePrototype!));
332
- message.totalRows = 0n;
333
- message.partitionKey = "";
334
- message.partitionValue = "";
335
- message.usageCount = 0n;
336
- message.commonJoins = [];
337
- message.filters = [];
338
- if (value !== undefined)
339
- reflectionMergePartial<TableProfile>(this, message, value);
340
- return message;
341
- }
342
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableProfile): TableProfile {
343
- let message = target ?? this.create(), end = reader.pos + length;
344
- while (reader.pos < end) {
345
- let [fieldNo, wireType] = reader.tag();
346
- switch (fieldNo) {
347
- case /* int64 total_rows */ 1:
348
- message.totalRows = reader.int64().toBigInt();
349
- break;
350
- case /* string partition_key */ 2:
351
- message.partitionKey = reader.string();
352
- break;
353
- case /* string partition_value */ 3:
354
- message.partitionValue = reader.string();
355
- break;
356
- case /* int64 usage_count */ 4:
357
- message.usageCount = reader.int64().toBigInt();
358
- break;
359
- case /* repeated raystack.assets.v1beta2.TableCommonJoin common_joins */ 5:
360
- message.commonJoins.push(TableCommonJoin.internalBinaryRead(reader, reader.uint32(), options));
361
- break;
362
- case /* repeated string filters */ 6:
363
- message.filters.push(reader.string());
364
- break;
365
- default:
366
- let u = options.readUnknownField;
367
- if (u === "throw")
368
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
369
- let d = reader.skip(wireType);
370
- if (u !== false)
371
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
372
- }
373
- }
374
- return message;
375
- }
376
- internalBinaryWrite(message: TableProfile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
377
- /* int64 total_rows = 1; */
378
- if (message.totalRows !== 0n)
379
- writer.tag(1, WireType.Varint).int64(message.totalRows);
380
- /* string partition_key = 2; */
381
- if (message.partitionKey !== "")
382
- writer.tag(2, WireType.LengthDelimited).string(message.partitionKey);
383
- /* string partition_value = 3; */
384
- if (message.partitionValue !== "")
385
- writer.tag(3, WireType.LengthDelimited).string(message.partitionValue);
386
- /* int64 usage_count = 4; */
387
- if (message.usageCount !== 0n)
388
- writer.tag(4, WireType.Varint).int64(message.usageCount);
389
- /* repeated raystack.assets.v1beta2.TableCommonJoin common_joins = 5; */
390
- for (let i = 0; i < message.commonJoins.length; i++)
391
- TableCommonJoin.internalBinaryWrite(message.commonJoins[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
392
- /* repeated string filters = 6; */
393
- for (let i = 0; i < message.filters.length; i++)
394
- writer.tag(6, WireType.LengthDelimited).string(message.filters[i]);
395
- let u = options.writeUnknownFields;
396
- if (u !== false)
397
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
398
- return writer;
399
- }
400
- }
401
- /**
402
- * @generated MessageType for protobuf message raystack.assets.v1beta2.TableProfile
403
- */
404
- export const TableProfile = new TableProfile$Type();
405
- // @generated message type with reflection information, may provide speed optimized methods
406
- class TableCommonJoin$Type extends MessageType<TableCommonJoin> {
407
- constructor() {
408
- super("raystack.assets.v1beta2.TableCommonJoin", [
409
- { no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
410
- { no: 2, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
411
- { no: 3, name: "conditions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
412
- ]);
413
- }
414
- create(value?: PartialMessage<TableCommonJoin>): TableCommonJoin {
415
- const message = globalThis.Object.create((this.messagePrototype!));
416
- message.urn = "";
417
- message.count = 0n;
418
- message.conditions = [];
419
- if (value !== undefined)
420
- reflectionMergePartial<TableCommonJoin>(this, message, value);
421
- return message;
422
- }
423
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableCommonJoin): TableCommonJoin {
424
- let message = target ?? this.create(), end = reader.pos + length;
425
- while (reader.pos < end) {
426
- let [fieldNo, wireType] = reader.tag();
427
- switch (fieldNo) {
428
- case /* string urn */ 1:
429
- message.urn = reader.string();
430
- break;
431
- case /* int64 count */ 2:
432
- message.count = reader.int64().toBigInt();
433
- break;
434
- case /* repeated string conditions */ 3:
435
- message.conditions.push(reader.string());
436
- break;
437
- default:
438
- let u = options.readUnknownField;
439
- if (u === "throw")
440
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
441
- let d = reader.skip(wireType);
442
- if (u !== false)
443
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
444
- }
445
- }
446
- return message;
447
- }
448
- internalBinaryWrite(message: TableCommonJoin, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
449
- /* string urn = 1; */
450
- if (message.urn !== "")
451
- writer.tag(1, WireType.LengthDelimited).string(message.urn);
452
- /* int64 count = 2; */
453
- if (message.count !== 0n)
454
- writer.tag(2, WireType.Varint).int64(message.count);
455
- /* repeated string conditions = 3; */
456
- for (let i = 0; i < message.conditions.length; i++)
457
- writer.tag(3, WireType.LengthDelimited).string(message.conditions[i]);
458
- let u = options.writeUnknownFields;
459
- if (u !== false)
460
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
461
- return writer;
462
- }
463
- }
464
- /**
465
- * @generated MessageType for protobuf message raystack.assets.v1beta2.TableCommonJoin
466
- */
467
- export const TableCommonJoin = new TableCommonJoin$Type();
468
- // @generated message type with reflection information, may provide speed optimized methods
469
- class Column$Type extends MessageType<Column> {
470
- constructor() {
471
- super("raystack.assets.v1beta2.Column", [
472
- { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
473
- { no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
474
- { no: 3, name: "data_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
475
- { no: 4, name: "is_nullable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
476
- { no: 5, name: "length", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
477
- { no: 6, name: "profile", kind: "message", T: () => ColumnProfile },
478
- { no: 7, name: "columns", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Column },
479
- { no: 31, name: "attributes", kind: "message", T: () => Struct }
480
- ]);
481
- }
482
- create(value?: PartialMessage<Column>): Column {
483
- const message = globalThis.Object.create((this.messagePrototype!));
484
- message.name = "";
485
- message.description = "";
486
- message.dataType = "";
487
- message.isNullable = false;
488
- message.length = 0n;
489
- message.columns = [];
490
- if (value !== undefined)
491
- reflectionMergePartial<Column>(this, message, value);
492
- return message;
493
- }
494
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Column): Column {
495
- let message = target ?? this.create(), end = reader.pos + length;
496
- while (reader.pos < end) {
497
- let [fieldNo, wireType] = reader.tag();
498
- switch (fieldNo) {
499
- case /* string name */ 1:
500
- message.name = reader.string();
501
- break;
502
- case /* string description */ 2:
503
- message.description = reader.string();
504
- break;
505
- case /* string data_type */ 3:
506
- message.dataType = reader.string();
507
- break;
508
- case /* bool is_nullable */ 4:
509
- message.isNullable = reader.bool();
510
- break;
511
- case /* int64 length */ 5:
512
- message.length = reader.int64().toBigInt();
513
- break;
514
- case /* raystack.assets.v1beta2.ColumnProfile profile */ 6:
515
- message.profile = ColumnProfile.internalBinaryRead(reader, reader.uint32(), options, message.profile);
516
- break;
517
- case /* repeated raystack.assets.v1beta2.Column columns */ 7:
518
- message.columns.push(Column.internalBinaryRead(reader, reader.uint32(), options));
519
- break;
520
- case /* google.protobuf.Struct attributes */ 31:
521
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
522
- break;
523
- default:
524
- let u = options.readUnknownField;
525
- if (u === "throw")
526
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
527
- let d = reader.skip(wireType);
528
- if (u !== false)
529
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
530
- }
531
- }
532
- return message;
533
- }
534
- internalBinaryWrite(message: Column, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
535
- /* string name = 1; */
536
- if (message.name !== "")
537
- writer.tag(1, WireType.LengthDelimited).string(message.name);
538
- /* string description = 2; */
539
- if (message.description !== "")
540
- writer.tag(2, WireType.LengthDelimited).string(message.description);
541
- /* string data_type = 3; */
542
- if (message.dataType !== "")
543
- writer.tag(3, WireType.LengthDelimited).string(message.dataType);
544
- /* bool is_nullable = 4; */
545
- if (message.isNullable !== false)
546
- writer.tag(4, WireType.Varint).bool(message.isNullable);
547
- /* int64 length = 5; */
548
- if (message.length !== 0n)
549
- writer.tag(5, WireType.Varint).int64(message.length);
550
- /* raystack.assets.v1beta2.ColumnProfile profile = 6; */
551
- if (message.profile)
552
- ColumnProfile.internalBinaryWrite(message.profile, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
553
- /* repeated raystack.assets.v1beta2.Column columns = 7; */
554
- for (let i = 0; i < message.columns.length; i++)
555
- Column.internalBinaryWrite(message.columns[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
556
- /* google.protobuf.Struct attributes = 31; */
557
- if (message.attributes)
558
- Struct.internalBinaryWrite(message.attributes, writer.tag(31, WireType.LengthDelimited).fork(), options).join();
559
- let u = options.writeUnknownFields;
560
- if (u !== false)
561
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
562
- return writer;
563
- }
564
- }
565
- /**
566
- * @generated MessageType for protobuf message raystack.assets.v1beta2.Column
567
- */
568
- export const Column = new Column$Type();
569
- // @generated message type with reflection information, may provide speed optimized methods
570
- class ColumnProfile$Type extends MessageType<ColumnProfile> {
571
- constructor() {
572
- super("raystack.assets.v1beta2.ColumnProfile", [
573
- { no: 1, name: "min", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
574
- { no: 2, name: "max", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
575
- { no: 3, name: "avg", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
576
- { no: 4, name: "med", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
577
- { no: 5, name: "unique", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
578
- { no: 6, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
579
- { no: 7, name: "top", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
580
- ]);
581
- }
582
- create(value?: PartialMessage<ColumnProfile>): ColumnProfile {
583
- const message = globalThis.Object.create((this.messagePrototype!));
584
- message.min = "";
585
- message.max = "";
586
- message.avg = 0;
587
- message.med = 0;
588
- message.unique = 0n;
589
- message.count = 0n;
590
- message.top = "";
591
- if (value !== undefined)
592
- reflectionMergePartial<ColumnProfile>(this, message, value);
593
- return message;
594
- }
595
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ColumnProfile): ColumnProfile {
596
- let message = target ?? this.create(), end = reader.pos + length;
597
- while (reader.pos < end) {
598
- let [fieldNo, wireType] = reader.tag();
599
- switch (fieldNo) {
600
- case /* string min */ 1:
601
- message.min = reader.string();
602
- break;
603
- case /* string max */ 2:
604
- message.max = reader.string();
605
- break;
606
- case /* double avg */ 3:
607
- message.avg = reader.double();
608
- break;
609
- case /* double med */ 4:
610
- message.med = reader.double();
611
- break;
612
- case /* int64 unique */ 5:
613
- message.unique = reader.int64().toBigInt();
614
- break;
615
- case /* int64 count */ 6:
616
- message.count = reader.int64().toBigInt();
617
- break;
618
- case /* string top */ 7:
619
- message.top = reader.string();
620
- break;
621
- default:
622
- let u = options.readUnknownField;
623
- if (u === "throw")
624
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
625
- let d = reader.skip(wireType);
626
- if (u !== false)
627
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
628
- }
629
- }
630
- return message;
631
- }
632
- internalBinaryWrite(message: ColumnProfile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
633
- /* string min = 1; */
634
- if (message.min !== "")
635
- writer.tag(1, WireType.LengthDelimited).string(message.min);
636
- /* string max = 2; */
637
- if (message.max !== "")
638
- writer.tag(2, WireType.LengthDelimited).string(message.max);
639
- /* double avg = 3; */
640
- if (message.avg !== 0)
641
- writer.tag(3, WireType.Bit64).double(message.avg);
642
- /* double med = 4; */
643
- if (message.med !== 0)
644
- writer.tag(4, WireType.Bit64).double(message.med);
645
- /* int64 unique = 5; */
646
- if (message.unique !== 0n)
647
- writer.tag(5, WireType.Varint).int64(message.unique);
648
- /* int64 count = 6; */
649
- if (message.count !== 0n)
650
- writer.tag(6, WireType.Varint).int64(message.count);
651
- /* string top = 7; */
652
- if (message.top !== "")
653
- writer.tag(7, WireType.LengthDelimited).string(message.top);
654
- let u = options.writeUnknownFields;
655
- if (u !== false)
656
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
657
- return writer;
658
- }
659
- }
660
- /**
661
- * @generated MessageType for protobuf message raystack.assets.v1beta2.ColumnProfile
662
- */
663
- export const ColumnProfile = new ColumnProfile$Type();