@replit/protocol 0.3.30 → 0.3.32

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,8 @@
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
44854
+ * @property {replit.goval.api.SuggestionsConfig|replit.goval.api.ISuggestionsConfig|null} [suggestions] DotReplit suggestions
44853
44855
  */
44854
44856
 
44855
44857
  /**
@@ -45066,6 +45068,22 @@
45066
45068
  */
45067
45069
  DotReplit.prototype.extension = null;
45068
45070
 
45071
+ /**
45072
+ * DotReplit rules.
45073
+ * @member {replit.goval.api.RulesConfig|null|undefined} rules
45074
+ * @memberof replit.goval.api.DotReplit
45075
+ * @instance
45076
+ */
45077
+ DotReplit.prototype.rules = null;
45078
+
45079
+ /**
45080
+ * DotReplit suggestions.
45081
+ * @member {replit.goval.api.SuggestionsConfig|null|undefined} suggestions
45082
+ * @memberof replit.goval.api.DotReplit
45083
+ * @instance
45084
+ */
45085
+ DotReplit.prototype.suggestions = null;
45086
+
45069
45087
  /**
45070
45088
  * Creates a new DotReplit instance using the specified properties.
45071
45089
  * @function create
@@ -45148,6 +45166,10 @@
45148
45166
  writer.uint32(/* id 23, wireType 2 =*/186).string(message.modules[i]);
45149
45167
  if (message.extension != null && Object.hasOwnProperty.call(message, "extension"))
45150
45168
  $root.replit.goval.api.ExtensionConfig.encode(message.extension, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
45169
+ if (message.rules != null && Object.hasOwnProperty.call(message, "rules"))
45170
+ $root.replit.goval.api.RulesConfig.encode(message.rules, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
45171
+ if (message.suggestions != null && Object.hasOwnProperty.call(message, "suggestions"))
45172
+ $root.replit.goval.api.SuggestionsConfig.encode(message.suggestions, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
45151
45173
  return writer;
45152
45174
  };
45153
45175
 
@@ -45328,6 +45350,14 @@
45328
45350
  message.extension = $root.replit.goval.api.ExtensionConfig.decode(reader, reader.uint32());
45329
45351
  break;
45330
45352
  }
45353
+ case 25: {
45354
+ message.rules = $root.replit.goval.api.RulesConfig.decode(reader, reader.uint32());
45355
+ break;
45356
+ }
45357
+ case 26: {
45358
+ message.suggestions = $root.replit.goval.api.SuggestionsConfig.decode(reader, reader.uint32());
45359
+ break;
45360
+ }
45331
45361
  default:
45332
45362
  reader.skipType(tag & 7);
45333
45363
  break;
@@ -45503,6 +45533,16 @@
45503
45533
  if (error)
45504
45534
  return "extension." + error;
45505
45535
  }
45536
+ if (message.rules != null && message.hasOwnProperty("rules")) {
45537
+ var error = $root.replit.goval.api.RulesConfig.verify(message.rules);
45538
+ if (error)
45539
+ return "rules." + error;
45540
+ }
45541
+ if (message.suggestions != null && message.hasOwnProperty("suggestions")) {
45542
+ var error = $root.replit.goval.api.SuggestionsConfig.verify(message.suggestions);
45543
+ if (error)
45544
+ return "suggestions." + error;
45545
+ }
45506
45546
  return null;
45507
45547
  };
45508
45548
 
@@ -45657,6 +45697,16 @@
45657
45697
  throw TypeError(".replit.goval.api.DotReplit.extension: object expected");
45658
45698
  message.extension = $root.replit.goval.api.ExtensionConfig.fromObject(object.extension);
45659
45699
  }
45700
+ if (object.rules != null) {
45701
+ if (typeof object.rules !== "object")
45702
+ throw TypeError(".replit.goval.api.DotReplit.rules: object expected");
45703
+ message.rules = $root.replit.goval.api.RulesConfig.fromObject(object.rules);
45704
+ }
45705
+ if (object.suggestions != null) {
45706
+ if (typeof object.suggestions !== "object")
45707
+ throw TypeError(".replit.goval.api.DotReplit.suggestions: object expected");
45708
+ message.suggestions = $root.replit.goval.api.SuggestionsConfig.fromObject(object.suggestions);
45709
+ }
45660
45710
  return message;
45661
45711
  };
45662
45712
 
@@ -45702,6 +45752,8 @@
45702
45752
  object.auth = null;
45703
45753
  object.deployment = null;
45704
45754
  object.extension = null;
45755
+ object.rules = null;
45756
+ object.suggestions = null;
45705
45757
  }
45706
45758
  if (message.run != null && message.hasOwnProperty("run"))
45707
45759
  object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
@@ -45776,6 +45828,10 @@
45776
45828
  }
45777
45829
  if (message.extension != null && message.hasOwnProperty("extension"))
45778
45830
  object.extension = $root.replit.goval.api.ExtensionConfig.toObject(message.extension, options);
45831
+ if (message.rules != null && message.hasOwnProperty("rules"))
45832
+ object.rules = $root.replit.goval.api.RulesConfig.toObject(message.rules, options);
45833
+ if (message.suggestions != null && message.hasOwnProperty("suggestions"))
45834
+ object.suggestions = $root.replit.goval.api.SuggestionsConfig.toObject(message.suggestions, options);
45779
45835
  return object;
45780
45836
  };
45781
45837
 
@@ -47344,6 +47400,224 @@
47344
47400
  return ExtensionConfig;
47345
47401
  })();
47346
47402
 
47403
+ api.SuggestionsConfig = (function() {
47404
+
47405
+ /**
47406
+ * Properties of a SuggestionsConfig.
47407
+ * @memberof replit.goval.api
47408
+ * @interface ISuggestionsConfig
47409
+ * @property {Array.<string>|null} [extensions] SuggestionsConfig extensions
47410
+ */
47411
+
47412
+ /**
47413
+ * Constructs a new SuggestionsConfig.
47414
+ * @memberof replit.goval.api
47415
+ * @classdesc Represents a SuggestionsConfig.
47416
+ * @constructor
47417
+ * @param {replit.goval.api.ISuggestionsConfig=} [properties] Properties to set
47418
+ */
47419
+ function SuggestionsConfig(properties) {
47420
+ this.extensions = [];
47421
+ if (properties)
47422
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47423
+ if (properties[keys[i]] != null)
47424
+ this[keys[i]] = properties[keys[i]];
47425
+ }
47426
+
47427
+ /**
47428
+ * SuggestionsConfig extensions.
47429
+ * @member {Array.<string>} extensions
47430
+ * @memberof replit.goval.api.SuggestionsConfig
47431
+ * @instance
47432
+ */
47433
+ SuggestionsConfig.prototype.extensions = $util.emptyArray;
47434
+
47435
+ /**
47436
+ * Creates a new SuggestionsConfig instance using the specified properties.
47437
+ * @function create
47438
+ * @memberof replit.goval.api.SuggestionsConfig
47439
+ * @static
47440
+ * @param {replit.goval.api.ISuggestionsConfig=} [properties] Properties to set
47441
+ * @returns {replit.goval.api.SuggestionsConfig} SuggestionsConfig instance
47442
+ */
47443
+ SuggestionsConfig.create = function create(properties) {
47444
+ return SuggestionsConfig.fromObject(properties);
47445
+ };
47446
+
47447
+ /**
47448
+ * Encodes the specified SuggestionsConfig message. Does not implicitly {@link replit.goval.api.SuggestionsConfig.verify|verify} messages.
47449
+ * @function encode
47450
+ * @memberof replit.goval.api.SuggestionsConfig
47451
+ * @static
47452
+ * @param {replit.goval.api.SuggestionsConfig} message SuggestionsConfig message or plain object to encode
47453
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47454
+ * @returns {$protobuf.Writer} Writer
47455
+ */
47456
+ SuggestionsConfig.encode = function encode(message, writer) {
47457
+ if (!writer)
47458
+ writer = $Writer.create();
47459
+ if (message.extensions != null && message.extensions.length)
47460
+ for (var i = 0; i < message.extensions.length; ++i)
47461
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.extensions[i]);
47462
+ return writer;
47463
+ };
47464
+
47465
+ /**
47466
+ * Encodes the specified SuggestionsConfig message, length delimited. Does not implicitly {@link replit.goval.api.SuggestionsConfig.verify|verify} messages.
47467
+ * @function encodeDelimited
47468
+ * @memberof replit.goval.api.SuggestionsConfig
47469
+ * @static
47470
+ * @param {replit.goval.api.SuggestionsConfig} message SuggestionsConfig message or plain object to encode
47471
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47472
+ * @returns {$protobuf.Writer} Writer
47473
+ */
47474
+ SuggestionsConfig.encodeDelimited = function encodeDelimited(message, writer) {
47475
+ return this.encode(message, writer).ldelim();
47476
+ };
47477
+
47478
+ /**
47479
+ * Decodes a SuggestionsConfig message from the specified reader or buffer.
47480
+ * @function decode
47481
+ * @memberof replit.goval.api.SuggestionsConfig
47482
+ * @static
47483
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47484
+ * @param {number} [length] Message length if known beforehand
47485
+ * @returns {replit.goval.api.SuggestionsConfig} SuggestionsConfig
47486
+ * @throws {Error} If the payload is not a reader or valid buffer
47487
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47488
+ */
47489
+ SuggestionsConfig.decode = function decode(reader, length) {
47490
+ if (!(reader instanceof $Reader))
47491
+ reader = $Reader.create(reader);
47492
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.SuggestionsConfig();
47493
+ while (reader.pos < end) {
47494
+ var tag = reader.uint32();
47495
+ switch (tag >>> 3) {
47496
+ case 1: {
47497
+ if (!(message.extensions && message.extensions.length))
47498
+ message.extensions = [];
47499
+ message.extensions.push(reader.string());
47500
+ break;
47501
+ }
47502
+ default:
47503
+ reader.skipType(tag & 7);
47504
+ break;
47505
+ }
47506
+ }
47507
+ return message;
47508
+ };
47509
+
47510
+ /**
47511
+ * Decodes a SuggestionsConfig message from the specified reader or buffer, length delimited.
47512
+ * @function decodeDelimited
47513
+ * @memberof replit.goval.api.SuggestionsConfig
47514
+ * @static
47515
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47516
+ * @returns {replit.goval.api.SuggestionsConfig} SuggestionsConfig
47517
+ * @throws {Error} If the payload is not a reader or valid buffer
47518
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47519
+ */
47520
+ SuggestionsConfig.decodeDelimited = function decodeDelimited(reader) {
47521
+ if (!(reader instanceof $Reader))
47522
+ reader = new $Reader(reader);
47523
+ return this.decode(reader, reader.uint32());
47524
+ };
47525
+
47526
+ /**
47527
+ * Verifies a SuggestionsConfig message.
47528
+ * @function verify
47529
+ * @memberof replit.goval.api.SuggestionsConfig
47530
+ * @static
47531
+ * @param {Object.<string,*>} message Plain object to verify
47532
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47533
+ */
47534
+ SuggestionsConfig.verify = function verify(message) {
47535
+ if (typeof message !== "object" || message === null)
47536
+ return "object expected";
47537
+ if (message.extensions != null && message.hasOwnProperty("extensions")) {
47538
+ if (!Array.isArray(message.extensions))
47539
+ return "extensions: array expected";
47540
+ for (var i = 0; i < message.extensions.length; ++i)
47541
+ if (!$util.isString(message.extensions[i]))
47542
+ return "extensions: string[] expected";
47543
+ }
47544
+ return null;
47545
+ };
47546
+
47547
+ /**
47548
+ * Creates a SuggestionsConfig message from a plain object. Also converts values to their respective internal types.
47549
+ * @function fromObject
47550
+ * @memberof replit.goval.api.SuggestionsConfig
47551
+ * @static
47552
+ * @param {Object.<string,*>} object Plain object
47553
+ * @returns {replit.goval.api.SuggestionsConfig} SuggestionsConfig
47554
+ */
47555
+ SuggestionsConfig.fromObject = function fromObject(object) {
47556
+ if (object instanceof $root.replit.goval.api.SuggestionsConfig)
47557
+ return object;
47558
+ var message = new $root.replit.goval.api.SuggestionsConfig();
47559
+ if (object.extensions) {
47560
+ if (!Array.isArray(object.extensions))
47561
+ throw TypeError(".replit.goval.api.SuggestionsConfig.extensions: array expected");
47562
+ message.extensions = [];
47563
+ for (var i = 0; i < object.extensions.length; ++i)
47564
+ message.extensions[i] = String(object.extensions[i]);
47565
+ }
47566
+ return message;
47567
+ };
47568
+
47569
+ /**
47570
+ * Creates a plain object from a SuggestionsConfig message. Also converts values to other types if specified.
47571
+ * @function toObject
47572
+ * @memberof replit.goval.api.SuggestionsConfig
47573
+ * @static
47574
+ * @param {replit.goval.api.SuggestionsConfig} message SuggestionsConfig
47575
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47576
+ * @returns {Object.<string,*>} Plain object
47577
+ */
47578
+ SuggestionsConfig.toObject = function toObject(message, options) {
47579
+ if (!options)
47580
+ options = {};
47581
+ var object = {};
47582
+ if (options.arrays || options.defaults)
47583
+ object.extensions = [];
47584
+ if (message.extensions && message.extensions.length) {
47585
+ object.extensions = [];
47586
+ for (var j = 0; j < message.extensions.length; ++j)
47587
+ object.extensions[j] = message.extensions[j];
47588
+ }
47589
+ return object;
47590
+ };
47591
+
47592
+ /**
47593
+ * Converts this SuggestionsConfig to JSON.
47594
+ * @function toJSON
47595
+ * @memberof replit.goval.api.SuggestionsConfig
47596
+ * @instance
47597
+ * @returns {Object.<string,*>} JSON object
47598
+ */
47599
+ SuggestionsConfig.prototype.toJSON = function toJSON() {
47600
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47601
+ };
47602
+
47603
+ /**
47604
+ * Gets the default type url for SuggestionsConfig
47605
+ * @function getTypeUrl
47606
+ * @memberof replit.goval.api.SuggestionsConfig
47607
+ * @static
47608
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
47609
+ * @returns {string} The default type url
47610
+ */
47611
+ SuggestionsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
47612
+ if (typeUrlPrefix === undefined) {
47613
+ typeUrlPrefix = "type.googleapis.com";
47614
+ }
47615
+ return typeUrlPrefix + "/replit.goval.api.SuggestionsConfig";
47616
+ };
47617
+
47618
+ return SuggestionsConfig;
47619
+ })();
47620
+
47347
47621
  api.NixConfig = (function() {
47348
47622
 
47349
47623
  /**
@@ -54786,6 +55060,8 @@
54786
55060
  * @property {Array.<replit.goval.api.LanguageServerOption|replit.goval.api.ILanguageServerOption>|null} [languageServers] ToolchainConfigs languageServers
54787
55061
  * @property {Array.<replit.goval.api.PackagerOption|replit.goval.api.IPackagerOption>|null} [packagers] ToolchainConfigs packagers
54788
55062
  * @property {Array.<replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption>|null} [formatters] ToolchainConfigs formatters
55063
+ * @property {boolean|null} [disableInstallBeforeRun] ToolchainConfigs disableInstallBeforeRun
55064
+ * @property {boolean|null} [disableGuessImports] ToolchainConfigs disableGuessImports
54789
55065
  */
54790
55066
 
54791
55067
  /**
@@ -54855,6 +55131,22 @@
54855
55131
  */
54856
55132
  ToolchainConfigs.prototype.formatters = $util.emptyArray;
54857
55133
 
55134
+ /**
55135
+ * ToolchainConfigs disableInstallBeforeRun.
55136
+ * @member {boolean} disableInstallBeforeRun
55137
+ * @memberof replit.goval.api.ToolchainConfigs
55138
+ * @instance
55139
+ */
55140
+ ToolchainConfigs.prototype.disableInstallBeforeRun = false;
55141
+
55142
+ /**
55143
+ * ToolchainConfigs disableGuessImports.
55144
+ * @member {boolean} disableGuessImports
55145
+ * @memberof replit.goval.api.ToolchainConfigs
55146
+ * @instance
55147
+ */
55148
+ ToolchainConfigs.prototype.disableGuessImports = false;
55149
+
54858
55150
  /**
54859
55151
  * Creates a new ToolchainConfigs instance using the specified properties.
54860
55152
  * @function create
@@ -54896,6 +55188,10 @@
54896
55188
  if (message.formatters != null && message.formatters.length)
54897
55189
  for (var i = 0; i < message.formatters.length; ++i)
54898
55190
  $root.replit.goval.api.FormatterOption.encode(message.formatters[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
55191
+ if (message.disableInstallBeforeRun != null && Object.hasOwnProperty.call(message, "disableInstallBeforeRun"))
55192
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableInstallBeforeRun);
55193
+ if (message.disableGuessImports != null && Object.hasOwnProperty.call(message, "disableGuessImports"))
55194
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.disableGuessImports);
54899
55195
  return writer;
54900
55196
  };
54901
55197
 
@@ -54964,6 +55260,14 @@
54964
55260
  message.formatters.push($root.replit.goval.api.FormatterOption.decode(reader, reader.uint32()));
54965
55261
  break;
54966
55262
  }
55263
+ case 7: {
55264
+ message.disableInstallBeforeRun = reader.bool();
55265
+ break;
55266
+ }
55267
+ case 8: {
55268
+ message.disableGuessImports = reader.bool();
55269
+ break;
55270
+ }
54967
55271
  default:
54968
55272
  reader.skipType(tag & 7);
54969
55273
  break;
@@ -55047,6 +55351,12 @@
55047
55351
  return "formatters." + error;
55048
55352
  }
55049
55353
  }
55354
+ if (message.disableInstallBeforeRun != null && message.hasOwnProperty("disableInstallBeforeRun"))
55355
+ if (typeof message.disableInstallBeforeRun !== "boolean")
55356
+ return "disableInstallBeforeRun: boolean expected";
55357
+ if (message.disableGuessImports != null && message.hasOwnProperty("disableGuessImports"))
55358
+ if (typeof message.disableGuessImports !== "boolean")
55359
+ return "disableGuessImports: boolean expected";
55050
55360
  return null;
55051
55361
  };
55052
55362
 
@@ -55114,6 +55424,10 @@
55114
55424
  message.formatters[i] = $root.replit.goval.api.FormatterOption.fromObject(object.formatters[i]);
55115
55425
  }
55116
55426
  }
55427
+ if (object.disableInstallBeforeRun != null)
55428
+ message.disableInstallBeforeRun = Boolean(object.disableInstallBeforeRun);
55429
+ if (object.disableGuessImports != null)
55430
+ message.disableGuessImports = Boolean(object.disableGuessImports);
55117
55431
  return message;
55118
55432
  };
55119
55433
 
@@ -55137,8 +55451,11 @@
55137
55451
  object.packagers = [];
55138
55452
  object.formatters = [];
55139
55453
  }
55140
- if (options.defaults)
55454
+ if (options.defaults) {
55141
55455
  object.entrypoint = "";
55456
+ object.disableInstallBeforeRun = false;
55457
+ object.disableGuessImports = false;
55458
+ }
55142
55459
  if (message.entrypoint != null && message.hasOwnProperty("entrypoint"))
55143
55460
  object.entrypoint = message.entrypoint;
55144
55461
  if (message.runs && message.runs.length) {
@@ -55166,6 +55483,10 @@
55166
55483
  for (var j = 0; j < message.formatters.length; ++j)
55167
55484
  object.formatters[j] = $root.replit.goval.api.FormatterOption.toObject(message.formatters[j], options);
55168
55485
  }
55486
+ if (message.disableInstallBeforeRun != null && message.hasOwnProperty("disableInstallBeforeRun"))
55487
+ object.disableInstallBeforeRun = message.disableInstallBeforeRun;
55488
+ if (message.disableGuessImports != null && message.hasOwnProperty("disableGuessImports"))
55489
+ object.disableGuessImports = message.disableGuessImports;
55169
55490
  return object;
55170
55491
  };
55171
55492
 
@@ -59290,6 +59611,995 @@
59290
59611
  return OutputBlockEndEvent;
59291
59612
  })();
59292
59613
 
59614
+ api.RulesConfig = (function() {
59615
+
59616
+ /**
59617
+ * Properties of a RulesConfig.
59618
+ * @memberof replit.goval.api
59619
+ * @interface IRulesConfig
59620
+ * @property {replit.goval.api.FormatterRules|replit.goval.api.IFormatterRules|null} [formatter] RulesConfig formatter
59621
+ */
59622
+
59623
+ /**
59624
+ * Constructs a new RulesConfig.
59625
+ * @memberof replit.goval.api
59626
+ * @classdesc Represents a RulesConfig.
59627
+ * @constructor
59628
+ * @param {replit.goval.api.IRulesConfig=} [properties] Properties to set
59629
+ */
59630
+ function RulesConfig(properties) {
59631
+ if (properties)
59632
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59633
+ if (properties[keys[i]] != null)
59634
+ this[keys[i]] = properties[keys[i]];
59635
+ }
59636
+
59637
+ /**
59638
+ * RulesConfig formatter.
59639
+ * @member {replit.goval.api.FormatterRules|null|undefined} formatter
59640
+ * @memberof replit.goval.api.RulesConfig
59641
+ * @instance
59642
+ */
59643
+ RulesConfig.prototype.formatter = null;
59644
+
59645
+ /**
59646
+ * Creates a new RulesConfig instance using the specified properties.
59647
+ * @function create
59648
+ * @memberof replit.goval.api.RulesConfig
59649
+ * @static
59650
+ * @param {replit.goval.api.IRulesConfig=} [properties] Properties to set
59651
+ * @returns {replit.goval.api.RulesConfig} RulesConfig instance
59652
+ */
59653
+ RulesConfig.create = function create(properties) {
59654
+ return RulesConfig.fromObject(properties);
59655
+ };
59656
+
59657
+ /**
59658
+ * Encodes the specified RulesConfig message. Does not implicitly {@link replit.goval.api.RulesConfig.verify|verify} messages.
59659
+ * @function encode
59660
+ * @memberof replit.goval.api.RulesConfig
59661
+ * @static
59662
+ * @param {replit.goval.api.RulesConfig} message RulesConfig message or plain object to encode
59663
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59664
+ * @returns {$protobuf.Writer} Writer
59665
+ */
59666
+ RulesConfig.encode = function encode(message, writer) {
59667
+ if (!writer)
59668
+ writer = $Writer.create();
59669
+ if (message.formatter != null && Object.hasOwnProperty.call(message, "formatter"))
59670
+ $root.replit.goval.api.FormatterRules.encode(message.formatter, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
59671
+ return writer;
59672
+ };
59673
+
59674
+ /**
59675
+ * Encodes the specified RulesConfig message, length delimited. Does not implicitly {@link replit.goval.api.RulesConfig.verify|verify} messages.
59676
+ * @function encodeDelimited
59677
+ * @memberof replit.goval.api.RulesConfig
59678
+ * @static
59679
+ * @param {replit.goval.api.RulesConfig} message RulesConfig message or plain object to encode
59680
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59681
+ * @returns {$protobuf.Writer} Writer
59682
+ */
59683
+ RulesConfig.encodeDelimited = function encodeDelimited(message, writer) {
59684
+ return this.encode(message, writer).ldelim();
59685
+ };
59686
+
59687
+ /**
59688
+ * Decodes a RulesConfig message from the specified reader or buffer.
59689
+ * @function decode
59690
+ * @memberof replit.goval.api.RulesConfig
59691
+ * @static
59692
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59693
+ * @param {number} [length] Message length if known beforehand
59694
+ * @returns {replit.goval.api.RulesConfig} RulesConfig
59695
+ * @throws {Error} If the payload is not a reader or valid buffer
59696
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59697
+ */
59698
+ RulesConfig.decode = function decode(reader, length) {
59699
+ if (!(reader instanceof $Reader))
59700
+ reader = $Reader.create(reader);
59701
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.RulesConfig();
59702
+ while (reader.pos < end) {
59703
+ var tag = reader.uint32();
59704
+ switch (tag >>> 3) {
59705
+ case 1: {
59706
+ message.formatter = $root.replit.goval.api.FormatterRules.decode(reader, reader.uint32());
59707
+ break;
59708
+ }
59709
+ default:
59710
+ reader.skipType(tag & 7);
59711
+ break;
59712
+ }
59713
+ }
59714
+ return message;
59715
+ };
59716
+
59717
+ /**
59718
+ * Decodes a RulesConfig message from the specified reader or buffer, length delimited.
59719
+ * @function decodeDelimited
59720
+ * @memberof replit.goval.api.RulesConfig
59721
+ * @static
59722
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59723
+ * @returns {replit.goval.api.RulesConfig} RulesConfig
59724
+ * @throws {Error} If the payload is not a reader or valid buffer
59725
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59726
+ */
59727
+ RulesConfig.decodeDelimited = function decodeDelimited(reader) {
59728
+ if (!(reader instanceof $Reader))
59729
+ reader = new $Reader(reader);
59730
+ return this.decode(reader, reader.uint32());
59731
+ };
59732
+
59733
+ /**
59734
+ * Verifies a RulesConfig message.
59735
+ * @function verify
59736
+ * @memberof replit.goval.api.RulesConfig
59737
+ * @static
59738
+ * @param {Object.<string,*>} message Plain object to verify
59739
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
59740
+ */
59741
+ RulesConfig.verify = function verify(message) {
59742
+ if (typeof message !== "object" || message === null)
59743
+ return "object expected";
59744
+ if (message.formatter != null && message.hasOwnProperty("formatter")) {
59745
+ var error = $root.replit.goval.api.FormatterRules.verify(message.formatter);
59746
+ if (error)
59747
+ return "formatter." + error;
59748
+ }
59749
+ return null;
59750
+ };
59751
+
59752
+ /**
59753
+ * Creates a RulesConfig message from a plain object. Also converts values to their respective internal types.
59754
+ * @function fromObject
59755
+ * @memberof replit.goval.api.RulesConfig
59756
+ * @static
59757
+ * @param {Object.<string,*>} object Plain object
59758
+ * @returns {replit.goval.api.RulesConfig} RulesConfig
59759
+ */
59760
+ RulesConfig.fromObject = function fromObject(object) {
59761
+ if (object instanceof $root.replit.goval.api.RulesConfig)
59762
+ return object;
59763
+ var message = new $root.replit.goval.api.RulesConfig();
59764
+ if (object.formatter != null) {
59765
+ if (typeof object.formatter !== "object")
59766
+ throw TypeError(".replit.goval.api.RulesConfig.formatter: object expected");
59767
+ message.formatter = $root.replit.goval.api.FormatterRules.fromObject(object.formatter);
59768
+ }
59769
+ return message;
59770
+ };
59771
+
59772
+ /**
59773
+ * Creates a plain object from a RulesConfig message. Also converts values to other types if specified.
59774
+ * @function toObject
59775
+ * @memberof replit.goval.api.RulesConfig
59776
+ * @static
59777
+ * @param {replit.goval.api.RulesConfig} message RulesConfig
59778
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
59779
+ * @returns {Object.<string,*>} Plain object
59780
+ */
59781
+ RulesConfig.toObject = function toObject(message, options) {
59782
+ if (!options)
59783
+ options = {};
59784
+ var object = {};
59785
+ if (options.defaults)
59786
+ object.formatter = null;
59787
+ if (message.formatter != null && message.hasOwnProperty("formatter"))
59788
+ object.formatter = $root.replit.goval.api.FormatterRules.toObject(message.formatter, options);
59789
+ return object;
59790
+ };
59791
+
59792
+ /**
59793
+ * Converts this RulesConfig to JSON.
59794
+ * @function toJSON
59795
+ * @memberof replit.goval.api.RulesConfig
59796
+ * @instance
59797
+ * @returns {Object.<string,*>} JSON object
59798
+ */
59799
+ RulesConfig.prototype.toJSON = function toJSON() {
59800
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
59801
+ };
59802
+
59803
+ /**
59804
+ * Gets the default type url for RulesConfig
59805
+ * @function getTypeUrl
59806
+ * @memberof replit.goval.api.RulesConfig
59807
+ * @static
59808
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
59809
+ * @returns {string} The default type url
59810
+ */
59811
+ RulesConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
59812
+ if (typeUrlPrefix === undefined) {
59813
+ typeUrlPrefix = "type.googleapis.com";
59814
+ }
59815
+ return typeUrlPrefix + "/replit.goval.api.RulesConfig";
59816
+ };
59817
+
59818
+ return RulesConfig;
59819
+ })();
59820
+
59821
+ api.FormatterRules = (function() {
59822
+
59823
+ /**
59824
+ * Properties of a FormatterRules.
59825
+ * @memberof replit.goval.api
59826
+ * @interface IFormatterRules
59827
+ * @property {Array.<replit.goval.api.FormatterConfigWithPattern|replit.goval.api.IFormatterConfigWithPattern>|null} [patterns] FormatterRules patterns
59828
+ * @property {Object.<string,replit.goval.api.FormatterConfig|replit.goval.api.IFormatterConfig>|null} [fileExtensions] FormatterRules fileExtensions
59829
+ * @property {Object.<string,replit.goval.api.FormatterConfig|replit.goval.api.IFormatterConfig>|null} [languages] FormatterRules languages
59830
+ */
59831
+
59832
+ /**
59833
+ * Constructs a new FormatterRules.
59834
+ * @memberof replit.goval.api
59835
+ * @classdesc Represents a FormatterRules.
59836
+ * @constructor
59837
+ * @param {replit.goval.api.IFormatterRules=} [properties] Properties to set
59838
+ */
59839
+ function FormatterRules(properties) {
59840
+ this.patterns = [];
59841
+ this.fileExtensions = {};
59842
+ this.languages = {};
59843
+ if (properties)
59844
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59845
+ if (properties[keys[i]] != null)
59846
+ this[keys[i]] = properties[keys[i]];
59847
+ }
59848
+
59849
+ /**
59850
+ * FormatterRules patterns.
59851
+ * @member {Array.<replit.goval.api.FormatterConfigWithPattern>} patterns
59852
+ * @memberof replit.goval.api.FormatterRules
59853
+ * @instance
59854
+ */
59855
+ FormatterRules.prototype.patterns = $util.emptyArray;
59856
+
59857
+ /**
59858
+ * FormatterRules fileExtensions.
59859
+ * @member {Object.<string,replit.goval.api.FormatterConfig>} fileExtensions
59860
+ * @memberof replit.goval.api.FormatterRules
59861
+ * @instance
59862
+ */
59863
+ FormatterRules.prototype.fileExtensions = $util.emptyObject;
59864
+
59865
+ /**
59866
+ * FormatterRules languages.
59867
+ * @member {Object.<string,replit.goval.api.FormatterConfig>} languages
59868
+ * @memberof replit.goval.api.FormatterRules
59869
+ * @instance
59870
+ */
59871
+ FormatterRules.prototype.languages = $util.emptyObject;
59872
+
59873
+ /**
59874
+ * Creates a new FormatterRules instance using the specified properties.
59875
+ * @function create
59876
+ * @memberof replit.goval.api.FormatterRules
59877
+ * @static
59878
+ * @param {replit.goval.api.IFormatterRules=} [properties] Properties to set
59879
+ * @returns {replit.goval.api.FormatterRules} FormatterRules instance
59880
+ */
59881
+ FormatterRules.create = function create(properties) {
59882
+ return FormatterRules.fromObject(properties);
59883
+ };
59884
+
59885
+ /**
59886
+ * Encodes the specified FormatterRules message. Does not implicitly {@link replit.goval.api.FormatterRules.verify|verify} messages.
59887
+ * @function encode
59888
+ * @memberof replit.goval.api.FormatterRules
59889
+ * @static
59890
+ * @param {replit.goval.api.FormatterRules} message FormatterRules message or plain object to encode
59891
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59892
+ * @returns {$protobuf.Writer} Writer
59893
+ */
59894
+ FormatterRules.encode = function encode(message, writer) {
59895
+ if (!writer)
59896
+ writer = $Writer.create();
59897
+ if (message.patterns != null && message.patterns.length)
59898
+ for (var i = 0; i < message.patterns.length; ++i)
59899
+ $root.replit.goval.api.FormatterConfigWithPattern.encode(message.patterns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
59900
+ if (message.fileExtensions != null && Object.hasOwnProperty.call(message, "fileExtensions"))
59901
+ for (var keys = Object.keys(message.fileExtensions), i = 0; i < keys.length; ++i) {
59902
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
59903
+ $root.replit.goval.api.FormatterConfig.encode(message.fileExtensions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
59904
+ }
59905
+ if (message.languages != null && Object.hasOwnProperty.call(message, "languages"))
59906
+ for (var keys = Object.keys(message.languages), i = 0; i < keys.length; ++i) {
59907
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
59908
+ $root.replit.goval.api.FormatterConfig.encode(message.languages[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
59909
+ }
59910
+ return writer;
59911
+ };
59912
+
59913
+ /**
59914
+ * Encodes the specified FormatterRules message, length delimited. Does not implicitly {@link replit.goval.api.FormatterRules.verify|verify} messages.
59915
+ * @function encodeDelimited
59916
+ * @memberof replit.goval.api.FormatterRules
59917
+ * @static
59918
+ * @param {replit.goval.api.FormatterRules} message FormatterRules message or plain object to encode
59919
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59920
+ * @returns {$protobuf.Writer} Writer
59921
+ */
59922
+ FormatterRules.encodeDelimited = function encodeDelimited(message, writer) {
59923
+ return this.encode(message, writer).ldelim();
59924
+ };
59925
+
59926
+ /**
59927
+ * Decodes a FormatterRules message from the specified reader or buffer.
59928
+ * @function decode
59929
+ * @memberof replit.goval.api.FormatterRules
59930
+ * @static
59931
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59932
+ * @param {number} [length] Message length if known beforehand
59933
+ * @returns {replit.goval.api.FormatterRules} FormatterRules
59934
+ * @throws {Error} If the payload is not a reader or valid buffer
59935
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59936
+ */
59937
+ FormatterRules.decode = function decode(reader, length) {
59938
+ if (!(reader instanceof $Reader))
59939
+ reader = $Reader.create(reader);
59940
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FormatterRules(), key, value;
59941
+ while (reader.pos < end) {
59942
+ var tag = reader.uint32();
59943
+ switch (tag >>> 3) {
59944
+ case 1: {
59945
+ if (!(message.patterns && message.patterns.length))
59946
+ message.patterns = [];
59947
+ message.patterns.push($root.replit.goval.api.FormatterConfigWithPattern.decode(reader, reader.uint32()));
59948
+ break;
59949
+ }
59950
+ case 2: {
59951
+ if (message.fileExtensions === $util.emptyObject)
59952
+ message.fileExtensions = {};
59953
+ var end2 = reader.uint32() + reader.pos;
59954
+ key = "";
59955
+ value = null;
59956
+ while (reader.pos < end2) {
59957
+ var tag2 = reader.uint32();
59958
+ switch (tag2 >>> 3) {
59959
+ case 1:
59960
+ key = reader.string();
59961
+ break;
59962
+ case 2:
59963
+ value = $root.replit.goval.api.FormatterConfig.decode(reader, reader.uint32());
59964
+ break;
59965
+ default:
59966
+ reader.skipType(tag2 & 7);
59967
+ break;
59968
+ }
59969
+ }
59970
+ message.fileExtensions[key] = value;
59971
+ break;
59972
+ }
59973
+ case 3: {
59974
+ if (message.languages === $util.emptyObject)
59975
+ message.languages = {};
59976
+ var end2 = reader.uint32() + reader.pos;
59977
+ key = "";
59978
+ value = null;
59979
+ while (reader.pos < end2) {
59980
+ var tag2 = reader.uint32();
59981
+ switch (tag2 >>> 3) {
59982
+ case 1:
59983
+ key = reader.string();
59984
+ break;
59985
+ case 2:
59986
+ value = $root.replit.goval.api.FormatterConfig.decode(reader, reader.uint32());
59987
+ break;
59988
+ default:
59989
+ reader.skipType(tag2 & 7);
59990
+ break;
59991
+ }
59992
+ }
59993
+ message.languages[key] = value;
59994
+ break;
59995
+ }
59996
+ default:
59997
+ reader.skipType(tag & 7);
59998
+ break;
59999
+ }
60000
+ }
60001
+ return message;
60002
+ };
60003
+
60004
+ /**
60005
+ * Decodes a FormatterRules message from the specified reader or buffer, length delimited.
60006
+ * @function decodeDelimited
60007
+ * @memberof replit.goval.api.FormatterRules
60008
+ * @static
60009
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60010
+ * @returns {replit.goval.api.FormatterRules} FormatterRules
60011
+ * @throws {Error} If the payload is not a reader or valid buffer
60012
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60013
+ */
60014
+ FormatterRules.decodeDelimited = function decodeDelimited(reader) {
60015
+ if (!(reader instanceof $Reader))
60016
+ reader = new $Reader(reader);
60017
+ return this.decode(reader, reader.uint32());
60018
+ };
60019
+
60020
+ /**
60021
+ * Verifies a FormatterRules message.
60022
+ * @function verify
60023
+ * @memberof replit.goval.api.FormatterRules
60024
+ * @static
60025
+ * @param {Object.<string,*>} message Plain object to verify
60026
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60027
+ */
60028
+ FormatterRules.verify = function verify(message) {
60029
+ if (typeof message !== "object" || message === null)
60030
+ return "object expected";
60031
+ if (message.patterns != null && message.hasOwnProperty("patterns")) {
60032
+ if (!Array.isArray(message.patterns))
60033
+ return "patterns: array expected";
60034
+ for (var i = 0; i < message.patterns.length; ++i) {
60035
+ var error = $root.replit.goval.api.FormatterConfigWithPattern.verify(message.patterns[i]);
60036
+ if (error)
60037
+ return "patterns." + error;
60038
+ }
60039
+ }
60040
+ if (message.fileExtensions != null && message.hasOwnProperty("fileExtensions")) {
60041
+ if (!$util.isObject(message.fileExtensions))
60042
+ return "fileExtensions: object expected";
60043
+ var key = Object.keys(message.fileExtensions);
60044
+ for (var i = 0; i < key.length; ++i) {
60045
+ var error = $root.replit.goval.api.FormatterConfig.verify(message.fileExtensions[key[i]]);
60046
+ if (error)
60047
+ return "fileExtensions." + error;
60048
+ }
60049
+ }
60050
+ if (message.languages != null && message.hasOwnProperty("languages")) {
60051
+ if (!$util.isObject(message.languages))
60052
+ return "languages: object expected";
60053
+ var key = Object.keys(message.languages);
60054
+ for (var i = 0; i < key.length; ++i) {
60055
+ var error = $root.replit.goval.api.FormatterConfig.verify(message.languages[key[i]]);
60056
+ if (error)
60057
+ return "languages." + error;
60058
+ }
60059
+ }
60060
+ return null;
60061
+ };
60062
+
60063
+ /**
60064
+ * Creates a FormatterRules message from a plain object. Also converts values to their respective internal types.
60065
+ * @function fromObject
60066
+ * @memberof replit.goval.api.FormatterRules
60067
+ * @static
60068
+ * @param {Object.<string,*>} object Plain object
60069
+ * @returns {replit.goval.api.FormatterRules} FormatterRules
60070
+ */
60071
+ FormatterRules.fromObject = function fromObject(object) {
60072
+ if (object instanceof $root.replit.goval.api.FormatterRules)
60073
+ return object;
60074
+ var message = new $root.replit.goval.api.FormatterRules();
60075
+ if (object.patterns) {
60076
+ if (!Array.isArray(object.patterns))
60077
+ throw TypeError(".replit.goval.api.FormatterRules.patterns: array expected");
60078
+ message.patterns = [];
60079
+ for (var i = 0; i < object.patterns.length; ++i) {
60080
+ if (typeof object.patterns[i] !== "object")
60081
+ throw TypeError(".replit.goval.api.FormatterRules.patterns: object expected");
60082
+ message.patterns[i] = $root.replit.goval.api.FormatterConfigWithPattern.fromObject(object.patterns[i]);
60083
+ }
60084
+ }
60085
+ if (object.fileExtensions) {
60086
+ if (typeof object.fileExtensions !== "object")
60087
+ throw TypeError(".replit.goval.api.FormatterRules.fileExtensions: object expected");
60088
+ message.fileExtensions = {};
60089
+ for (var keys = Object.keys(object.fileExtensions), i = 0; i < keys.length; ++i) {
60090
+ if (typeof object.fileExtensions[keys[i]] !== "object")
60091
+ throw TypeError(".replit.goval.api.FormatterRules.fileExtensions: object expected");
60092
+ message.fileExtensions[keys[i]] = $root.replit.goval.api.FormatterConfig.fromObject(object.fileExtensions[keys[i]]);
60093
+ }
60094
+ }
60095
+ if (object.languages) {
60096
+ if (typeof object.languages !== "object")
60097
+ throw TypeError(".replit.goval.api.FormatterRules.languages: object expected");
60098
+ message.languages = {};
60099
+ for (var keys = Object.keys(object.languages), i = 0; i < keys.length; ++i) {
60100
+ if (typeof object.languages[keys[i]] !== "object")
60101
+ throw TypeError(".replit.goval.api.FormatterRules.languages: object expected");
60102
+ message.languages[keys[i]] = $root.replit.goval.api.FormatterConfig.fromObject(object.languages[keys[i]]);
60103
+ }
60104
+ }
60105
+ return message;
60106
+ };
60107
+
60108
+ /**
60109
+ * Creates a plain object from a FormatterRules message. Also converts values to other types if specified.
60110
+ * @function toObject
60111
+ * @memberof replit.goval.api.FormatterRules
60112
+ * @static
60113
+ * @param {replit.goval.api.FormatterRules} message FormatterRules
60114
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60115
+ * @returns {Object.<string,*>} Plain object
60116
+ */
60117
+ FormatterRules.toObject = function toObject(message, options) {
60118
+ if (!options)
60119
+ options = {};
60120
+ var object = {};
60121
+ if (options.arrays || options.defaults)
60122
+ object.patterns = [];
60123
+ if (options.objects || options.defaults) {
60124
+ object.fileExtensions = {};
60125
+ object.languages = {};
60126
+ }
60127
+ if (message.patterns && message.patterns.length) {
60128
+ object.patterns = [];
60129
+ for (var j = 0; j < message.patterns.length; ++j)
60130
+ object.patterns[j] = $root.replit.goval.api.FormatterConfigWithPattern.toObject(message.patterns[j], options);
60131
+ }
60132
+ var keys2;
60133
+ if (message.fileExtensions && (keys2 = Object.keys(message.fileExtensions)).length) {
60134
+ object.fileExtensions = {};
60135
+ for (var j = 0; j < keys2.length; ++j)
60136
+ object.fileExtensions[keys2[j]] = $root.replit.goval.api.FormatterConfig.toObject(message.fileExtensions[keys2[j]], options);
60137
+ }
60138
+ if (message.languages && (keys2 = Object.keys(message.languages)).length) {
60139
+ object.languages = {};
60140
+ for (var j = 0; j < keys2.length; ++j)
60141
+ object.languages[keys2[j]] = $root.replit.goval.api.FormatterConfig.toObject(message.languages[keys2[j]], options);
60142
+ }
60143
+ return object;
60144
+ };
60145
+
60146
+ /**
60147
+ * Converts this FormatterRules to JSON.
60148
+ * @function toJSON
60149
+ * @memberof replit.goval.api.FormatterRules
60150
+ * @instance
60151
+ * @returns {Object.<string,*>} JSON object
60152
+ */
60153
+ FormatterRules.prototype.toJSON = function toJSON() {
60154
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60155
+ };
60156
+
60157
+ /**
60158
+ * Gets the default type url for FormatterRules
60159
+ * @function getTypeUrl
60160
+ * @memberof replit.goval.api.FormatterRules
60161
+ * @static
60162
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60163
+ * @returns {string} The default type url
60164
+ */
60165
+ FormatterRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60166
+ if (typeUrlPrefix === undefined) {
60167
+ typeUrlPrefix = "type.googleapis.com";
60168
+ }
60169
+ return typeUrlPrefix + "/replit.goval.api.FormatterRules";
60170
+ };
60171
+
60172
+ return FormatterRules;
60173
+ })();
60174
+
60175
+ api.FormatterConfig = (function() {
60176
+
60177
+ /**
60178
+ * Properties of a FormatterConfig.
60179
+ * @memberof replit.goval.api
60180
+ * @interface IFormatterConfig
60181
+ * @property {string|null} [id] FormatterConfig id
60182
+ */
60183
+
60184
+ /**
60185
+ * Constructs a new FormatterConfig.
60186
+ * @memberof replit.goval.api
60187
+ * @classdesc Represents a FormatterConfig.
60188
+ * @constructor
60189
+ * @param {replit.goval.api.IFormatterConfig=} [properties] Properties to set
60190
+ */
60191
+ function FormatterConfig(properties) {
60192
+ if (properties)
60193
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60194
+ if (properties[keys[i]] != null)
60195
+ this[keys[i]] = properties[keys[i]];
60196
+ }
60197
+
60198
+ /**
60199
+ * FormatterConfig id.
60200
+ * @member {string} id
60201
+ * @memberof replit.goval.api.FormatterConfig
60202
+ * @instance
60203
+ */
60204
+ FormatterConfig.prototype.id = "";
60205
+
60206
+ /**
60207
+ * Creates a new FormatterConfig instance using the specified properties.
60208
+ * @function create
60209
+ * @memberof replit.goval.api.FormatterConfig
60210
+ * @static
60211
+ * @param {replit.goval.api.IFormatterConfig=} [properties] Properties to set
60212
+ * @returns {replit.goval.api.FormatterConfig} FormatterConfig instance
60213
+ */
60214
+ FormatterConfig.create = function create(properties) {
60215
+ return FormatterConfig.fromObject(properties);
60216
+ };
60217
+
60218
+ /**
60219
+ * Encodes the specified FormatterConfig message. Does not implicitly {@link replit.goval.api.FormatterConfig.verify|verify} messages.
60220
+ * @function encode
60221
+ * @memberof replit.goval.api.FormatterConfig
60222
+ * @static
60223
+ * @param {replit.goval.api.FormatterConfig} message FormatterConfig message or plain object to encode
60224
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60225
+ * @returns {$protobuf.Writer} Writer
60226
+ */
60227
+ FormatterConfig.encode = function encode(message, writer) {
60228
+ if (!writer)
60229
+ writer = $Writer.create();
60230
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
60231
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
60232
+ return writer;
60233
+ };
60234
+
60235
+ /**
60236
+ * Encodes the specified FormatterConfig message, length delimited. Does not implicitly {@link replit.goval.api.FormatterConfig.verify|verify} messages.
60237
+ * @function encodeDelimited
60238
+ * @memberof replit.goval.api.FormatterConfig
60239
+ * @static
60240
+ * @param {replit.goval.api.FormatterConfig} message FormatterConfig message or plain object to encode
60241
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60242
+ * @returns {$protobuf.Writer} Writer
60243
+ */
60244
+ FormatterConfig.encodeDelimited = function encodeDelimited(message, writer) {
60245
+ return this.encode(message, writer).ldelim();
60246
+ };
60247
+
60248
+ /**
60249
+ * Decodes a FormatterConfig message from the specified reader or buffer.
60250
+ * @function decode
60251
+ * @memberof replit.goval.api.FormatterConfig
60252
+ * @static
60253
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60254
+ * @param {number} [length] Message length if known beforehand
60255
+ * @returns {replit.goval.api.FormatterConfig} FormatterConfig
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
+ FormatterConfig.decode = function decode(reader, length) {
60260
+ if (!(reader instanceof $Reader))
60261
+ reader = $Reader.create(reader);
60262
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FormatterConfig();
60263
+ while (reader.pos < end) {
60264
+ var tag = reader.uint32();
60265
+ switch (tag >>> 3) {
60266
+ case 1: {
60267
+ message.id = reader.string();
60268
+ break;
60269
+ }
60270
+ default:
60271
+ reader.skipType(tag & 7);
60272
+ break;
60273
+ }
60274
+ }
60275
+ return message;
60276
+ };
60277
+
60278
+ /**
60279
+ * Decodes a FormatterConfig message from the specified reader or buffer, length delimited.
60280
+ * @function decodeDelimited
60281
+ * @memberof replit.goval.api.FormatterConfig
60282
+ * @static
60283
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60284
+ * @returns {replit.goval.api.FormatterConfig} FormatterConfig
60285
+ * @throws {Error} If the payload is not a reader or valid buffer
60286
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60287
+ */
60288
+ FormatterConfig.decodeDelimited = function decodeDelimited(reader) {
60289
+ if (!(reader instanceof $Reader))
60290
+ reader = new $Reader(reader);
60291
+ return this.decode(reader, reader.uint32());
60292
+ };
60293
+
60294
+ /**
60295
+ * Verifies a FormatterConfig message.
60296
+ * @function verify
60297
+ * @memberof replit.goval.api.FormatterConfig
60298
+ * @static
60299
+ * @param {Object.<string,*>} message Plain object to verify
60300
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60301
+ */
60302
+ FormatterConfig.verify = function verify(message) {
60303
+ if (typeof message !== "object" || message === null)
60304
+ return "object expected";
60305
+ if (message.id != null && message.hasOwnProperty("id"))
60306
+ if (!$util.isString(message.id))
60307
+ return "id: string expected";
60308
+ return null;
60309
+ };
60310
+
60311
+ /**
60312
+ * Creates a FormatterConfig message from a plain object. Also converts values to their respective internal types.
60313
+ * @function fromObject
60314
+ * @memberof replit.goval.api.FormatterConfig
60315
+ * @static
60316
+ * @param {Object.<string,*>} object Plain object
60317
+ * @returns {replit.goval.api.FormatterConfig} FormatterConfig
60318
+ */
60319
+ FormatterConfig.fromObject = function fromObject(object) {
60320
+ if (object instanceof $root.replit.goval.api.FormatterConfig)
60321
+ return object;
60322
+ var message = new $root.replit.goval.api.FormatterConfig();
60323
+ if (object.id != null)
60324
+ message.id = String(object.id);
60325
+ return message;
60326
+ };
60327
+
60328
+ /**
60329
+ * Creates a plain object from a FormatterConfig message. Also converts values to other types if specified.
60330
+ * @function toObject
60331
+ * @memberof replit.goval.api.FormatterConfig
60332
+ * @static
60333
+ * @param {replit.goval.api.FormatterConfig} message FormatterConfig
60334
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60335
+ * @returns {Object.<string,*>} Plain object
60336
+ */
60337
+ FormatterConfig.toObject = function toObject(message, options) {
60338
+ if (!options)
60339
+ options = {};
60340
+ var object = {};
60341
+ if (options.defaults)
60342
+ object.id = "";
60343
+ if (message.id != null && message.hasOwnProperty("id"))
60344
+ object.id = message.id;
60345
+ return object;
60346
+ };
60347
+
60348
+ /**
60349
+ * Converts this FormatterConfig to JSON.
60350
+ * @function toJSON
60351
+ * @memberof replit.goval.api.FormatterConfig
60352
+ * @instance
60353
+ * @returns {Object.<string,*>} JSON object
60354
+ */
60355
+ FormatterConfig.prototype.toJSON = function toJSON() {
60356
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60357
+ };
60358
+
60359
+ /**
60360
+ * Gets the default type url for FormatterConfig
60361
+ * @function getTypeUrl
60362
+ * @memberof replit.goval.api.FormatterConfig
60363
+ * @static
60364
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60365
+ * @returns {string} The default type url
60366
+ */
60367
+ FormatterConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60368
+ if (typeUrlPrefix === undefined) {
60369
+ typeUrlPrefix = "type.googleapis.com";
60370
+ }
60371
+ return typeUrlPrefix + "/replit.goval.api.FormatterConfig";
60372
+ };
60373
+
60374
+ return FormatterConfig;
60375
+ })();
60376
+
60377
+ api.FormatterConfigWithPattern = (function() {
60378
+
60379
+ /**
60380
+ * Properties of a FormatterConfigWithPattern.
60381
+ * @memberof replit.goval.api
60382
+ * @interface IFormatterConfigWithPattern
60383
+ * @property {string|null} [id] FormatterConfigWithPattern id
60384
+ * @property {string|null} [pattern] FormatterConfigWithPattern pattern
60385
+ */
60386
+
60387
+ /**
60388
+ * Constructs a new FormatterConfigWithPattern.
60389
+ * @memberof replit.goval.api
60390
+ * @classdesc Represents a FormatterConfigWithPattern.
60391
+ * @constructor
60392
+ * @param {replit.goval.api.IFormatterConfigWithPattern=} [properties] Properties to set
60393
+ */
60394
+ function FormatterConfigWithPattern(properties) {
60395
+ if (properties)
60396
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60397
+ if (properties[keys[i]] != null)
60398
+ this[keys[i]] = properties[keys[i]];
60399
+ }
60400
+
60401
+ /**
60402
+ * FormatterConfigWithPattern id.
60403
+ * @member {string} id
60404
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60405
+ * @instance
60406
+ */
60407
+ FormatterConfigWithPattern.prototype.id = "";
60408
+
60409
+ /**
60410
+ * FormatterConfigWithPattern pattern.
60411
+ * @member {string} pattern
60412
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60413
+ * @instance
60414
+ */
60415
+ FormatterConfigWithPattern.prototype.pattern = "";
60416
+
60417
+ /**
60418
+ * Creates a new FormatterConfigWithPattern instance using the specified properties.
60419
+ * @function create
60420
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60421
+ * @static
60422
+ * @param {replit.goval.api.IFormatterConfigWithPattern=} [properties] Properties to set
60423
+ * @returns {replit.goval.api.FormatterConfigWithPattern} FormatterConfigWithPattern instance
60424
+ */
60425
+ FormatterConfigWithPattern.create = function create(properties) {
60426
+ return FormatterConfigWithPattern.fromObject(properties);
60427
+ };
60428
+
60429
+ /**
60430
+ * Encodes the specified FormatterConfigWithPattern message. Does not implicitly {@link replit.goval.api.FormatterConfigWithPattern.verify|verify} messages.
60431
+ * @function encode
60432
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60433
+ * @static
60434
+ * @param {replit.goval.api.FormatterConfigWithPattern} message FormatterConfigWithPattern message or plain object to encode
60435
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60436
+ * @returns {$protobuf.Writer} Writer
60437
+ */
60438
+ FormatterConfigWithPattern.encode = function encode(message, writer) {
60439
+ if (!writer)
60440
+ writer = $Writer.create();
60441
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
60442
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
60443
+ if (message.pattern != null && Object.hasOwnProperty.call(message, "pattern"))
60444
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern);
60445
+ return writer;
60446
+ };
60447
+
60448
+ /**
60449
+ * Encodes the specified FormatterConfigWithPattern message, length delimited. Does not implicitly {@link replit.goval.api.FormatterConfigWithPattern.verify|verify} messages.
60450
+ * @function encodeDelimited
60451
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60452
+ * @static
60453
+ * @param {replit.goval.api.FormatterConfigWithPattern} message FormatterConfigWithPattern message or plain object to encode
60454
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60455
+ * @returns {$protobuf.Writer} Writer
60456
+ */
60457
+ FormatterConfigWithPattern.encodeDelimited = function encodeDelimited(message, writer) {
60458
+ return this.encode(message, writer).ldelim();
60459
+ };
60460
+
60461
+ /**
60462
+ * Decodes a FormatterConfigWithPattern message from the specified reader or buffer.
60463
+ * @function decode
60464
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60465
+ * @static
60466
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60467
+ * @param {number} [length] Message length if known beforehand
60468
+ * @returns {replit.goval.api.FormatterConfigWithPattern} FormatterConfigWithPattern
60469
+ * @throws {Error} If the payload is not a reader or valid buffer
60470
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60471
+ */
60472
+ FormatterConfigWithPattern.decode = function decode(reader, length) {
60473
+ if (!(reader instanceof $Reader))
60474
+ reader = $Reader.create(reader);
60475
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FormatterConfigWithPattern();
60476
+ while (reader.pos < end) {
60477
+ var tag = reader.uint32();
60478
+ switch (tag >>> 3) {
60479
+ case 1: {
60480
+ message.id = reader.string();
60481
+ break;
60482
+ }
60483
+ case 2: {
60484
+ message.pattern = reader.string();
60485
+ break;
60486
+ }
60487
+ default:
60488
+ reader.skipType(tag & 7);
60489
+ break;
60490
+ }
60491
+ }
60492
+ return message;
60493
+ };
60494
+
60495
+ /**
60496
+ * Decodes a FormatterConfigWithPattern message from the specified reader or buffer, length delimited.
60497
+ * @function decodeDelimited
60498
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60499
+ * @static
60500
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60501
+ * @returns {replit.goval.api.FormatterConfigWithPattern} FormatterConfigWithPattern
60502
+ * @throws {Error} If the payload is not a reader or valid buffer
60503
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60504
+ */
60505
+ FormatterConfigWithPattern.decodeDelimited = function decodeDelimited(reader) {
60506
+ if (!(reader instanceof $Reader))
60507
+ reader = new $Reader(reader);
60508
+ return this.decode(reader, reader.uint32());
60509
+ };
60510
+
60511
+ /**
60512
+ * Verifies a FormatterConfigWithPattern message.
60513
+ * @function verify
60514
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60515
+ * @static
60516
+ * @param {Object.<string,*>} message Plain object to verify
60517
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60518
+ */
60519
+ FormatterConfigWithPattern.verify = function verify(message) {
60520
+ if (typeof message !== "object" || message === null)
60521
+ return "object expected";
60522
+ if (message.id != null && message.hasOwnProperty("id"))
60523
+ if (!$util.isString(message.id))
60524
+ return "id: string expected";
60525
+ if (message.pattern != null && message.hasOwnProperty("pattern"))
60526
+ if (!$util.isString(message.pattern))
60527
+ return "pattern: string expected";
60528
+ return null;
60529
+ };
60530
+
60531
+ /**
60532
+ * Creates a FormatterConfigWithPattern message from a plain object. Also converts values to their respective internal types.
60533
+ * @function fromObject
60534
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60535
+ * @static
60536
+ * @param {Object.<string,*>} object Plain object
60537
+ * @returns {replit.goval.api.FormatterConfigWithPattern} FormatterConfigWithPattern
60538
+ */
60539
+ FormatterConfigWithPattern.fromObject = function fromObject(object) {
60540
+ if (object instanceof $root.replit.goval.api.FormatterConfigWithPattern)
60541
+ return object;
60542
+ var message = new $root.replit.goval.api.FormatterConfigWithPattern();
60543
+ if (object.id != null)
60544
+ message.id = String(object.id);
60545
+ if (object.pattern != null)
60546
+ message.pattern = String(object.pattern);
60547
+ return message;
60548
+ };
60549
+
60550
+ /**
60551
+ * Creates a plain object from a FormatterConfigWithPattern message. Also converts values to other types if specified.
60552
+ * @function toObject
60553
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60554
+ * @static
60555
+ * @param {replit.goval.api.FormatterConfigWithPattern} message FormatterConfigWithPattern
60556
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60557
+ * @returns {Object.<string,*>} Plain object
60558
+ */
60559
+ FormatterConfigWithPattern.toObject = function toObject(message, options) {
60560
+ if (!options)
60561
+ options = {};
60562
+ var object = {};
60563
+ if (options.defaults) {
60564
+ object.id = "";
60565
+ object.pattern = "";
60566
+ }
60567
+ if (message.id != null && message.hasOwnProperty("id"))
60568
+ object.id = message.id;
60569
+ if (message.pattern != null && message.hasOwnProperty("pattern"))
60570
+ object.pattern = message.pattern;
60571
+ return object;
60572
+ };
60573
+
60574
+ /**
60575
+ * Converts this FormatterConfigWithPattern to JSON.
60576
+ * @function toJSON
60577
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60578
+ * @instance
60579
+ * @returns {Object.<string,*>} JSON object
60580
+ */
60581
+ FormatterConfigWithPattern.prototype.toJSON = function toJSON() {
60582
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60583
+ };
60584
+
60585
+ /**
60586
+ * Gets the default type url for FormatterConfigWithPattern
60587
+ * @function getTypeUrl
60588
+ * @memberof replit.goval.api.FormatterConfigWithPattern
60589
+ * @static
60590
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
60591
+ * @returns {string} The default type url
60592
+ */
60593
+ FormatterConfigWithPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60594
+ if (typeUrlPrefix === undefined) {
60595
+ typeUrlPrefix = "type.googleapis.com";
60596
+ }
60597
+ return typeUrlPrefix + "/replit.goval.api.FormatterConfigWithPattern";
60598
+ };
60599
+
60600
+ return FormatterConfigWithPattern;
60601
+ })();
60602
+
59293
60603
  api.ReplToken = (function() {
59294
60604
 
59295
60605
  /**