@replit/protocol 0.3.17 → 0.3.18
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 +205 -310
- package/main/index.js +504 -808
- package/main/index.js.flow +254 -419
- package/package.json +1 -1
- package/yarn-error.log +0 -386
package/main/index.js
CHANGED
|
@@ -54162,6 +54162,7 @@
|
|
|
54162
54162
|
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] ReplToken permissions
|
|
54163
54163
|
* @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
|
|
54164
54164
|
* @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] ReplToken buildInfo
|
|
54165
|
+
* @property {replit.goval.api.repl.Pid2|replit.goval.api.repl.IPid2|null} [pid2] ReplToken pid2
|
|
54165
54166
|
*/
|
|
54166
54167
|
|
|
54167
54168
|
/**
|
|
@@ -54308,6 +54309,14 @@
|
|
|
54308
54309
|
*/
|
|
54309
54310
|
ReplToken.prototype.buildInfo = null;
|
|
54310
54311
|
|
|
54312
|
+
/**
|
|
54313
|
+
* ReplToken pid2.
|
|
54314
|
+
* @member {replit.goval.api.repl.Pid2|null|undefined} pid2
|
|
54315
|
+
* @memberof replit.goval.api.ReplToken
|
|
54316
|
+
* @instance
|
|
54317
|
+
*/
|
|
54318
|
+
ReplToken.prototype.pid2 = null;
|
|
54319
|
+
|
|
54311
54320
|
// OneOf field names bound to virtual getters and setters
|
|
54312
54321
|
var $oneOfFields;
|
|
54313
54322
|
|
|
@@ -54380,6 +54389,8 @@
|
|
|
54380
54389
|
$root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
54381
54390
|
if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
|
|
54382
54391
|
$root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
54392
|
+
if (message.pid2 != null && Object.hasOwnProperty.call(message, "pid2"))
|
|
54393
|
+
$root.replit.goval.api.repl.Pid2.encode(message.pid2, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
54383
54394
|
return writer;
|
|
54384
54395
|
};
|
|
54385
54396
|
|
|
@@ -54466,6 +54477,9 @@
|
|
|
54466
54477
|
case 18:
|
|
54467
54478
|
message.buildInfo = $root.replit.goval.api.repl.BuildInfo.decode(reader, reader.uint32());
|
|
54468
54479
|
break;
|
|
54480
|
+
case 19:
|
|
54481
|
+
message.pid2 = $root.replit.goval.api.repl.Pid2.decode(reader, reader.uint32());
|
|
54482
|
+
break;
|
|
54469
54483
|
default:
|
|
54470
54484
|
reader.skipType(tag & 7);
|
|
54471
54485
|
break;
|
|
@@ -54605,6 +54619,11 @@
|
|
|
54605
54619
|
if (error)
|
|
54606
54620
|
return "buildInfo." + error;
|
|
54607
54621
|
}
|
|
54622
|
+
if (message.pid2 != null && message.hasOwnProperty("pid2")) {
|
|
54623
|
+
var error = $root.replit.goval.api.repl.Pid2.verify(message.pid2);
|
|
54624
|
+
if (error)
|
|
54625
|
+
return "pid2." + error;
|
|
54626
|
+
}
|
|
54608
54627
|
return null;
|
|
54609
54628
|
};
|
|
54610
54629
|
|
|
@@ -54719,6 +54738,11 @@
|
|
|
54719
54738
|
throw TypeError(".replit.goval.api.ReplToken.buildInfo: object expected");
|
|
54720
54739
|
message.buildInfo = $root.replit.goval.api.repl.BuildInfo.fromObject(object.buildInfo);
|
|
54721
54740
|
}
|
|
54741
|
+
if (object.pid2 != null) {
|
|
54742
|
+
if (typeof object.pid2 !== "object")
|
|
54743
|
+
throw TypeError(".replit.goval.api.ReplToken.pid2: object expected");
|
|
54744
|
+
message.pid2 = $root.replit.goval.api.repl.Pid2.fromObject(object.pid2);
|
|
54745
|
+
}
|
|
54722
54746
|
return message;
|
|
54723
54747
|
};
|
|
54724
54748
|
|
|
@@ -54751,6 +54775,7 @@
|
|
|
54751
54775
|
object.permissions = null;
|
|
54752
54776
|
object.interactiveResourceLimits = null;
|
|
54753
54777
|
object.buildInfo = null;
|
|
54778
|
+
object.pid2 = null;
|
|
54754
54779
|
}
|
|
54755
54780
|
if (message.iat != null && message.hasOwnProperty("iat"))
|
|
54756
54781
|
object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
|
|
@@ -54799,6 +54824,8 @@
|
|
|
54799
54824
|
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
54800
54825
|
if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
|
|
54801
54826
|
object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
|
|
54827
|
+
if (message.pid2 != null && message.hasOwnProperty("pid2"))
|
|
54828
|
+
object.pid2 = $root.replit.goval.api.repl.Pid2.toObject(message.pid2, options);
|
|
54802
54829
|
return object;
|
|
54803
54830
|
};
|
|
54804
54831
|
|
|
@@ -64246,6 +64273,242 @@
|
|
|
64246
64273
|
return BuildInfo;
|
|
64247
64274
|
})();
|
|
64248
64275
|
|
|
64276
|
+
repl.Pid2 = (function() {
|
|
64277
|
+
|
|
64278
|
+
/**
|
|
64279
|
+
* Properties of a Pid2.
|
|
64280
|
+
* @memberof replit.goval.api.repl
|
|
64281
|
+
* @interface IPid2
|
|
64282
|
+
* @property {replit.goval.api.repl.Pid2.Bucket|null} [bucket] Pid2 bucket
|
|
64283
|
+
* @property {string|null} [revision] Pid2 revision
|
|
64284
|
+
*/
|
|
64285
|
+
|
|
64286
|
+
/**
|
|
64287
|
+
* Constructs a new Pid2.
|
|
64288
|
+
* @memberof replit.goval.api.repl
|
|
64289
|
+
* @classdesc Represents a Pid2.
|
|
64290
|
+
* @constructor
|
|
64291
|
+
* @param {replit.goval.api.repl.IPid2=} [properties] Properties to set
|
|
64292
|
+
*/
|
|
64293
|
+
function Pid2(properties) {
|
|
64294
|
+
if (properties)
|
|
64295
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
64296
|
+
if (properties[keys[i]] != null)
|
|
64297
|
+
this[keys[i]] = properties[keys[i]];
|
|
64298
|
+
}
|
|
64299
|
+
|
|
64300
|
+
/**
|
|
64301
|
+
* Pid2 bucket.
|
|
64302
|
+
* @member {replit.goval.api.repl.Pid2.Bucket} bucket
|
|
64303
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64304
|
+
* @instance
|
|
64305
|
+
*/
|
|
64306
|
+
Pid2.prototype.bucket = 0;
|
|
64307
|
+
|
|
64308
|
+
/**
|
|
64309
|
+
* Pid2 revision.
|
|
64310
|
+
* @member {string} revision
|
|
64311
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64312
|
+
* @instance
|
|
64313
|
+
*/
|
|
64314
|
+
Pid2.prototype.revision = "";
|
|
64315
|
+
|
|
64316
|
+
/**
|
|
64317
|
+
* Creates a new Pid2 instance using the specified properties.
|
|
64318
|
+
* @function create
|
|
64319
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64320
|
+
* @static
|
|
64321
|
+
* @param {replit.goval.api.repl.IPid2=} [properties] Properties to set
|
|
64322
|
+
* @returns {replit.goval.api.repl.Pid2} Pid2 instance
|
|
64323
|
+
*/
|
|
64324
|
+
Pid2.create = function create(properties) {
|
|
64325
|
+
return Pid2.fromObject(properties);
|
|
64326
|
+
};
|
|
64327
|
+
|
|
64328
|
+
/**
|
|
64329
|
+
* Encodes the specified Pid2 message. Does not implicitly {@link replit.goval.api.repl.Pid2.verify|verify} messages.
|
|
64330
|
+
* @function encode
|
|
64331
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64332
|
+
* @static
|
|
64333
|
+
* @param {replit.goval.api.repl.Pid2} message Pid2 message or plain object to encode
|
|
64334
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
64335
|
+
* @returns {$protobuf.Writer} Writer
|
|
64336
|
+
*/
|
|
64337
|
+
Pid2.encode = function encode(message, writer) {
|
|
64338
|
+
if (!writer)
|
|
64339
|
+
writer = $Writer.create();
|
|
64340
|
+
if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket"))
|
|
64341
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bucket);
|
|
64342
|
+
if (message.revision != null && Object.hasOwnProperty.call(message, "revision"))
|
|
64343
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.revision);
|
|
64344
|
+
return writer;
|
|
64345
|
+
};
|
|
64346
|
+
|
|
64347
|
+
/**
|
|
64348
|
+
* Encodes the specified Pid2 message, length delimited. Does not implicitly {@link replit.goval.api.repl.Pid2.verify|verify} messages.
|
|
64349
|
+
* @function encodeDelimited
|
|
64350
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64351
|
+
* @static
|
|
64352
|
+
* @param {replit.goval.api.repl.Pid2} message Pid2 message or plain object to encode
|
|
64353
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
64354
|
+
* @returns {$protobuf.Writer} Writer
|
|
64355
|
+
*/
|
|
64356
|
+
Pid2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
64357
|
+
return this.encode(message, writer).ldelim();
|
|
64358
|
+
};
|
|
64359
|
+
|
|
64360
|
+
/**
|
|
64361
|
+
* Decodes a Pid2 message from the specified reader or buffer.
|
|
64362
|
+
* @function decode
|
|
64363
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64364
|
+
* @static
|
|
64365
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
64366
|
+
* @param {number} [length] Message length if known beforehand
|
|
64367
|
+
* @returns {replit.goval.api.repl.Pid2} Pid2
|
|
64368
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
64369
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
64370
|
+
*/
|
|
64371
|
+
Pid2.decode = function decode(reader, length) {
|
|
64372
|
+
if (!(reader instanceof $Reader))
|
|
64373
|
+
reader = $Reader.create(reader);
|
|
64374
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Pid2();
|
|
64375
|
+
while (reader.pos < end) {
|
|
64376
|
+
var tag = reader.uint32();
|
|
64377
|
+
switch (tag >>> 3) {
|
|
64378
|
+
case 1:
|
|
64379
|
+
message.bucket = reader.int32();
|
|
64380
|
+
break;
|
|
64381
|
+
case 2:
|
|
64382
|
+
message.revision = reader.string();
|
|
64383
|
+
break;
|
|
64384
|
+
default:
|
|
64385
|
+
reader.skipType(tag & 7);
|
|
64386
|
+
break;
|
|
64387
|
+
}
|
|
64388
|
+
}
|
|
64389
|
+
return message;
|
|
64390
|
+
};
|
|
64391
|
+
|
|
64392
|
+
/**
|
|
64393
|
+
* Decodes a Pid2 message from the specified reader or buffer, length delimited.
|
|
64394
|
+
* @function decodeDelimited
|
|
64395
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64396
|
+
* @static
|
|
64397
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
64398
|
+
* @returns {replit.goval.api.repl.Pid2} Pid2
|
|
64399
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
64400
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
64401
|
+
*/
|
|
64402
|
+
Pid2.decodeDelimited = function decodeDelimited(reader) {
|
|
64403
|
+
if (!(reader instanceof $Reader))
|
|
64404
|
+
reader = new $Reader(reader);
|
|
64405
|
+
return this.decode(reader, reader.uint32());
|
|
64406
|
+
};
|
|
64407
|
+
|
|
64408
|
+
/**
|
|
64409
|
+
* Verifies a Pid2 message.
|
|
64410
|
+
* @function verify
|
|
64411
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64412
|
+
* @static
|
|
64413
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
64414
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
64415
|
+
*/
|
|
64416
|
+
Pid2.verify = function verify(message) {
|
|
64417
|
+
if (typeof message !== "object" || message === null)
|
|
64418
|
+
return "object expected";
|
|
64419
|
+
if (message.bucket != null && message.hasOwnProperty("bucket"))
|
|
64420
|
+
switch (message.bucket) {
|
|
64421
|
+
default:
|
|
64422
|
+
return "bucket: enum value expected";
|
|
64423
|
+
case 0:
|
|
64424
|
+
case 1:
|
|
64425
|
+
break;
|
|
64426
|
+
}
|
|
64427
|
+
if (message.revision != null && message.hasOwnProperty("revision"))
|
|
64428
|
+
if (!$util.isString(message.revision))
|
|
64429
|
+
return "revision: string expected";
|
|
64430
|
+
return null;
|
|
64431
|
+
};
|
|
64432
|
+
|
|
64433
|
+
/**
|
|
64434
|
+
* Creates a Pid2 message from a plain object. Also converts values to their respective internal types.
|
|
64435
|
+
* @function fromObject
|
|
64436
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64437
|
+
* @static
|
|
64438
|
+
* @param {Object.<string,*>} object Plain object
|
|
64439
|
+
* @returns {replit.goval.api.repl.Pid2} Pid2
|
|
64440
|
+
*/
|
|
64441
|
+
Pid2.fromObject = function fromObject(object) {
|
|
64442
|
+
if (object instanceof $root.replit.goval.api.repl.Pid2)
|
|
64443
|
+
return object;
|
|
64444
|
+
var message = new $root.replit.goval.api.repl.Pid2();
|
|
64445
|
+
switch (object.bucket) {
|
|
64446
|
+
case "PRODUCTION":
|
|
64447
|
+
case 0:
|
|
64448
|
+
message.bucket = 0;
|
|
64449
|
+
break;
|
|
64450
|
+
case "DEVELOPMENT":
|
|
64451
|
+
case 1:
|
|
64452
|
+
message.bucket = 1;
|
|
64453
|
+
break;
|
|
64454
|
+
}
|
|
64455
|
+
if (object.revision != null)
|
|
64456
|
+
message.revision = String(object.revision);
|
|
64457
|
+
return message;
|
|
64458
|
+
};
|
|
64459
|
+
|
|
64460
|
+
/**
|
|
64461
|
+
* Creates a plain object from a Pid2 message. Also converts values to other types if specified.
|
|
64462
|
+
* @function toObject
|
|
64463
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64464
|
+
* @static
|
|
64465
|
+
* @param {replit.goval.api.repl.Pid2} message Pid2
|
|
64466
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
64467
|
+
* @returns {Object.<string,*>} Plain object
|
|
64468
|
+
*/
|
|
64469
|
+
Pid2.toObject = function toObject(message, options) {
|
|
64470
|
+
if (!options)
|
|
64471
|
+
options = {};
|
|
64472
|
+
var object = {};
|
|
64473
|
+
if (options.defaults) {
|
|
64474
|
+
object.bucket = options.enums === String ? "PRODUCTION" : 0;
|
|
64475
|
+
object.revision = "";
|
|
64476
|
+
}
|
|
64477
|
+
if (message.bucket != null && message.hasOwnProperty("bucket"))
|
|
64478
|
+
object.bucket = options.enums === String ? $root.replit.goval.api.repl.Pid2.Bucket[message.bucket] : message.bucket;
|
|
64479
|
+
if (message.revision != null && message.hasOwnProperty("revision"))
|
|
64480
|
+
object.revision = message.revision;
|
|
64481
|
+
return object;
|
|
64482
|
+
};
|
|
64483
|
+
|
|
64484
|
+
/**
|
|
64485
|
+
* Converts this Pid2 to JSON.
|
|
64486
|
+
* @function toJSON
|
|
64487
|
+
* @memberof replit.goval.api.repl.Pid2
|
|
64488
|
+
* @instance
|
|
64489
|
+
* @returns {Object.<string,*>} JSON object
|
|
64490
|
+
*/
|
|
64491
|
+
Pid2.prototype.toJSON = function toJSON() {
|
|
64492
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
64493
|
+
};
|
|
64494
|
+
|
|
64495
|
+
/**
|
|
64496
|
+
* Bucket enum.
|
|
64497
|
+
* @name replit.goval.api.repl.Pid2.Bucket
|
|
64498
|
+
* @enum {number}
|
|
64499
|
+
* @property {number} PRODUCTION=0 PRODUCTION value
|
|
64500
|
+
* @property {number} DEVELOPMENT=1 DEVELOPMENT value
|
|
64501
|
+
*/
|
|
64502
|
+
Pid2.Bucket = (function() {
|
|
64503
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
64504
|
+
values[valuesById[0] = "PRODUCTION"] = 0;
|
|
64505
|
+
values[valuesById[1] = "DEVELOPMENT"] = 1;
|
|
64506
|
+
return values;
|
|
64507
|
+
})();
|
|
64508
|
+
|
|
64509
|
+
return Pid2;
|
|
64510
|
+
})();
|
|
64511
|
+
|
|
64249
64512
|
return repl;
|
|
64250
64513
|
})();
|
|
64251
64514
|
|
|
@@ -65382,8 +65645,7 @@
|
|
|
65382
65645
|
* @memberof replit.goval.api.pid2
|
|
65383
65646
|
* @interface IClientFrame
|
|
65384
65647
|
* @property {number|null} [sessionId] ClientFrame sessionId
|
|
65385
|
-
* @property {replit.goval.api.pid2.
|
|
65386
|
-
* @property {replit.goval.api.pid2.StreamCallRequest|replit.goval.api.pid2.IStreamCallRequest|null} [streamCall] ClientFrame streamCall
|
|
65648
|
+
* @property {replit.goval.api.pid2.CallRequest|replit.goval.api.pid2.ICallRequest|null} [call] ClientFrame call
|
|
65387
65649
|
* @property {replit.goval.api.pid2.StreamContinuationRequest|replit.goval.api.pid2.IStreamContinuationRequest|null} [streamContinuation] ClientFrame streamContinuation
|
|
65388
65650
|
* @property {replit.goval.api.pid2.StreamCancelRequest|replit.goval.api.pid2.IStreamCancelRequest|null} [streamCancel] ClientFrame streamCancel
|
|
65389
65651
|
* @property {replit.goval.api.pid2.Ping|replit.goval.api.pid2.IPing|null} [ping] ClientFrame ping
|
|
@@ -65412,20 +65674,12 @@
|
|
|
65412
65674
|
ClientFrame.prototype.sessionId = 0;
|
|
65413
65675
|
|
|
65414
65676
|
/**
|
|
65415
|
-
* ClientFrame
|
|
65416
|
-
* @member {replit.goval.api.pid2.
|
|
65417
|
-
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65418
|
-
* @instance
|
|
65419
|
-
*/
|
|
65420
|
-
ClientFrame.prototype.unaryCall = null;
|
|
65421
|
-
|
|
65422
|
-
/**
|
|
65423
|
-
* ClientFrame streamCall.
|
|
65424
|
-
* @member {replit.goval.api.pid2.StreamCallRequest|null|undefined} streamCall
|
|
65677
|
+
* ClientFrame call.
|
|
65678
|
+
* @member {replit.goval.api.pid2.CallRequest|null|undefined} call
|
|
65425
65679
|
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65426
65680
|
* @instance
|
|
65427
65681
|
*/
|
|
65428
|
-
ClientFrame.prototype.
|
|
65682
|
+
ClientFrame.prototype.call = null;
|
|
65429
65683
|
|
|
65430
65684
|
/**
|
|
65431
65685
|
* ClientFrame streamContinuation.
|
|
@@ -65456,12 +65710,12 @@
|
|
|
65456
65710
|
|
|
65457
65711
|
/**
|
|
65458
65712
|
* ClientFrame body.
|
|
65459
|
-
* @member {"
|
|
65713
|
+
* @member {"call"|"streamContinuation"|"streamCancel"|"ping"|undefined} body
|
|
65460
65714
|
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65461
65715
|
* @instance
|
|
65462
65716
|
*/
|
|
65463
65717
|
Object.defineProperty(ClientFrame.prototype, "body", {
|
|
65464
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
65718
|
+
get: $util.oneOfGetter($oneOfFields = ["call", "streamContinuation", "streamCancel", "ping"]),
|
|
65465
65719
|
set: $util.oneOfSetter($oneOfFields)
|
|
65466
65720
|
});
|
|
65467
65721
|
|
|
@@ -65491,16 +65745,14 @@
|
|
|
65491
65745
|
writer = $Writer.create();
|
|
65492
65746
|
if (message.sessionId != null && Object.hasOwnProperty.call(message, "sessionId"))
|
|
65493
65747
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sessionId);
|
|
65494
|
-
if (message.
|
|
65495
|
-
$root.replit.goval.api.pid2.
|
|
65496
|
-
if (message.streamCall != null && Object.hasOwnProperty.call(message, "streamCall"))
|
|
65497
|
-
$root.replit.goval.api.pid2.StreamCallRequest.encode(message.streamCall, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
65748
|
+
if (message.call != null && Object.hasOwnProperty.call(message, "call"))
|
|
65749
|
+
$root.replit.goval.api.pid2.CallRequest.encode(message.call, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
65498
65750
|
if (message.streamContinuation != null && Object.hasOwnProperty.call(message, "streamContinuation"))
|
|
65499
|
-
$root.replit.goval.api.pid2.StreamContinuationRequest.encode(message.streamContinuation, writer.uint32(/* id
|
|
65751
|
+
$root.replit.goval.api.pid2.StreamContinuationRequest.encode(message.streamContinuation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
65500
65752
|
if (message.streamCancel != null && Object.hasOwnProperty.call(message, "streamCancel"))
|
|
65501
|
-
$root.replit.goval.api.pid2.StreamCancelRequest.encode(message.streamCancel, writer.uint32(/* id
|
|
65753
|
+
$root.replit.goval.api.pid2.StreamCancelRequest.encode(message.streamCancel, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
65502
65754
|
if (message.ping != null && Object.hasOwnProperty.call(message, "ping"))
|
|
65503
|
-
$root.replit.goval.api.pid2.Ping.encode(message.ping, writer.uint32(/* id
|
|
65755
|
+
$root.replit.goval.api.pid2.Ping.encode(message.ping, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
65504
65756
|
return writer;
|
|
65505
65757
|
};
|
|
65506
65758
|
|
|
@@ -65539,18 +65791,15 @@
|
|
|
65539
65791
|
message.sessionId = reader.uint32();
|
|
65540
65792
|
break;
|
|
65541
65793
|
case 2:
|
|
65542
|
-
message.
|
|
65794
|
+
message.call = $root.replit.goval.api.pid2.CallRequest.decode(reader, reader.uint32());
|
|
65543
65795
|
break;
|
|
65544
65796
|
case 3:
|
|
65545
|
-
message.streamCall = $root.replit.goval.api.pid2.StreamCallRequest.decode(reader, reader.uint32());
|
|
65546
|
-
break;
|
|
65547
|
-
case 4:
|
|
65548
65797
|
message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationRequest.decode(reader, reader.uint32());
|
|
65549
65798
|
break;
|
|
65550
|
-
case
|
|
65799
|
+
case 4:
|
|
65551
65800
|
message.streamCancel = $root.replit.goval.api.pid2.StreamCancelRequest.decode(reader, reader.uint32());
|
|
65552
65801
|
break;
|
|
65553
|
-
case
|
|
65802
|
+
case 5:
|
|
65554
65803
|
message.ping = $root.replit.goval.api.pid2.Ping.decode(reader, reader.uint32());
|
|
65555
65804
|
break;
|
|
65556
65805
|
default:
|
|
@@ -65592,22 +65841,12 @@
|
|
|
65592
65841
|
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
65593
65842
|
if (!$util.isInteger(message.sessionId))
|
|
65594
65843
|
return "sessionId: integer expected";
|
|
65595
|
-
if (message.
|
|
65596
|
-
properties.body = 1;
|
|
65597
|
-
{
|
|
65598
|
-
var error = $root.replit.goval.api.pid2.UnaryCallRequest.verify(message.unaryCall);
|
|
65599
|
-
if (error)
|
|
65600
|
-
return "unaryCall." + error;
|
|
65601
|
-
}
|
|
65602
|
-
}
|
|
65603
|
-
if (message.streamCall != null && message.hasOwnProperty("streamCall")) {
|
|
65604
|
-
if (properties.body === 1)
|
|
65605
|
-
return "body: multiple values";
|
|
65844
|
+
if (message.call != null && message.hasOwnProperty("call")) {
|
|
65606
65845
|
properties.body = 1;
|
|
65607
65846
|
{
|
|
65608
|
-
var error = $root.replit.goval.api.pid2.
|
|
65847
|
+
var error = $root.replit.goval.api.pid2.CallRequest.verify(message.call);
|
|
65609
65848
|
if (error)
|
|
65610
|
-
return "
|
|
65849
|
+
return "call." + error;
|
|
65611
65850
|
}
|
|
65612
65851
|
}
|
|
65613
65852
|
if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
|
|
@@ -65657,15 +65896,10 @@
|
|
|
65657
65896
|
var message = new $root.replit.goval.api.pid2.ClientFrame();
|
|
65658
65897
|
if (object.sessionId != null)
|
|
65659
65898
|
message.sessionId = object.sessionId >>> 0;
|
|
65660
|
-
if (object.
|
|
65661
|
-
if (typeof object.
|
|
65662
|
-
throw TypeError(".replit.goval.api.pid2.ClientFrame.
|
|
65663
|
-
message.
|
|
65664
|
-
}
|
|
65665
|
-
if (object.streamCall != null) {
|
|
65666
|
-
if (typeof object.streamCall !== "object")
|
|
65667
|
-
throw TypeError(".replit.goval.api.pid2.ClientFrame.streamCall: object expected");
|
|
65668
|
-
message.streamCall = $root.replit.goval.api.pid2.StreamCallRequest.fromObject(object.streamCall);
|
|
65899
|
+
if (object.call != null) {
|
|
65900
|
+
if (typeof object.call !== "object")
|
|
65901
|
+
throw TypeError(".replit.goval.api.pid2.ClientFrame.call: object expected");
|
|
65902
|
+
message.call = $root.replit.goval.api.pid2.CallRequest.fromObject(object.call);
|
|
65669
65903
|
}
|
|
65670
65904
|
if (object.streamContinuation != null) {
|
|
65671
65905
|
if (typeof object.streamContinuation !== "object")
|
|
@@ -65702,15 +65936,10 @@
|
|
|
65702
65936
|
object.sessionId = 0;
|
|
65703
65937
|
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
65704
65938
|
object.sessionId = message.sessionId;
|
|
65705
|
-
if (message.
|
|
65706
|
-
object.
|
|
65707
|
-
if (options.oneofs)
|
|
65708
|
-
object.body = "unaryCall";
|
|
65709
|
-
}
|
|
65710
|
-
if (message.streamCall != null && message.hasOwnProperty("streamCall")) {
|
|
65711
|
-
object.streamCall = $root.replit.goval.api.pid2.StreamCallRequest.toObject(message.streamCall, options);
|
|
65939
|
+
if (message.call != null && message.hasOwnProperty("call")) {
|
|
65940
|
+
object.call = $root.replit.goval.api.pid2.CallRequest.toObject(message.call, options);
|
|
65712
65941
|
if (options.oneofs)
|
|
65713
|
-
object.body = "
|
|
65942
|
+
object.body = "call";
|
|
65714
65943
|
}
|
|
65715
65944
|
if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
|
|
65716
65945
|
object.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationRequest.toObject(message.streamContinuation, options);
|
|
@@ -65751,8 +65980,7 @@
|
|
|
65751
65980
|
* @memberof replit.goval.api.pid2
|
|
65752
65981
|
* @interface IServerFrame
|
|
65753
65982
|
* @property {number|null} [sessionId] ServerFrame sessionId
|
|
65754
|
-
* @property {replit.goval.api.pid2.
|
|
65755
|
-
* @property {replit.goval.api.pid2.StreamContinuationResponse|replit.goval.api.pid2.IStreamContinuationResponse|null} [streamContinuation] ServerFrame streamContinuation
|
|
65983
|
+
* @property {replit.goval.api.pid2.CallResponse|replit.goval.api.pid2.ICallResponse|null} [response] ServerFrame response
|
|
65756
65984
|
* @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [goaway] ServerFrame goaway
|
|
65757
65985
|
* @property {replit.goval.api.pid2.Ping|replit.goval.api.pid2.IPing|null} [ping] ServerFrame ping
|
|
65758
65986
|
*/
|
|
@@ -65780,20 +66008,12 @@
|
|
|
65780
66008
|
ServerFrame.prototype.sessionId = 0;
|
|
65781
66009
|
|
|
65782
66010
|
/**
|
|
65783
|
-
* ServerFrame
|
|
65784
|
-
* @member {replit.goval.api.pid2.
|
|
66011
|
+
* ServerFrame response.
|
|
66012
|
+
* @member {replit.goval.api.pid2.CallResponse|null|undefined} response
|
|
65785
66013
|
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65786
66014
|
* @instance
|
|
65787
66015
|
*/
|
|
65788
|
-
ServerFrame.prototype.
|
|
65789
|
-
|
|
65790
|
-
/**
|
|
65791
|
-
* ServerFrame streamContinuation.
|
|
65792
|
-
* @member {replit.goval.api.pid2.StreamContinuationResponse|null|undefined} streamContinuation
|
|
65793
|
-
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65794
|
-
* @instance
|
|
65795
|
-
*/
|
|
65796
|
-
ServerFrame.prototype.streamContinuation = null;
|
|
66016
|
+
ServerFrame.prototype.response = null;
|
|
65797
66017
|
|
|
65798
66018
|
/**
|
|
65799
66019
|
* ServerFrame goaway.
|
|
@@ -65816,12 +66036,12 @@
|
|
|
65816
66036
|
|
|
65817
66037
|
/**
|
|
65818
66038
|
* ServerFrame body.
|
|
65819
|
-
* @member {"
|
|
66039
|
+
* @member {"response"|"goaway"|"ping"|undefined} body
|
|
65820
66040
|
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65821
66041
|
* @instance
|
|
65822
66042
|
*/
|
|
65823
66043
|
Object.defineProperty(ServerFrame.prototype, "body", {
|
|
65824
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
66044
|
+
get: $util.oneOfGetter($oneOfFields = ["response", "goaway", "ping"]),
|
|
65825
66045
|
set: $util.oneOfSetter($oneOfFields)
|
|
65826
66046
|
});
|
|
65827
66047
|
|
|
@@ -65851,10 +66071,8 @@
|
|
|
65851
66071
|
writer = $Writer.create();
|
|
65852
66072
|
if (message.sessionId != null && Object.hasOwnProperty.call(message, "sessionId"))
|
|
65853
66073
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sessionId);
|
|
65854
|
-
if (message.
|
|
65855
|
-
$root.replit.goval.api.pid2.
|
|
65856
|
-
if (message.streamContinuation != null && Object.hasOwnProperty.call(message, "streamContinuation"))
|
|
65857
|
-
$root.replit.goval.api.pid2.StreamContinuationResponse.encode(message.streamContinuation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
66074
|
+
if (message.response != null && Object.hasOwnProperty.call(message, "response"))
|
|
66075
|
+
$root.replit.goval.api.pid2.CallResponse.encode(message.response, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
65858
66076
|
if (message.goaway != null && Object.hasOwnProperty.call(message, "goaway"))
|
|
65859
66077
|
$root.replit.goval.api.pid2.Error.encode(message.goaway, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
65860
66078
|
if (message.ping != null && Object.hasOwnProperty.call(message, "ping"))
|
|
@@ -65897,10 +66115,7 @@
|
|
|
65897
66115
|
message.sessionId = reader.uint32();
|
|
65898
66116
|
break;
|
|
65899
66117
|
case 2:
|
|
65900
|
-
message.
|
|
65901
|
-
break;
|
|
65902
|
-
case 3:
|
|
65903
|
-
message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationResponse.decode(reader, reader.uint32());
|
|
66118
|
+
message.response = $root.replit.goval.api.pid2.CallResponse.decode(reader, reader.uint32());
|
|
65904
66119
|
break;
|
|
65905
66120
|
case 4:
|
|
65906
66121
|
message.goaway = $root.replit.goval.api.pid2.Error.decode(reader, reader.uint32());
|
|
@@ -65947,22 +66162,12 @@
|
|
|
65947
66162
|
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
65948
66163
|
if (!$util.isInteger(message.sessionId))
|
|
65949
66164
|
return "sessionId: integer expected";
|
|
65950
|
-
if (message.
|
|
65951
|
-
properties.body = 1;
|
|
65952
|
-
{
|
|
65953
|
-
var error = $root.replit.goval.api.pid2.UnaryCallResponse.verify(message.unaryCall);
|
|
65954
|
-
if (error)
|
|
65955
|
-
return "unaryCall." + error;
|
|
65956
|
-
}
|
|
65957
|
-
}
|
|
65958
|
-
if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
|
|
65959
|
-
if (properties.body === 1)
|
|
65960
|
-
return "body: multiple values";
|
|
66165
|
+
if (message.response != null && message.hasOwnProperty("response")) {
|
|
65961
66166
|
properties.body = 1;
|
|
65962
66167
|
{
|
|
65963
|
-
var error = $root.replit.goval.api.pid2.
|
|
66168
|
+
var error = $root.replit.goval.api.pid2.CallResponse.verify(message.response);
|
|
65964
66169
|
if (error)
|
|
65965
|
-
return "
|
|
66170
|
+
return "response." + error;
|
|
65966
66171
|
}
|
|
65967
66172
|
}
|
|
65968
66173
|
if (message.goaway != null && message.hasOwnProperty("goaway")) {
|
|
@@ -66002,15 +66207,10 @@
|
|
|
66002
66207
|
var message = new $root.replit.goval.api.pid2.ServerFrame();
|
|
66003
66208
|
if (object.sessionId != null)
|
|
66004
66209
|
message.sessionId = object.sessionId >>> 0;
|
|
66005
|
-
if (object.
|
|
66006
|
-
if (typeof object.
|
|
66007
|
-
throw TypeError(".replit.goval.api.pid2.ServerFrame.
|
|
66008
|
-
message.
|
|
66009
|
-
}
|
|
66010
|
-
if (object.streamContinuation != null) {
|
|
66011
|
-
if (typeof object.streamContinuation !== "object")
|
|
66012
|
-
throw TypeError(".replit.goval.api.pid2.ServerFrame.streamContinuation: object expected");
|
|
66013
|
-
message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationResponse.fromObject(object.streamContinuation);
|
|
66210
|
+
if (object.response != null) {
|
|
66211
|
+
if (typeof object.response !== "object")
|
|
66212
|
+
throw TypeError(".replit.goval.api.pid2.ServerFrame.response: object expected");
|
|
66213
|
+
message.response = $root.replit.goval.api.pid2.CallResponse.fromObject(object.response);
|
|
66014
66214
|
}
|
|
66015
66215
|
if (object.goaway != null) {
|
|
66016
66216
|
if (typeof object.goaway !== "object")
|
|
@@ -66042,15 +66242,10 @@
|
|
|
66042
66242
|
object.sessionId = 0;
|
|
66043
66243
|
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
66044
66244
|
object.sessionId = message.sessionId;
|
|
66045
|
-
if (message.
|
|
66046
|
-
object.
|
|
66047
|
-
if (options.oneofs)
|
|
66048
|
-
object.body = "unaryCall";
|
|
66049
|
-
}
|
|
66050
|
-
if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
|
|
66051
|
-
object.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationResponse.toObject(message.streamContinuation, options);
|
|
66245
|
+
if (message.response != null && message.hasOwnProperty("response")) {
|
|
66246
|
+
object.response = $root.replit.goval.api.pid2.CallResponse.toObject(message.response, options);
|
|
66052
66247
|
if (options.oneofs)
|
|
66053
|
-
object.body = "
|
|
66248
|
+
object.body = "response";
|
|
66054
66249
|
}
|
|
66055
66250
|
if (message.goaway != null && message.hasOwnProperty("goaway")) {
|
|
66056
66251
|
object.goaway = $root.replit.goval.api.pid2.Error.toObject(message.goaway, options);
|
|
@@ -66079,26 +66274,27 @@
|
|
|
66079
66274
|
return ServerFrame;
|
|
66080
66275
|
})();
|
|
66081
66276
|
|
|
66082
|
-
pid2.
|
|
66277
|
+
pid2.CallRequest = (function() {
|
|
66083
66278
|
|
|
66084
66279
|
/**
|
|
66085
|
-
* Properties of
|
|
66280
|
+
* Properties of a CallRequest.
|
|
66086
66281
|
* @memberof replit.goval.api.pid2
|
|
66087
|
-
* @interface
|
|
66088
|
-
* @property {number|null} [streamId]
|
|
66089
|
-
* @property {string|null} [service]
|
|
66090
|
-
* @property {string|null} [method]
|
|
66091
|
-
* @property {google.protobuf.Any|google.protobuf.IAny|null} [
|
|
66282
|
+
* @interface ICallRequest
|
|
66283
|
+
* @property {number|null} [streamId] CallRequest streamId
|
|
66284
|
+
* @property {string|null} [service] CallRequest service
|
|
66285
|
+
* @property {string|null} [method] CallRequest method
|
|
66286
|
+
* @property {google.protobuf.Any|google.protobuf.IAny|null} [unaryRequest] CallRequest unaryRequest
|
|
66287
|
+
* @property {google.protobuf.Any|google.protobuf.IAny|null} [streamHeader] CallRequest streamHeader
|
|
66092
66288
|
*/
|
|
66093
66289
|
|
|
66094
66290
|
/**
|
|
66095
|
-
* Constructs a new
|
|
66291
|
+
* Constructs a new CallRequest.
|
|
66096
66292
|
* @memberof replit.goval.api.pid2
|
|
66097
|
-
* @classdesc Represents
|
|
66293
|
+
* @classdesc Represents a CallRequest.
|
|
66098
66294
|
* @constructor
|
|
66099
|
-
* @param {replit.goval.api.pid2.
|
|
66295
|
+
* @param {replit.goval.api.pid2.ICallRequest=} [properties] Properties to set
|
|
66100
66296
|
*/
|
|
66101
|
-
function
|
|
66297
|
+
function CallRequest(properties) {
|
|
66102
66298
|
if (properties)
|
|
66103
66299
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66104
66300
|
if (properties[keys[i]] != null)
|
|
@@ -66106,59 +66302,81 @@
|
|
|
66106
66302
|
}
|
|
66107
66303
|
|
|
66108
66304
|
/**
|
|
66109
|
-
*
|
|
66305
|
+
* CallRequest streamId.
|
|
66110
66306
|
* @member {number} streamId
|
|
66111
|
-
* @memberof replit.goval.api.pid2.
|
|
66307
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66112
66308
|
* @instance
|
|
66113
66309
|
*/
|
|
66114
|
-
|
|
66310
|
+
CallRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66115
66311
|
|
|
66116
66312
|
/**
|
|
66117
|
-
*
|
|
66313
|
+
* CallRequest service.
|
|
66118
66314
|
* @member {string} service
|
|
66119
|
-
* @memberof replit.goval.api.pid2.
|
|
66315
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66120
66316
|
* @instance
|
|
66121
66317
|
*/
|
|
66122
|
-
|
|
66318
|
+
CallRequest.prototype.service = "";
|
|
66123
66319
|
|
|
66124
66320
|
/**
|
|
66125
|
-
*
|
|
66321
|
+
* CallRequest method.
|
|
66126
66322
|
* @member {string} method
|
|
66127
|
-
* @memberof replit.goval.api.pid2.
|
|
66323
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66128
66324
|
* @instance
|
|
66129
66325
|
*/
|
|
66130
|
-
|
|
66326
|
+
CallRequest.prototype.method = "";
|
|
66131
66327
|
|
|
66132
66328
|
/**
|
|
66133
|
-
*
|
|
66134
|
-
* @member {google.protobuf.Any|null|undefined}
|
|
66135
|
-
* @memberof replit.goval.api.pid2.
|
|
66329
|
+
* CallRequest unaryRequest.
|
|
66330
|
+
* @member {google.protobuf.Any|null|undefined} unaryRequest
|
|
66331
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66332
|
+
* @instance
|
|
66333
|
+
*/
|
|
66334
|
+
CallRequest.prototype.unaryRequest = null;
|
|
66335
|
+
|
|
66336
|
+
/**
|
|
66337
|
+
* CallRequest streamHeader.
|
|
66338
|
+
* @member {google.protobuf.Any|null|undefined} streamHeader
|
|
66339
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66340
|
+
* @instance
|
|
66341
|
+
*/
|
|
66342
|
+
CallRequest.prototype.streamHeader = null;
|
|
66343
|
+
|
|
66344
|
+
// OneOf field names bound to virtual getters and setters
|
|
66345
|
+
var $oneOfFields;
|
|
66346
|
+
|
|
66347
|
+
/**
|
|
66348
|
+
* CallRequest body.
|
|
66349
|
+
* @member {"unaryRequest"|"streamHeader"|undefined} body
|
|
66350
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66136
66351
|
* @instance
|
|
66137
66352
|
*/
|
|
66138
|
-
|
|
66353
|
+
Object.defineProperty(CallRequest.prototype, "body", {
|
|
66354
|
+
get: $util.oneOfGetter($oneOfFields = ["unaryRequest", "streamHeader"]),
|
|
66355
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
66356
|
+
});
|
|
66139
66357
|
|
|
66140
66358
|
/**
|
|
66141
|
-
* Creates a new
|
|
66359
|
+
* Creates a new CallRequest instance using the specified properties.
|
|
66142
66360
|
* @function create
|
|
66143
|
-
* @memberof replit.goval.api.pid2.
|
|
66361
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66144
66362
|
* @static
|
|
66145
|
-
* @param {replit.goval.api.pid2.
|
|
66146
|
-
* @returns {replit.goval.api.pid2.
|
|
66363
|
+
* @param {replit.goval.api.pid2.ICallRequest=} [properties] Properties to set
|
|
66364
|
+
* @returns {replit.goval.api.pid2.CallRequest} CallRequest instance
|
|
66147
66365
|
*/
|
|
66148
|
-
|
|
66149
|
-
return
|
|
66366
|
+
CallRequest.create = function create(properties) {
|
|
66367
|
+
return CallRequest.fromObject(properties);
|
|
66150
66368
|
};
|
|
66151
66369
|
|
|
66152
66370
|
/**
|
|
66153
|
-
* Encodes the specified
|
|
66371
|
+
* Encodes the specified CallRequest message. Does not implicitly {@link replit.goval.api.pid2.CallRequest.verify|verify} messages.
|
|
66154
66372
|
* @function encode
|
|
66155
|
-
* @memberof replit.goval.api.pid2.
|
|
66373
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66156
66374
|
* @static
|
|
66157
|
-
* @param {replit.goval.api.pid2.
|
|
66375
|
+
* @param {replit.goval.api.pid2.CallRequest} message CallRequest message or plain object to encode
|
|
66158
66376
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66159
66377
|
* @returns {$protobuf.Writer} Writer
|
|
66160
66378
|
*/
|
|
66161
|
-
|
|
66379
|
+
CallRequest.encode = function encode(message, writer) {
|
|
66162
66380
|
if (!writer)
|
|
66163
66381
|
writer = $Writer.create();
|
|
66164
66382
|
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
@@ -66167,39 +66385,41 @@
|
|
|
66167
66385
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.service);
|
|
66168
66386
|
if (message.method != null && Object.hasOwnProperty.call(message, "method"))
|
|
66169
66387
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.method);
|
|
66170
|
-
if (message.
|
|
66171
|
-
$root.google.protobuf.Any.encode(message.
|
|
66388
|
+
if (message.unaryRequest != null && Object.hasOwnProperty.call(message, "unaryRequest"))
|
|
66389
|
+
$root.google.protobuf.Any.encode(message.unaryRequest, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
66390
|
+
if (message.streamHeader != null && Object.hasOwnProperty.call(message, "streamHeader"))
|
|
66391
|
+
$root.google.protobuf.Any.encode(message.streamHeader, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
66172
66392
|
return writer;
|
|
66173
66393
|
};
|
|
66174
66394
|
|
|
66175
66395
|
/**
|
|
66176
|
-
* Encodes the specified
|
|
66396
|
+
* Encodes the specified CallRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.CallRequest.verify|verify} messages.
|
|
66177
66397
|
* @function encodeDelimited
|
|
66178
|
-
* @memberof replit.goval.api.pid2.
|
|
66398
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66179
66399
|
* @static
|
|
66180
|
-
* @param {replit.goval.api.pid2.
|
|
66400
|
+
* @param {replit.goval.api.pid2.CallRequest} message CallRequest message or plain object to encode
|
|
66181
66401
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66182
66402
|
* @returns {$protobuf.Writer} Writer
|
|
66183
66403
|
*/
|
|
66184
|
-
|
|
66404
|
+
CallRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66185
66405
|
return this.encode(message, writer).ldelim();
|
|
66186
66406
|
};
|
|
66187
66407
|
|
|
66188
66408
|
/**
|
|
66189
|
-
* Decodes
|
|
66409
|
+
* Decodes a CallRequest message from the specified reader or buffer.
|
|
66190
66410
|
* @function decode
|
|
66191
|
-
* @memberof replit.goval.api.pid2.
|
|
66411
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66192
66412
|
* @static
|
|
66193
66413
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66194
66414
|
* @param {number} [length] Message length if known beforehand
|
|
66195
|
-
* @returns {replit.goval.api.pid2.
|
|
66415
|
+
* @returns {replit.goval.api.pid2.CallRequest} CallRequest
|
|
66196
66416
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66197
66417
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66198
66418
|
*/
|
|
66199
|
-
|
|
66419
|
+
CallRequest.decode = function decode(reader, length) {
|
|
66200
66420
|
if (!(reader instanceof $Reader))
|
|
66201
66421
|
reader = $Reader.create(reader);
|
|
66202
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.
|
|
66422
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.CallRequest();
|
|
66203
66423
|
while (reader.pos < end) {
|
|
66204
66424
|
var tag = reader.uint32();
|
|
66205
66425
|
switch (tag >>> 3) {
|
|
@@ -66213,7 +66433,10 @@
|
|
|
66213
66433
|
message.method = reader.string();
|
|
66214
66434
|
break;
|
|
66215
66435
|
case 4:
|
|
66216
|
-
message.
|
|
66436
|
+
message.unaryRequest = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
66437
|
+
break;
|
|
66438
|
+
case 5:
|
|
66439
|
+
message.streamHeader = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
66217
66440
|
break;
|
|
66218
66441
|
default:
|
|
66219
66442
|
reader.skipType(tag & 7);
|
|
@@ -66224,32 +66447,33 @@
|
|
|
66224
66447
|
};
|
|
66225
66448
|
|
|
66226
66449
|
/**
|
|
66227
|
-
* Decodes
|
|
66450
|
+
* Decodes a CallRequest message from the specified reader or buffer, length delimited.
|
|
66228
66451
|
* @function decodeDelimited
|
|
66229
|
-
* @memberof replit.goval.api.pid2.
|
|
66452
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66230
66453
|
* @static
|
|
66231
66454
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66232
|
-
* @returns {replit.goval.api.pid2.
|
|
66455
|
+
* @returns {replit.goval.api.pid2.CallRequest} CallRequest
|
|
66233
66456
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66234
66457
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66235
66458
|
*/
|
|
66236
|
-
|
|
66459
|
+
CallRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
66237
66460
|
if (!(reader instanceof $Reader))
|
|
66238
66461
|
reader = new $Reader(reader);
|
|
66239
66462
|
return this.decode(reader, reader.uint32());
|
|
66240
66463
|
};
|
|
66241
66464
|
|
|
66242
66465
|
/**
|
|
66243
|
-
* Verifies
|
|
66466
|
+
* Verifies a CallRequest message.
|
|
66244
66467
|
* @function verify
|
|
66245
|
-
* @memberof replit.goval.api.pid2.
|
|
66468
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66246
66469
|
* @static
|
|
66247
66470
|
* @param {Object.<string,*>} message Plain object to verify
|
|
66248
66471
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66249
66472
|
*/
|
|
66250
|
-
|
|
66473
|
+
CallRequest.verify = function verify(message) {
|
|
66251
66474
|
if (typeof message !== "object" || message === null)
|
|
66252
66475
|
return "object expected";
|
|
66476
|
+
var properties = {};
|
|
66253
66477
|
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66254
66478
|
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
66255
66479
|
return "streamId: integer|Long expected";
|
|
@@ -66259,26 +66483,39 @@
|
|
|
66259
66483
|
if (message.method != null && message.hasOwnProperty("method"))
|
|
66260
66484
|
if (!$util.isString(message.method))
|
|
66261
66485
|
return "method: string expected";
|
|
66262
|
-
if (message.
|
|
66263
|
-
|
|
66264
|
-
|
|
66265
|
-
|
|
66486
|
+
if (message.unaryRequest != null && message.hasOwnProperty("unaryRequest")) {
|
|
66487
|
+
properties.body = 1;
|
|
66488
|
+
{
|
|
66489
|
+
var error = $root.google.protobuf.Any.verify(message.unaryRequest);
|
|
66490
|
+
if (error)
|
|
66491
|
+
return "unaryRequest." + error;
|
|
66492
|
+
}
|
|
66493
|
+
}
|
|
66494
|
+
if (message.streamHeader != null && message.hasOwnProperty("streamHeader")) {
|
|
66495
|
+
if (properties.body === 1)
|
|
66496
|
+
return "body: multiple values";
|
|
66497
|
+
properties.body = 1;
|
|
66498
|
+
{
|
|
66499
|
+
var error = $root.google.protobuf.Any.verify(message.streamHeader);
|
|
66500
|
+
if (error)
|
|
66501
|
+
return "streamHeader." + error;
|
|
66502
|
+
}
|
|
66266
66503
|
}
|
|
66267
66504
|
return null;
|
|
66268
66505
|
};
|
|
66269
66506
|
|
|
66270
66507
|
/**
|
|
66271
|
-
* Creates
|
|
66508
|
+
* Creates a CallRequest message from a plain object. Also converts values to their respective internal types.
|
|
66272
66509
|
* @function fromObject
|
|
66273
|
-
* @memberof replit.goval.api.pid2.
|
|
66510
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66274
66511
|
* @static
|
|
66275
66512
|
* @param {Object.<string,*>} object Plain object
|
|
66276
|
-
* @returns {replit.goval.api.pid2.
|
|
66513
|
+
* @returns {replit.goval.api.pid2.CallRequest} CallRequest
|
|
66277
66514
|
*/
|
|
66278
|
-
|
|
66279
|
-
if (object instanceof $root.replit.goval.api.pid2.
|
|
66515
|
+
CallRequest.fromObject = function fromObject(object) {
|
|
66516
|
+
if (object instanceof $root.replit.goval.api.pid2.CallRequest)
|
|
66280
66517
|
return object;
|
|
66281
|
-
var message = new $root.replit.goval.api.pid2.
|
|
66518
|
+
var message = new $root.replit.goval.api.pid2.CallRequest();
|
|
66282
66519
|
if (object.streamId != null)
|
|
66283
66520
|
if ($util.Long)
|
|
66284
66521
|
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
@@ -66292,24 +66529,29 @@
|
|
|
66292
66529
|
message.service = String(object.service);
|
|
66293
66530
|
if (object.method != null)
|
|
66294
66531
|
message.method = String(object.method);
|
|
66295
|
-
if (object.
|
|
66296
|
-
if (typeof object.
|
|
66297
|
-
throw TypeError(".replit.goval.api.pid2.
|
|
66298
|
-
message.
|
|
66532
|
+
if (object.unaryRequest != null) {
|
|
66533
|
+
if (typeof object.unaryRequest !== "object")
|
|
66534
|
+
throw TypeError(".replit.goval.api.pid2.CallRequest.unaryRequest: object expected");
|
|
66535
|
+
message.unaryRequest = $root.google.protobuf.Any.fromObject(object.unaryRequest);
|
|
66536
|
+
}
|
|
66537
|
+
if (object.streamHeader != null) {
|
|
66538
|
+
if (typeof object.streamHeader !== "object")
|
|
66539
|
+
throw TypeError(".replit.goval.api.pid2.CallRequest.streamHeader: object expected");
|
|
66540
|
+
message.streamHeader = $root.google.protobuf.Any.fromObject(object.streamHeader);
|
|
66299
66541
|
}
|
|
66300
66542
|
return message;
|
|
66301
66543
|
};
|
|
66302
66544
|
|
|
66303
66545
|
/**
|
|
66304
|
-
* Creates a plain object from
|
|
66546
|
+
* Creates a plain object from a CallRequest message. Also converts values to other types if specified.
|
|
66305
66547
|
* @function toObject
|
|
66306
|
-
* @memberof replit.goval.api.pid2.
|
|
66548
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66307
66549
|
* @static
|
|
66308
|
-
* @param {replit.goval.api.pid2.
|
|
66550
|
+
* @param {replit.goval.api.pid2.CallRequest} message CallRequest
|
|
66309
66551
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66310
66552
|
* @returns {Object.<string,*>} Plain object
|
|
66311
66553
|
*/
|
|
66312
|
-
|
|
66554
|
+
CallRequest.toObject = function toObject(message, options) {
|
|
66313
66555
|
if (!options)
|
|
66314
66556
|
options = {};
|
|
66315
66557
|
var object = {};
|
|
@@ -66321,7 +66563,6 @@
|
|
|
66321
66563
|
object.streamId = options.longs === String ? "0" : 0;
|
|
66322
66564
|
object.service = "";
|
|
66323
66565
|
object.method = "";
|
|
66324
|
-
object.request = null;
|
|
66325
66566
|
}
|
|
66326
66567
|
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66327
66568
|
if (typeof message.streamId === "number")
|
|
@@ -66332,295 +66573,31 @@
|
|
|
66332
66573
|
object.service = message.service;
|
|
66333
66574
|
if (message.method != null && message.hasOwnProperty("method"))
|
|
66334
66575
|
object.method = message.method;
|
|
66335
|
-
if (message.
|
|
66336
|
-
object.
|
|
66337
|
-
|
|
66338
|
-
|
|
66339
|
-
|
|
66340
|
-
/**
|
|
66341
|
-
* Converts this UnaryCallRequest to JSON.
|
|
66342
|
-
* @function toJSON
|
|
66343
|
-
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
66344
|
-
* @instance
|
|
66345
|
-
* @returns {Object.<string,*>} JSON object
|
|
66346
|
-
*/
|
|
66347
|
-
UnaryCallRequest.prototype.toJSON = function toJSON() {
|
|
66348
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66349
|
-
};
|
|
66350
|
-
|
|
66351
|
-
return UnaryCallRequest;
|
|
66352
|
-
})();
|
|
66353
|
-
|
|
66354
|
-
pid2.StreamCallRequest = (function() {
|
|
66355
|
-
|
|
66356
|
-
/**
|
|
66357
|
-
* Properties of a StreamCallRequest.
|
|
66358
|
-
* @memberof replit.goval.api.pid2
|
|
66359
|
-
* @interface IStreamCallRequest
|
|
66360
|
-
* @property {number|null} [streamId] StreamCallRequest streamId
|
|
66361
|
-
* @property {string|null} [service] StreamCallRequest service
|
|
66362
|
-
* @property {string|null} [method] StreamCallRequest method
|
|
66363
|
-
* @property {google.protobuf.Any|google.protobuf.IAny|null} [header] StreamCallRequest header
|
|
66364
|
-
*/
|
|
66365
|
-
|
|
66366
|
-
/**
|
|
66367
|
-
* Constructs a new StreamCallRequest.
|
|
66368
|
-
* @memberof replit.goval.api.pid2
|
|
66369
|
-
* @classdesc Represents a StreamCallRequest.
|
|
66370
|
-
* @constructor
|
|
66371
|
-
* @param {replit.goval.api.pid2.IStreamCallRequest=} [properties] Properties to set
|
|
66372
|
-
*/
|
|
66373
|
-
function StreamCallRequest(properties) {
|
|
66374
|
-
if (properties)
|
|
66375
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66376
|
-
if (properties[keys[i]] != null)
|
|
66377
|
-
this[keys[i]] = properties[keys[i]];
|
|
66378
|
-
}
|
|
66379
|
-
|
|
66380
|
-
/**
|
|
66381
|
-
* StreamCallRequest streamId.
|
|
66382
|
-
* @member {number} streamId
|
|
66383
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66384
|
-
* @instance
|
|
66385
|
-
*/
|
|
66386
|
-
StreamCallRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66387
|
-
|
|
66388
|
-
/**
|
|
66389
|
-
* StreamCallRequest service.
|
|
66390
|
-
* @member {string} service
|
|
66391
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66392
|
-
* @instance
|
|
66393
|
-
*/
|
|
66394
|
-
StreamCallRequest.prototype.service = "";
|
|
66395
|
-
|
|
66396
|
-
/**
|
|
66397
|
-
* StreamCallRequest method.
|
|
66398
|
-
* @member {string} method
|
|
66399
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66400
|
-
* @instance
|
|
66401
|
-
*/
|
|
66402
|
-
StreamCallRequest.prototype.method = "";
|
|
66403
|
-
|
|
66404
|
-
/**
|
|
66405
|
-
* StreamCallRequest header.
|
|
66406
|
-
* @member {google.protobuf.Any|null|undefined} header
|
|
66407
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66408
|
-
* @instance
|
|
66409
|
-
*/
|
|
66410
|
-
StreamCallRequest.prototype.header = null;
|
|
66411
|
-
|
|
66412
|
-
/**
|
|
66413
|
-
* Creates a new StreamCallRequest instance using the specified properties.
|
|
66414
|
-
* @function create
|
|
66415
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66416
|
-
* @static
|
|
66417
|
-
* @param {replit.goval.api.pid2.IStreamCallRequest=} [properties] Properties to set
|
|
66418
|
-
* @returns {replit.goval.api.pid2.StreamCallRequest} StreamCallRequest instance
|
|
66419
|
-
*/
|
|
66420
|
-
StreamCallRequest.create = function create(properties) {
|
|
66421
|
-
return StreamCallRequest.fromObject(properties);
|
|
66422
|
-
};
|
|
66423
|
-
|
|
66424
|
-
/**
|
|
66425
|
-
* Encodes the specified StreamCallRequest message. Does not implicitly {@link replit.goval.api.pid2.StreamCallRequest.verify|verify} messages.
|
|
66426
|
-
* @function encode
|
|
66427
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66428
|
-
* @static
|
|
66429
|
-
* @param {replit.goval.api.pid2.StreamCallRequest} message StreamCallRequest message or plain object to encode
|
|
66430
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66431
|
-
* @returns {$protobuf.Writer} Writer
|
|
66432
|
-
*/
|
|
66433
|
-
StreamCallRequest.encode = function encode(message, writer) {
|
|
66434
|
-
if (!writer)
|
|
66435
|
-
writer = $Writer.create();
|
|
66436
|
-
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
66437
|
-
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
|
|
66438
|
-
if (message.service != null && Object.hasOwnProperty.call(message, "service"))
|
|
66439
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.service);
|
|
66440
|
-
if (message.method != null && Object.hasOwnProperty.call(message, "method"))
|
|
66441
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.method);
|
|
66442
|
-
if (message.header != null && Object.hasOwnProperty.call(message, "header"))
|
|
66443
|
-
$root.google.protobuf.Any.encode(message.header, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
66444
|
-
return writer;
|
|
66445
|
-
};
|
|
66446
|
-
|
|
66447
|
-
/**
|
|
66448
|
-
* Encodes the specified StreamCallRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.StreamCallRequest.verify|verify} messages.
|
|
66449
|
-
* @function encodeDelimited
|
|
66450
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66451
|
-
* @static
|
|
66452
|
-
* @param {replit.goval.api.pid2.StreamCallRequest} message StreamCallRequest message or plain object to encode
|
|
66453
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66454
|
-
* @returns {$protobuf.Writer} Writer
|
|
66455
|
-
*/
|
|
66456
|
-
StreamCallRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66457
|
-
return this.encode(message, writer).ldelim();
|
|
66458
|
-
};
|
|
66459
|
-
|
|
66460
|
-
/**
|
|
66461
|
-
* Decodes a StreamCallRequest message from the specified reader or buffer.
|
|
66462
|
-
* @function decode
|
|
66463
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66464
|
-
* @static
|
|
66465
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66466
|
-
* @param {number} [length] Message length if known beforehand
|
|
66467
|
-
* @returns {replit.goval.api.pid2.StreamCallRequest} StreamCallRequest
|
|
66468
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66469
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66470
|
-
*/
|
|
66471
|
-
StreamCallRequest.decode = function decode(reader, length) {
|
|
66472
|
-
if (!(reader instanceof $Reader))
|
|
66473
|
-
reader = $Reader.create(reader);
|
|
66474
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.StreamCallRequest();
|
|
66475
|
-
while (reader.pos < end) {
|
|
66476
|
-
var tag = reader.uint32();
|
|
66477
|
-
switch (tag >>> 3) {
|
|
66478
|
-
case 1:
|
|
66479
|
-
message.streamId = reader.uint64();
|
|
66480
|
-
break;
|
|
66481
|
-
case 2:
|
|
66482
|
-
message.service = reader.string();
|
|
66483
|
-
break;
|
|
66484
|
-
case 3:
|
|
66485
|
-
message.method = reader.string();
|
|
66486
|
-
break;
|
|
66487
|
-
case 4:
|
|
66488
|
-
message.header = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
66489
|
-
break;
|
|
66490
|
-
default:
|
|
66491
|
-
reader.skipType(tag & 7);
|
|
66492
|
-
break;
|
|
66493
|
-
}
|
|
66494
|
-
}
|
|
66495
|
-
return message;
|
|
66496
|
-
};
|
|
66497
|
-
|
|
66498
|
-
/**
|
|
66499
|
-
* Decodes a StreamCallRequest message from the specified reader or buffer, length delimited.
|
|
66500
|
-
* @function decodeDelimited
|
|
66501
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66502
|
-
* @static
|
|
66503
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66504
|
-
* @returns {replit.goval.api.pid2.StreamCallRequest} StreamCallRequest
|
|
66505
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66506
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66507
|
-
*/
|
|
66508
|
-
StreamCallRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
66509
|
-
if (!(reader instanceof $Reader))
|
|
66510
|
-
reader = new $Reader(reader);
|
|
66511
|
-
return this.decode(reader, reader.uint32());
|
|
66512
|
-
};
|
|
66513
|
-
|
|
66514
|
-
/**
|
|
66515
|
-
* Verifies a StreamCallRequest message.
|
|
66516
|
-
* @function verify
|
|
66517
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66518
|
-
* @static
|
|
66519
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
66520
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66521
|
-
*/
|
|
66522
|
-
StreamCallRequest.verify = function verify(message) {
|
|
66523
|
-
if (typeof message !== "object" || message === null)
|
|
66524
|
-
return "object expected";
|
|
66525
|
-
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66526
|
-
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
66527
|
-
return "streamId: integer|Long expected";
|
|
66528
|
-
if (message.service != null && message.hasOwnProperty("service"))
|
|
66529
|
-
if (!$util.isString(message.service))
|
|
66530
|
-
return "service: string expected";
|
|
66531
|
-
if (message.method != null && message.hasOwnProperty("method"))
|
|
66532
|
-
if (!$util.isString(message.method))
|
|
66533
|
-
return "method: string expected";
|
|
66534
|
-
if (message.header != null && message.hasOwnProperty("header")) {
|
|
66535
|
-
var error = $root.google.protobuf.Any.verify(message.header);
|
|
66536
|
-
if (error)
|
|
66537
|
-
return "header." + error;
|
|
66538
|
-
}
|
|
66539
|
-
return null;
|
|
66540
|
-
};
|
|
66541
|
-
|
|
66542
|
-
/**
|
|
66543
|
-
* Creates a StreamCallRequest message from a plain object. Also converts values to their respective internal types.
|
|
66544
|
-
* @function fromObject
|
|
66545
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66546
|
-
* @static
|
|
66547
|
-
* @param {Object.<string,*>} object Plain object
|
|
66548
|
-
* @returns {replit.goval.api.pid2.StreamCallRequest} StreamCallRequest
|
|
66549
|
-
*/
|
|
66550
|
-
StreamCallRequest.fromObject = function fromObject(object) {
|
|
66551
|
-
if (object instanceof $root.replit.goval.api.pid2.StreamCallRequest)
|
|
66552
|
-
return object;
|
|
66553
|
-
var message = new $root.replit.goval.api.pid2.StreamCallRequest();
|
|
66554
|
-
if (object.streamId != null)
|
|
66555
|
-
if ($util.Long)
|
|
66556
|
-
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
66557
|
-
else if (typeof object.streamId === "string")
|
|
66558
|
-
message.streamId = parseInt(object.streamId, 10);
|
|
66559
|
-
else if (typeof object.streamId === "number")
|
|
66560
|
-
message.streamId = object.streamId;
|
|
66561
|
-
else if (typeof object.streamId === "object")
|
|
66562
|
-
message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
|
|
66563
|
-
if (object.service != null)
|
|
66564
|
-
message.service = String(object.service);
|
|
66565
|
-
if (object.method != null)
|
|
66566
|
-
message.method = String(object.method);
|
|
66567
|
-
if (object.header != null) {
|
|
66568
|
-
if (typeof object.header !== "object")
|
|
66569
|
-
throw TypeError(".replit.goval.api.pid2.StreamCallRequest.header: object expected");
|
|
66570
|
-
message.header = $root.google.protobuf.Any.fromObject(object.header);
|
|
66576
|
+
if (message.unaryRequest != null && message.hasOwnProperty("unaryRequest")) {
|
|
66577
|
+
object.unaryRequest = $root.google.protobuf.Any.toObject(message.unaryRequest, options);
|
|
66578
|
+
if (options.oneofs)
|
|
66579
|
+
object.body = "unaryRequest";
|
|
66571
66580
|
}
|
|
66572
|
-
|
|
66573
|
-
|
|
66574
|
-
|
|
66575
|
-
|
|
66576
|
-
* Creates a plain object from a StreamCallRequest message. Also converts values to other types if specified.
|
|
66577
|
-
* @function toObject
|
|
66578
|
-
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66579
|
-
* @static
|
|
66580
|
-
* @param {replit.goval.api.pid2.StreamCallRequest} message StreamCallRequest
|
|
66581
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66582
|
-
* @returns {Object.<string,*>} Plain object
|
|
66583
|
-
*/
|
|
66584
|
-
StreamCallRequest.toObject = function toObject(message, options) {
|
|
66585
|
-
if (!options)
|
|
66586
|
-
options = {};
|
|
66587
|
-
var object = {};
|
|
66588
|
-
if (options.defaults) {
|
|
66589
|
-
if ($util.Long) {
|
|
66590
|
-
var long = new $util.Long(0, 0, true);
|
|
66591
|
-
object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66592
|
-
} else
|
|
66593
|
-
object.streamId = options.longs === String ? "0" : 0;
|
|
66594
|
-
object.service = "";
|
|
66595
|
-
object.method = "";
|
|
66596
|
-
object.header = null;
|
|
66581
|
+
if (message.streamHeader != null && message.hasOwnProperty("streamHeader")) {
|
|
66582
|
+
object.streamHeader = $root.google.protobuf.Any.toObject(message.streamHeader, options);
|
|
66583
|
+
if (options.oneofs)
|
|
66584
|
+
object.body = "streamHeader";
|
|
66597
66585
|
}
|
|
66598
|
-
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66599
|
-
if (typeof message.streamId === "number")
|
|
66600
|
-
object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
|
|
66601
|
-
else
|
|
66602
|
-
object.streamId = options.longs === String ? $util.Long.prototype.toString.call(message.streamId) : options.longs === Number ? new $util.LongBits(message.streamId.low >>> 0, message.streamId.high >>> 0).toNumber(true) : message.streamId;
|
|
66603
|
-
if (message.service != null && message.hasOwnProperty("service"))
|
|
66604
|
-
object.service = message.service;
|
|
66605
|
-
if (message.method != null && message.hasOwnProperty("method"))
|
|
66606
|
-
object.method = message.method;
|
|
66607
|
-
if (message.header != null && message.hasOwnProperty("header"))
|
|
66608
|
-
object.header = $root.google.protobuf.Any.toObject(message.header, options);
|
|
66609
66586
|
return object;
|
|
66610
66587
|
};
|
|
66611
66588
|
|
|
66612
66589
|
/**
|
|
66613
|
-
* Converts this
|
|
66590
|
+
* Converts this CallRequest to JSON.
|
|
66614
66591
|
* @function toJSON
|
|
66615
|
-
* @memberof replit.goval.api.pid2.
|
|
66592
|
+
* @memberof replit.goval.api.pid2.CallRequest
|
|
66616
66593
|
* @instance
|
|
66617
66594
|
* @returns {Object.<string,*>} JSON object
|
|
66618
66595
|
*/
|
|
66619
|
-
|
|
66596
|
+
CallRequest.prototype.toJSON = function toJSON() {
|
|
66620
66597
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66621
66598
|
};
|
|
66622
66599
|
|
|
66623
|
-
return
|
|
66600
|
+
return CallRequest;
|
|
66624
66601
|
})();
|
|
66625
66602
|
|
|
66626
66603
|
pid2.StreamContinuationRequest = (function() {
|
|
@@ -67073,307 +67050,26 @@
|
|
|
67073
67050
|
return StreamCancelRequest;
|
|
67074
67051
|
})();
|
|
67075
67052
|
|
|
67076
|
-
pid2.
|
|
67077
|
-
|
|
67078
|
-
/**
|
|
67079
|
-
* Properties of an UnaryCallResponse.
|
|
67080
|
-
* @memberof replit.goval.api.pid2
|
|
67081
|
-
* @interface IUnaryCallResponse
|
|
67082
|
-
* @property {number|null} [streamId] UnaryCallResponse streamId
|
|
67083
|
-
* @property {google.protobuf.Any|google.protobuf.IAny|null} [response] UnaryCallResponse response
|
|
67084
|
-
* @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [error] UnaryCallResponse error
|
|
67085
|
-
*/
|
|
67086
|
-
|
|
67087
|
-
/**
|
|
67088
|
-
* Constructs a new UnaryCallResponse.
|
|
67089
|
-
* @memberof replit.goval.api.pid2
|
|
67090
|
-
* @classdesc Represents an UnaryCallResponse.
|
|
67091
|
-
* @constructor
|
|
67092
|
-
* @param {replit.goval.api.pid2.IUnaryCallResponse=} [properties] Properties to set
|
|
67093
|
-
*/
|
|
67094
|
-
function UnaryCallResponse(properties) {
|
|
67095
|
-
if (properties)
|
|
67096
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67097
|
-
if (properties[keys[i]] != null)
|
|
67098
|
-
this[keys[i]] = properties[keys[i]];
|
|
67099
|
-
}
|
|
67100
|
-
|
|
67101
|
-
/**
|
|
67102
|
-
* UnaryCallResponse streamId.
|
|
67103
|
-
* @member {number} streamId
|
|
67104
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67105
|
-
* @instance
|
|
67106
|
-
*/
|
|
67107
|
-
UnaryCallResponse.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
67108
|
-
|
|
67109
|
-
/**
|
|
67110
|
-
* UnaryCallResponse response.
|
|
67111
|
-
* @member {google.protobuf.Any|null|undefined} response
|
|
67112
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67113
|
-
* @instance
|
|
67114
|
-
*/
|
|
67115
|
-
UnaryCallResponse.prototype.response = null;
|
|
67116
|
-
|
|
67117
|
-
/**
|
|
67118
|
-
* UnaryCallResponse error.
|
|
67119
|
-
* @member {replit.goval.api.pid2.Error|null|undefined} error
|
|
67120
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67121
|
-
* @instance
|
|
67122
|
-
*/
|
|
67123
|
-
UnaryCallResponse.prototype.error = null;
|
|
67124
|
-
|
|
67125
|
-
// OneOf field names bound to virtual getters and setters
|
|
67126
|
-
var $oneOfFields;
|
|
67127
|
-
|
|
67128
|
-
/**
|
|
67129
|
-
* UnaryCallResponse body.
|
|
67130
|
-
* @member {"response"|"error"|undefined} body
|
|
67131
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67132
|
-
* @instance
|
|
67133
|
-
*/
|
|
67134
|
-
Object.defineProperty(UnaryCallResponse.prototype, "body", {
|
|
67135
|
-
get: $util.oneOfGetter($oneOfFields = ["response", "error"]),
|
|
67136
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
67137
|
-
});
|
|
67138
|
-
|
|
67139
|
-
/**
|
|
67140
|
-
* Creates a new UnaryCallResponse instance using the specified properties.
|
|
67141
|
-
* @function create
|
|
67142
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67143
|
-
* @static
|
|
67144
|
-
* @param {replit.goval.api.pid2.IUnaryCallResponse=} [properties] Properties to set
|
|
67145
|
-
* @returns {replit.goval.api.pid2.UnaryCallResponse} UnaryCallResponse instance
|
|
67146
|
-
*/
|
|
67147
|
-
UnaryCallResponse.create = function create(properties) {
|
|
67148
|
-
return UnaryCallResponse.fromObject(properties);
|
|
67149
|
-
};
|
|
67150
|
-
|
|
67151
|
-
/**
|
|
67152
|
-
* Encodes the specified UnaryCallResponse message. Does not implicitly {@link replit.goval.api.pid2.UnaryCallResponse.verify|verify} messages.
|
|
67153
|
-
* @function encode
|
|
67154
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67155
|
-
* @static
|
|
67156
|
-
* @param {replit.goval.api.pid2.UnaryCallResponse} message UnaryCallResponse message or plain object to encode
|
|
67157
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67158
|
-
* @returns {$protobuf.Writer} Writer
|
|
67159
|
-
*/
|
|
67160
|
-
UnaryCallResponse.encode = function encode(message, writer) {
|
|
67161
|
-
if (!writer)
|
|
67162
|
-
writer = $Writer.create();
|
|
67163
|
-
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
67164
|
-
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
|
|
67165
|
-
if (message.response != null && Object.hasOwnProperty.call(message, "response"))
|
|
67166
|
-
$root.google.protobuf.Any.encode(message.response, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
67167
|
-
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
67168
|
-
$root.replit.goval.api.pid2.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
67169
|
-
return writer;
|
|
67170
|
-
};
|
|
67171
|
-
|
|
67172
|
-
/**
|
|
67173
|
-
* Encodes the specified UnaryCallResponse message, length delimited. Does not implicitly {@link replit.goval.api.pid2.UnaryCallResponse.verify|verify} messages.
|
|
67174
|
-
* @function encodeDelimited
|
|
67175
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67176
|
-
* @static
|
|
67177
|
-
* @param {replit.goval.api.pid2.UnaryCallResponse} message UnaryCallResponse message or plain object to encode
|
|
67178
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67179
|
-
* @returns {$protobuf.Writer} Writer
|
|
67180
|
-
*/
|
|
67181
|
-
UnaryCallResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
67182
|
-
return this.encode(message, writer).ldelim();
|
|
67183
|
-
};
|
|
67184
|
-
|
|
67185
|
-
/**
|
|
67186
|
-
* Decodes an UnaryCallResponse message from the specified reader or buffer.
|
|
67187
|
-
* @function decode
|
|
67188
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67189
|
-
* @static
|
|
67190
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67191
|
-
* @param {number} [length] Message length if known beforehand
|
|
67192
|
-
* @returns {replit.goval.api.pid2.UnaryCallResponse} UnaryCallResponse
|
|
67193
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67194
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67195
|
-
*/
|
|
67196
|
-
UnaryCallResponse.decode = function decode(reader, length) {
|
|
67197
|
-
if (!(reader instanceof $Reader))
|
|
67198
|
-
reader = $Reader.create(reader);
|
|
67199
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.UnaryCallResponse();
|
|
67200
|
-
while (reader.pos < end) {
|
|
67201
|
-
var tag = reader.uint32();
|
|
67202
|
-
switch (tag >>> 3) {
|
|
67203
|
-
case 1:
|
|
67204
|
-
message.streamId = reader.uint64();
|
|
67205
|
-
break;
|
|
67206
|
-
case 2:
|
|
67207
|
-
message.response = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
67208
|
-
break;
|
|
67209
|
-
case 3:
|
|
67210
|
-
message.error = $root.replit.goval.api.pid2.Error.decode(reader, reader.uint32());
|
|
67211
|
-
break;
|
|
67212
|
-
default:
|
|
67213
|
-
reader.skipType(tag & 7);
|
|
67214
|
-
break;
|
|
67215
|
-
}
|
|
67216
|
-
}
|
|
67217
|
-
return message;
|
|
67218
|
-
};
|
|
67219
|
-
|
|
67220
|
-
/**
|
|
67221
|
-
* Decodes an UnaryCallResponse message from the specified reader or buffer, length delimited.
|
|
67222
|
-
* @function decodeDelimited
|
|
67223
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67224
|
-
* @static
|
|
67225
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67226
|
-
* @returns {replit.goval.api.pid2.UnaryCallResponse} UnaryCallResponse
|
|
67227
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67228
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67229
|
-
*/
|
|
67230
|
-
UnaryCallResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
67231
|
-
if (!(reader instanceof $Reader))
|
|
67232
|
-
reader = new $Reader(reader);
|
|
67233
|
-
return this.decode(reader, reader.uint32());
|
|
67234
|
-
};
|
|
67235
|
-
|
|
67236
|
-
/**
|
|
67237
|
-
* Verifies an UnaryCallResponse message.
|
|
67238
|
-
* @function verify
|
|
67239
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67240
|
-
* @static
|
|
67241
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
67242
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
67243
|
-
*/
|
|
67244
|
-
UnaryCallResponse.verify = function verify(message) {
|
|
67245
|
-
if (typeof message !== "object" || message === null)
|
|
67246
|
-
return "object expected";
|
|
67247
|
-
var properties = {};
|
|
67248
|
-
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
67249
|
-
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
67250
|
-
return "streamId: integer|Long expected";
|
|
67251
|
-
if (message.response != null && message.hasOwnProperty("response")) {
|
|
67252
|
-
properties.body = 1;
|
|
67253
|
-
{
|
|
67254
|
-
var error = $root.google.protobuf.Any.verify(message.response);
|
|
67255
|
-
if (error)
|
|
67256
|
-
return "response." + error;
|
|
67257
|
-
}
|
|
67258
|
-
}
|
|
67259
|
-
if (message.error != null && message.hasOwnProperty("error")) {
|
|
67260
|
-
if (properties.body === 1)
|
|
67261
|
-
return "body: multiple values";
|
|
67262
|
-
properties.body = 1;
|
|
67263
|
-
{
|
|
67264
|
-
var error = $root.replit.goval.api.pid2.Error.verify(message.error);
|
|
67265
|
-
if (error)
|
|
67266
|
-
return "error." + error;
|
|
67267
|
-
}
|
|
67268
|
-
}
|
|
67269
|
-
return null;
|
|
67270
|
-
};
|
|
67271
|
-
|
|
67272
|
-
/**
|
|
67273
|
-
* Creates an UnaryCallResponse message from a plain object. Also converts values to their respective internal types.
|
|
67274
|
-
* @function fromObject
|
|
67275
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67276
|
-
* @static
|
|
67277
|
-
* @param {Object.<string,*>} object Plain object
|
|
67278
|
-
* @returns {replit.goval.api.pid2.UnaryCallResponse} UnaryCallResponse
|
|
67279
|
-
*/
|
|
67280
|
-
UnaryCallResponse.fromObject = function fromObject(object) {
|
|
67281
|
-
if (object instanceof $root.replit.goval.api.pid2.UnaryCallResponse)
|
|
67282
|
-
return object;
|
|
67283
|
-
var message = new $root.replit.goval.api.pid2.UnaryCallResponse();
|
|
67284
|
-
if (object.streamId != null)
|
|
67285
|
-
if ($util.Long)
|
|
67286
|
-
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
67287
|
-
else if (typeof object.streamId === "string")
|
|
67288
|
-
message.streamId = parseInt(object.streamId, 10);
|
|
67289
|
-
else if (typeof object.streamId === "number")
|
|
67290
|
-
message.streamId = object.streamId;
|
|
67291
|
-
else if (typeof object.streamId === "object")
|
|
67292
|
-
message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
|
|
67293
|
-
if (object.response != null) {
|
|
67294
|
-
if (typeof object.response !== "object")
|
|
67295
|
-
throw TypeError(".replit.goval.api.pid2.UnaryCallResponse.response: object expected");
|
|
67296
|
-
message.response = $root.google.protobuf.Any.fromObject(object.response);
|
|
67297
|
-
}
|
|
67298
|
-
if (object.error != null) {
|
|
67299
|
-
if (typeof object.error !== "object")
|
|
67300
|
-
throw TypeError(".replit.goval.api.pid2.UnaryCallResponse.error: object expected");
|
|
67301
|
-
message.error = $root.replit.goval.api.pid2.Error.fromObject(object.error);
|
|
67302
|
-
}
|
|
67303
|
-
return message;
|
|
67304
|
-
};
|
|
67305
|
-
|
|
67306
|
-
/**
|
|
67307
|
-
* Creates a plain object from an UnaryCallResponse message. Also converts values to other types if specified.
|
|
67308
|
-
* @function toObject
|
|
67309
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67310
|
-
* @static
|
|
67311
|
-
* @param {replit.goval.api.pid2.UnaryCallResponse} message UnaryCallResponse
|
|
67312
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67313
|
-
* @returns {Object.<string,*>} Plain object
|
|
67314
|
-
*/
|
|
67315
|
-
UnaryCallResponse.toObject = function toObject(message, options) {
|
|
67316
|
-
if (!options)
|
|
67317
|
-
options = {};
|
|
67318
|
-
var object = {};
|
|
67319
|
-
if (options.defaults)
|
|
67320
|
-
if ($util.Long) {
|
|
67321
|
-
var long = new $util.Long(0, 0, true);
|
|
67322
|
-
object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
67323
|
-
} else
|
|
67324
|
-
object.streamId = options.longs === String ? "0" : 0;
|
|
67325
|
-
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
67326
|
-
if (typeof message.streamId === "number")
|
|
67327
|
-
object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
|
|
67328
|
-
else
|
|
67329
|
-
object.streamId = options.longs === String ? $util.Long.prototype.toString.call(message.streamId) : options.longs === Number ? new $util.LongBits(message.streamId.low >>> 0, message.streamId.high >>> 0).toNumber(true) : message.streamId;
|
|
67330
|
-
if (message.response != null && message.hasOwnProperty("response")) {
|
|
67331
|
-
object.response = $root.google.protobuf.Any.toObject(message.response, options);
|
|
67332
|
-
if (options.oneofs)
|
|
67333
|
-
object.body = "response";
|
|
67334
|
-
}
|
|
67335
|
-
if (message.error != null && message.hasOwnProperty("error")) {
|
|
67336
|
-
object.error = $root.replit.goval.api.pid2.Error.toObject(message.error, options);
|
|
67337
|
-
if (options.oneofs)
|
|
67338
|
-
object.body = "error";
|
|
67339
|
-
}
|
|
67340
|
-
return object;
|
|
67341
|
-
};
|
|
67342
|
-
|
|
67343
|
-
/**
|
|
67344
|
-
* Converts this UnaryCallResponse to JSON.
|
|
67345
|
-
* @function toJSON
|
|
67346
|
-
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67347
|
-
* @instance
|
|
67348
|
-
* @returns {Object.<string,*>} JSON object
|
|
67349
|
-
*/
|
|
67350
|
-
UnaryCallResponse.prototype.toJSON = function toJSON() {
|
|
67351
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67352
|
-
};
|
|
67353
|
-
|
|
67354
|
-
return UnaryCallResponse;
|
|
67355
|
-
})();
|
|
67356
|
-
|
|
67357
|
-
pid2.StreamContinuationResponse = (function() {
|
|
67053
|
+
pid2.CallResponse = (function() {
|
|
67358
67054
|
|
|
67359
67055
|
/**
|
|
67360
|
-
* Properties of a
|
|
67056
|
+
* Properties of a CallResponse.
|
|
67361
67057
|
* @memberof replit.goval.api.pid2
|
|
67362
|
-
* @interface
|
|
67363
|
-
* @property {number|null} [streamId]
|
|
67364
|
-
* @property {boolean|null} [streamEnd]
|
|
67365
|
-
* @property {google.protobuf.Any|google.protobuf.IAny|null} [response]
|
|
67366
|
-
* @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [error]
|
|
67058
|
+
* @interface ICallResponse
|
|
67059
|
+
* @property {number|null} [streamId] CallResponse streamId
|
|
67060
|
+
* @property {boolean|null} [streamEnd] CallResponse streamEnd
|
|
67061
|
+
* @property {google.protobuf.Any|google.protobuf.IAny|null} [response] CallResponse response
|
|
67062
|
+
* @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [error] CallResponse error
|
|
67367
67063
|
*/
|
|
67368
67064
|
|
|
67369
67065
|
/**
|
|
67370
|
-
* Constructs a new
|
|
67066
|
+
* Constructs a new CallResponse.
|
|
67371
67067
|
* @memberof replit.goval.api.pid2
|
|
67372
|
-
* @classdesc Represents a
|
|
67068
|
+
* @classdesc Represents a CallResponse.
|
|
67373
67069
|
* @constructor
|
|
67374
|
-
* @param {replit.goval.api.pid2.
|
|
67070
|
+
* @param {replit.goval.api.pid2.ICallResponse=} [properties] Properties to set
|
|
67375
67071
|
*/
|
|
67376
|
-
function
|
|
67072
|
+
function CallResponse(properties) {
|
|
67377
67073
|
if (properties)
|
|
67378
67074
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67379
67075
|
if (properties[keys[i]] != null)
|
|
@@ -67381,73 +67077,73 @@
|
|
|
67381
67077
|
}
|
|
67382
67078
|
|
|
67383
67079
|
/**
|
|
67384
|
-
*
|
|
67080
|
+
* CallResponse streamId.
|
|
67385
67081
|
* @member {number} streamId
|
|
67386
|
-
* @memberof replit.goval.api.pid2.
|
|
67082
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67387
67083
|
* @instance
|
|
67388
67084
|
*/
|
|
67389
|
-
|
|
67085
|
+
CallResponse.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
67390
67086
|
|
|
67391
67087
|
/**
|
|
67392
|
-
*
|
|
67088
|
+
* CallResponse streamEnd.
|
|
67393
67089
|
* @member {boolean} streamEnd
|
|
67394
|
-
* @memberof replit.goval.api.pid2.
|
|
67090
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67395
67091
|
* @instance
|
|
67396
67092
|
*/
|
|
67397
|
-
|
|
67093
|
+
CallResponse.prototype.streamEnd = false;
|
|
67398
67094
|
|
|
67399
67095
|
/**
|
|
67400
|
-
*
|
|
67096
|
+
* CallResponse response.
|
|
67401
67097
|
* @member {google.protobuf.Any|null|undefined} response
|
|
67402
|
-
* @memberof replit.goval.api.pid2.
|
|
67098
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67403
67099
|
* @instance
|
|
67404
67100
|
*/
|
|
67405
|
-
|
|
67101
|
+
CallResponse.prototype.response = null;
|
|
67406
67102
|
|
|
67407
67103
|
/**
|
|
67408
|
-
*
|
|
67104
|
+
* CallResponse error.
|
|
67409
67105
|
* @member {replit.goval.api.pid2.Error|null|undefined} error
|
|
67410
|
-
* @memberof replit.goval.api.pid2.
|
|
67106
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67411
67107
|
* @instance
|
|
67412
67108
|
*/
|
|
67413
|
-
|
|
67109
|
+
CallResponse.prototype.error = null;
|
|
67414
67110
|
|
|
67415
67111
|
// OneOf field names bound to virtual getters and setters
|
|
67416
67112
|
var $oneOfFields;
|
|
67417
67113
|
|
|
67418
67114
|
/**
|
|
67419
|
-
*
|
|
67115
|
+
* CallResponse body.
|
|
67420
67116
|
* @member {"response"|"error"|undefined} body
|
|
67421
|
-
* @memberof replit.goval.api.pid2.
|
|
67117
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67422
67118
|
* @instance
|
|
67423
67119
|
*/
|
|
67424
|
-
Object.defineProperty(
|
|
67120
|
+
Object.defineProperty(CallResponse.prototype, "body", {
|
|
67425
67121
|
get: $util.oneOfGetter($oneOfFields = ["response", "error"]),
|
|
67426
67122
|
set: $util.oneOfSetter($oneOfFields)
|
|
67427
67123
|
});
|
|
67428
67124
|
|
|
67429
67125
|
/**
|
|
67430
|
-
* Creates a new
|
|
67126
|
+
* Creates a new CallResponse instance using the specified properties.
|
|
67431
67127
|
* @function create
|
|
67432
|
-
* @memberof replit.goval.api.pid2.
|
|
67128
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67433
67129
|
* @static
|
|
67434
|
-
* @param {replit.goval.api.pid2.
|
|
67435
|
-
* @returns {replit.goval.api.pid2.
|
|
67130
|
+
* @param {replit.goval.api.pid2.ICallResponse=} [properties] Properties to set
|
|
67131
|
+
* @returns {replit.goval.api.pid2.CallResponse} CallResponse instance
|
|
67436
67132
|
*/
|
|
67437
|
-
|
|
67438
|
-
return
|
|
67133
|
+
CallResponse.create = function create(properties) {
|
|
67134
|
+
return CallResponse.fromObject(properties);
|
|
67439
67135
|
};
|
|
67440
67136
|
|
|
67441
67137
|
/**
|
|
67442
|
-
* Encodes the specified
|
|
67138
|
+
* Encodes the specified CallResponse message. Does not implicitly {@link replit.goval.api.pid2.CallResponse.verify|verify} messages.
|
|
67443
67139
|
* @function encode
|
|
67444
|
-
* @memberof replit.goval.api.pid2.
|
|
67140
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67445
67141
|
* @static
|
|
67446
|
-
* @param {replit.goval.api.pid2.
|
|
67142
|
+
* @param {replit.goval.api.pid2.CallResponse} message CallResponse message or plain object to encode
|
|
67447
67143
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67448
67144
|
* @returns {$protobuf.Writer} Writer
|
|
67449
67145
|
*/
|
|
67450
|
-
|
|
67146
|
+
CallResponse.encode = function encode(message, writer) {
|
|
67451
67147
|
if (!writer)
|
|
67452
67148
|
writer = $Writer.create();
|
|
67453
67149
|
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
@@ -67462,33 +67158,33 @@
|
|
|
67462
67158
|
};
|
|
67463
67159
|
|
|
67464
67160
|
/**
|
|
67465
|
-
* Encodes the specified
|
|
67161
|
+
* Encodes the specified CallResponse message, length delimited. Does not implicitly {@link replit.goval.api.pid2.CallResponse.verify|verify} messages.
|
|
67466
67162
|
* @function encodeDelimited
|
|
67467
|
-
* @memberof replit.goval.api.pid2.
|
|
67163
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67468
67164
|
* @static
|
|
67469
|
-
* @param {replit.goval.api.pid2.
|
|
67165
|
+
* @param {replit.goval.api.pid2.CallResponse} message CallResponse message or plain object to encode
|
|
67470
67166
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67471
67167
|
* @returns {$protobuf.Writer} Writer
|
|
67472
67168
|
*/
|
|
67473
|
-
|
|
67169
|
+
CallResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
67474
67170
|
return this.encode(message, writer).ldelim();
|
|
67475
67171
|
};
|
|
67476
67172
|
|
|
67477
67173
|
/**
|
|
67478
|
-
* Decodes a
|
|
67174
|
+
* Decodes a CallResponse message from the specified reader or buffer.
|
|
67479
67175
|
* @function decode
|
|
67480
|
-
* @memberof replit.goval.api.pid2.
|
|
67176
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67481
67177
|
* @static
|
|
67482
67178
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67483
67179
|
* @param {number} [length] Message length if known beforehand
|
|
67484
|
-
* @returns {replit.goval.api.pid2.
|
|
67180
|
+
* @returns {replit.goval.api.pid2.CallResponse} CallResponse
|
|
67485
67181
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67486
67182
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67487
67183
|
*/
|
|
67488
|
-
|
|
67184
|
+
CallResponse.decode = function decode(reader, length) {
|
|
67489
67185
|
if (!(reader instanceof $Reader))
|
|
67490
67186
|
reader = $Reader.create(reader);
|
|
67491
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.
|
|
67187
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.CallResponse();
|
|
67492
67188
|
while (reader.pos < end) {
|
|
67493
67189
|
var tag = reader.uint32();
|
|
67494
67190
|
switch (tag >>> 3) {
|
|
@@ -67513,30 +67209,30 @@
|
|
|
67513
67209
|
};
|
|
67514
67210
|
|
|
67515
67211
|
/**
|
|
67516
|
-
* Decodes a
|
|
67212
|
+
* Decodes a CallResponse message from the specified reader or buffer, length delimited.
|
|
67517
67213
|
* @function decodeDelimited
|
|
67518
|
-
* @memberof replit.goval.api.pid2.
|
|
67214
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67519
67215
|
* @static
|
|
67520
67216
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67521
|
-
* @returns {replit.goval.api.pid2.
|
|
67217
|
+
* @returns {replit.goval.api.pid2.CallResponse} CallResponse
|
|
67522
67218
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67523
67219
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67524
67220
|
*/
|
|
67525
|
-
|
|
67221
|
+
CallResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
67526
67222
|
if (!(reader instanceof $Reader))
|
|
67527
67223
|
reader = new $Reader(reader);
|
|
67528
67224
|
return this.decode(reader, reader.uint32());
|
|
67529
67225
|
};
|
|
67530
67226
|
|
|
67531
67227
|
/**
|
|
67532
|
-
* Verifies a
|
|
67228
|
+
* Verifies a CallResponse message.
|
|
67533
67229
|
* @function verify
|
|
67534
|
-
* @memberof replit.goval.api.pid2.
|
|
67230
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67535
67231
|
* @static
|
|
67536
67232
|
* @param {Object.<string,*>} message Plain object to verify
|
|
67537
67233
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
67538
67234
|
*/
|
|
67539
|
-
|
|
67235
|
+
CallResponse.verify = function verify(message) {
|
|
67540
67236
|
if (typeof message !== "object" || message === null)
|
|
67541
67237
|
return "object expected";
|
|
67542
67238
|
var properties = {};
|
|
@@ -67568,17 +67264,17 @@
|
|
|
67568
67264
|
};
|
|
67569
67265
|
|
|
67570
67266
|
/**
|
|
67571
|
-
* Creates a
|
|
67267
|
+
* Creates a CallResponse message from a plain object. Also converts values to their respective internal types.
|
|
67572
67268
|
* @function fromObject
|
|
67573
|
-
* @memberof replit.goval.api.pid2.
|
|
67269
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67574
67270
|
* @static
|
|
67575
67271
|
* @param {Object.<string,*>} object Plain object
|
|
67576
|
-
* @returns {replit.goval.api.pid2.
|
|
67272
|
+
* @returns {replit.goval.api.pid2.CallResponse} CallResponse
|
|
67577
67273
|
*/
|
|
67578
|
-
|
|
67579
|
-
if (object instanceof $root.replit.goval.api.pid2.
|
|
67274
|
+
CallResponse.fromObject = function fromObject(object) {
|
|
67275
|
+
if (object instanceof $root.replit.goval.api.pid2.CallResponse)
|
|
67580
67276
|
return object;
|
|
67581
|
-
var message = new $root.replit.goval.api.pid2.
|
|
67277
|
+
var message = new $root.replit.goval.api.pid2.CallResponse();
|
|
67582
67278
|
if (object.streamId != null)
|
|
67583
67279
|
if ($util.Long)
|
|
67584
67280
|
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
@@ -67592,27 +67288,27 @@
|
|
|
67592
67288
|
message.streamEnd = Boolean(object.streamEnd);
|
|
67593
67289
|
if (object.response != null) {
|
|
67594
67290
|
if (typeof object.response !== "object")
|
|
67595
|
-
throw TypeError(".replit.goval.api.pid2.
|
|
67291
|
+
throw TypeError(".replit.goval.api.pid2.CallResponse.response: object expected");
|
|
67596
67292
|
message.response = $root.google.protobuf.Any.fromObject(object.response);
|
|
67597
67293
|
}
|
|
67598
67294
|
if (object.error != null) {
|
|
67599
67295
|
if (typeof object.error !== "object")
|
|
67600
|
-
throw TypeError(".replit.goval.api.pid2.
|
|
67296
|
+
throw TypeError(".replit.goval.api.pid2.CallResponse.error: object expected");
|
|
67601
67297
|
message.error = $root.replit.goval.api.pid2.Error.fromObject(object.error);
|
|
67602
67298
|
}
|
|
67603
67299
|
return message;
|
|
67604
67300
|
};
|
|
67605
67301
|
|
|
67606
67302
|
/**
|
|
67607
|
-
* Creates a plain object from a
|
|
67303
|
+
* Creates a plain object from a CallResponse message. Also converts values to other types if specified.
|
|
67608
67304
|
* @function toObject
|
|
67609
|
-
* @memberof replit.goval.api.pid2.
|
|
67305
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67610
67306
|
* @static
|
|
67611
|
-
* @param {replit.goval.api.pid2.
|
|
67307
|
+
* @param {replit.goval.api.pid2.CallResponse} message CallResponse
|
|
67612
67308
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67613
67309
|
* @returns {Object.<string,*>} Plain object
|
|
67614
67310
|
*/
|
|
67615
|
-
|
|
67311
|
+
CallResponse.toObject = function toObject(message, options) {
|
|
67616
67312
|
if (!options)
|
|
67617
67313
|
options = {};
|
|
67618
67314
|
var object = {};
|
|
@@ -67645,17 +67341,17 @@
|
|
|
67645
67341
|
};
|
|
67646
67342
|
|
|
67647
67343
|
/**
|
|
67648
|
-
* Converts this
|
|
67344
|
+
* Converts this CallResponse to JSON.
|
|
67649
67345
|
* @function toJSON
|
|
67650
|
-
* @memberof replit.goval.api.pid2.
|
|
67346
|
+
* @memberof replit.goval.api.pid2.CallResponse
|
|
67651
67347
|
* @instance
|
|
67652
67348
|
* @returns {Object.<string,*>} JSON object
|
|
67653
67349
|
*/
|
|
67654
|
-
|
|
67350
|
+
CallResponse.prototype.toJSON = function toJSON() {
|
|
67655
67351
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67656
67352
|
};
|
|
67657
67353
|
|
|
67658
|
-
return
|
|
67354
|
+
return CallResponse;
|
|
67659
67355
|
})();
|
|
67660
67356
|
|
|
67661
67357
|
pid2.Error = (function() {
|