Debian Codegraph @

js/svc/ingest/v1/service_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 svc/ingest/v1/service.proto (package svc.ingest.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, protoInt64 } from "@bufbuild/protobuf";
8 import { LogEvent } from "../../../types/v1/logevent_pb";
9
10 /**
11 * @generated from message svc.ingest.v1.GetHeartbeatRequest
12 */
13 export class GetHeartbeatRequest extends Message<GetHeartbeatRequest> {
14 /**
15 * may change the heartbeat if specified
16 *
17 * @generated from field: optional uint64 machine_id = 1;
18 */
19 machineId?: bigint;
20
21 /**
22 * @generated from field: optional uint64 session_id = 2;
23 */
24 sessionId?: bigint;
25
26 constructor(data?: PartialMessage<GetHeartbeatRequest>) {
27 super();
28 proto3.util.initPartial(data, this);
29 }
30
31 static readonly runtime: typeof proto3 = proto3;
32 static readonly typeName = "svc.ingest.v1.GetHeartbeatRequest";
33 static readonly fields: FieldList = proto3.util.newFieldList(() => [
34 { no: 1, name: "machine_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
35 { no: 2, name: "session_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
36 ]);
37
38 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetHeartbeatRequest {
39 return new GetHeartbeatRequest().fromBinary(bytes, options);
40 }
41
42 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetHeartbeatRequest {
43 return new GetHeartbeatRequest().fromJson(jsonValue, options);
44 }
45
46 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetHeartbeatRequest {
47 return new GetHeartbeatRequest().fromJsonString(jsonString, options);
48 }
49
50 static equals(a: GetHeartbeatRequest | PlainMessage<GetHeartbeatRequest> | undefined, b: GetHeartbeatRequest | PlainMessage<GetHeartbeatRequest> | undefined): boolean {
51 return proto3.util.equals(GetHeartbeatRequest, a, b);
52 }
53 }
54
55 /**
56 * @generated from message svc.ingest.v1.GetHeartbeatResponse
57 */
58 export class GetHeartbeatResponse extends Message<GetHeartbeatResponse> {
59 /**
60 * @generated from field: google.protobuf.Duration heartbeat_in = 1;
61 */
62 heartbeatIn?: Duration;
63
64 constructor(data?: PartialMessage<GetHeartbeatResponse>) {
65 super();
66 proto3.util.initPartial(data, this);
67 }
68
69 static readonly runtime: typeof proto3 = proto3;
70 static readonly typeName = "svc.ingest.v1.GetHeartbeatResponse";
71 static readonly fields: FieldList = proto3.util.newFieldList(() => [
72 { no: 1, name: "heartbeat_in", kind: "message", T: Duration },
73 ]);
74
75 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetHeartbeatResponse {
76 return new GetHeartbeatResponse().fromBinary(bytes, options);
77 }
78
79 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetHeartbeatResponse {
80 return new GetHeartbeatResponse().fromJson(jsonValue, options);
81 }
82
83 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetHeartbeatResponse {
84 return new GetHeartbeatResponse().fromJsonString(jsonString, options);
85 }
86
87 static equals(a: GetHeartbeatResponse | PlainMessage<GetHeartbeatResponse> | undefined, b: GetHeartbeatResponse | PlainMessage<GetHeartbeatResponse> | undefined): boolean {
88 return proto3.util.equals(GetHeartbeatResponse, a, b);
89 }
90 }
91
92 /**
93 * @generated from message svc.ingest.v1.IngestRequest
94 */
95 export class IngestRequest extends Message<IngestRequest> {
96 /**
97 * @generated from field: uint64 machine_id = 1;
98 */
99 machineId = protoInt64.zero;
100
101 /**
102 * session ID, unique per machine.
103 * if not specified, one will be returned
104 *
105 * @generated from field: uint64 session_id = 2;
106 */
107 sessionId = protoInt64.zero;
108
109 /**
110 * @generated from field: repeated types.v1.LogEvent events = 3;
111 */
112 events: LogEvent[] = [];
113
114 constructor(data?: PartialMessage<IngestRequest>) {
115 super();
116 proto3.util.initPartial(data, this);
117 }
118
119 static readonly runtime: typeof proto3 = proto3;
120 static readonly typeName = "svc.ingest.v1.IngestRequest";
121 static readonly fields: FieldList = proto3.util.newFieldList(() => [
122 { no: 1, name: "machine_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
123 { no: 2, name: "session_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
124 { no: 3, name: "events", kind: "message", T: LogEvent, repeated: true },
125 ]);
126
127 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestRequest {
128 return new IngestRequest().fromBinary(bytes, options);
129 }
130
131 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestRequest {
132 return new IngestRequest().fromJson(jsonValue, options);
133 }
134
135 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestRequest {
136 return new IngestRequest().fromJsonString(jsonString, options);
137 }
138
139 static equals(a: IngestRequest | PlainMessage<IngestRequest> | undefined, b: IngestRequest | PlainMessage<IngestRequest> | undefined): boolean {
140 return proto3.util.equals(IngestRequest, a, b);
141 }
142 }
143
144 /**
145 * @generated from message svc.ingest.v1.IngestResponse
146 */
147 export class IngestResponse extends Message<IngestResponse> {
148 /**
149 * @generated from field: uint64 session_id = 1;
150 */
151 sessionId = protoInt64.zero;
152
153 /**
154 * @generated from field: google.protobuf.Duration heartbeat_in = 2;
155 */
156 heartbeatIn?: Duration;
157
158 constructor(data?: PartialMessage<IngestResponse>) {
159 super();
160 proto3.util.initPartial(data, this);
161 }
162
163 static readonly runtime: typeof proto3 = proto3;
164 static readonly typeName = "svc.ingest.v1.IngestResponse";
165 static readonly fields: FieldList = proto3.util.newFieldList(() => [
166 { no: 1, name: "session_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
167 { no: 2, name: "heartbeat_in", kind: "message", T: Duration },
168 ]);
169
170 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestResponse {
171 return new IngestResponse().fromBinary(bytes, options);
172 }
173
174 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestResponse {
175 return new IngestResponse().fromJson(jsonValue, options);
176 }
177
178 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestResponse {
179 return new IngestResponse().fromJsonString(jsonString, options);
180 }
181
182 static equals(a: IngestResponse | PlainMessage<IngestResponse> | undefined, b: IngestResponse | PlainMessage<IngestResponse> | undefined): boolean {
183 return proto3.util.equals(IngestResponse, a, b);
184 }
185 }
186
187 /**
188 * @generated from message svc.ingest.v1.IngestStreamRequest
189 */
190 export class IngestStreamRequest extends Message<IngestStreamRequest> {
191 /**
192 * only evaluated on the first message
193 *
194 * @generated from field: uint64 machine_id = 1;
195 */
196 machineId = protoInt64.zero;
197
198 /**
199 * session ID, unique per machine
200 *
201 * @generated from field: uint64 session_id = 2;
202 */
203 sessionId = protoInt64.zero;
204
205 /**
206 * @generated from field: repeated types.v1.LogEvent events = 3;
207 */
208 events: LogEvent[] = [];
209
210 constructor(data?: PartialMessage<IngestStreamRequest>) {
211 super();
212 proto3.util.initPartial(data, this);
213 }
214
215 static readonly runtime: typeof proto3 = proto3;
216 static readonly typeName = "svc.ingest.v1.IngestStreamRequest";
217 static readonly fields: FieldList = proto3.util.newFieldList(() => [
218 { no: 1, name: "machine_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
219 { no: 2, name: "session_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
220 { no: 3, name: "events", kind: "message", T: LogEvent, repeated: true },
221 ]);
222
223 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestStreamRequest {
224 return new IngestStreamRequest().fromBinary(bytes, options);
225 }
226
227 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestStreamRequest {
228 return new IngestStreamRequest().fromJson(jsonValue, options);
229 }
230
231 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestStreamRequest {
232 return new IngestStreamRequest().fromJsonString(jsonString, options);
233 }
234
235 static equals(a: IngestStreamRequest | PlainMessage<IngestStreamRequest> | undefined, b: IngestStreamRequest | PlainMessage<IngestStreamRequest> | undefined): boolean {
236 return proto3.util.equals(IngestStreamRequest, a, b);
237 }
238 }
239
240 /**
241 * @generated from message svc.ingest.v1.IngestStreamResponse
242 */
243 export class IngestStreamResponse extends Message<IngestStreamResponse> {
244 /**
245 * @generated from field: uint64 session_id = 1;
246 */
247 sessionId = protoInt64.zero;
248
249 /**
250 * @generated from field: google.protobuf.Duration heartbeat_in = 2;
251 */
252 heartbeatIn?: Duration;
253
254 constructor(data?: PartialMessage<IngestStreamResponse>) {
255 super();
256 proto3.util.initPartial(data, this);
257 }
258
259 static readonly runtime: typeof proto3 = proto3;
260 static readonly typeName = "svc.ingest.v1.IngestStreamResponse";
261 static readonly fields: FieldList = proto3.util.newFieldList(() => [
262 { no: 1, name: "session_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
263 { no: 2, name: "heartbeat_in", kind: "message", T: Duration },
264 ]);
265
266 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestStreamResponse {
267 return new IngestStreamResponse().fromBinary(bytes, options);
268 }
269
270 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestStreamResponse {
271 return new IngestStreamResponse().fromJson(jsonValue, options);
272 }
273
274 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestStreamResponse {
275 return new IngestStreamResponse().fromJsonString(jsonString, options);
276 }
277
278 static equals(a: IngestStreamResponse | PlainMessage<IngestStreamResponse> | undefined, b: IngestStreamResponse | PlainMessage<IngestStreamResponse> | undefined): boolean {
279 return proto3.util.equals(IngestStreamResponse, a, b);
280 }
281 }
282
283 /**
284 * @generated from message svc.ingest.v1.IngestBidiStreamRequest
285 */
286 export class IngestBidiStreamRequest extends Message<IngestBidiStreamRequest> {
287 /**
288 * @generated from field: repeated types.v1.LogEvent events = 1;
289 */
290 events: LogEvent[] = [];
291
292 /**
293 * only evaluated on the first message
294 *
295 * @generated from field: uint64 machine_id = 2;
296 */
297 machineId = protoInt64.zero;
298
299 /**
300 * Optional session ID to mark as resuming.
301 *
302 * @generated from field: uint64 resume_session_id = 3;
303 */
304 resumeSessionId = protoInt64.zero;
305
306 constructor(data?: PartialMessage<IngestBidiStreamRequest>) {
307 super();
308 proto3.util.initPartial(data, this);
309 }
310
311 static readonly runtime: typeof proto3 = proto3;
312 static readonly typeName = "svc.ingest.v1.IngestBidiStreamRequest";
313 static readonly fields: FieldList = proto3.util.newFieldList(() => [
314 { no: 1, name: "events", kind: "message", T: LogEvent, repeated: true },
315 { no: 2, name: "machine_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
316 { no: 3, name: "resume_session_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
317 ]);
318
319 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestBidiStreamRequest {
320 return new IngestBidiStreamRequest().fromBinary(bytes, options);
321 }
322
323 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestBidiStreamRequest {
324 return new IngestBidiStreamRequest().fromJson(jsonValue, options);
325 }
326
327 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestBidiStreamRequest {
328 return new IngestBidiStreamRequest().fromJsonString(jsonString, options);
329 }
330
331 static equals(a: IngestBidiStreamRequest | PlainMessage<IngestBidiStreamRequest> | undefined, b: IngestBidiStreamRequest | PlainMessage<IngestBidiStreamRequest> | undefined): boolean {
332 return proto3.util.equals(IngestBidiStreamRequest, a, b);
333 }
334 }
335
336 /**
337 * @generated from message svc.ingest.v1.IngestBidiStreamResponse
338 */
339 export class IngestBidiStreamResponse extends Message<IngestBidiStreamResponse> {
340 /**
341 * @generated from field: uint64 session_id = 1;
342 */
343 sessionId = protoInt64.zero;
344
345 /**
346 * @generated from field: google.protobuf.Duration heartbeat_in = 2;
347 */
348 heartbeatIn?: Duration;
349
350 constructor(data?: PartialMessage<IngestBidiStreamResponse>) {
351 super();
352 proto3.util.initPartial(data, this);
353 }
354
355 static readonly runtime: typeof proto3 = proto3;
356 static readonly typeName = "svc.ingest.v1.IngestBidiStreamResponse";
357 static readonly fields: FieldList = proto3.util.newFieldList(() => [
358 { no: 1, name: "session_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
359 { no: 2, name: "heartbeat_in", kind: "message", T: Duration },
360 ]);
361
362 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestBidiStreamResponse {
363 return new IngestBidiStreamResponse().fromBinary(bytes, options);
364 }
365
366 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestBidiStreamResponse {
367 return new IngestBidiStreamResponse().fromJson(jsonValue, options);
368 }
369
370 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestBidiStreamResponse {
371 return new IngestBidiStreamResponse().fromJsonString(jsonString, options);
372 }
373
374 static equals(a: IngestBidiStreamResponse | PlainMessage<IngestBidiStreamResponse> | undefined, b: IngestBidiStreamResponse | PlainMessage<IngestBidiStreamResponse> | undefined): boolean {
375 return proto3.util.equals(IngestBidiStreamResponse, a, b);
376 }
377 }
378