@use-tusk/drift-schemas 0.1.32 → 0.1.33
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/README.md +3 -0
- package/dist/backend/span_export_service.client.d.ts +4 -4
- package/dist/backend/test_run_service.client.d.ts +4 -4
- package/dist/core/communication.client.d.ts +4 -4
- package/dist/query/span_query.cjs +1688 -0
- package/dist/query/span_query.cjs.map +1 -0
- package/dist/query/span_query.d.cts +842 -0
- package/dist/query/span_query.d.cts.map +1 -0
- package/dist/query/span_query.d.ts +842 -0
- package/dist/query/span_query.d.ts.map +1 -0
- package/dist/query/span_query.js +1664 -0
- package/dist/query/span_query.js.map +1 -0
- package/dist/query/span_query_helpers.cjs +2177 -0
- package/dist/query/span_query_helpers.cjs.map +1 -0
- package/dist/query/span_query_helpers.d.cts +326 -0
- package/dist/query/span_query_helpers.d.cts.map +1 -0
- package/dist/query/span_query_helpers.d.ts +326 -0
- package/dist/query/span_query_helpers.d.ts.map +1 -0
- package/dist/query/span_query_helpers.js +2146 -0
- package/dist/query/span_query_helpers.js.map +1 -0
- package/package.json +16 -3
|
@@ -0,0 +1,2177 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
let __protobuf_ts_runtime = require("@protobuf-ts/runtime");
|
|
25
|
+
__protobuf_ts_runtime = __toESM(__protobuf_ts_runtime);
|
|
26
|
+
|
|
27
|
+
//#region generated/ts/google/protobuf/struct.ts
|
|
28
|
+
/**
|
|
29
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
30
|
+
* `Value` type union.
|
|
31
|
+
*
|
|
32
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf enum google.protobuf.NullValue
|
|
35
|
+
*/
|
|
36
|
+
let NullValue = /* @__PURE__ */ function(NullValue$1) {
|
|
37
|
+
/**
|
|
38
|
+
* Null value.
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf enum value: NULL_VALUE = 0;
|
|
41
|
+
*/
|
|
42
|
+
NullValue$1[NullValue$1["NULL_VALUE"] = 0] = "NULL_VALUE";
|
|
43
|
+
return NullValue$1;
|
|
44
|
+
}({});
|
|
45
|
+
var Struct$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
46
|
+
constructor() {
|
|
47
|
+
super("google.protobuf.Struct", [{
|
|
48
|
+
no: 1,
|
|
49
|
+
name: "fields",
|
|
50
|
+
kind: "map",
|
|
51
|
+
K: 9,
|
|
52
|
+
V: {
|
|
53
|
+
kind: "message",
|
|
54
|
+
T: () => Value
|
|
55
|
+
}
|
|
56
|
+
}]);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Encode `Struct` to JSON object.
|
|
60
|
+
*/
|
|
61
|
+
internalJsonWrite(message, options) {
|
|
62
|
+
let json = {};
|
|
63
|
+
for (let [k, v] of Object.entries(message.fields)) json[k] = Value.toJson(v);
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Decode `Struct` from JSON object.
|
|
68
|
+
*/
|
|
69
|
+
internalJsonRead(json, options, target) {
|
|
70
|
+
if (!(0, __protobuf_ts_runtime.isJsonObject)(json)) throw new globalThis.Error("Unable to parse message " + this.typeName + " from JSON " + (0, __protobuf_ts_runtime.typeofJsonValue)(json) + ".");
|
|
71
|
+
if (!target) target = this.create();
|
|
72
|
+
for (let [k, v] of globalThis.Object.entries(json)) target.fields[k] = Value.fromJson(v);
|
|
73
|
+
return target;
|
|
74
|
+
}
|
|
75
|
+
create(value) {
|
|
76
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
77
|
+
message.fields = {};
|
|
78
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
79
|
+
return message;
|
|
80
|
+
}
|
|
81
|
+
internalBinaryRead(reader, length, options, target) {
|
|
82
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
83
|
+
while (reader.pos < end) {
|
|
84
|
+
let [fieldNo, wireType] = reader.tag();
|
|
85
|
+
switch (fieldNo) {
|
|
86
|
+
case 1:
|
|
87
|
+
this.binaryReadMap1(message.fields, reader, options);
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
let u = options.readUnknownField;
|
|
91
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
92
|
+
let d = reader.skip(wireType);
|
|
93
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return message;
|
|
97
|
+
}
|
|
98
|
+
binaryReadMap1(map, reader, options) {
|
|
99
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
100
|
+
while (reader.pos < end) {
|
|
101
|
+
let [fieldNo, wireType] = reader.tag();
|
|
102
|
+
switch (fieldNo) {
|
|
103
|
+
case 1:
|
|
104
|
+
key = reader.string();
|
|
105
|
+
break;
|
|
106
|
+
case 2:
|
|
107
|
+
val = Value.internalBinaryRead(reader, reader.uint32(), options);
|
|
108
|
+
break;
|
|
109
|
+
default: throw new globalThis.Error("unknown map entry field for google.protobuf.Struct.fields");
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
map[key ?? ""] = val ?? Value.create();
|
|
113
|
+
}
|
|
114
|
+
internalBinaryWrite(message, writer, options) {
|
|
115
|
+
for (let k of globalThis.Object.keys(message.fields)) {
|
|
116
|
+
writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).fork().tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(k);
|
|
117
|
+
writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).fork();
|
|
118
|
+
Value.internalBinaryWrite(message.fields[k], writer, options);
|
|
119
|
+
writer.join().join();
|
|
120
|
+
}
|
|
121
|
+
let u = options.writeUnknownFields;
|
|
122
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
123
|
+
return writer;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* @generated MessageType for protobuf message google.protobuf.Struct
|
|
128
|
+
*/
|
|
129
|
+
const Struct = new Struct$Type();
|
|
130
|
+
var Value$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
131
|
+
constructor() {
|
|
132
|
+
super("google.protobuf.Value", [
|
|
133
|
+
{
|
|
134
|
+
no: 1,
|
|
135
|
+
name: "null_value",
|
|
136
|
+
kind: "enum",
|
|
137
|
+
oneof: "kind",
|
|
138
|
+
T: () => ["google.protobuf.NullValue", NullValue]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
no: 2,
|
|
142
|
+
name: "number_value",
|
|
143
|
+
kind: "scalar",
|
|
144
|
+
oneof: "kind",
|
|
145
|
+
T: 1
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
no: 3,
|
|
149
|
+
name: "string_value",
|
|
150
|
+
kind: "scalar",
|
|
151
|
+
oneof: "kind",
|
|
152
|
+
T: 9
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
no: 4,
|
|
156
|
+
name: "bool_value",
|
|
157
|
+
kind: "scalar",
|
|
158
|
+
oneof: "kind",
|
|
159
|
+
T: 8
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
no: 5,
|
|
163
|
+
name: "struct_value",
|
|
164
|
+
kind: "message",
|
|
165
|
+
oneof: "kind",
|
|
166
|
+
T: () => Struct
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
no: 6,
|
|
170
|
+
name: "list_value",
|
|
171
|
+
kind: "message",
|
|
172
|
+
oneof: "kind",
|
|
173
|
+
T: () => ListValue
|
|
174
|
+
}
|
|
175
|
+
]);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Encode `Value` to JSON value.
|
|
179
|
+
*/
|
|
180
|
+
internalJsonWrite(message, options) {
|
|
181
|
+
if (message.kind.oneofKind === void 0) throw new globalThis.Error();
|
|
182
|
+
switch (message.kind.oneofKind) {
|
|
183
|
+
case void 0: throw new globalThis.Error();
|
|
184
|
+
case "boolValue": return message.kind.boolValue;
|
|
185
|
+
case "nullValue": return null;
|
|
186
|
+
case "numberValue":
|
|
187
|
+
let numberValue = message.kind.numberValue;
|
|
188
|
+
if (typeof numberValue == "number" && !Number.isFinite(numberValue)) throw new globalThis.Error();
|
|
189
|
+
return numberValue;
|
|
190
|
+
case "stringValue": return message.kind.stringValue;
|
|
191
|
+
case "listValue":
|
|
192
|
+
let listValueField = this.fields.find((f) => f.no === 6);
|
|
193
|
+
if (listValueField?.kind !== "message") throw new globalThis.Error();
|
|
194
|
+
return listValueField.T().toJson(message.kind.listValue);
|
|
195
|
+
case "structValue":
|
|
196
|
+
let structValueField = this.fields.find((f) => f.no === 5);
|
|
197
|
+
if (structValueField?.kind !== "message") throw new globalThis.Error();
|
|
198
|
+
return structValueField.T().toJson(message.kind.structValue);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Decode `Value` from JSON value.
|
|
203
|
+
*/
|
|
204
|
+
internalJsonRead(json, options, target) {
|
|
205
|
+
if (!target) target = this.create();
|
|
206
|
+
switch (typeof json) {
|
|
207
|
+
case "number":
|
|
208
|
+
target.kind = {
|
|
209
|
+
oneofKind: "numberValue",
|
|
210
|
+
numberValue: json
|
|
211
|
+
};
|
|
212
|
+
break;
|
|
213
|
+
case "string":
|
|
214
|
+
target.kind = {
|
|
215
|
+
oneofKind: "stringValue",
|
|
216
|
+
stringValue: json
|
|
217
|
+
};
|
|
218
|
+
break;
|
|
219
|
+
case "boolean":
|
|
220
|
+
target.kind = {
|
|
221
|
+
oneofKind: "boolValue",
|
|
222
|
+
boolValue: json
|
|
223
|
+
};
|
|
224
|
+
break;
|
|
225
|
+
case "object":
|
|
226
|
+
if (json === null) target.kind = {
|
|
227
|
+
oneofKind: "nullValue",
|
|
228
|
+
nullValue: NullValue.NULL_VALUE
|
|
229
|
+
};
|
|
230
|
+
else if (globalThis.Array.isArray(json)) target.kind = {
|
|
231
|
+
oneofKind: "listValue",
|
|
232
|
+
listValue: ListValue.fromJson(json)
|
|
233
|
+
};
|
|
234
|
+
else target.kind = {
|
|
235
|
+
oneofKind: "structValue",
|
|
236
|
+
structValue: Struct.fromJson(json)
|
|
237
|
+
};
|
|
238
|
+
break;
|
|
239
|
+
default: throw new globalThis.Error("Unable to parse " + this.typeName + " from JSON " + (0, __protobuf_ts_runtime.typeofJsonValue)(json));
|
|
240
|
+
}
|
|
241
|
+
return target;
|
|
242
|
+
}
|
|
243
|
+
create(value) {
|
|
244
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
245
|
+
message.kind = { oneofKind: void 0 };
|
|
246
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
247
|
+
return message;
|
|
248
|
+
}
|
|
249
|
+
internalBinaryRead(reader, length, options, target) {
|
|
250
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
251
|
+
while (reader.pos < end) {
|
|
252
|
+
let [fieldNo, wireType] = reader.tag();
|
|
253
|
+
switch (fieldNo) {
|
|
254
|
+
case 1:
|
|
255
|
+
message.kind = {
|
|
256
|
+
oneofKind: "nullValue",
|
|
257
|
+
nullValue: reader.int32()
|
|
258
|
+
};
|
|
259
|
+
break;
|
|
260
|
+
case 2:
|
|
261
|
+
message.kind = {
|
|
262
|
+
oneofKind: "numberValue",
|
|
263
|
+
numberValue: reader.double()
|
|
264
|
+
};
|
|
265
|
+
break;
|
|
266
|
+
case 3:
|
|
267
|
+
message.kind = {
|
|
268
|
+
oneofKind: "stringValue",
|
|
269
|
+
stringValue: reader.string()
|
|
270
|
+
};
|
|
271
|
+
break;
|
|
272
|
+
case 4:
|
|
273
|
+
message.kind = {
|
|
274
|
+
oneofKind: "boolValue",
|
|
275
|
+
boolValue: reader.bool()
|
|
276
|
+
};
|
|
277
|
+
break;
|
|
278
|
+
case 5:
|
|
279
|
+
message.kind = {
|
|
280
|
+
oneofKind: "structValue",
|
|
281
|
+
structValue: Struct.internalBinaryRead(reader, reader.uint32(), options, message.kind.structValue)
|
|
282
|
+
};
|
|
283
|
+
break;
|
|
284
|
+
case 6:
|
|
285
|
+
message.kind = {
|
|
286
|
+
oneofKind: "listValue",
|
|
287
|
+
listValue: ListValue.internalBinaryRead(reader, reader.uint32(), options, message.kind.listValue)
|
|
288
|
+
};
|
|
289
|
+
break;
|
|
290
|
+
default:
|
|
291
|
+
let u = options.readUnknownField;
|
|
292
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
293
|
+
let d = reader.skip(wireType);
|
|
294
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
return message;
|
|
298
|
+
}
|
|
299
|
+
internalBinaryWrite(message, writer, options) {
|
|
300
|
+
if (message.kind.oneofKind === "nullValue") writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int32(message.kind.nullValue);
|
|
301
|
+
if (message.kind.oneofKind === "numberValue") writer.tag(2, __protobuf_ts_runtime.WireType.Bit64).double(message.kind.numberValue);
|
|
302
|
+
if (message.kind.oneofKind === "stringValue") writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.kind.stringValue);
|
|
303
|
+
if (message.kind.oneofKind === "boolValue") writer.tag(4, __protobuf_ts_runtime.WireType.Varint).bool(message.kind.boolValue);
|
|
304
|
+
if (message.kind.oneofKind === "structValue") Struct.internalBinaryWrite(message.kind.structValue, writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
305
|
+
if (message.kind.oneofKind === "listValue") ListValue.internalBinaryWrite(message.kind.listValue, writer.tag(6, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
306
|
+
let u = options.writeUnknownFields;
|
|
307
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
308
|
+
return writer;
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* @generated MessageType for protobuf message google.protobuf.Value
|
|
313
|
+
*/
|
|
314
|
+
const Value = new Value$Type();
|
|
315
|
+
var ListValue$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
316
|
+
constructor() {
|
|
317
|
+
super("google.protobuf.ListValue", [{
|
|
318
|
+
no: 1,
|
|
319
|
+
name: "values",
|
|
320
|
+
kind: "message",
|
|
321
|
+
repeat: 2,
|
|
322
|
+
T: () => Value
|
|
323
|
+
}]);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Encode `ListValue` to JSON array.
|
|
327
|
+
*/
|
|
328
|
+
internalJsonWrite(message, options) {
|
|
329
|
+
return message.values.map((v) => Value.toJson(v));
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Decode `ListValue` from JSON array.
|
|
333
|
+
*/
|
|
334
|
+
internalJsonRead(json, options, target) {
|
|
335
|
+
if (!globalThis.Array.isArray(json)) throw new globalThis.Error("Unable to parse " + this.typeName + " from JSON " + (0, __protobuf_ts_runtime.typeofJsonValue)(json));
|
|
336
|
+
if (!target) target = this.create();
|
|
337
|
+
let values = json.map((v) => Value.fromJson(v));
|
|
338
|
+
target.values.push(...values);
|
|
339
|
+
return target;
|
|
340
|
+
}
|
|
341
|
+
create(value) {
|
|
342
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
343
|
+
message.values = [];
|
|
344
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
345
|
+
return message;
|
|
346
|
+
}
|
|
347
|
+
internalBinaryRead(reader, length, options, target) {
|
|
348
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
349
|
+
while (reader.pos < end) {
|
|
350
|
+
let [fieldNo, wireType] = reader.tag();
|
|
351
|
+
switch (fieldNo) {
|
|
352
|
+
case 1:
|
|
353
|
+
message.values.push(Value.internalBinaryRead(reader, reader.uint32(), options));
|
|
354
|
+
break;
|
|
355
|
+
default:
|
|
356
|
+
let u = options.readUnknownField;
|
|
357
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
358
|
+
let d = reader.skip(wireType);
|
|
359
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return message;
|
|
363
|
+
}
|
|
364
|
+
internalBinaryWrite(message, writer, options) {
|
|
365
|
+
for (let i = 0; i < message.values.length; i++) Value.internalBinaryWrite(message.values[i], writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
366
|
+
let u = options.writeUnknownFields;
|
|
367
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
368
|
+
return writer;
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* @generated MessageType for protobuf message google.protobuf.ListValue
|
|
373
|
+
*/
|
|
374
|
+
const ListValue = new ListValue$Type();
|
|
375
|
+
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region generated/ts/google/protobuf/timestamp.ts
|
|
378
|
+
var Timestamp$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
379
|
+
constructor() {
|
|
380
|
+
super("google.protobuf.Timestamp", [{
|
|
381
|
+
no: 1,
|
|
382
|
+
name: "seconds",
|
|
383
|
+
kind: "scalar",
|
|
384
|
+
T: 3,
|
|
385
|
+
L: 0
|
|
386
|
+
}, {
|
|
387
|
+
no: 2,
|
|
388
|
+
name: "nanos",
|
|
389
|
+
kind: "scalar",
|
|
390
|
+
T: 5
|
|
391
|
+
}]);
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Creates a new `Timestamp` for the current time.
|
|
395
|
+
*/
|
|
396
|
+
now() {
|
|
397
|
+
const msg = this.create();
|
|
398
|
+
const ms = Date.now();
|
|
399
|
+
msg.seconds = __protobuf_ts_runtime.PbLong.from(Math.floor(ms / 1e3)).toBigInt();
|
|
400
|
+
msg.nanos = ms % 1e3 * 1e6;
|
|
401
|
+
return msg;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Converts a `Timestamp` to a JavaScript Date.
|
|
405
|
+
*/
|
|
406
|
+
toDate(message) {
|
|
407
|
+
return new Date(__protobuf_ts_runtime.PbLong.from(message.seconds).toNumber() * 1e3 + Math.ceil(message.nanos / 1e6));
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Converts a JavaScript Date to a `Timestamp`.
|
|
411
|
+
*/
|
|
412
|
+
fromDate(date) {
|
|
413
|
+
const msg = this.create();
|
|
414
|
+
const ms = date.getTime();
|
|
415
|
+
msg.seconds = __protobuf_ts_runtime.PbLong.from(Math.floor(ms / 1e3)).toBigInt();
|
|
416
|
+
msg.nanos = (ms % 1e3 + (ms < 0 && ms % 1e3 !== 0 ? 1e3 : 0)) * 1e6;
|
|
417
|
+
return msg;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* In JSON format, the `Timestamp` type is encoded as a string
|
|
421
|
+
* in the RFC 3339 format.
|
|
422
|
+
*/
|
|
423
|
+
internalJsonWrite(message, options) {
|
|
424
|
+
let ms = __protobuf_ts_runtime.PbLong.from(message.seconds).toNumber() * 1e3;
|
|
425
|
+
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z")) throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
426
|
+
if (message.nanos < 0) throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
|
|
427
|
+
let z = "Z";
|
|
428
|
+
if (message.nanos > 0) {
|
|
429
|
+
let nanosStr = (message.nanos + 1e9).toString().substring(1);
|
|
430
|
+
if (nanosStr.substring(3) === "000000") z = "." + nanosStr.substring(0, 3) + "Z";
|
|
431
|
+
else if (nanosStr.substring(6) === "000") z = "." + nanosStr.substring(0, 6) + "Z";
|
|
432
|
+
else z = "." + nanosStr + "Z";
|
|
433
|
+
}
|
|
434
|
+
return new Date(ms).toISOString().replace(".000Z", z);
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* In JSON format, the `Timestamp` type is encoded as a string
|
|
438
|
+
* in the RFC 3339 format.
|
|
439
|
+
*/
|
|
440
|
+
internalJsonRead(json, options, target) {
|
|
441
|
+
if (typeof json !== "string") throw new Error("Unable to parse Timestamp from JSON " + (0, __protobuf_ts_runtime.typeofJsonValue)(json) + ".");
|
|
442
|
+
let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
|
|
443
|
+
if (!matches) throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
|
|
444
|
+
let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
|
|
445
|
+
if (Number.isNaN(ms)) throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
|
|
446
|
+
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z")) throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
447
|
+
if (!target) target = this.create();
|
|
448
|
+
target.seconds = __protobuf_ts_runtime.PbLong.from(ms / 1e3).toBigInt();
|
|
449
|
+
target.nanos = 0;
|
|
450
|
+
if (matches[7]) target.nanos = parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1e9;
|
|
451
|
+
return target;
|
|
452
|
+
}
|
|
453
|
+
create(value) {
|
|
454
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
455
|
+
message.seconds = 0n;
|
|
456
|
+
message.nanos = 0;
|
|
457
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
458
|
+
return message;
|
|
459
|
+
}
|
|
460
|
+
internalBinaryRead(reader, length, options, target) {
|
|
461
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
462
|
+
while (reader.pos < end) {
|
|
463
|
+
let [fieldNo, wireType] = reader.tag();
|
|
464
|
+
switch (fieldNo) {
|
|
465
|
+
case 1:
|
|
466
|
+
message.seconds = reader.int64().toBigInt();
|
|
467
|
+
break;
|
|
468
|
+
case 2:
|
|
469
|
+
message.nanos = reader.int32();
|
|
470
|
+
break;
|
|
471
|
+
default:
|
|
472
|
+
let u = options.readUnknownField;
|
|
473
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
474
|
+
let d = reader.skip(wireType);
|
|
475
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return message;
|
|
479
|
+
}
|
|
480
|
+
internalBinaryWrite(message, writer, options) {
|
|
481
|
+
if (message.seconds !== 0n) writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int64(message.seconds);
|
|
482
|
+
if (message.nanos !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.nanos);
|
|
483
|
+
let u = options.writeUnknownFields;
|
|
484
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
485
|
+
return writer;
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* @generated MessageType for protobuf message google.protobuf.Timestamp
|
|
490
|
+
*/
|
|
491
|
+
const Timestamp = new Timestamp$Type();
|
|
492
|
+
|
|
493
|
+
//#endregion
|
|
494
|
+
//#region generated/ts/query/span_query.ts
|
|
495
|
+
/**
|
|
496
|
+
* Selectable fields when fetching spans by ID.
|
|
497
|
+
*
|
|
498
|
+
* @generated from protobuf enum tusk.drift.query.v1.SelectableSpanField
|
|
499
|
+
*/
|
|
500
|
+
let SelectableSpanField = /* @__PURE__ */ function(SelectableSpanField$1) {
|
|
501
|
+
/**
|
|
502
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_UNSPECIFIED = 0;
|
|
503
|
+
*/
|
|
504
|
+
SelectableSpanField$1[SelectableSpanField$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
505
|
+
/**
|
|
506
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_ID = 1;
|
|
507
|
+
*/
|
|
508
|
+
SelectableSpanField$1[SelectableSpanField$1["ID"] = 1] = "ID";
|
|
509
|
+
/**
|
|
510
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_SPAN_ID = 2;
|
|
511
|
+
*/
|
|
512
|
+
SelectableSpanField$1[SelectableSpanField$1["SPAN_ID"] = 2] = "SPAN_ID";
|
|
513
|
+
/**
|
|
514
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_TRACE_ID = 3;
|
|
515
|
+
*/
|
|
516
|
+
SelectableSpanField$1[SelectableSpanField$1["TRACE_ID"] = 3] = "TRACE_ID";
|
|
517
|
+
/**
|
|
518
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_PARENT_SPAN_ID = 4;
|
|
519
|
+
*/
|
|
520
|
+
SelectableSpanField$1[SelectableSpanField$1["PARENT_SPAN_ID"] = 4] = "PARENT_SPAN_ID";
|
|
521
|
+
/**
|
|
522
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_NAME = 5;
|
|
523
|
+
*/
|
|
524
|
+
SelectableSpanField$1[SelectableSpanField$1["NAME"] = 5] = "NAME";
|
|
525
|
+
/**
|
|
526
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_KIND = 6;
|
|
527
|
+
*/
|
|
528
|
+
SelectableSpanField$1[SelectableSpanField$1["KIND"] = 6] = "KIND";
|
|
529
|
+
/**
|
|
530
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_STATUS = 7;
|
|
531
|
+
*/
|
|
532
|
+
SelectableSpanField$1[SelectableSpanField$1["STATUS"] = 7] = "STATUS";
|
|
533
|
+
/**
|
|
534
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_TIMESTAMP = 8;
|
|
535
|
+
*/
|
|
536
|
+
SelectableSpanField$1[SelectableSpanField$1["TIMESTAMP"] = 8] = "TIMESTAMP";
|
|
537
|
+
/**
|
|
538
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_DURATION = 9;
|
|
539
|
+
*/
|
|
540
|
+
SelectableSpanField$1[SelectableSpanField$1["DURATION"] = 9] = "DURATION";
|
|
541
|
+
/**
|
|
542
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_IS_ROOT_SPAN = 10;
|
|
543
|
+
*/
|
|
544
|
+
SelectableSpanField$1[SelectableSpanField$1["IS_ROOT_SPAN"] = 10] = "IS_ROOT_SPAN";
|
|
545
|
+
/**
|
|
546
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_METADATA = 11;
|
|
547
|
+
*/
|
|
548
|
+
SelectableSpanField$1[SelectableSpanField$1["METADATA"] = 11] = "METADATA";
|
|
549
|
+
/**
|
|
550
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_PACKAGE_NAME = 12;
|
|
551
|
+
*/
|
|
552
|
+
SelectableSpanField$1[SelectableSpanField$1["PACKAGE_NAME"] = 12] = "PACKAGE_NAME";
|
|
553
|
+
/**
|
|
554
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_INSTRUMENTATION_NAME = 13;
|
|
555
|
+
*/
|
|
556
|
+
SelectableSpanField$1[SelectableSpanField$1["INSTRUMENTATION_NAME"] = 13] = "INSTRUMENTATION_NAME";
|
|
557
|
+
/**
|
|
558
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_INPUT_VALUE = 14;
|
|
559
|
+
*/
|
|
560
|
+
SelectableSpanField$1[SelectableSpanField$1["INPUT_VALUE"] = 14] = "INPUT_VALUE";
|
|
561
|
+
/**
|
|
562
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_OUTPUT_VALUE = 15;
|
|
563
|
+
*/
|
|
564
|
+
SelectableSpanField$1[SelectableSpanField$1["OUTPUT_VALUE"] = 15] = "OUTPUT_VALUE";
|
|
565
|
+
/**
|
|
566
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_INPUT_SCHEMA = 16;
|
|
567
|
+
*/
|
|
568
|
+
SelectableSpanField$1[SelectableSpanField$1["INPUT_SCHEMA"] = 16] = "INPUT_SCHEMA";
|
|
569
|
+
/**
|
|
570
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_OUTPUT_SCHEMA = 17;
|
|
571
|
+
*/
|
|
572
|
+
SelectableSpanField$1[SelectableSpanField$1["OUTPUT_SCHEMA"] = 17] = "OUTPUT_SCHEMA";
|
|
573
|
+
/**
|
|
574
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_ENVIRONMENT = 18;
|
|
575
|
+
*/
|
|
576
|
+
SelectableSpanField$1[SelectableSpanField$1["ENVIRONMENT"] = 18] = "ENVIRONMENT";
|
|
577
|
+
/**
|
|
578
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_CREATED_AT = 19;
|
|
579
|
+
*/
|
|
580
|
+
SelectableSpanField$1[SelectableSpanField$1["CREATED_AT"] = 19] = "CREATED_AT";
|
|
581
|
+
/**
|
|
582
|
+
* @generated from protobuf enum value: SELECTABLE_SPAN_FIELD_UPDATED_AT = 20;
|
|
583
|
+
*/
|
|
584
|
+
SelectableSpanField$1[SelectableSpanField$1["UPDATED_AT"] = 20] = "UPDATED_AT";
|
|
585
|
+
return SelectableSpanField$1;
|
|
586
|
+
}({});
|
|
587
|
+
/**
|
|
588
|
+
* Optional cast applied before comparisons.
|
|
589
|
+
*
|
|
590
|
+
* @generated from protobuf enum tusk.drift.query.v1.CastType
|
|
591
|
+
*/
|
|
592
|
+
let CastType = /* @__PURE__ */ function(CastType$1) {
|
|
593
|
+
/**
|
|
594
|
+
* @generated from protobuf enum value: CAST_TYPE_UNSPECIFIED = 0;
|
|
595
|
+
*/
|
|
596
|
+
CastType$1[CastType$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
597
|
+
/**
|
|
598
|
+
* @generated from protobuf enum value: CAST_TYPE_TEXT = 1;
|
|
599
|
+
*/
|
|
600
|
+
CastType$1[CastType$1["TEXT"] = 1] = "TEXT";
|
|
601
|
+
/**
|
|
602
|
+
* @generated from protobuf enum value: CAST_TYPE_INT = 2;
|
|
603
|
+
*/
|
|
604
|
+
CastType$1[CastType$1["INT"] = 2] = "INT";
|
|
605
|
+
/**
|
|
606
|
+
* @generated from protobuf enum value: CAST_TYPE_FLOAT = 3;
|
|
607
|
+
*/
|
|
608
|
+
CastType$1[CastType$1["FLOAT"] = 3] = "FLOAT";
|
|
609
|
+
/**
|
|
610
|
+
* @generated from protobuf enum value: CAST_TYPE_BOOLEAN = 4;
|
|
611
|
+
*/
|
|
612
|
+
CastType$1[CastType$1["BOOLEAN"] = 4] = "BOOLEAN";
|
|
613
|
+
return CastType$1;
|
|
614
|
+
}({});
|
|
615
|
+
/**
|
|
616
|
+
* Optional decoding applied before an additional JSONPath extraction.
|
|
617
|
+
*
|
|
618
|
+
* @generated from protobuf enum tusk.drift.query.v1.DecodeStrategy
|
|
619
|
+
*/
|
|
620
|
+
let DecodeStrategy = /* @__PURE__ */ function(DecodeStrategy$1) {
|
|
621
|
+
/**
|
|
622
|
+
* @generated from protobuf enum value: DECODE_STRATEGY_UNSPECIFIED = 0;
|
|
623
|
+
*/
|
|
624
|
+
DecodeStrategy$1[DecodeStrategy$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
625
|
+
/**
|
|
626
|
+
* @generated from protobuf enum value: DECODE_STRATEGY_BASE64 = 1;
|
|
627
|
+
*/
|
|
628
|
+
DecodeStrategy$1[DecodeStrategy$1["BASE64"] = 1] = "BASE64";
|
|
629
|
+
return DecodeStrategy$1;
|
|
630
|
+
}({});
|
|
631
|
+
/**
|
|
632
|
+
* @generated from protobuf enum tusk.drift.query.v1.SortDirection
|
|
633
|
+
*/
|
|
634
|
+
let SortDirection = /* @__PURE__ */ function(SortDirection$1) {
|
|
635
|
+
/**
|
|
636
|
+
* @generated from protobuf enum value: SORT_DIRECTION_UNSPECIFIED = 0;
|
|
637
|
+
*/
|
|
638
|
+
SortDirection$1[SortDirection$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
639
|
+
/**
|
|
640
|
+
* @generated from protobuf enum value: SORT_DIRECTION_ASC = 1;
|
|
641
|
+
*/
|
|
642
|
+
SortDirection$1[SortDirection$1["ASC"] = 1] = "ASC";
|
|
643
|
+
/**
|
|
644
|
+
* @generated from protobuf enum value: SORT_DIRECTION_DESC = 2;
|
|
645
|
+
*/
|
|
646
|
+
SortDirection$1[SortDirection$1["DESC"] = 2] = "DESC";
|
|
647
|
+
return SortDirection$1;
|
|
648
|
+
}({});
|
|
649
|
+
/**
|
|
650
|
+
* @generated from protobuf enum tusk.drift.query.v1.SpanSortField
|
|
651
|
+
*/
|
|
652
|
+
let SpanSortField = /* @__PURE__ */ function(SpanSortField$1) {
|
|
653
|
+
/**
|
|
654
|
+
* @generated from protobuf enum value: SPAN_SORT_FIELD_UNSPECIFIED = 0;
|
|
655
|
+
*/
|
|
656
|
+
SpanSortField$1[SpanSortField$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
657
|
+
/**
|
|
658
|
+
* @generated from protobuf enum value: SPAN_SORT_FIELD_TIMESTAMP = 1;
|
|
659
|
+
*/
|
|
660
|
+
SpanSortField$1[SpanSortField$1["TIMESTAMP"] = 1] = "TIMESTAMP";
|
|
661
|
+
/**
|
|
662
|
+
* @generated from protobuf enum value: SPAN_SORT_FIELD_CREATED_AT = 2;
|
|
663
|
+
*/
|
|
664
|
+
SpanSortField$1[SpanSortField$1["CREATED_AT"] = 2] = "CREATED_AT";
|
|
665
|
+
/**
|
|
666
|
+
* @generated from protobuf enum value: SPAN_SORT_FIELD_UPDATED_AT = 3;
|
|
667
|
+
*/
|
|
668
|
+
SpanSortField$1[SpanSortField$1["UPDATED_AT"] = 3] = "UPDATED_AT";
|
|
669
|
+
/**
|
|
670
|
+
* @generated from protobuf enum value: SPAN_SORT_FIELD_DURATION = 4;
|
|
671
|
+
*/
|
|
672
|
+
SpanSortField$1[SpanSortField$1["DURATION"] = 4] = "DURATION";
|
|
673
|
+
/**
|
|
674
|
+
* @generated from protobuf enum value: SPAN_SORT_FIELD_NAME = 5;
|
|
675
|
+
*/
|
|
676
|
+
SpanSortField$1[SpanSortField$1["NAME"] = 5] = "NAME";
|
|
677
|
+
/**
|
|
678
|
+
* @generated from protobuf enum value: SPAN_SORT_FIELD_TRACE_ID = 6;
|
|
679
|
+
*/
|
|
680
|
+
SpanSortField$1[SpanSortField$1["TRACE_ID"] = 6] = "TRACE_ID";
|
|
681
|
+
return SpanSortField$1;
|
|
682
|
+
}({});
|
|
683
|
+
/**
|
|
684
|
+
* @generated from protobuf enum tusk.drift.query.v1.AggregateMetric
|
|
685
|
+
*/
|
|
686
|
+
let AggregateMetric = /* @__PURE__ */ function(AggregateMetric$1) {
|
|
687
|
+
/**
|
|
688
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_UNSPECIFIED = 0;
|
|
689
|
+
*/
|
|
690
|
+
AggregateMetric$1[AggregateMetric$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
691
|
+
/**
|
|
692
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_COUNT = 1;
|
|
693
|
+
*/
|
|
694
|
+
AggregateMetric$1[AggregateMetric$1["COUNT"] = 1] = "COUNT";
|
|
695
|
+
/**
|
|
696
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_ERROR_COUNT = 2;
|
|
697
|
+
*/
|
|
698
|
+
AggregateMetric$1[AggregateMetric$1["ERROR_COUNT"] = 2] = "ERROR_COUNT";
|
|
699
|
+
/**
|
|
700
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_ERROR_RATE = 3;
|
|
701
|
+
*/
|
|
702
|
+
AggregateMetric$1[AggregateMetric$1["ERROR_RATE"] = 3] = "ERROR_RATE";
|
|
703
|
+
/**
|
|
704
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_AVG_DURATION = 4;
|
|
705
|
+
*/
|
|
706
|
+
AggregateMetric$1[AggregateMetric$1["AVG_DURATION"] = 4] = "AVG_DURATION";
|
|
707
|
+
/**
|
|
708
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_MIN_DURATION = 5;
|
|
709
|
+
*/
|
|
710
|
+
AggregateMetric$1[AggregateMetric$1["MIN_DURATION"] = 5] = "MIN_DURATION";
|
|
711
|
+
/**
|
|
712
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_MAX_DURATION = 6;
|
|
713
|
+
*/
|
|
714
|
+
AggregateMetric$1[AggregateMetric$1["MAX_DURATION"] = 6] = "MAX_DURATION";
|
|
715
|
+
/**
|
|
716
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_P50_DURATION = 7;
|
|
717
|
+
*/
|
|
718
|
+
AggregateMetric$1[AggregateMetric$1["P50_DURATION"] = 7] = "P50_DURATION";
|
|
719
|
+
/**
|
|
720
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_P95_DURATION = 8;
|
|
721
|
+
*/
|
|
722
|
+
AggregateMetric$1[AggregateMetric$1["P95_DURATION"] = 8] = "P95_DURATION";
|
|
723
|
+
/**
|
|
724
|
+
* @generated from protobuf enum value: AGGREGATE_METRIC_P99_DURATION = 9;
|
|
725
|
+
*/
|
|
726
|
+
AggregateMetric$1[AggregateMetric$1["P99_DURATION"] = 9] = "P99_DURATION";
|
|
727
|
+
return AggregateMetric$1;
|
|
728
|
+
}({});
|
|
729
|
+
/**
|
|
730
|
+
* @generated from protobuf enum tusk.drift.query.v1.AggregateGroupField
|
|
731
|
+
*/
|
|
732
|
+
let AggregateGroupField = /* @__PURE__ */ function(AggregateGroupField$1) {
|
|
733
|
+
/**
|
|
734
|
+
* @generated from protobuf enum value: AGGREGATE_GROUP_FIELD_UNSPECIFIED = 0;
|
|
735
|
+
*/
|
|
736
|
+
AggregateGroupField$1[AggregateGroupField$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
737
|
+
/**
|
|
738
|
+
* @generated from protobuf enum value: AGGREGATE_GROUP_FIELD_NAME = 1;
|
|
739
|
+
*/
|
|
740
|
+
AggregateGroupField$1[AggregateGroupField$1["NAME"] = 1] = "NAME";
|
|
741
|
+
/**
|
|
742
|
+
* @generated from protobuf enum value: AGGREGATE_GROUP_FIELD_KIND = 2;
|
|
743
|
+
*/
|
|
744
|
+
AggregateGroupField$1[AggregateGroupField$1["KIND"] = 2] = "KIND";
|
|
745
|
+
/**
|
|
746
|
+
* @generated from protobuf enum value: AGGREGATE_GROUP_FIELD_PACKAGE_NAME = 3;
|
|
747
|
+
*/
|
|
748
|
+
AggregateGroupField$1[AggregateGroupField$1["PACKAGE_NAME"] = 3] = "PACKAGE_NAME";
|
|
749
|
+
/**
|
|
750
|
+
* @generated from protobuf enum value: AGGREGATE_GROUP_FIELD_INSTRUMENTATION_NAME = 4;
|
|
751
|
+
*/
|
|
752
|
+
AggregateGroupField$1[AggregateGroupField$1["INSTRUMENTATION_NAME"] = 4] = "INSTRUMENTATION_NAME";
|
|
753
|
+
/**
|
|
754
|
+
* @generated from protobuf enum value: AGGREGATE_GROUP_FIELD_ENVIRONMENT = 5;
|
|
755
|
+
*/
|
|
756
|
+
AggregateGroupField$1[AggregateGroupField$1["ENVIRONMENT"] = 5] = "ENVIRONMENT";
|
|
757
|
+
/**
|
|
758
|
+
* @generated from protobuf enum value: AGGREGATE_GROUP_FIELD_STATUS_CODE = 6;
|
|
759
|
+
*/
|
|
760
|
+
AggregateGroupField$1[AggregateGroupField$1["STATUS_CODE"] = 6] = "STATUS_CODE";
|
|
761
|
+
return AggregateGroupField$1;
|
|
762
|
+
}({});
|
|
763
|
+
/**
|
|
764
|
+
* @generated from protobuf enum tusk.drift.query.v1.TimeBucket
|
|
765
|
+
*/
|
|
766
|
+
let TimeBucket = /* @__PURE__ */ function(TimeBucket$1) {
|
|
767
|
+
/**
|
|
768
|
+
* @generated from protobuf enum value: TIME_BUCKET_UNSPECIFIED = 0;
|
|
769
|
+
*/
|
|
770
|
+
TimeBucket$1[TimeBucket$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
771
|
+
/**
|
|
772
|
+
* @generated from protobuf enum value: TIME_BUCKET_HOUR = 1;
|
|
773
|
+
*/
|
|
774
|
+
TimeBucket$1[TimeBucket$1["HOUR"] = 1] = "HOUR";
|
|
775
|
+
/**
|
|
776
|
+
* @generated from protobuf enum value: TIME_BUCKET_DAY = 2;
|
|
777
|
+
*/
|
|
778
|
+
TimeBucket$1[TimeBucket$1["DAY"] = 2] = "DAY";
|
|
779
|
+
/**
|
|
780
|
+
* @generated from protobuf enum value: TIME_BUCKET_WEEK = 3;
|
|
781
|
+
*/
|
|
782
|
+
TimeBucket$1[TimeBucket$1["WEEK"] = 3] = "WEEK";
|
|
783
|
+
return TimeBucket$1;
|
|
784
|
+
}({});
|
|
785
|
+
var TimestampRange$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
786
|
+
constructor() {
|
|
787
|
+
super("tusk.drift.query.v1.TimestampRange", [{
|
|
788
|
+
no: 1,
|
|
789
|
+
name: "start",
|
|
790
|
+
kind: "message",
|
|
791
|
+
T: () => Timestamp
|
|
792
|
+
}, {
|
|
793
|
+
no: 2,
|
|
794
|
+
name: "end",
|
|
795
|
+
kind: "message",
|
|
796
|
+
T: () => Timestamp
|
|
797
|
+
}]);
|
|
798
|
+
}
|
|
799
|
+
create(value) {
|
|
800
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
801
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
802
|
+
return message;
|
|
803
|
+
}
|
|
804
|
+
internalBinaryRead(reader, length, options, target) {
|
|
805
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
806
|
+
while (reader.pos < end) {
|
|
807
|
+
let [fieldNo, wireType] = reader.tag();
|
|
808
|
+
switch (fieldNo) {
|
|
809
|
+
case 1:
|
|
810
|
+
message.start = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.start);
|
|
811
|
+
break;
|
|
812
|
+
case 2:
|
|
813
|
+
message.end = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.end);
|
|
814
|
+
break;
|
|
815
|
+
default:
|
|
816
|
+
let u = options.readUnknownField;
|
|
817
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
818
|
+
let d = reader.skip(wireType);
|
|
819
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
return message;
|
|
823
|
+
}
|
|
824
|
+
internalBinaryWrite(message, writer, options) {
|
|
825
|
+
if (message.start) Timestamp.internalBinaryWrite(message.start, writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
826
|
+
if (message.end) Timestamp.internalBinaryWrite(message.end, writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
827
|
+
let u = options.writeUnknownFields;
|
|
828
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
829
|
+
return writer;
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
/**
|
|
833
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.TimestampRange
|
|
834
|
+
*/
|
|
835
|
+
const TimestampRange = new TimestampRange$Type();
|
|
836
|
+
var FieldAccess$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
837
|
+
constructor() {
|
|
838
|
+
super("tusk.drift.query.v1.FieldAccess", [
|
|
839
|
+
{
|
|
840
|
+
no: 1,
|
|
841
|
+
name: "cast_as",
|
|
842
|
+
kind: "enum",
|
|
843
|
+
T: () => [
|
|
844
|
+
"tusk.drift.query.v1.CastType",
|
|
845
|
+
CastType,
|
|
846
|
+
"CAST_TYPE_"
|
|
847
|
+
]
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
no: 2,
|
|
851
|
+
name: "decode",
|
|
852
|
+
kind: "enum",
|
|
853
|
+
T: () => [
|
|
854
|
+
"tusk.drift.query.v1.DecodeStrategy",
|
|
855
|
+
DecodeStrategy,
|
|
856
|
+
"DECODE_STRATEGY_"
|
|
857
|
+
]
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
no: 3,
|
|
861
|
+
name: "then_path",
|
|
862
|
+
kind: "scalar",
|
|
863
|
+
opt: true,
|
|
864
|
+
T: 9
|
|
865
|
+
}
|
|
866
|
+
]);
|
|
867
|
+
}
|
|
868
|
+
create(value) {
|
|
869
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
870
|
+
message.castAs = 0;
|
|
871
|
+
message.decode = 0;
|
|
872
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
873
|
+
return message;
|
|
874
|
+
}
|
|
875
|
+
internalBinaryRead(reader, length, options, target) {
|
|
876
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
877
|
+
while (reader.pos < end) {
|
|
878
|
+
let [fieldNo, wireType] = reader.tag();
|
|
879
|
+
switch (fieldNo) {
|
|
880
|
+
case 1:
|
|
881
|
+
message.castAs = reader.int32();
|
|
882
|
+
break;
|
|
883
|
+
case 2:
|
|
884
|
+
message.decode = reader.int32();
|
|
885
|
+
break;
|
|
886
|
+
case 3:
|
|
887
|
+
message.thenPath = reader.string();
|
|
888
|
+
break;
|
|
889
|
+
default:
|
|
890
|
+
let u = options.readUnknownField;
|
|
891
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
892
|
+
let d = reader.skip(wireType);
|
|
893
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
return message;
|
|
897
|
+
}
|
|
898
|
+
internalBinaryWrite(message, writer, options) {
|
|
899
|
+
if (message.castAs !== 0) writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int32(message.castAs);
|
|
900
|
+
if (message.decode !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.decode);
|
|
901
|
+
if (message.thenPath !== void 0) writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.thenPath);
|
|
902
|
+
let u = options.writeUnknownFields;
|
|
903
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
904
|
+
return writer;
|
|
905
|
+
}
|
|
906
|
+
};
|
|
907
|
+
/**
|
|
908
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.FieldAccess
|
|
909
|
+
*/
|
|
910
|
+
const FieldAccess = new FieldAccess$Type();
|
|
911
|
+
var FieldPredicate$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
912
|
+
constructor() {
|
|
913
|
+
super("tusk.drift.query.v1.FieldPredicate", [
|
|
914
|
+
{
|
|
915
|
+
no: 1,
|
|
916
|
+
name: "eq",
|
|
917
|
+
kind: "message",
|
|
918
|
+
T: () => Value
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
no: 2,
|
|
922
|
+
name: "neq",
|
|
923
|
+
kind: "message",
|
|
924
|
+
T: () => Value
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
no: 3,
|
|
928
|
+
name: "in_values",
|
|
929
|
+
kind: "message",
|
|
930
|
+
repeat: 2,
|
|
931
|
+
T: () => Value
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
no: 4,
|
|
935
|
+
name: "not_in_values",
|
|
936
|
+
kind: "message",
|
|
937
|
+
repeat: 2,
|
|
938
|
+
T: () => Value
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
no: 5,
|
|
942
|
+
name: "gt",
|
|
943
|
+
kind: "message",
|
|
944
|
+
T: () => Value
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
no: 6,
|
|
948
|
+
name: "gte",
|
|
949
|
+
kind: "message",
|
|
950
|
+
T: () => Value
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
no: 7,
|
|
954
|
+
name: "lt",
|
|
955
|
+
kind: "message",
|
|
956
|
+
T: () => Value
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
no: 8,
|
|
960
|
+
name: "lte",
|
|
961
|
+
kind: "message",
|
|
962
|
+
T: () => Value
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
no: 9,
|
|
966
|
+
name: "contains",
|
|
967
|
+
kind: "scalar",
|
|
968
|
+
opt: true,
|
|
969
|
+
T: 9
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
no: 10,
|
|
973
|
+
name: "starts_with",
|
|
974
|
+
kind: "scalar",
|
|
975
|
+
opt: true,
|
|
976
|
+
T: 9
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
no: 11,
|
|
980
|
+
name: "ends_with",
|
|
981
|
+
kind: "scalar",
|
|
982
|
+
opt: true,
|
|
983
|
+
T: 9
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
no: 12,
|
|
987
|
+
name: "is_null",
|
|
988
|
+
kind: "scalar",
|
|
989
|
+
opt: true,
|
|
990
|
+
T: 8
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
no: 13,
|
|
994
|
+
name: "between_timestamps",
|
|
995
|
+
kind: "message",
|
|
996
|
+
T: () => TimestampRange
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
no: 14,
|
|
1000
|
+
name: "access",
|
|
1001
|
+
kind: "message",
|
|
1002
|
+
T: () => FieldAccess
|
|
1003
|
+
}
|
|
1004
|
+
]);
|
|
1005
|
+
}
|
|
1006
|
+
create(value) {
|
|
1007
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1008
|
+
message.inValues = [];
|
|
1009
|
+
message.notInValues = [];
|
|
1010
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1011
|
+
return message;
|
|
1012
|
+
}
|
|
1013
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1014
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1015
|
+
while (reader.pos < end) {
|
|
1016
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1017
|
+
switch (fieldNo) {
|
|
1018
|
+
case 1:
|
|
1019
|
+
message.eq = Value.internalBinaryRead(reader, reader.uint32(), options, message.eq);
|
|
1020
|
+
break;
|
|
1021
|
+
case 2:
|
|
1022
|
+
message.neq = Value.internalBinaryRead(reader, reader.uint32(), options, message.neq);
|
|
1023
|
+
break;
|
|
1024
|
+
case 3:
|
|
1025
|
+
message.inValues.push(Value.internalBinaryRead(reader, reader.uint32(), options));
|
|
1026
|
+
break;
|
|
1027
|
+
case 4:
|
|
1028
|
+
message.notInValues.push(Value.internalBinaryRead(reader, reader.uint32(), options));
|
|
1029
|
+
break;
|
|
1030
|
+
case 5:
|
|
1031
|
+
message.gt = Value.internalBinaryRead(reader, reader.uint32(), options, message.gt);
|
|
1032
|
+
break;
|
|
1033
|
+
case 6:
|
|
1034
|
+
message.gte = Value.internalBinaryRead(reader, reader.uint32(), options, message.gte);
|
|
1035
|
+
break;
|
|
1036
|
+
case 7:
|
|
1037
|
+
message.lt = Value.internalBinaryRead(reader, reader.uint32(), options, message.lt);
|
|
1038
|
+
break;
|
|
1039
|
+
case 8:
|
|
1040
|
+
message.lte = Value.internalBinaryRead(reader, reader.uint32(), options, message.lte);
|
|
1041
|
+
break;
|
|
1042
|
+
case 9:
|
|
1043
|
+
message.contains = reader.string();
|
|
1044
|
+
break;
|
|
1045
|
+
case 10:
|
|
1046
|
+
message.startsWith = reader.string();
|
|
1047
|
+
break;
|
|
1048
|
+
case 11:
|
|
1049
|
+
message.endsWith = reader.string();
|
|
1050
|
+
break;
|
|
1051
|
+
case 12:
|
|
1052
|
+
message.isNull = reader.bool();
|
|
1053
|
+
break;
|
|
1054
|
+
case 13:
|
|
1055
|
+
message.betweenTimestamps = TimestampRange.internalBinaryRead(reader, reader.uint32(), options, message.betweenTimestamps);
|
|
1056
|
+
break;
|
|
1057
|
+
case 14:
|
|
1058
|
+
message.access = FieldAccess.internalBinaryRead(reader, reader.uint32(), options, message.access);
|
|
1059
|
+
break;
|
|
1060
|
+
default:
|
|
1061
|
+
let u = options.readUnknownField;
|
|
1062
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1063
|
+
let d = reader.skip(wireType);
|
|
1064
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
return message;
|
|
1068
|
+
}
|
|
1069
|
+
internalBinaryWrite(message, writer, options) {
|
|
1070
|
+
if (message.eq) Value.internalBinaryWrite(message.eq, writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1071
|
+
if (message.neq) Value.internalBinaryWrite(message.neq, writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1072
|
+
for (let i = 0; i < message.inValues.length; i++) Value.internalBinaryWrite(message.inValues[i], writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1073
|
+
for (let i = 0; i < message.notInValues.length; i++) Value.internalBinaryWrite(message.notInValues[i], writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1074
|
+
if (message.gt) Value.internalBinaryWrite(message.gt, writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1075
|
+
if (message.gte) Value.internalBinaryWrite(message.gte, writer.tag(6, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1076
|
+
if (message.lt) Value.internalBinaryWrite(message.lt, writer.tag(7, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1077
|
+
if (message.lte) Value.internalBinaryWrite(message.lte, writer.tag(8, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1078
|
+
if (message.contains !== void 0) writer.tag(9, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.contains);
|
|
1079
|
+
if (message.startsWith !== void 0) writer.tag(10, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.startsWith);
|
|
1080
|
+
if (message.endsWith !== void 0) writer.tag(11, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.endsWith);
|
|
1081
|
+
if (message.isNull !== void 0) writer.tag(12, __protobuf_ts_runtime.WireType.Varint).bool(message.isNull);
|
|
1082
|
+
if (message.betweenTimestamps) TimestampRange.internalBinaryWrite(message.betweenTimestamps, writer.tag(13, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1083
|
+
if (message.access) FieldAccess.internalBinaryWrite(message.access, writer.tag(14, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1084
|
+
let u = options.writeUnknownFields;
|
|
1085
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1086
|
+
return writer;
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
/**
|
|
1090
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.FieldPredicate
|
|
1091
|
+
*/
|
|
1092
|
+
const FieldPredicate = new FieldPredicate$Type();
|
|
1093
|
+
var WhereClause$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1094
|
+
constructor() {
|
|
1095
|
+
super("tusk.drift.query.v1.WhereClause", [
|
|
1096
|
+
{
|
|
1097
|
+
no: 1,
|
|
1098
|
+
name: "fields",
|
|
1099
|
+
kind: "map",
|
|
1100
|
+
K: 9,
|
|
1101
|
+
V: {
|
|
1102
|
+
kind: "message",
|
|
1103
|
+
T: () => FieldPredicate
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
no: 2,
|
|
1108
|
+
name: "and",
|
|
1109
|
+
kind: "message",
|
|
1110
|
+
repeat: 2,
|
|
1111
|
+
T: () => WhereClause
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
no: 3,
|
|
1115
|
+
name: "or",
|
|
1116
|
+
kind: "message",
|
|
1117
|
+
repeat: 2,
|
|
1118
|
+
T: () => WhereClause
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
no: 4,
|
|
1122
|
+
name: "not",
|
|
1123
|
+
kind: "message",
|
|
1124
|
+
T: () => WhereClause
|
|
1125
|
+
}
|
|
1126
|
+
]);
|
|
1127
|
+
}
|
|
1128
|
+
create(value) {
|
|
1129
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1130
|
+
message.fields = {};
|
|
1131
|
+
message.and = [];
|
|
1132
|
+
message.or = [];
|
|
1133
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1134
|
+
return message;
|
|
1135
|
+
}
|
|
1136
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1137
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1138
|
+
while (reader.pos < end) {
|
|
1139
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1140
|
+
switch (fieldNo) {
|
|
1141
|
+
case 1:
|
|
1142
|
+
this.binaryReadMap1(message.fields, reader, options);
|
|
1143
|
+
break;
|
|
1144
|
+
case 2:
|
|
1145
|
+
message.and.push(WhereClause.internalBinaryRead(reader, reader.uint32(), options));
|
|
1146
|
+
break;
|
|
1147
|
+
case 3:
|
|
1148
|
+
message.or.push(WhereClause.internalBinaryRead(reader, reader.uint32(), options));
|
|
1149
|
+
break;
|
|
1150
|
+
case 4:
|
|
1151
|
+
message.not = WhereClause.internalBinaryRead(reader, reader.uint32(), options, message.not);
|
|
1152
|
+
break;
|
|
1153
|
+
default:
|
|
1154
|
+
let u = options.readUnknownField;
|
|
1155
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1156
|
+
let d = reader.skip(wireType);
|
|
1157
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
return message;
|
|
1161
|
+
}
|
|
1162
|
+
binaryReadMap1(map, reader, options) {
|
|
1163
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
1164
|
+
while (reader.pos < end) {
|
|
1165
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1166
|
+
switch (fieldNo) {
|
|
1167
|
+
case 1:
|
|
1168
|
+
key = reader.string();
|
|
1169
|
+
break;
|
|
1170
|
+
case 2:
|
|
1171
|
+
val = FieldPredicate.internalBinaryRead(reader, reader.uint32(), options);
|
|
1172
|
+
break;
|
|
1173
|
+
default: throw new globalThis.Error("unknown map entry field for tusk.drift.query.v1.WhereClause.fields");
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
map[key ?? ""] = val ?? FieldPredicate.create();
|
|
1177
|
+
}
|
|
1178
|
+
internalBinaryWrite(message, writer, options) {
|
|
1179
|
+
for (let k of globalThis.Object.keys(message.fields)) {
|
|
1180
|
+
writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).fork().tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(k);
|
|
1181
|
+
writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).fork();
|
|
1182
|
+
FieldPredicate.internalBinaryWrite(message.fields[k], writer, options);
|
|
1183
|
+
writer.join().join();
|
|
1184
|
+
}
|
|
1185
|
+
for (let i = 0; i < message.and.length; i++) WhereClause.internalBinaryWrite(message.and[i], writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1186
|
+
for (let i = 0; i < message.or.length; i++) WhereClause.internalBinaryWrite(message.or[i], writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1187
|
+
if (message.not) WhereClause.internalBinaryWrite(message.not, writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1188
|
+
let u = options.writeUnknownFields;
|
|
1189
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1190
|
+
return writer;
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.WhereClause
|
|
1195
|
+
*/
|
|
1196
|
+
const WhereClause = new WhereClause$Type();
|
|
1197
|
+
var SpanOrderBy$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1198
|
+
constructor() {
|
|
1199
|
+
super("tusk.drift.query.v1.SpanOrderBy", [{
|
|
1200
|
+
no: 1,
|
|
1201
|
+
name: "field",
|
|
1202
|
+
kind: "enum",
|
|
1203
|
+
T: () => [
|
|
1204
|
+
"tusk.drift.query.v1.SpanSortField",
|
|
1205
|
+
SpanSortField,
|
|
1206
|
+
"SPAN_SORT_FIELD_"
|
|
1207
|
+
]
|
|
1208
|
+
}, {
|
|
1209
|
+
no: 2,
|
|
1210
|
+
name: "direction",
|
|
1211
|
+
kind: "enum",
|
|
1212
|
+
T: () => [
|
|
1213
|
+
"tusk.drift.query.v1.SortDirection",
|
|
1214
|
+
SortDirection,
|
|
1215
|
+
"SORT_DIRECTION_"
|
|
1216
|
+
]
|
|
1217
|
+
}]);
|
|
1218
|
+
}
|
|
1219
|
+
create(value) {
|
|
1220
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1221
|
+
message.field = 0;
|
|
1222
|
+
message.direction = 0;
|
|
1223
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1224
|
+
return message;
|
|
1225
|
+
}
|
|
1226
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1227
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1228
|
+
while (reader.pos < end) {
|
|
1229
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1230
|
+
switch (fieldNo) {
|
|
1231
|
+
case 1:
|
|
1232
|
+
message.field = reader.int32();
|
|
1233
|
+
break;
|
|
1234
|
+
case 2:
|
|
1235
|
+
message.direction = reader.int32();
|
|
1236
|
+
break;
|
|
1237
|
+
default:
|
|
1238
|
+
let u = options.readUnknownField;
|
|
1239
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1240
|
+
let d = reader.skip(wireType);
|
|
1241
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
return message;
|
|
1245
|
+
}
|
|
1246
|
+
internalBinaryWrite(message, writer, options) {
|
|
1247
|
+
if (message.field !== 0) writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int32(message.field);
|
|
1248
|
+
if (message.direction !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.direction);
|
|
1249
|
+
let u = options.writeUnknownFields;
|
|
1250
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1251
|
+
return writer;
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
/**
|
|
1255
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.SpanOrderBy
|
|
1256
|
+
*/
|
|
1257
|
+
const SpanOrderBy = new SpanOrderBy$Type();
|
|
1258
|
+
var MetricOrderBy$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1259
|
+
constructor() {
|
|
1260
|
+
super("tusk.drift.query.v1.MetricOrderBy", [{
|
|
1261
|
+
no: 1,
|
|
1262
|
+
name: "metric",
|
|
1263
|
+
kind: "enum",
|
|
1264
|
+
T: () => [
|
|
1265
|
+
"tusk.drift.query.v1.AggregateMetric",
|
|
1266
|
+
AggregateMetric,
|
|
1267
|
+
"AGGREGATE_METRIC_"
|
|
1268
|
+
]
|
|
1269
|
+
}, {
|
|
1270
|
+
no: 2,
|
|
1271
|
+
name: "direction",
|
|
1272
|
+
kind: "enum",
|
|
1273
|
+
T: () => [
|
|
1274
|
+
"tusk.drift.query.v1.SortDirection",
|
|
1275
|
+
SortDirection,
|
|
1276
|
+
"SORT_DIRECTION_"
|
|
1277
|
+
]
|
|
1278
|
+
}]);
|
|
1279
|
+
}
|
|
1280
|
+
create(value) {
|
|
1281
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1282
|
+
message.metric = 0;
|
|
1283
|
+
message.direction = 0;
|
|
1284
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1285
|
+
return message;
|
|
1286
|
+
}
|
|
1287
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1288
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1289
|
+
while (reader.pos < end) {
|
|
1290
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1291
|
+
switch (fieldNo) {
|
|
1292
|
+
case 1:
|
|
1293
|
+
message.metric = reader.int32();
|
|
1294
|
+
break;
|
|
1295
|
+
case 2:
|
|
1296
|
+
message.direction = reader.int32();
|
|
1297
|
+
break;
|
|
1298
|
+
default:
|
|
1299
|
+
let u = options.readUnknownField;
|
|
1300
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1301
|
+
let d = reader.skip(wireType);
|
|
1302
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
return message;
|
|
1306
|
+
}
|
|
1307
|
+
internalBinaryWrite(message, writer, options) {
|
|
1308
|
+
if (message.metric !== 0) writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int32(message.metric);
|
|
1309
|
+
if (message.direction !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.direction);
|
|
1310
|
+
let u = options.writeUnknownFields;
|
|
1311
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1312
|
+
return writer;
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
/**
|
|
1316
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.MetricOrderBy
|
|
1317
|
+
*/
|
|
1318
|
+
const MetricOrderBy = new MetricOrderBy$Type();
|
|
1319
|
+
var SchemaComparisonPeriod$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1320
|
+
constructor() {
|
|
1321
|
+
super("tusk.drift.query.v1.SchemaComparisonPeriod", [{
|
|
1322
|
+
no: 1,
|
|
1323
|
+
name: "start_date",
|
|
1324
|
+
kind: "message",
|
|
1325
|
+
T: () => Timestamp
|
|
1326
|
+
}, {
|
|
1327
|
+
no: 2,
|
|
1328
|
+
name: "end_date",
|
|
1329
|
+
kind: "message",
|
|
1330
|
+
T: () => Timestamp
|
|
1331
|
+
}]);
|
|
1332
|
+
}
|
|
1333
|
+
create(value) {
|
|
1334
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1335
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1336
|
+
return message;
|
|
1337
|
+
}
|
|
1338
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1339
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1340
|
+
while (reader.pos < end) {
|
|
1341
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1342
|
+
switch (fieldNo) {
|
|
1343
|
+
case 1:
|
|
1344
|
+
message.startDate = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startDate);
|
|
1345
|
+
break;
|
|
1346
|
+
case 2:
|
|
1347
|
+
message.endDate = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.endDate);
|
|
1348
|
+
break;
|
|
1349
|
+
default:
|
|
1350
|
+
let u = options.readUnknownField;
|
|
1351
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1352
|
+
let d = reader.skip(wireType);
|
|
1353
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
return message;
|
|
1357
|
+
}
|
|
1358
|
+
internalBinaryWrite(message, writer, options) {
|
|
1359
|
+
if (message.startDate) Timestamp.internalBinaryWrite(message.startDate, writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1360
|
+
if (message.endDate) Timestamp.internalBinaryWrite(message.endDate, writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1361
|
+
let u = options.writeUnknownFields;
|
|
1362
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1363
|
+
return writer;
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
/**
|
|
1367
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.SchemaComparisonPeriod
|
|
1368
|
+
*/
|
|
1369
|
+
const SchemaComparisonPeriod = new SchemaComparisonPeriod$Type();
|
|
1370
|
+
var QuerySpansRequest$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1371
|
+
constructor() {
|
|
1372
|
+
super("tusk.drift.query.v1.QuerySpansRequest", [
|
|
1373
|
+
{
|
|
1374
|
+
no: 1,
|
|
1375
|
+
name: "observable_service_id",
|
|
1376
|
+
kind: "scalar",
|
|
1377
|
+
T: 9
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
no: 2,
|
|
1381
|
+
name: "client_id",
|
|
1382
|
+
kind: "scalar",
|
|
1383
|
+
opt: true,
|
|
1384
|
+
T: 9
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
no: 3,
|
|
1388
|
+
name: "where",
|
|
1389
|
+
kind: "message",
|
|
1390
|
+
T: () => WhereClause
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
no: 4,
|
|
1394
|
+
name: "order_by",
|
|
1395
|
+
kind: "message",
|
|
1396
|
+
repeat: 2,
|
|
1397
|
+
T: () => SpanOrderBy
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
no: 5,
|
|
1401
|
+
name: "limit",
|
|
1402
|
+
kind: "scalar",
|
|
1403
|
+
opt: true,
|
|
1404
|
+
T: 5
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
no: 6,
|
|
1408
|
+
name: "offset",
|
|
1409
|
+
kind: "scalar",
|
|
1410
|
+
opt: true,
|
|
1411
|
+
T: 5
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
no: 7,
|
|
1415
|
+
name: "include_payloads",
|
|
1416
|
+
kind: "scalar",
|
|
1417
|
+
opt: true,
|
|
1418
|
+
T: 8
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
no: 8,
|
|
1422
|
+
name: "max_payload_length",
|
|
1423
|
+
kind: "scalar",
|
|
1424
|
+
opt: true,
|
|
1425
|
+
T: 5
|
|
1426
|
+
}
|
|
1427
|
+
]);
|
|
1428
|
+
}
|
|
1429
|
+
create(value) {
|
|
1430
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1431
|
+
message.observableServiceId = "";
|
|
1432
|
+
message.orderBy = [];
|
|
1433
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1434
|
+
return message;
|
|
1435
|
+
}
|
|
1436
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1437
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1438
|
+
while (reader.pos < end) {
|
|
1439
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1440
|
+
switch (fieldNo) {
|
|
1441
|
+
case 1:
|
|
1442
|
+
message.observableServiceId = reader.string();
|
|
1443
|
+
break;
|
|
1444
|
+
case 2:
|
|
1445
|
+
message.clientId = reader.string();
|
|
1446
|
+
break;
|
|
1447
|
+
case 3:
|
|
1448
|
+
message.where = WhereClause.internalBinaryRead(reader, reader.uint32(), options, message.where);
|
|
1449
|
+
break;
|
|
1450
|
+
case 4:
|
|
1451
|
+
message.orderBy.push(SpanOrderBy.internalBinaryRead(reader, reader.uint32(), options));
|
|
1452
|
+
break;
|
|
1453
|
+
case 5:
|
|
1454
|
+
message.limit = reader.int32();
|
|
1455
|
+
break;
|
|
1456
|
+
case 6:
|
|
1457
|
+
message.offset = reader.int32();
|
|
1458
|
+
break;
|
|
1459
|
+
case 7:
|
|
1460
|
+
message.includePayloads = reader.bool();
|
|
1461
|
+
break;
|
|
1462
|
+
case 8:
|
|
1463
|
+
message.maxPayloadLength = reader.int32();
|
|
1464
|
+
break;
|
|
1465
|
+
default:
|
|
1466
|
+
let u = options.readUnknownField;
|
|
1467
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1468
|
+
let d = reader.skip(wireType);
|
|
1469
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
return message;
|
|
1473
|
+
}
|
|
1474
|
+
internalBinaryWrite(message, writer, options) {
|
|
1475
|
+
if (message.observableServiceId !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.observableServiceId);
|
|
1476
|
+
if (message.clientId !== void 0) writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.clientId);
|
|
1477
|
+
if (message.where) WhereClause.internalBinaryWrite(message.where, writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1478
|
+
for (let i = 0; i < message.orderBy.length; i++) SpanOrderBy.internalBinaryWrite(message.orderBy[i], writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1479
|
+
if (message.limit !== void 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int32(message.limit);
|
|
1480
|
+
if (message.offset !== void 0) writer.tag(6, __protobuf_ts_runtime.WireType.Varint).int32(message.offset);
|
|
1481
|
+
if (message.includePayloads !== void 0) writer.tag(7, __protobuf_ts_runtime.WireType.Varint).bool(message.includePayloads);
|
|
1482
|
+
if (message.maxPayloadLength !== void 0) writer.tag(8, __protobuf_ts_runtime.WireType.Varint).int32(message.maxPayloadLength);
|
|
1483
|
+
let u = options.writeUnknownFields;
|
|
1484
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1485
|
+
return writer;
|
|
1486
|
+
}
|
|
1487
|
+
};
|
|
1488
|
+
/**
|
|
1489
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.QuerySpansRequest
|
|
1490
|
+
*/
|
|
1491
|
+
const QuerySpansRequest = new QuerySpansRequest$Type();
|
|
1492
|
+
var GetSchemaRequest$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1493
|
+
constructor() {
|
|
1494
|
+
super("tusk.drift.query.v1.GetSchemaRequest", [
|
|
1495
|
+
{
|
|
1496
|
+
no: 1,
|
|
1497
|
+
name: "observable_service_id",
|
|
1498
|
+
kind: "scalar",
|
|
1499
|
+
T: 9
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
no: 2,
|
|
1503
|
+
name: "package_name",
|
|
1504
|
+
kind: "scalar",
|
|
1505
|
+
opt: true,
|
|
1506
|
+
T: 9
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
no: 3,
|
|
1510
|
+
name: "instrumentation_name",
|
|
1511
|
+
kind: "scalar",
|
|
1512
|
+
opt: true,
|
|
1513
|
+
T: 9
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
no: 4,
|
|
1517
|
+
name: "name",
|
|
1518
|
+
kind: "scalar",
|
|
1519
|
+
opt: true,
|
|
1520
|
+
T: 9
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
no: 5,
|
|
1524
|
+
name: "show_example",
|
|
1525
|
+
kind: "scalar",
|
|
1526
|
+
opt: true,
|
|
1527
|
+
T: 8
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
no: 6,
|
|
1531
|
+
name: "max_payload_length",
|
|
1532
|
+
kind: "scalar",
|
|
1533
|
+
opt: true,
|
|
1534
|
+
T: 5
|
|
1535
|
+
}
|
|
1536
|
+
]);
|
|
1537
|
+
}
|
|
1538
|
+
create(value) {
|
|
1539
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1540
|
+
message.observableServiceId = "";
|
|
1541
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1542
|
+
return message;
|
|
1543
|
+
}
|
|
1544
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1545
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1546
|
+
while (reader.pos < end) {
|
|
1547
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1548
|
+
switch (fieldNo) {
|
|
1549
|
+
case 1:
|
|
1550
|
+
message.observableServiceId = reader.string();
|
|
1551
|
+
break;
|
|
1552
|
+
case 2:
|
|
1553
|
+
message.packageName = reader.string();
|
|
1554
|
+
break;
|
|
1555
|
+
case 3:
|
|
1556
|
+
message.instrumentationName = reader.string();
|
|
1557
|
+
break;
|
|
1558
|
+
case 4:
|
|
1559
|
+
message.name = reader.string();
|
|
1560
|
+
break;
|
|
1561
|
+
case 5:
|
|
1562
|
+
message.showExample = reader.bool();
|
|
1563
|
+
break;
|
|
1564
|
+
case 6:
|
|
1565
|
+
message.maxPayloadLength = reader.int32();
|
|
1566
|
+
break;
|
|
1567
|
+
default:
|
|
1568
|
+
let u = options.readUnknownField;
|
|
1569
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1570
|
+
let d = reader.skip(wireType);
|
|
1571
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
return message;
|
|
1575
|
+
}
|
|
1576
|
+
internalBinaryWrite(message, writer, options) {
|
|
1577
|
+
if (message.observableServiceId !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.observableServiceId);
|
|
1578
|
+
if (message.packageName !== void 0) writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.packageName);
|
|
1579
|
+
if (message.instrumentationName !== void 0) writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.instrumentationName);
|
|
1580
|
+
if (message.name !== void 0) writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.name);
|
|
1581
|
+
if (message.showExample !== void 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).bool(message.showExample);
|
|
1582
|
+
if (message.maxPayloadLength !== void 0) writer.tag(6, __protobuf_ts_runtime.WireType.Varint).int32(message.maxPayloadLength);
|
|
1583
|
+
let u = options.writeUnknownFields;
|
|
1584
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1585
|
+
return writer;
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
/**
|
|
1589
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.GetSchemaRequest
|
|
1590
|
+
*/
|
|
1591
|
+
const GetSchemaRequest = new GetSchemaRequest$Type();
|
|
1592
|
+
var ListDistinctValuesRequest$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1593
|
+
constructor() {
|
|
1594
|
+
super("tusk.drift.query.v1.ListDistinctValuesRequest", [
|
|
1595
|
+
{
|
|
1596
|
+
no: 1,
|
|
1597
|
+
name: "observable_service_id",
|
|
1598
|
+
kind: "scalar",
|
|
1599
|
+
T: 9
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
no: 2,
|
|
1603
|
+
name: "client_id",
|
|
1604
|
+
kind: "scalar",
|
|
1605
|
+
opt: true,
|
|
1606
|
+
T: 9
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
no: 3,
|
|
1610
|
+
name: "field",
|
|
1611
|
+
kind: "scalar",
|
|
1612
|
+
T: 9
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
no: 4,
|
|
1616
|
+
name: "where",
|
|
1617
|
+
kind: "message",
|
|
1618
|
+
T: () => WhereClause
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
no: 5,
|
|
1622
|
+
name: "limit",
|
|
1623
|
+
kind: "scalar",
|
|
1624
|
+
opt: true,
|
|
1625
|
+
T: 5
|
|
1626
|
+
}
|
|
1627
|
+
]);
|
|
1628
|
+
}
|
|
1629
|
+
create(value) {
|
|
1630
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1631
|
+
message.observableServiceId = "";
|
|
1632
|
+
message.field = "";
|
|
1633
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1634
|
+
return message;
|
|
1635
|
+
}
|
|
1636
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1637
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1638
|
+
while (reader.pos < end) {
|
|
1639
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1640
|
+
switch (fieldNo) {
|
|
1641
|
+
case 1:
|
|
1642
|
+
message.observableServiceId = reader.string();
|
|
1643
|
+
break;
|
|
1644
|
+
case 2:
|
|
1645
|
+
message.clientId = reader.string();
|
|
1646
|
+
break;
|
|
1647
|
+
case 3:
|
|
1648
|
+
message.field = reader.string();
|
|
1649
|
+
break;
|
|
1650
|
+
case 4:
|
|
1651
|
+
message.where = WhereClause.internalBinaryRead(reader, reader.uint32(), options, message.where);
|
|
1652
|
+
break;
|
|
1653
|
+
case 5:
|
|
1654
|
+
message.limit = reader.int32();
|
|
1655
|
+
break;
|
|
1656
|
+
default:
|
|
1657
|
+
let u = options.readUnknownField;
|
|
1658
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1659
|
+
let d = reader.skip(wireType);
|
|
1660
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
return message;
|
|
1664
|
+
}
|
|
1665
|
+
internalBinaryWrite(message, writer, options) {
|
|
1666
|
+
if (message.observableServiceId !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.observableServiceId);
|
|
1667
|
+
if (message.clientId !== void 0) writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.clientId);
|
|
1668
|
+
if (message.field !== "") writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.field);
|
|
1669
|
+
if (message.where) WhereClause.internalBinaryWrite(message.where, writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1670
|
+
if (message.limit !== void 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int32(message.limit);
|
|
1671
|
+
let u = options.writeUnknownFields;
|
|
1672
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1673
|
+
return writer;
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
/**
|
|
1677
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.ListDistinctValuesRequest
|
|
1678
|
+
*/
|
|
1679
|
+
const ListDistinctValuesRequest = new ListDistinctValuesRequest$Type();
|
|
1680
|
+
var AggregateSpansRequest$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1681
|
+
constructor() {
|
|
1682
|
+
super("tusk.drift.query.v1.AggregateSpansRequest", [
|
|
1683
|
+
{
|
|
1684
|
+
no: 1,
|
|
1685
|
+
name: "observable_service_id",
|
|
1686
|
+
kind: "scalar",
|
|
1687
|
+
T: 9
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
no: 2,
|
|
1691
|
+
name: "client_id",
|
|
1692
|
+
kind: "scalar",
|
|
1693
|
+
opt: true,
|
|
1694
|
+
T: 9
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
no: 3,
|
|
1698
|
+
name: "where",
|
|
1699
|
+
kind: "message",
|
|
1700
|
+
T: () => WhereClause
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
no: 4,
|
|
1704
|
+
name: "group_by",
|
|
1705
|
+
kind: "enum",
|
|
1706
|
+
repeat: 1,
|
|
1707
|
+
T: () => [
|
|
1708
|
+
"tusk.drift.query.v1.AggregateGroupField",
|
|
1709
|
+
AggregateGroupField,
|
|
1710
|
+
"AGGREGATE_GROUP_FIELD_"
|
|
1711
|
+
]
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
no: 5,
|
|
1715
|
+
name: "metrics",
|
|
1716
|
+
kind: "enum",
|
|
1717
|
+
repeat: 1,
|
|
1718
|
+
T: () => [
|
|
1719
|
+
"tusk.drift.query.v1.AggregateMetric",
|
|
1720
|
+
AggregateMetric,
|
|
1721
|
+
"AGGREGATE_METRIC_"
|
|
1722
|
+
]
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
no: 6,
|
|
1726
|
+
name: "time_bucket",
|
|
1727
|
+
kind: "enum",
|
|
1728
|
+
T: () => [
|
|
1729
|
+
"tusk.drift.query.v1.TimeBucket",
|
|
1730
|
+
TimeBucket,
|
|
1731
|
+
"TIME_BUCKET_"
|
|
1732
|
+
]
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
no: 7,
|
|
1736
|
+
name: "order_by",
|
|
1737
|
+
kind: "message",
|
|
1738
|
+
T: () => MetricOrderBy
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
no: 8,
|
|
1742
|
+
name: "limit",
|
|
1743
|
+
kind: "scalar",
|
|
1744
|
+
opt: true,
|
|
1745
|
+
T: 5
|
|
1746
|
+
}
|
|
1747
|
+
]);
|
|
1748
|
+
}
|
|
1749
|
+
create(value) {
|
|
1750
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1751
|
+
message.observableServiceId = "";
|
|
1752
|
+
message.groupBy = [];
|
|
1753
|
+
message.metrics = [];
|
|
1754
|
+
message.timeBucket = 0;
|
|
1755
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1756
|
+
return message;
|
|
1757
|
+
}
|
|
1758
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1759
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1760
|
+
while (reader.pos < end) {
|
|
1761
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1762
|
+
switch (fieldNo) {
|
|
1763
|
+
case 1:
|
|
1764
|
+
message.observableServiceId = reader.string();
|
|
1765
|
+
break;
|
|
1766
|
+
case 2:
|
|
1767
|
+
message.clientId = reader.string();
|
|
1768
|
+
break;
|
|
1769
|
+
case 3:
|
|
1770
|
+
message.where = WhereClause.internalBinaryRead(reader, reader.uint32(), options, message.where);
|
|
1771
|
+
break;
|
|
1772
|
+
case 4:
|
|
1773
|
+
if (wireType === __protobuf_ts_runtime.WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) message.groupBy.push(reader.int32());
|
|
1774
|
+
else message.groupBy.push(reader.int32());
|
|
1775
|
+
break;
|
|
1776
|
+
case 5:
|
|
1777
|
+
if (wireType === __protobuf_ts_runtime.WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) message.metrics.push(reader.int32());
|
|
1778
|
+
else message.metrics.push(reader.int32());
|
|
1779
|
+
break;
|
|
1780
|
+
case 6:
|
|
1781
|
+
message.timeBucket = reader.int32();
|
|
1782
|
+
break;
|
|
1783
|
+
case 7:
|
|
1784
|
+
message.orderBy = MetricOrderBy.internalBinaryRead(reader, reader.uint32(), options, message.orderBy);
|
|
1785
|
+
break;
|
|
1786
|
+
case 8:
|
|
1787
|
+
message.limit = reader.int32();
|
|
1788
|
+
break;
|
|
1789
|
+
default:
|
|
1790
|
+
let u = options.readUnknownField;
|
|
1791
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1792
|
+
let d = reader.skip(wireType);
|
|
1793
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
return message;
|
|
1797
|
+
}
|
|
1798
|
+
internalBinaryWrite(message, writer, options) {
|
|
1799
|
+
if (message.observableServiceId !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.observableServiceId);
|
|
1800
|
+
if (message.clientId !== void 0) writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.clientId);
|
|
1801
|
+
if (message.where) WhereClause.internalBinaryWrite(message.where, writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1802
|
+
if (message.groupBy.length) {
|
|
1803
|
+
writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork();
|
|
1804
|
+
for (let i = 0; i < message.groupBy.length; i++) writer.int32(message.groupBy[i]);
|
|
1805
|
+
writer.join();
|
|
1806
|
+
}
|
|
1807
|
+
if (message.metrics.length) {
|
|
1808
|
+
writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).fork();
|
|
1809
|
+
for (let i = 0; i < message.metrics.length; i++) writer.int32(message.metrics[i]);
|
|
1810
|
+
writer.join();
|
|
1811
|
+
}
|
|
1812
|
+
if (message.timeBucket !== 0) writer.tag(6, __protobuf_ts_runtime.WireType.Varint).int32(message.timeBucket);
|
|
1813
|
+
if (message.orderBy) MetricOrderBy.internalBinaryWrite(message.orderBy, writer.tag(7, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1814
|
+
if (message.limit !== void 0) writer.tag(8, __protobuf_ts_runtime.WireType.Varint).int32(message.limit);
|
|
1815
|
+
let u = options.writeUnknownFields;
|
|
1816
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1817
|
+
return writer;
|
|
1818
|
+
}
|
|
1819
|
+
};
|
|
1820
|
+
/**
|
|
1821
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.AggregateSpansRequest
|
|
1822
|
+
*/
|
|
1823
|
+
const AggregateSpansRequest = new AggregateSpansRequest$Type();
|
|
1824
|
+
var GetTraceSpansRequest$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1825
|
+
constructor() {
|
|
1826
|
+
super("tusk.drift.query.v1.GetTraceSpansRequest", [
|
|
1827
|
+
{
|
|
1828
|
+
no: 1,
|
|
1829
|
+
name: "observable_service_id",
|
|
1830
|
+
kind: "scalar",
|
|
1831
|
+
T: 9
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
no: 2,
|
|
1835
|
+
name: "client_id",
|
|
1836
|
+
kind: "scalar",
|
|
1837
|
+
opt: true,
|
|
1838
|
+
T: 9
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
no: 3,
|
|
1842
|
+
name: "trace_id",
|
|
1843
|
+
kind: "scalar",
|
|
1844
|
+
T: 9
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
no: 4,
|
|
1848
|
+
name: "include_payloads",
|
|
1849
|
+
kind: "scalar",
|
|
1850
|
+
opt: true,
|
|
1851
|
+
T: 8
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
no: 5,
|
|
1855
|
+
name: "max_payload_length",
|
|
1856
|
+
kind: "scalar",
|
|
1857
|
+
opt: true,
|
|
1858
|
+
T: 5
|
|
1859
|
+
}
|
|
1860
|
+
]);
|
|
1861
|
+
}
|
|
1862
|
+
create(value) {
|
|
1863
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1864
|
+
message.observableServiceId = "";
|
|
1865
|
+
message.traceId = "";
|
|
1866
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1867
|
+
return message;
|
|
1868
|
+
}
|
|
1869
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1870
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1871
|
+
while (reader.pos < end) {
|
|
1872
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1873
|
+
switch (fieldNo) {
|
|
1874
|
+
case 1:
|
|
1875
|
+
message.observableServiceId = reader.string();
|
|
1876
|
+
break;
|
|
1877
|
+
case 2:
|
|
1878
|
+
message.clientId = reader.string();
|
|
1879
|
+
break;
|
|
1880
|
+
case 3:
|
|
1881
|
+
message.traceId = reader.string();
|
|
1882
|
+
break;
|
|
1883
|
+
case 4:
|
|
1884
|
+
message.includePayloads = reader.bool();
|
|
1885
|
+
break;
|
|
1886
|
+
case 5:
|
|
1887
|
+
message.maxPayloadLength = reader.int32();
|
|
1888
|
+
break;
|
|
1889
|
+
default:
|
|
1890
|
+
let u = options.readUnknownField;
|
|
1891
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1892
|
+
let d = reader.skip(wireType);
|
|
1893
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
return message;
|
|
1897
|
+
}
|
|
1898
|
+
internalBinaryWrite(message, writer, options) {
|
|
1899
|
+
if (message.observableServiceId !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.observableServiceId);
|
|
1900
|
+
if (message.clientId !== void 0) writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.clientId);
|
|
1901
|
+
if (message.traceId !== "") writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.traceId);
|
|
1902
|
+
if (message.includePayloads !== void 0) writer.tag(4, __protobuf_ts_runtime.WireType.Varint).bool(message.includePayloads);
|
|
1903
|
+
if (message.maxPayloadLength !== void 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int32(message.maxPayloadLength);
|
|
1904
|
+
let u = options.writeUnknownFields;
|
|
1905
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1906
|
+
return writer;
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
/**
|
|
1910
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.GetTraceSpansRequest
|
|
1911
|
+
*/
|
|
1912
|
+
const GetTraceSpansRequest = new GetTraceSpansRequest$Type();
|
|
1913
|
+
var GetSpansByIdsRequest$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1914
|
+
constructor() {
|
|
1915
|
+
super("tusk.drift.query.v1.GetSpansByIdsRequest", [
|
|
1916
|
+
{
|
|
1917
|
+
no: 1,
|
|
1918
|
+
name: "observable_service_id",
|
|
1919
|
+
kind: "scalar",
|
|
1920
|
+
T: 9
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
no: 2,
|
|
1924
|
+
name: "ids",
|
|
1925
|
+
kind: "scalar",
|
|
1926
|
+
repeat: 2,
|
|
1927
|
+
T: 9
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
no: 3,
|
|
1931
|
+
name: "fields",
|
|
1932
|
+
kind: "enum",
|
|
1933
|
+
repeat: 1,
|
|
1934
|
+
T: () => [
|
|
1935
|
+
"tusk.drift.query.v1.SelectableSpanField",
|
|
1936
|
+
SelectableSpanField,
|
|
1937
|
+
"SELECTABLE_SPAN_FIELD_"
|
|
1938
|
+
]
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
no: 4,
|
|
1942
|
+
name: "include_payloads",
|
|
1943
|
+
kind: "scalar",
|
|
1944
|
+
opt: true,
|
|
1945
|
+
T: 8
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
no: 5,
|
|
1949
|
+
name: "max_payload_length",
|
|
1950
|
+
kind: "scalar",
|
|
1951
|
+
opt: true,
|
|
1952
|
+
T: 5
|
|
1953
|
+
}
|
|
1954
|
+
]);
|
|
1955
|
+
}
|
|
1956
|
+
create(value) {
|
|
1957
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1958
|
+
message.observableServiceId = "";
|
|
1959
|
+
message.ids = [];
|
|
1960
|
+
message.fields = [];
|
|
1961
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1962
|
+
return message;
|
|
1963
|
+
}
|
|
1964
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1965
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1966
|
+
while (reader.pos < end) {
|
|
1967
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1968
|
+
switch (fieldNo) {
|
|
1969
|
+
case 1:
|
|
1970
|
+
message.observableServiceId = reader.string();
|
|
1971
|
+
break;
|
|
1972
|
+
case 2:
|
|
1973
|
+
message.ids.push(reader.string());
|
|
1974
|
+
break;
|
|
1975
|
+
case 3:
|
|
1976
|
+
if (wireType === __protobuf_ts_runtime.WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) message.fields.push(reader.int32());
|
|
1977
|
+
else message.fields.push(reader.int32());
|
|
1978
|
+
break;
|
|
1979
|
+
case 4:
|
|
1980
|
+
message.includePayloads = reader.bool();
|
|
1981
|
+
break;
|
|
1982
|
+
case 5:
|
|
1983
|
+
message.maxPayloadLength = reader.int32();
|
|
1984
|
+
break;
|
|
1985
|
+
default:
|
|
1986
|
+
let u = options.readUnknownField;
|
|
1987
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1988
|
+
let d = reader.skip(wireType);
|
|
1989
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
return message;
|
|
1993
|
+
}
|
|
1994
|
+
internalBinaryWrite(message, writer, options) {
|
|
1995
|
+
if (message.observableServiceId !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.observableServiceId);
|
|
1996
|
+
for (let i = 0; i < message.ids.length; i++) writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.ids[i]);
|
|
1997
|
+
if (message.fields.length) {
|
|
1998
|
+
writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).fork();
|
|
1999
|
+
for (let i = 0; i < message.fields.length; i++) writer.int32(message.fields[i]);
|
|
2000
|
+
writer.join();
|
|
2001
|
+
}
|
|
2002
|
+
if (message.includePayloads !== void 0) writer.tag(4, __protobuf_ts_runtime.WireType.Varint).bool(message.includePayloads);
|
|
2003
|
+
if (message.maxPayloadLength !== void 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int32(message.maxPayloadLength);
|
|
2004
|
+
let u = options.writeUnknownFields;
|
|
2005
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2006
|
+
return writer;
|
|
2007
|
+
}
|
|
2008
|
+
};
|
|
2009
|
+
/**
|
|
2010
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.GetSpansByIdsRequest
|
|
2011
|
+
*/
|
|
2012
|
+
const GetSpansByIdsRequest = new GetSpansByIdsRequest$Type();
|
|
2013
|
+
var CompareSchemaRequest$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
2014
|
+
constructor() {
|
|
2015
|
+
super("tusk.drift.query.v1.CompareSchemaRequest", [
|
|
2016
|
+
{
|
|
2017
|
+
no: 1,
|
|
2018
|
+
name: "observable_service_id",
|
|
2019
|
+
kind: "scalar",
|
|
2020
|
+
T: 9
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
no: 2,
|
|
2024
|
+
name: "client_id",
|
|
2025
|
+
kind: "scalar",
|
|
2026
|
+
opt: true,
|
|
2027
|
+
T: 9
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
no: 3,
|
|
2031
|
+
name: "name",
|
|
2032
|
+
kind: "scalar",
|
|
2033
|
+
T: 9
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
no: 4,
|
|
2037
|
+
name: "period_a",
|
|
2038
|
+
kind: "message",
|
|
2039
|
+
T: () => SchemaComparisonPeriod
|
|
2040
|
+
},
|
|
2041
|
+
{
|
|
2042
|
+
no: 5,
|
|
2043
|
+
name: "period_b",
|
|
2044
|
+
kind: "message",
|
|
2045
|
+
T: () => SchemaComparisonPeriod
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
no: 6,
|
|
2049
|
+
name: "include_payloads",
|
|
2050
|
+
kind: "scalar",
|
|
2051
|
+
opt: true,
|
|
2052
|
+
T: 8
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
no: 7,
|
|
2056
|
+
name: "max_payload_length",
|
|
2057
|
+
kind: "scalar",
|
|
2058
|
+
opt: true,
|
|
2059
|
+
T: 5
|
|
2060
|
+
}
|
|
2061
|
+
]);
|
|
2062
|
+
}
|
|
2063
|
+
create(value) {
|
|
2064
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
2065
|
+
message.observableServiceId = "";
|
|
2066
|
+
message.name = "";
|
|
2067
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
2068
|
+
return message;
|
|
2069
|
+
}
|
|
2070
|
+
internalBinaryRead(reader, length, options, target) {
|
|
2071
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2072
|
+
while (reader.pos < end) {
|
|
2073
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2074
|
+
switch (fieldNo) {
|
|
2075
|
+
case 1:
|
|
2076
|
+
message.observableServiceId = reader.string();
|
|
2077
|
+
break;
|
|
2078
|
+
case 2:
|
|
2079
|
+
message.clientId = reader.string();
|
|
2080
|
+
break;
|
|
2081
|
+
case 3:
|
|
2082
|
+
message.name = reader.string();
|
|
2083
|
+
break;
|
|
2084
|
+
case 4:
|
|
2085
|
+
message.periodA = SchemaComparisonPeriod.internalBinaryRead(reader, reader.uint32(), options, message.periodA);
|
|
2086
|
+
break;
|
|
2087
|
+
case 5:
|
|
2088
|
+
message.periodB = SchemaComparisonPeriod.internalBinaryRead(reader, reader.uint32(), options, message.periodB);
|
|
2089
|
+
break;
|
|
2090
|
+
case 6:
|
|
2091
|
+
message.includePayloads = reader.bool();
|
|
2092
|
+
break;
|
|
2093
|
+
case 7:
|
|
2094
|
+
message.maxPayloadLength = reader.int32();
|
|
2095
|
+
break;
|
|
2096
|
+
default:
|
|
2097
|
+
let u = options.readUnknownField;
|
|
2098
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2099
|
+
let d = reader.skip(wireType);
|
|
2100
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
return message;
|
|
2104
|
+
}
|
|
2105
|
+
internalBinaryWrite(message, writer, options) {
|
|
2106
|
+
if (message.observableServiceId !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.observableServiceId);
|
|
2107
|
+
if (message.clientId !== void 0) writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.clientId);
|
|
2108
|
+
if (message.name !== "") writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.name);
|
|
2109
|
+
if (message.periodA) SchemaComparisonPeriod.internalBinaryWrite(message.periodA, writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
2110
|
+
if (message.periodB) SchemaComparisonPeriod.internalBinaryWrite(message.periodB, writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
2111
|
+
if (message.includePayloads !== void 0) writer.tag(6, __protobuf_ts_runtime.WireType.Varint).bool(message.includePayloads);
|
|
2112
|
+
if (message.maxPayloadLength !== void 0) writer.tag(7, __protobuf_ts_runtime.WireType.Varint).int32(message.maxPayloadLength);
|
|
2113
|
+
let u = options.writeUnknownFields;
|
|
2114
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2115
|
+
return writer;
|
|
2116
|
+
}
|
|
2117
|
+
};
|
|
2118
|
+
/**
|
|
2119
|
+
* @generated MessageType for protobuf message tusk.drift.query.v1.CompareSchemaRequest
|
|
2120
|
+
*/
|
|
2121
|
+
const CompareSchemaRequest = new CompareSchemaRequest$Type();
|
|
2122
|
+
|
|
2123
|
+
//#endregion
|
|
2124
|
+
//#region src/query/span_query_helpers.ts
|
|
2125
|
+
function hasOwn(value, key) {
|
|
2126
|
+
return Object.prototype.hasOwnProperty.call(value, key);
|
|
2127
|
+
}
|
|
2128
|
+
function snakeToCamelCase(value) {
|
|
2129
|
+
return value.toLowerCase().replace(/_([a-z0-9])/g, (_, char) => char.toUpperCase());
|
|
2130
|
+
}
|
|
2131
|
+
function createEnumCodec(enumObject, mapKey) {
|
|
2132
|
+
const pairs = Object.entries(enumObject).filter((entry) => entry[0] !== "UNSPECIFIED" && typeof entry[1] === "number").map(([key, value]) => [mapKey(key), value]);
|
|
2133
|
+
const reversePairs = pairs.map(([name, value]) => [value, name]);
|
|
2134
|
+
const byName = Object.freeze(Object.fromEntries(pairs));
|
|
2135
|
+
const byValue = Object.freeze(Object.fromEntries(reversePairs));
|
|
2136
|
+
return {
|
|
2137
|
+
names: Object.freeze(pairs.map(([name]) => name)),
|
|
2138
|
+
values: Object.freeze(pairs.map(([, value]) => value)),
|
|
2139
|
+
byName,
|
|
2140
|
+
byValue,
|
|
2141
|
+
normalize(value) {
|
|
2142
|
+
if (typeof value === "string") return hasOwn(byName, value) ? value : null;
|
|
2143
|
+
return hasOwn(byValue, value) ? byValue[value] : null;
|
|
2144
|
+
},
|
|
2145
|
+
isName(value) {
|
|
2146
|
+
return typeof value === "string" && hasOwn(byName, value);
|
|
2147
|
+
},
|
|
2148
|
+
isValue(value) {
|
|
2149
|
+
return typeof value === "number" && Number.isInteger(value) && hasOwn(byValue, value);
|
|
2150
|
+
}
|
|
2151
|
+
};
|
|
2152
|
+
}
|
|
2153
|
+
function createCamelCaseEnumCodec(enumObject) {
|
|
2154
|
+
return createEnumCodec(enumObject, (key) => snakeToCamelCase(key));
|
|
2155
|
+
}
|
|
2156
|
+
function createIdentityEnumCodec(enumObject) {
|
|
2157
|
+
return createEnumCodec(enumObject, (key) => key);
|
|
2158
|
+
}
|
|
2159
|
+
const selectableSpanFieldCodec = createCamelCaseEnumCodec(SelectableSpanField);
|
|
2160
|
+
const castTypeCodec = createCamelCaseEnumCodec(CastType);
|
|
2161
|
+
const decodeStrategyCodec = createCamelCaseEnumCodec(DecodeStrategy);
|
|
2162
|
+
const spanSortFieldCodec = createCamelCaseEnumCodec(SpanSortField);
|
|
2163
|
+
const aggregateMetricCodec = createCamelCaseEnumCodec(AggregateMetric);
|
|
2164
|
+
const aggregateGroupFieldCodec = createCamelCaseEnumCodec(AggregateGroupField);
|
|
2165
|
+
const timeBucketCodec = createCamelCaseEnumCodec(TimeBucket);
|
|
2166
|
+
const sortDirectionCodec = createIdentityEnumCodec(SortDirection);
|
|
2167
|
+
|
|
2168
|
+
//#endregion
|
|
2169
|
+
exports.aggregateGroupFieldCodec = aggregateGroupFieldCodec;
|
|
2170
|
+
exports.aggregateMetricCodec = aggregateMetricCodec;
|
|
2171
|
+
exports.castTypeCodec = castTypeCodec;
|
|
2172
|
+
exports.decodeStrategyCodec = decodeStrategyCodec;
|
|
2173
|
+
exports.selectableSpanFieldCodec = selectableSpanFieldCodec;
|
|
2174
|
+
exports.sortDirectionCodec = sortDirectionCodec;
|
|
2175
|
+
exports.spanSortFieldCodec = spanSortFieldCodec;
|
|
2176
|
+
exports.timeBucketCodec = timeBucketCodec;
|
|
2177
|
+
//# sourceMappingURL=span_query_helpers.cjs.map
|