@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,275 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/assets/v1beta1/dashboard.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
|
+
import { Resource } from "./resource_pb";
|
|
9
|
+
import { Ownership } from "./ownership_pb";
|
|
10
|
+
import { Properties } from "./properties_pb";
|
|
11
|
+
import { Timestamp } from "./timestamp_pb";
|
|
12
|
+
import { Lineage } from "./lineage_pb";
|
|
13
|
+
import { Event } from "./event_pb";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Dashboard is a resource that represents a dashboard.
|
|
17
|
+
*
|
|
18
|
+
* @generated from message raystack.assets.v1beta1.Dashboard
|
|
19
|
+
*/
|
|
20
|
+
export class Dashboard extends Message<Dashboard> {
|
|
21
|
+
/**
|
|
22
|
+
* Representation of the resource
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: raystack.assets.v1beta1.Resource resource = 1;
|
|
25
|
+
*/
|
|
26
|
+
resource?: Resource;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The list of the charts in the dashboard.
|
|
30
|
+
* For an example, check the schema of the chart.
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: repeated raystack.assets.v1beta1.Chart charts = 21;
|
|
33
|
+
*/
|
|
34
|
+
charts: Chart[] = [];
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The ownership of the dashboard.
|
|
38
|
+
* For an example check out ownership.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: raystack.assets.v1beta1.Ownership ownership = 31;
|
|
41
|
+
*/
|
|
42
|
+
ownership?: Ownership;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* List of the user's custom properties.
|
|
46
|
+
* Properties facet can be used to set custom properties, tags and labels for a user.
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: raystack.assets.v1beta1.Properties properties = 32;
|
|
49
|
+
*/
|
|
50
|
+
properties?: Properties;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The timestamp of the user's creation.
|
|
54
|
+
* Timstamp facet can be used to set the creation and updation timestamp of a user.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: raystack.assets.v1beta1.Timestamp timestamps = 33;
|
|
57
|
+
*/
|
|
58
|
+
timestamps?: Timestamp;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The lineage of the dashboard.
|
|
62
|
+
* For an example check out lineage schema.
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: raystack.assets.v1beta1.Lineage lineage = 34;
|
|
65
|
+
*/
|
|
66
|
+
lineage?: Lineage;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The timestamp of the generated event.
|
|
70
|
+
* Event schemas is defined in the common event schema.
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: raystack.assets.v1beta1.Event event = 100;
|
|
73
|
+
*/
|
|
74
|
+
event?: Event;
|
|
75
|
+
|
|
76
|
+
constructor(data?: PartialMessage<Dashboard>) {
|
|
77
|
+
super();
|
|
78
|
+
proto3.util.initPartial(data, this);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
82
|
+
static readonly typeName = "raystack.assets.v1beta1.Dashboard";
|
|
83
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
84
|
+
{ no: 1, name: "resource", kind: "message", T: Resource },
|
|
85
|
+
{ no: 21, name: "charts", kind: "message", T: Chart, repeated: true },
|
|
86
|
+
{ no: 31, name: "ownership", kind: "message", T: Ownership },
|
|
87
|
+
{ no: 32, name: "properties", kind: "message", T: Properties },
|
|
88
|
+
{ no: 33, name: "timestamps", kind: "message", T: Timestamp },
|
|
89
|
+
{ no: 34, name: "lineage", kind: "message", T: Lineage },
|
|
90
|
+
{ no: 100, name: "event", kind: "message", T: Event },
|
|
91
|
+
]);
|
|
92
|
+
|
|
93
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Dashboard {
|
|
94
|
+
return new Dashboard().fromBinary(bytes, options);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Dashboard {
|
|
98
|
+
return new Dashboard().fromJson(jsonValue, options);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Dashboard {
|
|
102
|
+
return new Dashboard().fromJsonString(jsonString, options);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static equals(a: Dashboard | PlainMessage<Dashboard> | undefined, b: Dashboard | PlainMessage<Dashboard> | undefined): boolean {
|
|
106
|
+
return proto3.util.equals(Dashboard, a, b);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message raystack.assets.v1beta1.Chart
|
|
112
|
+
*/
|
|
113
|
+
export class Chart extends Message<Chart> {
|
|
114
|
+
/**
|
|
115
|
+
* The URN of the chart.
|
|
116
|
+
* Example: `chart:1`.
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: string urn = 1;
|
|
119
|
+
*/
|
|
120
|
+
urn = "";
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The name of the chart.
|
|
124
|
+
* Example: `My Chart`.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: string name = 2;
|
|
127
|
+
*/
|
|
128
|
+
name = "";
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The type of the chart.
|
|
132
|
+
* Example: `line`.
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: string type = 3;
|
|
135
|
+
*/
|
|
136
|
+
type = "";
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The source of the chart.
|
|
140
|
+
* Example: `metabase`.
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: string source = 4;
|
|
143
|
+
*/
|
|
144
|
+
source = "";
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The description of the chart.
|
|
148
|
+
* Example: `This is a chart for my dashboard.`
|
|
149
|
+
*
|
|
150
|
+
* @generated from field: string description = 5;
|
|
151
|
+
*/
|
|
152
|
+
description = "";
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The url of the chart.
|
|
156
|
+
* Example: `http://metabase.com/charts/mychart`.
|
|
157
|
+
*
|
|
158
|
+
* @generated from field: string url = 6;
|
|
159
|
+
*/
|
|
160
|
+
url = "";
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The raw query of the chart.
|
|
164
|
+
* Example: `SELECT * FROM my_table`.
|
|
165
|
+
*
|
|
166
|
+
* @generated from field: string raw_query = 7;
|
|
167
|
+
*/
|
|
168
|
+
rawQuery = "";
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The source of the data.
|
|
172
|
+
* Example: `bigquery,graphite`.
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: string data_source = 8;
|
|
175
|
+
*/
|
|
176
|
+
dataSource = "";
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The dashboard ur of the chart.
|
|
180
|
+
* Example: `dashboard:1`.
|
|
181
|
+
*
|
|
182
|
+
* @generated from field: string dashboard_urn = 9;
|
|
183
|
+
*/
|
|
184
|
+
dashboardUrn = "";
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The source of the dashboard of the chart.
|
|
188
|
+
* Example: `metabase`.
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: string dashboard_source = 10;
|
|
191
|
+
*/
|
|
192
|
+
dashboardSource = "";
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The ownership of the dashboard.
|
|
196
|
+
* For an example check out ownership.
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: raystack.assets.v1beta1.Ownership ownership = 31;
|
|
199
|
+
*/
|
|
200
|
+
ownership?: Ownership;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The lineage of the chart.
|
|
204
|
+
* For an example check out lineage schema.
|
|
205
|
+
*
|
|
206
|
+
* @generated from field: raystack.assets.v1beta1.Lineage lineage = 32;
|
|
207
|
+
*/
|
|
208
|
+
lineage?: Lineage;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* List of the user's custom properties.
|
|
212
|
+
* Properties facet can be used to set custom properties, tags and labels for a dashboard.
|
|
213
|
+
*
|
|
214
|
+
* @generated from field: raystack.assets.v1beta1.Properties properties = 33;
|
|
215
|
+
*/
|
|
216
|
+
properties?: Properties;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The timestamp of the user's creation.
|
|
220
|
+
* Timstamp facet can be used to set the creation and updation timestamp of a dashboard.
|
|
221
|
+
*
|
|
222
|
+
* @generated from field: raystack.assets.v1beta1.Timestamp timestamps = 34;
|
|
223
|
+
*/
|
|
224
|
+
timestamps?: Timestamp;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The timestamp of the generated event.
|
|
228
|
+
* Event schemas is defined in the common event schema.
|
|
229
|
+
*
|
|
230
|
+
* @generated from field: raystack.assets.v1beta1.Event event = 100;
|
|
231
|
+
*/
|
|
232
|
+
event?: Event;
|
|
233
|
+
|
|
234
|
+
constructor(data?: PartialMessage<Chart>) {
|
|
235
|
+
super();
|
|
236
|
+
proto3.util.initPartial(data, this);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
240
|
+
static readonly typeName = "raystack.assets.v1beta1.Chart";
|
|
241
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
242
|
+
{ no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
243
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
244
|
+
{ no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
245
|
+
{ no: 4, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
246
|
+
{ no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
247
|
+
{ no: 6, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
248
|
+
{ no: 7, name: "raw_query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
249
|
+
{ no: 8, name: "data_source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
250
|
+
{ no: 9, name: "dashboard_urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
251
|
+
{ no: 10, name: "dashboard_source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
252
|
+
{ no: 31, name: "ownership", kind: "message", T: Ownership },
|
|
253
|
+
{ no: 32, name: "lineage", kind: "message", T: Lineage },
|
|
254
|
+
{ no: 33, name: "properties", kind: "message", T: Properties },
|
|
255
|
+
{ no: 34, name: "timestamps", kind: "message", T: Timestamp },
|
|
256
|
+
{ no: 100, name: "event", kind: "message", T: Event },
|
|
257
|
+
]);
|
|
258
|
+
|
|
259
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Chart {
|
|
260
|
+
return new Chart().fromBinary(bytes, options);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Chart {
|
|
264
|
+
return new Chart().fromJson(jsonValue, options);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Chart {
|
|
268
|
+
return new Chart().fromJsonString(jsonString, options);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
static equals(a: Chart | PlainMessage<Chart> | undefined, b: Chart | PlainMessage<Chart> | undefined): boolean {
|
|
272
|
+
return proto3.util.equals(Chart, a, b);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta1/event.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 } from "../../../google/protobuf/timestamp";
|
|
14
|
+
/**
|
|
15
|
+
* Event represents an event in the system.
|
|
16
|
+
* Event is majorly used to represent the state of the system in the form of events.
|
|
17
|
+
* It can be used in any schema which intend to produce events to message bus.
|
|
18
|
+
*
|
|
19
|
+
* @generated from protobuf message raystack.assets.v1beta1.Event
|
|
20
|
+
*/
|
|
21
|
+
export interface Event {
|
|
22
|
+
/**
|
|
23
|
+
* The timestamp of the event.
|
|
24
|
+
* Example: `2018-01-01T00:00:00Z`.
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf field: google.protobuf.Timestamp timestamp = 1
|
|
27
|
+
*/
|
|
28
|
+
timestamp?: Timestamp;
|
|
29
|
+
/**
|
|
30
|
+
* The activity that created the event.
|
|
31
|
+
* Example: `create`, `update`.
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf field: string action = 2
|
|
34
|
+
*/
|
|
35
|
+
action: string;
|
|
36
|
+
/**
|
|
37
|
+
* The description of the event.
|
|
38
|
+
* Example: `user is created from signup form`.
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf field: string description = 3
|
|
41
|
+
*/
|
|
42
|
+
description: string;
|
|
43
|
+
}
|
|
44
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
45
|
+
class Event$Type extends MessageType<Event> {
|
|
46
|
+
constructor() {
|
|
47
|
+
super("raystack.assets.v1beta1.Event", [
|
|
48
|
+
{ no: 1, name: "timestamp", kind: "message", T: () => Timestamp },
|
|
49
|
+
{ no: 2, name: "action", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
50
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
create(value?: PartialMessage<Event>): Event {
|
|
54
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
55
|
+
message.action = "";
|
|
56
|
+
message.description = "";
|
|
57
|
+
if (value !== undefined)
|
|
58
|
+
reflectionMergePartial<Event>(this, message, value);
|
|
59
|
+
return message;
|
|
60
|
+
}
|
|
61
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Event): Event {
|
|
62
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
63
|
+
while (reader.pos < end) {
|
|
64
|
+
let [fieldNo, wireType] = reader.tag();
|
|
65
|
+
switch (fieldNo) {
|
|
66
|
+
case /* google.protobuf.Timestamp timestamp */ 1:
|
|
67
|
+
message.timestamp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamp);
|
|
68
|
+
break;
|
|
69
|
+
case /* string action */ 2:
|
|
70
|
+
message.action = reader.string();
|
|
71
|
+
break;
|
|
72
|
+
case /* string description */ 3:
|
|
73
|
+
message.description = reader.string();
|
|
74
|
+
break;
|
|
75
|
+
default:
|
|
76
|
+
let u = options.readUnknownField;
|
|
77
|
+
if (u === "throw")
|
|
78
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
79
|
+
let d = reader.skip(wireType);
|
|
80
|
+
if (u !== false)
|
|
81
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return message;
|
|
85
|
+
}
|
|
86
|
+
internalBinaryWrite(message: Event, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
87
|
+
/* google.protobuf.Timestamp timestamp = 1; */
|
|
88
|
+
if (message.timestamp)
|
|
89
|
+
Timestamp.internalBinaryWrite(message.timestamp, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
90
|
+
/* string action = 2; */
|
|
91
|
+
if (message.action !== "")
|
|
92
|
+
writer.tag(2, WireType.LengthDelimited).string(message.action);
|
|
93
|
+
/* string description = 3; */
|
|
94
|
+
if (message.description !== "")
|
|
95
|
+
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
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.Event
|
|
104
|
+
*/
|
|
105
|
+
export const Event = new Event$Type();
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/assets/v1beta1/event.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, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Event represents an event in the system.
|
|
11
|
+
* Event is majorly used to represent the state of the system in the form of events.
|
|
12
|
+
* It can be used in any schema which intend to produce events to message bus.
|
|
13
|
+
*
|
|
14
|
+
* @generated from message raystack.assets.v1beta1.Event
|
|
15
|
+
*/
|
|
16
|
+
export class Event extends Message<Event> {
|
|
17
|
+
/**
|
|
18
|
+
* The timestamp of the event.
|
|
19
|
+
* Example: `2018-01-01T00:00:00Z`.
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: google.protobuf.Timestamp timestamp = 1;
|
|
22
|
+
*/
|
|
23
|
+
timestamp?: Timestamp;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The activity that created the event.
|
|
27
|
+
* Example: `create`, `update`.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string action = 2;
|
|
30
|
+
*/
|
|
31
|
+
action = "";
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The description of the event.
|
|
35
|
+
* Example: `user is created from signup form`.
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: string description = 3;
|
|
38
|
+
*/
|
|
39
|
+
description = "";
|
|
40
|
+
|
|
41
|
+
constructor(data?: PartialMessage<Event>) {
|
|
42
|
+
super();
|
|
43
|
+
proto3.util.initPartial(data, this);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
47
|
+
static readonly typeName = "raystack.assets.v1beta1.Event";
|
|
48
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
49
|
+
{ no: 1, name: "timestamp", kind: "message", T: Timestamp },
|
|
50
|
+
{ no: 2, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
51
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
52
|
+
]);
|
|
53
|
+
|
|
54
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Event {
|
|
55
|
+
return new Event().fromBinary(bytes, options);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Event {
|
|
59
|
+
return new Event().fromJson(jsonValue, options);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Event {
|
|
63
|
+
return new Event().fromJsonString(jsonString, options);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static equals(a: Event | PlainMessage<Event> | undefined, b: Event | PlainMessage<Event> | undefined): boolean {
|
|
67
|
+
return proto3.util.equals(Event, a, b);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta1/group.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 { Resource } from "./resource";
|
|
17
|
+
/**
|
|
18
|
+
* Group represents a group of users and resources.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf message raystack.assets.v1beta1.Group
|
|
21
|
+
*/
|
|
22
|
+
export interface Group {
|
|
23
|
+
/**
|
|
24
|
+
* Representation of the resource
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf field: raystack.assets.v1beta1.Resource resource = 1
|
|
27
|
+
*/
|
|
28
|
+
resource?: Resource;
|
|
29
|
+
/**
|
|
30
|
+
* The email of the group.
|
|
31
|
+
* Example: `xyz@xyz.com`
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf field: string email = 2
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
* The members of the group.
|
|
38
|
+
* For example look at schema of the member.
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf field: repeated raystack.assets.v1beta1.Member members = 21
|
|
41
|
+
*/
|
|
42
|
+
members: Member[];
|
|
43
|
+
/**
|
|
44
|
+
* List of the user's custom properties.
|
|
45
|
+
* Properties facet can be used to set custom properties, tags and labels for a user.
|
|
46
|
+
*
|
|
47
|
+
* @generated from protobuf field: raystack.assets.v1beta1.Properties properties = 31
|
|
48
|
+
*/
|
|
49
|
+
properties?: Properties;
|
|
50
|
+
/**
|
|
51
|
+
* The timestamp of the user's creation.
|
|
52
|
+
* Timstamp facet can be used to set the creation and updation timestamp of a user.
|
|
53
|
+
*
|
|
54
|
+
* @generated from protobuf field: raystack.assets.v1beta1.Timestamp timestamps = 32
|
|
55
|
+
*/
|
|
56
|
+
timestamps?: Timestamp;
|
|
57
|
+
/**
|
|
58
|
+
* The timestamp of the generated event.
|
|
59
|
+
* Event schemas is defined in the common event schema.
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf field: raystack.assets.v1beta1.Event event = 100
|
|
62
|
+
*/
|
|
63
|
+
event?: Event;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Member represents a user.
|
|
67
|
+
*
|
|
68
|
+
* @generated from protobuf message raystack.assets.v1beta1.Member
|
|
69
|
+
*/
|
|
70
|
+
export interface Member {
|
|
71
|
+
/**
|
|
72
|
+
* The unique identifier for the user.
|
|
73
|
+
* Example: `user:example`.
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf field: string urn = 1
|
|
76
|
+
*/
|
|
77
|
+
urn: string;
|
|
78
|
+
/**
|
|
79
|
+
* The role of the user.
|
|
80
|
+
* Example: `owner`.
|
|
81
|
+
*
|
|
82
|
+
* @generated from protobuf field: string role = 2
|
|
83
|
+
*/
|
|
84
|
+
role: string;
|
|
85
|
+
}
|
|
86
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
87
|
+
class Group$Type extends MessageType<Group> {
|
|
88
|
+
constructor() {
|
|
89
|
+
super("raystack.assets.v1beta1.Group", [
|
|
90
|
+
{ no: 1, name: "resource", kind: "message", T: () => Resource },
|
|
91
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
92
|
+
{ no: 21, name: "members", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Member },
|
|
93
|
+
{ no: 31, name: "properties", kind: "message", T: () => Properties },
|
|
94
|
+
{ no: 32, name: "timestamps", kind: "message", T: () => Timestamp },
|
|
95
|
+
{ no: 100, name: "event", kind: "message", T: () => Event }
|
|
96
|
+
]);
|
|
97
|
+
}
|
|
98
|
+
create(value?: PartialMessage<Group>): Group {
|
|
99
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
100
|
+
message.email = "";
|
|
101
|
+
message.members = [];
|
|
102
|
+
if (value !== undefined)
|
|
103
|
+
reflectionMergePartial<Group>(this, message, value);
|
|
104
|
+
return message;
|
|
105
|
+
}
|
|
106
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Group): Group {
|
|
107
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
108
|
+
while (reader.pos < end) {
|
|
109
|
+
let [fieldNo, wireType] = reader.tag();
|
|
110
|
+
switch (fieldNo) {
|
|
111
|
+
case /* raystack.assets.v1beta1.Resource resource */ 1:
|
|
112
|
+
message.resource = Resource.internalBinaryRead(reader, reader.uint32(), options, message.resource);
|
|
113
|
+
break;
|
|
114
|
+
case /* string email */ 2:
|
|
115
|
+
message.email = reader.string();
|
|
116
|
+
break;
|
|
117
|
+
case /* repeated raystack.assets.v1beta1.Member members */ 21:
|
|
118
|
+
message.members.push(Member.internalBinaryRead(reader, reader.uint32(), options));
|
|
119
|
+
break;
|
|
120
|
+
case /* raystack.assets.v1beta1.Properties properties */ 31:
|
|
121
|
+
message.properties = Properties.internalBinaryRead(reader, reader.uint32(), options, message.properties);
|
|
122
|
+
break;
|
|
123
|
+
case /* raystack.assets.v1beta1.Timestamp timestamps */ 32:
|
|
124
|
+
message.timestamps = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamps);
|
|
125
|
+
break;
|
|
126
|
+
case /* raystack.assets.v1beta1.Event event */ 100:
|
|
127
|
+
message.event = Event.internalBinaryRead(reader, reader.uint32(), options, message.event);
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
let u = options.readUnknownField;
|
|
131
|
+
if (u === "throw")
|
|
132
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
133
|
+
let d = reader.skip(wireType);
|
|
134
|
+
if (u !== false)
|
|
135
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return message;
|
|
139
|
+
}
|
|
140
|
+
internalBinaryWrite(message: Group, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
141
|
+
/* raystack.assets.v1beta1.Resource resource = 1; */
|
|
142
|
+
if (message.resource)
|
|
143
|
+
Resource.internalBinaryWrite(message.resource, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
144
|
+
/* string email = 2; */
|
|
145
|
+
if (message.email !== "")
|
|
146
|
+
writer.tag(2, WireType.LengthDelimited).string(message.email);
|
|
147
|
+
/* repeated raystack.assets.v1beta1.Member members = 21; */
|
|
148
|
+
for (let i = 0; i < message.members.length; i++)
|
|
149
|
+
Member.internalBinaryWrite(message.members[i], writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
150
|
+
/* raystack.assets.v1beta1.Properties properties = 31; */
|
|
151
|
+
if (message.properties)
|
|
152
|
+
Properties.internalBinaryWrite(message.properties, writer.tag(31, WireType.LengthDelimited).fork(), options).join();
|
|
153
|
+
/* raystack.assets.v1beta1.Timestamp timestamps = 32; */
|
|
154
|
+
if (message.timestamps)
|
|
155
|
+
Timestamp.internalBinaryWrite(message.timestamps, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
|
|
156
|
+
/* raystack.assets.v1beta1.Event event = 100; */
|
|
157
|
+
if (message.event)
|
|
158
|
+
Event.internalBinaryWrite(message.event, writer.tag(100, WireType.LengthDelimited).fork(), options).join();
|
|
159
|
+
let u = options.writeUnknownFields;
|
|
160
|
+
if (u !== false)
|
|
161
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
162
|
+
return writer;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta1.Group
|
|
167
|
+
*/
|
|
168
|
+
export const Group = new Group$Type();
|
|
169
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
170
|
+
class Member$Type extends MessageType<Member> {
|
|
171
|
+
constructor() {
|
|
172
|
+
super("raystack.assets.v1beta1.Member", [
|
|
173
|
+
{ no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
174
|
+
{ no: 2, name: "role", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
175
|
+
]);
|
|
176
|
+
}
|
|
177
|
+
create(value?: PartialMessage<Member>): Member {
|
|
178
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
179
|
+
message.urn = "";
|
|
180
|
+
message.role = "";
|
|
181
|
+
if (value !== undefined)
|
|
182
|
+
reflectionMergePartial<Member>(this, message, value);
|
|
183
|
+
return message;
|
|
184
|
+
}
|
|
185
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Member): Member {
|
|
186
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
187
|
+
while (reader.pos < end) {
|
|
188
|
+
let [fieldNo, wireType] = reader.tag();
|
|
189
|
+
switch (fieldNo) {
|
|
190
|
+
case /* string urn */ 1:
|
|
191
|
+
message.urn = reader.string();
|
|
192
|
+
break;
|
|
193
|
+
case /* string role */ 2:
|
|
194
|
+
message.role = reader.string();
|
|
195
|
+
break;
|
|
196
|
+
default:
|
|
197
|
+
let u = options.readUnknownField;
|
|
198
|
+
if (u === "throw")
|
|
199
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
200
|
+
let d = reader.skip(wireType);
|
|
201
|
+
if (u !== false)
|
|
202
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return message;
|
|
206
|
+
}
|
|
207
|
+
internalBinaryWrite(message: Member, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
208
|
+
/* string urn = 1; */
|
|
209
|
+
if (message.urn !== "")
|
|
210
|
+
writer.tag(1, WireType.LengthDelimited).string(message.urn);
|
|
211
|
+
/* string role = 2; */
|
|
212
|
+
if (message.role !== "")
|
|
213
|
+
writer.tag(2, WireType.LengthDelimited).string(message.role);
|
|
214
|
+
let u = options.writeUnknownFields;
|
|
215
|
+
if (u !== false)
|
|
216
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
217
|
+
return writer;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta1.Member
|
|
222
|
+
*/
|
|
223
|
+
export const Member = new Member$Type();
|