@replit/protocol 0.2.97 → 0.2.99
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 +611 -2
- package/main/index.js +1480 -4
- package/main/index.js.flow +866 -1
- package/package.json +2 -2
- package/yarn-error.log +386 -0
package/main/index.js
CHANGED
|
@@ -54784,6 +54784,7 @@
|
|
|
54784
54784
|
* @property {boolean|null} [ephemeral] GovalReplIdentity ephemeral
|
|
54785
54785
|
* @property {string|null} [originReplid] GovalReplIdentity originReplid
|
|
54786
54786
|
* @property {number|null} [userId] GovalReplIdentity userId
|
|
54787
|
+
* @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] GovalReplIdentity buildInfo
|
|
54787
54788
|
*/
|
|
54788
54789
|
|
|
54789
54790
|
/**
|
|
@@ -54856,6 +54857,14 @@
|
|
|
54856
54857
|
*/
|
|
54857
54858
|
GovalReplIdentity.prototype.userId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
54858
54859
|
|
|
54860
|
+
/**
|
|
54861
|
+
* GovalReplIdentity buildInfo.
|
|
54862
|
+
* @member {replit.goval.api.repl.BuildInfo|null|undefined} buildInfo
|
|
54863
|
+
* @memberof replit.goval.api.GovalReplIdentity
|
|
54864
|
+
* @instance
|
|
54865
|
+
*/
|
|
54866
|
+
GovalReplIdentity.prototype.buildInfo = null;
|
|
54867
|
+
|
|
54859
54868
|
/**
|
|
54860
54869
|
* Creates a new GovalReplIdentity instance using the specified properties.
|
|
54861
54870
|
* @function create
|
|
@@ -54894,6 +54903,8 @@
|
|
|
54894
54903
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.originReplid);
|
|
54895
54904
|
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
54896
54905
|
writer.uint32(/* id 7, wireType 0 =*/56).int64(message.userId);
|
|
54906
|
+
if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
|
|
54907
|
+
$root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
54897
54908
|
return writer;
|
|
54898
54909
|
};
|
|
54899
54910
|
|
|
@@ -54949,6 +54960,9 @@
|
|
|
54949
54960
|
case 7:
|
|
54950
54961
|
message.userId = reader.int64();
|
|
54951
54962
|
break;
|
|
54963
|
+
case 8:
|
|
54964
|
+
message.buildInfo = $root.replit.goval.api.repl.BuildInfo.decode(reader, reader.uint32());
|
|
54965
|
+
break;
|
|
54952
54966
|
default:
|
|
54953
54967
|
reader.skipType(tag & 7);
|
|
54954
54968
|
break;
|
|
@@ -55005,6 +55019,11 @@
|
|
|
55005
55019
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
55006
55020
|
if (!$util.isInteger(message.userId) && !(message.userId && $util.isInteger(message.userId.low) && $util.isInteger(message.userId.high)))
|
|
55007
55021
|
return "userId: integer|Long expected";
|
|
55022
|
+
if (message.buildInfo != null && message.hasOwnProperty("buildInfo")) {
|
|
55023
|
+
var error = $root.replit.goval.api.repl.BuildInfo.verify(message.buildInfo);
|
|
55024
|
+
if (error)
|
|
55025
|
+
return "buildInfo." + error;
|
|
55026
|
+
}
|
|
55008
55027
|
return null;
|
|
55009
55028
|
};
|
|
55010
55029
|
|
|
@@ -55041,6 +55060,11 @@
|
|
|
55041
55060
|
message.userId = object.userId;
|
|
55042
55061
|
else if (typeof object.userId === "object")
|
|
55043
55062
|
message.userId = new $util.LongBits(object.userId.low >>> 0, object.userId.high >>> 0).toNumber();
|
|
55063
|
+
if (object.buildInfo != null) {
|
|
55064
|
+
if (typeof object.buildInfo !== "object")
|
|
55065
|
+
throw TypeError(".replit.goval.api.GovalReplIdentity.buildInfo: object expected");
|
|
55066
|
+
message.buildInfo = $root.replit.goval.api.repl.BuildInfo.fromObject(object.buildInfo);
|
|
55067
|
+
}
|
|
55044
55068
|
return message;
|
|
55045
55069
|
};
|
|
55046
55070
|
|
|
@@ -55069,6 +55093,7 @@
|
|
|
55069
55093
|
object.userId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
55070
55094
|
} else
|
|
55071
55095
|
object.userId = options.longs === String ? "0" : 0;
|
|
55096
|
+
object.buildInfo = null;
|
|
55072
55097
|
}
|
|
55073
55098
|
if (message.replid != null && message.hasOwnProperty("replid"))
|
|
55074
55099
|
object.replid = message.replid;
|
|
@@ -55087,6 +55112,8 @@
|
|
|
55087
55112
|
object.userId = options.longs === String ? String(message.userId) : message.userId;
|
|
55088
55113
|
else
|
|
55089
55114
|
object.userId = options.longs === String ? $util.Long.prototype.toString.call(message.userId) : options.longs === Number ? new $util.LongBits(message.userId.low >>> 0, message.userId.high >>> 0).toNumber() : message.userId;
|
|
55115
|
+
if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
|
|
55116
|
+
object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
|
|
55090
55117
|
return object;
|
|
55091
55118
|
};
|
|
55092
55119
|
|
|
@@ -55112,6 +55139,7 @@
|
|
|
55112
55139
|
* @interface ILoreCommand
|
|
55113
55140
|
* @property {replit.goval.api.ClusterTransfer|replit.goval.api.IClusterTransfer|null} [clusterTransfer] LoreCommand clusterTransfer
|
|
55114
55141
|
* @property {replit.goval.api.SoftTakedown|replit.goval.api.ISoftTakedown|null} [softTakedown] LoreCommand softTakedown
|
|
55142
|
+
* @property {replit.goval.api.Takedown|replit.goval.api.ITakedown|null} [takedown] LoreCommand takedown
|
|
55115
55143
|
* @property {replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand|null} [govalCommand] LoreCommand govalCommand
|
|
55116
55144
|
* @property {replit.goval.api.MultiGovalCommand|replit.goval.api.IMultiGovalCommand|null} [multiGovalCommand] LoreCommand multiGovalCommand
|
|
55117
55145
|
* @property {replit.goval.api.Restore|replit.goval.api.IRestore|null} [restore] LoreCommand restore
|
|
@@ -55147,6 +55175,14 @@
|
|
|
55147
55175
|
*/
|
|
55148
55176
|
LoreCommand.prototype.softTakedown = null;
|
|
55149
55177
|
|
|
55178
|
+
/**
|
|
55179
|
+
* LoreCommand takedown.
|
|
55180
|
+
* @member {replit.goval.api.Takedown|null|undefined} takedown
|
|
55181
|
+
* @memberof replit.goval.api.LoreCommand
|
|
55182
|
+
* @instance
|
|
55183
|
+
*/
|
|
55184
|
+
LoreCommand.prototype.takedown = null;
|
|
55185
|
+
|
|
55150
55186
|
/**
|
|
55151
55187
|
* LoreCommand govalCommand.
|
|
55152
55188
|
* @member {replit.goval.api.GovalCommand|null|undefined} govalCommand
|
|
@@ -55176,12 +55212,12 @@
|
|
|
55176
55212
|
|
|
55177
55213
|
/**
|
|
55178
55214
|
* LoreCommand command.
|
|
55179
|
-
* @member {"clusterTransfer"|"softTakedown"|"govalCommand"|"multiGovalCommand"|"restore"|undefined} command
|
|
55215
|
+
* @member {"clusterTransfer"|"softTakedown"|"takedown"|"govalCommand"|"multiGovalCommand"|"restore"|undefined} command
|
|
55180
55216
|
* @memberof replit.goval.api.LoreCommand
|
|
55181
55217
|
* @instance
|
|
55182
55218
|
*/
|
|
55183
55219
|
Object.defineProperty(LoreCommand.prototype, "command", {
|
|
55184
|
-
get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "govalCommand", "multiGovalCommand", "restore"]),
|
|
55220
|
+
get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "takedown", "govalCommand", "multiGovalCommand", "restore"]),
|
|
55185
55221
|
set: $util.oneOfSetter($oneOfFields)
|
|
55186
55222
|
});
|
|
55187
55223
|
|
|
@@ -55219,6 +55255,8 @@
|
|
|
55219
55255
|
$root.replit.goval.api.Restore.encode(message.restore, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
55220
55256
|
if (message.multiGovalCommand != null && Object.hasOwnProperty.call(message, "multiGovalCommand"))
|
|
55221
55257
|
$root.replit.goval.api.MultiGovalCommand.encode(message.multiGovalCommand, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
55258
|
+
if (message.takedown != null && Object.hasOwnProperty.call(message, "takedown"))
|
|
55259
|
+
$root.replit.goval.api.Takedown.encode(message.takedown, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
55222
55260
|
return writer;
|
|
55223
55261
|
};
|
|
55224
55262
|
|
|
@@ -55259,6 +55297,9 @@
|
|
|
55259
55297
|
case 2:
|
|
55260
55298
|
message.softTakedown = $root.replit.goval.api.SoftTakedown.decode(reader, reader.uint32());
|
|
55261
55299
|
break;
|
|
55300
|
+
case 6:
|
|
55301
|
+
message.takedown = $root.replit.goval.api.Takedown.decode(reader, reader.uint32());
|
|
55302
|
+
break;
|
|
55262
55303
|
case 3:
|
|
55263
55304
|
message.govalCommand = $root.replit.goval.api.GovalCommand.decode(reader, reader.uint32());
|
|
55264
55305
|
break;
|
|
@@ -55322,6 +55363,16 @@
|
|
|
55322
55363
|
return "softTakedown." + error;
|
|
55323
55364
|
}
|
|
55324
55365
|
}
|
|
55366
|
+
if (message.takedown != null && message.hasOwnProperty("takedown")) {
|
|
55367
|
+
if (properties.command === 1)
|
|
55368
|
+
return "command: multiple values";
|
|
55369
|
+
properties.command = 1;
|
|
55370
|
+
{
|
|
55371
|
+
var error = $root.replit.goval.api.Takedown.verify(message.takedown);
|
|
55372
|
+
if (error)
|
|
55373
|
+
return "takedown." + error;
|
|
55374
|
+
}
|
|
55375
|
+
}
|
|
55325
55376
|
if (message.govalCommand != null && message.hasOwnProperty("govalCommand")) {
|
|
55326
55377
|
if (properties.command === 1)
|
|
55327
55378
|
return "command: multiple values";
|
|
@@ -55377,6 +55428,11 @@
|
|
|
55377
55428
|
throw TypeError(".replit.goval.api.LoreCommand.softTakedown: object expected");
|
|
55378
55429
|
message.softTakedown = $root.replit.goval.api.SoftTakedown.fromObject(object.softTakedown);
|
|
55379
55430
|
}
|
|
55431
|
+
if (object.takedown != null) {
|
|
55432
|
+
if (typeof object.takedown !== "object")
|
|
55433
|
+
throw TypeError(".replit.goval.api.LoreCommand.takedown: object expected");
|
|
55434
|
+
message.takedown = $root.replit.goval.api.Takedown.fromObject(object.takedown);
|
|
55435
|
+
}
|
|
55380
55436
|
if (object.govalCommand != null) {
|
|
55381
55437
|
if (typeof object.govalCommand !== "object")
|
|
55382
55438
|
throw TypeError(".replit.goval.api.LoreCommand.govalCommand: object expected");
|
|
@@ -55433,6 +55489,11 @@
|
|
|
55433
55489
|
if (options.oneofs)
|
|
55434
55490
|
object.command = "multiGovalCommand";
|
|
55435
55491
|
}
|
|
55492
|
+
if (message.takedown != null && message.hasOwnProperty("takedown")) {
|
|
55493
|
+
object.takedown = $root.replit.goval.api.Takedown.toObject(message.takedown, options);
|
|
55494
|
+
if (options.oneofs)
|
|
55495
|
+
object.command = "takedown";
|
|
55496
|
+
}
|
|
55436
55497
|
return object;
|
|
55437
55498
|
};
|
|
55438
55499
|
|
|
@@ -55959,6 +56020,192 @@
|
|
|
55959
56020
|
return SoftTakedown;
|
|
55960
56021
|
})();
|
|
55961
56022
|
|
|
56023
|
+
api.Takedown = (function() {
|
|
56024
|
+
|
|
56025
|
+
/**
|
|
56026
|
+
* Properties of a Takedown.
|
|
56027
|
+
* @memberof replit.goval.api
|
|
56028
|
+
* @interface ITakedown
|
|
56029
|
+
* @property {string|null} [replId] Takedown replId
|
|
56030
|
+
*/
|
|
56031
|
+
|
|
56032
|
+
/**
|
|
56033
|
+
* Constructs a new Takedown.
|
|
56034
|
+
* @memberof replit.goval.api
|
|
56035
|
+
* @classdesc Represents a Takedown.
|
|
56036
|
+
* @constructor
|
|
56037
|
+
* @param {replit.goval.api.ITakedown=} [properties] Properties to set
|
|
56038
|
+
*/
|
|
56039
|
+
function Takedown(properties) {
|
|
56040
|
+
if (properties)
|
|
56041
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
56042
|
+
if (properties[keys[i]] != null)
|
|
56043
|
+
this[keys[i]] = properties[keys[i]];
|
|
56044
|
+
}
|
|
56045
|
+
|
|
56046
|
+
/**
|
|
56047
|
+
* Takedown replId.
|
|
56048
|
+
* @member {string} replId
|
|
56049
|
+
* @memberof replit.goval.api.Takedown
|
|
56050
|
+
* @instance
|
|
56051
|
+
*/
|
|
56052
|
+
Takedown.prototype.replId = "";
|
|
56053
|
+
|
|
56054
|
+
/**
|
|
56055
|
+
* Creates a new Takedown instance using the specified properties.
|
|
56056
|
+
* @function create
|
|
56057
|
+
* @memberof replit.goval.api.Takedown
|
|
56058
|
+
* @static
|
|
56059
|
+
* @param {replit.goval.api.ITakedown=} [properties] Properties to set
|
|
56060
|
+
* @returns {replit.goval.api.Takedown} Takedown instance
|
|
56061
|
+
*/
|
|
56062
|
+
Takedown.create = function create(properties) {
|
|
56063
|
+
return Takedown.fromObject(properties);
|
|
56064
|
+
};
|
|
56065
|
+
|
|
56066
|
+
/**
|
|
56067
|
+
* Encodes the specified Takedown message. Does not implicitly {@link replit.goval.api.Takedown.verify|verify} messages.
|
|
56068
|
+
* @function encode
|
|
56069
|
+
* @memberof replit.goval.api.Takedown
|
|
56070
|
+
* @static
|
|
56071
|
+
* @param {replit.goval.api.Takedown} message Takedown message or plain object to encode
|
|
56072
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56073
|
+
* @returns {$protobuf.Writer} Writer
|
|
56074
|
+
*/
|
|
56075
|
+
Takedown.encode = function encode(message, writer) {
|
|
56076
|
+
if (!writer)
|
|
56077
|
+
writer = $Writer.create();
|
|
56078
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
56079
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
56080
|
+
return writer;
|
|
56081
|
+
};
|
|
56082
|
+
|
|
56083
|
+
/**
|
|
56084
|
+
* Encodes the specified Takedown message, length delimited. Does not implicitly {@link replit.goval.api.Takedown.verify|verify} messages.
|
|
56085
|
+
* @function encodeDelimited
|
|
56086
|
+
* @memberof replit.goval.api.Takedown
|
|
56087
|
+
* @static
|
|
56088
|
+
* @param {replit.goval.api.Takedown} message Takedown message or plain object to encode
|
|
56089
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56090
|
+
* @returns {$protobuf.Writer} Writer
|
|
56091
|
+
*/
|
|
56092
|
+
Takedown.encodeDelimited = function encodeDelimited(message, writer) {
|
|
56093
|
+
return this.encode(message, writer).ldelim();
|
|
56094
|
+
};
|
|
56095
|
+
|
|
56096
|
+
/**
|
|
56097
|
+
* Decodes a Takedown message from the specified reader or buffer.
|
|
56098
|
+
* @function decode
|
|
56099
|
+
* @memberof replit.goval.api.Takedown
|
|
56100
|
+
* @static
|
|
56101
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56102
|
+
* @param {number} [length] Message length if known beforehand
|
|
56103
|
+
* @returns {replit.goval.api.Takedown} Takedown
|
|
56104
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56105
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56106
|
+
*/
|
|
56107
|
+
Takedown.decode = function decode(reader, length) {
|
|
56108
|
+
if (!(reader instanceof $Reader))
|
|
56109
|
+
reader = $Reader.create(reader);
|
|
56110
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.Takedown();
|
|
56111
|
+
while (reader.pos < end) {
|
|
56112
|
+
var tag = reader.uint32();
|
|
56113
|
+
switch (tag >>> 3) {
|
|
56114
|
+
case 1:
|
|
56115
|
+
message.replId = reader.string();
|
|
56116
|
+
break;
|
|
56117
|
+
default:
|
|
56118
|
+
reader.skipType(tag & 7);
|
|
56119
|
+
break;
|
|
56120
|
+
}
|
|
56121
|
+
}
|
|
56122
|
+
return message;
|
|
56123
|
+
};
|
|
56124
|
+
|
|
56125
|
+
/**
|
|
56126
|
+
* Decodes a Takedown message from the specified reader or buffer, length delimited.
|
|
56127
|
+
* @function decodeDelimited
|
|
56128
|
+
* @memberof replit.goval.api.Takedown
|
|
56129
|
+
* @static
|
|
56130
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56131
|
+
* @returns {replit.goval.api.Takedown} Takedown
|
|
56132
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56133
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56134
|
+
*/
|
|
56135
|
+
Takedown.decodeDelimited = function decodeDelimited(reader) {
|
|
56136
|
+
if (!(reader instanceof $Reader))
|
|
56137
|
+
reader = new $Reader(reader);
|
|
56138
|
+
return this.decode(reader, reader.uint32());
|
|
56139
|
+
};
|
|
56140
|
+
|
|
56141
|
+
/**
|
|
56142
|
+
* Verifies a Takedown message.
|
|
56143
|
+
* @function verify
|
|
56144
|
+
* @memberof replit.goval.api.Takedown
|
|
56145
|
+
* @static
|
|
56146
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
56147
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
56148
|
+
*/
|
|
56149
|
+
Takedown.verify = function verify(message) {
|
|
56150
|
+
if (typeof message !== "object" || message === null)
|
|
56151
|
+
return "object expected";
|
|
56152
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
56153
|
+
if (!$util.isString(message.replId))
|
|
56154
|
+
return "replId: string expected";
|
|
56155
|
+
return null;
|
|
56156
|
+
};
|
|
56157
|
+
|
|
56158
|
+
/**
|
|
56159
|
+
* Creates a Takedown message from a plain object. Also converts values to their respective internal types.
|
|
56160
|
+
* @function fromObject
|
|
56161
|
+
* @memberof replit.goval.api.Takedown
|
|
56162
|
+
* @static
|
|
56163
|
+
* @param {Object.<string,*>} object Plain object
|
|
56164
|
+
* @returns {replit.goval.api.Takedown} Takedown
|
|
56165
|
+
*/
|
|
56166
|
+
Takedown.fromObject = function fromObject(object) {
|
|
56167
|
+
if (object instanceof $root.replit.goval.api.Takedown)
|
|
56168
|
+
return object;
|
|
56169
|
+
var message = new $root.replit.goval.api.Takedown();
|
|
56170
|
+
if (object.replId != null)
|
|
56171
|
+
message.replId = String(object.replId);
|
|
56172
|
+
return message;
|
|
56173
|
+
};
|
|
56174
|
+
|
|
56175
|
+
/**
|
|
56176
|
+
* Creates a plain object from a Takedown message. Also converts values to other types if specified.
|
|
56177
|
+
* @function toObject
|
|
56178
|
+
* @memberof replit.goval.api.Takedown
|
|
56179
|
+
* @static
|
|
56180
|
+
* @param {replit.goval.api.Takedown} message Takedown
|
|
56181
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
56182
|
+
* @returns {Object.<string,*>} Plain object
|
|
56183
|
+
*/
|
|
56184
|
+
Takedown.toObject = function toObject(message, options) {
|
|
56185
|
+
if (!options)
|
|
56186
|
+
options = {};
|
|
56187
|
+
var object = {};
|
|
56188
|
+
if (options.defaults)
|
|
56189
|
+
object.replId = "";
|
|
56190
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
56191
|
+
object.replId = message.replId;
|
|
56192
|
+
return object;
|
|
56193
|
+
};
|
|
56194
|
+
|
|
56195
|
+
/**
|
|
56196
|
+
* Converts this Takedown to JSON.
|
|
56197
|
+
* @function toJSON
|
|
56198
|
+
* @memberof replit.goval.api.Takedown
|
|
56199
|
+
* @instance
|
|
56200
|
+
* @returns {Object.<string,*>} JSON object
|
|
56201
|
+
*/
|
|
56202
|
+
Takedown.prototype.toJSON = function toJSON() {
|
|
56203
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
56204
|
+
};
|
|
56205
|
+
|
|
56206
|
+
return Takedown;
|
|
56207
|
+
})();
|
|
56208
|
+
|
|
55962
56209
|
api.GovalCommand = (function() {
|
|
55963
56210
|
|
|
55964
56211
|
/**
|
|
@@ -55970,6 +56217,8 @@
|
|
|
55970
56217
|
* @property {replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null} [killRepl] GovalCommand killRepl
|
|
55971
56218
|
* @property {replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null} [updateSourceRepl] GovalCommand updateSourceRepl
|
|
55972
56219
|
* @property {replit.goval.api.UpdateReplFlags|replit.goval.api.IUpdateReplFlags|null} [updateReplFlags] GovalCommand updateReplFlags
|
|
56220
|
+
* @property {replit.goval.api.SoftTakedown|replit.goval.api.ISoftTakedown|null} [softTakedown] GovalCommand softTakedown
|
|
56221
|
+
* @property {replit.goval.api.Takedown|replit.goval.api.ITakedown|null} [takedown] GovalCommand takedown
|
|
55973
56222
|
*/
|
|
55974
56223
|
|
|
55975
56224
|
/**
|
|
@@ -56026,17 +56275,33 @@
|
|
|
56026
56275
|
*/
|
|
56027
56276
|
GovalCommand.prototype.updateReplFlags = null;
|
|
56028
56277
|
|
|
56278
|
+
/**
|
|
56279
|
+
* GovalCommand softTakedown.
|
|
56280
|
+
* @member {replit.goval.api.SoftTakedown|null|undefined} softTakedown
|
|
56281
|
+
* @memberof replit.goval.api.GovalCommand
|
|
56282
|
+
* @instance
|
|
56283
|
+
*/
|
|
56284
|
+
GovalCommand.prototype.softTakedown = null;
|
|
56285
|
+
|
|
56286
|
+
/**
|
|
56287
|
+
* GovalCommand takedown.
|
|
56288
|
+
* @member {replit.goval.api.Takedown|null|undefined} takedown
|
|
56289
|
+
* @memberof replit.goval.api.GovalCommand
|
|
56290
|
+
* @instance
|
|
56291
|
+
*/
|
|
56292
|
+
GovalCommand.prototype.takedown = null;
|
|
56293
|
+
|
|
56029
56294
|
// OneOf field names bound to virtual getters and setters
|
|
56030
56295
|
var $oneOfFields;
|
|
56031
56296
|
|
|
56032
56297
|
/**
|
|
56033
56298
|
* GovalCommand command.
|
|
56034
|
-
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|undefined} command
|
|
56299
|
+
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|"softTakedown"|"takedown"|undefined} command
|
|
56035
56300
|
* @memberof replit.goval.api.GovalCommand
|
|
56036
56301
|
* @instance
|
|
56037
56302
|
*/
|
|
56038
56303
|
Object.defineProperty(GovalCommand.prototype, "command", {
|
|
56039
|
-
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl", "updateReplFlags"]),
|
|
56304
|
+
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl", "updateReplFlags", "softTakedown", "takedown"]),
|
|
56040
56305
|
set: $util.oneOfSetter($oneOfFields)
|
|
56041
56306
|
});
|
|
56042
56307
|
|
|
@@ -56074,6 +56339,10 @@
|
|
|
56074
56339
|
$root.replit.goval.api.UpdateSourceRepl.encode(message.updateSourceRepl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
56075
56340
|
if (message.updateReplFlags != null && Object.hasOwnProperty.call(message, "updateReplFlags"))
|
|
56076
56341
|
$root.replit.goval.api.UpdateReplFlags.encode(message.updateReplFlags, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
56342
|
+
if (message.softTakedown != null && Object.hasOwnProperty.call(message, "softTakedown"))
|
|
56343
|
+
$root.replit.goval.api.SoftTakedown.encode(message.softTakedown, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
56344
|
+
if (message.takedown != null && Object.hasOwnProperty.call(message, "takedown"))
|
|
56345
|
+
$root.replit.goval.api.Takedown.encode(message.takedown, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
56077
56346
|
return writer;
|
|
56078
56347
|
};
|
|
56079
56348
|
|
|
@@ -56123,6 +56392,12 @@
|
|
|
56123
56392
|
case 5:
|
|
56124
56393
|
message.updateReplFlags = $root.replit.goval.api.UpdateReplFlags.decode(reader, reader.uint32());
|
|
56125
56394
|
break;
|
|
56395
|
+
case 6:
|
|
56396
|
+
message.softTakedown = $root.replit.goval.api.SoftTakedown.decode(reader, reader.uint32());
|
|
56397
|
+
break;
|
|
56398
|
+
case 7:
|
|
56399
|
+
message.takedown = $root.replit.goval.api.Takedown.decode(reader, reader.uint32());
|
|
56400
|
+
break;
|
|
56126
56401
|
default:
|
|
56127
56402
|
reader.skipType(tag & 7);
|
|
56128
56403
|
break;
|
|
@@ -56207,6 +56482,26 @@
|
|
|
56207
56482
|
return "updateReplFlags." + error;
|
|
56208
56483
|
}
|
|
56209
56484
|
}
|
|
56485
|
+
if (message.softTakedown != null && message.hasOwnProperty("softTakedown")) {
|
|
56486
|
+
if (properties.command === 1)
|
|
56487
|
+
return "command: multiple values";
|
|
56488
|
+
properties.command = 1;
|
|
56489
|
+
{
|
|
56490
|
+
var error = $root.replit.goval.api.SoftTakedown.verify(message.softTakedown);
|
|
56491
|
+
if (error)
|
|
56492
|
+
return "softTakedown." + error;
|
|
56493
|
+
}
|
|
56494
|
+
}
|
|
56495
|
+
if (message.takedown != null && message.hasOwnProperty("takedown")) {
|
|
56496
|
+
if (properties.command === 1)
|
|
56497
|
+
return "command: multiple values";
|
|
56498
|
+
properties.command = 1;
|
|
56499
|
+
{
|
|
56500
|
+
var error = $root.replit.goval.api.Takedown.verify(message.takedown);
|
|
56501
|
+
if (error)
|
|
56502
|
+
return "takedown." + error;
|
|
56503
|
+
}
|
|
56504
|
+
}
|
|
56210
56505
|
return null;
|
|
56211
56506
|
};
|
|
56212
56507
|
|
|
@@ -56247,6 +56542,16 @@
|
|
|
56247
56542
|
throw TypeError(".replit.goval.api.GovalCommand.updateReplFlags: object expected");
|
|
56248
56543
|
message.updateReplFlags = $root.replit.goval.api.UpdateReplFlags.fromObject(object.updateReplFlags);
|
|
56249
56544
|
}
|
|
56545
|
+
if (object.softTakedown != null) {
|
|
56546
|
+
if (typeof object.softTakedown !== "object")
|
|
56547
|
+
throw TypeError(".replit.goval.api.GovalCommand.softTakedown: object expected");
|
|
56548
|
+
message.softTakedown = $root.replit.goval.api.SoftTakedown.fromObject(object.softTakedown);
|
|
56549
|
+
}
|
|
56550
|
+
if (object.takedown != null) {
|
|
56551
|
+
if (typeof object.takedown !== "object")
|
|
56552
|
+
throw TypeError(".replit.goval.api.GovalCommand.takedown: object expected");
|
|
56553
|
+
message.takedown = $root.replit.goval.api.Takedown.fromObject(object.takedown);
|
|
56554
|
+
}
|
|
56250
56555
|
return message;
|
|
56251
56556
|
};
|
|
56252
56557
|
|
|
@@ -56288,6 +56593,16 @@
|
|
|
56288
56593
|
if (options.oneofs)
|
|
56289
56594
|
object.command = "updateReplFlags";
|
|
56290
56595
|
}
|
|
56596
|
+
if (message.softTakedown != null && message.hasOwnProperty("softTakedown")) {
|
|
56597
|
+
object.softTakedown = $root.replit.goval.api.SoftTakedown.toObject(message.softTakedown, options);
|
|
56598
|
+
if (options.oneofs)
|
|
56599
|
+
object.command = "softTakedown";
|
|
56600
|
+
}
|
|
56601
|
+
if (message.takedown != null && message.hasOwnProperty("takedown")) {
|
|
56602
|
+
object.takedown = $root.replit.goval.api.Takedown.toObject(message.takedown, options);
|
|
56603
|
+
if (options.oneofs)
|
|
56604
|
+
object.command = "takedown";
|
|
56605
|
+
}
|
|
56291
56606
|
return object;
|
|
56292
56607
|
};
|
|
56293
56608
|
|
|
@@ -60064,6 +60379,8 @@
|
|
|
60064
60379
|
* @interface IBuildInfo
|
|
60065
60380
|
* @property {string|null} [deploymentId] BuildInfo deploymentId
|
|
60066
60381
|
* @property {string|null} [url] BuildInfo url
|
|
60382
|
+
* @property {string|null} [buildId] BuildInfo buildId
|
|
60383
|
+
* @property {string|null} [machineTier] BuildInfo machineTier
|
|
60067
60384
|
*/
|
|
60068
60385
|
|
|
60069
60386
|
/**
|
|
@@ -60096,6 +60413,22 @@
|
|
|
60096
60413
|
*/
|
|
60097
60414
|
BuildInfo.prototype.url = "";
|
|
60098
60415
|
|
|
60416
|
+
/**
|
|
60417
|
+
* BuildInfo buildId.
|
|
60418
|
+
* @member {string} buildId
|
|
60419
|
+
* @memberof replit.goval.api.repl.BuildInfo
|
|
60420
|
+
* @instance
|
|
60421
|
+
*/
|
|
60422
|
+
BuildInfo.prototype.buildId = "";
|
|
60423
|
+
|
|
60424
|
+
/**
|
|
60425
|
+
* BuildInfo machineTier.
|
|
60426
|
+
* @member {string} machineTier
|
|
60427
|
+
* @memberof replit.goval.api.repl.BuildInfo
|
|
60428
|
+
* @instance
|
|
60429
|
+
*/
|
|
60430
|
+
BuildInfo.prototype.machineTier = "";
|
|
60431
|
+
|
|
60099
60432
|
/**
|
|
60100
60433
|
* Creates a new BuildInfo instance using the specified properties.
|
|
60101
60434
|
* @function create
|
|
@@ -60124,6 +60457,10 @@
|
|
|
60124
60457
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.deploymentId);
|
|
60125
60458
|
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
60126
60459
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
|
|
60460
|
+
if (message.buildId != null && Object.hasOwnProperty.call(message, "buildId"))
|
|
60461
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.buildId);
|
|
60462
|
+
if (message.machineTier != null && Object.hasOwnProperty.call(message, "machineTier"))
|
|
60463
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.machineTier);
|
|
60127
60464
|
return writer;
|
|
60128
60465
|
};
|
|
60129
60466
|
|
|
@@ -60164,6 +60501,12 @@
|
|
|
60164
60501
|
case 2:
|
|
60165
60502
|
message.url = reader.string();
|
|
60166
60503
|
break;
|
|
60504
|
+
case 3:
|
|
60505
|
+
message.buildId = reader.string();
|
|
60506
|
+
break;
|
|
60507
|
+
case 4:
|
|
60508
|
+
message.machineTier = reader.string();
|
|
60509
|
+
break;
|
|
60167
60510
|
default:
|
|
60168
60511
|
reader.skipType(tag & 7);
|
|
60169
60512
|
break;
|
|
@@ -60205,6 +60548,12 @@
|
|
|
60205
60548
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
60206
60549
|
if (!$util.isString(message.url))
|
|
60207
60550
|
return "url: string expected";
|
|
60551
|
+
if (message.buildId != null && message.hasOwnProperty("buildId"))
|
|
60552
|
+
if (!$util.isString(message.buildId))
|
|
60553
|
+
return "buildId: string expected";
|
|
60554
|
+
if (message.machineTier != null && message.hasOwnProperty("machineTier"))
|
|
60555
|
+
if (!$util.isString(message.machineTier))
|
|
60556
|
+
return "machineTier: string expected";
|
|
60208
60557
|
return null;
|
|
60209
60558
|
};
|
|
60210
60559
|
|
|
@@ -60224,6 +60573,10 @@
|
|
|
60224
60573
|
message.deploymentId = String(object.deploymentId);
|
|
60225
60574
|
if (object.url != null)
|
|
60226
60575
|
message.url = String(object.url);
|
|
60576
|
+
if (object.buildId != null)
|
|
60577
|
+
message.buildId = String(object.buildId);
|
|
60578
|
+
if (object.machineTier != null)
|
|
60579
|
+
message.machineTier = String(object.machineTier);
|
|
60227
60580
|
return message;
|
|
60228
60581
|
};
|
|
60229
60582
|
|
|
@@ -60243,11 +60596,17 @@
|
|
|
60243
60596
|
if (options.defaults) {
|
|
60244
60597
|
object.deploymentId = "";
|
|
60245
60598
|
object.url = "";
|
|
60599
|
+
object.buildId = "";
|
|
60600
|
+
object.machineTier = "";
|
|
60246
60601
|
}
|
|
60247
60602
|
if (message.deploymentId != null && message.hasOwnProperty("deploymentId"))
|
|
60248
60603
|
object.deploymentId = message.deploymentId;
|
|
60249
60604
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
60250
60605
|
object.url = message.url;
|
|
60606
|
+
if (message.buildId != null && message.hasOwnProperty("buildId"))
|
|
60607
|
+
object.buildId = message.buildId;
|
|
60608
|
+
if (message.machineTier != null && message.hasOwnProperty("machineTier"))
|
|
60609
|
+
object.machineTier = message.machineTier;
|
|
60251
60610
|
return object;
|
|
60252
60611
|
};
|
|
60253
60612
|
|
|
@@ -60268,6 +60627,1123 @@
|
|
|
60268
60627
|
return repl;
|
|
60269
60628
|
})();
|
|
60270
60629
|
|
|
60630
|
+
api.PrivateReplsPowerup = (function() {
|
|
60631
|
+
|
|
60632
|
+
/**
|
|
60633
|
+
* Properties of a PrivateReplsPowerup.
|
|
60634
|
+
* @memberof replit.goval.api
|
|
60635
|
+
* @interface IPrivateReplsPowerup
|
|
60636
|
+
* @property {boolean|null} [enabled] PrivateReplsPowerup enabled
|
|
60637
|
+
*/
|
|
60638
|
+
|
|
60639
|
+
/**
|
|
60640
|
+
* Constructs a new PrivateReplsPowerup.
|
|
60641
|
+
* @memberof replit.goval.api
|
|
60642
|
+
* @classdesc Represents a PrivateReplsPowerup.
|
|
60643
|
+
* @constructor
|
|
60644
|
+
* @param {replit.goval.api.IPrivateReplsPowerup=} [properties] Properties to set
|
|
60645
|
+
*/
|
|
60646
|
+
function PrivateReplsPowerup(properties) {
|
|
60647
|
+
if (properties)
|
|
60648
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60649
|
+
if (properties[keys[i]] != null)
|
|
60650
|
+
this[keys[i]] = properties[keys[i]];
|
|
60651
|
+
}
|
|
60652
|
+
|
|
60653
|
+
/**
|
|
60654
|
+
* PrivateReplsPowerup enabled.
|
|
60655
|
+
* @member {boolean} enabled
|
|
60656
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60657
|
+
* @instance
|
|
60658
|
+
*/
|
|
60659
|
+
PrivateReplsPowerup.prototype.enabled = false;
|
|
60660
|
+
|
|
60661
|
+
/**
|
|
60662
|
+
* Creates a new PrivateReplsPowerup instance using the specified properties.
|
|
60663
|
+
* @function create
|
|
60664
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60665
|
+
* @static
|
|
60666
|
+
* @param {replit.goval.api.IPrivateReplsPowerup=} [properties] Properties to set
|
|
60667
|
+
* @returns {replit.goval.api.PrivateReplsPowerup} PrivateReplsPowerup instance
|
|
60668
|
+
*/
|
|
60669
|
+
PrivateReplsPowerup.create = function create(properties) {
|
|
60670
|
+
return PrivateReplsPowerup.fromObject(properties);
|
|
60671
|
+
};
|
|
60672
|
+
|
|
60673
|
+
/**
|
|
60674
|
+
* Encodes the specified PrivateReplsPowerup message. Does not implicitly {@link replit.goval.api.PrivateReplsPowerup.verify|verify} messages.
|
|
60675
|
+
* @function encode
|
|
60676
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60677
|
+
* @static
|
|
60678
|
+
* @param {replit.goval.api.PrivateReplsPowerup} message PrivateReplsPowerup message or plain object to encode
|
|
60679
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60680
|
+
* @returns {$protobuf.Writer} Writer
|
|
60681
|
+
*/
|
|
60682
|
+
PrivateReplsPowerup.encode = function encode(message, writer) {
|
|
60683
|
+
if (!writer)
|
|
60684
|
+
writer = $Writer.create();
|
|
60685
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
60686
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
|
|
60687
|
+
return writer;
|
|
60688
|
+
};
|
|
60689
|
+
|
|
60690
|
+
/**
|
|
60691
|
+
* Encodes the specified PrivateReplsPowerup message, length delimited. Does not implicitly {@link replit.goval.api.PrivateReplsPowerup.verify|verify} messages.
|
|
60692
|
+
* @function encodeDelimited
|
|
60693
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60694
|
+
* @static
|
|
60695
|
+
* @param {replit.goval.api.PrivateReplsPowerup} message PrivateReplsPowerup message or plain object to encode
|
|
60696
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60697
|
+
* @returns {$protobuf.Writer} Writer
|
|
60698
|
+
*/
|
|
60699
|
+
PrivateReplsPowerup.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60700
|
+
return this.encode(message, writer).ldelim();
|
|
60701
|
+
};
|
|
60702
|
+
|
|
60703
|
+
/**
|
|
60704
|
+
* Decodes a PrivateReplsPowerup message from the specified reader or buffer.
|
|
60705
|
+
* @function decode
|
|
60706
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60707
|
+
* @static
|
|
60708
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60709
|
+
* @param {number} [length] Message length if known beforehand
|
|
60710
|
+
* @returns {replit.goval.api.PrivateReplsPowerup} PrivateReplsPowerup
|
|
60711
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60712
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60713
|
+
*/
|
|
60714
|
+
PrivateReplsPowerup.decode = function decode(reader, length) {
|
|
60715
|
+
if (!(reader instanceof $Reader))
|
|
60716
|
+
reader = $Reader.create(reader);
|
|
60717
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.PrivateReplsPowerup();
|
|
60718
|
+
while (reader.pos < end) {
|
|
60719
|
+
var tag = reader.uint32();
|
|
60720
|
+
switch (tag >>> 3) {
|
|
60721
|
+
case 1:
|
|
60722
|
+
message.enabled = reader.bool();
|
|
60723
|
+
break;
|
|
60724
|
+
default:
|
|
60725
|
+
reader.skipType(tag & 7);
|
|
60726
|
+
break;
|
|
60727
|
+
}
|
|
60728
|
+
}
|
|
60729
|
+
return message;
|
|
60730
|
+
};
|
|
60731
|
+
|
|
60732
|
+
/**
|
|
60733
|
+
* Decodes a PrivateReplsPowerup message from the specified reader or buffer, length delimited.
|
|
60734
|
+
* @function decodeDelimited
|
|
60735
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60736
|
+
* @static
|
|
60737
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60738
|
+
* @returns {replit.goval.api.PrivateReplsPowerup} PrivateReplsPowerup
|
|
60739
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60740
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60741
|
+
*/
|
|
60742
|
+
PrivateReplsPowerup.decodeDelimited = function decodeDelimited(reader) {
|
|
60743
|
+
if (!(reader instanceof $Reader))
|
|
60744
|
+
reader = new $Reader(reader);
|
|
60745
|
+
return this.decode(reader, reader.uint32());
|
|
60746
|
+
};
|
|
60747
|
+
|
|
60748
|
+
/**
|
|
60749
|
+
* Verifies a PrivateReplsPowerup message.
|
|
60750
|
+
* @function verify
|
|
60751
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60752
|
+
* @static
|
|
60753
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60754
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60755
|
+
*/
|
|
60756
|
+
PrivateReplsPowerup.verify = function verify(message) {
|
|
60757
|
+
if (typeof message !== "object" || message === null)
|
|
60758
|
+
return "object expected";
|
|
60759
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
60760
|
+
if (typeof message.enabled !== "boolean")
|
|
60761
|
+
return "enabled: boolean expected";
|
|
60762
|
+
return null;
|
|
60763
|
+
};
|
|
60764
|
+
|
|
60765
|
+
/**
|
|
60766
|
+
* Creates a PrivateReplsPowerup message from a plain object. Also converts values to their respective internal types.
|
|
60767
|
+
* @function fromObject
|
|
60768
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60769
|
+
* @static
|
|
60770
|
+
* @param {Object.<string,*>} object Plain object
|
|
60771
|
+
* @returns {replit.goval.api.PrivateReplsPowerup} PrivateReplsPowerup
|
|
60772
|
+
*/
|
|
60773
|
+
PrivateReplsPowerup.fromObject = function fromObject(object) {
|
|
60774
|
+
if (object instanceof $root.replit.goval.api.PrivateReplsPowerup)
|
|
60775
|
+
return object;
|
|
60776
|
+
var message = new $root.replit.goval.api.PrivateReplsPowerup();
|
|
60777
|
+
if (object.enabled != null)
|
|
60778
|
+
message.enabled = Boolean(object.enabled);
|
|
60779
|
+
return message;
|
|
60780
|
+
};
|
|
60781
|
+
|
|
60782
|
+
/**
|
|
60783
|
+
* Creates a plain object from a PrivateReplsPowerup message. Also converts values to other types if specified.
|
|
60784
|
+
* @function toObject
|
|
60785
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60786
|
+
* @static
|
|
60787
|
+
* @param {replit.goval.api.PrivateReplsPowerup} message PrivateReplsPowerup
|
|
60788
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60789
|
+
* @returns {Object.<string,*>} Plain object
|
|
60790
|
+
*/
|
|
60791
|
+
PrivateReplsPowerup.toObject = function toObject(message, options) {
|
|
60792
|
+
if (!options)
|
|
60793
|
+
options = {};
|
|
60794
|
+
var object = {};
|
|
60795
|
+
if (options.defaults)
|
|
60796
|
+
object.enabled = false;
|
|
60797
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
60798
|
+
object.enabled = message.enabled;
|
|
60799
|
+
return object;
|
|
60800
|
+
};
|
|
60801
|
+
|
|
60802
|
+
/**
|
|
60803
|
+
* Converts this PrivateReplsPowerup to JSON.
|
|
60804
|
+
* @function toJSON
|
|
60805
|
+
* @memberof replit.goval.api.PrivateReplsPowerup
|
|
60806
|
+
* @instance
|
|
60807
|
+
* @returns {Object.<string,*>} JSON object
|
|
60808
|
+
*/
|
|
60809
|
+
PrivateReplsPowerup.prototype.toJSON = function toJSON() {
|
|
60810
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60811
|
+
};
|
|
60812
|
+
|
|
60813
|
+
return PrivateReplsPowerup;
|
|
60814
|
+
})();
|
|
60815
|
+
|
|
60816
|
+
api.GhostwriterPowerup = (function() {
|
|
60817
|
+
|
|
60818
|
+
/**
|
|
60819
|
+
* Properties of a GhostwriterPowerup.
|
|
60820
|
+
* @memberof replit.goval.api
|
|
60821
|
+
* @interface IGhostwriterPowerup
|
|
60822
|
+
* @property {boolean|null} [enabled] GhostwriterPowerup enabled
|
|
60823
|
+
*/
|
|
60824
|
+
|
|
60825
|
+
/**
|
|
60826
|
+
* Constructs a new GhostwriterPowerup.
|
|
60827
|
+
* @memberof replit.goval.api
|
|
60828
|
+
* @classdesc Represents a GhostwriterPowerup.
|
|
60829
|
+
* @constructor
|
|
60830
|
+
* @param {replit.goval.api.IGhostwriterPowerup=} [properties] Properties to set
|
|
60831
|
+
*/
|
|
60832
|
+
function GhostwriterPowerup(properties) {
|
|
60833
|
+
if (properties)
|
|
60834
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60835
|
+
if (properties[keys[i]] != null)
|
|
60836
|
+
this[keys[i]] = properties[keys[i]];
|
|
60837
|
+
}
|
|
60838
|
+
|
|
60839
|
+
/**
|
|
60840
|
+
* GhostwriterPowerup enabled.
|
|
60841
|
+
* @member {boolean} enabled
|
|
60842
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60843
|
+
* @instance
|
|
60844
|
+
*/
|
|
60845
|
+
GhostwriterPowerup.prototype.enabled = false;
|
|
60846
|
+
|
|
60847
|
+
/**
|
|
60848
|
+
* Creates a new GhostwriterPowerup instance using the specified properties.
|
|
60849
|
+
* @function create
|
|
60850
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60851
|
+
* @static
|
|
60852
|
+
* @param {replit.goval.api.IGhostwriterPowerup=} [properties] Properties to set
|
|
60853
|
+
* @returns {replit.goval.api.GhostwriterPowerup} GhostwriterPowerup instance
|
|
60854
|
+
*/
|
|
60855
|
+
GhostwriterPowerup.create = function create(properties) {
|
|
60856
|
+
return GhostwriterPowerup.fromObject(properties);
|
|
60857
|
+
};
|
|
60858
|
+
|
|
60859
|
+
/**
|
|
60860
|
+
* Encodes the specified GhostwriterPowerup message. Does not implicitly {@link replit.goval.api.GhostwriterPowerup.verify|verify} messages.
|
|
60861
|
+
* @function encode
|
|
60862
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60863
|
+
* @static
|
|
60864
|
+
* @param {replit.goval.api.GhostwriterPowerup} message GhostwriterPowerup message or plain object to encode
|
|
60865
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60866
|
+
* @returns {$protobuf.Writer} Writer
|
|
60867
|
+
*/
|
|
60868
|
+
GhostwriterPowerup.encode = function encode(message, writer) {
|
|
60869
|
+
if (!writer)
|
|
60870
|
+
writer = $Writer.create();
|
|
60871
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
60872
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
|
|
60873
|
+
return writer;
|
|
60874
|
+
};
|
|
60875
|
+
|
|
60876
|
+
/**
|
|
60877
|
+
* Encodes the specified GhostwriterPowerup message, length delimited. Does not implicitly {@link replit.goval.api.GhostwriterPowerup.verify|verify} messages.
|
|
60878
|
+
* @function encodeDelimited
|
|
60879
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60880
|
+
* @static
|
|
60881
|
+
* @param {replit.goval.api.GhostwriterPowerup} message GhostwriterPowerup message or plain object to encode
|
|
60882
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60883
|
+
* @returns {$protobuf.Writer} Writer
|
|
60884
|
+
*/
|
|
60885
|
+
GhostwriterPowerup.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60886
|
+
return this.encode(message, writer).ldelim();
|
|
60887
|
+
};
|
|
60888
|
+
|
|
60889
|
+
/**
|
|
60890
|
+
* Decodes a GhostwriterPowerup message from the specified reader or buffer.
|
|
60891
|
+
* @function decode
|
|
60892
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60893
|
+
* @static
|
|
60894
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60895
|
+
* @param {number} [length] Message length if known beforehand
|
|
60896
|
+
* @returns {replit.goval.api.GhostwriterPowerup} GhostwriterPowerup
|
|
60897
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60898
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60899
|
+
*/
|
|
60900
|
+
GhostwriterPowerup.decode = function decode(reader, length) {
|
|
60901
|
+
if (!(reader instanceof $Reader))
|
|
60902
|
+
reader = $Reader.create(reader);
|
|
60903
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.GhostwriterPowerup();
|
|
60904
|
+
while (reader.pos < end) {
|
|
60905
|
+
var tag = reader.uint32();
|
|
60906
|
+
switch (tag >>> 3) {
|
|
60907
|
+
case 1:
|
|
60908
|
+
message.enabled = reader.bool();
|
|
60909
|
+
break;
|
|
60910
|
+
default:
|
|
60911
|
+
reader.skipType(tag & 7);
|
|
60912
|
+
break;
|
|
60913
|
+
}
|
|
60914
|
+
}
|
|
60915
|
+
return message;
|
|
60916
|
+
};
|
|
60917
|
+
|
|
60918
|
+
/**
|
|
60919
|
+
* Decodes a GhostwriterPowerup message from the specified reader or buffer, length delimited.
|
|
60920
|
+
* @function decodeDelimited
|
|
60921
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60922
|
+
* @static
|
|
60923
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60924
|
+
* @returns {replit.goval.api.GhostwriterPowerup} GhostwriterPowerup
|
|
60925
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60926
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60927
|
+
*/
|
|
60928
|
+
GhostwriterPowerup.decodeDelimited = function decodeDelimited(reader) {
|
|
60929
|
+
if (!(reader instanceof $Reader))
|
|
60930
|
+
reader = new $Reader(reader);
|
|
60931
|
+
return this.decode(reader, reader.uint32());
|
|
60932
|
+
};
|
|
60933
|
+
|
|
60934
|
+
/**
|
|
60935
|
+
* Verifies a GhostwriterPowerup message.
|
|
60936
|
+
* @function verify
|
|
60937
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60938
|
+
* @static
|
|
60939
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60940
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60941
|
+
*/
|
|
60942
|
+
GhostwriterPowerup.verify = function verify(message) {
|
|
60943
|
+
if (typeof message !== "object" || message === null)
|
|
60944
|
+
return "object expected";
|
|
60945
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
60946
|
+
if (typeof message.enabled !== "boolean")
|
|
60947
|
+
return "enabled: boolean expected";
|
|
60948
|
+
return null;
|
|
60949
|
+
};
|
|
60950
|
+
|
|
60951
|
+
/**
|
|
60952
|
+
* Creates a GhostwriterPowerup message from a plain object. Also converts values to their respective internal types.
|
|
60953
|
+
* @function fromObject
|
|
60954
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60955
|
+
* @static
|
|
60956
|
+
* @param {Object.<string,*>} object Plain object
|
|
60957
|
+
* @returns {replit.goval.api.GhostwriterPowerup} GhostwriterPowerup
|
|
60958
|
+
*/
|
|
60959
|
+
GhostwriterPowerup.fromObject = function fromObject(object) {
|
|
60960
|
+
if (object instanceof $root.replit.goval.api.GhostwriterPowerup)
|
|
60961
|
+
return object;
|
|
60962
|
+
var message = new $root.replit.goval.api.GhostwriterPowerup();
|
|
60963
|
+
if (object.enabled != null)
|
|
60964
|
+
message.enabled = Boolean(object.enabled);
|
|
60965
|
+
return message;
|
|
60966
|
+
};
|
|
60967
|
+
|
|
60968
|
+
/**
|
|
60969
|
+
* Creates a plain object from a GhostwriterPowerup message. Also converts values to other types if specified.
|
|
60970
|
+
* @function toObject
|
|
60971
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60972
|
+
* @static
|
|
60973
|
+
* @param {replit.goval.api.GhostwriterPowerup} message GhostwriterPowerup
|
|
60974
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60975
|
+
* @returns {Object.<string,*>} Plain object
|
|
60976
|
+
*/
|
|
60977
|
+
GhostwriterPowerup.toObject = function toObject(message, options) {
|
|
60978
|
+
if (!options)
|
|
60979
|
+
options = {};
|
|
60980
|
+
var object = {};
|
|
60981
|
+
if (options.defaults)
|
|
60982
|
+
object.enabled = false;
|
|
60983
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
60984
|
+
object.enabled = message.enabled;
|
|
60985
|
+
return object;
|
|
60986
|
+
};
|
|
60987
|
+
|
|
60988
|
+
/**
|
|
60989
|
+
* Converts this GhostwriterPowerup to JSON.
|
|
60990
|
+
* @function toJSON
|
|
60991
|
+
* @memberof replit.goval.api.GhostwriterPowerup
|
|
60992
|
+
* @instance
|
|
60993
|
+
* @returns {Object.<string,*>} JSON object
|
|
60994
|
+
*/
|
|
60995
|
+
GhostwriterPowerup.prototype.toJSON = function toJSON() {
|
|
60996
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60997
|
+
};
|
|
60998
|
+
|
|
60999
|
+
return GhostwriterPowerup;
|
|
61000
|
+
})();
|
|
61001
|
+
|
|
61002
|
+
api.ConnectivityPowerup = (function() {
|
|
61003
|
+
|
|
61004
|
+
/**
|
|
61005
|
+
* Properties of a ConnectivityPowerup.
|
|
61006
|
+
* @memberof replit.goval.api
|
|
61007
|
+
* @interface IConnectivityPowerup
|
|
61008
|
+
* @property {boolean|null} [enabled] ConnectivityPowerup enabled
|
|
61009
|
+
*/
|
|
61010
|
+
|
|
61011
|
+
/**
|
|
61012
|
+
* Constructs a new ConnectivityPowerup.
|
|
61013
|
+
* @memberof replit.goval.api
|
|
61014
|
+
* @classdesc Represents a ConnectivityPowerup.
|
|
61015
|
+
* @constructor
|
|
61016
|
+
* @param {replit.goval.api.IConnectivityPowerup=} [properties] Properties to set
|
|
61017
|
+
*/
|
|
61018
|
+
function ConnectivityPowerup(properties) {
|
|
61019
|
+
if (properties)
|
|
61020
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61021
|
+
if (properties[keys[i]] != null)
|
|
61022
|
+
this[keys[i]] = properties[keys[i]];
|
|
61023
|
+
}
|
|
61024
|
+
|
|
61025
|
+
/**
|
|
61026
|
+
* ConnectivityPowerup enabled.
|
|
61027
|
+
* @member {boolean} enabled
|
|
61028
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61029
|
+
* @instance
|
|
61030
|
+
*/
|
|
61031
|
+
ConnectivityPowerup.prototype.enabled = false;
|
|
61032
|
+
|
|
61033
|
+
/**
|
|
61034
|
+
* Creates a new ConnectivityPowerup instance using the specified properties.
|
|
61035
|
+
* @function create
|
|
61036
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61037
|
+
* @static
|
|
61038
|
+
* @param {replit.goval.api.IConnectivityPowerup=} [properties] Properties to set
|
|
61039
|
+
* @returns {replit.goval.api.ConnectivityPowerup} ConnectivityPowerup instance
|
|
61040
|
+
*/
|
|
61041
|
+
ConnectivityPowerup.create = function create(properties) {
|
|
61042
|
+
return ConnectivityPowerup.fromObject(properties);
|
|
61043
|
+
};
|
|
61044
|
+
|
|
61045
|
+
/**
|
|
61046
|
+
* Encodes the specified ConnectivityPowerup message. Does not implicitly {@link replit.goval.api.ConnectivityPowerup.verify|verify} messages.
|
|
61047
|
+
* @function encode
|
|
61048
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61049
|
+
* @static
|
|
61050
|
+
* @param {replit.goval.api.ConnectivityPowerup} message ConnectivityPowerup message or plain object to encode
|
|
61051
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61052
|
+
* @returns {$protobuf.Writer} Writer
|
|
61053
|
+
*/
|
|
61054
|
+
ConnectivityPowerup.encode = function encode(message, writer) {
|
|
61055
|
+
if (!writer)
|
|
61056
|
+
writer = $Writer.create();
|
|
61057
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
61058
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
|
|
61059
|
+
return writer;
|
|
61060
|
+
};
|
|
61061
|
+
|
|
61062
|
+
/**
|
|
61063
|
+
* Encodes the specified ConnectivityPowerup message, length delimited. Does not implicitly {@link replit.goval.api.ConnectivityPowerup.verify|verify} messages.
|
|
61064
|
+
* @function encodeDelimited
|
|
61065
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61066
|
+
* @static
|
|
61067
|
+
* @param {replit.goval.api.ConnectivityPowerup} message ConnectivityPowerup message or plain object to encode
|
|
61068
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61069
|
+
* @returns {$protobuf.Writer} Writer
|
|
61070
|
+
*/
|
|
61071
|
+
ConnectivityPowerup.encodeDelimited = function encodeDelimited(message, writer) {
|
|
61072
|
+
return this.encode(message, writer).ldelim();
|
|
61073
|
+
};
|
|
61074
|
+
|
|
61075
|
+
/**
|
|
61076
|
+
* Decodes a ConnectivityPowerup message from the specified reader or buffer.
|
|
61077
|
+
* @function decode
|
|
61078
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61079
|
+
* @static
|
|
61080
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61081
|
+
* @param {number} [length] Message length if known beforehand
|
|
61082
|
+
* @returns {replit.goval.api.ConnectivityPowerup} ConnectivityPowerup
|
|
61083
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61084
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61085
|
+
*/
|
|
61086
|
+
ConnectivityPowerup.decode = function decode(reader, length) {
|
|
61087
|
+
if (!(reader instanceof $Reader))
|
|
61088
|
+
reader = $Reader.create(reader);
|
|
61089
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ConnectivityPowerup();
|
|
61090
|
+
while (reader.pos < end) {
|
|
61091
|
+
var tag = reader.uint32();
|
|
61092
|
+
switch (tag >>> 3) {
|
|
61093
|
+
case 1:
|
|
61094
|
+
message.enabled = reader.bool();
|
|
61095
|
+
break;
|
|
61096
|
+
default:
|
|
61097
|
+
reader.skipType(tag & 7);
|
|
61098
|
+
break;
|
|
61099
|
+
}
|
|
61100
|
+
}
|
|
61101
|
+
return message;
|
|
61102
|
+
};
|
|
61103
|
+
|
|
61104
|
+
/**
|
|
61105
|
+
* Decodes a ConnectivityPowerup message from the specified reader or buffer, length delimited.
|
|
61106
|
+
* @function decodeDelimited
|
|
61107
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61108
|
+
* @static
|
|
61109
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61110
|
+
* @returns {replit.goval.api.ConnectivityPowerup} ConnectivityPowerup
|
|
61111
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61112
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61113
|
+
*/
|
|
61114
|
+
ConnectivityPowerup.decodeDelimited = function decodeDelimited(reader) {
|
|
61115
|
+
if (!(reader instanceof $Reader))
|
|
61116
|
+
reader = new $Reader(reader);
|
|
61117
|
+
return this.decode(reader, reader.uint32());
|
|
61118
|
+
};
|
|
61119
|
+
|
|
61120
|
+
/**
|
|
61121
|
+
* Verifies a ConnectivityPowerup message.
|
|
61122
|
+
* @function verify
|
|
61123
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61124
|
+
* @static
|
|
61125
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
61126
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
61127
|
+
*/
|
|
61128
|
+
ConnectivityPowerup.verify = function verify(message) {
|
|
61129
|
+
if (typeof message !== "object" || message === null)
|
|
61130
|
+
return "object expected";
|
|
61131
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
61132
|
+
if (typeof message.enabled !== "boolean")
|
|
61133
|
+
return "enabled: boolean expected";
|
|
61134
|
+
return null;
|
|
61135
|
+
};
|
|
61136
|
+
|
|
61137
|
+
/**
|
|
61138
|
+
* Creates a ConnectivityPowerup message from a plain object. Also converts values to their respective internal types.
|
|
61139
|
+
* @function fromObject
|
|
61140
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61141
|
+
* @static
|
|
61142
|
+
* @param {Object.<string,*>} object Plain object
|
|
61143
|
+
* @returns {replit.goval.api.ConnectivityPowerup} ConnectivityPowerup
|
|
61144
|
+
*/
|
|
61145
|
+
ConnectivityPowerup.fromObject = function fromObject(object) {
|
|
61146
|
+
if (object instanceof $root.replit.goval.api.ConnectivityPowerup)
|
|
61147
|
+
return object;
|
|
61148
|
+
var message = new $root.replit.goval.api.ConnectivityPowerup();
|
|
61149
|
+
if (object.enabled != null)
|
|
61150
|
+
message.enabled = Boolean(object.enabled);
|
|
61151
|
+
return message;
|
|
61152
|
+
};
|
|
61153
|
+
|
|
61154
|
+
/**
|
|
61155
|
+
* Creates a plain object from a ConnectivityPowerup message. Also converts values to other types if specified.
|
|
61156
|
+
* @function toObject
|
|
61157
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61158
|
+
* @static
|
|
61159
|
+
* @param {replit.goval.api.ConnectivityPowerup} message ConnectivityPowerup
|
|
61160
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
61161
|
+
* @returns {Object.<string,*>} Plain object
|
|
61162
|
+
*/
|
|
61163
|
+
ConnectivityPowerup.toObject = function toObject(message, options) {
|
|
61164
|
+
if (!options)
|
|
61165
|
+
options = {};
|
|
61166
|
+
var object = {};
|
|
61167
|
+
if (options.defaults)
|
|
61168
|
+
object.enabled = false;
|
|
61169
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
61170
|
+
object.enabled = message.enabled;
|
|
61171
|
+
return object;
|
|
61172
|
+
};
|
|
61173
|
+
|
|
61174
|
+
/**
|
|
61175
|
+
* Converts this ConnectivityPowerup to JSON.
|
|
61176
|
+
* @function toJSON
|
|
61177
|
+
* @memberof replit.goval.api.ConnectivityPowerup
|
|
61178
|
+
* @instance
|
|
61179
|
+
* @returns {Object.<string,*>} JSON object
|
|
61180
|
+
*/
|
|
61181
|
+
ConnectivityPowerup.prototype.toJSON = function toJSON() {
|
|
61182
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
61183
|
+
};
|
|
61184
|
+
|
|
61185
|
+
return ConnectivityPowerup;
|
|
61186
|
+
})();
|
|
61187
|
+
|
|
61188
|
+
api.PowerUp = (function() {
|
|
61189
|
+
|
|
61190
|
+
/**
|
|
61191
|
+
* Properties of a PowerUp.
|
|
61192
|
+
* @memberof replit.goval.api
|
|
61193
|
+
* @interface IPowerUp
|
|
61194
|
+
* @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [expiresAt] PowerUp expiresAt
|
|
61195
|
+
* @property {replit.goval.api.PrivateReplsPowerup|replit.goval.api.IPrivateReplsPowerup|null} ["private"] PowerUp private
|
|
61196
|
+
* @property {replit.goval.api.GhostwriterPowerup|replit.goval.api.IGhostwriterPowerup|null} [ghostwriter] PowerUp ghostwriter
|
|
61197
|
+
* @property {replit.goval.api.ConnectivityPowerup|replit.goval.api.IConnectivityPowerup|null} [connectivity] PowerUp connectivity
|
|
61198
|
+
*/
|
|
61199
|
+
|
|
61200
|
+
/**
|
|
61201
|
+
* Constructs a new PowerUp.
|
|
61202
|
+
* @memberof replit.goval.api
|
|
61203
|
+
* @classdesc Represents a PowerUp.
|
|
61204
|
+
* @constructor
|
|
61205
|
+
* @param {replit.goval.api.IPowerUp=} [properties] Properties to set
|
|
61206
|
+
*/
|
|
61207
|
+
function PowerUp(properties) {
|
|
61208
|
+
if (properties)
|
|
61209
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61210
|
+
if (properties[keys[i]] != null)
|
|
61211
|
+
this[keys[i]] = properties[keys[i]];
|
|
61212
|
+
}
|
|
61213
|
+
|
|
61214
|
+
/**
|
|
61215
|
+
* PowerUp expiresAt.
|
|
61216
|
+
* @member {google.protobuf.Timestamp|null|undefined} expiresAt
|
|
61217
|
+
* @memberof replit.goval.api.PowerUp
|
|
61218
|
+
* @instance
|
|
61219
|
+
*/
|
|
61220
|
+
PowerUp.prototype.expiresAt = null;
|
|
61221
|
+
|
|
61222
|
+
/**
|
|
61223
|
+
* PowerUp private.
|
|
61224
|
+
* @member {replit.goval.api.PrivateReplsPowerup|null|undefined} private
|
|
61225
|
+
* @memberof replit.goval.api.PowerUp
|
|
61226
|
+
* @instance
|
|
61227
|
+
*/
|
|
61228
|
+
PowerUp.prototype["private"] = null;
|
|
61229
|
+
|
|
61230
|
+
/**
|
|
61231
|
+
* PowerUp ghostwriter.
|
|
61232
|
+
* @member {replit.goval.api.GhostwriterPowerup|null|undefined} ghostwriter
|
|
61233
|
+
* @memberof replit.goval.api.PowerUp
|
|
61234
|
+
* @instance
|
|
61235
|
+
*/
|
|
61236
|
+
PowerUp.prototype.ghostwriter = null;
|
|
61237
|
+
|
|
61238
|
+
/**
|
|
61239
|
+
* PowerUp connectivity.
|
|
61240
|
+
* @member {replit.goval.api.ConnectivityPowerup|null|undefined} connectivity
|
|
61241
|
+
* @memberof replit.goval.api.PowerUp
|
|
61242
|
+
* @instance
|
|
61243
|
+
*/
|
|
61244
|
+
PowerUp.prototype.connectivity = null;
|
|
61245
|
+
|
|
61246
|
+
// OneOf field names bound to virtual getters and setters
|
|
61247
|
+
var $oneOfFields;
|
|
61248
|
+
|
|
61249
|
+
/**
|
|
61250
|
+
* PowerUp powerup.
|
|
61251
|
+
* @member {"private"|"ghostwriter"|"connectivity"|undefined} powerup
|
|
61252
|
+
* @memberof replit.goval.api.PowerUp
|
|
61253
|
+
* @instance
|
|
61254
|
+
*/
|
|
61255
|
+
Object.defineProperty(PowerUp.prototype, "powerup", {
|
|
61256
|
+
get: $util.oneOfGetter($oneOfFields = ["private", "ghostwriter", "connectivity"]),
|
|
61257
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
61258
|
+
});
|
|
61259
|
+
|
|
61260
|
+
/**
|
|
61261
|
+
* Creates a new PowerUp instance using the specified properties.
|
|
61262
|
+
* @function create
|
|
61263
|
+
* @memberof replit.goval.api.PowerUp
|
|
61264
|
+
* @static
|
|
61265
|
+
* @param {replit.goval.api.IPowerUp=} [properties] Properties to set
|
|
61266
|
+
* @returns {replit.goval.api.PowerUp} PowerUp instance
|
|
61267
|
+
*/
|
|
61268
|
+
PowerUp.create = function create(properties) {
|
|
61269
|
+
return PowerUp.fromObject(properties);
|
|
61270
|
+
};
|
|
61271
|
+
|
|
61272
|
+
/**
|
|
61273
|
+
* Encodes the specified PowerUp message. Does not implicitly {@link replit.goval.api.PowerUp.verify|verify} messages.
|
|
61274
|
+
* @function encode
|
|
61275
|
+
* @memberof replit.goval.api.PowerUp
|
|
61276
|
+
* @static
|
|
61277
|
+
* @param {replit.goval.api.PowerUp} message PowerUp message or plain object to encode
|
|
61278
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61279
|
+
* @returns {$protobuf.Writer} Writer
|
|
61280
|
+
*/
|
|
61281
|
+
PowerUp.encode = function encode(message, writer) {
|
|
61282
|
+
if (!writer)
|
|
61283
|
+
writer = $Writer.create();
|
|
61284
|
+
if (message.expiresAt != null && Object.hasOwnProperty.call(message, "expiresAt"))
|
|
61285
|
+
$root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
61286
|
+
if (message["private"] != null && Object.hasOwnProperty.call(message, "private"))
|
|
61287
|
+
$root.replit.goval.api.PrivateReplsPowerup.encode(message["private"], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
61288
|
+
if (message.ghostwriter != null && Object.hasOwnProperty.call(message, "ghostwriter"))
|
|
61289
|
+
$root.replit.goval.api.GhostwriterPowerup.encode(message.ghostwriter, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
61290
|
+
if (message.connectivity != null && Object.hasOwnProperty.call(message, "connectivity"))
|
|
61291
|
+
$root.replit.goval.api.ConnectivityPowerup.encode(message.connectivity, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
61292
|
+
return writer;
|
|
61293
|
+
};
|
|
61294
|
+
|
|
61295
|
+
/**
|
|
61296
|
+
* Encodes the specified PowerUp message, length delimited. Does not implicitly {@link replit.goval.api.PowerUp.verify|verify} messages.
|
|
61297
|
+
* @function encodeDelimited
|
|
61298
|
+
* @memberof replit.goval.api.PowerUp
|
|
61299
|
+
* @static
|
|
61300
|
+
* @param {replit.goval.api.PowerUp} message PowerUp message or plain object to encode
|
|
61301
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61302
|
+
* @returns {$protobuf.Writer} Writer
|
|
61303
|
+
*/
|
|
61304
|
+
PowerUp.encodeDelimited = function encodeDelimited(message, writer) {
|
|
61305
|
+
return this.encode(message, writer).ldelim();
|
|
61306
|
+
};
|
|
61307
|
+
|
|
61308
|
+
/**
|
|
61309
|
+
* Decodes a PowerUp message from the specified reader or buffer.
|
|
61310
|
+
* @function decode
|
|
61311
|
+
* @memberof replit.goval.api.PowerUp
|
|
61312
|
+
* @static
|
|
61313
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61314
|
+
* @param {number} [length] Message length if known beforehand
|
|
61315
|
+
* @returns {replit.goval.api.PowerUp} PowerUp
|
|
61316
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61317
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61318
|
+
*/
|
|
61319
|
+
PowerUp.decode = function decode(reader, length) {
|
|
61320
|
+
if (!(reader instanceof $Reader))
|
|
61321
|
+
reader = $Reader.create(reader);
|
|
61322
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.PowerUp();
|
|
61323
|
+
while (reader.pos < end) {
|
|
61324
|
+
var tag = reader.uint32();
|
|
61325
|
+
switch (tag >>> 3) {
|
|
61326
|
+
case 1:
|
|
61327
|
+
message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
61328
|
+
break;
|
|
61329
|
+
case 10:
|
|
61330
|
+
message["private"] = $root.replit.goval.api.PrivateReplsPowerup.decode(reader, reader.uint32());
|
|
61331
|
+
break;
|
|
61332
|
+
case 11:
|
|
61333
|
+
message.ghostwriter = $root.replit.goval.api.GhostwriterPowerup.decode(reader, reader.uint32());
|
|
61334
|
+
break;
|
|
61335
|
+
case 12:
|
|
61336
|
+
message.connectivity = $root.replit.goval.api.ConnectivityPowerup.decode(reader, reader.uint32());
|
|
61337
|
+
break;
|
|
61338
|
+
default:
|
|
61339
|
+
reader.skipType(tag & 7);
|
|
61340
|
+
break;
|
|
61341
|
+
}
|
|
61342
|
+
}
|
|
61343
|
+
return message;
|
|
61344
|
+
};
|
|
61345
|
+
|
|
61346
|
+
/**
|
|
61347
|
+
* Decodes a PowerUp message from the specified reader or buffer, length delimited.
|
|
61348
|
+
* @function decodeDelimited
|
|
61349
|
+
* @memberof replit.goval.api.PowerUp
|
|
61350
|
+
* @static
|
|
61351
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61352
|
+
* @returns {replit.goval.api.PowerUp} PowerUp
|
|
61353
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61354
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61355
|
+
*/
|
|
61356
|
+
PowerUp.decodeDelimited = function decodeDelimited(reader) {
|
|
61357
|
+
if (!(reader instanceof $Reader))
|
|
61358
|
+
reader = new $Reader(reader);
|
|
61359
|
+
return this.decode(reader, reader.uint32());
|
|
61360
|
+
};
|
|
61361
|
+
|
|
61362
|
+
/**
|
|
61363
|
+
* Verifies a PowerUp message.
|
|
61364
|
+
* @function verify
|
|
61365
|
+
* @memberof replit.goval.api.PowerUp
|
|
61366
|
+
* @static
|
|
61367
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
61368
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
61369
|
+
*/
|
|
61370
|
+
PowerUp.verify = function verify(message) {
|
|
61371
|
+
if (typeof message !== "object" || message === null)
|
|
61372
|
+
return "object expected";
|
|
61373
|
+
var properties = {};
|
|
61374
|
+
if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) {
|
|
61375
|
+
var error = $root.google.protobuf.Timestamp.verify(message.expiresAt);
|
|
61376
|
+
if (error)
|
|
61377
|
+
return "expiresAt." + error;
|
|
61378
|
+
}
|
|
61379
|
+
if (message["private"] != null && message.hasOwnProperty("private")) {
|
|
61380
|
+
properties.powerup = 1;
|
|
61381
|
+
{
|
|
61382
|
+
var error = $root.replit.goval.api.PrivateReplsPowerup.verify(message["private"]);
|
|
61383
|
+
if (error)
|
|
61384
|
+
return "private." + error;
|
|
61385
|
+
}
|
|
61386
|
+
}
|
|
61387
|
+
if (message.ghostwriter != null && message.hasOwnProperty("ghostwriter")) {
|
|
61388
|
+
if (properties.powerup === 1)
|
|
61389
|
+
return "powerup: multiple values";
|
|
61390
|
+
properties.powerup = 1;
|
|
61391
|
+
{
|
|
61392
|
+
var error = $root.replit.goval.api.GhostwriterPowerup.verify(message.ghostwriter);
|
|
61393
|
+
if (error)
|
|
61394
|
+
return "ghostwriter." + error;
|
|
61395
|
+
}
|
|
61396
|
+
}
|
|
61397
|
+
if (message.connectivity != null && message.hasOwnProperty("connectivity")) {
|
|
61398
|
+
if (properties.powerup === 1)
|
|
61399
|
+
return "powerup: multiple values";
|
|
61400
|
+
properties.powerup = 1;
|
|
61401
|
+
{
|
|
61402
|
+
var error = $root.replit.goval.api.ConnectivityPowerup.verify(message.connectivity);
|
|
61403
|
+
if (error)
|
|
61404
|
+
return "connectivity." + error;
|
|
61405
|
+
}
|
|
61406
|
+
}
|
|
61407
|
+
return null;
|
|
61408
|
+
};
|
|
61409
|
+
|
|
61410
|
+
/**
|
|
61411
|
+
* Creates a PowerUp message from a plain object. Also converts values to their respective internal types.
|
|
61412
|
+
* @function fromObject
|
|
61413
|
+
* @memberof replit.goval.api.PowerUp
|
|
61414
|
+
* @static
|
|
61415
|
+
* @param {Object.<string,*>} object Plain object
|
|
61416
|
+
* @returns {replit.goval.api.PowerUp} PowerUp
|
|
61417
|
+
*/
|
|
61418
|
+
PowerUp.fromObject = function fromObject(object) {
|
|
61419
|
+
if (object instanceof $root.replit.goval.api.PowerUp)
|
|
61420
|
+
return object;
|
|
61421
|
+
var message = new $root.replit.goval.api.PowerUp();
|
|
61422
|
+
if (object.expiresAt != null) {
|
|
61423
|
+
if (typeof object.expiresAt !== "object")
|
|
61424
|
+
throw TypeError(".replit.goval.api.PowerUp.expiresAt: object expected");
|
|
61425
|
+
message.expiresAt = $root.google.protobuf.Timestamp.fromObject(object.expiresAt);
|
|
61426
|
+
}
|
|
61427
|
+
if (object["private"] != null) {
|
|
61428
|
+
if (typeof object["private"] !== "object")
|
|
61429
|
+
throw TypeError(".replit.goval.api.PowerUp.private: object expected");
|
|
61430
|
+
message["private"] = $root.replit.goval.api.PrivateReplsPowerup.fromObject(object["private"]);
|
|
61431
|
+
}
|
|
61432
|
+
if (object.ghostwriter != null) {
|
|
61433
|
+
if (typeof object.ghostwriter !== "object")
|
|
61434
|
+
throw TypeError(".replit.goval.api.PowerUp.ghostwriter: object expected");
|
|
61435
|
+
message.ghostwriter = $root.replit.goval.api.GhostwriterPowerup.fromObject(object.ghostwriter);
|
|
61436
|
+
}
|
|
61437
|
+
if (object.connectivity != null) {
|
|
61438
|
+
if (typeof object.connectivity !== "object")
|
|
61439
|
+
throw TypeError(".replit.goval.api.PowerUp.connectivity: object expected");
|
|
61440
|
+
message.connectivity = $root.replit.goval.api.ConnectivityPowerup.fromObject(object.connectivity);
|
|
61441
|
+
}
|
|
61442
|
+
return message;
|
|
61443
|
+
};
|
|
61444
|
+
|
|
61445
|
+
/**
|
|
61446
|
+
* Creates a plain object from a PowerUp message. Also converts values to other types if specified.
|
|
61447
|
+
* @function toObject
|
|
61448
|
+
* @memberof replit.goval.api.PowerUp
|
|
61449
|
+
* @static
|
|
61450
|
+
* @param {replit.goval.api.PowerUp} message PowerUp
|
|
61451
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
61452
|
+
* @returns {Object.<string,*>} Plain object
|
|
61453
|
+
*/
|
|
61454
|
+
PowerUp.toObject = function toObject(message, options) {
|
|
61455
|
+
if (!options)
|
|
61456
|
+
options = {};
|
|
61457
|
+
var object = {};
|
|
61458
|
+
if (options.defaults)
|
|
61459
|
+
object.expiresAt = null;
|
|
61460
|
+
if (message.expiresAt != null && message.hasOwnProperty("expiresAt"))
|
|
61461
|
+
object.expiresAt = $root.google.protobuf.Timestamp.toObject(message.expiresAt, options);
|
|
61462
|
+
if (message["private"] != null && message.hasOwnProperty("private")) {
|
|
61463
|
+
object["private"] = $root.replit.goval.api.PrivateReplsPowerup.toObject(message["private"], options);
|
|
61464
|
+
if (options.oneofs)
|
|
61465
|
+
object.powerup = "private";
|
|
61466
|
+
}
|
|
61467
|
+
if (message.ghostwriter != null && message.hasOwnProperty("ghostwriter")) {
|
|
61468
|
+
object.ghostwriter = $root.replit.goval.api.GhostwriterPowerup.toObject(message.ghostwriter, options);
|
|
61469
|
+
if (options.oneofs)
|
|
61470
|
+
object.powerup = "ghostwriter";
|
|
61471
|
+
}
|
|
61472
|
+
if (message.connectivity != null && message.hasOwnProperty("connectivity")) {
|
|
61473
|
+
object.connectivity = $root.replit.goval.api.ConnectivityPowerup.toObject(message.connectivity, options);
|
|
61474
|
+
if (options.oneofs)
|
|
61475
|
+
object.powerup = "connectivity";
|
|
61476
|
+
}
|
|
61477
|
+
return object;
|
|
61478
|
+
};
|
|
61479
|
+
|
|
61480
|
+
/**
|
|
61481
|
+
* Converts this PowerUp to JSON.
|
|
61482
|
+
* @function toJSON
|
|
61483
|
+
* @memberof replit.goval.api.PowerUp
|
|
61484
|
+
* @instance
|
|
61485
|
+
* @returns {Object.<string,*>} JSON object
|
|
61486
|
+
*/
|
|
61487
|
+
PowerUp.prototype.toJSON = function toJSON() {
|
|
61488
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
61489
|
+
};
|
|
61490
|
+
|
|
61491
|
+
return PowerUp;
|
|
61492
|
+
})();
|
|
61493
|
+
|
|
61494
|
+
api.UserPowerUps = (function() {
|
|
61495
|
+
|
|
61496
|
+
/**
|
|
61497
|
+
* Properties of a UserPowerUps.
|
|
61498
|
+
* @memberof replit.goval.api
|
|
61499
|
+
* @interface IUserPowerUps
|
|
61500
|
+
* @property {number|null} [userId] UserPowerUps userId
|
|
61501
|
+
* @property {string|null} [username] UserPowerUps username
|
|
61502
|
+
* @property {Array.<replit.goval.api.PowerUp|replit.goval.api.IPowerUp>|null} [powerups] UserPowerUps powerups
|
|
61503
|
+
*/
|
|
61504
|
+
|
|
61505
|
+
/**
|
|
61506
|
+
* Constructs a new UserPowerUps.
|
|
61507
|
+
* @memberof replit.goval.api
|
|
61508
|
+
* @classdesc Represents a UserPowerUps.
|
|
61509
|
+
* @constructor
|
|
61510
|
+
* @param {replit.goval.api.IUserPowerUps=} [properties] Properties to set
|
|
61511
|
+
*/
|
|
61512
|
+
function UserPowerUps(properties) {
|
|
61513
|
+
this.powerups = [];
|
|
61514
|
+
if (properties)
|
|
61515
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61516
|
+
if (properties[keys[i]] != null)
|
|
61517
|
+
this[keys[i]] = properties[keys[i]];
|
|
61518
|
+
}
|
|
61519
|
+
|
|
61520
|
+
/**
|
|
61521
|
+
* UserPowerUps userId.
|
|
61522
|
+
* @member {number} userId
|
|
61523
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61524
|
+
* @instance
|
|
61525
|
+
*/
|
|
61526
|
+
UserPowerUps.prototype.userId = 0;
|
|
61527
|
+
|
|
61528
|
+
/**
|
|
61529
|
+
* UserPowerUps username.
|
|
61530
|
+
* @member {string} username
|
|
61531
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61532
|
+
* @instance
|
|
61533
|
+
*/
|
|
61534
|
+
UserPowerUps.prototype.username = "";
|
|
61535
|
+
|
|
61536
|
+
/**
|
|
61537
|
+
* UserPowerUps powerups.
|
|
61538
|
+
* @member {Array.<replit.goval.api.PowerUp>} powerups
|
|
61539
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61540
|
+
* @instance
|
|
61541
|
+
*/
|
|
61542
|
+
UserPowerUps.prototype.powerups = $util.emptyArray;
|
|
61543
|
+
|
|
61544
|
+
/**
|
|
61545
|
+
* Creates a new UserPowerUps instance using the specified properties.
|
|
61546
|
+
* @function create
|
|
61547
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61548
|
+
* @static
|
|
61549
|
+
* @param {replit.goval.api.IUserPowerUps=} [properties] Properties to set
|
|
61550
|
+
* @returns {replit.goval.api.UserPowerUps} UserPowerUps instance
|
|
61551
|
+
*/
|
|
61552
|
+
UserPowerUps.create = function create(properties) {
|
|
61553
|
+
return UserPowerUps.fromObject(properties);
|
|
61554
|
+
};
|
|
61555
|
+
|
|
61556
|
+
/**
|
|
61557
|
+
* Encodes the specified UserPowerUps message. Does not implicitly {@link replit.goval.api.UserPowerUps.verify|verify} messages.
|
|
61558
|
+
* @function encode
|
|
61559
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61560
|
+
* @static
|
|
61561
|
+
* @param {replit.goval.api.UserPowerUps} message UserPowerUps message or plain object to encode
|
|
61562
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61563
|
+
* @returns {$protobuf.Writer} Writer
|
|
61564
|
+
*/
|
|
61565
|
+
UserPowerUps.encode = function encode(message, writer) {
|
|
61566
|
+
if (!writer)
|
|
61567
|
+
writer = $Writer.create();
|
|
61568
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
61569
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.userId);
|
|
61570
|
+
if (message.username != null && Object.hasOwnProperty.call(message, "username"))
|
|
61571
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.username);
|
|
61572
|
+
if (message.powerups != null && message.powerups.length)
|
|
61573
|
+
for (var i = 0; i < message.powerups.length; ++i)
|
|
61574
|
+
$root.replit.goval.api.PowerUp.encode(message.powerups[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
61575
|
+
return writer;
|
|
61576
|
+
};
|
|
61577
|
+
|
|
61578
|
+
/**
|
|
61579
|
+
* Encodes the specified UserPowerUps message, length delimited. Does not implicitly {@link replit.goval.api.UserPowerUps.verify|verify} messages.
|
|
61580
|
+
* @function encodeDelimited
|
|
61581
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61582
|
+
* @static
|
|
61583
|
+
* @param {replit.goval.api.UserPowerUps} message UserPowerUps message or plain object to encode
|
|
61584
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61585
|
+
* @returns {$protobuf.Writer} Writer
|
|
61586
|
+
*/
|
|
61587
|
+
UserPowerUps.encodeDelimited = function encodeDelimited(message, writer) {
|
|
61588
|
+
return this.encode(message, writer).ldelim();
|
|
61589
|
+
};
|
|
61590
|
+
|
|
61591
|
+
/**
|
|
61592
|
+
* Decodes a UserPowerUps message from the specified reader or buffer.
|
|
61593
|
+
* @function decode
|
|
61594
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61595
|
+
* @static
|
|
61596
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61597
|
+
* @param {number} [length] Message length if known beforehand
|
|
61598
|
+
* @returns {replit.goval.api.UserPowerUps} UserPowerUps
|
|
61599
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61600
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61601
|
+
*/
|
|
61602
|
+
UserPowerUps.decode = function decode(reader, length) {
|
|
61603
|
+
if (!(reader instanceof $Reader))
|
|
61604
|
+
reader = $Reader.create(reader);
|
|
61605
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.UserPowerUps();
|
|
61606
|
+
while (reader.pos < end) {
|
|
61607
|
+
var tag = reader.uint32();
|
|
61608
|
+
switch (tag >>> 3) {
|
|
61609
|
+
case 1:
|
|
61610
|
+
message.userId = reader.uint32();
|
|
61611
|
+
break;
|
|
61612
|
+
case 2:
|
|
61613
|
+
message.username = reader.string();
|
|
61614
|
+
break;
|
|
61615
|
+
case 3:
|
|
61616
|
+
if (!(message.powerups && message.powerups.length))
|
|
61617
|
+
message.powerups = [];
|
|
61618
|
+
message.powerups.push($root.replit.goval.api.PowerUp.decode(reader, reader.uint32()));
|
|
61619
|
+
break;
|
|
61620
|
+
default:
|
|
61621
|
+
reader.skipType(tag & 7);
|
|
61622
|
+
break;
|
|
61623
|
+
}
|
|
61624
|
+
}
|
|
61625
|
+
return message;
|
|
61626
|
+
};
|
|
61627
|
+
|
|
61628
|
+
/**
|
|
61629
|
+
* Decodes a UserPowerUps message from the specified reader or buffer, length delimited.
|
|
61630
|
+
* @function decodeDelimited
|
|
61631
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61632
|
+
* @static
|
|
61633
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61634
|
+
* @returns {replit.goval.api.UserPowerUps} UserPowerUps
|
|
61635
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61636
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61637
|
+
*/
|
|
61638
|
+
UserPowerUps.decodeDelimited = function decodeDelimited(reader) {
|
|
61639
|
+
if (!(reader instanceof $Reader))
|
|
61640
|
+
reader = new $Reader(reader);
|
|
61641
|
+
return this.decode(reader, reader.uint32());
|
|
61642
|
+
};
|
|
61643
|
+
|
|
61644
|
+
/**
|
|
61645
|
+
* Verifies a UserPowerUps message.
|
|
61646
|
+
* @function verify
|
|
61647
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61648
|
+
* @static
|
|
61649
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
61650
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
61651
|
+
*/
|
|
61652
|
+
UserPowerUps.verify = function verify(message) {
|
|
61653
|
+
if (typeof message !== "object" || message === null)
|
|
61654
|
+
return "object expected";
|
|
61655
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
61656
|
+
if (!$util.isInteger(message.userId))
|
|
61657
|
+
return "userId: integer expected";
|
|
61658
|
+
if (message.username != null && message.hasOwnProperty("username"))
|
|
61659
|
+
if (!$util.isString(message.username))
|
|
61660
|
+
return "username: string expected";
|
|
61661
|
+
if (message.powerups != null && message.hasOwnProperty("powerups")) {
|
|
61662
|
+
if (!Array.isArray(message.powerups))
|
|
61663
|
+
return "powerups: array expected";
|
|
61664
|
+
for (var i = 0; i < message.powerups.length; ++i) {
|
|
61665
|
+
var error = $root.replit.goval.api.PowerUp.verify(message.powerups[i]);
|
|
61666
|
+
if (error)
|
|
61667
|
+
return "powerups." + error;
|
|
61668
|
+
}
|
|
61669
|
+
}
|
|
61670
|
+
return null;
|
|
61671
|
+
};
|
|
61672
|
+
|
|
61673
|
+
/**
|
|
61674
|
+
* Creates a UserPowerUps message from a plain object. Also converts values to their respective internal types.
|
|
61675
|
+
* @function fromObject
|
|
61676
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61677
|
+
* @static
|
|
61678
|
+
* @param {Object.<string,*>} object Plain object
|
|
61679
|
+
* @returns {replit.goval.api.UserPowerUps} UserPowerUps
|
|
61680
|
+
*/
|
|
61681
|
+
UserPowerUps.fromObject = function fromObject(object) {
|
|
61682
|
+
if (object instanceof $root.replit.goval.api.UserPowerUps)
|
|
61683
|
+
return object;
|
|
61684
|
+
var message = new $root.replit.goval.api.UserPowerUps();
|
|
61685
|
+
if (object.userId != null)
|
|
61686
|
+
message.userId = object.userId >>> 0;
|
|
61687
|
+
if (object.username != null)
|
|
61688
|
+
message.username = String(object.username);
|
|
61689
|
+
if (object.powerups) {
|
|
61690
|
+
if (!Array.isArray(object.powerups))
|
|
61691
|
+
throw TypeError(".replit.goval.api.UserPowerUps.powerups: array expected");
|
|
61692
|
+
message.powerups = [];
|
|
61693
|
+
for (var i = 0; i < object.powerups.length; ++i) {
|
|
61694
|
+
if (typeof object.powerups[i] !== "object")
|
|
61695
|
+
throw TypeError(".replit.goval.api.UserPowerUps.powerups: object expected");
|
|
61696
|
+
message.powerups[i] = $root.replit.goval.api.PowerUp.fromObject(object.powerups[i]);
|
|
61697
|
+
}
|
|
61698
|
+
}
|
|
61699
|
+
return message;
|
|
61700
|
+
};
|
|
61701
|
+
|
|
61702
|
+
/**
|
|
61703
|
+
* Creates a plain object from a UserPowerUps message. Also converts values to other types if specified.
|
|
61704
|
+
* @function toObject
|
|
61705
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61706
|
+
* @static
|
|
61707
|
+
* @param {replit.goval.api.UserPowerUps} message UserPowerUps
|
|
61708
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
61709
|
+
* @returns {Object.<string,*>} Plain object
|
|
61710
|
+
*/
|
|
61711
|
+
UserPowerUps.toObject = function toObject(message, options) {
|
|
61712
|
+
if (!options)
|
|
61713
|
+
options = {};
|
|
61714
|
+
var object = {};
|
|
61715
|
+
if (options.arrays || options.defaults)
|
|
61716
|
+
object.powerups = [];
|
|
61717
|
+
if (options.defaults) {
|
|
61718
|
+
object.userId = 0;
|
|
61719
|
+
object.username = "";
|
|
61720
|
+
}
|
|
61721
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
61722
|
+
object.userId = message.userId;
|
|
61723
|
+
if (message.username != null && message.hasOwnProperty("username"))
|
|
61724
|
+
object.username = message.username;
|
|
61725
|
+
if (message.powerups && message.powerups.length) {
|
|
61726
|
+
object.powerups = [];
|
|
61727
|
+
for (var j = 0; j < message.powerups.length; ++j)
|
|
61728
|
+
object.powerups[j] = $root.replit.goval.api.PowerUp.toObject(message.powerups[j], options);
|
|
61729
|
+
}
|
|
61730
|
+
return object;
|
|
61731
|
+
};
|
|
61732
|
+
|
|
61733
|
+
/**
|
|
61734
|
+
* Converts this UserPowerUps to JSON.
|
|
61735
|
+
* @function toJSON
|
|
61736
|
+
* @memberof replit.goval.api.UserPowerUps
|
|
61737
|
+
* @instance
|
|
61738
|
+
* @returns {Object.<string,*>} JSON object
|
|
61739
|
+
*/
|
|
61740
|
+
UserPowerUps.prototype.toJSON = function toJSON() {
|
|
61741
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
61742
|
+
};
|
|
61743
|
+
|
|
61744
|
+
return UserPowerUps;
|
|
61745
|
+
})();
|
|
61746
|
+
|
|
60271
61747
|
return api;
|
|
60272
61748
|
})();
|
|
60273
61749
|
|