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