@514labs/moose-proto 0.6.510 → 0.6.511

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -712,6 +712,24 @@ var SchemaRegistry_Encoding = /* @__PURE__ */ ((SchemaRegistry_Encoding2) => {
712
712
  SchemaRegistry_Encoding2[SchemaRegistry_Encoding2["PROTOBUF"] = 2] = "PROTOBUF";
713
713
  return SchemaRegistry_Encoding2;
714
714
  })(SchemaRegistry_Encoding || {});
715
+ var DictionaryLayout_Type = /* @__PURE__ */ ((DictionaryLayout_Type2) => {
716
+ DictionaryLayout_Type2[DictionaryLayout_Type2["FLAT"] = 0] = "FLAT";
717
+ DictionaryLayout_Type2[DictionaryLayout_Type2["HASHED"] = 1] = "HASHED";
718
+ DictionaryLayout_Type2[DictionaryLayout_Type2["SPARSE_HASHED"] = 2] = "SPARSE_HASHED";
719
+ DictionaryLayout_Type2[DictionaryLayout_Type2["HASHED_ARRAY"] = 3] = "HASHED_ARRAY";
720
+ DictionaryLayout_Type2[DictionaryLayout_Type2["RANGE_HASHED"] = 4] = "RANGE_HASHED";
721
+ DictionaryLayout_Type2[DictionaryLayout_Type2["CACHE"] = 5] = "CACHE";
722
+ DictionaryLayout_Type2[DictionaryLayout_Type2["SSD_CACHE"] = 6] = "SSD_CACHE";
723
+ DictionaryLayout_Type2[DictionaryLayout_Type2["DIRECT"] = 7] = "DIRECT";
724
+ DictionaryLayout_Type2[DictionaryLayout_Type2["IP_TRIE"] = 8] = "IP_TRIE";
725
+ DictionaryLayout_Type2[DictionaryLayout_Type2["COMPLEX_KEY_HASHED"] = 9] = "COMPLEX_KEY_HASHED";
726
+ DictionaryLayout_Type2[DictionaryLayout_Type2["COMPLEX_KEY_SPARSE_HASHED"] = 10] = "COMPLEX_KEY_SPARSE_HASHED";
727
+ DictionaryLayout_Type2[DictionaryLayout_Type2["COMPLEX_KEY_HASHED_ARRAY"] = 11] = "COMPLEX_KEY_HASHED_ARRAY";
728
+ DictionaryLayout_Type2[DictionaryLayout_Type2["COMPLEX_KEY_CACHE"] = 12] = "COMPLEX_KEY_CACHE";
729
+ DictionaryLayout_Type2[DictionaryLayout_Type2["COMPLEX_KEY_SSD_CACHE"] = 13] = "COMPLEX_KEY_SSD_CACHE";
730
+ DictionaryLayout_Type2[DictionaryLayout_Type2["COMPLEX_KEY_DIRECT"] = 14] = "COMPLEX_KEY_DIRECT";
731
+ return DictionaryLayout_Type2;
732
+ })(DictionaryLayout_Type || {});
715
733
  var EndpointIngestionFormat = /* @__PURE__ */ ((EndpointIngestionFormat2) => {
716
734
  EndpointIngestionFormat2[EndpointIngestionFormat2["JSON"] = 0] = "JSON";
717
735
  EndpointIngestionFormat2[EndpointIngestionFormat2["JSON_ARRAY"] = 1] = "JSON_ARRAY";
@@ -811,7 +829,8 @@ var InfrastructureMap$Type = class extends MessageType3 {
811
829
  { no: 16, name: "materialized_views", kind: "map", K: 9, V: { kind: "message", T: () => MaterializedView } },
812
830
  { no: 17, name: "views", kind: "map", K: 9, V: { kind: "message", T: () => View } },
813
831
  { no: 18, name: "workflows", kind: "map", K: 9, V: { kind: "message", T: () => Workflow } },
814
- { no: 20, name: "select_row_policies", kind: "map", K: 9, V: { kind: "message", T: () => SelectRowPolicy } }
832
+ { no: 20, name: "select_row_policies", kind: "map", K: 9, V: { kind: "message", T: () => SelectRowPolicy } },
833
+ { no: 21, name: "olap_dictionaries", kind: "map", K: 9, V: { kind: "message", T: () => OlapDictionary } }
815
834
  ]);
816
835
  }
817
836
  create(value) {
@@ -833,6 +852,7 @@ var InfrastructureMap$Type = class extends MessageType3 {
833
852
  message.views = {};
834
853
  message.workflows = {};
835
854
  message.selectRowPolicies = {};
855
+ message.olapDictionaries = {};
836
856
  if (value !== void 0)
837
857
  reflectionMergePartial3(this, message, value);
838
858
  return message;
@@ -910,6 +930,10 @@ var InfrastructureMap$Type = class extends MessageType3 {
910
930
  20:
911
931
  this.binaryReadMap20(message.selectRowPolicies, reader, options);
912
932
  break;
933
+ case /* map<string, moose.proto.OlapDictionary> olap_dictionaries */
934
+ 21:
935
+ this.binaryReadMap21(message.olapDictionaries, reader, options);
936
+ break;
913
937
  default:
914
938
  let u = options.readUnknownField;
915
939
  if (u === "throw")
@@ -1176,6 +1200,23 @@ var InfrastructureMap$Type = class extends MessageType3 {
1176
1200
  }
1177
1201
  map[key ?? ""] = val ?? SelectRowPolicy.create();
1178
1202
  }
1203
+ binaryReadMap21(map, reader, options) {
1204
+ let len = reader.uint32(), end = reader.pos + len, key, val;
1205
+ while (reader.pos < end) {
1206
+ let [fieldNo, wireType] = reader.tag();
1207
+ switch (fieldNo) {
1208
+ case 1:
1209
+ key = reader.string();
1210
+ break;
1211
+ case 2:
1212
+ val = OlapDictionary.internalBinaryRead(reader, reader.uint32(), options);
1213
+ break;
1214
+ default:
1215
+ throw new globalThis.Error("unknown map entry field for moose.proto.InfrastructureMap.olap_dictionaries");
1216
+ }
1217
+ }
1218
+ map[key ?? ""] = val ?? OlapDictionary.create();
1219
+ }
1179
1220
  internalBinaryWrite(message, writer, options) {
1180
1221
  for (let k of globalThis.Object.keys(message.topics)) {
1181
1222
  writer.tag(1, WireType3.LengthDelimited).fork().tag(1, WireType3.LengthDelimited).string(k);
@@ -1271,6 +1312,12 @@ var InfrastructureMap$Type = class extends MessageType3 {
1271
1312
  SelectRowPolicy.internalBinaryWrite(message.selectRowPolicies[k], writer, options);
1272
1313
  writer.join().join();
1273
1314
  }
1315
+ for (let k of globalThis.Object.keys(message.olapDictionaries)) {
1316
+ writer.tag(21, WireType3.LengthDelimited).fork().tag(1, WireType3.LengthDelimited).string(k);
1317
+ writer.tag(2, WireType3.LengthDelimited).fork();
1318
+ OlapDictionary.internalBinaryWrite(message.olapDictionaries[k], writer, options);
1319
+ writer.join().join();
1320
+ }
1274
1321
  let u = options.writeUnknownFields;
1275
1322
  if (u !== false)
1276
1323
  (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
@@ -4908,6 +4955,14 @@ var InfrastructureSignature$Type = class extends MessageType3 {
4908
4955
  oneof: "signature",
4909
4956
  T: 9
4910
4957
  /*ScalarType.STRING*/
4958
+ },
4959
+ {
4960
+ no: 10,
4961
+ name: "olap_dictionary_id",
4962
+ kind: "scalar",
4963
+ oneof: "signature",
4964
+ T: 9
4965
+ /*ScalarType.STRING*/
4911
4966
  }
4912
4967
  ]);
4913
4968
  }
@@ -4986,6 +5041,13 @@ var InfrastructureSignature$Type = class extends MessageType3 {
4986
5041
  selectRowPolicyId: reader.string()
4987
5042
  };
4988
5043
  break;
5044
+ case /* string olap_dictionary_id */
5045
+ 10:
5046
+ message.signature = {
5047
+ oneofKind: "olapDictionaryId",
5048
+ olapDictionaryId: reader.string()
5049
+ };
5050
+ break;
4989
5051
  default:
4990
5052
  let u = options.readUnknownField;
4991
5053
  if (u === "throw")
@@ -5016,6 +5078,8 @@ var InfrastructureSignature$Type = class extends MessageType3 {
5016
5078
  writer.tag(8, WireType3.LengthDelimited).string(message.signature.viewId);
5017
5079
  if (message.signature.oneofKind === "selectRowPolicyId")
5018
5080
  writer.tag(9, WireType3.LengthDelimited).string(message.signature.selectRowPolicyId);
5081
+ if (message.signature.oneofKind === "olapDictionaryId")
5082
+ writer.tag(10, WireType3.LengthDelimited).string(message.signature.olapDictionaryId);
5019
5083
  let u = options.writeUnknownFields;
5020
5084
  if (u !== false)
5021
5085
  (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
@@ -5364,6 +5428,1998 @@ var SelectRowPolicy$Type = class extends MessageType3 {
5364
5428
  }
5365
5429
  };
5366
5430
  var SelectRowPolicy = new SelectRowPolicy$Type();
5431
+ var DictionaryColumn$Type = class extends MessageType3 {
5432
+ constructor() {
5433
+ super("moose.proto.DictionaryColumn", [
5434
+ {
5435
+ no: 1,
5436
+ name: "name",
5437
+ kind: "scalar",
5438
+ T: 9
5439
+ /*ScalarType.STRING*/
5440
+ },
5441
+ {
5442
+ no: 2,
5443
+ name: "type_string",
5444
+ kind: "scalar",
5445
+ T: 9
5446
+ /*ScalarType.STRING*/
5447
+ },
5448
+ {
5449
+ no: 3,
5450
+ name: "default_value",
5451
+ kind: "scalar",
5452
+ opt: true,
5453
+ T: 9
5454
+ /*ScalarType.STRING*/
5455
+ },
5456
+ {
5457
+ no: 4,
5458
+ name: "expression",
5459
+ kind: "scalar",
5460
+ opt: true,
5461
+ T: 9
5462
+ /*ScalarType.STRING*/
5463
+ },
5464
+ {
5465
+ no: 5,
5466
+ name: "is_injective",
5467
+ kind: "scalar",
5468
+ opt: true,
5469
+ T: 8
5470
+ /*ScalarType.BOOL*/
5471
+ },
5472
+ {
5473
+ no: 6,
5474
+ name: "is_hierarchical",
5475
+ kind: "scalar",
5476
+ opt: true,
5477
+ T: 8
5478
+ /*ScalarType.BOOL*/
5479
+ },
5480
+ {
5481
+ no: 7,
5482
+ name: "is_object_id",
5483
+ kind: "scalar",
5484
+ opt: true,
5485
+ T: 8
5486
+ /*ScalarType.BOOL*/
5487
+ },
5488
+ {
5489
+ no: 8,
5490
+ name: "comment",
5491
+ kind: "scalar",
5492
+ opt: true,
5493
+ T: 9
5494
+ /*ScalarType.STRING*/
5495
+ }
5496
+ ]);
5497
+ }
5498
+ create(value) {
5499
+ const message = globalThis.Object.create(this.messagePrototype);
5500
+ message.name = "";
5501
+ message.typeString = "";
5502
+ if (value !== void 0)
5503
+ reflectionMergePartial3(this, message, value);
5504
+ return message;
5505
+ }
5506
+ internalBinaryRead(reader, length, options, target) {
5507
+ let message = target ?? this.create(), end = reader.pos + length;
5508
+ while (reader.pos < end) {
5509
+ let [fieldNo, wireType] = reader.tag();
5510
+ switch (fieldNo) {
5511
+ case /* string name */
5512
+ 1:
5513
+ message.name = reader.string();
5514
+ break;
5515
+ case /* string type_string */
5516
+ 2:
5517
+ message.typeString = reader.string();
5518
+ break;
5519
+ case /* optional string default_value */
5520
+ 3:
5521
+ message.defaultValue = reader.string();
5522
+ break;
5523
+ case /* optional string expression */
5524
+ 4:
5525
+ message.expression = reader.string();
5526
+ break;
5527
+ case /* optional bool is_injective */
5528
+ 5:
5529
+ message.isInjective = reader.bool();
5530
+ break;
5531
+ case /* optional bool is_hierarchical */
5532
+ 6:
5533
+ message.isHierarchical = reader.bool();
5534
+ break;
5535
+ case /* optional bool is_object_id */
5536
+ 7:
5537
+ message.isObjectId = reader.bool();
5538
+ break;
5539
+ case /* optional string comment */
5540
+ 8:
5541
+ message.comment = reader.string();
5542
+ break;
5543
+ default:
5544
+ let u = options.readUnknownField;
5545
+ if (u === "throw")
5546
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5547
+ let d = reader.skip(wireType);
5548
+ if (u !== false)
5549
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5550
+ }
5551
+ }
5552
+ return message;
5553
+ }
5554
+ internalBinaryWrite(message, writer, options) {
5555
+ if (message.name !== "")
5556
+ writer.tag(1, WireType3.LengthDelimited).string(message.name);
5557
+ if (message.typeString !== "")
5558
+ writer.tag(2, WireType3.LengthDelimited).string(message.typeString);
5559
+ if (message.defaultValue !== void 0)
5560
+ writer.tag(3, WireType3.LengthDelimited).string(message.defaultValue);
5561
+ if (message.expression !== void 0)
5562
+ writer.tag(4, WireType3.LengthDelimited).string(message.expression);
5563
+ if (message.isInjective !== void 0)
5564
+ writer.tag(5, WireType3.Varint).bool(message.isInjective);
5565
+ if (message.isHierarchical !== void 0)
5566
+ writer.tag(6, WireType3.Varint).bool(message.isHierarchical);
5567
+ if (message.isObjectId !== void 0)
5568
+ writer.tag(7, WireType3.Varint).bool(message.isObjectId);
5569
+ if (message.comment !== void 0)
5570
+ writer.tag(8, WireType3.LengthDelimited).string(message.comment);
5571
+ let u = options.writeUnknownFields;
5572
+ if (u !== false)
5573
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
5574
+ return writer;
5575
+ }
5576
+ };
5577
+ var DictionaryColumn = new DictionaryColumn$Type();
5578
+ var DictionaryTableSource$Type = class extends MessageType3 {
5579
+ constructor() {
5580
+ super("moose.proto.DictionaryTableSource", [
5581
+ {
5582
+ no: 1,
5583
+ name: "table",
5584
+ kind: "scalar",
5585
+ T: 9
5586
+ /*ScalarType.STRING*/
5587
+ },
5588
+ {
5589
+ no: 2,
5590
+ name: "database",
5591
+ kind: "scalar",
5592
+ opt: true,
5593
+ T: 9
5594
+ /*ScalarType.STRING*/
5595
+ },
5596
+ {
5597
+ no: 3,
5598
+ name: "where_clause",
5599
+ kind: "scalar",
5600
+ opt: true,
5601
+ T: 9
5602
+ /*ScalarType.STRING*/
5603
+ },
5604
+ {
5605
+ no: 4,
5606
+ name: "invalidate_query",
5607
+ kind: "scalar",
5608
+ opt: true,
5609
+ T: 9
5610
+ /*ScalarType.STRING*/
5611
+ }
5612
+ ]);
5613
+ }
5614
+ create(value) {
5615
+ const message = globalThis.Object.create(this.messagePrototype);
5616
+ message.table = "";
5617
+ if (value !== void 0)
5618
+ reflectionMergePartial3(this, message, value);
5619
+ return message;
5620
+ }
5621
+ internalBinaryRead(reader, length, options, target) {
5622
+ let message = target ?? this.create(), end = reader.pos + length;
5623
+ while (reader.pos < end) {
5624
+ let [fieldNo, wireType] = reader.tag();
5625
+ switch (fieldNo) {
5626
+ case /* string table */
5627
+ 1:
5628
+ message.table = reader.string();
5629
+ break;
5630
+ case /* optional string database */
5631
+ 2:
5632
+ message.database = reader.string();
5633
+ break;
5634
+ case /* optional string where_clause */
5635
+ 3:
5636
+ message.whereClause = reader.string();
5637
+ break;
5638
+ case /* optional string invalidate_query */
5639
+ 4:
5640
+ message.invalidateQuery = reader.string();
5641
+ break;
5642
+ default:
5643
+ let u = options.readUnknownField;
5644
+ if (u === "throw")
5645
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5646
+ let d = reader.skip(wireType);
5647
+ if (u !== false)
5648
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5649
+ }
5650
+ }
5651
+ return message;
5652
+ }
5653
+ internalBinaryWrite(message, writer, options) {
5654
+ if (message.table !== "")
5655
+ writer.tag(1, WireType3.LengthDelimited).string(message.table);
5656
+ if (message.database !== void 0)
5657
+ writer.tag(2, WireType3.LengthDelimited).string(message.database);
5658
+ if (message.whereClause !== void 0)
5659
+ writer.tag(3, WireType3.LengthDelimited).string(message.whereClause);
5660
+ if (message.invalidateQuery !== void 0)
5661
+ writer.tag(4, WireType3.LengthDelimited).string(message.invalidateQuery);
5662
+ let u = options.writeUnknownFields;
5663
+ if (u !== false)
5664
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
5665
+ return writer;
5666
+ }
5667
+ };
5668
+ var DictionaryTableSource = new DictionaryTableSource$Type();
5669
+ var DictionaryQuerySource$Type = class extends MessageType3 {
5670
+ constructor() {
5671
+ super("moose.proto.DictionaryQuerySource", [
5672
+ {
5673
+ no: 1,
5674
+ name: "query",
5675
+ kind: "scalar",
5676
+ T: 9
5677
+ /*ScalarType.STRING*/
5678
+ },
5679
+ {
5680
+ no: 2,
5681
+ name: "invalidate_query",
5682
+ kind: "scalar",
5683
+ opt: true,
5684
+ T: 9
5685
+ /*ScalarType.STRING*/
5686
+ }
5687
+ ]);
5688
+ }
5689
+ create(value) {
5690
+ const message = globalThis.Object.create(this.messagePrototype);
5691
+ message.query = "";
5692
+ if (value !== void 0)
5693
+ reflectionMergePartial3(this, message, value);
5694
+ return message;
5695
+ }
5696
+ internalBinaryRead(reader, length, options, target) {
5697
+ let message = target ?? this.create(), end = reader.pos + length;
5698
+ while (reader.pos < end) {
5699
+ let [fieldNo, wireType] = reader.tag();
5700
+ switch (fieldNo) {
5701
+ case /* string query */
5702
+ 1:
5703
+ message.query = reader.string();
5704
+ break;
5705
+ case /* optional string invalidate_query */
5706
+ 2:
5707
+ message.invalidateQuery = reader.string();
5708
+ break;
5709
+ default:
5710
+ let u = options.readUnknownField;
5711
+ if (u === "throw")
5712
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5713
+ let d = reader.skip(wireType);
5714
+ if (u !== false)
5715
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5716
+ }
5717
+ }
5718
+ return message;
5719
+ }
5720
+ internalBinaryWrite(message, writer, options) {
5721
+ if (message.query !== "")
5722
+ writer.tag(1, WireType3.LengthDelimited).string(message.query);
5723
+ if (message.invalidateQuery !== void 0)
5724
+ writer.tag(2, WireType3.LengthDelimited).string(message.invalidateQuery);
5725
+ let u = options.writeUnknownFields;
5726
+ if (u !== false)
5727
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
5728
+ return writer;
5729
+ }
5730
+ };
5731
+ var DictionaryQuerySource = new DictionaryQuerySource$Type();
5732
+ var DictionaryLayout$Type = class extends MessageType3 {
5733
+ constructor() {
5734
+ super("moose.proto.DictionaryLayout", [
5735
+ { no: 1, name: "type", kind: "enum", T: () => ["moose.proto.DictionaryLayout.Type", DictionaryLayout_Type] },
5736
+ {
5737
+ no: 2,
5738
+ name: "initial_array_size",
5739
+ kind: "scalar",
5740
+ opt: true,
5741
+ T: 4,
5742
+ L: 0
5743
+ /*LongType.BIGINT*/
5744
+ },
5745
+ {
5746
+ no: 3,
5747
+ name: "max_load_factor",
5748
+ kind: "scalar",
5749
+ opt: true,
5750
+ T: 1
5751
+ /*ScalarType.DOUBLE*/
5752
+ },
5753
+ {
5754
+ no: 4,
5755
+ name: "shards",
5756
+ kind: "scalar",
5757
+ opt: true,
5758
+ T: 13
5759
+ /*ScalarType.UINT32*/
5760
+ },
5761
+ {
5762
+ no: 5,
5763
+ name: "size_in_cells",
5764
+ kind: "scalar",
5765
+ opt: true,
5766
+ T: 4,
5767
+ L: 0
5768
+ /*LongType.BIGINT*/
5769
+ },
5770
+ {
5771
+ no: 6,
5772
+ name: "max_threads_for_updates",
5773
+ kind: "scalar",
5774
+ opt: true,
5775
+ T: 13
5776
+ /*ScalarType.UINT32*/
5777
+ },
5778
+ {
5779
+ no: 7,
5780
+ name: "ssd_path",
5781
+ kind: "scalar",
5782
+ opt: true,
5783
+ T: 9
5784
+ /*ScalarType.STRING*/
5785
+ },
5786
+ {
5787
+ no: 8,
5788
+ name: "block_size",
5789
+ kind: "scalar",
5790
+ opt: true,
5791
+ T: 4,
5792
+ L: 0
5793
+ /*LongType.BIGINT*/
5794
+ },
5795
+ {
5796
+ no: 9,
5797
+ name: "file_size",
5798
+ kind: "scalar",
5799
+ opt: true,
5800
+ T: 4,
5801
+ L: 0
5802
+ /*LongType.BIGINT*/
5803
+ },
5804
+ {
5805
+ no: 10,
5806
+ name: "read_buffer_size",
5807
+ kind: "scalar",
5808
+ opt: true,
5809
+ T: 4,
5810
+ L: 0
5811
+ /*LongType.BIGINT*/
5812
+ },
5813
+ {
5814
+ no: 11,
5815
+ name: "write_buffer_size",
5816
+ kind: "scalar",
5817
+ opt: true,
5818
+ T: 4,
5819
+ L: 0
5820
+ /*LongType.BIGINT*/
5821
+ },
5822
+ {
5823
+ no: 12,
5824
+ name: "max_stored_keys",
5825
+ kind: "scalar",
5826
+ opt: true,
5827
+ T: 4,
5828
+ L: 0
5829
+ /*LongType.BIGINT*/
5830
+ },
5831
+ {
5832
+ no: 13,
5833
+ name: "access_to_key_from_attributes",
5834
+ kind: "scalar",
5835
+ opt: true,
5836
+ T: 8
5837
+ /*ScalarType.BOOL*/
5838
+ },
5839
+ {
5840
+ no: 14,
5841
+ name: "range_lookup_strategy",
5842
+ kind: "scalar",
5843
+ opt: true,
5844
+ T: 9
5845
+ /*ScalarType.STRING*/
5846
+ }
5847
+ ]);
5848
+ }
5849
+ create(value) {
5850
+ const message = globalThis.Object.create(this.messagePrototype);
5851
+ message.type = 0;
5852
+ if (value !== void 0)
5853
+ reflectionMergePartial3(this, message, value);
5854
+ return message;
5855
+ }
5856
+ internalBinaryRead(reader, length, options, target) {
5857
+ let message = target ?? this.create(), end = reader.pos + length;
5858
+ while (reader.pos < end) {
5859
+ let [fieldNo, wireType] = reader.tag();
5860
+ switch (fieldNo) {
5861
+ case /* moose.proto.DictionaryLayout.Type type */
5862
+ 1:
5863
+ message.type = reader.int32();
5864
+ break;
5865
+ case /* optional uint64 initial_array_size */
5866
+ 2:
5867
+ message.initialArraySize = reader.uint64().toBigInt();
5868
+ break;
5869
+ case /* optional double max_load_factor */
5870
+ 3:
5871
+ message.maxLoadFactor = reader.double();
5872
+ break;
5873
+ case /* optional uint32 shards */
5874
+ 4:
5875
+ message.shards = reader.uint32();
5876
+ break;
5877
+ case /* optional uint64 size_in_cells */
5878
+ 5:
5879
+ message.sizeInCells = reader.uint64().toBigInt();
5880
+ break;
5881
+ case /* optional uint32 max_threads_for_updates */
5882
+ 6:
5883
+ message.maxThreadsForUpdates = reader.uint32();
5884
+ break;
5885
+ case /* optional string ssd_path */
5886
+ 7:
5887
+ message.ssdPath = reader.string();
5888
+ break;
5889
+ case /* optional uint64 block_size */
5890
+ 8:
5891
+ message.blockSize = reader.uint64().toBigInt();
5892
+ break;
5893
+ case /* optional uint64 file_size */
5894
+ 9:
5895
+ message.fileSize = reader.uint64().toBigInt();
5896
+ break;
5897
+ case /* optional uint64 read_buffer_size */
5898
+ 10:
5899
+ message.readBufferSize = reader.uint64().toBigInt();
5900
+ break;
5901
+ case /* optional uint64 write_buffer_size */
5902
+ 11:
5903
+ message.writeBufferSize = reader.uint64().toBigInt();
5904
+ break;
5905
+ case /* optional uint64 max_stored_keys */
5906
+ 12:
5907
+ message.maxStoredKeys = reader.uint64().toBigInt();
5908
+ break;
5909
+ case /* optional bool access_to_key_from_attributes */
5910
+ 13:
5911
+ message.accessToKeyFromAttributes = reader.bool();
5912
+ break;
5913
+ case /* optional string range_lookup_strategy */
5914
+ 14:
5915
+ message.rangeLookupStrategy = reader.string();
5916
+ break;
5917
+ default:
5918
+ let u = options.readUnknownField;
5919
+ if (u === "throw")
5920
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5921
+ let d = reader.skip(wireType);
5922
+ if (u !== false)
5923
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5924
+ }
5925
+ }
5926
+ return message;
5927
+ }
5928
+ internalBinaryWrite(message, writer, options) {
5929
+ if (message.type !== 0)
5930
+ writer.tag(1, WireType3.Varint).int32(message.type);
5931
+ if (message.initialArraySize !== void 0)
5932
+ writer.tag(2, WireType3.Varint).uint64(message.initialArraySize);
5933
+ if (message.maxLoadFactor !== void 0)
5934
+ writer.tag(3, WireType3.Bit64).double(message.maxLoadFactor);
5935
+ if (message.shards !== void 0)
5936
+ writer.tag(4, WireType3.Varint).uint32(message.shards);
5937
+ if (message.sizeInCells !== void 0)
5938
+ writer.tag(5, WireType3.Varint).uint64(message.sizeInCells);
5939
+ if (message.maxThreadsForUpdates !== void 0)
5940
+ writer.tag(6, WireType3.Varint).uint32(message.maxThreadsForUpdates);
5941
+ if (message.ssdPath !== void 0)
5942
+ writer.tag(7, WireType3.LengthDelimited).string(message.ssdPath);
5943
+ if (message.blockSize !== void 0)
5944
+ writer.tag(8, WireType3.Varint).uint64(message.blockSize);
5945
+ if (message.fileSize !== void 0)
5946
+ writer.tag(9, WireType3.Varint).uint64(message.fileSize);
5947
+ if (message.readBufferSize !== void 0)
5948
+ writer.tag(10, WireType3.Varint).uint64(message.readBufferSize);
5949
+ if (message.writeBufferSize !== void 0)
5950
+ writer.tag(11, WireType3.Varint).uint64(message.writeBufferSize);
5951
+ if (message.maxStoredKeys !== void 0)
5952
+ writer.tag(12, WireType3.Varint).uint64(message.maxStoredKeys);
5953
+ if (message.accessToKeyFromAttributes !== void 0)
5954
+ writer.tag(13, WireType3.Varint).bool(message.accessToKeyFromAttributes);
5955
+ if (message.rangeLookupStrategy !== void 0)
5956
+ writer.tag(14, WireType3.LengthDelimited).string(message.rangeLookupStrategy);
5957
+ let u = options.writeUnknownFields;
5958
+ if (u !== false)
5959
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
5960
+ return writer;
5961
+ }
5962
+ };
5963
+ var DictionaryLayout = new DictionaryLayout$Type();
5964
+ var DictionaryRangeLifetime$Type = class extends MessageType3 {
5965
+ constructor() {
5966
+ super("moose.proto.DictionaryRangeLifetime", [
5967
+ {
5968
+ no: 1,
5969
+ name: "min",
5970
+ kind: "scalar",
5971
+ T: 4,
5972
+ L: 0
5973
+ /*LongType.BIGINT*/
5974
+ },
5975
+ {
5976
+ no: 2,
5977
+ name: "max",
5978
+ kind: "scalar",
5979
+ T: 4,
5980
+ L: 0
5981
+ /*LongType.BIGINT*/
5982
+ }
5983
+ ]);
5984
+ }
5985
+ create(value) {
5986
+ const message = globalThis.Object.create(this.messagePrototype);
5987
+ message.min = 0n;
5988
+ message.max = 0n;
5989
+ if (value !== void 0)
5990
+ reflectionMergePartial3(this, message, value);
5991
+ return message;
5992
+ }
5993
+ internalBinaryRead(reader, length, options, target) {
5994
+ let message = target ?? this.create(), end = reader.pos + length;
5995
+ while (reader.pos < end) {
5996
+ let [fieldNo, wireType] = reader.tag();
5997
+ switch (fieldNo) {
5998
+ case /* uint64 min */
5999
+ 1:
6000
+ message.min = reader.uint64().toBigInt();
6001
+ break;
6002
+ case /* uint64 max */
6003
+ 2:
6004
+ message.max = reader.uint64().toBigInt();
6005
+ break;
6006
+ default:
6007
+ let u = options.readUnknownField;
6008
+ if (u === "throw")
6009
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6010
+ let d = reader.skip(wireType);
6011
+ if (u !== false)
6012
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6013
+ }
6014
+ }
6015
+ return message;
6016
+ }
6017
+ internalBinaryWrite(message, writer, options) {
6018
+ if (message.min !== 0n)
6019
+ writer.tag(1, WireType3.Varint).uint64(message.min);
6020
+ if (message.max !== 0n)
6021
+ writer.tag(2, WireType3.Varint).uint64(message.max);
6022
+ let u = options.writeUnknownFields;
6023
+ if (u !== false)
6024
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6025
+ return writer;
6026
+ }
6027
+ };
6028
+ var DictionaryRangeLifetime = new DictionaryRangeLifetime$Type();
6029
+ var DictionaryLifetime$Type = class extends MessageType3 {
6030
+ constructor() {
6031
+ super("moose.proto.DictionaryLifetime", [
6032
+ {
6033
+ no: 1,
6034
+ name: "static_lifetime",
6035
+ kind: "scalar",
6036
+ oneof: "t",
6037
+ T: 8
6038
+ /*ScalarType.BOOL*/
6039
+ },
6040
+ {
6041
+ no: 2,
6042
+ name: "single",
6043
+ kind: "scalar",
6044
+ oneof: "t",
6045
+ T: 4,
6046
+ L: 0
6047
+ /*LongType.BIGINT*/
6048
+ },
6049
+ { no: 3, name: "range", kind: "message", oneof: "t", T: () => DictionaryRangeLifetime }
6050
+ ]);
6051
+ }
6052
+ create(value) {
6053
+ const message = globalThis.Object.create(this.messagePrototype);
6054
+ message.t = { oneofKind: void 0 };
6055
+ if (value !== void 0)
6056
+ reflectionMergePartial3(this, message, value);
6057
+ return message;
6058
+ }
6059
+ internalBinaryRead(reader, length, options, target) {
6060
+ let message = target ?? this.create(), end = reader.pos + length;
6061
+ while (reader.pos < end) {
6062
+ let [fieldNo, wireType] = reader.tag();
6063
+ switch (fieldNo) {
6064
+ case /* bool static_lifetime */
6065
+ 1:
6066
+ message.t = {
6067
+ oneofKind: "staticLifetime",
6068
+ staticLifetime: reader.bool()
6069
+ };
6070
+ break;
6071
+ case /* uint64 single */
6072
+ 2:
6073
+ message.t = {
6074
+ oneofKind: "single",
6075
+ single: reader.uint64().toBigInt()
6076
+ };
6077
+ break;
6078
+ case /* moose.proto.DictionaryRangeLifetime range */
6079
+ 3:
6080
+ message.t = {
6081
+ oneofKind: "range",
6082
+ range: DictionaryRangeLifetime.internalBinaryRead(reader, reader.uint32(), options, message.t.range)
6083
+ };
6084
+ break;
6085
+ default:
6086
+ let u = options.readUnknownField;
6087
+ if (u === "throw")
6088
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6089
+ let d = reader.skip(wireType);
6090
+ if (u !== false)
6091
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6092
+ }
6093
+ }
6094
+ return message;
6095
+ }
6096
+ internalBinaryWrite(message, writer, options) {
6097
+ if (message.t.oneofKind === "staticLifetime")
6098
+ writer.tag(1, WireType3.Varint).bool(message.t.staticLifetime);
6099
+ if (message.t.oneofKind === "single")
6100
+ writer.tag(2, WireType3.Varint).uint64(message.t.single);
6101
+ if (message.t.oneofKind === "range")
6102
+ DictionaryRangeLifetime.internalBinaryWrite(message.t.range, writer.tag(3, WireType3.LengthDelimited).fork(), options).join();
6103
+ let u = options.writeUnknownFields;
6104
+ if (u !== false)
6105
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6106
+ return writer;
6107
+ }
6108
+ };
6109
+ var DictionaryLifetime = new DictionaryLifetime$Type();
6110
+ var DictionaryHttpSource$Type = class extends MessageType3 {
6111
+ constructor() {
6112
+ super("moose.proto.DictionaryHttpSource", [
6113
+ {
6114
+ no: 1,
6115
+ name: "url",
6116
+ kind: "scalar",
6117
+ T: 9
6118
+ /*ScalarType.STRING*/
6119
+ },
6120
+ {
6121
+ no: 2,
6122
+ name: "format",
6123
+ kind: "scalar",
6124
+ T: 9
6125
+ /*ScalarType.STRING*/
6126
+ },
6127
+ {
6128
+ no: 3,
6129
+ name: "method",
6130
+ kind: "scalar",
6131
+ opt: true,
6132
+ T: 9
6133
+ /*ScalarType.STRING*/
6134
+ },
6135
+ {
6136
+ no: 4,
6137
+ name: "where_clause",
6138
+ kind: "scalar",
6139
+ opt: true,
6140
+ T: 9
6141
+ /*ScalarType.STRING*/
6142
+ }
6143
+ ]);
6144
+ }
6145
+ create(value) {
6146
+ const message = globalThis.Object.create(this.messagePrototype);
6147
+ message.url = "";
6148
+ message.format = "";
6149
+ if (value !== void 0)
6150
+ reflectionMergePartial3(this, message, value);
6151
+ return message;
6152
+ }
6153
+ internalBinaryRead(reader, length, options, target) {
6154
+ let message = target ?? this.create(), end = reader.pos + length;
6155
+ while (reader.pos < end) {
6156
+ let [fieldNo, wireType] = reader.tag();
6157
+ switch (fieldNo) {
6158
+ case /* string url */
6159
+ 1:
6160
+ message.url = reader.string();
6161
+ break;
6162
+ case /* string format */
6163
+ 2:
6164
+ message.format = reader.string();
6165
+ break;
6166
+ case /* optional string method */
6167
+ 3:
6168
+ message.method = reader.string();
6169
+ break;
6170
+ case /* optional string where_clause */
6171
+ 4:
6172
+ message.whereClause = reader.string();
6173
+ break;
6174
+ default:
6175
+ let u = options.readUnknownField;
6176
+ if (u === "throw")
6177
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6178
+ let d = reader.skip(wireType);
6179
+ if (u !== false)
6180
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6181
+ }
6182
+ }
6183
+ return message;
6184
+ }
6185
+ internalBinaryWrite(message, writer, options) {
6186
+ if (message.url !== "")
6187
+ writer.tag(1, WireType3.LengthDelimited).string(message.url);
6188
+ if (message.format !== "")
6189
+ writer.tag(2, WireType3.LengthDelimited).string(message.format);
6190
+ if (message.method !== void 0)
6191
+ writer.tag(3, WireType3.LengthDelimited).string(message.method);
6192
+ if (message.whereClause !== void 0)
6193
+ writer.tag(4, WireType3.LengthDelimited).string(message.whereClause);
6194
+ let u = options.writeUnknownFields;
6195
+ if (u !== false)
6196
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6197
+ return writer;
6198
+ }
6199
+ };
6200
+ var DictionaryHttpSource = new DictionaryHttpSource$Type();
6201
+ var DictionaryClickHouseSource$Type = class extends MessageType3 {
6202
+ constructor() {
6203
+ super("moose.proto.DictionaryClickHouseSource", [
6204
+ {
6205
+ no: 1,
6206
+ name: "host",
6207
+ kind: "scalar",
6208
+ T: 9
6209
+ /*ScalarType.STRING*/
6210
+ },
6211
+ {
6212
+ no: 2,
6213
+ name: "port",
6214
+ kind: "scalar",
6215
+ T: 13
6216
+ /*ScalarType.UINT32*/
6217
+ },
6218
+ {
6219
+ no: 3,
6220
+ name: "user",
6221
+ kind: "scalar",
6222
+ T: 9
6223
+ /*ScalarType.STRING*/
6224
+ },
6225
+ {
6226
+ no: 4,
6227
+ name: "password",
6228
+ kind: "scalar",
6229
+ T: 9
6230
+ /*ScalarType.STRING*/
6231
+ },
6232
+ {
6233
+ no: 5,
6234
+ name: "db",
6235
+ kind: "scalar",
6236
+ T: 9
6237
+ /*ScalarType.STRING*/
6238
+ },
6239
+ {
6240
+ no: 6,
6241
+ name: "table",
6242
+ kind: "scalar",
6243
+ T: 9
6244
+ /*ScalarType.STRING*/
6245
+ },
6246
+ {
6247
+ no: 7,
6248
+ name: "query",
6249
+ kind: "scalar",
6250
+ opt: true,
6251
+ T: 9
6252
+ /*ScalarType.STRING*/
6253
+ },
6254
+ {
6255
+ no: 8,
6256
+ name: "where_clause",
6257
+ kind: "scalar",
6258
+ opt: true,
6259
+ T: 9
6260
+ /*ScalarType.STRING*/
6261
+ },
6262
+ {
6263
+ no: 9,
6264
+ name: "invalidate_query",
6265
+ kind: "scalar",
6266
+ opt: true,
6267
+ T: 9
6268
+ /*ScalarType.STRING*/
6269
+ }
6270
+ ]);
6271
+ }
6272
+ create(value) {
6273
+ const message = globalThis.Object.create(this.messagePrototype);
6274
+ message.host = "";
6275
+ message.port = 0;
6276
+ message.user = "";
6277
+ message.password = "";
6278
+ message.db = "";
6279
+ message.table = "";
6280
+ if (value !== void 0)
6281
+ reflectionMergePartial3(this, message, value);
6282
+ return message;
6283
+ }
6284
+ internalBinaryRead(reader, length, options, target) {
6285
+ let message = target ?? this.create(), end = reader.pos + length;
6286
+ while (reader.pos < end) {
6287
+ let [fieldNo, wireType] = reader.tag();
6288
+ switch (fieldNo) {
6289
+ case /* string host */
6290
+ 1:
6291
+ message.host = reader.string();
6292
+ break;
6293
+ case /* uint32 port */
6294
+ 2:
6295
+ message.port = reader.uint32();
6296
+ break;
6297
+ case /* string user */
6298
+ 3:
6299
+ message.user = reader.string();
6300
+ break;
6301
+ case /* string password */
6302
+ 4:
6303
+ message.password = reader.string();
6304
+ break;
6305
+ case /* string db */
6306
+ 5:
6307
+ message.db = reader.string();
6308
+ break;
6309
+ case /* string table */
6310
+ 6:
6311
+ message.table = reader.string();
6312
+ break;
6313
+ case /* optional string query */
6314
+ 7:
6315
+ message.query = reader.string();
6316
+ break;
6317
+ case /* optional string where_clause */
6318
+ 8:
6319
+ message.whereClause = reader.string();
6320
+ break;
6321
+ case /* optional string invalidate_query */
6322
+ 9:
6323
+ message.invalidateQuery = reader.string();
6324
+ break;
6325
+ default:
6326
+ let u = options.readUnknownField;
6327
+ if (u === "throw")
6328
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6329
+ let d = reader.skip(wireType);
6330
+ if (u !== false)
6331
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6332
+ }
6333
+ }
6334
+ return message;
6335
+ }
6336
+ internalBinaryWrite(message, writer, options) {
6337
+ if (message.host !== "")
6338
+ writer.tag(1, WireType3.LengthDelimited).string(message.host);
6339
+ if (message.port !== 0)
6340
+ writer.tag(2, WireType3.Varint).uint32(message.port);
6341
+ if (message.user !== "")
6342
+ writer.tag(3, WireType3.LengthDelimited).string(message.user);
6343
+ if (message.password !== "")
6344
+ writer.tag(4, WireType3.LengthDelimited).string(message.password);
6345
+ if (message.db !== "")
6346
+ writer.tag(5, WireType3.LengthDelimited).string(message.db);
6347
+ if (message.table !== "")
6348
+ writer.tag(6, WireType3.LengthDelimited).string(message.table);
6349
+ if (message.query !== void 0)
6350
+ writer.tag(7, WireType3.LengthDelimited).string(message.query);
6351
+ if (message.whereClause !== void 0)
6352
+ writer.tag(8, WireType3.LengthDelimited).string(message.whereClause);
6353
+ if (message.invalidateQuery !== void 0)
6354
+ writer.tag(9, WireType3.LengthDelimited).string(message.invalidateQuery);
6355
+ let u = options.writeUnknownFields;
6356
+ if (u !== false)
6357
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6358
+ return writer;
6359
+ }
6360
+ };
6361
+ var DictionaryClickHouseSource = new DictionaryClickHouseSource$Type();
6362
+ var DictionaryMysqlSource$Type = class extends MessageType3 {
6363
+ constructor() {
6364
+ super("moose.proto.DictionaryMysqlSource", [
6365
+ {
6366
+ no: 1,
6367
+ name: "host",
6368
+ kind: "scalar",
6369
+ T: 9
6370
+ /*ScalarType.STRING*/
6371
+ },
6372
+ {
6373
+ no: 2,
6374
+ name: "port",
6375
+ kind: "scalar",
6376
+ T: 13
6377
+ /*ScalarType.UINT32*/
6378
+ },
6379
+ {
6380
+ no: 3,
6381
+ name: "user",
6382
+ kind: "scalar",
6383
+ T: 9
6384
+ /*ScalarType.STRING*/
6385
+ },
6386
+ {
6387
+ no: 4,
6388
+ name: "password",
6389
+ kind: "scalar",
6390
+ T: 9
6391
+ /*ScalarType.STRING*/
6392
+ },
6393
+ {
6394
+ no: 5,
6395
+ name: "db",
6396
+ kind: "scalar",
6397
+ T: 9
6398
+ /*ScalarType.STRING*/
6399
+ },
6400
+ {
6401
+ no: 6,
6402
+ name: "table",
6403
+ kind: "scalar",
6404
+ T: 9
6405
+ /*ScalarType.STRING*/
6406
+ },
6407
+ {
6408
+ no: 7,
6409
+ name: "query",
6410
+ kind: "scalar",
6411
+ opt: true,
6412
+ T: 9
6413
+ /*ScalarType.STRING*/
6414
+ },
6415
+ {
6416
+ no: 8,
6417
+ name: "where_clause",
6418
+ kind: "scalar",
6419
+ opt: true,
6420
+ T: 9
6421
+ /*ScalarType.STRING*/
6422
+ },
6423
+ {
6424
+ no: 9,
6425
+ name: "invalidate_query",
6426
+ kind: "scalar",
6427
+ opt: true,
6428
+ T: 9
6429
+ /*ScalarType.STRING*/
6430
+ }
6431
+ ]);
6432
+ }
6433
+ create(value) {
6434
+ const message = globalThis.Object.create(this.messagePrototype);
6435
+ message.host = "";
6436
+ message.port = 0;
6437
+ message.user = "";
6438
+ message.password = "";
6439
+ message.db = "";
6440
+ message.table = "";
6441
+ if (value !== void 0)
6442
+ reflectionMergePartial3(this, message, value);
6443
+ return message;
6444
+ }
6445
+ internalBinaryRead(reader, length, options, target) {
6446
+ let message = target ?? this.create(), end = reader.pos + length;
6447
+ while (reader.pos < end) {
6448
+ let [fieldNo, wireType] = reader.tag();
6449
+ switch (fieldNo) {
6450
+ case /* string host */
6451
+ 1:
6452
+ message.host = reader.string();
6453
+ break;
6454
+ case /* uint32 port */
6455
+ 2:
6456
+ message.port = reader.uint32();
6457
+ break;
6458
+ case /* string user */
6459
+ 3:
6460
+ message.user = reader.string();
6461
+ break;
6462
+ case /* string password */
6463
+ 4:
6464
+ message.password = reader.string();
6465
+ break;
6466
+ case /* string db */
6467
+ 5:
6468
+ message.db = reader.string();
6469
+ break;
6470
+ case /* string table */
6471
+ 6:
6472
+ message.table = reader.string();
6473
+ break;
6474
+ case /* optional string query */
6475
+ 7:
6476
+ message.query = reader.string();
6477
+ break;
6478
+ case /* optional string where_clause */
6479
+ 8:
6480
+ message.whereClause = reader.string();
6481
+ break;
6482
+ case /* optional string invalidate_query */
6483
+ 9:
6484
+ message.invalidateQuery = reader.string();
6485
+ break;
6486
+ default:
6487
+ let u = options.readUnknownField;
6488
+ if (u === "throw")
6489
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6490
+ let d = reader.skip(wireType);
6491
+ if (u !== false)
6492
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6493
+ }
6494
+ }
6495
+ return message;
6496
+ }
6497
+ internalBinaryWrite(message, writer, options) {
6498
+ if (message.host !== "")
6499
+ writer.tag(1, WireType3.LengthDelimited).string(message.host);
6500
+ if (message.port !== 0)
6501
+ writer.tag(2, WireType3.Varint).uint32(message.port);
6502
+ if (message.user !== "")
6503
+ writer.tag(3, WireType3.LengthDelimited).string(message.user);
6504
+ if (message.password !== "")
6505
+ writer.tag(4, WireType3.LengthDelimited).string(message.password);
6506
+ if (message.db !== "")
6507
+ writer.tag(5, WireType3.LengthDelimited).string(message.db);
6508
+ if (message.table !== "")
6509
+ writer.tag(6, WireType3.LengthDelimited).string(message.table);
6510
+ if (message.query !== void 0)
6511
+ writer.tag(7, WireType3.LengthDelimited).string(message.query);
6512
+ if (message.whereClause !== void 0)
6513
+ writer.tag(8, WireType3.LengthDelimited).string(message.whereClause);
6514
+ if (message.invalidateQuery !== void 0)
6515
+ writer.tag(9, WireType3.LengthDelimited).string(message.invalidateQuery);
6516
+ let u = options.writeUnknownFields;
6517
+ if (u !== false)
6518
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6519
+ return writer;
6520
+ }
6521
+ };
6522
+ var DictionaryMysqlSource = new DictionaryMysqlSource$Type();
6523
+ var DictionaryPostgresqlSource$Type = class extends MessageType3 {
6524
+ constructor() {
6525
+ super("moose.proto.DictionaryPostgresqlSource", [
6526
+ {
6527
+ no: 1,
6528
+ name: "host",
6529
+ kind: "scalar",
6530
+ T: 9
6531
+ /*ScalarType.STRING*/
6532
+ },
6533
+ {
6534
+ no: 2,
6535
+ name: "port",
6536
+ kind: "scalar",
6537
+ T: 13
6538
+ /*ScalarType.UINT32*/
6539
+ },
6540
+ {
6541
+ no: 3,
6542
+ name: "user",
6543
+ kind: "scalar",
6544
+ T: 9
6545
+ /*ScalarType.STRING*/
6546
+ },
6547
+ {
6548
+ no: 4,
6549
+ name: "password",
6550
+ kind: "scalar",
6551
+ T: 9
6552
+ /*ScalarType.STRING*/
6553
+ },
6554
+ {
6555
+ no: 5,
6556
+ name: "db",
6557
+ kind: "scalar",
6558
+ T: 9
6559
+ /*ScalarType.STRING*/
6560
+ },
6561
+ {
6562
+ no: 6,
6563
+ name: "table",
6564
+ kind: "scalar",
6565
+ T: 9
6566
+ /*ScalarType.STRING*/
6567
+ },
6568
+ {
6569
+ no: 7,
6570
+ name: "query",
6571
+ kind: "scalar",
6572
+ opt: true,
6573
+ T: 9
6574
+ /*ScalarType.STRING*/
6575
+ },
6576
+ {
6577
+ no: 8,
6578
+ name: "where_clause",
6579
+ kind: "scalar",
6580
+ opt: true,
6581
+ T: 9
6582
+ /*ScalarType.STRING*/
6583
+ },
6584
+ {
6585
+ no: 9,
6586
+ name: "invalidate_query",
6587
+ kind: "scalar",
6588
+ opt: true,
6589
+ T: 9
6590
+ /*ScalarType.STRING*/
6591
+ }
6592
+ ]);
6593
+ }
6594
+ create(value) {
6595
+ const message = globalThis.Object.create(this.messagePrototype);
6596
+ message.host = "";
6597
+ message.port = 0;
6598
+ message.user = "";
6599
+ message.password = "";
6600
+ message.db = "";
6601
+ message.table = "";
6602
+ if (value !== void 0)
6603
+ reflectionMergePartial3(this, message, value);
6604
+ return message;
6605
+ }
6606
+ internalBinaryRead(reader, length, options, target) {
6607
+ let message = target ?? this.create(), end = reader.pos + length;
6608
+ while (reader.pos < end) {
6609
+ let [fieldNo, wireType] = reader.tag();
6610
+ switch (fieldNo) {
6611
+ case /* string host */
6612
+ 1:
6613
+ message.host = reader.string();
6614
+ break;
6615
+ case /* uint32 port */
6616
+ 2:
6617
+ message.port = reader.uint32();
6618
+ break;
6619
+ case /* string user */
6620
+ 3:
6621
+ message.user = reader.string();
6622
+ break;
6623
+ case /* string password */
6624
+ 4:
6625
+ message.password = reader.string();
6626
+ break;
6627
+ case /* string db */
6628
+ 5:
6629
+ message.db = reader.string();
6630
+ break;
6631
+ case /* string table */
6632
+ 6:
6633
+ message.table = reader.string();
6634
+ break;
6635
+ case /* optional string query */
6636
+ 7:
6637
+ message.query = reader.string();
6638
+ break;
6639
+ case /* optional string where_clause */
6640
+ 8:
6641
+ message.whereClause = reader.string();
6642
+ break;
6643
+ case /* optional string invalidate_query */
6644
+ 9:
6645
+ message.invalidateQuery = reader.string();
6646
+ break;
6647
+ default:
6648
+ let u = options.readUnknownField;
6649
+ if (u === "throw")
6650
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6651
+ let d = reader.skip(wireType);
6652
+ if (u !== false)
6653
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6654
+ }
6655
+ }
6656
+ return message;
6657
+ }
6658
+ internalBinaryWrite(message, writer, options) {
6659
+ if (message.host !== "")
6660
+ writer.tag(1, WireType3.LengthDelimited).string(message.host);
6661
+ if (message.port !== 0)
6662
+ writer.tag(2, WireType3.Varint).uint32(message.port);
6663
+ if (message.user !== "")
6664
+ writer.tag(3, WireType3.LengthDelimited).string(message.user);
6665
+ if (message.password !== "")
6666
+ writer.tag(4, WireType3.LengthDelimited).string(message.password);
6667
+ if (message.db !== "")
6668
+ writer.tag(5, WireType3.LengthDelimited).string(message.db);
6669
+ if (message.table !== "")
6670
+ writer.tag(6, WireType3.LengthDelimited).string(message.table);
6671
+ if (message.query !== void 0)
6672
+ writer.tag(7, WireType3.LengthDelimited).string(message.query);
6673
+ if (message.whereClause !== void 0)
6674
+ writer.tag(8, WireType3.LengthDelimited).string(message.whereClause);
6675
+ if (message.invalidateQuery !== void 0)
6676
+ writer.tag(9, WireType3.LengthDelimited).string(message.invalidateQuery);
6677
+ let u = options.writeUnknownFields;
6678
+ if (u !== false)
6679
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6680
+ return writer;
6681
+ }
6682
+ };
6683
+ var DictionaryPostgresqlSource = new DictionaryPostgresqlSource$Type();
6684
+ var DictionaryRedisSource$Type = class extends MessageType3 {
6685
+ constructor() {
6686
+ super("moose.proto.DictionaryRedisSource", [
6687
+ {
6688
+ no: 1,
6689
+ name: "host",
6690
+ kind: "scalar",
6691
+ T: 9
6692
+ /*ScalarType.STRING*/
6693
+ },
6694
+ {
6695
+ no: 2,
6696
+ name: "port",
6697
+ kind: "scalar",
6698
+ T: 13
6699
+ /*ScalarType.UINT32*/
6700
+ },
6701
+ {
6702
+ no: 3,
6703
+ name: "password",
6704
+ kind: "scalar",
6705
+ opt: true,
6706
+ T: 9
6707
+ /*ScalarType.STRING*/
6708
+ },
6709
+ {
6710
+ no: 4,
6711
+ name: "db_index",
6712
+ kind: "scalar",
6713
+ opt: true,
6714
+ T: 13
6715
+ /*ScalarType.UINT32*/
6716
+ },
6717
+ {
6718
+ no: 5,
6719
+ name: "storage_type",
6720
+ kind: "scalar",
6721
+ T: 9
6722
+ /*ScalarType.STRING*/
6723
+ }
6724
+ ]);
6725
+ }
6726
+ create(value) {
6727
+ const message = globalThis.Object.create(this.messagePrototype);
6728
+ message.host = "";
6729
+ message.port = 0;
6730
+ message.storageType = "";
6731
+ if (value !== void 0)
6732
+ reflectionMergePartial3(this, message, value);
6733
+ return message;
6734
+ }
6735
+ internalBinaryRead(reader, length, options, target) {
6736
+ let message = target ?? this.create(), end = reader.pos + length;
6737
+ while (reader.pos < end) {
6738
+ let [fieldNo, wireType] = reader.tag();
6739
+ switch (fieldNo) {
6740
+ case /* string host */
6741
+ 1:
6742
+ message.host = reader.string();
6743
+ break;
6744
+ case /* uint32 port */
6745
+ 2:
6746
+ message.port = reader.uint32();
6747
+ break;
6748
+ case /* optional string password */
6749
+ 3:
6750
+ message.password = reader.string();
6751
+ break;
6752
+ case /* optional uint32 db_index */
6753
+ 4:
6754
+ message.dbIndex = reader.uint32();
6755
+ break;
6756
+ case /* string storage_type */
6757
+ 5:
6758
+ message.storageType = reader.string();
6759
+ break;
6760
+ default:
6761
+ let u = options.readUnknownField;
6762
+ if (u === "throw")
6763
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6764
+ let d = reader.skip(wireType);
6765
+ if (u !== false)
6766
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6767
+ }
6768
+ }
6769
+ return message;
6770
+ }
6771
+ internalBinaryWrite(message, writer, options) {
6772
+ if (message.host !== "")
6773
+ writer.tag(1, WireType3.LengthDelimited).string(message.host);
6774
+ if (message.port !== 0)
6775
+ writer.tag(2, WireType3.Varint).uint32(message.port);
6776
+ if (message.password !== void 0)
6777
+ writer.tag(3, WireType3.LengthDelimited).string(message.password);
6778
+ if (message.dbIndex !== void 0)
6779
+ writer.tag(4, WireType3.Varint).uint32(message.dbIndex);
6780
+ if (message.storageType !== "")
6781
+ writer.tag(5, WireType3.LengthDelimited).string(message.storageType);
6782
+ let u = options.writeUnknownFields;
6783
+ if (u !== false)
6784
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6785
+ return writer;
6786
+ }
6787
+ };
6788
+ var DictionaryRedisSource = new DictionaryRedisSource$Type();
6789
+ var DictionaryMongoDbSource$Type = class extends MessageType3 {
6790
+ constructor() {
6791
+ super("moose.proto.DictionaryMongoDbSource", [
6792
+ {
6793
+ no: 1,
6794
+ name: "host",
6795
+ kind: "scalar",
6796
+ T: 9
6797
+ /*ScalarType.STRING*/
6798
+ },
6799
+ {
6800
+ no: 2,
6801
+ name: "port",
6802
+ kind: "scalar",
6803
+ T: 13
6804
+ /*ScalarType.UINT32*/
6805
+ },
6806
+ {
6807
+ no: 3,
6808
+ name: "user",
6809
+ kind: "scalar",
6810
+ T: 9
6811
+ /*ScalarType.STRING*/
6812
+ },
6813
+ {
6814
+ no: 4,
6815
+ name: "password",
6816
+ kind: "scalar",
6817
+ T: 9
6818
+ /*ScalarType.STRING*/
6819
+ },
6820
+ {
6821
+ no: 5,
6822
+ name: "db",
6823
+ kind: "scalar",
6824
+ T: 9
6825
+ /*ScalarType.STRING*/
6826
+ },
6827
+ {
6828
+ no: 6,
6829
+ name: "collection",
6830
+ kind: "scalar",
6831
+ T: 9
6832
+ /*ScalarType.STRING*/
6833
+ }
6834
+ ]);
6835
+ }
6836
+ create(value) {
6837
+ const message = globalThis.Object.create(this.messagePrototype);
6838
+ message.host = "";
6839
+ message.port = 0;
6840
+ message.user = "";
6841
+ message.password = "";
6842
+ message.db = "";
6843
+ message.collection = "";
6844
+ if (value !== void 0)
6845
+ reflectionMergePartial3(this, message, value);
6846
+ return message;
6847
+ }
6848
+ internalBinaryRead(reader, length, options, target) {
6849
+ let message = target ?? this.create(), end = reader.pos + length;
6850
+ while (reader.pos < end) {
6851
+ let [fieldNo, wireType] = reader.tag();
6852
+ switch (fieldNo) {
6853
+ case /* string host */
6854
+ 1:
6855
+ message.host = reader.string();
6856
+ break;
6857
+ case /* uint32 port */
6858
+ 2:
6859
+ message.port = reader.uint32();
6860
+ break;
6861
+ case /* string user */
6862
+ 3:
6863
+ message.user = reader.string();
6864
+ break;
6865
+ case /* string password */
6866
+ 4:
6867
+ message.password = reader.string();
6868
+ break;
6869
+ case /* string db */
6870
+ 5:
6871
+ message.db = reader.string();
6872
+ break;
6873
+ case /* string collection */
6874
+ 6:
6875
+ message.collection = reader.string();
6876
+ break;
6877
+ default:
6878
+ let u = options.readUnknownField;
6879
+ if (u === "throw")
6880
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6881
+ let d = reader.skip(wireType);
6882
+ if (u !== false)
6883
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6884
+ }
6885
+ }
6886
+ return message;
6887
+ }
6888
+ internalBinaryWrite(message, writer, options) {
6889
+ if (message.host !== "")
6890
+ writer.tag(1, WireType3.LengthDelimited).string(message.host);
6891
+ if (message.port !== 0)
6892
+ writer.tag(2, WireType3.Varint).uint32(message.port);
6893
+ if (message.user !== "")
6894
+ writer.tag(3, WireType3.LengthDelimited).string(message.user);
6895
+ if (message.password !== "")
6896
+ writer.tag(4, WireType3.LengthDelimited).string(message.password);
6897
+ if (message.db !== "")
6898
+ writer.tag(5, WireType3.LengthDelimited).string(message.db);
6899
+ if (message.collection !== "")
6900
+ writer.tag(6, WireType3.LengthDelimited).string(message.collection);
6901
+ let u = options.writeUnknownFields;
6902
+ if (u !== false)
6903
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6904
+ return writer;
6905
+ }
6906
+ };
6907
+ var DictionaryMongoDbSource = new DictionaryMongoDbSource$Type();
6908
+ var DictionaryExecutableSource$Type = class extends MessageType3 {
6909
+ constructor() {
6910
+ super("moose.proto.DictionaryExecutableSource", [
6911
+ {
6912
+ no: 1,
6913
+ name: "command",
6914
+ kind: "scalar",
6915
+ T: 9
6916
+ /*ScalarType.STRING*/
6917
+ },
6918
+ {
6919
+ no: 2,
6920
+ name: "format",
6921
+ kind: "scalar",
6922
+ T: 9
6923
+ /*ScalarType.STRING*/
6924
+ },
6925
+ {
6926
+ no: 3,
6927
+ name: "implicit_key",
6928
+ kind: "scalar",
6929
+ opt: true,
6930
+ T: 8
6931
+ /*ScalarType.BOOL*/
6932
+ }
6933
+ ]);
6934
+ }
6935
+ create(value) {
6936
+ const message = globalThis.Object.create(this.messagePrototype);
6937
+ message.command = "";
6938
+ message.format = "";
6939
+ if (value !== void 0)
6940
+ reflectionMergePartial3(this, message, value);
6941
+ return message;
6942
+ }
6943
+ internalBinaryRead(reader, length, options, target) {
6944
+ let message = target ?? this.create(), end = reader.pos + length;
6945
+ while (reader.pos < end) {
6946
+ let [fieldNo, wireType] = reader.tag();
6947
+ switch (fieldNo) {
6948
+ case /* string command */
6949
+ 1:
6950
+ message.command = reader.string();
6951
+ break;
6952
+ case /* string format */
6953
+ 2:
6954
+ message.format = reader.string();
6955
+ break;
6956
+ case /* optional bool implicit_key */
6957
+ 3:
6958
+ message.implicitKey = reader.bool();
6959
+ break;
6960
+ default:
6961
+ let u = options.readUnknownField;
6962
+ if (u === "throw")
6963
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6964
+ let d = reader.skip(wireType);
6965
+ if (u !== false)
6966
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6967
+ }
6968
+ }
6969
+ return message;
6970
+ }
6971
+ internalBinaryWrite(message, writer, options) {
6972
+ if (message.command !== "")
6973
+ writer.tag(1, WireType3.LengthDelimited).string(message.command);
6974
+ if (message.format !== "")
6975
+ writer.tag(2, WireType3.LengthDelimited).string(message.format);
6976
+ if (message.implicitKey !== void 0)
6977
+ writer.tag(3, WireType3.Varint).bool(message.implicitKey);
6978
+ let u = options.writeUnknownFields;
6979
+ if (u !== false)
6980
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
6981
+ return writer;
6982
+ }
6983
+ };
6984
+ var DictionaryExecutableSource = new DictionaryExecutableSource$Type();
6985
+ var DictionaryS3Source$Type = class extends MessageType3 {
6986
+ constructor() {
6987
+ super("moose.proto.DictionaryS3Source", [
6988
+ {
6989
+ no: 1,
6990
+ name: "url",
6991
+ kind: "scalar",
6992
+ T: 9
6993
+ /*ScalarType.STRING*/
6994
+ },
6995
+ {
6996
+ no: 2,
6997
+ name: "format",
6998
+ kind: "scalar",
6999
+ T: 9
7000
+ /*ScalarType.STRING*/
7001
+ },
7002
+ {
7003
+ no: 3,
7004
+ name: "access_key_id",
7005
+ kind: "scalar",
7006
+ opt: true,
7007
+ T: 9
7008
+ /*ScalarType.STRING*/
7009
+ },
7010
+ {
7011
+ no: 4,
7012
+ name: "secret_access_key",
7013
+ kind: "scalar",
7014
+ opt: true,
7015
+ T: 9
7016
+ /*ScalarType.STRING*/
7017
+ }
7018
+ ]);
7019
+ }
7020
+ create(value) {
7021
+ const message = globalThis.Object.create(this.messagePrototype);
7022
+ message.url = "";
7023
+ message.format = "";
7024
+ if (value !== void 0)
7025
+ reflectionMergePartial3(this, message, value);
7026
+ return message;
7027
+ }
7028
+ internalBinaryRead(reader, length, options, target) {
7029
+ let message = target ?? this.create(), end = reader.pos + length;
7030
+ while (reader.pos < end) {
7031
+ let [fieldNo, wireType] = reader.tag();
7032
+ switch (fieldNo) {
7033
+ case /* string url */
7034
+ 1:
7035
+ message.url = reader.string();
7036
+ break;
7037
+ case /* string format */
7038
+ 2:
7039
+ message.format = reader.string();
7040
+ break;
7041
+ case /* optional string access_key_id */
7042
+ 3:
7043
+ message.accessKeyId = reader.string();
7044
+ break;
7045
+ case /* optional string secret_access_key */
7046
+ 4:
7047
+ message.secretAccessKey = reader.string();
7048
+ break;
7049
+ default:
7050
+ let u = options.readUnknownField;
7051
+ if (u === "throw")
7052
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
7053
+ let d = reader.skip(wireType);
7054
+ if (u !== false)
7055
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
7056
+ }
7057
+ }
7058
+ return message;
7059
+ }
7060
+ internalBinaryWrite(message, writer, options) {
7061
+ if (message.url !== "")
7062
+ writer.tag(1, WireType3.LengthDelimited).string(message.url);
7063
+ if (message.format !== "")
7064
+ writer.tag(2, WireType3.LengthDelimited).string(message.format);
7065
+ if (message.accessKeyId !== void 0)
7066
+ writer.tag(3, WireType3.LengthDelimited).string(message.accessKeyId);
7067
+ if (message.secretAccessKey !== void 0)
7068
+ writer.tag(4, WireType3.LengthDelimited).string(message.secretAccessKey);
7069
+ let u = options.writeUnknownFields;
7070
+ if (u !== false)
7071
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
7072
+ return writer;
7073
+ }
7074
+ };
7075
+ var DictionaryS3Source = new DictionaryS3Source$Type();
7076
+ var DictionaryExternalSource$Type = class extends MessageType3 {
7077
+ constructor() {
7078
+ super("moose.proto.DictionaryExternalSource", [
7079
+ { no: 1, name: "http", kind: "message", oneof: "t", T: () => DictionaryHttpSource },
7080
+ { no: 2, name: "clickhouse", kind: "message", oneof: "t", T: () => DictionaryClickHouseSource },
7081
+ { no: 3, name: "mysql", kind: "message", oneof: "t", T: () => DictionaryMysqlSource },
7082
+ { no: 4, name: "postgresql", kind: "message", oneof: "t", T: () => DictionaryPostgresqlSource },
7083
+ { no: 5, name: "redis", kind: "message", oneof: "t", T: () => DictionaryRedisSource },
7084
+ { no: 6, name: "mongodb", kind: "message", oneof: "t", T: () => DictionaryMongoDbSource },
7085
+ { no: 7, name: "executable", kind: "message", oneof: "t", T: () => DictionaryExecutableSource },
7086
+ { no: 8, name: "s3", kind: "message", oneof: "t", T: () => DictionaryS3Source }
7087
+ ]);
7088
+ }
7089
+ create(value) {
7090
+ const message = globalThis.Object.create(this.messagePrototype);
7091
+ message.t = { oneofKind: void 0 };
7092
+ if (value !== void 0)
7093
+ reflectionMergePartial3(this, message, value);
7094
+ return message;
7095
+ }
7096
+ internalBinaryRead(reader, length, options, target) {
7097
+ let message = target ?? this.create(), end = reader.pos + length;
7098
+ while (reader.pos < end) {
7099
+ let [fieldNo, wireType] = reader.tag();
7100
+ switch (fieldNo) {
7101
+ case /* moose.proto.DictionaryHttpSource http */
7102
+ 1:
7103
+ message.t = {
7104
+ oneofKind: "http",
7105
+ http: DictionaryHttpSource.internalBinaryRead(reader, reader.uint32(), options, message.t.http)
7106
+ };
7107
+ break;
7108
+ case /* moose.proto.DictionaryClickHouseSource clickhouse */
7109
+ 2:
7110
+ message.t = {
7111
+ oneofKind: "clickhouse",
7112
+ clickhouse: DictionaryClickHouseSource.internalBinaryRead(reader, reader.uint32(), options, message.t.clickhouse)
7113
+ };
7114
+ break;
7115
+ case /* moose.proto.DictionaryMysqlSource mysql */
7116
+ 3:
7117
+ message.t = {
7118
+ oneofKind: "mysql",
7119
+ mysql: DictionaryMysqlSource.internalBinaryRead(reader, reader.uint32(), options, message.t.mysql)
7120
+ };
7121
+ break;
7122
+ case /* moose.proto.DictionaryPostgresqlSource postgresql */
7123
+ 4:
7124
+ message.t = {
7125
+ oneofKind: "postgresql",
7126
+ postgresql: DictionaryPostgresqlSource.internalBinaryRead(reader, reader.uint32(), options, message.t.postgresql)
7127
+ };
7128
+ break;
7129
+ case /* moose.proto.DictionaryRedisSource redis */
7130
+ 5:
7131
+ message.t = {
7132
+ oneofKind: "redis",
7133
+ redis: DictionaryRedisSource.internalBinaryRead(reader, reader.uint32(), options, message.t.redis)
7134
+ };
7135
+ break;
7136
+ case /* moose.proto.DictionaryMongoDbSource mongodb */
7137
+ 6:
7138
+ message.t = {
7139
+ oneofKind: "mongodb",
7140
+ mongodb: DictionaryMongoDbSource.internalBinaryRead(reader, reader.uint32(), options, message.t.mongodb)
7141
+ };
7142
+ break;
7143
+ case /* moose.proto.DictionaryExecutableSource executable */
7144
+ 7:
7145
+ message.t = {
7146
+ oneofKind: "executable",
7147
+ executable: DictionaryExecutableSource.internalBinaryRead(reader, reader.uint32(), options, message.t.executable)
7148
+ };
7149
+ break;
7150
+ case /* moose.proto.DictionaryS3Source s3 */
7151
+ 8:
7152
+ message.t = {
7153
+ oneofKind: "s3",
7154
+ s3: DictionaryS3Source.internalBinaryRead(reader, reader.uint32(), options, message.t.s3)
7155
+ };
7156
+ break;
7157
+ default:
7158
+ let u = options.readUnknownField;
7159
+ if (u === "throw")
7160
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
7161
+ let d = reader.skip(wireType);
7162
+ if (u !== false)
7163
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
7164
+ }
7165
+ }
7166
+ return message;
7167
+ }
7168
+ internalBinaryWrite(message, writer, options) {
7169
+ if (message.t.oneofKind === "http")
7170
+ DictionaryHttpSource.internalBinaryWrite(message.t.http, writer.tag(1, WireType3.LengthDelimited).fork(), options).join();
7171
+ if (message.t.oneofKind === "clickhouse")
7172
+ DictionaryClickHouseSource.internalBinaryWrite(message.t.clickhouse, writer.tag(2, WireType3.LengthDelimited).fork(), options).join();
7173
+ if (message.t.oneofKind === "mysql")
7174
+ DictionaryMysqlSource.internalBinaryWrite(message.t.mysql, writer.tag(3, WireType3.LengthDelimited).fork(), options).join();
7175
+ if (message.t.oneofKind === "postgresql")
7176
+ DictionaryPostgresqlSource.internalBinaryWrite(message.t.postgresql, writer.tag(4, WireType3.LengthDelimited).fork(), options).join();
7177
+ if (message.t.oneofKind === "redis")
7178
+ DictionaryRedisSource.internalBinaryWrite(message.t.redis, writer.tag(5, WireType3.LengthDelimited).fork(), options).join();
7179
+ if (message.t.oneofKind === "mongodb")
7180
+ DictionaryMongoDbSource.internalBinaryWrite(message.t.mongodb, writer.tag(6, WireType3.LengthDelimited).fork(), options).join();
7181
+ if (message.t.oneofKind === "executable")
7182
+ DictionaryExecutableSource.internalBinaryWrite(message.t.executable, writer.tag(7, WireType3.LengthDelimited).fork(), options).join();
7183
+ if (message.t.oneofKind === "s3")
7184
+ DictionaryS3Source.internalBinaryWrite(message.t.s3, writer.tag(8, WireType3.LengthDelimited).fork(), options).join();
7185
+ let u = options.writeUnknownFields;
7186
+ if (u !== false)
7187
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
7188
+ return writer;
7189
+ }
7190
+ };
7191
+ var DictionaryExternalSource = new DictionaryExternalSource$Type();
7192
+ var OlapDictionary$Type = class extends MessageType3 {
7193
+ constructor() {
7194
+ super("moose.proto.OlapDictionary", [
7195
+ {
7196
+ no: 1,
7197
+ name: "name",
7198
+ kind: "scalar",
7199
+ T: 9
7200
+ /*ScalarType.STRING*/
7201
+ },
7202
+ {
7203
+ no: 2,
7204
+ name: "database",
7205
+ kind: "scalar",
7206
+ opt: true,
7207
+ T: 9
7208
+ /*ScalarType.STRING*/
7209
+ },
7210
+ {
7211
+ no: 3,
7212
+ name: "cluster_name",
7213
+ kind: "scalar",
7214
+ opt: true,
7215
+ T: 9
7216
+ /*ScalarType.STRING*/
7217
+ },
7218
+ { no: 4, name: "table_source", kind: "message", oneof: "source", T: () => DictionaryTableSource },
7219
+ { no: 5, name: "query_source", kind: "message", oneof: "source", T: () => DictionaryQuerySource },
7220
+ { no: 6, name: "external_source", kind: "message", oneof: "source", T: () => DictionaryExternalSource },
7221
+ {
7222
+ no: 7,
7223
+ name: "primary_key",
7224
+ kind: "scalar",
7225
+ repeat: 2,
7226
+ T: 9
7227
+ /*ScalarType.STRING*/
7228
+ },
7229
+ { no: 8, name: "columns", kind: "message", repeat: 2, T: () => DictionaryColumn },
7230
+ { no: 9, name: "layout", kind: "message", T: () => DictionaryLayout },
7231
+ { no: 10, name: "lifetime", kind: "message", T: () => DictionaryLifetime },
7232
+ {
7233
+ no: 11,
7234
+ name: "invalidate_query",
7235
+ kind: "scalar",
7236
+ opt: true,
7237
+ T: 9
7238
+ /*ScalarType.STRING*/
7239
+ },
7240
+ { no: 12, name: "settings", kind: "map", K: 9, V: {
7241
+ kind: "scalar",
7242
+ T: 9
7243
+ /*ScalarType.STRING*/
7244
+ } },
7245
+ {
7246
+ no: 13,
7247
+ name: "comment",
7248
+ kind: "scalar",
7249
+ opt: true,
7250
+ T: 9
7251
+ /*ScalarType.STRING*/
7252
+ },
7253
+ { no: 14, name: "life_cycle", kind: "enum", T: () => ["moose.proto.LifeCycle", LifeCycle] },
7254
+ { no: 15, name: "metadata", kind: "message", T: () => Metadata },
7255
+ {
7256
+ no: 16,
7257
+ name: "version",
7258
+ kind: "scalar",
7259
+ opt: true,
7260
+ T: 9
7261
+ /*ScalarType.STRING*/
7262
+ }
7263
+ ]);
7264
+ }
7265
+ create(value) {
7266
+ const message = globalThis.Object.create(this.messagePrototype);
7267
+ message.name = "";
7268
+ message.source = { oneofKind: void 0 };
7269
+ message.primaryKey = [];
7270
+ message.columns = [];
7271
+ message.settings = {};
7272
+ message.lifeCycle = 0;
7273
+ if (value !== void 0)
7274
+ reflectionMergePartial3(this, message, value);
7275
+ return message;
7276
+ }
7277
+ internalBinaryRead(reader, length, options, target) {
7278
+ let message = target ?? this.create(), end = reader.pos + length;
7279
+ while (reader.pos < end) {
7280
+ let [fieldNo, wireType] = reader.tag();
7281
+ switch (fieldNo) {
7282
+ case /* string name */
7283
+ 1:
7284
+ message.name = reader.string();
7285
+ break;
7286
+ case /* optional string database */
7287
+ 2:
7288
+ message.database = reader.string();
7289
+ break;
7290
+ case /* optional string cluster_name */
7291
+ 3:
7292
+ message.clusterName = reader.string();
7293
+ break;
7294
+ case /* moose.proto.DictionaryTableSource table_source */
7295
+ 4:
7296
+ message.source = {
7297
+ oneofKind: "tableSource",
7298
+ tableSource: DictionaryTableSource.internalBinaryRead(reader, reader.uint32(), options, message.source.tableSource)
7299
+ };
7300
+ break;
7301
+ case /* moose.proto.DictionaryQuerySource query_source */
7302
+ 5:
7303
+ message.source = {
7304
+ oneofKind: "querySource",
7305
+ querySource: DictionaryQuerySource.internalBinaryRead(reader, reader.uint32(), options, message.source.querySource)
7306
+ };
7307
+ break;
7308
+ case /* moose.proto.DictionaryExternalSource external_source */
7309
+ 6:
7310
+ message.source = {
7311
+ oneofKind: "externalSource",
7312
+ externalSource: DictionaryExternalSource.internalBinaryRead(reader, reader.uint32(), options, message.source.externalSource)
7313
+ };
7314
+ break;
7315
+ case /* repeated string primary_key */
7316
+ 7:
7317
+ message.primaryKey.push(reader.string());
7318
+ break;
7319
+ case /* repeated moose.proto.DictionaryColumn columns */
7320
+ 8:
7321
+ message.columns.push(DictionaryColumn.internalBinaryRead(reader, reader.uint32(), options));
7322
+ break;
7323
+ case /* moose.proto.DictionaryLayout layout */
7324
+ 9:
7325
+ message.layout = DictionaryLayout.internalBinaryRead(reader, reader.uint32(), options, message.layout);
7326
+ break;
7327
+ case /* moose.proto.DictionaryLifetime lifetime */
7328
+ 10:
7329
+ message.lifetime = DictionaryLifetime.internalBinaryRead(reader, reader.uint32(), options, message.lifetime);
7330
+ break;
7331
+ case /* optional string invalidate_query */
7332
+ 11:
7333
+ message.invalidateQuery = reader.string();
7334
+ break;
7335
+ case /* map<string, string> settings */
7336
+ 12:
7337
+ this.binaryReadMap12(message.settings, reader, options);
7338
+ break;
7339
+ case /* optional string comment */
7340
+ 13:
7341
+ message.comment = reader.string();
7342
+ break;
7343
+ case /* moose.proto.LifeCycle life_cycle */
7344
+ 14:
7345
+ message.lifeCycle = reader.int32();
7346
+ break;
7347
+ case /* optional moose.proto.Metadata metadata */
7348
+ 15:
7349
+ message.metadata = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
7350
+ break;
7351
+ case /* optional string version */
7352
+ 16:
7353
+ message.version = reader.string();
7354
+ break;
7355
+ default:
7356
+ let u = options.readUnknownField;
7357
+ if (u === "throw")
7358
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
7359
+ let d = reader.skip(wireType);
7360
+ if (u !== false)
7361
+ (u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
7362
+ }
7363
+ }
7364
+ return message;
7365
+ }
7366
+ binaryReadMap12(map, reader, options) {
7367
+ let len = reader.uint32(), end = reader.pos + len, key, val;
7368
+ while (reader.pos < end) {
7369
+ let [fieldNo, wireType] = reader.tag();
7370
+ switch (fieldNo) {
7371
+ case 1:
7372
+ key = reader.string();
7373
+ break;
7374
+ case 2:
7375
+ val = reader.string();
7376
+ break;
7377
+ default:
7378
+ throw new globalThis.Error("unknown map entry field for moose.proto.OlapDictionary.settings");
7379
+ }
7380
+ }
7381
+ map[key ?? ""] = val ?? "";
7382
+ }
7383
+ internalBinaryWrite(message, writer, options) {
7384
+ if (message.name !== "")
7385
+ writer.tag(1, WireType3.LengthDelimited).string(message.name);
7386
+ if (message.database !== void 0)
7387
+ writer.tag(2, WireType3.LengthDelimited).string(message.database);
7388
+ if (message.clusterName !== void 0)
7389
+ writer.tag(3, WireType3.LengthDelimited).string(message.clusterName);
7390
+ if (message.source.oneofKind === "tableSource")
7391
+ DictionaryTableSource.internalBinaryWrite(message.source.tableSource, writer.tag(4, WireType3.LengthDelimited).fork(), options).join();
7392
+ if (message.source.oneofKind === "querySource")
7393
+ DictionaryQuerySource.internalBinaryWrite(message.source.querySource, writer.tag(5, WireType3.LengthDelimited).fork(), options).join();
7394
+ if (message.source.oneofKind === "externalSource")
7395
+ DictionaryExternalSource.internalBinaryWrite(message.source.externalSource, writer.tag(6, WireType3.LengthDelimited).fork(), options).join();
7396
+ for (let i = 0; i < message.primaryKey.length; i++)
7397
+ writer.tag(7, WireType3.LengthDelimited).string(message.primaryKey[i]);
7398
+ for (let i = 0; i < message.columns.length; i++)
7399
+ DictionaryColumn.internalBinaryWrite(message.columns[i], writer.tag(8, WireType3.LengthDelimited).fork(), options).join();
7400
+ if (message.layout)
7401
+ DictionaryLayout.internalBinaryWrite(message.layout, writer.tag(9, WireType3.LengthDelimited).fork(), options).join();
7402
+ if (message.lifetime)
7403
+ DictionaryLifetime.internalBinaryWrite(message.lifetime, writer.tag(10, WireType3.LengthDelimited).fork(), options).join();
7404
+ if (message.invalidateQuery !== void 0)
7405
+ writer.tag(11, WireType3.LengthDelimited).string(message.invalidateQuery);
7406
+ for (let k of globalThis.Object.keys(message.settings))
7407
+ writer.tag(12, WireType3.LengthDelimited).fork().tag(1, WireType3.LengthDelimited).string(k).tag(2, WireType3.LengthDelimited).string(message.settings[k]).join();
7408
+ if (message.comment !== void 0)
7409
+ writer.tag(13, WireType3.LengthDelimited).string(message.comment);
7410
+ if (message.lifeCycle !== 0)
7411
+ writer.tag(14, WireType3.Varint).int32(message.lifeCycle);
7412
+ if (message.metadata)
7413
+ Metadata.internalBinaryWrite(message.metadata, writer.tag(15, WireType3.LengthDelimited).fork(), options).join();
7414
+ if (message.version !== void 0)
7415
+ writer.tag(16, WireType3.LengthDelimited).string(message.version);
7416
+ let u = options.writeUnknownFields;
7417
+ if (u !== false)
7418
+ (u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
7419
+ return writer;
7420
+ }
7421
+ };
7422
+ var OlapDictionary = new OlapDictionary$Type();
5367
7423
  export {
5368
7424
  ApiEndpoint,
5369
7425
  Column,
@@ -5372,6 +7428,22 @@ export {
5372
7428
  DataEnum,
5373
7429
  DateType,
5374
7430
  Decimal,
7431
+ DictionaryClickHouseSource,
7432
+ DictionaryColumn,
7433
+ DictionaryExecutableSource,
7434
+ DictionaryExternalSource,
7435
+ DictionaryHttpSource,
7436
+ DictionaryLayout,
7437
+ DictionaryLayout_Type,
7438
+ DictionaryLifetime,
7439
+ DictionaryMongoDbSource,
7440
+ DictionaryMysqlSource,
7441
+ DictionaryPostgresqlSource,
7442
+ DictionaryQuerySource,
7443
+ DictionaryRangeLifetime,
7444
+ DictionaryRedisSource,
7445
+ DictionaryS3Source,
7446
+ DictionaryTableSource,
5375
7447
  Dmv1View,
5376
7448
  EgressDetails,
5377
7449
  EndpointIngestionFormat,
@@ -5392,6 +7464,7 @@ export {
5392
7464
  Metadata,
5393
7465
  Method,
5394
7466
  Nested,
7467
+ OlapDictionary,
5395
7468
  OrchestrationWorker,
5396
7469
  OrderBy,
5397
7470
  OrderByFields,