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