@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6
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.
- package/google/api/annotations_pb.ts +33 -0
- package/google/api/field_behavior.ts +95 -0
- package/google/api/field_behavior_pb.ts +139 -0
- package/google/api/http.ts +695 -0
- package/google/api/http_pb.ts +547 -0
- package/google/api/httpbody.ts +159 -0
- package/google/api/httpbody_pb.ts +122 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/struct.ts +484 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/google/protobuf/wrappers.ts +752 -0
- package/package.json +47 -0
- package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
- package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
- package/raystack/assets/index.ts +29 -0
- package/raystack/assets/v1beta1/bucket.ts +362 -0
- package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
- package/raystack/assets/v1beta1/dashboard.ts +426 -0
- package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
- package/raystack/assets/v1beta1/event.ts +105 -0
- package/raystack/assets/v1beta1/event_pb.ts +70 -0
- package/raystack/assets/v1beta1/group.ts +223 -0
- package/raystack/assets/v1beta1/group_pb.ts +149 -0
- package/raystack/assets/v1beta1/job.ts +147 -0
- package/raystack/assets/v1beta1/job_pb.ts +100 -0
- package/raystack/assets/v1beta1/lineage.ts +90 -0
- package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
- package/raystack/assets/v1beta1/ownership.ts +179 -0
- package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
- package/raystack/assets/v1beta1/preview.ts +87 -0
- package/raystack/assets/v1beta1/preview_pb.ts +58 -0
- package/raystack/assets/v1beta1/properties.ts +116 -0
- package/raystack/assets/v1beta1/properties_pb.ts +63 -0
- package/raystack/assets/v1beta1/resource.ts +149 -0
- package/raystack/assets/v1beta1/resource_pb.ts +96 -0
- package/raystack/assets/v1beta1/schema.ts +421 -0
- package/raystack/assets/v1beta1/schema_pb.ts +262 -0
- package/raystack/assets/v1beta1/table.ts +408 -0
- package/raystack/assets/v1beta1/table_pb.ts +266 -0
- package/raystack/assets/v1beta1/timestamp.ts +158 -0
- package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
- package/raystack/assets/v1beta1/topic.ts +253 -0
- package/raystack/assets/v1beta1/topic_pb.ts +171 -0
- package/raystack/assets/v1beta1/user.ts +451 -0
- package/raystack/assets/v1beta1/user_pb.ts +292 -0
- package/raystack/assets/v1beta2/application.ts +125 -0
- package/raystack/assets/v1beta2/application_pb.ts +79 -0
- package/raystack/assets/v1beta2/asset.ts +269 -0
- package/raystack/assets/v1beta2/asset_pb.ts +157 -0
- package/raystack/assets/v1beta2/bucket.ts +341 -0
- package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
- package/raystack/assets/v1beta2/common.ts +392 -0
- package/raystack/assets/v1beta2/common_pb.ts +258 -0
- package/raystack/assets/v1beta2/dashboard.ts +393 -0
- package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
- package/raystack/assets/v1beta2/experiment.ts +274 -0
- package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
- package/raystack/assets/v1beta2/feature_table.ts +387 -0
- package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
- package/raystack/assets/v1beta2/group.ts +178 -0
- package/raystack/assets/v1beta2/group_pb.ts +118 -0
- package/raystack/assets/v1beta2/job.ts +99 -0
- package/raystack/assets/v1beta2/job_pb.ts +65 -0
- package/raystack/assets/v1beta2/metric.ts +163 -0
- package/raystack/assets/v1beta2/metric_pb.ts +105 -0
- package/raystack/assets/v1beta2/model.ts +519 -0
- package/raystack/assets/v1beta2/model_pb.ts +322 -0
- package/raystack/assets/v1beta2/table.ts +663 -0
- package/raystack/assets/v1beta2/table_pb.ts +409 -0
- package/raystack/assets/v1beta2/topic.ts +275 -0
- package/raystack/assets/v1beta2/topic_pb.ts +181 -0
- package/raystack/assets/v1beta2/user.ts +433 -0
- package/raystack/assets/v1beta2/user_pb.ts +277 -0
- package/raystack/common/index.ts +3 -0
- package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
- package/raystack/common/v1/service.client.ts +37 -0
- package/raystack/common/v1/service.ts +245 -0
- package/raystack/common/v1/service_connect.ts +26 -0
- package/raystack/common/v1/service_pb.ts +149 -0
- package/raystack/compass/index.ts +3 -0
- package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
- package/raystack/compass/v1beta1/service.client.ts +594 -0
- package/raystack/compass/v1beta1/service.ts +8169 -0
- package/raystack/compass/v1beta1/service_connect.ts +407 -0
- package/raystack/compass/v1beta1/service_pb.ts +4975 -0
- package/raystack/entropy/index.ts +6 -0
- package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
- package/raystack/entropy/v1beta1/module.client.ts +89 -0
- package/raystack/entropy/v1beta1/module.ts +692 -0
- package/raystack/entropy/v1beta1/module_connect.ts +62 -0
- package/raystack/entropy/v1beta1/module_pb.ts +445 -0
- package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
- package/raystack/entropy/v1beta1/resource.client.ts +129 -0
- package/raystack/entropy/v1beta1/resource.ts +1817 -0
- package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
- package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
- package/raystack/frontier/index.ts +7 -0
- package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
- package/raystack/frontier/v1beta1/admin.client.ts +849 -0
- package/raystack/frontier/v1beta1/admin.ts +9007 -0
- package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
- package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
- package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
- package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
- package/raystack/frontier/v1beta1/frontier.ts +23706 -0
- package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
- package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
- package/raystack/frontier/v1beta1/models.ts +7433 -0
- package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
- package/raystack/guardian/index.ts +3 -0
- package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
- package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
- package/raystack/guardian/v1beta1/guardian.ts +9688 -0
- package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
- package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
- package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
- package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
- package/raystack/optimus/core/v1beta1/backup.ts +708 -0
- package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
- package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
- package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
- package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
- package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
- package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
- package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
- package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
- package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
- package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
- package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
- package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
- package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
- package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/project.ts +520 -0
- package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
- package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
- package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
- package/raystack/optimus/core/v1beta1/replay.ts +881 -0
- package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
- package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
- package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
- package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
- package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
- package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
- package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
- package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
- package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
- package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
- package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
- package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
- package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
- package/raystack/optimus/core/v1beta1/secret.ts +619 -0
- package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
- package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
- package/raystack/optimus/core/v1beta1/status.ts +113 -0
- package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
- package/raystack/optimus/integration/v1beta1/event.ts +531 -0
- package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
- package/raystack/predator/index.ts +2 -0
- package/raystack/predator/v1beta1/metrics_log.ts +457 -0
- package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
- package/raystack/predator/v1beta1/result_log.ts +390 -0
- package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
- package/raystack/raccoon/index.ts +3 -0
- package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
- package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
- package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
- package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
- package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
- package/raystack/siren/index.ts +3 -0
- package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
- package/raystack/siren/v1beta1/siren.client.ts +479 -0
- package/raystack/siren/v1beta1/siren.ts +6507 -0
- package/raystack/siren/v1beta1/siren_connect.ts +332 -0
- package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
- package/raystack/stencil/index.ts +3 -0
- package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
- package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
- package/raystack/stencil/v1beta1/stencil.ts +2716 -0
- package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
- package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
- package/validate/validate.ts +4130 -0
- package/validate/validate_pb.ts +2621 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta1/resource.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
|
+
/**
|
|
14
|
+
* Resource is a generic resource that represents a file or other resource.
|
|
15
|
+
* It can be a table, job, user or group.
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf message raystack.assets.v1beta1.Resource
|
|
18
|
+
*/
|
|
19
|
+
export interface Resource {
|
|
20
|
+
/**
|
|
21
|
+
* The unique identifier of the resource.
|
|
22
|
+
* Example: `user:jdoe` or `group:accounting`.
|
|
23
|
+
*
|
|
24
|
+
* @generated from protobuf field: string urn = 1
|
|
25
|
+
*/
|
|
26
|
+
urn: string;
|
|
27
|
+
/**
|
|
28
|
+
* The name of the resource.
|
|
29
|
+
* Example: `John Doe` or `Accounting`.
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf field: string name = 2
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The source of the resource.
|
|
36
|
+
* Example: `github` or `bigquery`.
|
|
37
|
+
*
|
|
38
|
+
* @generated from protobuf field: string service = 3
|
|
39
|
+
*/
|
|
40
|
+
service: string;
|
|
41
|
+
/**
|
|
42
|
+
* The type of the asset.
|
|
43
|
+
* Example: `user` or `group`.
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf field: string type = 4
|
|
46
|
+
*/
|
|
47
|
+
type: string;
|
|
48
|
+
/**
|
|
49
|
+
* The REST URL for accessing the resource. URL returns the resource itself.
|
|
50
|
+
* Example: `https://xyz.com/v1/users/user-123`
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf field: string url = 5
|
|
53
|
+
*/
|
|
54
|
+
url: string;
|
|
55
|
+
/**
|
|
56
|
+
* The description of the resource.
|
|
57
|
+
* Example: `This resource is being used for storing important number`
|
|
58
|
+
*
|
|
59
|
+
* @generated from protobuf field: string description = 6
|
|
60
|
+
*/
|
|
61
|
+
description: string;
|
|
62
|
+
}
|
|
63
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
64
|
+
class Resource$Type extends MessageType<Resource> {
|
|
65
|
+
constructor() {
|
|
66
|
+
super("raystack.assets.v1beta1.Resource", [
|
|
67
|
+
{ no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
68
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
69
|
+
{ no: 3, name: "service", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
70
|
+
{ no: 4, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
71
|
+
{ no: 5, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
72
|
+
{ no: 6, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
73
|
+
]);
|
|
74
|
+
}
|
|
75
|
+
create(value?: PartialMessage<Resource>): Resource {
|
|
76
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
77
|
+
message.urn = "";
|
|
78
|
+
message.name = "";
|
|
79
|
+
message.service = "";
|
|
80
|
+
message.type = "";
|
|
81
|
+
message.url = "";
|
|
82
|
+
message.description = "";
|
|
83
|
+
if (value !== undefined)
|
|
84
|
+
reflectionMergePartial<Resource>(this, message, value);
|
|
85
|
+
return message;
|
|
86
|
+
}
|
|
87
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource): Resource {
|
|
88
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
89
|
+
while (reader.pos < end) {
|
|
90
|
+
let [fieldNo, wireType] = reader.tag();
|
|
91
|
+
switch (fieldNo) {
|
|
92
|
+
case /* string urn */ 1:
|
|
93
|
+
message.urn = reader.string();
|
|
94
|
+
break;
|
|
95
|
+
case /* string name */ 2:
|
|
96
|
+
message.name = reader.string();
|
|
97
|
+
break;
|
|
98
|
+
case /* string service */ 3:
|
|
99
|
+
message.service = reader.string();
|
|
100
|
+
break;
|
|
101
|
+
case /* string type */ 4:
|
|
102
|
+
message.type = reader.string();
|
|
103
|
+
break;
|
|
104
|
+
case /* string url */ 5:
|
|
105
|
+
message.url = reader.string();
|
|
106
|
+
break;
|
|
107
|
+
case /* string description */ 6:
|
|
108
|
+
message.description = reader.string();
|
|
109
|
+
break;
|
|
110
|
+
default:
|
|
111
|
+
let u = options.readUnknownField;
|
|
112
|
+
if (u === "throw")
|
|
113
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
114
|
+
let d = reader.skip(wireType);
|
|
115
|
+
if (u !== false)
|
|
116
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return message;
|
|
120
|
+
}
|
|
121
|
+
internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
122
|
+
/* string urn = 1; */
|
|
123
|
+
if (message.urn !== "")
|
|
124
|
+
writer.tag(1, WireType.LengthDelimited).string(message.urn);
|
|
125
|
+
/* string name = 2; */
|
|
126
|
+
if (message.name !== "")
|
|
127
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
128
|
+
/* string service = 3; */
|
|
129
|
+
if (message.service !== "")
|
|
130
|
+
writer.tag(3, WireType.LengthDelimited).string(message.service);
|
|
131
|
+
/* string type = 4; */
|
|
132
|
+
if (message.type !== "")
|
|
133
|
+
writer.tag(4, WireType.LengthDelimited).string(message.type);
|
|
134
|
+
/* string url = 5; */
|
|
135
|
+
if (message.url !== "")
|
|
136
|
+
writer.tag(5, WireType.LengthDelimited).string(message.url);
|
|
137
|
+
/* string description = 6; */
|
|
138
|
+
if (message.description !== "")
|
|
139
|
+
writer.tag(6, WireType.LengthDelimited).string(message.description);
|
|
140
|
+
let u = options.writeUnknownFields;
|
|
141
|
+
if (u !== false)
|
|
142
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
143
|
+
return writer;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta1.Resource
|
|
148
|
+
*/
|
|
149
|
+
export const Resource = new Resource$Type();
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/assets/v1beta1/resource.proto (package raystack.assets.v1beta1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Resource is a generic resource that represents a file or other resource.
|
|
11
|
+
* It can be a table, job, user or group.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message raystack.assets.v1beta1.Resource
|
|
14
|
+
*/
|
|
15
|
+
export class Resource extends Message<Resource> {
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier of the resource.
|
|
18
|
+
* Example: `user:jdoe` or `group:accounting`.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: string urn = 1;
|
|
21
|
+
*/
|
|
22
|
+
urn = "";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The name of the resource.
|
|
26
|
+
* Example: `John Doe` or `Accounting`.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string name = 2;
|
|
29
|
+
*/
|
|
30
|
+
name = "";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The source of the resource.
|
|
34
|
+
* Example: `github` or `bigquery`.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string service = 3;
|
|
37
|
+
*/
|
|
38
|
+
service = "";
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The type of the asset.
|
|
42
|
+
* Example: `user` or `group`.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: string type = 4;
|
|
45
|
+
*/
|
|
46
|
+
type = "";
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The REST URL for accessing the resource. URL returns the resource itself.
|
|
50
|
+
* Example: `https://xyz.com/v1/users/user-123`
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: string url = 5;
|
|
53
|
+
*/
|
|
54
|
+
url = "";
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The description of the resource.
|
|
58
|
+
* Example: `This resource is being used for storing important number`
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: string description = 6;
|
|
61
|
+
*/
|
|
62
|
+
description = "";
|
|
63
|
+
|
|
64
|
+
constructor(data?: PartialMessage<Resource>) {
|
|
65
|
+
super();
|
|
66
|
+
proto3.util.initPartial(data, this);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
70
|
+
static readonly typeName = "raystack.assets.v1beta1.Resource";
|
|
71
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
72
|
+
{ no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
+
{ no: 3, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
76
|
+
{ no: 5, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
77
|
+
{ no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
78
|
+
]);
|
|
79
|
+
|
|
80
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Resource {
|
|
81
|
+
return new Resource().fromBinary(bytes, options);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Resource {
|
|
85
|
+
return new Resource().fromJson(jsonValue, options);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Resource {
|
|
89
|
+
return new Resource().fromJsonString(jsonString, options);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static equals(a: Resource | PlainMessage<Resource> | undefined, b: Resource | PlainMessage<Resource> | undefined): boolean {
|
|
93
|
+
return proto3.util.equals(Resource, a, b);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta1/schema.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 { Properties } from "./properties";
|
|
14
|
+
/**
|
|
15
|
+
* Columns represents a list of columns.
|
|
16
|
+
* It is facet used to specify the schema of a table or a file.
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf message raystack.assets.v1beta1.Columns
|
|
19
|
+
*/
|
|
20
|
+
export interface Columns {
|
|
21
|
+
/**
|
|
22
|
+
* The list of columns.
|
|
23
|
+
*
|
|
24
|
+
* @generated from protobuf field: repeated raystack.assets.v1beta1.Column columns = 1
|
|
25
|
+
*/
|
|
26
|
+
columns: Column[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Column represents a column in a table or a file.
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf message raystack.assets.v1beta1.Column
|
|
32
|
+
*/
|
|
33
|
+
export interface Column {
|
|
34
|
+
/**
|
|
35
|
+
* The name of the column.
|
|
36
|
+
* Example: `customer_id`.
|
|
37
|
+
*
|
|
38
|
+
* @generated from protobuf field: string name = 1
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
* The description of the column.
|
|
43
|
+
* Example: `The unique id of the customer`
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf field: string description = 2
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
// The data type of the column.
|
|
49
|
+
// Example: `INT64`.
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf field: string data_type = 3
|
|
53
|
+
*/
|
|
54
|
+
dataType: string;
|
|
55
|
+
/**
|
|
56
|
+
* The format of the column.
|
|
57
|
+
* Example: `true`.
|
|
58
|
+
*
|
|
59
|
+
* @generated from protobuf field: bool is_nullable = 4
|
|
60
|
+
*/
|
|
61
|
+
isNullable: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The length of the column.
|
|
64
|
+
* Example: `10`.
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf field: int64 length = 5
|
|
67
|
+
*/
|
|
68
|
+
length: bigint;
|
|
69
|
+
/**
|
|
70
|
+
* The profile of the column.
|
|
71
|
+
*
|
|
72
|
+
* @generated from protobuf field: raystack.assets.v1beta1.ColumnProfile profile = 6
|
|
73
|
+
*/
|
|
74
|
+
profile?: ColumnProfile;
|
|
75
|
+
/**
|
|
76
|
+
* Representation of the column properties.
|
|
77
|
+
* Properties facet can be used to set custom properties, tags and labels for a column.
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf field: raystack.assets.v1beta1.Properties properties = 31
|
|
80
|
+
*/
|
|
81
|
+
properties?: Properties;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf message raystack.assets.v1beta1.ColumnProfile
|
|
85
|
+
*/
|
|
86
|
+
export interface ColumnProfile {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf field: string min = 1
|
|
89
|
+
*/
|
|
90
|
+
min: string;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf field: string max = 2
|
|
93
|
+
*/
|
|
94
|
+
max: string;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: double avg = 3
|
|
97
|
+
*/
|
|
98
|
+
avg: number;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: double med = 4
|
|
101
|
+
*/
|
|
102
|
+
med: number;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf field: int64 unique = 5
|
|
105
|
+
*/
|
|
106
|
+
unique: bigint;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from protobuf field: int64 count = 6
|
|
109
|
+
*/
|
|
110
|
+
count: bigint;
|
|
111
|
+
/**
|
|
112
|
+
* @generated from protobuf field: string top = 7
|
|
113
|
+
*/
|
|
114
|
+
top: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* TopicSchema represents a schema for message bus.
|
|
118
|
+
* It is facet used to specify the schema of a message bus.
|
|
119
|
+
*
|
|
120
|
+
* @generated from protobuf message raystack.assets.v1beta1.TopicSchema
|
|
121
|
+
*/
|
|
122
|
+
export interface TopicSchema {
|
|
123
|
+
/**
|
|
124
|
+
* @generated from protobuf field: string schema_url = 1
|
|
125
|
+
*/
|
|
126
|
+
schemaUrl: string;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from protobuf field: string format = 2
|
|
129
|
+
*/
|
|
130
|
+
format: string;
|
|
131
|
+
}
|
|
132
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
133
|
+
class Columns$Type extends MessageType<Columns> {
|
|
134
|
+
constructor() {
|
|
135
|
+
super("raystack.assets.v1beta1.Columns", [
|
|
136
|
+
{ no: 1, name: "columns", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Column }
|
|
137
|
+
]);
|
|
138
|
+
}
|
|
139
|
+
create(value?: PartialMessage<Columns>): Columns {
|
|
140
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
141
|
+
message.columns = [];
|
|
142
|
+
if (value !== undefined)
|
|
143
|
+
reflectionMergePartial<Columns>(this, message, value);
|
|
144
|
+
return message;
|
|
145
|
+
}
|
|
146
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Columns): Columns {
|
|
147
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
148
|
+
while (reader.pos < end) {
|
|
149
|
+
let [fieldNo, wireType] = reader.tag();
|
|
150
|
+
switch (fieldNo) {
|
|
151
|
+
case /* repeated raystack.assets.v1beta1.Column columns */ 1:
|
|
152
|
+
message.columns.push(Column.internalBinaryRead(reader, reader.uint32(), options));
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
let u = options.readUnknownField;
|
|
156
|
+
if (u === "throw")
|
|
157
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
158
|
+
let d = reader.skip(wireType);
|
|
159
|
+
if (u !== false)
|
|
160
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return message;
|
|
164
|
+
}
|
|
165
|
+
internalBinaryWrite(message: Columns, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
166
|
+
/* repeated raystack.assets.v1beta1.Column columns = 1; */
|
|
167
|
+
for (let i = 0; i < message.columns.length; i++)
|
|
168
|
+
Column.internalBinaryWrite(message.columns[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
169
|
+
let u = options.writeUnknownFields;
|
|
170
|
+
if (u !== false)
|
|
171
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
172
|
+
return writer;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta1.Columns
|
|
177
|
+
*/
|
|
178
|
+
export const Columns = new Columns$Type();
|
|
179
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
180
|
+
class Column$Type extends MessageType<Column> {
|
|
181
|
+
constructor() {
|
|
182
|
+
super("raystack.assets.v1beta1.Column", [
|
|
183
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
184
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
185
|
+
{ no: 3, name: "data_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
186
|
+
{ no: 4, name: "is_nullable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
187
|
+
{ no: 5, name: "length", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
188
|
+
{ no: 6, name: "profile", kind: "message", T: () => ColumnProfile },
|
|
189
|
+
{ no: 31, name: "properties", kind: "message", T: () => Properties }
|
|
190
|
+
]);
|
|
191
|
+
}
|
|
192
|
+
create(value?: PartialMessage<Column>): Column {
|
|
193
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
194
|
+
message.name = "";
|
|
195
|
+
message.description = "";
|
|
196
|
+
message.dataType = "";
|
|
197
|
+
message.isNullable = false;
|
|
198
|
+
message.length = 0n;
|
|
199
|
+
if (value !== undefined)
|
|
200
|
+
reflectionMergePartial<Column>(this, message, value);
|
|
201
|
+
return message;
|
|
202
|
+
}
|
|
203
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Column): Column {
|
|
204
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
205
|
+
while (reader.pos < end) {
|
|
206
|
+
let [fieldNo, wireType] = reader.tag();
|
|
207
|
+
switch (fieldNo) {
|
|
208
|
+
case /* string name */ 1:
|
|
209
|
+
message.name = reader.string();
|
|
210
|
+
break;
|
|
211
|
+
case /* string description */ 2:
|
|
212
|
+
message.description = reader.string();
|
|
213
|
+
break;
|
|
214
|
+
case /* string data_type */ 3:
|
|
215
|
+
message.dataType = reader.string();
|
|
216
|
+
break;
|
|
217
|
+
case /* bool is_nullable */ 4:
|
|
218
|
+
message.isNullable = reader.bool();
|
|
219
|
+
break;
|
|
220
|
+
case /* int64 length */ 5:
|
|
221
|
+
message.length = reader.int64().toBigInt();
|
|
222
|
+
break;
|
|
223
|
+
case /* raystack.assets.v1beta1.ColumnProfile profile */ 6:
|
|
224
|
+
message.profile = ColumnProfile.internalBinaryRead(reader, reader.uint32(), options, message.profile);
|
|
225
|
+
break;
|
|
226
|
+
case /* raystack.assets.v1beta1.Properties properties */ 31:
|
|
227
|
+
message.properties = Properties.internalBinaryRead(reader, reader.uint32(), options, message.properties);
|
|
228
|
+
break;
|
|
229
|
+
default:
|
|
230
|
+
let u = options.readUnknownField;
|
|
231
|
+
if (u === "throw")
|
|
232
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
233
|
+
let d = reader.skip(wireType);
|
|
234
|
+
if (u !== false)
|
|
235
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return message;
|
|
239
|
+
}
|
|
240
|
+
internalBinaryWrite(message: Column, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
241
|
+
/* string name = 1; */
|
|
242
|
+
if (message.name !== "")
|
|
243
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
244
|
+
/* string description = 2; */
|
|
245
|
+
if (message.description !== "")
|
|
246
|
+
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
|
247
|
+
/* string data_type = 3; */
|
|
248
|
+
if (message.dataType !== "")
|
|
249
|
+
writer.tag(3, WireType.LengthDelimited).string(message.dataType);
|
|
250
|
+
/* bool is_nullable = 4; */
|
|
251
|
+
if (message.isNullable !== false)
|
|
252
|
+
writer.tag(4, WireType.Varint).bool(message.isNullable);
|
|
253
|
+
/* int64 length = 5; */
|
|
254
|
+
if (message.length !== 0n)
|
|
255
|
+
writer.tag(5, WireType.Varint).int64(message.length);
|
|
256
|
+
/* raystack.assets.v1beta1.ColumnProfile profile = 6; */
|
|
257
|
+
if (message.profile)
|
|
258
|
+
ColumnProfile.internalBinaryWrite(message.profile, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
259
|
+
/* raystack.assets.v1beta1.Properties properties = 31; */
|
|
260
|
+
if (message.properties)
|
|
261
|
+
Properties.internalBinaryWrite(message.properties, writer.tag(31, WireType.LengthDelimited).fork(), options).join();
|
|
262
|
+
let u = options.writeUnknownFields;
|
|
263
|
+
if (u !== false)
|
|
264
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
265
|
+
return writer;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta1.Column
|
|
270
|
+
*/
|
|
271
|
+
export const Column = new Column$Type();
|
|
272
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
273
|
+
class ColumnProfile$Type extends MessageType<ColumnProfile> {
|
|
274
|
+
constructor() {
|
|
275
|
+
super("raystack.assets.v1beta1.ColumnProfile", [
|
|
276
|
+
{ no: 1, name: "min", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
277
|
+
{ no: 2, name: "max", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
278
|
+
{ no: 3, name: "avg", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
279
|
+
{ no: 4, name: "med", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
280
|
+
{ no: 5, name: "unique", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
281
|
+
{ no: 6, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
282
|
+
{ no: 7, name: "top", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
283
|
+
]);
|
|
284
|
+
}
|
|
285
|
+
create(value?: PartialMessage<ColumnProfile>): ColumnProfile {
|
|
286
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
287
|
+
message.min = "";
|
|
288
|
+
message.max = "";
|
|
289
|
+
message.avg = 0;
|
|
290
|
+
message.med = 0;
|
|
291
|
+
message.unique = 0n;
|
|
292
|
+
message.count = 0n;
|
|
293
|
+
message.top = "";
|
|
294
|
+
if (value !== undefined)
|
|
295
|
+
reflectionMergePartial<ColumnProfile>(this, message, value);
|
|
296
|
+
return message;
|
|
297
|
+
}
|
|
298
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ColumnProfile): ColumnProfile {
|
|
299
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
300
|
+
while (reader.pos < end) {
|
|
301
|
+
let [fieldNo, wireType] = reader.tag();
|
|
302
|
+
switch (fieldNo) {
|
|
303
|
+
case /* string min */ 1:
|
|
304
|
+
message.min = reader.string();
|
|
305
|
+
break;
|
|
306
|
+
case /* string max */ 2:
|
|
307
|
+
message.max = reader.string();
|
|
308
|
+
break;
|
|
309
|
+
case /* double avg */ 3:
|
|
310
|
+
message.avg = reader.double();
|
|
311
|
+
break;
|
|
312
|
+
case /* double med */ 4:
|
|
313
|
+
message.med = reader.double();
|
|
314
|
+
break;
|
|
315
|
+
case /* int64 unique */ 5:
|
|
316
|
+
message.unique = reader.int64().toBigInt();
|
|
317
|
+
break;
|
|
318
|
+
case /* int64 count */ 6:
|
|
319
|
+
message.count = reader.int64().toBigInt();
|
|
320
|
+
break;
|
|
321
|
+
case /* string top */ 7:
|
|
322
|
+
message.top = reader.string();
|
|
323
|
+
break;
|
|
324
|
+
default:
|
|
325
|
+
let u = options.readUnknownField;
|
|
326
|
+
if (u === "throw")
|
|
327
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
328
|
+
let d = reader.skip(wireType);
|
|
329
|
+
if (u !== false)
|
|
330
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return message;
|
|
334
|
+
}
|
|
335
|
+
internalBinaryWrite(message: ColumnProfile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
336
|
+
/* string min = 1; */
|
|
337
|
+
if (message.min !== "")
|
|
338
|
+
writer.tag(1, WireType.LengthDelimited).string(message.min);
|
|
339
|
+
/* string max = 2; */
|
|
340
|
+
if (message.max !== "")
|
|
341
|
+
writer.tag(2, WireType.LengthDelimited).string(message.max);
|
|
342
|
+
/* double avg = 3; */
|
|
343
|
+
if (message.avg !== 0)
|
|
344
|
+
writer.tag(3, WireType.Bit64).double(message.avg);
|
|
345
|
+
/* double med = 4; */
|
|
346
|
+
if (message.med !== 0)
|
|
347
|
+
writer.tag(4, WireType.Bit64).double(message.med);
|
|
348
|
+
/* int64 unique = 5; */
|
|
349
|
+
if (message.unique !== 0n)
|
|
350
|
+
writer.tag(5, WireType.Varint).int64(message.unique);
|
|
351
|
+
/* int64 count = 6; */
|
|
352
|
+
if (message.count !== 0n)
|
|
353
|
+
writer.tag(6, WireType.Varint).int64(message.count);
|
|
354
|
+
/* string top = 7; */
|
|
355
|
+
if (message.top !== "")
|
|
356
|
+
writer.tag(7, WireType.LengthDelimited).string(message.top);
|
|
357
|
+
let u = options.writeUnknownFields;
|
|
358
|
+
if (u !== false)
|
|
359
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
360
|
+
return writer;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta1.ColumnProfile
|
|
365
|
+
*/
|
|
366
|
+
export const ColumnProfile = new ColumnProfile$Type();
|
|
367
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
368
|
+
class TopicSchema$Type extends MessageType<TopicSchema> {
|
|
369
|
+
constructor() {
|
|
370
|
+
super("raystack.assets.v1beta1.TopicSchema", [
|
|
371
|
+
{ no: 1, name: "schema_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
372
|
+
{ no: 2, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
373
|
+
]);
|
|
374
|
+
}
|
|
375
|
+
create(value?: PartialMessage<TopicSchema>): TopicSchema {
|
|
376
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
377
|
+
message.schemaUrl = "";
|
|
378
|
+
message.format = "";
|
|
379
|
+
if (value !== undefined)
|
|
380
|
+
reflectionMergePartial<TopicSchema>(this, message, value);
|
|
381
|
+
return message;
|
|
382
|
+
}
|
|
383
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TopicSchema): TopicSchema {
|
|
384
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
385
|
+
while (reader.pos < end) {
|
|
386
|
+
let [fieldNo, wireType] = reader.tag();
|
|
387
|
+
switch (fieldNo) {
|
|
388
|
+
case /* string schema_url */ 1:
|
|
389
|
+
message.schemaUrl = reader.string();
|
|
390
|
+
break;
|
|
391
|
+
case /* string format */ 2:
|
|
392
|
+
message.format = reader.string();
|
|
393
|
+
break;
|
|
394
|
+
default:
|
|
395
|
+
let u = options.readUnknownField;
|
|
396
|
+
if (u === "throw")
|
|
397
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
398
|
+
let d = reader.skip(wireType);
|
|
399
|
+
if (u !== false)
|
|
400
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
return message;
|
|
404
|
+
}
|
|
405
|
+
internalBinaryWrite(message: TopicSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
406
|
+
/* string schema_url = 1; */
|
|
407
|
+
if (message.schemaUrl !== "")
|
|
408
|
+
writer.tag(1, WireType.LengthDelimited).string(message.schemaUrl);
|
|
409
|
+
/* string format = 2; */
|
|
410
|
+
if (message.format !== "")
|
|
411
|
+
writer.tag(2, WireType.LengthDelimited).string(message.format);
|
|
412
|
+
let u = options.writeUnknownFields;
|
|
413
|
+
if (u !== false)
|
|
414
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
415
|
+
return writer;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta1.TopicSchema
|
|
420
|
+
*/
|
|
421
|
+
export const TopicSchema = new TopicSchema$Type();
|