@replit/protocol 0.3.1 → 0.3.3
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.d.ts +522 -0
- package/main/index.js +1263 -0
- package/main/index.js.flow +737 -0
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -11446,6 +11446,7 @@
|
|
|
11446
11446
|
case 5:
|
|
11447
11447
|
case 6:
|
|
11448
11448
|
case 7:
|
|
11449
|
+
case 9:
|
|
11449
11450
|
case 8:
|
|
11450
11451
|
break;
|
|
11451
11452
|
}
|
|
@@ -11495,6 +11496,10 @@
|
|
|
11495
11496
|
case 7:
|
|
11496
11497
|
message.stage = 7;
|
|
11497
11498
|
break;
|
|
11499
|
+
case "BLOCK_MIGRATION":
|
|
11500
|
+
case 9:
|
|
11501
|
+
message.stage = 9;
|
|
11502
|
+
break;
|
|
11498
11503
|
case "RETRY":
|
|
11499
11504
|
case 8:
|
|
11500
11505
|
message.stage = 8;
|
|
@@ -11555,6 +11560,7 @@
|
|
|
11555
11560
|
* @property {number} PROXY=5 PROXY value
|
|
11556
11561
|
* @property {number} PULL_FILES=6 PULL_FILES value
|
|
11557
11562
|
* @property {number} LOAD_BLOCK=7 LOAD_BLOCK value
|
|
11563
|
+
* @property {number} BLOCK_MIGRATION=9 BLOCK_MIGRATION value
|
|
11558
11564
|
* @property {number} RETRY=8 RETRY value
|
|
11559
11565
|
*/
|
|
11560
11566
|
BootStatus.Stage = (function() {
|
|
@@ -11565,6 +11571,7 @@
|
|
|
11565
11571
|
values[valuesById[5] = "PROXY"] = 5;
|
|
11566
11572
|
values[valuesById[6] = "PULL_FILES"] = 6;
|
|
11567
11573
|
values[valuesById[7] = "LOAD_BLOCK"] = 7;
|
|
11574
|
+
values[valuesById[9] = "BLOCK_MIGRATION"] = 9;
|
|
11568
11575
|
values[valuesById[8] = "RETRY"] = 8;
|
|
11569
11576
|
return values;
|
|
11570
11577
|
})();
|
|
@@ -42577,6 +42584,7 @@
|
|
|
42577
42584
|
* @interface IDeploymentConfig
|
|
42578
42585
|
* @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [run] DeploymentConfig run
|
|
42579
42586
|
* @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [build] DeploymentConfig build
|
|
42587
|
+
* @property {boolean|null} [ignorePorts] DeploymentConfig ignorePorts
|
|
42580
42588
|
*/
|
|
42581
42589
|
|
|
42582
42590
|
/**
|
|
@@ -42609,6 +42617,14 @@
|
|
|
42609
42617
|
*/
|
|
42610
42618
|
DeploymentConfig.prototype.build = null;
|
|
42611
42619
|
|
|
42620
|
+
/**
|
|
42621
|
+
* DeploymentConfig ignorePorts.
|
|
42622
|
+
* @member {boolean} ignorePorts
|
|
42623
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
42624
|
+
* @instance
|
|
42625
|
+
*/
|
|
42626
|
+
DeploymentConfig.prototype.ignorePorts = false;
|
|
42627
|
+
|
|
42612
42628
|
/**
|
|
42613
42629
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
42614
42630
|
* @function create
|
|
@@ -42637,6 +42653,8 @@
|
|
|
42637
42653
|
$root.replit.goval.api.Exec.encode(message.run, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
42638
42654
|
if (message.build != null && Object.hasOwnProperty.call(message, "build"))
|
|
42639
42655
|
$root.replit.goval.api.Exec.encode(message.build, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
42656
|
+
if (message.ignorePorts != null && Object.hasOwnProperty.call(message, "ignorePorts"))
|
|
42657
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignorePorts);
|
|
42640
42658
|
return writer;
|
|
42641
42659
|
};
|
|
42642
42660
|
|
|
@@ -42677,6 +42695,9 @@
|
|
|
42677
42695
|
case 2:
|
|
42678
42696
|
message.build = $root.replit.goval.api.Exec.decode(reader, reader.uint32());
|
|
42679
42697
|
break;
|
|
42698
|
+
case 3:
|
|
42699
|
+
message.ignorePorts = reader.bool();
|
|
42700
|
+
break;
|
|
42680
42701
|
default:
|
|
42681
42702
|
reader.skipType(tag & 7);
|
|
42682
42703
|
break;
|
|
@@ -42722,6 +42743,9 @@
|
|
|
42722
42743
|
if (error)
|
|
42723
42744
|
return "build." + error;
|
|
42724
42745
|
}
|
|
42746
|
+
if (message.ignorePorts != null && message.hasOwnProperty("ignorePorts"))
|
|
42747
|
+
if (typeof message.ignorePorts !== "boolean")
|
|
42748
|
+
return "ignorePorts: boolean expected";
|
|
42725
42749
|
return null;
|
|
42726
42750
|
};
|
|
42727
42751
|
|
|
@@ -42747,6 +42771,8 @@
|
|
|
42747
42771
|
throw TypeError(".replit.goval.api.DeploymentConfig.build: object expected");
|
|
42748
42772
|
message.build = $root.replit.goval.api.Exec.fromObject(object.build);
|
|
42749
42773
|
}
|
|
42774
|
+
if (object.ignorePorts != null)
|
|
42775
|
+
message.ignorePorts = Boolean(object.ignorePorts);
|
|
42750
42776
|
return message;
|
|
42751
42777
|
};
|
|
42752
42778
|
|
|
@@ -42766,11 +42792,14 @@
|
|
|
42766
42792
|
if (options.defaults) {
|
|
42767
42793
|
object.run = null;
|
|
42768
42794
|
object.build = null;
|
|
42795
|
+
object.ignorePorts = false;
|
|
42769
42796
|
}
|
|
42770
42797
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
42771
42798
|
object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
|
|
42772
42799
|
if (message.build != null && message.hasOwnProperty("build"))
|
|
42773
42800
|
object.build = $root.replit.goval.api.Exec.toObject(message.build, options);
|
|
42801
|
+
if (message.ignorePorts != null && message.hasOwnProperty("ignorePorts"))
|
|
42802
|
+
object.ignorePorts = message.ignorePorts;
|
|
42774
42803
|
return object;
|
|
42775
42804
|
};
|
|
42776
42805
|
|
|
@@ -50692,6 +50721,1226 @@
|
|
|
50692
50721
|
return PackagerOption;
|
|
50693
50722
|
})();
|
|
50694
50723
|
|
|
50724
|
+
api.ReplDomainDoubleDash = (function() {
|
|
50725
|
+
|
|
50726
|
+
/**
|
|
50727
|
+
* Properties of a ReplDomainDoubleDash.
|
|
50728
|
+
* @memberof replit.goval.api
|
|
50729
|
+
* @interface IReplDomainDoubleDash
|
|
50730
|
+
* @property {string|null} [user] ReplDomainDoubleDash user
|
|
50731
|
+
* @property {string|null} [slug] ReplDomainDoubleDash slug
|
|
50732
|
+
* @property {string|null} [suffix] ReplDomainDoubleDash suffix
|
|
50733
|
+
*/
|
|
50734
|
+
|
|
50735
|
+
/**
|
|
50736
|
+
* Constructs a new ReplDomainDoubleDash.
|
|
50737
|
+
* @memberof replit.goval.api
|
|
50738
|
+
* @classdesc Represents a ReplDomainDoubleDash.
|
|
50739
|
+
* @constructor
|
|
50740
|
+
* @param {replit.goval.api.IReplDomainDoubleDash=} [properties] Properties to set
|
|
50741
|
+
*/
|
|
50742
|
+
function ReplDomainDoubleDash(properties) {
|
|
50743
|
+
if (properties)
|
|
50744
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50745
|
+
if (properties[keys[i]] != null)
|
|
50746
|
+
this[keys[i]] = properties[keys[i]];
|
|
50747
|
+
}
|
|
50748
|
+
|
|
50749
|
+
/**
|
|
50750
|
+
* ReplDomainDoubleDash user.
|
|
50751
|
+
* @member {string} user
|
|
50752
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50753
|
+
* @instance
|
|
50754
|
+
*/
|
|
50755
|
+
ReplDomainDoubleDash.prototype.user = "";
|
|
50756
|
+
|
|
50757
|
+
/**
|
|
50758
|
+
* ReplDomainDoubleDash slug.
|
|
50759
|
+
* @member {string} slug
|
|
50760
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50761
|
+
* @instance
|
|
50762
|
+
*/
|
|
50763
|
+
ReplDomainDoubleDash.prototype.slug = "";
|
|
50764
|
+
|
|
50765
|
+
/**
|
|
50766
|
+
* ReplDomainDoubleDash suffix.
|
|
50767
|
+
* @member {string} suffix
|
|
50768
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50769
|
+
* @instance
|
|
50770
|
+
*/
|
|
50771
|
+
ReplDomainDoubleDash.prototype.suffix = "";
|
|
50772
|
+
|
|
50773
|
+
/**
|
|
50774
|
+
* Creates a new ReplDomainDoubleDash instance using the specified properties.
|
|
50775
|
+
* @function create
|
|
50776
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50777
|
+
* @static
|
|
50778
|
+
* @param {replit.goval.api.IReplDomainDoubleDash=} [properties] Properties to set
|
|
50779
|
+
* @returns {replit.goval.api.ReplDomainDoubleDash} ReplDomainDoubleDash instance
|
|
50780
|
+
*/
|
|
50781
|
+
ReplDomainDoubleDash.create = function create(properties) {
|
|
50782
|
+
return ReplDomainDoubleDash.fromObject(properties);
|
|
50783
|
+
};
|
|
50784
|
+
|
|
50785
|
+
/**
|
|
50786
|
+
* Encodes the specified ReplDomainDoubleDash message. Does not implicitly {@link replit.goval.api.ReplDomainDoubleDash.verify|verify} messages.
|
|
50787
|
+
* @function encode
|
|
50788
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50789
|
+
* @static
|
|
50790
|
+
* @param {replit.goval.api.ReplDomainDoubleDash} message ReplDomainDoubleDash message or plain object to encode
|
|
50791
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50792
|
+
* @returns {$protobuf.Writer} Writer
|
|
50793
|
+
*/
|
|
50794
|
+
ReplDomainDoubleDash.encode = function encode(message, writer) {
|
|
50795
|
+
if (!writer)
|
|
50796
|
+
writer = $Writer.create();
|
|
50797
|
+
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
50798
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.user);
|
|
50799
|
+
if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
|
|
50800
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
50801
|
+
if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
|
|
50802
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.suffix);
|
|
50803
|
+
return writer;
|
|
50804
|
+
};
|
|
50805
|
+
|
|
50806
|
+
/**
|
|
50807
|
+
* Encodes the specified ReplDomainDoubleDash message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomainDoubleDash.verify|verify} messages.
|
|
50808
|
+
* @function encodeDelimited
|
|
50809
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50810
|
+
* @static
|
|
50811
|
+
* @param {replit.goval.api.ReplDomainDoubleDash} message ReplDomainDoubleDash message or plain object to encode
|
|
50812
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50813
|
+
* @returns {$protobuf.Writer} Writer
|
|
50814
|
+
*/
|
|
50815
|
+
ReplDomainDoubleDash.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50816
|
+
return this.encode(message, writer).ldelim();
|
|
50817
|
+
};
|
|
50818
|
+
|
|
50819
|
+
/**
|
|
50820
|
+
* Decodes a ReplDomainDoubleDash message from the specified reader or buffer.
|
|
50821
|
+
* @function decode
|
|
50822
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50823
|
+
* @static
|
|
50824
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50825
|
+
* @param {number} [length] Message length if known beforehand
|
|
50826
|
+
* @returns {replit.goval.api.ReplDomainDoubleDash} ReplDomainDoubleDash
|
|
50827
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50828
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50829
|
+
*/
|
|
50830
|
+
ReplDomainDoubleDash.decode = function decode(reader, length) {
|
|
50831
|
+
if (!(reader instanceof $Reader))
|
|
50832
|
+
reader = $Reader.create(reader);
|
|
50833
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomainDoubleDash();
|
|
50834
|
+
while (reader.pos < end) {
|
|
50835
|
+
var tag = reader.uint32();
|
|
50836
|
+
switch (tag >>> 3) {
|
|
50837
|
+
case 1:
|
|
50838
|
+
message.user = reader.string();
|
|
50839
|
+
break;
|
|
50840
|
+
case 2:
|
|
50841
|
+
message.slug = reader.string();
|
|
50842
|
+
break;
|
|
50843
|
+
case 3:
|
|
50844
|
+
message.suffix = reader.string();
|
|
50845
|
+
break;
|
|
50846
|
+
default:
|
|
50847
|
+
reader.skipType(tag & 7);
|
|
50848
|
+
break;
|
|
50849
|
+
}
|
|
50850
|
+
}
|
|
50851
|
+
return message;
|
|
50852
|
+
};
|
|
50853
|
+
|
|
50854
|
+
/**
|
|
50855
|
+
* Decodes a ReplDomainDoubleDash message from the specified reader or buffer, length delimited.
|
|
50856
|
+
* @function decodeDelimited
|
|
50857
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50858
|
+
* @static
|
|
50859
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50860
|
+
* @returns {replit.goval.api.ReplDomainDoubleDash} ReplDomainDoubleDash
|
|
50861
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50862
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50863
|
+
*/
|
|
50864
|
+
ReplDomainDoubleDash.decodeDelimited = function decodeDelimited(reader) {
|
|
50865
|
+
if (!(reader instanceof $Reader))
|
|
50866
|
+
reader = new $Reader(reader);
|
|
50867
|
+
return this.decode(reader, reader.uint32());
|
|
50868
|
+
};
|
|
50869
|
+
|
|
50870
|
+
/**
|
|
50871
|
+
* Verifies a ReplDomainDoubleDash message.
|
|
50872
|
+
* @function verify
|
|
50873
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50874
|
+
* @static
|
|
50875
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50876
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50877
|
+
*/
|
|
50878
|
+
ReplDomainDoubleDash.verify = function verify(message) {
|
|
50879
|
+
if (typeof message !== "object" || message === null)
|
|
50880
|
+
return "object expected";
|
|
50881
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
50882
|
+
if (!$util.isString(message.user))
|
|
50883
|
+
return "user: string expected";
|
|
50884
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
50885
|
+
if (!$util.isString(message.slug))
|
|
50886
|
+
return "slug: string expected";
|
|
50887
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
50888
|
+
if (!$util.isString(message.suffix))
|
|
50889
|
+
return "suffix: string expected";
|
|
50890
|
+
return null;
|
|
50891
|
+
};
|
|
50892
|
+
|
|
50893
|
+
/**
|
|
50894
|
+
* Creates a ReplDomainDoubleDash message from a plain object. Also converts values to their respective internal types.
|
|
50895
|
+
* @function fromObject
|
|
50896
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50897
|
+
* @static
|
|
50898
|
+
* @param {Object.<string,*>} object Plain object
|
|
50899
|
+
* @returns {replit.goval.api.ReplDomainDoubleDash} ReplDomainDoubleDash
|
|
50900
|
+
*/
|
|
50901
|
+
ReplDomainDoubleDash.fromObject = function fromObject(object) {
|
|
50902
|
+
if (object instanceof $root.replit.goval.api.ReplDomainDoubleDash)
|
|
50903
|
+
return object;
|
|
50904
|
+
var message = new $root.replit.goval.api.ReplDomainDoubleDash();
|
|
50905
|
+
if (object.user != null)
|
|
50906
|
+
message.user = String(object.user);
|
|
50907
|
+
if (object.slug != null)
|
|
50908
|
+
message.slug = String(object.slug);
|
|
50909
|
+
if (object.suffix != null)
|
|
50910
|
+
message.suffix = String(object.suffix);
|
|
50911
|
+
return message;
|
|
50912
|
+
};
|
|
50913
|
+
|
|
50914
|
+
/**
|
|
50915
|
+
* Creates a plain object from a ReplDomainDoubleDash message. Also converts values to other types if specified.
|
|
50916
|
+
* @function toObject
|
|
50917
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50918
|
+
* @static
|
|
50919
|
+
* @param {replit.goval.api.ReplDomainDoubleDash} message ReplDomainDoubleDash
|
|
50920
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50921
|
+
* @returns {Object.<string,*>} Plain object
|
|
50922
|
+
*/
|
|
50923
|
+
ReplDomainDoubleDash.toObject = function toObject(message, options) {
|
|
50924
|
+
if (!options)
|
|
50925
|
+
options = {};
|
|
50926
|
+
var object = {};
|
|
50927
|
+
if (options.defaults) {
|
|
50928
|
+
object.user = "";
|
|
50929
|
+
object.slug = "";
|
|
50930
|
+
object.suffix = "";
|
|
50931
|
+
}
|
|
50932
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
50933
|
+
object.user = message.user;
|
|
50934
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
50935
|
+
object.slug = message.slug;
|
|
50936
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
50937
|
+
object.suffix = message.suffix;
|
|
50938
|
+
return object;
|
|
50939
|
+
};
|
|
50940
|
+
|
|
50941
|
+
/**
|
|
50942
|
+
* Converts this ReplDomainDoubleDash to JSON.
|
|
50943
|
+
* @function toJSON
|
|
50944
|
+
* @memberof replit.goval.api.ReplDomainDoubleDash
|
|
50945
|
+
* @instance
|
|
50946
|
+
* @returns {Object.<string,*>} JSON object
|
|
50947
|
+
*/
|
|
50948
|
+
ReplDomainDoubleDash.prototype.toJSON = function toJSON() {
|
|
50949
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50950
|
+
};
|
|
50951
|
+
|
|
50952
|
+
return ReplDomainDoubleDash;
|
|
50953
|
+
})();
|
|
50954
|
+
|
|
50955
|
+
api.ReplDomainDots = (function() {
|
|
50956
|
+
|
|
50957
|
+
/**
|
|
50958
|
+
* Properties of a ReplDomainDots.
|
|
50959
|
+
* @memberof replit.goval.api
|
|
50960
|
+
* @interface IReplDomainDots
|
|
50961
|
+
* @property {string|null} [user] ReplDomainDots user
|
|
50962
|
+
* @property {string|null} [slug] ReplDomainDots slug
|
|
50963
|
+
* @property {string|null} [suffix] ReplDomainDots suffix
|
|
50964
|
+
*/
|
|
50965
|
+
|
|
50966
|
+
/**
|
|
50967
|
+
* Constructs a new ReplDomainDots.
|
|
50968
|
+
* @memberof replit.goval.api
|
|
50969
|
+
* @classdesc Represents a ReplDomainDots.
|
|
50970
|
+
* @constructor
|
|
50971
|
+
* @param {replit.goval.api.IReplDomainDots=} [properties] Properties to set
|
|
50972
|
+
*/
|
|
50973
|
+
function ReplDomainDots(properties) {
|
|
50974
|
+
if (properties)
|
|
50975
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50976
|
+
if (properties[keys[i]] != null)
|
|
50977
|
+
this[keys[i]] = properties[keys[i]];
|
|
50978
|
+
}
|
|
50979
|
+
|
|
50980
|
+
/**
|
|
50981
|
+
* ReplDomainDots user.
|
|
50982
|
+
* @member {string} user
|
|
50983
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
50984
|
+
* @instance
|
|
50985
|
+
*/
|
|
50986
|
+
ReplDomainDots.prototype.user = "";
|
|
50987
|
+
|
|
50988
|
+
/**
|
|
50989
|
+
* ReplDomainDots slug.
|
|
50990
|
+
* @member {string} slug
|
|
50991
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
50992
|
+
* @instance
|
|
50993
|
+
*/
|
|
50994
|
+
ReplDomainDots.prototype.slug = "";
|
|
50995
|
+
|
|
50996
|
+
/**
|
|
50997
|
+
* ReplDomainDots suffix.
|
|
50998
|
+
* @member {string} suffix
|
|
50999
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51000
|
+
* @instance
|
|
51001
|
+
*/
|
|
51002
|
+
ReplDomainDots.prototype.suffix = "";
|
|
51003
|
+
|
|
51004
|
+
/**
|
|
51005
|
+
* Creates a new ReplDomainDots instance using the specified properties.
|
|
51006
|
+
* @function create
|
|
51007
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51008
|
+
* @static
|
|
51009
|
+
* @param {replit.goval.api.IReplDomainDots=} [properties] Properties to set
|
|
51010
|
+
* @returns {replit.goval.api.ReplDomainDots} ReplDomainDots instance
|
|
51011
|
+
*/
|
|
51012
|
+
ReplDomainDots.create = function create(properties) {
|
|
51013
|
+
return ReplDomainDots.fromObject(properties);
|
|
51014
|
+
};
|
|
51015
|
+
|
|
51016
|
+
/**
|
|
51017
|
+
* Encodes the specified ReplDomainDots message. Does not implicitly {@link replit.goval.api.ReplDomainDots.verify|verify} messages.
|
|
51018
|
+
* @function encode
|
|
51019
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51020
|
+
* @static
|
|
51021
|
+
* @param {replit.goval.api.ReplDomainDots} message ReplDomainDots message or plain object to encode
|
|
51022
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51023
|
+
* @returns {$protobuf.Writer} Writer
|
|
51024
|
+
*/
|
|
51025
|
+
ReplDomainDots.encode = function encode(message, writer) {
|
|
51026
|
+
if (!writer)
|
|
51027
|
+
writer = $Writer.create();
|
|
51028
|
+
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
51029
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.user);
|
|
51030
|
+
if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
|
|
51031
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
51032
|
+
if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
|
|
51033
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.suffix);
|
|
51034
|
+
return writer;
|
|
51035
|
+
};
|
|
51036
|
+
|
|
51037
|
+
/**
|
|
51038
|
+
* Encodes the specified ReplDomainDots message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomainDots.verify|verify} messages.
|
|
51039
|
+
* @function encodeDelimited
|
|
51040
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51041
|
+
* @static
|
|
51042
|
+
* @param {replit.goval.api.ReplDomainDots} message ReplDomainDots message or plain object to encode
|
|
51043
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51044
|
+
* @returns {$protobuf.Writer} Writer
|
|
51045
|
+
*/
|
|
51046
|
+
ReplDomainDots.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51047
|
+
return this.encode(message, writer).ldelim();
|
|
51048
|
+
};
|
|
51049
|
+
|
|
51050
|
+
/**
|
|
51051
|
+
* Decodes a ReplDomainDots message from the specified reader or buffer.
|
|
51052
|
+
* @function decode
|
|
51053
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51054
|
+
* @static
|
|
51055
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51056
|
+
* @param {number} [length] Message length if known beforehand
|
|
51057
|
+
* @returns {replit.goval.api.ReplDomainDots} ReplDomainDots
|
|
51058
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51059
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51060
|
+
*/
|
|
51061
|
+
ReplDomainDots.decode = function decode(reader, length) {
|
|
51062
|
+
if (!(reader instanceof $Reader))
|
|
51063
|
+
reader = $Reader.create(reader);
|
|
51064
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomainDots();
|
|
51065
|
+
while (reader.pos < end) {
|
|
51066
|
+
var tag = reader.uint32();
|
|
51067
|
+
switch (tag >>> 3) {
|
|
51068
|
+
case 1:
|
|
51069
|
+
message.user = reader.string();
|
|
51070
|
+
break;
|
|
51071
|
+
case 2:
|
|
51072
|
+
message.slug = reader.string();
|
|
51073
|
+
break;
|
|
51074
|
+
case 3:
|
|
51075
|
+
message.suffix = reader.string();
|
|
51076
|
+
break;
|
|
51077
|
+
default:
|
|
51078
|
+
reader.skipType(tag & 7);
|
|
51079
|
+
break;
|
|
51080
|
+
}
|
|
51081
|
+
}
|
|
51082
|
+
return message;
|
|
51083
|
+
};
|
|
51084
|
+
|
|
51085
|
+
/**
|
|
51086
|
+
* Decodes a ReplDomainDots message from the specified reader or buffer, length delimited.
|
|
51087
|
+
* @function decodeDelimited
|
|
51088
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51089
|
+
* @static
|
|
51090
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51091
|
+
* @returns {replit.goval.api.ReplDomainDots} ReplDomainDots
|
|
51092
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51093
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51094
|
+
*/
|
|
51095
|
+
ReplDomainDots.decodeDelimited = function decodeDelimited(reader) {
|
|
51096
|
+
if (!(reader instanceof $Reader))
|
|
51097
|
+
reader = new $Reader(reader);
|
|
51098
|
+
return this.decode(reader, reader.uint32());
|
|
51099
|
+
};
|
|
51100
|
+
|
|
51101
|
+
/**
|
|
51102
|
+
* Verifies a ReplDomainDots message.
|
|
51103
|
+
* @function verify
|
|
51104
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51105
|
+
* @static
|
|
51106
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51107
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51108
|
+
*/
|
|
51109
|
+
ReplDomainDots.verify = function verify(message) {
|
|
51110
|
+
if (typeof message !== "object" || message === null)
|
|
51111
|
+
return "object expected";
|
|
51112
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
51113
|
+
if (!$util.isString(message.user))
|
|
51114
|
+
return "user: string expected";
|
|
51115
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
51116
|
+
if (!$util.isString(message.slug))
|
|
51117
|
+
return "slug: string expected";
|
|
51118
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
51119
|
+
if (!$util.isString(message.suffix))
|
|
51120
|
+
return "suffix: string expected";
|
|
51121
|
+
return null;
|
|
51122
|
+
};
|
|
51123
|
+
|
|
51124
|
+
/**
|
|
51125
|
+
* Creates a ReplDomainDots message from a plain object. Also converts values to their respective internal types.
|
|
51126
|
+
* @function fromObject
|
|
51127
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51128
|
+
* @static
|
|
51129
|
+
* @param {Object.<string,*>} object Plain object
|
|
51130
|
+
* @returns {replit.goval.api.ReplDomainDots} ReplDomainDots
|
|
51131
|
+
*/
|
|
51132
|
+
ReplDomainDots.fromObject = function fromObject(object) {
|
|
51133
|
+
if (object instanceof $root.replit.goval.api.ReplDomainDots)
|
|
51134
|
+
return object;
|
|
51135
|
+
var message = new $root.replit.goval.api.ReplDomainDots();
|
|
51136
|
+
if (object.user != null)
|
|
51137
|
+
message.user = String(object.user);
|
|
51138
|
+
if (object.slug != null)
|
|
51139
|
+
message.slug = String(object.slug);
|
|
51140
|
+
if (object.suffix != null)
|
|
51141
|
+
message.suffix = String(object.suffix);
|
|
51142
|
+
return message;
|
|
51143
|
+
};
|
|
51144
|
+
|
|
51145
|
+
/**
|
|
51146
|
+
* Creates a plain object from a ReplDomainDots message. Also converts values to other types if specified.
|
|
51147
|
+
* @function toObject
|
|
51148
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51149
|
+
* @static
|
|
51150
|
+
* @param {replit.goval.api.ReplDomainDots} message ReplDomainDots
|
|
51151
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51152
|
+
* @returns {Object.<string,*>} Plain object
|
|
51153
|
+
*/
|
|
51154
|
+
ReplDomainDots.toObject = function toObject(message, options) {
|
|
51155
|
+
if (!options)
|
|
51156
|
+
options = {};
|
|
51157
|
+
var object = {};
|
|
51158
|
+
if (options.defaults) {
|
|
51159
|
+
object.user = "";
|
|
51160
|
+
object.slug = "";
|
|
51161
|
+
object.suffix = "";
|
|
51162
|
+
}
|
|
51163
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
51164
|
+
object.user = message.user;
|
|
51165
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
51166
|
+
object.slug = message.slug;
|
|
51167
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
51168
|
+
object.suffix = message.suffix;
|
|
51169
|
+
return object;
|
|
51170
|
+
};
|
|
51171
|
+
|
|
51172
|
+
/**
|
|
51173
|
+
* Converts this ReplDomainDots to JSON.
|
|
51174
|
+
* @function toJSON
|
|
51175
|
+
* @memberof replit.goval.api.ReplDomainDots
|
|
51176
|
+
* @instance
|
|
51177
|
+
* @returns {Object.<string,*>} JSON object
|
|
51178
|
+
*/
|
|
51179
|
+
ReplDomainDots.prototype.toJSON = function toJSON() {
|
|
51180
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51181
|
+
};
|
|
51182
|
+
|
|
51183
|
+
return ReplDomainDots;
|
|
51184
|
+
})();
|
|
51185
|
+
|
|
51186
|
+
api.ReplDomainSingleDomain = (function() {
|
|
51187
|
+
|
|
51188
|
+
/**
|
|
51189
|
+
* Properties of a ReplDomainSingleDomain.
|
|
51190
|
+
* @memberof replit.goval.api
|
|
51191
|
+
* @interface IReplDomainSingleDomain
|
|
51192
|
+
* @property {string|null} [user] ReplDomainSingleDomain user
|
|
51193
|
+
* @property {string|null} [suffix] ReplDomainSingleDomain suffix
|
|
51194
|
+
*/
|
|
51195
|
+
|
|
51196
|
+
/**
|
|
51197
|
+
* Constructs a new ReplDomainSingleDomain.
|
|
51198
|
+
* @memberof replit.goval.api
|
|
51199
|
+
* @classdesc Represents a ReplDomainSingleDomain.
|
|
51200
|
+
* @constructor
|
|
51201
|
+
* @param {replit.goval.api.IReplDomainSingleDomain=} [properties] Properties to set
|
|
51202
|
+
*/
|
|
51203
|
+
function ReplDomainSingleDomain(properties) {
|
|
51204
|
+
if (properties)
|
|
51205
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51206
|
+
if (properties[keys[i]] != null)
|
|
51207
|
+
this[keys[i]] = properties[keys[i]];
|
|
51208
|
+
}
|
|
51209
|
+
|
|
51210
|
+
/**
|
|
51211
|
+
* ReplDomainSingleDomain user.
|
|
51212
|
+
* @member {string} user
|
|
51213
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51214
|
+
* @instance
|
|
51215
|
+
*/
|
|
51216
|
+
ReplDomainSingleDomain.prototype.user = "";
|
|
51217
|
+
|
|
51218
|
+
/**
|
|
51219
|
+
* ReplDomainSingleDomain suffix.
|
|
51220
|
+
* @member {string} suffix
|
|
51221
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51222
|
+
* @instance
|
|
51223
|
+
*/
|
|
51224
|
+
ReplDomainSingleDomain.prototype.suffix = "";
|
|
51225
|
+
|
|
51226
|
+
/**
|
|
51227
|
+
* Creates a new ReplDomainSingleDomain instance using the specified properties.
|
|
51228
|
+
* @function create
|
|
51229
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51230
|
+
* @static
|
|
51231
|
+
* @param {replit.goval.api.IReplDomainSingleDomain=} [properties] Properties to set
|
|
51232
|
+
* @returns {replit.goval.api.ReplDomainSingleDomain} ReplDomainSingleDomain instance
|
|
51233
|
+
*/
|
|
51234
|
+
ReplDomainSingleDomain.create = function create(properties) {
|
|
51235
|
+
return ReplDomainSingleDomain.fromObject(properties);
|
|
51236
|
+
};
|
|
51237
|
+
|
|
51238
|
+
/**
|
|
51239
|
+
* Encodes the specified ReplDomainSingleDomain message. Does not implicitly {@link replit.goval.api.ReplDomainSingleDomain.verify|verify} messages.
|
|
51240
|
+
* @function encode
|
|
51241
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51242
|
+
* @static
|
|
51243
|
+
* @param {replit.goval.api.ReplDomainSingleDomain} message ReplDomainSingleDomain message or plain object to encode
|
|
51244
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51245
|
+
* @returns {$protobuf.Writer} Writer
|
|
51246
|
+
*/
|
|
51247
|
+
ReplDomainSingleDomain.encode = function encode(message, writer) {
|
|
51248
|
+
if (!writer)
|
|
51249
|
+
writer = $Writer.create();
|
|
51250
|
+
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
51251
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.user);
|
|
51252
|
+
if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
|
|
51253
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.suffix);
|
|
51254
|
+
return writer;
|
|
51255
|
+
};
|
|
51256
|
+
|
|
51257
|
+
/**
|
|
51258
|
+
* Encodes the specified ReplDomainSingleDomain message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomainSingleDomain.verify|verify} messages.
|
|
51259
|
+
* @function encodeDelimited
|
|
51260
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51261
|
+
* @static
|
|
51262
|
+
* @param {replit.goval.api.ReplDomainSingleDomain} message ReplDomainSingleDomain message or plain object to encode
|
|
51263
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51264
|
+
* @returns {$protobuf.Writer} Writer
|
|
51265
|
+
*/
|
|
51266
|
+
ReplDomainSingleDomain.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51267
|
+
return this.encode(message, writer).ldelim();
|
|
51268
|
+
};
|
|
51269
|
+
|
|
51270
|
+
/**
|
|
51271
|
+
* Decodes a ReplDomainSingleDomain message from the specified reader or buffer.
|
|
51272
|
+
* @function decode
|
|
51273
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51274
|
+
* @static
|
|
51275
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51276
|
+
* @param {number} [length] Message length if known beforehand
|
|
51277
|
+
* @returns {replit.goval.api.ReplDomainSingleDomain} ReplDomainSingleDomain
|
|
51278
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51279
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51280
|
+
*/
|
|
51281
|
+
ReplDomainSingleDomain.decode = function decode(reader, length) {
|
|
51282
|
+
if (!(reader instanceof $Reader))
|
|
51283
|
+
reader = $Reader.create(reader);
|
|
51284
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomainSingleDomain();
|
|
51285
|
+
while (reader.pos < end) {
|
|
51286
|
+
var tag = reader.uint32();
|
|
51287
|
+
switch (tag >>> 3) {
|
|
51288
|
+
case 1:
|
|
51289
|
+
message.user = reader.string();
|
|
51290
|
+
break;
|
|
51291
|
+
case 2:
|
|
51292
|
+
message.suffix = reader.string();
|
|
51293
|
+
break;
|
|
51294
|
+
default:
|
|
51295
|
+
reader.skipType(tag & 7);
|
|
51296
|
+
break;
|
|
51297
|
+
}
|
|
51298
|
+
}
|
|
51299
|
+
return message;
|
|
51300
|
+
};
|
|
51301
|
+
|
|
51302
|
+
/**
|
|
51303
|
+
* Decodes a ReplDomainSingleDomain message from the specified reader or buffer, length delimited.
|
|
51304
|
+
* @function decodeDelimited
|
|
51305
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51306
|
+
* @static
|
|
51307
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51308
|
+
* @returns {replit.goval.api.ReplDomainSingleDomain} ReplDomainSingleDomain
|
|
51309
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51310
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51311
|
+
*/
|
|
51312
|
+
ReplDomainSingleDomain.decodeDelimited = function decodeDelimited(reader) {
|
|
51313
|
+
if (!(reader instanceof $Reader))
|
|
51314
|
+
reader = new $Reader(reader);
|
|
51315
|
+
return this.decode(reader, reader.uint32());
|
|
51316
|
+
};
|
|
51317
|
+
|
|
51318
|
+
/**
|
|
51319
|
+
* Verifies a ReplDomainSingleDomain message.
|
|
51320
|
+
* @function verify
|
|
51321
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51322
|
+
* @static
|
|
51323
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51324
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51325
|
+
*/
|
|
51326
|
+
ReplDomainSingleDomain.verify = function verify(message) {
|
|
51327
|
+
if (typeof message !== "object" || message === null)
|
|
51328
|
+
return "object expected";
|
|
51329
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
51330
|
+
if (!$util.isString(message.user))
|
|
51331
|
+
return "user: string expected";
|
|
51332
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
51333
|
+
if (!$util.isString(message.suffix))
|
|
51334
|
+
return "suffix: string expected";
|
|
51335
|
+
return null;
|
|
51336
|
+
};
|
|
51337
|
+
|
|
51338
|
+
/**
|
|
51339
|
+
* Creates a ReplDomainSingleDomain message from a plain object. Also converts values to their respective internal types.
|
|
51340
|
+
* @function fromObject
|
|
51341
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51342
|
+
* @static
|
|
51343
|
+
* @param {Object.<string,*>} object Plain object
|
|
51344
|
+
* @returns {replit.goval.api.ReplDomainSingleDomain} ReplDomainSingleDomain
|
|
51345
|
+
*/
|
|
51346
|
+
ReplDomainSingleDomain.fromObject = function fromObject(object) {
|
|
51347
|
+
if (object instanceof $root.replit.goval.api.ReplDomainSingleDomain)
|
|
51348
|
+
return object;
|
|
51349
|
+
var message = new $root.replit.goval.api.ReplDomainSingleDomain();
|
|
51350
|
+
if (object.user != null)
|
|
51351
|
+
message.user = String(object.user);
|
|
51352
|
+
if (object.suffix != null)
|
|
51353
|
+
message.suffix = String(object.suffix);
|
|
51354
|
+
return message;
|
|
51355
|
+
};
|
|
51356
|
+
|
|
51357
|
+
/**
|
|
51358
|
+
* Creates a plain object from a ReplDomainSingleDomain message. Also converts values to other types if specified.
|
|
51359
|
+
* @function toObject
|
|
51360
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51361
|
+
* @static
|
|
51362
|
+
* @param {replit.goval.api.ReplDomainSingleDomain} message ReplDomainSingleDomain
|
|
51363
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51364
|
+
* @returns {Object.<string,*>} Plain object
|
|
51365
|
+
*/
|
|
51366
|
+
ReplDomainSingleDomain.toObject = function toObject(message, options) {
|
|
51367
|
+
if (!options)
|
|
51368
|
+
options = {};
|
|
51369
|
+
var object = {};
|
|
51370
|
+
if (options.defaults) {
|
|
51371
|
+
object.user = "";
|
|
51372
|
+
object.suffix = "";
|
|
51373
|
+
}
|
|
51374
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
51375
|
+
object.user = message.user;
|
|
51376
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
51377
|
+
object.suffix = message.suffix;
|
|
51378
|
+
return object;
|
|
51379
|
+
};
|
|
51380
|
+
|
|
51381
|
+
/**
|
|
51382
|
+
* Converts this ReplDomainSingleDomain to JSON.
|
|
51383
|
+
* @function toJSON
|
|
51384
|
+
* @memberof replit.goval.api.ReplDomainSingleDomain
|
|
51385
|
+
* @instance
|
|
51386
|
+
* @returns {Object.<string,*>} JSON object
|
|
51387
|
+
*/
|
|
51388
|
+
ReplDomainSingleDomain.prototype.toJSON = function toJSON() {
|
|
51389
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51390
|
+
};
|
|
51391
|
+
|
|
51392
|
+
return ReplDomainSingleDomain;
|
|
51393
|
+
})();
|
|
51394
|
+
|
|
51395
|
+
api.ReplDomainId = (function() {
|
|
51396
|
+
|
|
51397
|
+
/**
|
|
51398
|
+
* Properties of a ReplDomainId.
|
|
51399
|
+
* @memberof replit.goval.api
|
|
51400
|
+
* @interface IReplDomainId
|
|
51401
|
+
* @property {string|null} [id] ReplDomainId id
|
|
51402
|
+
* @property {string|null} [suffix] ReplDomainId suffix
|
|
51403
|
+
*/
|
|
51404
|
+
|
|
51405
|
+
/**
|
|
51406
|
+
* Constructs a new ReplDomainId.
|
|
51407
|
+
* @memberof replit.goval.api
|
|
51408
|
+
* @classdesc Represents a ReplDomainId.
|
|
51409
|
+
* @constructor
|
|
51410
|
+
* @param {replit.goval.api.IReplDomainId=} [properties] Properties to set
|
|
51411
|
+
*/
|
|
51412
|
+
function ReplDomainId(properties) {
|
|
51413
|
+
if (properties)
|
|
51414
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51415
|
+
if (properties[keys[i]] != null)
|
|
51416
|
+
this[keys[i]] = properties[keys[i]];
|
|
51417
|
+
}
|
|
51418
|
+
|
|
51419
|
+
/**
|
|
51420
|
+
* ReplDomainId id.
|
|
51421
|
+
* @member {string} id
|
|
51422
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51423
|
+
* @instance
|
|
51424
|
+
*/
|
|
51425
|
+
ReplDomainId.prototype.id = "";
|
|
51426
|
+
|
|
51427
|
+
/**
|
|
51428
|
+
* ReplDomainId suffix.
|
|
51429
|
+
* @member {string} suffix
|
|
51430
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51431
|
+
* @instance
|
|
51432
|
+
*/
|
|
51433
|
+
ReplDomainId.prototype.suffix = "";
|
|
51434
|
+
|
|
51435
|
+
/**
|
|
51436
|
+
* Creates a new ReplDomainId instance using the specified properties.
|
|
51437
|
+
* @function create
|
|
51438
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51439
|
+
* @static
|
|
51440
|
+
* @param {replit.goval.api.IReplDomainId=} [properties] Properties to set
|
|
51441
|
+
* @returns {replit.goval.api.ReplDomainId} ReplDomainId instance
|
|
51442
|
+
*/
|
|
51443
|
+
ReplDomainId.create = function create(properties) {
|
|
51444
|
+
return ReplDomainId.fromObject(properties);
|
|
51445
|
+
};
|
|
51446
|
+
|
|
51447
|
+
/**
|
|
51448
|
+
* Encodes the specified ReplDomainId message. Does not implicitly {@link replit.goval.api.ReplDomainId.verify|verify} messages.
|
|
51449
|
+
* @function encode
|
|
51450
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51451
|
+
* @static
|
|
51452
|
+
* @param {replit.goval.api.ReplDomainId} message ReplDomainId message or plain object to encode
|
|
51453
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51454
|
+
* @returns {$protobuf.Writer} Writer
|
|
51455
|
+
*/
|
|
51456
|
+
ReplDomainId.encode = function encode(message, writer) {
|
|
51457
|
+
if (!writer)
|
|
51458
|
+
writer = $Writer.create();
|
|
51459
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
51460
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
51461
|
+
if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
|
|
51462
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.suffix);
|
|
51463
|
+
return writer;
|
|
51464
|
+
};
|
|
51465
|
+
|
|
51466
|
+
/**
|
|
51467
|
+
* Encodes the specified ReplDomainId message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomainId.verify|verify} messages.
|
|
51468
|
+
* @function encodeDelimited
|
|
51469
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51470
|
+
* @static
|
|
51471
|
+
* @param {replit.goval.api.ReplDomainId} message ReplDomainId message or plain object to encode
|
|
51472
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51473
|
+
* @returns {$protobuf.Writer} Writer
|
|
51474
|
+
*/
|
|
51475
|
+
ReplDomainId.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51476
|
+
return this.encode(message, writer).ldelim();
|
|
51477
|
+
};
|
|
51478
|
+
|
|
51479
|
+
/**
|
|
51480
|
+
* Decodes a ReplDomainId message from the specified reader or buffer.
|
|
51481
|
+
* @function decode
|
|
51482
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51483
|
+
* @static
|
|
51484
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51485
|
+
* @param {number} [length] Message length if known beforehand
|
|
51486
|
+
* @returns {replit.goval.api.ReplDomainId} ReplDomainId
|
|
51487
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51488
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51489
|
+
*/
|
|
51490
|
+
ReplDomainId.decode = function decode(reader, length) {
|
|
51491
|
+
if (!(reader instanceof $Reader))
|
|
51492
|
+
reader = $Reader.create(reader);
|
|
51493
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomainId();
|
|
51494
|
+
while (reader.pos < end) {
|
|
51495
|
+
var tag = reader.uint32();
|
|
51496
|
+
switch (tag >>> 3) {
|
|
51497
|
+
case 1:
|
|
51498
|
+
message.id = reader.string();
|
|
51499
|
+
break;
|
|
51500
|
+
case 2:
|
|
51501
|
+
message.suffix = reader.string();
|
|
51502
|
+
break;
|
|
51503
|
+
default:
|
|
51504
|
+
reader.skipType(tag & 7);
|
|
51505
|
+
break;
|
|
51506
|
+
}
|
|
51507
|
+
}
|
|
51508
|
+
return message;
|
|
51509
|
+
};
|
|
51510
|
+
|
|
51511
|
+
/**
|
|
51512
|
+
* Decodes a ReplDomainId message from the specified reader or buffer, length delimited.
|
|
51513
|
+
* @function decodeDelimited
|
|
51514
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51515
|
+
* @static
|
|
51516
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51517
|
+
* @returns {replit.goval.api.ReplDomainId} ReplDomainId
|
|
51518
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51519
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51520
|
+
*/
|
|
51521
|
+
ReplDomainId.decodeDelimited = function decodeDelimited(reader) {
|
|
51522
|
+
if (!(reader instanceof $Reader))
|
|
51523
|
+
reader = new $Reader(reader);
|
|
51524
|
+
return this.decode(reader, reader.uint32());
|
|
51525
|
+
};
|
|
51526
|
+
|
|
51527
|
+
/**
|
|
51528
|
+
* Verifies a ReplDomainId message.
|
|
51529
|
+
* @function verify
|
|
51530
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51531
|
+
* @static
|
|
51532
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51533
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51534
|
+
*/
|
|
51535
|
+
ReplDomainId.verify = function verify(message) {
|
|
51536
|
+
if (typeof message !== "object" || message === null)
|
|
51537
|
+
return "object expected";
|
|
51538
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
51539
|
+
if (!$util.isString(message.id))
|
|
51540
|
+
return "id: string expected";
|
|
51541
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
51542
|
+
if (!$util.isString(message.suffix))
|
|
51543
|
+
return "suffix: string expected";
|
|
51544
|
+
return null;
|
|
51545
|
+
};
|
|
51546
|
+
|
|
51547
|
+
/**
|
|
51548
|
+
* Creates a ReplDomainId message from a plain object. Also converts values to their respective internal types.
|
|
51549
|
+
* @function fromObject
|
|
51550
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51551
|
+
* @static
|
|
51552
|
+
* @param {Object.<string,*>} object Plain object
|
|
51553
|
+
* @returns {replit.goval.api.ReplDomainId} ReplDomainId
|
|
51554
|
+
*/
|
|
51555
|
+
ReplDomainId.fromObject = function fromObject(object) {
|
|
51556
|
+
if (object instanceof $root.replit.goval.api.ReplDomainId)
|
|
51557
|
+
return object;
|
|
51558
|
+
var message = new $root.replit.goval.api.ReplDomainId();
|
|
51559
|
+
if (object.id != null)
|
|
51560
|
+
message.id = String(object.id);
|
|
51561
|
+
if (object.suffix != null)
|
|
51562
|
+
message.suffix = String(object.suffix);
|
|
51563
|
+
return message;
|
|
51564
|
+
};
|
|
51565
|
+
|
|
51566
|
+
/**
|
|
51567
|
+
* Creates a plain object from a ReplDomainId message. Also converts values to other types if specified.
|
|
51568
|
+
* @function toObject
|
|
51569
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51570
|
+
* @static
|
|
51571
|
+
* @param {replit.goval.api.ReplDomainId} message ReplDomainId
|
|
51572
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51573
|
+
* @returns {Object.<string,*>} Plain object
|
|
51574
|
+
*/
|
|
51575
|
+
ReplDomainId.toObject = function toObject(message, options) {
|
|
51576
|
+
if (!options)
|
|
51577
|
+
options = {};
|
|
51578
|
+
var object = {};
|
|
51579
|
+
if (options.defaults) {
|
|
51580
|
+
object.id = "";
|
|
51581
|
+
object.suffix = "";
|
|
51582
|
+
}
|
|
51583
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
51584
|
+
object.id = message.id;
|
|
51585
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
51586
|
+
object.suffix = message.suffix;
|
|
51587
|
+
return object;
|
|
51588
|
+
};
|
|
51589
|
+
|
|
51590
|
+
/**
|
|
51591
|
+
* Converts this ReplDomainId to JSON.
|
|
51592
|
+
* @function toJSON
|
|
51593
|
+
* @memberof replit.goval.api.ReplDomainId
|
|
51594
|
+
* @instance
|
|
51595
|
+
* @returns {Object.<string,*>} JSON object
|
|
51596
|
+
*/
|
|
51597
|
+
ReplDomainId.prototype.toJSON = function toJSON() {
|
|
51598
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51599
|
+
};
|
|
51600
|
+
|
|
51601
|
+
return ReplDomainId;
|
|
51602
|
+
})();
|
|
51603
|
+
|
|
51604
|
+
api.ReplDomain = (function() {
|
|
51605
|
+
|
|
51606
|
+
/**
|
|
51607
|
+
* Properties of a ReplDomain.
|
|
51608
|
+
* @memberof replit.goval.api
|
|
51609
|
+
* @interface IReplDomain
|
|
51610
|
+
* @property {string|null} [custom] ReplDomain custom
|
|
51611
|
+
* @property {replit.goval.api.ReplDomainId|replit.goval.api.IReplDomainId|null} [id] ReplDomain id
|
|
51612
|
+
* @property {replit.goval.api.ReplDomainDoubleDash|replit.goval.api.IReplDomainDoubleDash|null} [doubleDash] ReplDomain doubleDash
|
|
51613
|
+
* @property {replit.goval.api.ReplDomainDots|replit.goval.api.IReplDomainDots|null} [dots] ReplDomain dots
|
|
51614
|
+
* @property {replit.goval.api.ReplDomainSingleDomain|replit.goval.api.IReplDomainSingleDomain|null} [singleDomain] ReplDomain singleDomain
|
|
51615
|
+
*/
|
|
51616
|
+
|
|
51617
|
+
/**
|
|
51618
|
+
* Constructs a new ReplDomain.
|
|
51619
|
+
* @memberof replit.goval.api
|
|
51620
|
+
* @classdesc Represents a ReplDomain.
|
|
51621
|
+
* @constructor
|
|
51622
|
+
* @param {replit.goval.api.IReplDomain=} [properties] Properties to set
|
|
51623
|
+
*/
|
|
51624
|
+
function ReplDomain(properties) {
|
|
51625
|
+
if (properties)
|
|
51626
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51627
|
+
if (properties[keys[i]] != null)
|
|
51628
|
+
this[keys[i]] = properties[keys[i]];
|
|
51629
|
+
}
|
|
51630
|
+
|
|
51631
|
+
/**
|
|
51632
|
+
* ReplDomain custom.
|
|
51633
|
+
* @member {string|null|undefined} custom
|
|
51634
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51635
|
+
* @instance
|
|
51636
|
+
*/
|
|
51637
|
+
ReplDomain.prototype.custom = null;
|
|
51638
|
+
|
|
51639
|
+
/**
|
|
51640
|
+
* ReplDomain id.
|
|
51641
|
+
* @member {replit.goval.api.ReplDomainId|null|undefined} id
|
|
51642
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51643
|
+
* @instance
|
|
51644
|
+
*/
|
|
51645
|
+
ReplDomain.prototype.id = null;
|
|
51646
|
+
|
|
51647
|
+
/**
|
|
51648
|
+
* ReplDomain doubleDash.
|
|
51649
|
+
* @member {replit.goval.api.ReplDomainDoubleDash|null|undefined} doubleDash
|
|
51650
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51651
|
+
* @instance
|
|
51652
|
+
*/
|
|
51653
|
+
ReplDomain.prototype.doubleDash = null;
|
|
51654
|
+
|
|
51655
|
+
/**
|
|
51656
|
+
* ReplDomain dots.
|
|
51657
|
+
* @member {replit.goval.api.ReplDomainDots|null|undefined} dots
|
|
51658
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51659
|
+
* @instance
|
|
51660
|
+
*/
|
|
51661
|
+
ReplDomain.prototype.dots = null;
|
|
51662
|
+
|
|
51663
|
+
/**
|
|
51664
|
+
* ReplDomain singleDomain.
|
|
51665
|
+
* @member {replit.goval.api.ReplDomainSingleDomain|null|undefined} singleDomain
|
|
51666
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51667
|
+
* @instance
|
|
51668
|
+
*/
|
|
51669
|
+
ReplDomain.prototype.singleDomain = null;
|
|
51670
|
+
|
|
51671
|
+
// OneOf field names bound to virtual getters and setters
|
|
51672
|
+
var $oneOfFields;
|
|
51673
|
+
|
|
51674
|
+
/**
|
|
51675
|
+
* ReplDomain kind.
|
|
51676
|
+
* @member {"custom"|"id"|"doubleDash"|"dots"|"singleDomain"|undefined} kind
|
|
51677
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51678
|
+
* @instance
|
|
51679
|
+
*/
|
|
51680
|
+
Object.defineProperty(ReplDomain.prototype, "kind", {
|
|
51681
|
+
get: $util.oneOfGetter($oneOfFields = ["custom", "id", "doubleDash", "dots", "singleDomain"]),
|
|
51682
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
51683
|
+
});
|
|
51684
|
+
|
|
51685
|
+
/**
|
|
51686
|
+
* Creates a new ReplDomain instance using the specified properties.
|
|
51687
|
+
* @function create
|
|
51688
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51689
|
+
* @static
|
|
51690
|
+
* @param {replit.goval.api.IReplDomain=} [properties] Properties to set
|
|
51691
|
+
* @returns {replit.goval.api.ReplDomain} ReplDomain instance
|
|
51692
|
+
*/
|
|
51693
|
+
ReplDomain.create = function create(properties) {
|
|
51694
|
+
return ReplDomain.fromObject(properties);
|
|
51695
|
+
};
|
|
51696
|
+
|
|
51697
|
+
/**
|
|
51698
|
+
* Encodes the specified ReplDomain message. Does not implicitly {@link replit.goval.api.ReplDomain.verify|verify} messages.
|
|
51699
|
+
* @function encode
|
|
51700
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51701
|
+
* @static
|
|
51702
|
+
* @param {replit.goval.api.ReplDomain} message ReplDomain message or plain object to encode
|
|
51703
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51704
|
+
* @returns {$protobuf.Writer} Writer
|
|
51705
|
+
*/
|
|
51706
|
+
ReplDomain.encode = function encode(message, writer) {
|
|
51707
|
+
if (!writer)
|
|
51708
|
+
writer = $Writer.create();
|
|
51709
|
+
if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
|
|
51710
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.custom);
|
|
51711
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
51712
|
+
$root.replit.goval.api.ReplDomainId.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
51713
|
+
if (message.doubleDash != null && Object.hasOwnProperty.call(message, "doubleDash"))
|
|
51714
|
+
$root.replit.goval.api.ReplDomainDoubleDash.encode(message.doubleDash, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
51715
|
+
if (message.dots != null && Object.hasOwnProperty.call(message, "dots"))
|
|
51716
|
+
$root.replit.goval.api.ReplDomainDots.encode(message.dots, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
51717
|
+
if (message.singleDomain != null && Object.hasOwnProperty.call(message, "singleDomain"))
|
|
51718
|
+
$root.replit.goval.api.ReplDomainSingleDomain.encode(message.singleDomain, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
51719
|
+
return writer;
|
|
51720
|
+
};
|
|
51721
|
+
|
|
51722
|
+
/**
|
|
51723
|
+
* Encodes the specified ReplDomain message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomain.verify|verify} messages.
|
|
51724
|
+
* @function encodeDelimited
|
|
51725
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51726
|
+
* @static
|
|
51727
|
+
* @param {replit.goval.api.ReplDomain} message ReplDomain message or plain object to encode
|
|
51728
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51729
|
+
* @returns {$protobuf.Writer} Writer
|
|
51730
|
+
*/
|
|
51731
|
+
ReplDomain.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51732
|
+
return this.encode(message, writer).ldelim();
|
|
51733
|
+
};
|
|
51734
|
+
|
|
51735
|
+
/**
|
|
51736
|
+
* Decodes a ReplDomain message from the specified reader or buffer.
|
|
51737
|
+
* @function decode
|
|
51738
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51739
|
+
* @static
|
|
51740
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51741
|
+
* @param {number} [length] Message length if known beforehand
|
|
51742
|
+
* @returns {replit.goval.api.ReplDomain} ReplDomain
|
|
51743
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51744
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51745
|
+
*/
|
|
51746
|
+
ReplDomain.decode = function decode(reader, length) {
|
|
51747
|
+
if (!(reader instanceof $Reader))
|
|
51748
|
+
reader = $Reader.create(reader);
|
|
51749
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomain();
|
|
51750
|
+
while (reader.pos < end) {
|
|
51751
|
+
var tag = reader.uint32();
|
|
51752
|
+
switch (tag >>> 3) {
|
|
51753
|
+
case 1:
|
|
51754
|
+
message.custom = reader.string();
|
|
51755
|
+
break;
|
|
51756
|
+
case 2:
|
|
51757
|
+
message.id = $root.replit.goval.api.ReplDomainId.decode(reader, reader.uint32());
|
|
51758
|
+
break;
|
|
51759
|
+
case 3:
|
|
51760
|
+
message.doubleDash = $root.replit.goval.api.ReplDomainDoubleDash.decode(reader, reader.uint32());
|
|
51761
|
+
break;
|
|
51762
|
+
case 4:
|
|
51763
|
+
message.dots = $root.replit.goval.api.ReplDomainDots.decode(reader, reader.uint32());
|
|
51764
|
+
break;
|
|
51765
|
+
case 5:
|
|
51766
|
+
message.singleDomain = $root.replit.goval.api.ReplDomainSingleDomain.decode(reader, reader.uint32());
|
|
51767
|
+
break;
|
|
51768
|
+
default:
|
|
51769
|
+
reader.skipType(tag & 7);
|
|
51770
|
+
break;
|
|
51771
|
+
}
|
|
51772
|
+
}
|
|
51773
|
+
return message;
|
|
51774
|
+
};
|
|
51775
|
+
|
|
51776
|
+
/**
|
|
51777
|
+
* Decodes a ReplDomain message from the specified reader or buffer, length delimited.
|
|
51778
|
+
* @function decodeDelimited
|
|
51779
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51780
|
+
* @static
|
|
51781
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51782
|
+
* @returns {replit.goval.api.ReplDomain} ReplDomain
|
|
51783
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51784
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51785
|
+
*/
|
|
51786
|
+
ReplDomain.decodeDelimited = function decodeDelimited(reader) {
|
|
51787
|
+
if (!(reader instanceof $Reader))
|
|
51788
|
+
reader = new $Reader(reader);
|
|
51789
|
+
return this.decode(reader, reader.uint32());
|
|
51790
|
+
};
|
|
51791
|
+
|
|
51792
|
+
/**
|
|
51793
|
+
* Verifies a ReplDomain message.
|
|
51794
|
+
* @function verify
|
|
51795
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51796
|
+
* @static
|
|
51797
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51798
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51799
|
+
*/
|
|
51800
|
+
ReplDomain.verify = function verify(message) {
|
|
51801
|
+
if (typeof message !== "object" || message === null)
|
|
51802
|
+
return "object expected";
|
|
51803
|
+
var properties = {};
|
|
51804
|
+
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
51805
|
+
properties.kind = 1;
|
|
51806
|
+
if (!$util.isString(message.custom))
|
|
51807
|
+
return "custom: string expected";
|
|
51808
|
+
}
|
|
51809
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
51810
|
+
if (properties.kind === 1)
|
|
51811
|
+
return "kind: multiple values";
|
|
51812
|
+
properties.kind = 1;
|
|
51813
|
+
{
|
|
51814
|
+
var error = $root.replit.goval.api.ReplDomainId.verify(message.id);
|
|
51815
|
+
if (error)
|
|
51816
|
+
return "id." + error;
|
|
51817
|
+
}
|
|
51818
|
+
}
|
|
51819
|
+
if (message.doubleDash != null && message.hasOwnProperty("doubleDash")) {
|
|
51820
|
+
if (properties.kind === 1)
|
|
51821
|
+
return "kind: multiple values";
|
|
51822
|
+
properties.kind = 1;
|
|
51823
|
+
{
|
|
51824
|
+
var error = $root.replit.goval.api.ReplDomainDoubleDash.verify(message.doubleDash);
|
|
51825
|
+
if (error)
|
|
51826
|
+
return "doubleDash." + error;
|
|
51827
|
+
}
|
|
51828
|
+
}
|
|
51829
|
+
if (message.dots != null && message.hasOwnProperty("dots")) {
|
|
51830
|
+
if (properties.kind === 1)
|
|
51831
|
+
return "kind: multiple values";
|
|
51832
|
+
properties.kind = 1;
|
|
51833
|
+
{
|
|
51834
|
+
var error = $root.replit.goval.api.ReplDomainDots.verify(message.dots);
|
|
51835
|
+
if (error)
|
|
51836
|
+
return "dots." + error;
|
|
51837
|
+
}
|
|
51838
|
+
}
|
|
51839
|
+
if (message.singleDomain != null && message.hasOwnProperty("singleDomain")) {
|
|
51840
|
+
if (properties.kind === 1)
|
|
51841
|
+
return "kind: multiple values";
|
|
51842
|
+
properties.kind = 1;
|
|
51843
|
+
{
|
|
51844
|
+
var error = $root.replit.goval.api.ReplDomainSingleDomain.verify(message.singleDomain);
|
|
51845
|
+
if (error)
|
|
51846
|
+
return "singleDomain." + error;
|
|
51847
|
+
}
|
|
51848
|
+
}
|
|
51849
|
+
return null;
|
|
51850
|
+
};
|
|
51851
|
+
|
|
51852
|
+
/**
|
|
51853
|
+
* Creates a ReplDomain message from a plain object. Also converts values to their respective internal types.
|
|
51854
|
+
* @function fromObject
|
|
51855
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51856
|
+
* @static
|
|
51857
|
+
* @param {Object.<string,*>} object Plain object
|
|
51858
|
+
* @returns {replit.goval.api.ReplDomain} ReplDomain
|
|
51859
|
+
*/
|
|
51860
|
+
ReplDomain.fromObject = function fromObject(object) {
|
|
51861
|
+
if (object instanceof $root.replit.goval.api.ReplDomain)
|
|
51862
|
+
return object;
|
|
51863
|
+
var message = new $root.replit.goval.api.ReplDomain();
|
|
51864
|
+
if (object.custom != null)
|
|
51865
|
+
message.custom = String(object.custom);
|
|
51866
|
+
if (object.id != null) {
|
|
51867
|
+
if (typeof object.id !== "object")
|
|
51868
|
+
throw TypeError(".replit.goval.api.ReplDomain.id: object expected");
|
|
51869
|
+
message.id = $root.replit.goval.api.ReplDomainId.fromObject(object.id);
|
|
51870
|
+
}
|
|
51871
|
+
if (object.doubleDash != null) {
|
|
51872
|
+
if (typeof object.doubleDash !== "object")
|
|
51873
|
+
throw TypeError(".replit.goval.api.ReplDomain.doubleDash: object expected");
|
|
51874
|
+
message.doubleDash = $root.replit.goval.api.ReplDomainDoubleDash.fromObject(object.doubleDash);
|
|
51875
|
+
}
|
|
51876
|
+
if (object.dots != null) {
|
|
51877
|
+
if (typeof object.dots !== "object")
|
|
51878
|
+
throw TypeError(".replit.goval.api.ReplDomain.dots: object expected");
|
|
51879
|
+
message.dots = $root.replit.goval.api.ReplDomainDots.fromObject(object.dots);
|
|
51880
|
+
}
|
|
51881
|
+
if (object.singleDomain != null) {
|
|
51882
|
+
if (typeof object.singleDomain !== "object")
|
|
51883
|
+
throw TypeError(".replit.goval.api.ReplDomain.singleDomain: object expected");
|
|
51884
|
+
message.singleDomain = $root.replit.goval.api.ReplDomainSingleDomain.fromObject(object.singleDomain);
|
|
51885
|
+
}
|
|
51886
|
+
return message;
|
|
51887
|
+
};
|
|
51888
|
+
|
|
51889
|
+
/**
|
|
51890
|
+
* Creates a plain object from a ReplDomain message. Also converts values to other types if specified.
|
|
51891
|
+
* @function toObject
|
|
51892
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51893
|
+
* @static
|
|
51894
|
+
* @param {replit.goval.api.ReplDomain} message ReplDomain
|
|
51895
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51896
|
+
* @returns {Object.<string,*>} Plain object
|
|
51897
|
+
*/
|
|
51898
|
+
ReplDomain.toObject = function toObject(message, options) {
|
|
51899
|
+
if (!options)
|
|
51900
|
+
options = {};
|
|
51901
|
+
var object = {};
|
|
51902
|
+
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
51903
|
+
object.custom = message.custom;
|
|
51904
|
+
if (options.oneofs)
|
|
51905
|
+
object.kind = "custom";
|
|
51906
|
+
}
|
|
51907
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
51908
|
+
object.id = $root.replit.goval.api.ReplDomainId.toObject(message.id, options);
|
|
51909
|
+
if (options.oneofs)
|
|
51910
|
+
object.kind = "id";
|
|
51911
|
+
}
|
|
51912
|
+
if (message.doubleDash != null && message.hasOwnProperty("doubleDash")) {
|
|
51913
|
+
object.doubleDash = $root.replit.goval.api.ReplDomainDoubleDash.toObject(message.doubleDash, options);
|
|
51914
|
+
if (options.oneofs)
|
|
51915
|
+
object.kind = "doubleDash";
|
|
51916
|
+
}
|
|
51917
|
+
if (message.dots != null && message.hasOwnProperty("dots")) {
|
|
51918
|
+
object.dots = $root.replit.goval.api.ReplDomainDots.toObject(message.dots, options);
|
|
51919
|
+
if (options.oneofs)
|
|
51920
|
+
object.kind = "dots";
|
|
51921
|
+
}
|
|
51922
|
+
if (message.singleDomain != null && message.hasOwnProperty("singleDomain")) {
|
|
51923
|
+
object.singleDomain = $root.replit.goval.api.ReplDomainSingleDomain.toObject(message.singleDomain, options);
|
|
51924
|
+
if (options.oneofs)
|
|
51925
|
+
object.kind = "singleDomain";
|
|
51926
|
+
}
|
|
51927
|
+
return object;
|
|
51928
|
+
};
|
|
51929
|
+
|
|
51930
|
+
/**
|
|
51931
|
+
* Converts this ReplDomain to JSON.
|
|
51932
|
+
* @function toJSON
|
|
51933
|
+
* @memberof replit.goval.api.ReplDomain
|
|
51934
|
+
* @instance
|
|
51935
|
+
* @returns {Object.<string,*>} JSON object
|
|
51936
|
+
*/
|
|
51937
|
+
ReplDomain.prototype.toJSON = function toJSON() {
|
|
51938
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51939
|
+
};
|
|
51940
|
+
|
|
51941
|
+
return ReplDomain;
|
|
51942
|
+
})();
|
|
51943
|
+
|
|
50695
51944
|
api.ReplToken = (function() {
|
|
50696
51945
|
|
|
50697
51946
|
/**
|
|
@@ -53822,6 +55071,8 @@
|
|
|
53822
55071
|
* @property {number} SIGN_INTERMEDIATE_CERT=1 SIGN_INTERMEDIATE_CERT value
|
|
53823
55072
|
* @property {number} IDENTITY=5 IDENTITY value
|
|
53824
55073
|
* @property {number} GHOSTWRITER=6 GHOSTWRITER value
|
|
55074
|
+
* @property {number} RENEW_IDENTITY=7 RENEW_IDENTITY value
|
|
55075
|
+
* @property {number} RENEW_KV=8 RENEW_KV value
|
|
53825
55076
|
* @property {number} ANY_REPLID=2 ANY_REPLID value
|
|
53826
55077
|
* @property {number} ANY_USER=3 ANY_USER value
|
|
53827
55078
|
* @property {number} ANY_CLUSTER=4 ANY_CLUSTER value
|
|
@@ -53832,6 +55083,8 @@
|
|
|
53832
55083
|
values[valuesById[1] = "SIGN_INTERMEDIATE_CERT"] = 1;
|
|
53833
55084
|
values[valuesById[5] = "IDENTITY"] = 5;
|
|
53834
55085
|
values[valuesById[6] = "GHOSTWRITER"] = 6;
|
|
55086
|
+
values[valuesById[7] = "RENEW_IDENTITY"] = 7;
|
|
55087
|
+
values[valuesById[8] = "RENEW_KV"] = 8;
|
|
53835
55088
|
values[valuesById[2] = "ANY_REPLID"] = 2;
|
|
53836
55089
|
values[valuesById[3] = "ANY_USER"] = 3;
|
|
53837
55090
|
values[valuesById[4] = "ANY_CLUSTER"] = 4;
|
|
@@ -54054,6 +55307,8 @@
|
|
|
54054
55307
|
case 1:
|
|
54055
55308
|
case 5:
|
|
54056
55309
|
case 6:
|
|
55310
|
+
case 7:
|
|
55311
|
+
case 8:
|
|
54057
55312
|
case 2:
|
|
54058
55313
|
case 3:
|
|
54059
55314
|
case 4:
|
|
@@ -54098,6 +55353,14 @@
|
|
|
54098
55353
|
case 6:
|
|
54099
55354
|
message.flag = 6;
|
|
54100
55355
|
break;
|
|
55356
|
+
case "RENEW_IDENTITY":
|
|
55357
|
+
case 7:
|
|
55358
|
+
message.flag = 7;
|
|
55359
|
+
break;
|
|
55360
|
+
case "RENEW_KV":
|
|
55361
|
+
case 8:
|
|
55362
|
+
message.flag = 8;
|
|
55363
|
+
break;
|
|
54101
55364
|
case "ANY_REPLID":
|
|
54102
55365
|
case 2:
|
|
54103
55366
|
message.flag = 2;
|