Debian Codegraph @

js/types/v1/types_pb.ts

raw symbols SCIP
1 // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none"
2 // @generated from file types/v1/types.proto (package types.v1, syntax proto3)
3 /* eslint-disable */
4 // @ts-nocheck
5
6 import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7 import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf";
8
9 /**
10 * @generated from enum types.v1.ScalarType
11 */
12 export enum ScalarType {
13 /**
14 * @generated from enum value: unknown = 0;
15 */
16 unknown = 0,
17
18 /**
19 * @generated from enum value: str = 1;
20 */
21 str = 1,
22
23 /**
24 * @generated from enum value: f64 = 2;
25 */
26 f64 = 2,
27
28 /**
29 * @generated from enum value: i64 = 3;
30 */
31 i64 = 3,
32
33 /**
34 * @generated from enum value: bool = 4;
35 */
36 bool = 4,
37
38 /**
39 * @generated from enum value: ts = 5;
40 */
41 ts = 5,
42
43 /**
44 * @generated from enum value: dur = 6;
45 */
46 dur = 6,
47 }
48 // Retrieve enum metadata with: proto3.getEnumType(ScalarType)
49 proto3.util.setEnumType(ScalarType, "types.v1.ScalarType", [
50 { no: 0, name: "unknown" },
51 { no: 1, name: "str" },
52 { no: 2, name: "f64" },
53 { no: 3, name: "i64" },
54 { no: 4, name: "bool" },
55 { no: 5, name: "ts" },
56 { no: 6, name: "dur" },
57 ]);
58
59 /**
60 * @generated from message types.v1.VarType
61 */
62 export class VarType extends Message<VarType> {
63 /**
64 * @generated from oneof types.v1.VarType.type
65 */
66 type: {
67 /**
68 * @generated from field: types.v1.ScalarType scalar = 1;
69 */
70 value: ScalarType;
71 case: "scalar";
72 } | {
73 /**
74 * @generated from field: types.v1.VarType.ArrayType array = 2;
75 */
76 value: VarType_ArrayType;
77 case: "array";
78 } | {
79 /**
80 * @generated from field: types.v1.VarType.ObjectType object = 3;
81 */
82 value: VarType_ObjectType;
83 case: "object";
84 } | {
85 /**
86 * @generated from field: types.v1.VarType.MapType map = 4;
87 */
88 value: VarType_MapType;
89 case: "map";
90 } | {
91 /**
92 * @generated from field: types.v1.VarType.Null null = 5;
93 */
94 value: VarType_Null;
95 case: "null";
96 } | { case: undefined; value?: undefined } = { case: undefined };
97
98 constructor(data?: PartialMessage<VarType>) {
99 super();
100 proto3.util.initPartial(data, this);
101 }
102
103 static readonly runtime: typeof proto3 = proto3;
104 static readonly typeName = "types.v1.VarType";
105 static readonly fields: FieldList = proto3.util.newFieldList(() => [
106 { no: 1, name: "scalar", kind: "enum", T: proto3.getEnumType(ScalarType), oneof: "type" },
107 { no: 2, name: "array", kind: "message", T: VarType_ArrayType, oneof: "type" },
108 { no: 3, name: "object", kind: "message", T: VarType_ObjectType, oneof: "type" },
109 { no: 4, name: "map", kind: "message", T: VarType_MapType, oneof: "type" },
110 { no: 5, name: "null", kind: "message", T: VarType_Null, oneof: "type" },
111 ]);
112
113 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VarType {
114 return new VarType().fromBinary(bytes, options);
115 }
116
117 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VarType {
118 return new VarType().fromJson(jsonValue, options);
119 }
120
121 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VarType {
122 return new VarType().fromJsonString(jsonString, options);
123 }
124
125 static equals(a: VarType | PlainMessage<VarType> | undefined, b: VarType | PlainMessage<VarType> | undefined): boolean {
126 return proto3.util.equals(VarType, a, b);
127 }
128 }
129
130 /**
131 * @generated from message types.v1.VarType.ArrayType
132 */
133 export class VarType_ArrayType extends Message<VarType_ArrayType> {
134 /**
135 * @generated from field: types.v1.VarType items = 1;
136 */
137 items?: VarType;
138
139 constructor(data?: PartialMessage<VarType_ArrayType>) {
140 super();
141 proto3.util.initPartial(data, this);
142 }
143
144 static readonly runtime: typeof proto3 = proto3;
145 static readonly typeName = "types.v1.VarType.ArrayType";
146 static readonly fields: FieldList = proto3.util.newFieldList(() => [
147 { no: 1, name: "items", kind: "message", T: VarType },
148 ]);
149
150 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VarType_ArrayType {
151 return new VarType_ArrayType().fromBinary(bytes, options);
152 }
153
154 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VarType_ArrayType {
155 return new VarType_ArrayType().fromJson(jsonValue, options);
156 }
157
158 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VarType_ArrayType {
159 return new VarType_ArrayType().fromJsonString(jsonString, options);
160 }
161
162 static equals(a: VarType_ArrayType | PlainMessage<VarType_ArrayType> | undefined, b: VarType_ArrayType | PlainMessage<VarType_ArrayType> | undefined): boolean {
163 return proto3.util.equals(VarType_ArrayType, a, b);
164 }
165 }
166
167 /**
168 * @generated from message types.v1.VarType.ObjectType
169 */
170 export class VarType_ObjectType extends Message<VarType_ObjectType> {
171 /**
172 * @generated from field: map<string, types.v1.VarType> kvs = 1;
173 */
174 kvs: { [key: string]: VarType } = {};
175
176 constructor(data?: PartialMessage<VarType_ObjectType>) {
177 super();
178 proto3.util.initPartial(data, this);
179 }
180
181 static readonly runtime: typeof proto3 = proto3;
182 static readonly typeName = "types.v1.VarType.ObjectType";
183 static readonly fields: FieldList = proto3.util.newFieldList(() => [
184 { no: 1, name: "kvs", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: VarType} },
185 ]);
186
187 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VarType_ObjectType {
188 return new VarType_ObjectType().fromBinary(bytes, options);
189 }
190
191 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VarType_ObjectType {
192 return new VarType_ObjectType().fromJson(jsonValue, options);
193 }
194
195 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VarType_ObjectType {
196 return new VarType_ObjectType().fromJsonString(jsonString, options);
197 }
198
199 static equals(a: VarType_ObjectType | PlainMessage<VarType_ObjectType> | undefined, b: VarType_ObjectType | PlainMessage<VarType_ObjectType> | undefined): boolean {
200 return proto3.util.equals(VarType_ObjectType, a, b);
201 }
202 }
203
204 /**
205 * @generated from message types.v1.VarType.MapType
206 */
207 export class VarType_MapType extends Message<VarType_MapType> {
208 /**
209 * @generated from field: types.v1.VarType key = 1;
210 */
211 key?: VarType;
212
213 /**
214 * @generated from field: types.v1.VarType value = 2;
215 */
216 value?: VarType;
217
218 constructor(data?: PartialMessage<VarType_MapType>) {
219 super();
220 proto3.util.initPartial(data, this);
221 }
222
223 static readonly runtime: typeof proto3 = proto3;
224 static readonly typeName = "types.v1.VarType.MapType";
225 static readonly fields: FieldList = proto3.util.newFieldList(() => [
226 { no: 1, name: "key", kind: "message", T: VarType },
227 { no: 2, name: "value", kind: "message", T: VarType },
228 ]);
229
230 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VarType_MapType {
231 return new VarType_MapType().fromBinary(bytes, options);
232 }
233
234 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VarType_MapType {
235 return new VarType_MapType().fromJson(jsonValue, options);
236 }
237
238 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VarType_MapType {
239 return new VarType_MapType().fromJsonString(jsonString, options);
240 }
241
242 static equals(a: VarType_MapType | PlainMessage<VarType_MapType> | undefined, b: VarType_MapType | PlainMessage<VarType_MapType> | undefined): boolean {
243 return proto3.util.equals(VarType_MapType, a, b);
244 }
245 }
246
247 /**
248 * @generated from message types.v1.VarType.Null
249 */
250 export class VarType_Null extends Message<VarType_Null> {
251 constructor(data?: PartialMessage<VarType_Null>) {
252 super();
253 proto3.util.initPartial(data, this);
254 }
255
256 static readonly runtime: typeof proto3 = proto3;
257 static readonly typeName = "types.v1.VarType.Null";
258 static readonly fields: FieldList = proto3.util.newFieldList(() => [
259 ]);
260
261 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VarType_Null {
262 return new VarType_Null().fromBinary(bytes, options);
263 }
264
265 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VarType_Null {
266 return new VarType_Null().fromJson(jsonValue, options);
267 }
268
269 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VarType_Null {
270 return new VarType_Null().fromJsonString(jsonString, options);
271 }
272
273 static equals(a: VarType_Null | PlainMessage<VarType_Null> | undefined, b: VarType_Null | PlainMessage<VarType_Null> | undefined): boolean {
274 return proto3.util.equals(VarType_Null, a, b);
275 }
276 }
277
278 /**
279 * @generated from message types.v1.KV
280 */
281 export class KV extends Message<KV> {
282 /**
283 * @generated from field: string key = 1;
284 */
285 key = "";
286
287 /**
288 * @generated from field: types.v1.Val value = 2;
289 */
290 value?: Val;
291
292 constructor(data?: PartialMessage<KV>) {
293 super();
294 proto3.util.initPartial(data, this);
295 }
296
297 static readonly runtime: typeof proto3 = proto3;
298 static readonly typeName = "types.v1.KV";
299 static readonly fields: FieldList = proto3.util.newFieldList(() => [
300 { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
301 { no: 2, name: "value", kind: "message", T: Val },
302 ]);
303
304 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KV {
305 return new KV().fromBinary(bytes, options);
306 }
307
308 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KV {
309 return new KV().fromJson(jsonValue, options);
310 }
311
312 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KV {
313 return new KV().fromJsonString(jsonString, options);
314 }
315
316 static equals(a: KV | PlainMessage<KV> | undefined, b: KV | PlainMessage<KV> | undefined): boolean {
317 return proto3.util.equals(KV, a, b);
318 }
319 }
320
321 /**
322 * @generated from message types.v1.Val
323 */
324 export class Val extends Message<Val> {
325 /**
326 * @generated from field: types.v1.VarType type = 100;
327 */
328 type?: VarType;
329
330 /**
331 * @generated from oneof types.v1.Val.kind
332 */
333 kind: {
334 /**
335 * @generated from field: string str = 201;
336 */
337 value: string;
338 case: "str";
339 } | {
340 /**
341 * @generated from field: double f64 = 202;
342 */
343 value: number;
344 case: "f64";
345 } | {
346 /**
347 * @generated from field: int64 i64 = 203;
348 */
349 value: bigint;
350 case: "i64";
351 } | {
352 /**
353 * @generated from field: bool bool = 204;
354 */
355 value: boolean;
356 case: "bool";
357 } | {
358 /**
359 * @generated from field: google.protobuf.Timestamp ts = 205;
360 */
361 value: Timestamp;
362 case: "ts";
363 } | {
364 /**
365 * @generated from field: google.protobuf.Duration dur = 206;
366 */
367 value: Duration;
368 case: "dur";
369 } | {
370 /**
371 * @generated from field: types.v1.Arr arr = 207;
372 */
373 value: Arr;
374 case: "arr";
375 } | {
376 /**
377 * @generated from field: types.v1.Obj obj = 208;
378 */
379 value: Obj;
380 case: "obj";
381 } | {
382 /**
383 * @generated from field: types.v1.Map map = 209;
384 */
385 value: Map;
386 case: "map";
387 } | {
388 /**
389 * @generated from field: types.v1.Null null = 210;
390 */
391 value: Null;
392 case: "null";
393 } | { case: undefined; value?: undefined } = { case: undefined };
394
395 constructor(data?: PartialMessage<Val>) {
396 super();
397 proto3.util.initPartial(data, this);
398 }
399
400 static readonly runtime: typeof proto3 = proto3;
401 static readonly typeName = "types.v1.Val";
402 static readonly fields: FieldList = proto3.util.newFieldList(() => [
403 { no: 100, name: "type", kind: "message", T: VarType },
404 { no: 201, name: "str", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "kind" },
405 { no: 202, name: "f64", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "kind" },
406 { no: 203, name: "i64", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "kind" },
407 { no: 204, name: "bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "kind" },
408 { no: 205, name: "ts", kind: "message", T: Timestamp, oneof: "kind" },
409 { no: 206, name: "dur", kind: "message", T: Duration, oneof: "kind" },
410 { no: 207, name: "arr", kind: "message", T: Arr, oneof: "kind" },
411 { no: 208, name: "obj", kind: "message", T: Obj, oneof: "kind" },
412 { no: 209, name: "map", kind: "message", T: Map, oneof: "kind" },
413 { no: 210, name: "null", kind: "message", T: Null, oneof: "kind" },
414 ]);
415
416 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Val {
417 return new Val().fromBinary(bytes, options);
418 }
419
420 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Val {
421 return new Val().fromJson(jsonValue, options);
422 }
423
424 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Val {
425 return new Val().fromJsonString(jsonString, options);
426 }
427
428 static equals(a: Val | PlainMessage<Val> | undefined, b: Val | PlainMessage<Val> | undefined): boolean {
429 return proto3.util.equals(Val, a, b);
430 }
431 }
432
433 /**
434 * @generated from message types.v1.Obj
435 */
436 export class Obj extends Message<Obj> {
437 /**
438 * @generated from field: repeated types.v1.KV kvs = 1;
439 */
440 kvs: KV[] = [];
441
442 constructor(data?: PartialMessage<Obj>) {
443 super();
444 proto3.util.initPartial(data, this);
445 }
446
447 static readonly runtime: typeof proto3 = proto3;
448 static readonly typeName = "types.v1.Obj";
449 static readonly fields: FieldList = proto3.util.newFieldList(() => [
450 { no: 1, name: "kvs", kind: "message", T: KV, repeated: true },
451 ]);
452
453 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Obj {
454 return new Obj().fromBinary(bytes, options);
455 }
456
457 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Obj {
458 return new Obj().fromJson(jsonValue, options);
459 }
460
461 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Obj {
462 return new Obj().fromJsonString(jsonString, options);
463 }
464
465 static equals(a: Obj | PlainMessage<Obj> | undefined, b: Obj | PlainMessage<Obj> | undefined): boolean {
466 return proto3.util.equals(Obj, a, b);
467 }
468 }
469
470 /**
471 * @generated from message types.v1.Arr
472 */
473 export class Arr extends Message<Arr> {
474 /**
475 * @generated from field: repeated types.v1.Val items = 1;
476 */
477 items: Val[] = [];
478
479 constructor(data?: PartialMessage<Arr>) {
480 super();
481 proto3.util.initPartial(data, this);
482 }
483
484 static readonly runtime: typeof proto3 = proto3;
485 static readonly typeName = "types.v1.Arr";
486 static readonly fields: FieldList = proto3.util.newFieldList(() => [
487 { no: 1, name: "items", kind: "message", T: Val, repeated: true },
488 ]);
489
490 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Arr {
491 return new Arr().fromBinary(bytes, options);
492 }
493
494 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Arr {
495 return new Arr().fromJson(jsonValue, options);
496 }
497
498 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Arr {
499 return new Arr().fromJsonString(jsonString, options);
500 }
501
502 static equals(a: Arr | PlainMessage<Arr> | undefined, b: Arr | PlainMessage<Arr> | undefined): boolean {
503 return proto3.util.equals(Arr, a, b);
504 }
505 }
506
507 /**
508 * @generated from message types.v1.Map
509 */
510 export class Map extends Message<Map> {
511 /**
512 * @generated from field: repeated types.v1.Map.Entry entries = 1;
513 */
514 entries: Map_Entry[] = [];
515
516 constructor(data?: PartialMessage<Map>) {
517 super();
518 proto3.util.initPartial(data, this);
519 }
520
521 static readonly runtime: typeof proto3 = proto3;
522 static readonly typeName = "types.v1.Map";
523 static readonly fields: FieldList = proto3.util.newFieldList(() => [
524 { no: 1, name: "entries", kind: "message", T: Map_Entry, repeated: true },
525 ]);
526
527 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Map {
528 return new Map().fromBinary(bytes, options);
529 }
530
531 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Map {
532 return new Map().fromJson(jsonValue, options);
533 }
534
535 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Map {
536 return new Map().fromJsonString(jsonString, options);
537 }
538
539 static equals(a: Map | PlainMessage<Map> | undefined, b: Map | PlainMessage<Map> | undefined): boolean {
540 return proto3.util.equals(Map, a, b);
541 }
542 }
543
544 /**
545 * @generated from message types.v1.Map.Entry
546 */
547 export class Map_Entry extends Message<Map_Entry> {
548 /**
549 * @generated from field: types.v1.Val key = 1;
550 */
551 key?: Val;
552
553 /**
554 * @generated from field: types.v1.Val value = 2;
555 */
556 value?: Val;
557
558 constructor(data?: PartialMessage<Map_Entry>) {
559 super();
560 proto3.util.initPartial(data, this);
561 }
562
563 static readonly runtime: typeof proto3 = proto3;
564 static readonly typeName = "types.v1.Map.Entry";
565 static readonly fields: FieldList = proto3.util.newFieldList(() => [
566 { no: 1, name: "key", kind: "message", T: Val },
567 { no: 2, name: "value", kind: "message", T: Val },
568 ]);
569
570 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Map_Entry {
571 return new Map_Entry().fromBinary(bytes, options);
572 }
573
574 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Map_Entry {
575 return new Map_Entry().fromJson(jsonValue, options);
576 }
577
578 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Map_Entry {
579 return new Map_Entry().fromJsonString(jsonString, options);
580 }
581
582 static equals(a: Map_Entry | PlainMessage<Map_Entry> | undefined, b: Map_Entry | PlainMessage<Map_Entry> | undefined): boolean {
583 return proto3.util.equals(Map_Entry, a, b);
584 }
585 }
586
587 /**
588 * @generated from message types.v1.Null
589 */
590 export class Null extends Message<Null> {
591 constructor(data?: PartialMessage<Null>) {
592 super();
593 proto3.util.initPartial(data, this);
594 }
595
596 static readonly runtime: typeof proto3 = proto3;
597 static readonly typeName = "types.v1.Null";
598 static readonly fields: FieldList = proto3.util.newFieldList(() => [
599 ]);
600
601 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Null {
602 return new Null().fromBinary(bytes, options);
603 }
604
605 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Null {
606 return new Null().fromJson(jsonValue, options);
607 }
608
609 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Null {
610 return new Null().fromJsonString(jsonString, options);
611 }
612
613 static equals(a: Null | PlainMessage<Null> | undefined, b: Null | PlainMessage<Null> | undefined): boolean {
614 return proto3.util.equals(Null, a, b);
615 }
616 }
617
618 /**
619 * @generated from message types.v1.Scalar
620 */
621 export class Scalar extends Message<Scalar> {
622 /**
623 * @generated from field: types.v1.VarType type = 100;
624 */
625 type?: VarType;
626
627 /**
628 * @generated from oneof types.v1.Scalar.kind
629 */
630 kind: {
631 /**
632 * @generated from field: string str = 201;
633 */
634 value: string;
635 case: "str";
636 } | {
637 /**
638 * @generated from field: double f64 = 202;
639 */
640 value: number;
641 case: "f64";
642 } | {
643 /**
644 * @generated from field: int64 i64 = 203;
645 */
646 value: bigint;
647 case: "i64";
648 } | {
649 /**
650 * @generated from field: bool bool = 204;
651 */
652 value: boolean;
653 case: "bool";
654 } | {
655 /**
656 * @generated from field: google.protobuf.Timestamp ts = 207;
657 */
658 value: Timestamp;
659 case: "ts";
660 } | {
661 /**
662 * @generated from field: google.protobuf.Duration dur = 208;
663 */
664 value: Duration;
665 case: "dur";
666 } | { case: undefined; value?: undefined } = { case: undefined };
667
668 constructor(data?: PartialMessage<Scalar>) {
669 super();
670 proto3.util.initPartial(data, this);
671 }
672
673 static readonly runtime: typeof proto3 = proto3;
674 static readonly typeName = "types.v1.Scalar";
675 static readonly fields: FieldList = proto3.util.newFieldList(() => [
676 { no: 100, name: "type", kind: "message", T: VarType },
677 { no: 201, name: "str", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "kind" },
678 { no: 202, name: "f64", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "kind" },
679 { no: 203, name: "i64", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "kind" },
680 { no: 204, name: "bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "kind" },
681 { no: 207, name: "ts", kind: "message", T: Timestamp, oneof: "kind" },
682 { no: 208, name: "dur", kind: "message", T: Duration, oneof: "kind" },
683 ]);
684
685 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Scalar {
686 return new Scalar().fromBinary(bytes, options);
687 }
688
689 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Scalar {
690 return new Scalar().fromJson(jsonValue, options);
691 }
692
693 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Scalar {
694 return new Scalar().fromJsonString(jsonString, options);
695 }
696
697 static equals(a: Scalar | PlainMessage<Scalar> | undefined, b: Scalar | PlainMessage<Scalar> | undefined): boolean {
698 return proto3.util.equals(Scalar, a, b);
699 }
700 }
701
702 /**
703 * @generated from message types.v1.FlatKV
704 */
705 export class FlatKV extends Message<FlatKV> {
706 /**
707 * @generated from field: string key = 1;
708 */
709 key = "";
710
711 /**
712 * @generated from field: types.v1.Scalar value = 2;
713 */
714 value?: Scalar;
715
716 constructor(data?: PartialMessage<FlatKV>) {
717 super();
718 proto3.util.initPartial(data, this);
719 }
720
721 static readonly runtime: typeof proto3 = proto3;
722 static readonly typeName = "types.v1.FlatKV";
723 static readonly fields: FieldList = proto3.util.newFieldList(() => [
724 { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
725 { no: 2, name: "value", kind: "message", T: Scalar },
726 ]);
727
728 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlatKV {
729 return new FlatKV().fromBinary(bytes, options);
730 }
731
732 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlatKV {
733 return new FlatKV().fromJson(jsonValue, options);
734 }
735
736 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlatKV {
737 return new FlatKV().fromJsonString(jsonString, options);
738 }
739
740 static equals(a: FlatKV | PlainMessage<FlatKV> | undefined, b: FlatKV | PlainMessage<FlatKV> | undefined): boolean {
741 return proto3.util.equals(FlatKV, a, b);
742 }
743 }
744
745 /**
746 * @generated from message types.v1.FlatArr
747 */
748 export class FlatArr extends Message<FlatArr> {
749 /**
750 * @generated from field: repeated types.v1.Scalar items = 1;
751 */
752 items: Scalar[] = [];
753
754 constructor(data?: PartialMessage<FlatArr>) {
755 super();
756 proto3.util.initPartial(data, this);
757 }
758
759 static readonly runtime: typeof proto3 = proto3;
760 static readonly typeName = "types.v1.FlatArr";
761 static readonly fields: FieldList = proto3.util.newFieldList(() => [
762 { no: 1, name: "items", kind: "message", T: Scalar, repeated: true },
763 ]);
764
765 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlatArr {
766 return new FlatArr().fromBinary(bytes, options);
767 }
768
769 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlatArr {
770 return new FlatArr().fromJson(jsonValue, options);
771 }
772
773 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlatArr {
774 return new FlatArr().fromJsonString(jsonString, options);
775 }
776
777 static equals(a: FlatArr | PlainMessage<FlatArr> | undefined, b: FlatArr | PlainMessage<FlatArr> | undefined): boolean {
778 return proto3.util.equals(FlatArr, a, b);
779 }
780 }
781
782 /**
783 * @generated from message types.v1.TableType
784 */
785 export class TableType extends Message<TableType> {
786 /**
787 * @generated from field: repeated types.v1.TableType.Column columns = 1;
788 */
789 columns: TableType_Column[] = [];
790
791 constructor(data?: PartialMessage<TableType>) {
792 super();
793 proto3.util.initPartial(data, this);
794 }
795
796 static readonly runtime: typeof proto3 = proto3;
797 static readonly typeName = "types.v1.TableType";
798 static readonly fields: FieldList = proto3.util.newFieldList(() => [
799 { no: 1, name: "columns", kind: "message", T: TableType_Column, repeated: true },
800 ]);
801
802 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TableType {
803 return new TableType().fromBinary(bytes, options);
804 }
805
806 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TableType {
807 return new TableType().fromJson(jsonValue, options);
808 }
809
810 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TableType {
811 return new TableType().fromJsonString(jsonString, options);
812 }
813
814 static equals(a: TableType | PlainMessage<TableType> | undefined, b: TableType | PlainMessage<TableType> | undefined): boolean {
815 return proto3.util.equals(TableType, a, b);
816 }
817 }
818
819 /**
820 * @generated from message types.v1.TableType.Column
821 */
822 export class TableType_Column extends Message<TableType_Column> {
823 /**
824 * @generated from field: string name = 1;
825 */
826 name = "";
827
828 /**
829 * @generated from field: types.v1.VarType type = 2;
830 */
831 type?: VarType;
832
833 constructor(data?: PartialMessage<TableType_Column>) {
834 super();
835 proto3.util.initPartial(data, this);
836 }
837
838 static readonly runtime: typeof proto3 = proto3;
839 static readonly typeName = "types.v1.TableType.Column";
840 static readonly fields: FieldList = proto3.util.newFieldList(() => [
841 { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
842 { no: 2, name: "type", kind: "message", T: VarType },
843 ]);
844
845 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TableType_Column {
846 return new TableType_Column().fromBinary(bytes, options);
847 }
848
849 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TableType_Column {
850 return new TableType_Column().fromJson(jsonValue, options);
851 }
852
853 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TableType_Column {
854 return new TableType_Column().fromJsonString(jsonString, options);
855 }
856
857 static equals(a: TableType_Column | PlainMessage<TableType_Column> | undefined, b: TableType_Column | PlainMessage<TableType_Column> | undefined): boolean {
858 return proto3.util.equals(TableType_Column, a, b);
859 }
860 }
861
862 /**
863 * @generated from message types.v1.Table
864 */
865 export class Table extends Message<Table> {
866 /**
867 * @generated from field: types.v1.TableType type = 1;
868 */
869 type?: TableType;
870
871 /**
872 * @generated from field: repeated types.v1.Arr rows = 2;
873 */
874 rows: Arr[] = [];
875
876 constructor(data?: PartialMessage<Table>) {
877 super();
878 proto3.util.initPartial(data, this);
879 }
880
881 static readonly runtime: typeof proto3 = proto3;
882 static readonly typeName = "types.v1.Table";
883 static readonly fields: FieldList = proto3.util.newFieldList(() => [
884 { no: 1, name: "type", kind: "message", T: TableType },
885 { no: 2, name: "rows", kind: "message", T: Arr, repeated: true },
886 ]);
887
888 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Table {
889 return new Table().fromBinary(bytes, options);
890 }
891
892 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Table {
893 return new Table().fromJson(jsonValue, options);
894 }
895
896 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Table {
897 return new Table().fromJsonString(jsonString, options);
898 }
899
900 static equals(a: Table | PlainMessage<Table> | undefined, b: Table | PlainMessage<Table> | undefined): boolean {
901 return proto3.util.equals(Table, a, b);
902 }
903 }
904
905 /**
906 * @generated from message types.v1.DataStreamType
907 */
908 export class DataStreamType extends Message<DataStreamType> {
909 /**
910 * @generated from oneof types.v1.DataStreamType.type
911 */
912 type: {
913 /**
914 * @generated from field: types.v1.MultiDataStreamType multi = 1;
915 */
916 value: MultiDataStreamType;
917 case: "multi";
918 } | {
919 /**
920 * @generated from field: types.v1.TabularType tabular = 2;
921 */
922 value: TabularType;
923 case: "tabular";
924 } | {
925 /**
926 * @generated from field: types.v1.VarType single_value = 3;
927 */
928 value: VarType;
929 case: "singleValue";
930 } | {
931 /**
932 * @generated from field: types.v1.Timeseries timeseries = 5;
933 */
934 value: Timeseries;
935 case: "timeseries";
936 } | { case: undefined; value?: undefined } = { case: undefined };
937
938 constructor(data?: PartialMessage<DataStreamType>) {
939 super();
940 proto3.util.initPartial(data, this);
941 }
942
943 static readonly runtime: typeof proto3 = proto3;
944 static readonly typeName = "types.v1.DataStreamType";
945 static readonly fields: FieldList = proto3.util.newFieldList(() => [
946 { no: 1, name: "multi", kind: "message", T: MultiDataStreamType, oneof: "type" },
947 { no: 2, name: "tabular", kind: "message", T: TabularType, oneof: "type" },
948 { no: 3, name: "single_value", kind: "message", T: VarType, oneof: "type" },
949 { no: 5, name: "timeseries", kind: "message", T: Timeseries, oneof: "type" },
950 ]);
951
952 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStreamType {
953 return new DataStreamType().fromBinary(bytes, options);
954 }
955
956 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStreamType {
957 return new DataStreamType().fromJson(jsonValue, options);
958 }
959
960 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStreamType {
961 return new DataStreamType().fromJsonString(jsonString, options);
962 }
963
964 static equals(a: DataStreamType | PlainMessage<DataStreamType> | undefined, b: DataStreamType | PlainMessage<DataStreamType> | undefined): boolean {
965 return proto3.util.equals(DataStreamType, a, b);
966 }
967 }
968
969 /**
970 * @generated from message types.v1.MultiDataStreamType
971 */
972 export class MultiDataStreamType extends Message<MultiDataStreamType> {
973 /**
974 * @generated from field: types.v1.DataStreamType streams = 1;
975 */
976 streams?: DataStreamType;
977
978 constructor(data?: PartialMessage<MultiDataStreamType>) {
979 super();
980 proto3.util.initPartial(data, this);
981 }
982
983 static readonly runtime: typeof proto3 = proto3;
984 static readonly typeName = "types.v1.MultiDataStreamType";
985 static readonly fields: FieldList = proto3.util.newFieldList(() => [
986 { no: 1, name: "streams", kind: "message", T: DataStreamType },
987 ]);
988
989 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultiDataStreamType {
990 return new MultiDataStreamType().fromBinary(bytes, options);
991 }
992
993 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultiDataStreamType {
994 return new MultiDataStreamType().fromJson(jsonValue, options);
995 }
996
997 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultiDataStreamType {
998 return new MultiDataStreamType().fromJsonString(jsonString, options);
999 }
1000
1001 static equals(a: MultiDataStreamType | PlainMessage<MultiDataStreamType> | undefined, b: MultiDataStreamType | PlainMessage<MultiDataStreamType> | undefined): boolean {
1002 return proto3.util.equals(MultiDataStreamType, a, b);
1003 }
1004 }
1005
1006 /**
1007 * @generated from message types.v1.TabularType
1008 */
1009 export class TabularType extends Message<TabularType> {
1010 /**
1011 * @generated from oneof types.v1.TabularType.type
1012 */
1013 type: {
1014 /**
1015 * @generated from field: types.v1.TableType table = 1;
1016 */
1017 value: TableType;
1018 case: "table";
1019 } | {
1020 /**
1021 * @generated from field: types.v1.TabularType.LogEventType log_events = 2;
1022 */
1023 value: TabularType_LogEventType;
1024 case: "logEvents";
1025 } | { case: undefined; value?: undefined } = { case: undefined };
1026
1027 constructor(data?: PartialMessage<TabularType>) {
1028 super();
1029 proto3.util.initPartial(data, this);
1030 }
1031
1032 static readonly runtime: typeof proto3 = proto3;
1033 static readonly typeName = "types.v1.TabularType";
1034 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1035 { no: 1, name: "table", kind: "message", T: TableType, oneof: "type" },
1036 { no: 2, name: "log_events", kind: "message", T: TabularType_LogEventType, oneof: "type" },
1037 ]);
1038
1039 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TabularType {
1040 return new TabularType().fromBinary(bytes, options);
1041 }
1042
1043 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TabularType {
1044 return new TabularType().fromJson(jsonValue, options);
1045 }
1046
1047 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TabularType {
1048 return new TabularType().fromJsonString(jsonString, options);
1049 }
1050
1051 static equals(a: TabularType | PlainMessage<TabularType> | undefined, b: TabularType | PlainMessage<TabularType> | undefined): boolean {
1052 return proto3.util.equals(TabularType, a, b);
1053 }
1054 }
1055
1056 /**
1057 * log events contain,
1058 * - machine_id
1059 * - session_id
1060 * - event_id (for ordering only within a machine/session pair
1061 * - parsed_at (timestamp of when the log event was parsed)
1062 * - timestamp (from a value found in the log, otherwise parsed_at)
1063 * - level
1064 * - message
1065 * - key-value pairs
1066 *
1067 * @generated from message types.v1.TabularType.LogEventType
1068 */
1069 export class TabularType_LogEventType extends Message<TabularType_LogEventType> {
1070 constructor(data?: PartialMessage<TabularType_LogEventType>) {
1071 super();
1072 proto3.util.initPartial(data, this);
1073 }
1074
1075 static readonly runtime: typeof proto3 = proto3;
1076 static readonly typeName = "types.v1.TabularType.LogEventType";
1077 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1078 ]);
1079
1080 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TabularType_LogEventType {
1081 return new TabularType_LogEventType().fromBinary(bytes, options);
1082 }
1083
1084 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TabularType_LogEventType {
1085 return new TabularType_LogEventType().fromJson(jsonValue, options);
1086 }
1087
1088 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TabularType_LogEventType {
1089 return new TabularType_LogEventType().fromJsonString(jsonString, options);
1090 }
1091
1092 static equals(a: TabularType_LogEventType | PlainMessage<TabularType_LogEventType> | undefined, b: TabularType_LogEventType | PlainMessage<TabularType_LogEventType> | undefined): boolean {
1093 return proto3.util.equals(TabularType_LogEventType, a, b);
1094 }
1095 }
1096
1097 /**
1098 * @generated from message types.v1.Timeseries
1099 */
1100 export class Timeseries extends Message<Timeseries> {
1101 /**
1102 * each row will contain a timestamp along with a value
1103 * value of this type
1104 *
1105 * @generated from field: types.v1.VarType type = 1;
1106 */
1107 type?: VarType;
1108
1109 constructor(data?: PartialMessage<Timeseries>) {
1110 super();
1111 proto3.util.initPartial(data, this);
1112 }
1113
1114 static readonly runtime: typeof proto3 = proto3;
1115 static readonly typeName = "types.v1.Timeseries";
1116 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1117 { no: 1, name: "type", kind: "message", T: VarType },
1118 ]);
1119
1120 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Timeseries {
1121 return new Timeseries().fromBinary(bytes, options);
1122 }
1123
1124 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Timeseries {
1125 return new Timeseries().fromJson(jsonValue, options);
1126 }
1127
1128 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Timeseries {
1129 return new Timeseries().fromJsonString(jsonString, options);
1130 }
1131
1132 static equals(a: Timeseries | PlainMessage<Timeseries> | undefined, b: Timeseries | PlainMessage<Timeseries> | undefined): boolean {
1133 return proto3.util.equals(Timeseries, a, b);
1134 }
1135 }
1136