@replit/protocol 0.3.30 → 0.3.31

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.
package/main/index.js CHANGED
@@ -44850,6 +44850,7 @@
44850
44850
  * @property {replit.goval.api.DeploymentConfig|replit.goval.api.IDeploymentConfig|null} [deployment] DotReplit deployment
44851
44851
  * @property {Array.<string>|null} [modules] DotReplit modules
44852
44852
  * @property {replit.goval.api.ExtensionConfig|replit.goval.api.IExtensionConfig|null} [extension] DotReplit extension
44853
+ * @property {replit.goval.api.RulesConfig|replit.goval.api.IRulesConfig|null} [rules] DotReplit rules
44853
44854
  */
44854
44855
 
44855
44856
  /**
@@ -45066,6 +45067,14 @@
45066
45067
  */
45067
45068
  DotReplit.prototype.extension = null;
45068
45069
 
45070
+ /**
45071
+ * DotReplit rules.
45072
+ * @member {replit.goval.api.RulesConfig|null|undefined} rules
45073
+ * @memberof replit.goval.api.DotReplit
45074
+ * @instance
45075
+ */
45076
+ DotReplit.prototype.rules = null;
45077
+
45069
45078
  /**
45070
45079
  * Creates a new DotReplit instance using the specified properties.
45071
45080
  * @function create
@@ -45148,6 +45157,8 @@
45148
45157
  writer.uint32(/* id 23, wireType 2 =*/186).string(message.modules[i]);
45149
45158
  if (message.extension != null && Object.hasOwnProperty.call(message, "extension"))
45150
45159
  $root.replit.goval.api.ExtensionConfig.encode(message.extension, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
45160
+ if (message.rules != null && Object.hasOwnProperty.call(message, "rules"))
45161
+ $root.replit.goval.api.RulesConfig.encode(message.rules, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
45151
45162
  return writer;
45152
45163
  };
45153
45164
 
@@ -45328,6 +45339,10 @@
45328
45339
  message.extension = $root.replit.goval.api.ExtensionConfig.decode(reader, reader.uint32());
45329
45340
  break;
45330
45341
  }
45342
+ case 25: {
45343
+ message.rules = $root.replit.goval.api.RulesConfig.decode(reader, reader.uint32());
45344
+ break;
45345
+ }
45331
45346
  default:
45332
45347
  reader.skipType(tag & 7);
45333
45348
  break;
@@ -45503,6 +45518,11 @@
45503
45518
  if (error)
45504
45519
  return "extension." + error;
45505
45520
  }
45521
+ if (message.rules != null && message.hasOwnProperty("rules")) {
45522
+ var error = $root.replit.goval.api.RulesConfig.verify(message.rules);
45523
+ if (error)
45524
+ return "rules." + error;
45525
+ }
45506
45526
  return null;
45507
45527
  };
45508
45528
 
@@ -45657,6 +45677,11 @@
45657
45677
  throw TypeError(".replit.goval.api.DotReplit.extension: object expected");
45658
45678
  message.extension = $root.replit.goval.api.ExtensionConfig.fromObject(object.extension);
45659
45679
  }
45680
+ if (object.rules != null) {
45681
+ if (typeof object.rules !== "object")
45682
+ throw TypeError(".replit.goval.api.DotReplit.rules: object expected");
45683
+ message.rules = $root.replit.goval.api.RulesConfig.fromObject(object.rules);
45684
+ }
45660
45685
  return message;
45661
45686
  };
45662
45687
 
@@ -45702,6 +45727,7 @@
45702
45727
  object.auth = null;
45703
45728
  object.deployment = null;
45704
45729
  object.extension = null;
45730
+ object.rules = null;
45705
45731
  }
45706
45732
  if (message.run != null && message.hasOwnProperty("run"))
45707
45733
  object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
@@ -45776,6 +45802,8 @@
45776
45802
  }
45777
45803
  if (message.extension != null && message.hasOwnProperty("extension"))
45778
45804
  object.extension = $root.replit.goval.api.ExtensionConfig.toObject(message.extension, options);
45805
+ if (message.rules != null && message.hasOwnProperty("rules"))
45806
+ object.rules = $root.replit.goval.api.RulesConfig.toObject(message.rules, options);
45779
45807
  return object;
45780
45808
  };
45781
45809
 
@@ -54786,6 +54814,8 @@
54786
54814
  * @property {Array.<replit.goval.api.LanguageServerOption|replit.goval.api.ILanguageServerOption>|null} [languageServers] ToolchainConfigs languageServers
54787
54815
  * @property {Array.<replit.goval.api.PackagerOption|replit.goval.api.IPackagerOption>|null} [packagers] ToolchainConfigs packagers
54788
54816
  * @property {Array.<replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption>|null} [formatters] ToolchainConfigs formatters
54817
+ * @property {boolean|null} [disableInstallBeforeRun] ToolchainConfigs disableInstallBeforeRun
54818
+ * @property {boolean|null} [disableGuessImports] ToolchainConfigs disableGuessImports
54789
54819
  */
54790
54820
 
54791
54821
  /**
@@ -54855,6 +54885,22 @@
54855
54885
  */
54856
54886
  ToolchainConfigs.prototype.formatters = $util.emptyArray;
54857
54887
 
54888
+ /**
54889
+ * ToolchainConfigs disableInstallBeforeRun.
54890
+ * @member {boolean} disableInstallBeforeRun
54891
+ * @memberof replit.goval.api.ToolchainConfigs
54892
+ * @instance
54893
+ */
54894
+ ToolchainConfigs.prototype.disableInstallBeforeRun = false;
54895
+
54896
+ /**
54897
+ * ToolchainConfigs disableGuessImports.
54898
+ * @member {boolean} disableGuessImports
54899
+ * @memberof replit.goval.api.ToolchainConfigs
54900
+ * @instance
54901
+ */
54902
+ ToolchainConfigs.prototype.disableGuessImports = false;
54903
+
54858
54904
  /**
54859
54905
  * Creates a new ToolchainConfigs instance using the specified properties.
54860
54906
  * @function create
@@ -54896,6 +54942,10 @@
54896
54942
  if (message.formatters != null && message.formatters.length)
54897
54943
  for (var i = 0; i < message.formatters.length; ++i)
54898
54944
  $root.replit.goval.api.FormatterOption.encode(message.formatters[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
54945
+ if (message.disableInstallBeforeRun != null && Object.hasOwnProperty.call(message, "disableInstallBeforeRun"))
54946
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableInstallBeforeRun);
54947
+ if (message.disableGuessImports != null && Object.hasOwnProperty.call(message, "disableGuessImports"))
54948
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.disableGuessImports);
54899
54949
  return writer;
54900
54950
  };
54901
54951
 
@@ -54964,6 +55014,14 @@
54964
55014
  message.formatters.push($root.replit.goval.api.FormatterOption.decode(reader, reader.uint32()));
54965
55015
  break;
54966
55016
  }
55017
+ case 7: {
55018
+ message.disableInstallBeforeRun = reader.bool();
55019
+ break;
55020
+ }
55021
+ case 8: {
55022
+ message.disableGuessImports = reader.bool();
55023
+ break;
55024
+ }
54967
55025
  default:
54968
55026
  reader.skipType(tag & 7);
54969
55027
  break;
@@ -55047,6 +55105,12 @@
55047
55105
  return "formatters." + error;
55048
55106
  }
55049
55107
  }
55108
+ if (message.disableInstallBeforeRun != null && message.hasOwnProperty("disableInstallBeforeRun"))
55109
+ if (typeof message.disableInstallBeforeRun !== "boolean")
55110
+ return "disableInstallBeforeRun: boolean expected";
55111
+ if (message.disableGuessImports != null && message.hasOwnProperty("disableGuessImports"))
55112
+ if (typeof message.disableGuessImports !== "boolean")
55113
+ return "disableGuessImports: boolean expected";
55050
55114
  return null;
55051
55115
  };
55052
55116
 
@@ -55114,6 +55178,10 @@
55114
55178
  message.formatters[i] = $root.replit.goval.api.FormatterOption.fromObject(object.formatters[i]);
55115
55179
  }
55116
55180
  }
55181
+ if (object.disableInstallBeforeRun != null)
55182
+ message.disableInstallBeforeRun = Boolean(object.disableInstallBeforeRun);
55183
+ if (object.disableGuessImports != null)
55184
+ message.disableGuessImports = Boolean(object.disableGuessImports);
55117
55185
  return message;
55118
55186
  };
55119
55187
 
@@ -55137,8 +55205,11 @@
55137
55205
  object.packagers = [];
55138
55206
  object.formatters = [];
55139
55207
  }
55140
- if (options.defaults)
55208
+ if (options.defaults) {
55141
55209
  object.entrypoint = "";
55210
+ object.disableInstallBeforeRun = false;
55211
+ object.disableGuessImports = false;
55212
+ }
55142
55213
  if (message.entrypoint != null && message.hasOwnProperty("entrypoint"))
55143
55214
  object.entrypoint = message.entrypoint;
55144
55215
  if (message.runs && message.runs.length) {
@@ -55166,6 +55237,10 @@
55166
55237
  for (var j = 0; j < message.formatters.length; ++j)
55167
55238
  object.formatters[j] = $root.replit.goval.api.FormatterOption.toObject(message.formatters[j], options);
55168
55239
  }
55240
+ if (message.disableInstallBeforeRun != null && message.hasOwnProperty("disableInstallBeforeRun"))
55241
+ object.disableInstallBeforeRun = message.disableInstallBeforeRun;
55242
+ if (message.disableGuessImports != null && message.hasOwnProperty("disableGuessImports"))
55243
+ object.disableGuessImports = message.disableGuessImports;
55169
55244
  return object;
55170
55245
  };
55171
55246
 
@@ -59290,6 +59365,995 @@
59290
59365
  return OutputBlockEndEvent;
59291
59366
  })();
59292
59367
 
59368
+ api.RulesConfig = (function() {
59369
+
59370
+ /**
59371
+ * Properties of a RulesConfig.
59372
+ * @memberof replit.goval.api
59373
+ * @interface IRulesConfig
59374
+ * @property {replit.goval.api.FormatterRules|replit.goval.api.IFormatterRules|null} [formatter] RulesConfig formatter
59375
+ */
59376
+
59377
+ /**
59378
+ * Constructs a new RulesConfig.
59379
+ * @memberof replit.goval.api
59380
+ * @classdesc Represents a RulesConfig.
59381
+ * @constructor
59382
+ * @param {replit.goval.api.IRulesConfig=} [properties] Properties to set
59383
+ */
59384
+ function RulesConfig(properties) {
59385
+ if (properties)
59386
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59387
+ if (properties[keys[i]] != null)
59388
+ this[keys[i]] = properties[keys[i]];
59389
+ }
59390
+
59391
+ /**
59392
+ * RulesConfig formatter.
59393
+ * @member {replit.goval.api.FormatterRules|null|undefined} formatter
59394
+ * @memberof replit.goval.api.RulesConfig
59395
+ * @instance
59396
+ */
59397
+ RulesConfig.prototype.formatter = null;
59398
+
59399
+ /**
59400
+ * Creates a new RulesConfig instance using the specified properties.
59401
+ * @function create
59402
+ * @memberof replit.goval.api.RulesConfig
59403
+ * @static
59404
+ * @param {replit.goval.api.IRulesConfig=} [properties] Properties to set
59405
+ * @returns {replit.goval.api.RulesConfig} RulesConfig instance
59406
+ */
59407
+ RulesConfig.create = function create(properties) {
59408
+ return RulesConfig.fromObject(properties);
59409
+ };
59410
+
59411
+ /**
59412
+ * Encodes the specified RulesConfig message. Does not implicitly {@link replit.goval.api.RulesConfig.verify|verify} messages.
59413
+ * @function encode
59414
+ * @memberof replit.goval.api.RulesConfig
59415
+ * @static
59416
+ * @param {replit.goval.api.RulesConfig} message RulesConfig message or plain object to encode
59417
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59418
+ * @returns {$protobuf.Writer} Writer
59419
+ */
59420
+ RulesConfig.encode = function encode(message, writer) {
59421
+ if (!writer)
59422
+ writer = $Writer.create();
59423
+ if (message.formatter != null && Object.hasOwnProperty.call(message, "formatter"))
59424
+ $root.replit.goval.api.FormatterRules.encode(message.formatter, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
59425
+ return writer;
59426
+ };
59427
+
59428
+ /**
59429
+ * Encodes the specified RulesConfig message, length delimited. Does not implicitly {@link replit.goval.api.RulesConfig.verify|verify} messages.
59430
+ * @function encodeDelimited
59431
+ * @memberof replit.goval.api.RulesConfig
59432
+ * @static
59433
+ * @param {replit.goval.api.RulesConfig} message RulesConfig message or plain object to encode
59434
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59435
+ * @returns {$protobuf.Writer} Writer
59436
+ */
59437
+ RulesConfig.encodeDelimited = function encodeDelimited(message, writer) {
59438
+ return this.encode(message, writer).ldelim();
59439
+ };
59440
+
59441
+ /**
59442
+ * Decodes a RulesConfig message from the specified reader or buffer.
59443
+ * @function decode
59444
+ * @memberof replit.goval.api.RulesConfig
59445
+ * @static
59446
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59447
+ * @param {number} [length] Message length if known beforehand
59448
+ * @returns {replit.goval.api.RulesConfig} RulesConfig
59449
+ * @throws {Error} If the payload is not a reader or valid buffer
59450
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59451
+ */
59452
+ RulesConfig.decode = function decode(reader, length) {
59453
+ if (!(reader instanceof $Reader))
59454
+ reader = $Reader.create(reader);
59455
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.RulesConfig();
59456
+ while (reader.pos < end) {
59457
+ var tag = reader.uint32();
59458
+ switch (tag >>> 3) {
59459
+ case 1: {
59460
+ message.formatter = $root.replit.goval.api.FormatterRules.decode(reader, reader.uint32());
59461
+ break;
59462
+ }
59463
+ default:
59464
+ reader.skipType(tag & 7);
59465
+ break;
59466
+ }
59467
+ }
59468
+ return message;
59469
+ };
59470
+
59471
+ /**
59472
+ * Decodes a RulesConfig message from the specified reader or buffer, length delimited.
59473
+ * @function decodeDelimited
59474
+ * @memberof replit.goval.api.RulesConfig
59475
+ * @static
59476
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59477
+ * @returns {replit.goval.api.RulesConfig} RulesConfig
59478
+ * @throws {Error} If the payload is not a reader or valid buffer
59479
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59480
+ */
59481
+ RulesConfig.decodeDelimited = function decodeDelimited(reader) {
59482
+ if (!(reader instanceof $Reader))
59483
+ reader = new $Reader(reader);
59484
+ return this.decode(reader, reader.uint32());
59485
+ };
59486
+
59487
+ /**
59488
+ * Verifies a RulesConfig message.
59489
+ * @function verify
59490
+ * @memberof replit.goval.api.RulesConfig
59491
+ * @static
59492
+ * @param {Object.<string,*>} message Plain object to verify
59493
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
59494
+ */
59495
+ RulesConfig.verify = function verify(message) {
59496
+ if (typeof message !== "object" || message === null)
59497
+ return "object expected";
59498
+ if (message.formatter != null && message.hasOwnProperty("formatter")) {
59499
+ var error = $root.replit.goval.api.FormatterRules.verify(message.formatter);
59500
+ if (error)
59501
+ return "formatter." + error;
59502
+ }
59503
+ return null;
59504
+ };
59505
+
59506
+ /**
59507
+ * Creates a RulesConfig message from a plain object. Also converts values to their respective internal types.
59508
+ * @function fromObject
59509
+ * @memberof replit.goval.api.RulesConfig
59510
+ * @static
59511
+ * @param {Object.<string,*>} object Plain object
59512
+ * @returns {replit.goval.api.RulesConfig} RulesConfig
59513
+ */
59514
+ RulesConfig.fromObject = function fromObject(object) {
59515
+ if (object instanceof $root.replit.goval.api.RulesConfig)
59516
+ return object;
59517
+ var message = new $root.replit.goval.api.RulesConfig();
59518
+ if (object.formatter != null) {
59519
+ if (typeof object.formatter !== "object")
59520
+ throw TypeError(".replit.goval.api.RulesConfig.formatter: object expected");
59521
+ message.formatter = $root.replit.goval.api.FormatterRules.fromObject(object.formatter);
59522
+ }
59523
+ return message;
59524
+ };
59525
+
59526
+ /**
59527
+ * Creates a plain object from a RulesConfig message. Also converts values to other types if specified.
59528
+ * @function toObject
59529
+ * @memberof replit.goval.api.RulesConfig
59530
+ * @static
59531
+ * @param {replit.goval.api.RulesConfig} message RulesConfig
59532
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
59533
+ * @returns {Object.<string,*>} Plain object
59534
+ */
59535
+ RulesConfig.toObject = function toObject(message, options) {
59536
+ if (!options)
59537
+ options = {};
59538
+ var object = {};
59539
+ if (options.defaults)
59540
+ object.formatter = null;
59541
+ if (message.formatter != null && message.hasOwnProperty("formatter"))
59542
+ object.formatter = $root.replit.goval.api.FormatterRules.toObject(message.formatter, options);
59543
+ return object;
59544
+ };
59545
+
59546
+ /**
59547
+ * Converts this RulesConfig to JSON.
59548
+ * @function toJSON
59549
+ * @memberof replit.goval.api.RulesConfig
59550
+ * @instance
59551
+ * @returns {Object.<string,*>} JSON object
59552
+ */
59553
+ RulesConfig.prototype.toJSON = function toJSON() {
59554
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
59555
+ };
59556
+
59557
+ /**
59558
+ * Gets the default type url for RulesConfig
59559
+ * @function getTypeUrl
59560
+ * @memberof replit.goval.api.RulesConfig
59561
+ * @static
59562
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
59563
+ * @returns {string} The default type url
59564
+ */
59565
+ RulesConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
59566
+ if (typeUrlPrefix === undefined) {
59567
+ typeUrlPrefix = "type.googleapis.com";
59568
+ }
59569
+ return typeUrlPrefix + "/replit.goval.api.RulesConfig";
59570
+ };
59571
+
59572
+ return RulesConfig;
59573
+ })();
59574
+
59575
+ api.FormatterRules = (function() {
59576
+
59577
+ /**
59578
+ * Properties of a FormatterRules.
59579
+ * @memberof replit.goval.api
59580
+ * @interface IFormatterRules
59581
+ * @property {Array.<replit.goval.api.FormatterConfigWithPattern|replit.goval.api.IFormatterConfigWithPattern>|null} [patterns] FormatterRules patterns
59582
+ * @property {Object.<string,replit.goval.api.FormatterConfig|replit.goval.api.IFormatterConfig>|null} [fileExtensions] FormatterRules fileExtensions
59583
+ * @property {Object.<string,replit.goval.api.FormatterConfig|replit.goval.api.IFormatterConfig>|null} [languages] FormatterRules languages
59584
+ */
59585
+
59586
+ /**
59587
+ * Constructs a new FormatterRules.
59588
+ * @memberof replit.goval.api
59589
+ * @classdesc Represents a FormatterRules.
59590
+ * @constructor
59591
+ * @param {replit.goval.api.IFormatterRules=} [properties] Properties to set
59592
+ */
59593
+ function FormatterRules(properties) {
59594
+ this.patterns = [];
59595
+ this.fileExtensions = {};
59596
+ this.languages = {};
59597
+ if (properties)
59598
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59599
+ if (properties[keys[i]] != null)
59600
+ this[keys[i]] = properties[keys[i]];
59601
+ }
59602
+
59603
+ /**
59604
+ * FormatterRules patterns.
59605
+ * @member {Array.<replit.goval.api.FormatterConfigWithPattern>} patterns
59606
+ * @memberof replit.goval.api.FormatterRules
59607
+ * @instance
59608
+ */
59609
+ FormatterRules.prototype.patterns = $util.emptyArray;
59610
+
59611
+ /**
59612
+ * FormatterRules fileExtensions.
59613
+ * @member {Object.<string,replit.goval.api.FormatterConfig>} fileExtensions
59614
+ * @memberof replit.goval.api.FormatterRules
59615
+ * @instance
59616
+ */
59617
+ FormatterRules.prototype.fileExtensions = $util.emptyObject;
59618
+
59619
+ /**
59620
+ * FormatterRules languages.
59621
+ * @member {Object.<string,replit.goval.api.FormatterConfig>} languages
59622
+ * @memberof replit.goval.api.FormatterRules
59623
+ * @instance
59624
+ */
59625
+ FormatterRules.prototype.languages = $util.emptyObject;
59626
+
59627
+ /**
59628
+ * Creates a new FormatterRules instance using the specified properties.
59629
+ * @function create
59630
+ * @memberof replit.goval.api.FormatterRules
59631
+ * @static
59632
+ * @param {replit.goval.api.IFormatterRules=} [properties] Properties to set
59633
+ * @returns {replit.goval.api.FormatterRules} FormatterRules instance
59634
+ */
59635
+ FormatterRules.create = function create(properties) {
59636
+ return FormatterRules.fromObject(properties);
59637
+ };
59638
+
59639
+ /**
59640
+ * Encodes the specified FormatterRules message. Does not implicitly {@link replit.goval.api.FormatterRules.verify|verify} messages.
59641
+ * @function encode
59642
+ * @memberof replit.goval.api.FormatterRules
59643
+ * @static
59644
+ * @param {replit.goval.api.FormatterRules} message FormatterRules message or plain object to encode
59645
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59646
+ * @returns {$protobuf.Writer} Writer
59647
+ */
59648
+ FormatterRules.encode = function encode(message, writer) {
59649
+ if (!writer)
59650
+ writer = $Writer.create();
59651
+ if (message.patterns != null && message.patterns.length)
59652
+ for (var i = 0; i < message.patterns.length; ++i)
59653
+ $root.replit.goval.api.FormatterConfigWithPattern.encode(message.patterns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
59654
+ if (message.fileExtensions != null && Object.hasOwnProperty.call(message, "fileExtensions"))
59655
+ for (var keys = Object.keys(message.fileExtensions), i = 0; i < keys.length; ++i) {
59656
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
59657
+ $root.replit.goval.api.FormatterConfig.encode(message.fileExtensions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
59658
+ }
59659
+ if (message.languages != null && Object.hasOwnProperty.call(message, "languages"))
59660
+ for (var keys = Object.keys(message.languages), i = 0; i < keys.length; ++i) {
59661
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
59662
+ $root.replit.goval.api.FormatterConfig.encode(message.languages[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
59663
+ }
59664
+ return writer;
59665
+ };
59666
+
59667
+ /**
59668
+ * Encodes the specified FormatterRules message, length delimited. Does not implicitly {@link replit.goval.api.FormatterRules.verify|verify} messages.
59669
+ * @function encodeDelimited
59670
+ * @memberof replit.goval.api.FormatterRules
59671
+ * @static
59672
+ * @param {replit.goval.api.FormatterRules} message FormatterRules message or plain object to encode
59673
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59674
+ * @returns {$protobuf.Writer} Writer
59675
+ */
59676
+ FormatterRules.encodeDelimited = function encodeDelimited(message, writer) {
59677
+ return this.encode(message, writer).ldelim();
59678
+ };
59679
+
59680
+ /**
59681
+ * Decodes a FormatterRules message from the specified reader or buffer.
59682
+ * @function decode
59683
+ * @memberof replit.goval.api.FormatterRules
59684
+ * @static
59685
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59686
+ * @param {number} [length] Message length if known beforehand
59687
+ * @returns {replit.goval.api.FormatterRules} FormatterRules
59688
+ * @throws {Error} If the payload is not a reader or valid buffer
59689
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59690
+ */
59691
+ FormatterRules.decode = function decode(reader, length) {
59692
+ if (!(reader instanceof $Reader))
59693
+ reader = $Reader.create(reader);
59694
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FormatterRules(), key, value;
59695
+ while (reader.pos < end) {
59696
+ var tag = reader.uint32();
59697
+ switch (tag >>> 3) {
59698
+ case 1: {
59699
+ if (!(message.patterns && message.patterns.length))
59700
+ message.patterns = [];
59701
+ message.patterns.push($root.replit.goval.api.FormatterConfigWithPattern.decode(reader, reader.uint32()));
59702
+ break;
59703
+ }
59704
+ case 2: {
59705
+ if (message.fileExtensions === $util.emptyObject)
59706
+ message.fileExtensions = {};
59707
+ var end2 = reader.uint32() + reader.pos;
59708
+ key = "";
59709
+ value = null;
59710
+ while (reader.pos < end2) {
59711
+ var tag2 = reader.uint32();
59712
+ switch (tag2 >>> 3) {
59713
+ case 1:
59714
+ key = reader.string();
59715
+ break;
59716
+ case 2:
59717
+ value = $root.replit.goval.api.FormatterConfig.decode(reader, reader.uint32());
59718
+ break;
59719
+ default:
59720
+ reader.skipType(tag2 & 7);
59721
+ break;
59722
+ }
59723
+ }
59724
+ message.fileExtensions[key] = value;
59725
+ break;
59726
+ }
59727
+ case 3: {
59728
+ if (message.languages === $util.emptyObject)
59729
+ message.languages = {};
59730
+ var end2 = reader.uint32() + reader.pos;
59731
+ key = "";
59732
+ value = null;
59733
+ while (reader.pos < end2) {
59734
+ var tag2 = reader.uint32();
59735
+ switch (tag2 >>> 3) {
59736
+ case 1:
59737
+ key = reader.string();
59738
+ break;
59739
+ case 2:
59740
+ value = $root.replit.goval.api.FormatterConfig.decode(reader, reader.uint32());
59741
+ break;
59742
+ default:
59743
+ reader.skipType(tag2 & 7);
59744
+ break;
59745
+ }
59746
+ }
59747
+ message.languages[key] = value;
59748
+ break;
59749
+ }
59750
+ default:
59751
+ reader.skipType(tag & 7);
59752
+ break;
59753
+ }
59754
+ }
59755
+ return message;
59756
+ };
59757
+
59758
+ /**
59759
+ * Decodes a FormatterRules message from the specified reader or buffer, length delimited.
59760
+ * @function decodeDelimited
59761
+ * @memberof replit.goval.api.FormatterRules
59762
+ * @static
59763
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59764
+ * @returns {replit.goval.api.FormatterRules} FormatterRules
59765
+ * @throws {Error} If the payload is not a reader or valid buffer
59766
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59767
+ */
59768
+ FormatterRules.decodeDelimited = function decodeDelimited(reader) {
59769
+ if (!(reader instanceof $Reader))
59770
+ reader = new $Reader(reader);
59771
+ return this.decode(reader, reader.uint32());
59772
+ };
59773
+
59774
+ /**
59775
+ * Verifies a FormatterRules message.
59776
+ * @function verify
59777
+ * @memberof replit.goval.api.FormatterRules
59778
+ * @static
59779
+ * @param {Object.<string,*>} message Plain object to verify
59780
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
59781
+ */
59782
+ FormatterRules.verify = function verify(message) {
59783
+ if (typeof message !== "object" || message === null)
59784
+ return "object expected";
59785
+ if (message.patterns != null && message.hasOwnProperty("patterns")) {
59786
+ if (!Array.isArray(message.patterns))
59787
+ return "patterns: array expected";
59788
+ for (var i = 0; i < message.patterns.length; ++i) {
59789
+ var error = $root.replit.goval.api.FormatterConfigWithPattern.verify(message.patterns[i]);
59790
+ if (error)
59791
+ return "patterns." + error;
59792
+ }
59793
+ }
59794
+ if (message.fileExtensions != null && message.hasOwnProperty("fileExtensions")) {
59795
+ if (!$util.isObject(message.fileExtensions))
59796
+ return "fileExtensions: object expected";
59797
+ var key = Object.keys(message.fileExtensions);
59798
+ for (var i = 0; i < key.length; ++i) {
59799
+ var error = $root.replit.goval.api.FormatterConfig.verify(message.fileExtensions[key[i]]);
59800
+ if (error)
59801
+ return "fileExtensions." + error;
59802
+ }
59803
+ }
59804
+ if (message.languages != null && message.hasOwnProperty("languages")) {
59805
+ if (!$util.isObject(message.languages))
59806
+ return "languages: object expected";
59807
+ var key = Object.keys(message.languages);
59808
+ for (var i = 0; i < key.length; ++i) {
59809
+ var error = $root.replit.goval.api.FormatterConfig.verify(message.languages[key[i]]);
59810
+ if (error)
59811
+ return "languages." + error;
59812
+ }
59813
+ }
59814
+ return null;
59815
+ };
59816
+
59817
+ /**
59818
+ * Creates a FormatterRules message from a plain object. Also converts values to their respective internal types.
59819
+ * @function fromObject
59820
+ * @memberof replit.goval.api.FormatterRules
59821
+ * @static
59822
+ * @param {Object.<string,*>} object Plain object
59823
+ * @returns {replit.goval.api.FormatterRules} FormatterRules
59824
+ */
59825
+ FormatterRules.fromObject = function fromObject(object) {
59826
+ if (object instanceof $root.replit.goval.api.FormatterRules)
59827
+ return object;
59828
+ var message = new $root.replit.goval.api.FormatterRules();
59829
+ if (object.patterns) {
59830
+ if (!Array.isArray(object.patterns))
59831
+ throw TypeError(".replit.goval.api.FormatterRules.patterns: array expected");
59832
+ message.patterns = [];
59833
+ for (var i = 0; i < object.patterns.length; ++i) {
59834
+ if (typeof object.patterns[i] !== "object")
59835
+ throw TypeError(".replit.goval.api.FormatterRules.patterns: object expected");
59836
+ message.patterns[i] = $root.replit.goval.api.FormatterConfigWithPattern.fromObject(object.patterns[i]);
59837
+ }
59838
+ }
59839
+ if (object.fileExtensions) {
59840
+ if (typeof object.fileExtensions !== "object")
59841
+ throw TypeError(".replit.goval.api.FormatterRules.fileExtensions: object expected");
59842
+ message.fileExtensions = {};
59843
+ for (var keys = Object.keys(object.fileExtensions), i = 0; i < keys.length; ++i) {
59844
+ if (typeof object.fileExtensions[keys[i]] !== "object")
59845
+ throw TypeError(".replit.goval.api.FormatterRules.fileExtensions: object expected");
59846
+ message.fileExtensions[keys[i]] = $root.replit.goval.api.FormatterConfig.fromObject(object.fileExtensions[keys[i]]);
59847
+ }
59848
+ }
59849
+ if (object.languages) {
59850
+ if (typeof object.languages !== "object")
59851
+ throw TypeError(".replit.goval.api.FormatterRules.languages: object expected");
59852
+ message.languages = {};
59853
+ for (var keys = Object.keys(object.languages), i = 0; i < keys.length; ++i) {
59854
+ if (typeof object.languages[keys[i]] !== "object")
59855
+ throw TypeError(".replit.goval.api.FormatterRules.languages: object expected");
59856
+ message.languages[keys[i]] = $root.replit.goval.api.FormatterConfig.fromObject(object.languages[keys[i]]);
59857
+ }
59858
+ }
59859
+ return message;
59860
+ };
59861
+
59862
+ /**
59863
+ * Creates a plain object from a FormatterRules message. Also converts values to other types if specified.
59864
+ * @function toObject
59865
+ * @memberof replit.goval.api.FormatterRules
59866
+ * @static
59867
+ * @param {replit.goval.api.FormatterRules} message FormatterRules
59868
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
59869
+ * @returns {Object.<string,*>} Plain object
59870
+ */
59871
+ FormatterRules.toObject = function toObject(message, options) {
59872
+ if (!options)
59873
+ options = {};
59874
+ var object = {};
59875
+ if (options.arrays || options.defaults)
59876
+ object.patterns = [];
59877
+ if (options.objects || options.defaults) {
59878
+ object.fileExtensions = {};
59879
+ object.languages = {};
59880
+ }
59881
+ if (message.patterns && message.patterns.length) {
59882
+ object.patterns = [];
59883
+ for (var j = 0; j < message.patterns.length; ++j)
59884
+ object.patterns[j] = $root.replit.goval.api.FormatterConfigWithPattern.toObject(message.patterns[j], options);
59885
+ }
59886
+ var keys2;
59887
+ if (message.fileExtensions && (keys2 = Object.keys(message.fileExtensions)).length) {
59888
+ object.fileExtensions = {};
59889
+ for (var j = 0; j < keys2.length; ++j)
59890
+ object.fileExtensions[keys2[j]] = $root.replit.goval.api.FormatterConfig.toObject(message.fileExtensions[keys2[j]], options);
59891
+ }
59892
+ if (message.languages && (keys2 = Object.keys(message.languages)).length) {
59893
+ object.languages = {};
59894
+ for (var j = 0; j < keys2.length; ++j)
59895
+ object.languages[keys2[j]] = $root.replit.goval.api.FormatterConfig.toObject(message.languages[keys2[j]], options);
59896
+ }
59897
+ return object;
59898
+ };
59899
+
59900
+ /**
59901
+ * Converts this FormatterRules to JSON.
59902
+ * @function toJSON
59903
+ * @memberof replit.goval.api.FormatterRules
59904
+ * @instance
59905
+ * @returns {Object.<string,*>} JSON object
59906
+ */
59907
+ FormatterRules.prototype.toJSON = function toJSON() {
59908
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
59909
+ };
59910
+
59911
+ /**
59912
+ * Gets the default type url for FormatterRules
59913
+ * @function getTypeUrl
59914
+ * @memberof replit.goval.api.FormatterRules
59915
+ * @static
59916
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
59917
+ * @returns {string} The default type url
59918
+ */
59919
+ FormatterRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
59920
+ if (typeUrlPrefix === undefined) {
59921
+ typeUrlPrefix = "type.googleapis.com";
59922
+ }
59923
+ return typeUrlPrefix + "/replit.goval.api.FormatterRules";
59924
+ };
59925
+
59926
+ return FormatterRules;
59927
+ })();
59928
+
59929
+ api.FormatterConfig = (function() {
59930
+
59931
+ /**
59932
+ * Properties of a FormatterConfig.
59933
+ * @memberof replit.goval.api
59934
+ * @interface IFormatterConfig
59935
+ * @property {string|null} [id] FormatterConfig id
59936
+ */
59937
+
59938
+ /**
59939
+ * Constructs a new FormatterConfig.
59940
+ * @memberof replit.goval.api
59941
+ * @classdesc Represents a FormatterConfig.
59942
+ * @constructor
59943
+ * @param {replit.goval.api.IFormatterConfig=} [properties] Properties to set
59944
+ */
59945
+ function FormatterConfig(properties) {
59946
+ if (properties)
59947
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59948
+ if (properties[keys[i]] != null)
59949
+ this[keys[i]] = properties[keys[i]];
59950
+ }
59951
+
59952
+ /**
59953
+ * FormatterConfig id.
59954
+ * @member {string} id
59955
+ * @memberof replit.goval.api.FormatterConfig
59956
+ * @instance
59957
+ */
59958
+ FormatterConfig.prototype.id = "";
59959
+
59960
+ /**
59961
+ * Creates a new FormatterConfig instance using the specified properties.
59962
+ * @function create
59963
+ * @memberof replit.goval.api.FormatterConfig
59964
+ * @static
59965
+ * @param {replit.goval.api.IFormatterConfig=} [properties] Properties to set
59966
+ * @returns {replit.goval.api.FormatterConfig} FormatterConfig instance
59967
+ */
59968
+ FormatterConfig.create = function create(properties) {
59969
+ return FormatterConfig.fromObject(properties);
59970
+ };
59971
+
59972
+ /**
59973
+ * Encodes the specified FormatterConfig message. Does not implicitly {@link replit.goval.api.FormatterConfig.verify|verify} messages.
59974
+ * @function encode
59975
+ * @memberof replit.goval.api.FormatterConfig
59976
+ * @static
59977
+ * @param {replit.goval.api.FormatterConfig} message FormatterConfig message or plain object to encode
59978
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59979
+ * @returns {$protobuf.Writer} Writer
59980
+ */
59981
+ FormatterConfig.encode = function encode(message, writer) {
59982
+ if (!writer)
59983
+ writer = $Writer.create();
59984
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
59985
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
59986
+ return writer;
59987
+ };
59988
+
59989
+ /**
59990
+ * Encodes the specified FormatterConfig message, length delimited. Does not implicitly {@link replit.goval.api.FormatterConfig.verify|verify} messages.
59991
+ * @function encodeDelimited
59992
+ * @memberof replit.goval.api.FormatterConfig
59993
+ * @static
59994
+ * @param {replit.goval.api.FormatterConfig} message FormatterConfig message or plain object to encode
59995
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59996
+ * @returns {$protobuf.Writer} Writer
59997
+ */
59998
+ FormatterConfig.encodeDelimited = function encodeDelimited(message, writer) {
59999
+ return this.encode(message, writer).ldelim();
60000
+ };
60001
+
60002
+ /**
60003
+ * Decodes a FormatterConfig message from the specified reader or buffer.
60004
+ * @function decode
60005
+ * @memberof replit.goval.api.FormatterConfig
60006
+ * @static
60007
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60008
+ * @param {number} [length] Message length if known beforehand
60009
+ * @returns {replit.goval.api.FormatterConfig} FormatterConfig
60010
+ * @throws {Error} If the payload is not a reader or valid buffer
60011
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60012
+ */
60013
+ FormatterConfig.decode = function decode(reader, length) {
60014
+ if (!(reader instanceof $Reader))
60015
+ reader = $Reader.create(reader);
60016
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FormatterConfig();
60017
+ while (reader.pos < end) {
60018
+ var tag = reader.uint32();
60019
+ switch (tag >>> 3) {
60020
+ case 1: {
60021
+ message.id = reader.string();
60022
+ break;
60023
+ }
60024
+ default:
60025
+ reader.skipType(tag & 7);
60026
+ break;
60027
+ }
60028
+ }
60029
+ return message;
60030
+ };
60031
+
60032
+ /**
60033
+ * Decodes a FormatterConfig message from the specified reader or buffer, length delimited.
60034
+ * @function decodeDelimited
60035
+ * @memberof replit.goval.api.FormatterConfig
60036
+ * @static
60037
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60038
+ * @returns {replit.goval.api.FormatterConfig} FormatterConfig
60039
+ * @throws {Error} If the payload is not a reader or valid buffer
60040
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60041
+ */
60042
+ FormatterConfig.decodeDelimited = function decodeDelimited(reader) {
60043
+ if (!(reader instanceof $Reader))
60044
+ reader = new $Reader(reader);
60045
+ return this.decode(reader, reader.uint32());
60046
+ };
60047
+
60048
+ /**
60049
+ * Verifies a FormatterConfig message.
60050
+ * @function verify
60051
+ * @memberof replit.goval.api.FormatterConfig
60052
+ * @static
60053
+ * @param {Object.<string,*>} message Plain object to verify
60054
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60055
+ */
60056
+ FormatterConfig.verify = function verify(message) {
60057
+ if (typeof message !== "object" || message === null)
60058
+ return "object expected";
60059
+ if (message.id != null && message.hasOwnProperty("id"))
60060
+ if (!$util.isString(message.id))
60061
+ return "id: string expected";
60062
+ return null;
60063
+ };
60064
+
60065
+ /**
60066
+ * Creates a FormatterConfig message from a plain object. Also converts values to their respective internal types.
60067
+ * @function fromObject
60068
+ * @memberof replit.goval.api.FormatterConfig
60069
+ * @static
60070
+ * @param {Object.<string,*>} object Plain object
60071
+ * @returns {replit.goval.api.FormatterConfig} FormatterConfig
60072
+ */
60073
+ FormatterConfig.fromObject = function fromObject(object) {
60074
+ if (object instanceof $root.replit.goval.api.FormatterConfig)
60075
+ return object;
60076
+ var message = new $root.replit.goval.api.FormatterConfig();
60077
+ if (object.id != null)
60078
+ message.id = String(object.id);
60079
+ return message;
60080
+ };
60081
+
60082
+ /**
60083
+ * Creates a plain object from a FormatterConfig message. Also converts values to other types if specified.
60084
+ * @function toObject
60085
+ * @memberof replit.goval.api.FormatterConfig
60086
+ * @static
60087
+ * @param {replit.goval.api.FormatterConfig} message FormatterConfig
60088
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60089
+ * @returns {Object.<string,*>} Plain object
60090
+ */
60091
+ FormatterConfig.toObject = function toObject(message, options) {
60092
+ if (!options)
60093
+ options = {};
60094
+ var object = {};
60095
+ if (options.defaults)
60096
+ object.id = "";
60097
+ if (message.id != null && message.hasOwnProperty("id"))
60098
+ object.id = message.id;
60099
+ return object;
60100
+ };
60101
+
60102
+ /**
60103
+ * Converts this FormatterConfig to JSON.
60104
+ * @function toJSON
60105
+ * @memberof replit.goval.api.FormatterConfig
60106
+ * @instance
60107
+ * @returns {Object.<string,*>} JSON object
60108
+ */
60109
+ FormatterConfig.prototype.toJSON = function toJSON() {
60110
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60111
+ };
60112
+
60113
+ /**
60114
+ * Gets the default type url for FormatterConfig
60115
+ * @function getTypeUrl
60116
+ * @memberof replit.goval.api.FormatterConfig
60117
+ * @static
60118
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60119
+ * @returns {string} The default type url
60120
+ */
60121
+ FormatterConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60122
+ if (typeUrlPrefix === undefined) {
60123
+ typeUrlPrefix = "type.googleapis.com";
60124
+ }
60125
+ return typeUrlPrefix + "/replit.goval.api.FormatterConfig";
60126
+ };
60127
+
60128
+ return FormatterConfig;
60129
+ })();
60130
+
60131
+ api.FormatterConfigWithPattern = (function() {
60132
+
60133
+ /**
60134
+ * Properties of a FormatterConfigWithPattern.
60135
+ * @memberof replit.goval.api
60136
+ * @interface IFormatterConfigWithPattern
60137
+ * @property {string|null} [id] FormatterConfigWithPattern id
60138
+ * @property {string|null} [pattern] FormatterConfigWithPattern pattern
60139
+ */
60140
+
60141
+ /**
60142
+ * Constructs a new FormatterConfigWithPattern.
60143
+ * @memberof replit.goval.api
60144
+ * @classdesc Represents a FormatterConfigWithPattern.
60145
+ * @constructor
60146
+ * @param {replit.goval.api.IFormatterConfigWithPattern=} [properties] Properties to set
60147
+ */
60148
+ function FormatterConfigWithPattern(properties) {
60149
+ if (properties)
60150
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60151
+ if (properties[keys[i]] != null)
60152
+ this[keys[i]] = properties[keys[i]];
60153
+ }
60154
+
60155
+ /**
60156
+ * FormatterConfigWithPattern id.
60157
+ * @member {string} id
60158
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60159
+ * @instance
60160
+ */
60161
+ FormatterConfigWithPattern.prototype.id = "";
60162
+
60163
+ /**
60164
+ * FormatterConfigWithPattern pattern.
60165
+ * @member {string} pattern
60166
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60167
+ * @instance
60168
+ */
60169
+ FormatterConfigWithPattern.prototype.pattern = "";
60170
+
60171
+ /**
60172
+ * Creates a new FormatterConfigWithPattern instance using the specified properties.
60173
+ * @function create
60174
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60175
+ * @static
60176
+ * @param {replit.goval.api.IFormatterConfigWithPattern=} [properties] Properties to set
60177
+ * @returns {replit.goval.api.FormatterConfigWithPattern} FormatterConfigWithPattern instance
60178
+ */
60179
+ FormatterConfigWithPattern.create = function create(properties) {
60180
+ return FormatterConfigWithPattern.fromObject(properties);
60181
+ };
60182
+
60183
+ /**
60184
+ * Encodes the specified FormatterConfigWithPattern message. Does not implicitly {@link replit.goval.api.FormatterConfigWithPattern.verify|verify} messages.
60185
+ * @function encode
60186
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60187
+ * @static
60188
+ * @param {replit.goval.api.FormatterConfigWithPattern} message FormatterConfigWithPattern message or plain object to encode
60189
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60190
+ * @returns {$protobuf.Writer} Writer
60191
+ */
60192
+ FormatterConfigWithPattern.encode = function encode(message, writer) {
60193
+ if (!writer)
60194
+ writer = $Writer.create();
60195
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
60196
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
60197
+ if (message.pattern != null && Object.hasOwnProperty.call(message, "pattern"))
60198
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern);
60199
+ return writer;
60200
+ };
60201
+
60202
+ /**
60203
+ * Encodes the specified FormatterConfigWithPattern message, length delimited. Does not implicitly {@link replit.goval.api.FormatterConfigWithPattern.verify|verify} messages.
60204
+ * @function encodeDelimited
60205
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60206
+ * @static
60207
+ * @param {replit.goval.api.FormatterConfigWithPattern} message FormatterConfigWithPattern message or plain object to encode
60208
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60209
+ * @returns {$protobuf.Writer} Writer
60210
+ */
60211
+ FormatterConfigWithPattern.encodeDelimited = function encodeDelimited(message, writer) {
60212
+ return this.encode(message, writer).ldelim();
60213
+ };
60214
+
60215
+ /**
60216
+ * Decodes a FormatterConfigWithPattern message from the specified reader or buffer.
60217
+ * @function decode
60218
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60219
+ * @static
60220
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60221
+ * @param {number} [length] Message length if known beforehand
60222
+ * @returns {replit.goval.api.FormatterConfigWithPattern} FormatterConfigWithPattern
60223
+ * @throws {Error} If the payload is not a reader or valid buffer
60224
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60225
+ */
60226
+ FormatterConfigWithPattern.decode = function decode(reader, length) {
60227
+ if (!(reader instanceof $Reader))
60228
+ reader = $Reader.create(reader);
60229
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FormatterConfigWithPattern();
60230
+ while (reader.pos < end) {
60231
+ var tag = reader.uint32();
60232
+ switch (tag >>> 3) {
60233
+ case 1: {
60234
+ message.id = reader.string();
60235
+ break;
60236
+ }
60237
+ case 2: {
60238
+ message.pattern = reader.string();
60239
+ break;
60240
+ }
60241
+ default:
60242
+ reader.skipType(tag & 7);
60243
+ break;
60244
+ }
60245
+ }
60246
+ return message;
60247
+ };
60248
+
60249
+ /**
60250
+ * Decodes a FormatterConfigWithPattern message from the specified reader or buffer, length delimited.
60251
+ * @function decodeDelimited
60252
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60253
+ * @static
60254
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60255
+ * @returns {replit.goval.api.FormatterConfigWithPattern} FormatterConfigWithPattern
60256
+ * @throws {Error} If the payload is not a reader or valid buffer
60257
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60258
+ */
60259
+ FormatterConfigWithPattern.decodeDelimited = function decodeDelimited(reader) {
60260
+ if (!(reader instanceof $Reader))
60261
+ reader = new $Reader(reader);
60262
+ return this.decode(reader, reader.uint32());
60263
+ };
60264
+
60265
+ /**
60266
+ * Verifies a FormatterConfigWithPattern message.
60267
+ * @function verify
60268
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60269
+ * @static
60270
+ * @param {Object.<string,*>} message Plain object to verify
60271
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60272
+ */
60273
+ FormatterConfigWithPattern.verify = function verify(message) {
60274
+ if (typeof message !== "object" || message === null)
60275
+ return "object expected";
60276
+ if (message.id != null && message.hasOwnProperty("id"))
60277
+ if (!$util.isString(message.id))
60278
+ return "id: string expected";
60279
+ if (message.pattern != null && message.hasOwnProperty("pattern"))
60280
+ if (!$util.isString(message.pattern))
60281
+ return "pattern: string expected";
60282
+ return null;
60283
+ };
60284
+
60285
+ /**
60286
+ * Creates a FormatterConfigWithPattern message from a plain object. Also converts values to their respective internal types.
60287
+ * @function fromObject
60288
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60289
+ * @static
60290
+ * @param {Object.<string,*>} object Plain object
60291
+ * @returns {replit.goval.api.FormatterConfigWithPattern} FormatterConfigWithPattern
60292
+ */
60293
+ FormatterConfigWithPattern.fromObject = function fromObject(object) {
60294
+ if (object instanceof $root.replit.goval.api.FormatterConfigWithPattern)
60295
+ return object;
60296
+ var message = new $root.replit.goval.api.FormatterConfigWithPattern();
60297
+ if (object.id != null)
60298
+ message.id = String(object.id);
60299
+ if (object.pattern != null)
60300
+ message.pattern = String(object.pattern);
60301
+ return message;
60302
+ };
60303
+
60304
+ /**
60305
+ * Creates a plain object from a FormatterConfigWithPattern message. Also converts values to other types if specified.
60306
+ * @function toObject
60307
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60308
+ * @static
60309
+ * @param {replit.goval.api.FormatterConfigWithPattern} message FormatterConfigWithPattern
60310
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60311
+ * @returns {Object.<string,*>} Plain object
60312
+ */
60313
+ FormatterConfigWithPattern.toObject = function toObject(message, options) {
60314
+ if (!options)
60315
+ options = {};
60316
+ var object = {};
60317
+ if (options.defaults) {
60318
+ object.id = "";
60319
+ object.pattern = "";
60320
+ }
60321
+ if (message.id != null && message.hasOwnProperty("id"))
60322
+ object.id = message.id;
60323
+ if (message.pattern != null && message.hasOwnProperty("pattern"))
60324
+ object.pattern = message.pattern;
60325
+ return object;
60326
+ };
60327
+
60328
+ /**
60329
+ * Converts this FormatterConfigWithPattern to JSON.
60330
+ * @function toJSON
60331
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60332
+ * @instance
60333
+ * @returns {Object.<string,*>} JSON object
60334
+ */
60335
+ FormatterConfigWithPattern.prototype.toJSON = function toJSON() {
60336
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60337
+ };
60338
+
60339
+ /**
60340
+ * Gets the default type url for FormatterConfigWithPattern
60341
+ * @function getTypeUrl
60342
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60343
+ * @static
60344
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60345
+ * @returns {string} The default type url
60346
+ */
60347
+ FormatterConfigWithPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60348
+ if (typeUrlPrefix === undefined) {
60349
+ typeUrlPrefix = "type.googleapis.com";
60350
+ }
60351
+ return typeUrlPrefix + "/replit.goval.api.FormatterConfigWithPattern";
60352
+ };
60353
+
60354
+ return FormatterConfigWithPattern;
60355
+ })();
60356
+
59293
60357
  api.ReplToken = (function() {
59294
60358
 
59295
60359
  /**