@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,408 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "raystack/assets/v1beta1/table.proto" (package "raystack.assets.v1beta1", 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 { Event } from "./event";
14
- import { Timestamp } from "./timestamp";
15
- import { Properties } from "./properties";
16
- import { Lineage } from "./lineage";
17
- import { Ownership } from "./ownership";
18
- import { Preview } from "./preview";
19
- import { Columns } from "./schema";
20
- import { Resource } from "./resource";
21
- /**
22
- * Table is a table in a database.
23
- * It can be a file, a table, a view, a materialized view, a temporary table, or a virtual table.
24
- *
25
- * @generated from protobuf message raystack.assets.v1beta1.Table
26
- */
27
- export interface Table {
28
- /**
29
- * Representation of the resource
30
- *
31
- * @generated from protobuf field: raystack.assets.v1beta1.Resource resource = 1
32
- */
33
- resource?: Resource;
34
- /**
35
- * The metrics about the table.
36
- * For example check the profile schem.
37
- *
38
- * @generated from protobuf field: raystack.assets.v1beta1.TableProfile profile = 21
39
- */
40
- profile?: TableProfile;
41
- /**
42
- * The columns of the table.
43
- * Example: 'id', `name`, `age'.
44
- *
45
- * @generated from protobuf field: raystack.assets.v1beta1.Columns schema = 22
46
- */
47
- schema?: Columns;
48
- /**
49
- * Previews of the table.
50
- * For an example check out preview facet.
51
- *
52
- * @generated from protobuf field: raystack.assets.v1beta1.Preview preview = 23
53
- */
54
- preview?: Preview;
55
- /**
56
- * The ownership of the table.
57
- * For an example check out ownership.
58
- *
59
- * @generated from protobuf field: raystack.assets.v1beta1.Ownership ownership = 31
60
- */
61
- ownership?: Ownership;
62
- /**
63
- * The lineage of the table.
64
- * For an example check out lineage.
65
- *
66
- * @generated from protobuf field: raystack.assets.v1beta1.Lineage lineage = 32
67
- */
68
- lineage?: Lineage;
69
- /**
70
- * List of the user's custom properties.
71
- * Properties facet can be used to set custom properties, tags and labels for a user.
72
- *
73
- * @generated from protobuf field: raystack.assets.v1beta1.Properties properties = 33
74
- */
75
- properties?: Properties;
76
- /**
77
- * The timestamp of the user's creation.
78
- * Timstamp facet can be used to set the creation and updation timestamp of a user.
79
- *
80
- * @generated from protobuf field: raystack.assets.v1beta1.Timestamp timestamps = 34
81
- */
82
- timestamps?: Timestamp;
83
- /**
84
- * The timestamp of the generated event.
85
- * Event schemas is defined in the common event schema.
86
- *
87
- * @generated from protobuf field: raystack.assets.v1beta1.Event event = 100
88
- */
89
- event?: Event;
90
- }
91
- /**
92
- * TableProfile is the metrics about the table.
93
- *
94
- * @generated from protobuf message raystack.assets.v1beta1.TableProfile
95
- */
96
- export interface TableProfile {
97
- /**
98
- * The number of rows in the table.
99
- * Example: `100`.
100
- *
101
- * @generated from protobuf field: int64 total_rows = 1
102
- */
103
- totalRows: bigint;
104
- /**
105
- * The number of rows in the table that are not deleted.
106
- * Example: `event_timestamp`.
107
- *
108
- * @generated from protobuf field: string partition_key = 2
109
- */
110
- partitionKey: string;
111
- /**
112
- * @generated from protobuf field: string partition_value = 3
113
- */
114
- partitionValue: string;
115
- /**
116
- * The number of how many times table is being used
117
- *
118
- * @generated from protobuf field: int64 usage_count = 4
119
- */
120
- usageCount: bigint;
121
- /**
122
- * The information of `join` applied to the table
123
- *
124
- * @generated from protobuf field: repeated raystack.assets.v1beta1.Join joins = 5
125
- */
126
- joins: Join[];
127
- /**
128
- * The information of `filter` applied to the table
129
- *
130
- * @generated from protobuf field: repeated string filters = 6
131
- */
132
- filters: string[];
133
- }
134
- /**
135
- * Join is the metric of which are other tables that are joined with this table
136
- *
137
- * @generated from protobuf message raystack.assets.v1beta1.Join
138
- */
139
- export interface Join {
140
- /**
141
- * @generated from protobuf field: string urn = 1
142
- */
143
- urn: string;
144
- /**
145
- * The number of how many times table is being joined with a certain table urn
146
- *
147
- * @generated from protobuf field: int64 count = 2
148
- */
149
- count: bigint;
150
- /**
151
- * The information of `join conditions` applied to the table
152
- *
153
- * @generated from protobuf field: repeated string conditions = 3
154
- */
155
- conditions: string[];
156
- }
157
- // @generated message type with reflection information, may provide speed optimized methods
158
- class Table$Type extends MessageType<Table> {
159
- constructor() {
160
- super("raystack.assets.v1beta1.Table", [
161
- { no: 1, name: "resource", kind: "message", T: () => Resource },
162
- { no: 21, name: "profile", kind: "message", T: () => TableProfile },
163
- { no: 22, name: "schema", kind: "message", T: () => Columns },
164
- { no: 23, name: "preview", kind: "message", T: () => Preview },
165
- { no: 31, name: "ownership", kind: "message", T: () => Ownership },
166
- { no: 32, name: "lineage", kind: "message", T: () => Lineage },
167
- { no: 33, name: "properties", kind: "message", T: () => Properties },
168
- { no: 34, name: "timestamps", kind: "message", T: () => Timestamp },
169
- { no: 100, name: "event", kind: "message", T: () => Event }
170
- ]);
171
- }
172
- create(value?: PartialMessage<Table>): Table {
173
- const message = globalThis.Object.create((this.messagePrototype!));
174
- if (value !== undefined)
175
- reflectionMergePartial<Table>(this, message, value);
176
- return message;
177
- }
178
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Table): Table {
179
- let message = target ?? this.create(), end = reader.pos + length;
180
- while (reader.pos < end) {
181
- let [fieldNo, wireType] = reader.tag();
182
- switch (fieldNo) {
183
- case /* raystack.assets.v1beta1.Resource resource */ 1:
184
- message.resource = Resource.internalBinaryRead(reader, reader.uint32(), options, message.resource);
185
- break;
186
- case /* raystack.assets.v1beta1.TableProfile profile */ 21:
187
- message.profile = TableProfile.internalBinaryRead(reader, reader.uint32(), options, message.profile);
188
- break;
189
- case /* raystack.assets.v1beta1.Columns schema */ 22:
190
- message.schema = Columns.internalBinaryRead(reader, reader.uint32(), options, message.schema);
191
- break;
192
- case /* raystack.assets.v1beta1.Preview preview */ 23:
193
- message.preview = Preview.internalBinaryRead(reader, reader.uint32(), options, message.preview);
194
- break;
195
- case /* raystack.assets.v1beta1.Ownership ownership */ 31:
196
- message.ownership = Ownership.internalBinaryRead(reader, reader.uint32(), options, message.ownership);
197
- break;
198
- case /* raystack.assets.v1beta1.Lineage lineage */ 32:
199
- message.lineage = Lineage.internalBinaryRead(reader, reader.uint32(), options, message.lineage);
200
- break;
201
- case /* raystack.assets.v1beta1.Properties properties */ 33:
202
- message.properties = Properties.internalBinaryRead(reader, reader.uint32(), options, message.properties);
203
- break;
204
- case /* raystack.assets.v1beta1.Timestamp timestamps */ 34:
205
- message.timestamps = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamps);
206
- break;
207
- case /* raystack.assets.v1beta1.Event event */ 100:
208
- message.event = Event.internalBinaryRead(reader, reader.uint32(), options, message.event);
209
- break;
210
- default:
211
- let u = options.readUnknownField;
212
- if (u === "throw")
213
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
214
- let d = reader.skip(wireType);
215
- if (u !== false)
216
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
217
- }
218
- }
219
- return message;
220
- }
221
- internalBinaryWrite(message: Table, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
222
- /* raystack.assets.v1beta1.Resource resource = 1; */
223
- if (message.resource)
224
- Resource.internalBinaryWrite(message.resource, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
225
- /* raystack.assets.v1beta1.TableProfile profile = 21; */
226
- if (message.profile)
227
- TableProfile.internalBinaryWrite(message.profile, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
228
- /* raystack.assets.v1beta1.Columns schema = 22; */
229
- if (message.schema)
230
- Columns.internalBinaryWrite(message.schema, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
231
- /* raystack.assets.v1beta1.Preview preview = 23; */
232
- if (message.preview)
233
- Preview.internalBinaryWrite(message.preview, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
234
- /* raystack.assets.v1beta1.Ownership ownership = 31; */
235
- if (message.ownership)
236
- Ownership.internalBinaryWrite(message.ownership, writer.tag(31, WireType.LengthDelimited).fork(), options).join();
237
- /* raystack.assets.v1beta1.Lineage lineage = 32; */
238
- if (message.lineage)
239
- Lineage.internalBinaryWrite(message.lineage, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
240
- /* raystack.assets.v1beta1.Properties properties = 33; */
241
- if (message.properties)
242
- Properties.internalBinaryWrite(message.properties, writer.tag(33, WireType.LengthDelimited).fork(), options).join();
243
- /* raystack.assets.v1beta1.Timestamp timestamps = 34; */
244
- if (message.timestamps)
245
- Timestamp.internalBinaryWrite(message.timestamps, writer.tag(34, WireType.LengthDelimited).fork(), options).join();
246
- /* raystack.assets.v1beta1.Event event = 100; */
247
- if (message.event)
248
- Event.internalBinaryWrite(message.event, writer.tag(100, WireType.LengthDelimited).fork(), options).join();
249
- let u = options.writeUnknownFields;
250
- if (u !== false)
251
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
252
- return writer;
253
- }
254
- }
255
- /**
256
- * @generated MessageType for protobuf message raystack.assets.v1beta1.Table
257
- */
258
- export const Table = new Table$Type();
259
- // @generated message type with reflection information, may provide speed optimized methods
260
- class TableProfile$Type extends MessageType<TableProfile> {
261
- constructor() {
262
- super("raystack.assets.v1beta1.TableProfile", [
263
- { no: 1, name: "total_rows", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
264
- { no: 2, name: "partition_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
265
- { no: 3, name: "partition_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
266
- { no: 4, name: "usage_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
267
- { no: 5, name: "joins", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Join },
268
- { no: 6, name: "filters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
269
- ]);
270
- }
271
- create(value?: PartialMessage<TableProfile>): TableProfile {
272
- const message = globalThis.Object.create((this.messagePrototype!));
273
- message.totalRows = 0n;
274
- message.partitionKey = "";
275
- message.partitionValue = "";
276
- message.usageCount = 0n;
277
- message.joins = [];
278
- message.filters = [];
279
- if (value !== undefined)
280
- reflectionMergePartial<TableProfile>(this, message, value);
281
- return message;
282
- }
283
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableProfile): TableProfile {
284
- let message = target ?? this.create(), end = reader.pos + length;
285
- while (reader.pos < end) {
286
- let [fieldNo, wireType] = reader.tag();
287
- switch (fieldNo) {
288
- case /* int64 total_rows */ 1:
289
- message.totalRows = reader.int64().toBigInt();
290
- break;
291
- case /* string partition_key */ 2:
292
- message.partitionKey = reader.string();
293
- break;
294
- case /* string partition_value */ 3:
295
- message.partitionValue = reader.string();
296
- break;
297
- case /* int64 usage_count */ 4:
298
- message.usageCount = reader.int64().toBigInt();
299
- break;
300
- case /* repeated raystack.assets.v1beta1.Join joins */ 5:
301
- message.joins.push(Join.internalBinaryRead(reader, reader.uint32(), options));
302
- break;
303
- case /* repeated string filters */ 6:
304
- message.filters.push(reader.string());
305
- break;
306
- default:
307
- let u = options.readUnknownField;
308
- if (u === "throw")
309
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
310
- let d = reader.skip(wireType);
311
- if (u !== false)
312
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
313
- }
314
- }
315
- return message;
316
- }
317
- internalBinaryWrite(message: TableProfile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
318
- /* int64 total_rows = 1; */
319
- if (message.totalRows !== 0n)
320
- writer.tag(1, WireType.Varint).int64(message.totalRows);
321
- /* string partition_key = 2; */
322
- if (message.partitionKey !== "")
323
- writer.tag(2, WireType.LengthDelimited).string(message.partitionKey);
324
- /* string partition_value = 3; */
325
- if (message.partitionValue !== "")
326
- writer.tag(3, WireType.LengthDelimited).string(message.partitionValue);
327
- /* int64 usage_count = 4; */
328
- if (message.usageCount !== 0n)
329
- writer.tag(4, WireType.Varint).int64(message.usageCount);
330
- /* repeated raystack.assets.v1beta1.Join joins = 5; */
331
- for (let i = 0; i < message.joins.length; i++)
332
- Join.internalBinaryWrite(message.joins[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
333
- /* repeated string filters = 6; */
334
- for (let i = 0; i < message.filters.length; i++)
335
- writer.tag(6, WireType.LengthDelimited).string(message.filters[i]);
336
- let u = options.writeUnknownFields;
337
- if (u !== false)
338
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
339
- return writer;
340
- }
341
- }
342
- /**
343
- * @generated MessageType for protobuf message raystack.assets.v1beta1.TableProfile
344
- */
345
- export const TableProfile = new TableProfile$Type();
346
- // @generated message type with reflection information, may provide speed optimized methods
347
- class Join$Type extends MessageType<Join> {
348
- constructor() {
349
- super("raystack.assets.v1beta1.Join", [
350
- { no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
351
- { no: 2, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
352
- { no: 3, name: "conditions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
353
- ]);
354
- }
355
- create(value?: PartialMessage<Join>): Join {
356
- const message = globalThis.Object.create((this.messagePrototype!));
357
- message.urn = "";
358
- message.count = 0n;
359
- message.conditions = [];
360
- if (value !== undefined)
361
- reflectionMergePartial<Join>(this, message, value);
362
- return message;
363
- }
364
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Join): Join {
365
- let message = target ?? this.create(), end = reader.pos + length;
366
- while (reader.pos < end) {
367
- let [fieldNo, wireType] = reader.tag();
368
- switch (fieldNo) {
369
- case /* string urn */ 1:
370
- message.urn = reader.string();
371
- break;
372
- case /* int64 count */ 2:
373
- message.count = reader.int64().toBigInt();
374
- break;
375
- case /* repeated string conditions */ 3:
376
- message.conditions.push(reader.string());
377
- break;
378
- default:
379
- let u = options.readUnknownField;
380
- if (u === "throw")
381
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
382
- let d = reader.skip(wireType);
383
- if (u !== false)
384
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
385
- }
386
- }
387
- return message;
388
- }
389
- internalBinaryWrite(message: Join, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
390
- /* string urn = 1; */
391
- if (message.urn !== "")
392
- writer.tag(1, WireType.LengthDelimited).string(message.urn);
393
- /* int64 count = 2; */
394
- if (message.count !== 0n)
395
- writer.tag(2, WireType.Varint).int64(message.count);
396
- /* repeated string conditions = 3; */
397
- for (let i = 0; i < message.conditions.length; i++)
398
- writer.tag(3, WireType.LengthDelimited).string(message.conditions[i]);
399
- let u = options.writeUnknownFields;
400
- if (u !== false)
401
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
402
- return writer;
403
- }
404
- }
405
- /**
406
- * @generated MessageType for protobuf message raystack.assets.v1beta1.Join
407
- */
408
- export const Join = new Join$Type();
@@ -1,158 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "raystack/assets/v1beta1/timestamp.proto" (package "raystack.assets.v1beta1", 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 as Timestamp$ } from "../../../google/protobuf/timestamp";
14
- /**
15
- * Timestamp represents created and modified timestamps.
16
- *
17
- * @generated from protobuf message raystack.assets.v1beta1.Timestamp
18
- */
19
- export interface Timestamp {
20
- /**
21
- * The timestamp when the object was created.
22
- *
23
- * @generated from protobuf field: google.protobuf.Timestamp create_time = 1
24
- */
25
- createTime?: Timestamp$;
26
- /**
27
- * The timestamp when the object was last modified.
28
- *
29
- * @generated from protobuf field: google.protobuf.Timestamp update_time = 2
30
- */
31
- updateTime?: Timestamp$;
32
- }
33
- /**
34
- * A time window specified by its `start_time` and `end_time`.
35
- *
36
- * @generated from protobuf message raystack.assets.v1beta1.TimeWindow
37
- */
38
- export interface TimeWindow {
39
- /**
40
- * Start time of the time window (exclusive).
41
- *
42
- * @generated from protobuf field: google.protobuf.Timestamp start_time = 1
43
- */
44
- startTime?: Timestamp$;
45
- /**
46
- * End time of the time window (inclusive). If not specified, the current
47
- * timestamp is used instead.
48
- *
49
- * @generated from protobuf field: google.protobuf.Timestamp end_time = 2
50
- */
51
- endTime?: Timestamp$;
52
- }
53
- // @generated message type with reflection information, may provide speed optimized methods
54
- class Timestamp$Type extends MessageType<Timestamp> {
55
- constructor() {
56
- super("raystack.assets.v1beta1.Timestamp", [
57
- { no: 1, name: "create_time", kind: "message", T: () => Timestamp$ },
58
- { no: 2, name: "update_time", kind: "message", T: () => Timestamp$ }
59
- ]);
60
- }
61
- create(value?: PartialMessage<Timestamp>): Timestamp {
62
- const message = globalThis.Object.create((this.messagePrototype!));
63
- if (value !== undefined)
64
- reflectionMergePartial<Timestamp>(this, message, value);
65
- return message;
66
- }
67
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp {
68
- let message = target ?? this.create(), end = reader.pos + length;
69
- while (reader.pos < end) {
70
- let [fieldNo, wireType] = reader.tag();
71
- switch (fieldNo) {
72
- case /* google.protobuf.Timestamp create_time */ 1:
73
- message.createTime = Timestamp$.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
74
- break;
75
- case /* google.protobuf.Timestamp update_time */ 2:
76
- message.updateTime = Timestamp$.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
77
- break;
78
- default:
79
- let u = options.readUnknownField;
80
- if (u === "throw")
81
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
82
- let d = reader.skip(wireType);
83
- if (u !== false)
84
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
85
- }
86
- }
87
- return message;
88
- }
89
- internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
90
- /* google.protobuf.Timestamp create_time = 1; */
91
- if (message.createTime)
92
- Timestamp$.internalBinaryWrite(message.createTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
93
- /* google.protobuf.Timestamp update_time = 2; */
94
- if (message.updateTime)
95
- Timestamp$.internalBinaryWrite(message.updateTime, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
96
- let u = options.writeUnknownFields;
97
- if (u !== false)
98
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
99
- return writer;
100
- }
101
- }
102
- /**
103
- * @generated MessageType for protobuf message raystack.assets.v1beta1.Timestamp
104
- */
105
- export const Timestamp = new Timestamp$Type();
106
- // @generated message type with reflection information, may provide speed optimized methods
107
- class TimeWindow$Type extends MessageType<TimeWindow> {
108
- constructor() {
109
- super("raystack.assets.v1beta1.TimeWindow", [
110
- { no: 1, name: "start_time", kind: "message", T: () => Timestamp$ },
111
- { no: 2, name: "end_time", kind: "message", T: () => Timestamp$ }
112
- ]);
113
- }
114
- create(value?: PartialMessage<TimeWindow>): TimeWindow {
115
- const message = globalThis.Object.create((this.messagePrototype!));
116
- if (value !== undefined)
117
- reflectionMergePartial<TimeWindow>(this, message, value);
118
- return message;
119
- }
120
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimeWindow): TimeWindow {
121
- let message = target ?? this.create(), end = reader.pos + length;
122
- while (reader.pos < end) {
123
- let [fieldNo, wireType] = reader.tag();
124
- switch (fieldNo) {
125
- case /* google.protobuf.Timestamp start_time */ 1:
126
- message.startTime = Timestamp$.internalBinaryRead(reader, reader.uint32(), options, message.startTime);
127
- break;
128
- case /* google.protobuf.Timestamp end_time */ 2:
129
- message.endTime = Timestamp$.internalBinaryRead(reader, reader.uint32(), options, message.endTime);
130
- break;
131
- default:
132
- let u = options.readUnknownField;
133
- if (u === "throw")
134
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
135
- let d = reader.skip(wireType);
136
- if (u !== false)
137
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
138
- }
139
- }
140
- return message;
141
- }
142
- internalBinaryWrite(message: TimeWindow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
143
- /* google.protobuf.Timestamp start_time = 1; */
144
- if (message.startTime)
145
- Timestamp$.internalBinaryWrite(message.startTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
146
- /* google.protobuf.Timestamp end_time = 2; */
147
- if (message.endTime)
148
- Timestamp$.internalBinaryWrite(message.endTime, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
149
- let u = options.writeUnknownFields;
150
- if (u !== false)
151
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
152
- return writer;
153
- }
154
- }
155
- /**
156
- * @generated MessageType for protobuf message raystack.assets.v1beta1.TimeWindow
157
- */
158
- export const TimeWindow = new TimeWindow$Type();