| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file types/v1/logevent.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, protoInt64, Timestamp } from "@bufbuild/protobuf"; |
| 8 | import { KV } from "./types_pb"; |
| 9 | |
| 10 | /** |
| 11 | * @generated from message types.v1.LogEventGroup |
| 12 | */ |
| 13 | export class LogEventGroup extends Message<LogEventGroup> { |
| 14 | /** |
| 15 | * @generated from field: int64 machine_id = 1; |
| 16 | */ |
| 17 | machineId = protoInt64.zero; |
| 18 | |
| 19 | /** |
| 20 | * @generated from field: int64 session_id = 2; |
| 21 | */ |
| 22 | sessionId = protoInt64.zero; |
| 23 | |
| 24 | /** |
| 25 | * @generated from field: repeated types.v1.LogEvent logs = 3; |
| 26 | */ |
| 27 | logs: LogEvent[] = []; |
| 28 | |
| 29 | constructor(data?: PartialMessage<LogEventGroup>) { |
| 30 | super(); |
| 31 | proto3.util.initPartial(data, this); |
| 32 | } |
| 33 | |
| 34 | static readonly runtime: typeof proto3 = proto3; |
| 35 | static readonly typeName = "types.v1.LogEventGroup"; |
| 36 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 37 | { no: 1, name: "machine_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 38 | { no: 2, name: "session_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 39 | { no: 3, name: "logs", kind: "message", T: LogEvent, repeated: true }, |
| 40 | ]); |
| 41 | |
| 42 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogEventGroup { |
| 43 | return new LogEventGroup().fromBinary(bytes, options); |
| 44 | } |
| 45 | |
| 46 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogEventGroup { |
| 47 | return new LogEventGroup().fromJson(jsonValue, options); |
| 48 | } |
| 49 | |
| 50 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogEventGroup { |
| 51 | return new LogEventGroup().fromJsonString(jsonString, options); |
| 52 | } |
| 53 | |
| 54 | static equals(a: LogEventGroup | PlainMessage<LogEventGroup> | undefined, b: LogEventGroup | PlainMessage<LogEventGroup> | undefined): boolean { |
| 55 | return proto3.util.equals(LogEventGroup, a, b); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * @generated from message types.v1.IngestedLogEvent |
| 61 | */ |
| 62 | export class IngestedLogEvent extends Message<IngestedLogEvent> { |
| 63 | /** |
| 64 | * @generated from field: int64 machine_id = 1; |
| 65 | */ |
| 66 | machineId = protoInt64.zero; |
| 67 | |
| 68 | /** |
| 69 | * @generated from field: int64 session_id = 2; |
| 70 | */ |
| 71 | sessionId = protoInt64.zero; |
| 72 | |
| 73 | /** |
| 74 | * @generated from field: int64 event_id = 3; |
| 75 | */ |
| 76 | eventId = protoInt64.zero; |
| 77 | |
| 78 | /** |
| 79 | * @generated from field: google.protobuf.Timestamp parsed_at = 4; |
| 80 | */ |
| 81 | parsedAt?: Timestamp; |
| 82 | |
| 83 | /** |
| 84 | * @generated from field: bytes raw = 5; |
| 85 | */ |
| 86 | raw = new Uint8Array(0); |
| 87 | |
| 88 | /** |
| 89 | * @generated from field: types.v1.StructuredLogEvent structured = 6; |
| 90 | */ |
| 91 | structured?: StructuredLogEvent; |
| 92 | |
| 93 | constructor(data?: PartialMessage<IngestedLogEvent>) { |
| 94 | super(); |
| 95 | proto3.util.initPartial(data, this); |
| 96 | } |
| 97 | |
| 98 | static readonly runtime: typeof proto3 = proto3; |
| 99 | static readonly typeName = "types.v1.IngestedLogEvent"; |
| 100 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 101 | { no: 1, name: "machine_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 102 | { no: 2, name: "session_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 103 | { no: 3, name: "event_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 104 | { no: 4, name: "parsed_at", kind: "message", T: Timestamp }, |
| 105 | { no: 5, name: "raw", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, |
| 106 | { no: 6, name: "structured", kind: "message", T: StructuredLogEvent }, |
| 107 | ]); |
| 108 | |
| 109 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IngestedLogEvent { |
| 110 | return new IngestedLogEvent().fromBinary(bytes, options); |
| 111 | } |
| 112 | |
| 113 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IngestedLogEvent { |
| 114 | return new IngestedLogEvent().fromJson(jsonValue, options); |
| 115 | } |
| 116 | |
| 117 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IngestedLogEvent { |
| 118 | return new IngestedLogEvent().fromJsonString(jsonString, options); |
| 119 | } |
| 120 | |
| 121 | static equals(a: IngestedLogEvent | PlainMessage<IngestedLogEvent> | undefined, b: IngestedLogEvent | PlainMessage<IngestedLogEvent> | undefined): boolean { |
| 122 | return proto3.util.equals(IngestedLogEvent, a, b); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * @generated from message types.v1.LogEvent |
| 128 | */ |
| 129 | export class LogEvent extends Message<LogEvent> { |
| 130 | /** |
| 131 | * @generated from field: google.protobuf.Timestamp parsed_at = 1; |
| 132 | */ |
| 133 | parsedAt?: Timestamp; |
| 134 | |
| 135 | /** |
| 136 | * @generated from field: bytes raw = 2; |
| 137 | */ |
| 138 | raw = new Uint8Array(0); |
| 139 | |
| 140 | /** |
| 141 | * @generated from field: types.v1.StructuredLogEvent structured = 3; |
| 142 | */ |
| 143 | structured?: StructuredLogEvent; |
| 144 | |
| 145 | constructor(data?: PartialMessage<LogEvent>) { |
| 146 | super(); |
| 147 | proto3.util.initPartial(data, this); |
| 148 | } |
| 149 | |
| 150 | static readonly runtime: typeof proto3 = proto3; |
| 151 | static readonly typeName = "types.v1.LogEvent"; |
| 152 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 153 | { no: 1, name: "parsed_at", kind: "message", T: Timestamp }, |
| 154 | { no: 2, name: "raw", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, |
| 155 | { no: 3, name: "structured", kind: "message", T: StructuredLogEvent }, |
| 156 | ]); |
| 157 | |
| 158 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogEvent { |
| 159 | return new LogEvent().fromBinary(bytes, options); |
| 160 | } |
| 161 | |
| 162 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogEvent { |
| 163 | return new LogEvent().fromJson(jsonValue, options); |
| 164 | } |
| 165 | |
| 166 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogEvent { |
| 167 | return new LogEvent().fromJsonString(jsonString, options); |
| 168 | } |
| 169 | |
| 170 | static equals(a: LogEvent | PlainMessage<LogEvent> | undefined, b: LogEvent | PlainMessage<LogEvent> | undefined): boolean { |
| 171 | return proto3.util.equals(LogEvent, a, b); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * @generated from message types.v1.StructuredLogEvent |
| 177 | */ |
| 178 | export class StructuredLogEvent extends Message<StructuredLogEvent> { |
| 179 | /** |
| 180 | * @generated from field: google.protobuf.Timestamp timestamp = 1; |
| 181 | */ |
| 182 | timestamp?: Timestamp; |
| 183 | |
| 184 | /** |
| 185 | * @generated from field: string lvl = 2; |
| 186 | */ |
| 187 | lvl = ""; |
| 188 | |
| 189 | /** |
| 190 | * @generated from field: string msg = 3; |
| 191 | */ |
| 192 | msg = ""; |
| 193 | |
| 194 | /** |
| 195 | * @generated from field: repeated types.v1.KV kvs = 4; |
| 196 | */ |
| 197 | kvs: KV[] = []; |
| 198 | |
| 199 | constructor(data?: PartialMessage<StructuredLogEvent>) { |
| 200 | super(); |
| 201 | proto3.util.initPartial(data, this); |
| 202 | } |
| 203 | |
| 204 | static readonly runtime: typeof proto3 = proto3; |
| 205 | static readonly typeName = "types.v1.StructuredLogEvent"; |
| 206 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 207 | { no: 1, name: "timestamp", kind: "message", T: Timestamp }, |
| 208 | { no: 2, name: "lvl", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 209 | { no: 3, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 210 | { no: 4, name: "kvs", kind: "message", T: KV, repeated: true }, |
| 211 | ]); |
| 212 | |
| 213 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StructuredLogEvent { |
| 214 | return new StructuredLogEvent().fromBinary(bytes, options); |
| 215 | } |
| 216 | |
| 217 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StructuredLogEvent { |
| 218 | return new StructuredLogEvent().fromJson(jsonValue, options); |
| 219 | } |
| 220 | |
| 221 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StructuredLogEvent { |
| 222 | return new StructuredLogEvent().fromJsonString(jsonString, options); |
| 223 | } |
| 224 | |
| 225 | static equals(a: StructuredLogEvent | PlainMessage<StructuredLogEvent> | undefined, b: StructuredLogEvent | PlainMessage<StructuredLogEvent> | undefined): boolean { |
| 226 | return proto3.util.equals(StructuredLogEvent, a, b); |
| 227 | } |
| 228 | } |
| 229 |