Debian Codegraph @

js/types/v1/query_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/query.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 { Message, proto3, Timestamp } from "@bufbuild/protobuf";
8 import { Obj, Scalar, Table, Val, VarType } from "./types_pb";
9 import { LogQuery } from "./logquery_pb";
10 import { IngestedLogEvent } from "./logevent_pb";
11
12 /**
13 * @generated from message types.v1.Data
14 */
15 export class Data extends Message<Data> {
16 /**
17 * @generated from oneof types.v1.Data.shape
18 */
19 shape: {
20 /**
21 * SubQueries need to be further queried to obtain actual data.
22 *
23 * @generated from field: types.v1.Data.SubQueries subqueries = 101;
24 */
25 value: Data_SubQueries;
26 case: "subqueries";
27 } | {
28 /**
29 * tabular is data that has a table header, followed by rows that match the
30 * header
31 *
32 * @generated from field: types.v1.Tabular tabular = 201;
33 */
34 value: Tabular;
35 case: "tabular";
36 } | {
37 /**
38 * single_value is a single value
39 *
40 * @generated from field: types.v1.Val single_value = 301;
41 */
42 value: Val;
43 case: "singleValue";
44 } | {
45 /**
46 * scalar timeseries data is a list of [ts, scalar] where scalar is usually
47 * a numeric value
48 *
49 * @generated from field: types.v1.ScalarTimeseries scalar_timeseries = 401;
50 */
51 value: ScalarTimeseries;
52 case: "scalarTimeseries";
53 } | {
54 /**
55 * vector timeseries data is a list of [ts, [scalar0, ..., scalarN]] where
56 * scalar is usually a numeric value
57 *
58 * @generated from field: types.v1.VectorTimeseries vector_timeseries = 402;
59 */
60 value: VectorTimeseries;
61 case: "vectorTimeseries";
62 } | { case: undefined; value?: undefined } = { case: undefined };
63
64 constructor(data?: PartialMessage<Data>) {
65 super();
66 proto3.util.initPartial(data, this);
67 }
68
69 static readonly runtime: typeof proto3 = proto3;
70 static readonly typeName = "types.v1.Data";
71 static readonly fields: FieldList = proto3.util.newFieldList(() => [
72 { no: 101, name: "subqueries", kind: "message", T: Data_SubQueries, oneof: "shape" },
73 { no: 201, name: "tabular", kind: "message", T: Tabular, oneof: "shape" },
74 { no: 301, name: "single_value", kind: "message", T: Val, oneof: "shape" },
75 { no: 401, name: "scalar_timeseries", kind: "message", T: ScalarTimeseries, oneof: "shape" },
76 { no: 402, name: "vector_timeseries", kind: "message", T: VectorTimeseries, oneof: "shape" },
77 ]);
78
79 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Data {
80 return new Data().fromBinary(bytes, options);
81 }
82
83 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Data {
84 return new Data().fromJson(jsonValue, options);
85 }
86
87 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Data {
88 return new Data().fromJsonString(jsonString, options);
89 }
90
91 static equals(a: Data | PlainMessage<Data> | undefined, b: Data | PlainMessage<Data> | undefined): boolean {
92 return proto3.util.equals(Data, a, b);
93 }
94 }
95
96 /**
97 * @generated from message types.v1.Data.SubQueries
98 */
99 export class Data_SubQueries extends Message<Data_SubQueries> {
100 /**
101 * @generated from field: repeated types.v1.LogQuery queries = 1;
102 */
103 queries: LogQuery[] = [];
104
105 constructor(data?: PartialMessage<Data_SubQueries>) {
106 super();
107 proto3.util.initPartial(data, this);
108 }
109
110 static readonly runtime: typeof proto3 = proto3;
111 static readonly typeName = "types.v1.Data.SubQueries";
112 static readonly fields: FieldList = proto3.util.newFieldList(() => [
113 { no: 1, name: "queries", kind: "message", T: LogQuery, repeated: true },
114 ]);
115
116 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Data_SubQueries {
117 return new Data_SubQueries().fromBinary(bytes, options);
118 }
119
120 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Data_SubQueries {
121 return new Data_SubQueries().fromJson(jsonValue, options);
122 }
123
124 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Data_SubQueries {
125 return new Data_SubQueries().fromJsonString(jsonString, options);
126 }
127
128 static equals(a: Data_SubQueries | PlainMessage<Data_SubQueries> | undefined, b: Data_SubQueries | PlainMessage<Data_SubQueries> | undefined): boolean {
129 return proto3.util.equals(Data_SubQueries, a, b);
130 }
131 }
132
133 /**
134 * @generated from message types.v1.Tabular
135 */
136 export class Tabular extends Message<Tabular> {
137 /**
138 * @generated from oneof types.v1.Tabular.shape
139 */
140 shape: {
141 /**
142 * @generated from field: types.v1.LogEvents log_events = 201;
143 */
144 value: LogEvents;
145 case: "logEvents";
146 } | {
147 /**
148 * @generated from field: types.v1.Table free_form = 202;
149 */
150 value: Table;
151 case: "freeForm";
152 } | { case: undefined; value?: undefined } = { case: undefined };
153
154 constructor(data?: PartialMessage<Tabular>) {
155 super();
156 proto3.util.initPartial(data, this);
157 }
158
159 static readonly runtime: typeof proto3 = proto3;
160 static readonly typeName = "types.v1.Tabular";
161 static readonly fields: FieldList = proto3.util.newFieldList(() => [
162 { no: 201, name: "log_events", kind: "message", T: LogEvents, oneof: "shape" },
163 { no: 202, name: "free_form", kind: "message", T: Table, oneof: "shape" },
164 ]);
165
166 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Tabular {
167 return new Tabular().fromBinary(bytes, options);
168 }
169
170 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Tabular {
171 return new Tabular().fromJson(jsonValue, options);
172 }
173
174 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Tabular {
175 return new Tabular().fromJsonString(jsonString, options);
176 }
177
178 static equals(a: Tabular | PlainMessage<Tabular> | undefined, b: Tabular | PlainMessage<Tabular> | undefined): boolean {
179 return proto3.util.equals(Tabular, a, b);
180 }
181 }
182
183 /**
184 * @generated from message types.v1.ScalarTimeseries
185 */
186 export class ScalarTimeseries extends Message<ScalarTimeseries> {
187 /**
188 * scalars will contain only this type of value
189 *
190 * @generated from field: types.v1.VarType type = 2;
191 */
192 type?: VarType;
193
194 /**
195 * @generated from field: repeated types.v1.ScalarTimestamp scalars = 3;
196 */
197 scalars: ScalarTimestamp[] = [];
198
199 constructor(data?: PartialMessage<ScalarTimeseries>) {
200 super();
201 proto3.util.initPartial(data, this);
202 }
203
204 static readonly runtime: typeof proto3 = proto3;
205 static readonly typeName = "types.v1.ScalarTimeseries";
206 static readonly fields: FieldList = proto3.util.newFieldList(() => [
207 { no: 2, name: "type", kind: "message", T: VarType },
208 { no: 3, name: "scalars", kind: "message", T: ScalarTimestamp, repeated: true },
209 ]);
210
211 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScalarTimeseries {
212 return new ScalarTimeseries().fromBinary(bytes, options);
213 }
214
215 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScalarTimeseries {
216 return new ScalarTimeseries().fromJson(jsonValue, options);
217 }
218
219 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScalarTimeseries {
220 return new ScalarTimeseries().fromJsonString(jsonString, options);
221 }
222
223 static equals(a: ScalarTimeseries | PlainMessage<ScalarTimeseries> | undefined, b: ScalarTimeseries | PlainMessage<ScalarTimeseries> | undefined): boolean {
224 return proto3.util.equals(ScalarTimeseries, a, b);
225 }
226 }
227
228 /**
229 * @generated from message types.v1.LogEvents
230 */
231 export class LogEvents extends Message<LogEvents> {
232 /**
233 * @generated from field: repeated types.v1.IngestedLogEvent events = 1;
234 */
235 events: IngestedLogEvent[] = [];
236
237 constructor(data?: PartialMessage<LogEvents>) {
238 super();
239 proto3.util.initPartial(data, this);
240 }
241
242 static readonly runtime: typeof proto3 = proto3;
243 static readonly typeName = "types.v1.LogEvents";
244 static readonly fields: FieldList = proto3.util.newFieldList(() => [
245 { no: 1, name: "events", kind: "message", T: IngestedLogEvent, repeated: true },
246 ]);
247
248 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogEvents {
249 return new LogEvents().fromBinary(bytes, options);
250 }
251
252 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogEvents {
253 return new LogEvents().fromJson(jsonValue, options);
254 }
255
256 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogEvents {
257 return new LogEvents().fromJsonString(jsonString, options);
258 }
259
260 static equals(a: LogEvents | PlainMessage<LogEvents> | undefined, b: LogEvents | PlainMessage<LogEvents> | undefined): boolean {
261 return proto3.util.equals(LogEvents, a, b);
262 }
263 }
264
265 /**
266 * @generated from message types.v1.ScalarTimestamp
267 */
268 export class ScalarTimestamp extends Message<ScalarTimestamp> {
269 /**
270 * @generated from field: google.protobuf.Timestamp ts = 1;
271 */
272 ts?: Timestamp;
273
274 /**
275 * @generated from field: types.v1.Scalar scalar = 2;
276 */
277 scalar?: Scalar;
278
279 constructor(data?: PartialMessage<ScalarTimestamp>) {
280 super();
281 proto3.util.initPartial(data, this);
282 }
283
284 static readonly runtime: typeof proto3 = proto3;
285 static readonly typeName = "types.v1.ScalarTimestamp";
286 static readonly fields: FieldList = proto3.util.newFieldList(() => [
287 { no: 1, name: "ts", kind: "message", T: Timestamp },
288 { no: 2, name: "scalar", kind: "message", T: Scalar },
289 ]);
290
291 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScalarTimestamp {
292 return new ScalarTimestamp().fromBinary(bytes, options);
293 }
294
295 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScalarTimestamp {
296 return new ScalarTimestamp().fromJson(jsonValue, options);
297 }
298
299 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScalarTimestamp {
300 return new ScalarTimestamp().fromJsonString(jsonString, options);
301 }
302
303 static equals(a: ScalarTimestamp | PlainMessage<ScalarTimestamp> | undefined, b: ScalarTimestamp | PlainMessage<ScalarTimestamp> | undefined): boolean {
304 return proto3.util.equals(ScalarTimestamp, a, b);
305 }
306 }
307
308 /**
309 * @generated from message types.v1.VectorTimeseries
310 */
311 export class VectorTimeseries extends Message<VectorTimeseries> {
312 /**
313 * @generated from field: types.v1.Obj context = 1;
314 */
315 context?: Obj;
316
317 /**
318 * vectors will contain only this type of value
319 *
320 * @generated from field: types.v1.VarType type = 2;
321 */
322 type?: VarType;
323
324 /**
325 * @generated from field: repeated types.v1.VectorTimestamp vectors = 3;
326 */
327 vectors: VectorTimestamp[] = [];
328
329 constructor(data?: PartialMessage<VectorTimeseries>) {
330 super();
331 proto3.util.initPartial(data, this);
332 }
333
334 static readonly runtime: typeof proto3 = proto3;
335 static readonly typeName = "types.v1.VectorTimeseries";
336 static readonly fields: FieldList = proto3.util.newFieldList(() => [
337 { no: 1, name: "context", kind: "message", T: Obj },
338 { no: 2, name: "type", kind: "message", T: VarType },
339 { no: 3, name: "vectors", kind: "message", T: VectorTimestamp, repeated: true },
340 ]);
341
342 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VectorTimeseries {
343 return new VectorTimeseries().fromBinary(bytes, options);
344 }
345
346 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VectorTimeseries {
347 return new VectorTimeseries().fromJson(jsonValue, options);
348 }
349
350 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VectorTimeseries {
351 return new VectorTimeseries().fromJsonString(jsonString, options);
352 }
353
354 static equals(a: VectorTimeseries | PlainMessage<VectorTimeseries> | undefined, b: VectorTimeseries | PlainMessage<VectorTimeseries> | undefined): boolean {
355 return proto3.util.equals(VectorTimeseries, a, b);
356 }
357 }
358
359 /**
360 * @generated from message types.v1.VectorTimestamp
361 */
362 export class VectorTimestamp extends Message<VectorTimestamp> {
363 /**
364 * @generated from field: google.protobuf.Timestamp ts = 1;
365 */
366 ts?: Timestamp;
367
368 /**
369 * @generated from field: repeated types.v1.Scalar vector = 2;
370 */
371 vector: Scalar[] = [];
372
373 constructor(data?: PartialMessage<VectorTimestamp>) {
374 super();
375 proto3.util.initPartial(data, this);
376 }
377
378 static readonly runtime: typeof proto3 = proto3;
379 static readonly typeName = "types.v1.VectorTimestamp";
380 static readonly fields: FieldList = proto3.util.newFieldList(() => [
381 { no: 1, name: "ts", kind: "message", T: Timestamp },
382 { no: 2, name: "vector", kind: "message", T: Scalar, repeated: true },
383 ]);
384
385 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VectorTimestamp {
386 return new VectorTimestamp().fromBinary(bytes, options);
387 }
388
389 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VectorTimestamp {
390 return new VectorTimestamp().fromJson(jsonValue, options);
391 }
392
393 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VectorTimestamp {
394 return new VectorTimestamp().fromJsonString(jsonString, options);
395 }
396
397 static equals(a: VectorTimestamp | PlainMessage<VectorTimestamp> | undefined, b: VectorTimestamp | PlainMessage<VectorTimestamp> | undefined): boolean {
398 return proto3.util.equals(VectorTimestamp, a, b);
399 }
400 }
401