@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,178 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta2/group.proto" (package "raystack.assets.v1beta2", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Struct } from "../../../google/protobuf/struct";
|
|
14
|
+
/**
|
|
15
|
+
* Group represents a group of users and resources.
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf message raystack.assets.v1beta2.Group
|
|
18
|
+
*/
|
|
19
|
+
export interface Group {
|
|
20
|
+
/**
|
|
21
|
+
* The email of the group.
|
|
22
|
+
* Example: `xyz@xyz.com`
|
|
23
|
+
*
|
|
24
|
+
* @generated from protobuf field: string email = 1
|
|
25
|
+
*/
|
|
26
|
+
email: string;
|
|
27
|
+
/**
|
|
28
|
+
* The members of the group.
|
|
29
|
+
* For example look at schema of the member.
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf field: repeated raystack.assets.v1beta2.Member members = 2
|
|
32
|
+
*/
|
|
33
|
+
members: Member[];
|
|
34
|
+
/**
|
|
35
|
+
* List of attributes the model has.
|
|
36
|
+
*
|
|
37
|
+
* @generated from protobuf field: google.protobuf.Struct attributes = 10
|
|
38
|
+
*/
|
|
39
|
+
attributes?: Struct;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Member represents a user.
|
|
43
|
+
*
|
|
44
|
+
* @generated from protobuf message raystack.assets.v1beta2.Member
|
|
45
|
+
*/
|
|
46
|
+
export interface Member {
|
|
47
|
+
/**
|
|
48
|
+
* The unique identifier for the user.
|
|
49
|
+
* Example: `user:example`.
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf field: string urn = 1
|
|
52
|
+
*/
|
|
53
|
+
urn: string;
|
|
54
|
+
/**
|
|
55
|
+
* The role of the user.
|
|
56
|
+
* Example: `owner`.
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf field: string role = 2
|
|
59
|
+
*/
|
|
60
|
+
role: string;
|
|
61
|
+
}
|
|
62
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
63
|
+
class Group$Type extends MessageType<Group> {
|
|
64
|
+
constructor() {
|
|
65
|
+
super("raystack.assets.v1beta2.Group", [
|
|
66
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
67
|
+
{ no: 2, name: "members", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Member },
|
|
68
|
+
{ no: 10, name: "attributes", kind: "message", T: () => Struct }
|
|
69
|
+
]);
|
|
70
|
+
}
|
|
71
|
+
create(value?: PartialMessage<Group>): Group {
|
|
72
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
73
|
+
message.email = "";
|
|
74
|
+
message.members = [];
|
|
75
|
+
if (value !== undefined)
|
|
76
|
+
reflectionMergePartial<Group>(this, message, value);
|
|
77
|
+
return message;
|
|
78
|
+
}
|
|
79
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Group): Group {
|
|
80
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
81
|
+
while (reader.pos < end) {
|
|
82
|
+
let [fieldNo, wireType] = reader.tag();
|
|
83
|
+
switch (fieldNo) {
|
|
84
|
+
case /* string email */ 1:
|
|
85
|
+
message.email = reader.string();
|
|
86
|
+
break;
|
|
87
|
+
case /* repeated raystack.assets.v1beta2.Member members */ 2:
|
|
88
|
+
message.members.push(Member.internalBinaryRead(reader, reader.uint32(), options));
|
|
89
|
+
break;
|
|
90
|
+
case /* google.protobuf.Struct attributes */ 10:
|
|
91
|
+
message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
92
|
+
break;
|
|
93
|
+
default:
|
|
94
|
+
let u = options.readUnknownField;
|
|
95
|
+
if (u === "throw")
|
|
96
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
97
|
+
let d = reader.skip(wireType);
|
|
98
|
+
if (u !== false)
|
|
99
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return message;
|
|
103
|
+
}
|
|
104
|
+
internalBinaryWrite(message: Group, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
105
|
+
/* string email = 1; */
|
|
106
|
+
if (message.email !== "")
|
|
107
|
+
writer.tag(1, WireType.LengthDelimited).string(message.email);
|
|
108
|
+
/* repeated raystack.assets.v1beta2.Member members = 2; */
|
|
109
|
+
for (let i = 0; i < message.members.length; i++)
|
|
110
|
+
Member.internalBinaryWrite(message.members[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
111
|
+
/* google.protobuf.Struct attributes = 10; */
|
|
112
|
+
if (message.attributes)
|
|
113
|
+
Struct.internalBinaryWrite(message.attributes, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
114
|
+
let u = options.writeUnknownFields;
|
|
115
|
+
if (u !== false)
|
|
116
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
117
|
+
return writer;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta2.Group
|
|
122
|
+
*/
|
|
123
|
+
export const Group = new Group$Type();
|
|
124
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
125
|
+
class Member$Type extends MessageType<Member> {
|
|
126
|
+
constructor() {
|
|
127
|
+
super("raystack.assets.v1beta2.Member", [
|
|
128
|
+
{ no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
129
|
+
{ no: 2, name: "role", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
130
|
+
]);
|
|
131
|
+
}
|
|
132
|
+
create(value?: PartialMessage<Member>): Member {
|
|
133
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
134
|
+
message.urn = "";
|
|
135
|
+
message.role = "";
|
|
136
|
+
if (value !== undefined)
|
|
137
|
+
reflectionMergePartial<Member>(this, message, value);
|
|
138
|
+
return message;
|
|
139
|
+
}
|
|
140
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Member): Member {
|
|
141
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
142
|
+
while (reader.pos < end) {
|
|
143
|
+
let [fieldNo, wireType] = reader.tag();
|
|
144
|
+
switch (fieldNo) {
|
|
145
|
+
case /* string urn */ 1:
|
|
146
|
+
message.urn = reader.string();
|
|
147
|
+
break;
|
|
148
|
+
case /* string role */ 2:
|
|
149
|
+
message.role = reader.string();
|
|
150
|
+
break;
|
|
151
|
+
default:
|
|
152
|
+
let u = options.readUnknownField;
|
|
153
|
+
if (u === "throw")
|
|
154
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
155
|
+
let d = reader.skip(wireType);
|
|
156
|
+
if (u !== false)
|
|
157
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return message;
|
|
161
|
+
}
|
|
162
|
+
internalBinaryWrite(message: Member, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
163
|
+
/* string urn = 1; */
|
|
164
|
+
if (message.urn !== "")
|
|
165
|
+
writer.tag(1, WireType.LengthDelimited).string(message.urn);
|
|
166
|
+
/* string role = 2; */
|
|
167
|
+
if (message.role !== "")
|
|
168
|
+
writer.tag(2, WireType.LengthDelimited).string(message.role);
|
|
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.v1beta2.Member
|
|
177
|
+
*/
|
|
178
|
+
export const Member = new Member$Type();
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/assets/v1beta2/group.proto (package raystack.assets.v1beta2, 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, Struct } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Group represents a group of users and resources.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message raystack.assets.v1beta2.Group
|
|
13
|
+
*/
|
|
14
|
+
export class Group extends Message<Group> {
|
|
15
|
+
/**
|
|
16
|
+
* The email of the group.
|
|
17
|
+
* Example: `xyz@xyz.com`
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: string email = 1;
|
|
20
|
+
*/
|
|
21
|
+
email = "";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The members of the group.
|
|
25
|
+
* For example look at schema of the member.
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: repeated raystack.assets.v1beta2.Member members = 2;
|
|
28
|
+
*/
|
|
29
|
+
members: Member[] = [];
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* List of attributes the model has.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: google.protobuf.Struct attributes = 10;
|
|
35
|
+
*/
|
|
36
|
+
attributes?: Struct;
|
|
37
|
+
|
|
38
|
+
constructor(data?: PartialMessage<Group>) {
|
|
39
|
+
super();
|
|
40
|
+
proto3.util.initPartial(data, this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
44
|
+
static readonly typeName = "raystack.assets.v1beta2.Group";
|
|
45
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
46
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
47
|
+
{ no: 2, name: "members", kind: "message", T: Member, repeated: true },
|
|
48
|
+
{ no: 10, name: "attributes", kind: "message", T: Struct },
|
|
49
|
+
]);
|
|
50
|
+
|
|
51
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Group {
|
|
52
|
+
return new Group().fromBinary(bytes, options);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Group {
|
|
56
|
+
return new Group().fromJson(jsonValue, options);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Group {
|
|
60
|
+
return new Group().fromJsonString(jsonString, options);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static equals(a: Group | PlainMessage<Group> | undefined, b: Group | PlainMessage<Group> | undefined): boolean {
|
|
64
|
+
return proto3.util.equals(Group, a, b);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Member represents a user.
|
|
70
|
+
*
|
|
71
|
+
* @generated from message raystack.assets.v1beta2.Member
|
|
72
|
+
*/
|
|
73
|
+
export class Member extends Message<Member> {
|
|
74
|
+
/**
|
|
75
|
+
* The unique identifier for the user.
|
|
76
|
+
* Example: `user:example`.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: string urn = 1;
|
|
79
|
+
*/
|
|
80
|
+
urn = "";
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The role of the user.
|
|
84
|
+
* Example: `owner`.
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: string role = 2;
|
|
87
|
+
*/
|
|
88
|
+
role = "";
|
|
89
|
+
|
|
90
|
+
constructor(data?: PartialMessage<Member>) {
|
|
91
|
+
super();
|
|
92
|
+
proto3.util.initPartial(data, this);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
96
|
+
static readonly typeName = "raystack.assets.v1beta2.Member";
|
|
97
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
98
|
+
{ no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
99
|
+
{ no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
100
|
+
]);
|
|
101
|
+
|
|
102
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Member {
|
|
103
|
+
return new Member().fromBinary(bytes, options);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Member {
|
|
107
|
+
return new Member().fromJson(jsonValue, options);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Member {
|
|
111
|
+
return new Member().fromJsonString(jsonString, options);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static equals(a: Member | PlainMessage<Member> | undefined, b: Member | PlainMessage<Member> | undefined): boolean {
|
|
115
|
+
return proto3.util.equals(Member, a, b);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta2/job.proto" (package "raystack.assets.v1beta2", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
14
|
+
import { Struct } from "../../../google/protobuf/struct";
|
|
15
|
+
/**
|
|
16
|
+
* Job is a resource that represents a job.
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf message raystack.assets.v1beta2.Job
|
|
19
|
+
*/
|
|
20
|
+
export interface Job {
|
|
21
|
+
/**
|
|
22
|
+
* List of attributes the model has.
|
|
23
|
+
*
|
|
24
|
+
* @generated from protobuf field: google.protobuf.Struct attributes = 10
|
|
25
|
+
*/
|
|
26
|
+
attributes?: Struct;
|
|
27
|
+
/**
|
|
28
|
+
* The timestamp of the job's creation.
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf field: google.protobuf.Timestamp create_time = 101
|
|
31
|
+
*/
|
|
32
|
+
createTime?: Timestamp;
|
|
33
|
+
/**
|
|
34
|
+
* The timestamp when the job was last modified.
|
|
35
|
+
*
|
|
36
|
+
* @generated from protobuf field: google.protobuf.Timestamp update_time = 102
|
|
37
|
+
*/
|
|
38
|
+
updateTime?: Timestamp;
|
|
39
|
+
}
|
|
40
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
41
|
+
class Job$Type extends MessageType<Job> {
|
|
42
|
+
constructor() {
|
|
43
|
+
super("raystack.assets.v1beta2.Job", [
|
|
44
|
+
{ no: 10, name: "attributes", kind: "message", T: () => Struct },
|
|
45
|
+
{ no: 101, name: "create_time", kind: "message", T: () => Timestamp },
|
|
46
|
+
{ no: 102, name: "update_time", kind: "message", T: () => Timestamp }
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
create(value?: PartialMessage<Job>): Job {
|
|
50
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
51
|
+
if (value !== undefined)
|
|
52
|
+
reflectionMergePartial<Job>(this, message, value);
|
|
53
|
+
return message;
|
|
54
|
+
}
|
|
55
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Job): Job {
|
|
56
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
57
|
+
while (reader.pos < end) {
|
|
58
|
+
let [fieldNo, wireType] = reader.tag();
|
|
59
|
+
switch (fieldNo) {
|
|
60
|
+
case /* google.protobuf.Struct attributes */ 10:
|
|
61
|
+
message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
62
|
+
break;
|
|
63
|
+
case /* google.protobuf.Timestamp create_time */ 101:
|
|
64
|
+
message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
|
|
65
|
+
break;
|
|
66
|
+
case /* google.protobuf.Timestamp update_time */ 102:
|
|
67
|
+
message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
let u = options.readUnknownField;
|
|
71
|
+
if (u === "throw")
|
|
72
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
73
|
+
let d = reader.skip(wireType);
|
|
74
|
+
if (u !== false)
|
|
75
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return message;
|
|
79
|
+
}
|
|
80
|
+
internalBinaryWrite(message: Job, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
81
|
+
/* google.protobuf.Struct attributes = 10; */
|
|
82
|
+
if (message.attributes)
|
|
83
|
+
Struct.internalBinaryWrite(message.attributes, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
84
|
+
/* google.protobuf.Timestamp create_time = 101; */
|
|
85
|
+
if (message.createTime)
|
|
86
|
+
Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
|
|
87
|
+
/* google.protobuf.Timestamp update_time = 102; */
|
|
88
|
+
if (message.updateTime)
|
|
89
|
+
Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
|
|
90
|
+
let u = options.writeUnknownFields;
|
|
91
|
+
if (u !== false)
|
|
92
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
93
|
+
return writer;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta2.Job
|
|
98
|
+
*/
|
|
99
|
+
export const Job = new Job$Type();
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/assets/v1beta2/job.proto (package raystack.assets.v1beta2, 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, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Job is a resource that represents a job.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message raystack.assets.v1beta2.Job
|
|
13
|
+
*/
|
|
14
|
+
export class Job extends Message<Job> {
|
|
15
|
+
/**
|
|
16
|
+
* List of attributes the model has.
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: google.protobuf.Struct attributes = 10;
|
|
19
|
+
*/
|
|
20
|
+
attributes?: Struct;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The timestamp of the job's creation.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: google.protobuf.Timestamp create_time = 101;
|
|
26
|
+
*/
|
|
27
|
+
createTime?: Timestamp;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The timestamp when the job was last modified.
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: google.protobuf.Timestamp update_time = 102;
|
|
33
|
+
*/
|
|
34
|
+
updateTime?: Timestamp;
|
|
35
|
+
|
|
36
|
+
constructor(data?: PartialMessage<Job>) {
|
|
37
|
+
super();
|
|
38
|
+
proto3.util.initPartial(data, this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
42
|
+
static readonly typeName = "raystack.assets.v1beta2.Job";
|
|
43
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
44
|
+
{ no: 10, name: "attributes", kind: "message", T: Struct },
|
|
45
|
+
{ no: 101, name: "create_time", kind: "message", T: Timestamp },
|
|
46
|
+
{ no: 102, name: "update_time", kind: "message", T: Timestamp },
|
|
47
|
+
]);
|
|
48
|
+
|
|
49
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Job {
|
|
50
|
+
return new Job().fromBinary(bytes, options);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Job {
|
|
54
|
+
return new Job().fromJson(jsonValue, options);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Job {
|
|
58
|
+
return new Job().fromJsonString(jsonString, options);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static equals(a: Job | PlainMessage<Job> | undefined, b: Job | PlainMessage<Job> | undefined): boolean {
|
|
62
|
+
return proto3.util.equals(Job, a, b);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta2/metric.proto" (package "raystack.assets.v1beta2", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
14
|
+
import { Struct } from "../../../google/protobuf/struct";
|
|
15
|
+
/**
|
|
16
|
+
* A metric is a timeseries aggregation over a table that supports zero or more dimensions.
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf message raystack.assets.v1beta2.Metric
|
|
19
|
+
*/
|
|
20
|
+
export interface Metric {
|
|
21
|
+
/**
|
|
22
|
+
* Namespace of the metric. Something like `{project}-{model}` for dbt and
|
|
23
|
+
* `schema` for Cube.
|
|
24
|
+
*
|
|
25
|
+
* @generated from protobuf field: string namespace = 1
|
|
26
|
+
*/
|
|
27
|
+
namespace: string;
|
|
28
|
+
/**
|
|
29
|
+
* The field being used to calculate a metric.
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf field: string field_name = 2
|
|
32
|
+
*/
|
|
33
|
+
fieldName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Type of the evaluated metric. ex: count_distinct, average etc.
|
|
36
|
+
*
|
|
37
|
+
* @generated from protobuf field: string measure_type = 3
|
|
38
|
+
*/
|
|
39
|
+
measureType: string;
|
|
40
|
+
/**
|
|
41
|
+
* Optional: The query, possibly in SQL representation, with filters and aggregations.
|
|
42
|
+
*
|
|
43
|
+
* @generated from protobuf field: string query = 4
|
|
44
|
+
*/
|
|
45
|
+
query: string;
|
|
46
|
+
/**
|
|
47
|
+
* Optional: List of attributes the metric has. This could include the
|
|
48
|
+
* following:
|
|
49
|
+
* - time_grains[repeated string]: One or more "grains" at which the metric
|
|
50
|
+
* can be evaluated. Ex: [day, week, month].
|
|
51
|
+
* - dimensions[repeated string]: A list of dimensions to group or filter the
|
|
52
|
+
* metric by. Ex: [plan, country].
|
|
53
|
+
* - filters[repeated map<string, string>]: Predicates for the metric. Ex:
|
|
54
|
+
* [{"field": "is_paying", "operator": "is", "value": "true"}].
|
|
55
|
+
*
|
|
56
|
+
* @generated from protobuf field: google.protobuf.Struct attributes = 5
|
|
57
|
+
*/
|
|
58
|
+
attributes?: Struct;
|
|
59
|
+
/**
|
|
60
|
+
* The timestamp of the metric's creation.
|
|
61
|
+
*
|
|
62
|
+
* @generated from protobuf field: google.protobuf.Timestamp create_time = 101
|
|
63
|
+
*/
|
|
64
|
+
createTime?: Timestamp;
|
|
65
|
+
/**
|
|
66
|
+
* The timestamp when the metric was last modified.
|
|
67
|
+
*
|
|
68
|
+
* @generated from protobuf field: google.protobuf.Timestamp update_time = 102
|
|
69
|
+
*/
|
|
70
|
+
updateTime?: Timestamp;
|
|
71
|
+
}
|
|
72
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
73
|
+
class Metric$Type extends MessageType<Metric> {
|
|
74
|
+
constructor() {
|
|
75
|
+
super("raystack.assets.v1beta2.Metric", [
|
|
76
|
+
{ no: 1, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
77
|
+
{ no: 2, name: "field_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
78
|
+
{ no: 3, name: "measure_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
79
|
+
{ no: 4, name: "query", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
80
|
+
{ no: 5, name: "attributes", kind: "message", T: () => Struct },
|
|
81
|
+
{ no: 101, name: "create_time", kind: "message", T: () => Timestamp },
|
|
82
|
+
{ no: 102, name: "update_time", kind: "message", T: () => Timestamp }
|
|
83
|
+
]);
|
|
84
|
+
}
|
|
85
|
+
create(value?: PartialMessage<Metric>): Metric {
|
|
86
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
87
|
+
message.namespace = "";
|
|
88
|
+
message.fieldName = "";
|
|
89
|
+
message.measureType = "";
|
|
90
|
+
message.query = "";
|
|
91
|
+
if (value !== undefined)
|
|
92
|
+
reflectionMergePartial<Metric>(this, message, value);
|
|
93
|
+
return message;
|
|
94
|
+
}
|
|
95
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Metric): Metric {
|
|
96
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
97
|
+
while (reader.pos < end) {
|
|
98
|
+
let [fieldNo, wireType] = reader.tag();
|
|
99
|
+
switch (fieldNo) {
|
|
100
|
+
case /* string namespace */ 1:
|
|
101
|
+
message.namespace = reader.string();
|
|
102
|
+
break;
|
|
103
|
+
case /* string field_name */ 2:
|
|
104
|
+
message.fieldName = reader.string();
|
|
105
|
+
break;
|
|
106
|
+
case /* string measure_type */ 3:
|
|
107
|
+
message.measureType = reader.string();
|
|
108
|
+
break;
|
|
109
|
+
case /* string query */ 4:
|
|
110
|
+
message.query = reader.string();
|
|
111
|
+
break;
|
|
112
|
+
case /* google.protobuf.Struct attributes */ 5:
|
|
113
|
+
message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
114
|
+
break;
|
|
115
|
+
case /* google.protobuf.Timestamp create_time */ 101:
|
|
116
|
+
message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
|
|
117
|
+
break;
|
|
118
|
+
case /* google.protobuf.Timestamp update_time */ 102:
|
|
119
|
+
message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
|
|
120
|
+
break;
|
|
121
|
+
default:
|
|
122
|
+
let u = options.readUnknownField;
|
|
123
|
+
if (u === "throw")
|
|
124
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
125
|
+
let d = reader.skip(wireType);
|
|
126
|
+
if (u !== false)
|
|
127
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return message;
|
|
131
|
+
}
|
|
132
|
+
internalBinaryWrite(message: Metric, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
133
|
+
/* string namespace = 1; */
|
|
134
|
+
if (message.namespace !== "")
|
|
135
|
+
writer.tag(1, WireType.LengthDelimited).string(message.namespace);
|
|
136
|
+
/* string field_name = 2; */
|
|
137
|
+
if (message.fieldName !== "")
|
|
138
|
+
writer.tag(2, WireType.LengthDelimited).string(message.fieldName);
|
|
139
|
+
/* string measure_type = 3; */
|
|
140
|
+
if (message.measureType !== "")
|
|
141
|
+
writer.tag(3, WireType.LengthDelimited).string(message.measureType);
|
|
142
|
+
/* string query = 4; */
|
|
143
|
+
if (message.query !== "")
|
|
144
|
+
writer.tag(4, WireType.LengthDelimited).string(message.query);
|
|
145
|
+
/* google.protobuf.Struct attributes = 5; */
|
|
146
|
+
if (message.attributes)
|
|
147
|
+
Struct.internalBinaryWrite(message.attributes, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
148
|
+
/* google.protobuf.Timestamp create_time = 101; */
|
|
149
|
+
if (message.createTime)
|
|
150
|
+
Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
|
|
151
|
+
/* google.protobuf.Timestamp update_time = 102; */
|
|
152
|
+
if (message.updateTime)
|
|
153
|
+
Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
|
|
154
|
+
let u = options.writeUnknownFields;
|
|
155
|
+
if (u !== false)
|
|
156
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
157
|
+
return writer;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta2.Metric
|
|
162
|
+
*/
|
|
163
|
+
export const Metric = new Metric$Type();
|