@gitpod/supervisor-api-grpc 0.1.5-pd-ssh-gateway.11 → 0.1.5-pd-use-userpk.0
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/lib/control_grpc_pb.d.ts +17 -0
- package/lib/control_grpc_pb.js +34 -0
- package/lib/control_pb.d.ts +40 -0
- package/lib/control_pb.js +305 -7
- package/lib/info_pb.js +1 -7
- package/lib/notification_grpc_pb.d.ts +49 -0
- package/lib/notification_grpc_pb.js +115 -4
- package/lib/notification_pb.d.ts +191 -0
- package/lib/notification_pb.js +1418 -8
- package/lib/port_pb.js +1 -7
- package/lib/status_grpc_pb.d.ts +17 -0
- package/lib/status_grpc_pb.js +34 -0
- package/lib/status_pb.d.ts +75 -0
- package/lib/status_pb.js +591 -8
- package/lib/terminal_pb.js +1 -7
- package/lib/token_pb.js +1 -7
- package/package.json +3 -2
- package/pkg-yarn.lock +1 -1
- package/provenance-bundle.jsonl +4 -0
package/lib/status_pb.js
CHANGED
|
@@ -13,13 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global = (function() {
|
|
17
|
-
if (this) { return this; }
|
|
18
|
-
if (typeof window !== 'undefined') { return window; }
|
|
19
|
-
if (typeof global !== 'undefined') { return global; }
|
|
20
|
-
if (typeof self !== 'undefined') { return self; }
|
|
21
|
-
return Function('return this')();
|
|
22
|
-
}.call(null));
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
23
17
|
|
|
24
18
|
var port_pb = require('./port_pb.js');
|
|
25
19
|
goog.object.extend(proto, port_pb);
|
|
@@ -38,6 +32,9 @@ goog.exportSymbol('proto.supervisor.PortVisibility', null, global);
|
|
|
38
32
|
goog.exportSymbol('proto.supervisor.PortsStatus', null, global);
|
|
39
33
|
goog.exportSymbol('proto.supervisor.PortsStatusRequest', null, global);
|
|
40
34
|
goog.exportSymbol('proto.supervisor.PortsStatusResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.supervisor.ResourceStatus', null, global);
|
|
36
|
+
goog.exportSymbol('proto.supervisor.ResourcesStatuRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.supervisor.ResourcesStatusResponse', null, global);
|
|
41
38
|
goog.exportSymbol('proto.supervisor.SupervisorStatusRequest', null, global);
|
|
42
39
|
goog.exportSymbol('proto.supervisor.SupervisorStatusResponse', null, global);
|
|
43
40
|
goog.exportSymbol('proto.supervisor.TaskPresentation', null, global);
|
|
@@ -424,6 +421,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
424
421
|
*/
|
|
425
422
|
proto.supervisor.TaskPresentation.displayName = 'proto.supervisor.TaskPresentation';
|
|
426
423
|
}
|
|
424
|
+
/**
|
|
425
|
+
* Generated by JsPbCodeGenerator.
|
|
426
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
427
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
428
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
429
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
430
|
+
* valid.
|
|
431
|
+
* @extends {jspb.Message}
|
|
432
|
+
* @constructor
|
|
433
|
+
*/
|
|
434
|
+
proto.supervisor.ResourcesStatuRequest = function(opt_data) {
|
|
435
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
436
|
+
};
|
|
437
|
+
goog.inherits(proto.supervisor.ResourcesStatuRequest, jspb.Message);
|
|
438
|
+
if (goog.DEBUG && !COMPILED) {
|
|
439
|
+
/**
|
|
440
|
+
* @public
|
|
441
|
+
* @override
|
|
442
|
+
*/
|
|
443
|
+
proto.supervisor.ResourcesStatuRequest.displayName = 'proto.supervisor.ResourcesStatuRequest';
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Generated by JsPbCodeGenerator.
|
|
447
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
448
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
449
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
450
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
451
|
+
* valid.
|
|
452
|
+
* @extends {jspb.Message}
|
|
453
|
+
* @constructor
|
|
454
|
+
*/
|
|
455
|
+
proto.supervisor.ResourcesStatusResponse = function(opt_data) {
|
|
456
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
457
|
+
};
|
|
458
|
+
goog.inherits(proto.supervisor.ResourcesStatusResponse, jspb.Message);
|
|
459
|
+
if (goog.DEBUG && !COMPILED) {
|
|
460
|
+
/**
|
|
461
|
+
* @public
|
|
462
|
+
* @override
|
|
463
|
+
*/
|
|
464
|
+
proto.supervisor.ResourcesStatusResponse.displayName = 'proto.supervisor.ResourcesStatusResponse';
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Generated by JsPbCodeGenerator.
|
|
468
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
469
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
470
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
471
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
472
|
+
* valid.
|
|
473
|
+
* @extends {jspb.Message}
|
|
474
|
+
* @constructor
|
|
475
|
+
*/
|
|
476
|
+
proto.supervisor.ResourceStatus = function(opt_data) {
|
|
477
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
478
|
+
};
|
|
479
|
+
goog.inherits(proto.supervisor.ResourceStatus, jspb.Message);
|
|
480
|
+
if (goog.DEBUG && !COMPILED) {
|
|
481
|
+
/**
|
|
482
|
+
* @public
|
|
483
|
+
* @override
|
|
484
|
+
*/
|
|
485
|
+
proto.supervisor.ResourceStatus.displayName = 'proto.supervisor.ResourceStatus';
|
|
486
|
+
}
|
|
427
487
|
|
|
428
488
|
|
|
429
489
|
|
|
@@ -944,7 +1004,9 @@ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.toObject = function(o
|
|
|
944
1004
|
proto.supervisor.IDEStatusResponse.DesktopStatus.toObject = function(includeInstance, msg) {
|
|
945
1005
|
var f, obj = {
|
|
946
1006
|
link: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
947
|
-
label: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1007
|
+
label: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1008
|
+
clientid: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1009
|
+
kind: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
948
1010
|
};
|
|
949
1011
|
|
|
950
1012
|
if (includeInstance) {
|
|
@@ -989,6 +1051,14 @@ proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader = f
|
|
|
989
1051
|
var value = /** @type {string} */ (reader.readString());
|
|
990
1052
|
msg.setLabel(value);
|
|
991
1053
|
break;
|
|
1054
|
+
case 3:
|
|
1055
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1056
|
+
msg.setClientid(value);
|
|
1057
|
+
break;
|
|
1058
|
+
case 4:
|
|
1059
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1060
|
+
msg.setKind(value);
|
|
1061
|
+
break;
|
|
992
1062
|
default:
|
|
993
1063
|
reader.skipField();
|
|
994
1064
|
break;
|
|
@@ -1032,6 +1102,20 @@ proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter = funct
|
|
|
1032
1102
|
f
|
|
1033
1103
|
);
|
|
1034
1104
|
}
|
|
1105
|
+
f = message.getClientid();
|
|
1106
|
+
if (f.length > 0) {
|
|
1107
|
+
writer.writeString(
|
|
1108
|
+
3,
|
|
1109
|
+
f
|
|
1110
|
+
);
|
|
1111
|
+
}
|
|
1112
|
+
f = message.getKind();
|
|
1113
|
+
if (f.length > 0) {
|
|
1114
|
+
writer.writeString(
|
|
1115
|
+
4,
|
|
1116
|
+
f
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1035
1119
|
};
|
|
1036
1120
|
|
|
1037
1121
|
|
|
@@ -1071,6 +1155,42 @@ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLabel = function(v
|
|
|
1071
1155
|
};
|
|
1072
1156
|
|
|
1073
1157
|
|
|
1158
|
+
/**
|
|
1159
|
+
* optional string clientID = 3;
|
|
1160
|
+
* @return {string}
|
|
1161
|
+
*/
|
|
1162
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getClientid = function() {
|
|
1163
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* @param {string} value
|
|
1169
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1170
|
+
*/
|
|
1171
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setClientid = function(value) {
|
|
1172
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* optional string kind = 4;
|
|
1178
|
+
* @return {string}
|
|
1179
|
+
*/
|
|
1180
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getKind = function() {
|
|
1181
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1182
|
+
};
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* @param {string} value
|
|
1187
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1188
|
+
*/
|
|
1189
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setKind = function(value) {
|
|
1190
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
|
|
1074
1194
|
/**
|
|
1075
1195
|
* optional bool ok = 1;
|
|
1076
1196
|
* @return {boolean}
|
|
@@ -3393,6 +3513,469 @@ proto.supervisor.TaskPresentation.prototype.setOpenMode = function(value) {
|
|
|
3393
3513
|
};
|
|
3394
3514
|
|
|
3395
3515
|
|
|
3516
|
+
|
|
3517
|
+
|
|
3518
|
+
|
|
3519
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3520
|
+
/**
|
|
3521
|
+
* Creates an object representation of this proto.
|
|
3522
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3523
|
+
* Optional fields that are not set will be set to undefined.
|
|
3524
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3525
|
+
* For the list of reserved names please see:
|
|
3526
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3527
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3528
|
+
* JSPB instance for transitional soy proto support:
|
|
3529
|
+
* http://goto/soy-param-migration
|
|
3530
|
+
* @return {!Object}
|
|
3531
|
+
*/
|
|
3532
|
+
proto.supervisor.ResourcesStatuRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3533
|
+
return proto.supervisor.ResourcesStatuRequest.toObject(opt_includeInstance, this);
|
|
3534
|
+
};
|
|
3535
|
+
|
|
3536
|
+
|
|
3537
|
+
/**
|
|
3538
|
+
* Static version of the {@see toObject} method.
|
|
3539
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3540
|
+
* the JSPB instance for transitional soy proto support:
|
|
3541
|
+
* http://goto/soy-param-migration
|
|
3542
|
+
* @param {!proto.supervisor.ResourcesStatuRequest} msg The msg instance to transform.
|
|
3543
|
+
* @return {!Object}
|
|
3544
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3545
|
+
*/
|
|
3546
|
+
proto.supervisor.ResourcesStatuRequest.toObject = function(includeInstance, msg) {
|
|
3547
|
+
var f, obj = {
|
|
3548
|
+
|
|
3549
|
+
};
|
|
3550
|
+
|
|
3551
|
+
if (includeInstance) {
|
|
3552
|
+
obj.$jspbMessageInstance = msg;
|
|
3553
|
+
}
|
|
3554
|
+
return obj;
|
|
3555
|
+
};
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3558
|
+
|
|
3559
|
+
/**
|
|
3560
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3561
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3562
|
+
* @return {!proto.supervisor.ResourcesStatuRequest}
|
|
3563
|
+
*/
|
|
3564
|
+
proto.supervisor.ResourcesStatuRequest.deserializeBinary = function(bytes) {
|
|
3565
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3566
|
+
var msg = new proto.supervisor.ResourcesStatuRequest;
|
|
3567
|
+
return proto.supervisor.ResourcesStatuRequest.deserializeBinaryFromReader(msg, reader);
|
|
3568
|
+
};
|
|
3569
|
+
|
|
3570
|
+
|
|
3571
|
+
/**
|
|
3572
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3573
|
+
* given reader into the given message object.
|
|
3574
|
+
* @param {!proto.supervisor.ResourcesStatuRequest} msg The message object to deserialize into.
|
|
3575
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3576
|
+
* @return {!proto.supervisor.ResourcesStatuRequest}
|
|
3577
|
+
*/
|
|
3578
|
+
proto.supervisor.ResourcesStatuRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3579
|
+
while (reader.nextField()) {
|
|
3580
|
+
if (reader.isEndGroup()) {
|
|
3581
|
+
break;
|
|
3582
|
+
}
|
|
3583
|
+
var field = reader.getFieldNumber();
|
|
3584
|
+
switch (field) {
|
|
3585
|
+
default:
|
|
3586
|
+
reader.skipField();
|
|
3587
|
+
break;
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
return msg;
|
|
3591
|
+
};
|
|
3592
|
+
|
|
3593
|
+
|
|
3594
|
+
/**
|
|
3595
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3596
|
+
* @return {!Uint8Array}
|
|
3597
|
+
*/
|
|
3598
|
+
proto.supervisor.ResourcesStatuRequest.prototype.serializeBinary = function() {
|
|
3599
|
+
var writer = new jspb.BinaryWriter();
|
|
3600
|
+
proto.supervisor.ResourcesStatuRequest.serializeBinaryToWriter(this, writer);
|
|
3601
|
+
return writer.getResultBuffer();
|
|
3602
|
+
};
|
|
3603
|
+
|
|
3604
|
+
|
|
3605
|
+
/**
|
|
3606
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3607
|
+
* format), writing to the given BinaryWriter.
|
|
3608
|
+
* @param {!proto.supervisor.ResourcesStatuRequest} message
|
|
3609
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3610
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3611
|
+
*/
|
|
3612
|
+
proto.supervisor.ResourcesStatuRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3613
|
+
var f = undefined;
|
|
3614
|
+
};
|
|
3615
|
+
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3621
|
+
/**
|
|
3622
|
+
* Creates an object representation of this proto.
|
|
3623
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3624
|
+
* Optional fields that are not set will be set to undefined.
|
|
3625
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3626
|
+
* For the list of reserved names please see:
|
|
3627
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3628
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3629
|
+
* JSPB instance for transitional soy proto support:
|
|
3630
|
+
* http://goto/soy-param-migration
|
|
3631
|
+
* @return {!Object}
|
|
3632
|
+
*/
|
|
3633
|
+
proto.supervisor.ResourcesStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3634
|
+
return proto.supervisor.ResourcesStatusResponse.toObject(opt_includeInstance, this);
|
|
3635
|
+
};
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* Static version of the {@see toObject} method.
|
|
3640
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3641
|
+
* the JSPB instance for transitional soy proto support:
|
|
3642
|
+
* http://goto/soy-param-migration
|
|
3643
|
+
* @param {!proto.supervisor.ResourcesStatusResponse} msg The msg instance to transform.
|
|
3644
|
+
* @return {!Object}
|
|
3645
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3646
|
+
*/
|
|
3647
|
+
proto.supervisor.ResourcesStatusResponse.toObject = function(includeInstance, msg) {
|
|
3648
|
+
var f, obj = {
|
|
3649
|
+
memory: (f = msg.getMemory()) && proto.supervisor.ResourceStatus.toObject(includeInstance, f),
|
|
3650
|
+
cpu: (f = msg.getCpu()) && proto.supervisor.ResourceStatus.toObject(includeInstance, f)
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3653
|
+
if (includeInstance) {
|
|
3654
|
+
obj.$jspbMessageInstance = msg;
|
|
3655
|
+
}
|
|
3656
|
+
return obj;
|
|
3657
|
+
};
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
|
|
3661
|
+
/**
|
|
3662
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3663
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3664
|
+
* @return {!proto.supervisor.ResourcesStatusResponse}
|
|
3665
|
+
*/
|
|
3666
|
+
proto.supervisor.ResourcesStatusResponse.deserializeBinary = function(bytes) {
|
|
3667
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3668
|
+
var msg = new proto.supervisor.ResourcesStatusResponse;
|
|
3669
|
+
return proto.supervisor.ResourcesStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3675
|
+
* given reader into the given message object.
|
|
3676
|
+
* @param {!proto.supervisor.ResourcesStatusResponse} msg The message object to deserialize into.
|
|
3677
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3678
|
+
* @return {!proto.supervisor.ResourcesStatusResponse}
|
|
3679
|
+
*/
|
|
3680
|
+
proto.supervisor.ResourcesStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3681
|
+
while (reader.nextField()) {
|
|
3682
|
+
if (reader.isEndGroup()) {
|
|
3683
|
+
break;
|
|
3684
|
+
}
|
|
3685
|
+
var field = reader.getFieldNumber();
|
|
3686
|
+
switch (field) {
|
|
3687
|
+
case 1:
|
|
3688
|
+
var value = new proto.supervisor.ResourceStatus;
|
|
3689
|
+
reader.readMessage(value,proto.supervisor.ResourceStatus.deserializeBinaryFromReader);
|
|
3690
|
+
msg.setMemory(value);
|
|
3691
|
+
break;
|
|
3692
|
+
case 2:
|
|
3693
|
+
var value = new proto.supervisor.ResourceStatus;
|
|
3694
|
+
reader.readMessage(value,proto.supervisor.ResourceStatus.deserializeBinaryFromReader);
|
|
3695
|
+
msg.setCpu(value);
|
|
3696
|
+
break;
|
|
3697
|
+
default:
|
|
3698
|
+
reader.skipField();
|
|
3699
|
+
break;
|
|
3700
|
+
}
|
|
3701
|
+
}
|
|
3702
|
+
return msg;
|
|
3703
|
+
};
|
|
3704
|
+
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3708
|
+
* @return {!Uint8Array}
|
|
3709
|
+
*/
|
|
3710
|
+
proto.supervisor.ResourcesStatusResponse.prototype.serializeBinary = function() {
|
|
3711
|
+
var writer = new jspb.BinaryWriter();
|
|
3712
|
+
proto.supervisor.ResourcesStatusResponse.serializeBinaryToWriter(this, writer);
|
|
3713
|
+
return writer.getResultBuffer();
|
|
3714
|
+
};
|
|
3715
|
+
|
|
3716
|
+
|
|
3717
|
+
/**
|
|
3718
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3719
|
+
* format), writing to the given BinaryWriter.
|
|
3720
|
+
* @param {!proto.supervisor.ResourcesStatusResponse} message
|
|
3721
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3722
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3723
|
+
*/
|
|
3724
|
+
proto.supervisor.ResourcesStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3725
|
+
var f = undefined;
|
|
3726
|
+
f = message.getMemory();
|
|
3727
|
+
if (f != null) {
|
|
3728
|
+
writer.writeMessage(
|
|
3729
|
+
1,
|
|
3730
|
+
f,
|
|
3731
|
+
proto.supervisor.ResourceStatus.serializeBinaryToWriter
|
|
3732
|
+
);
|
|
3733
|
+
}
|
|
3734
|
+
f = message.getCpu();
|
|
3735
|
+
if (f != null) {
|
|
3736
|
+
writer.writeMessage(
|
|
3737
|
+
2,
|
|
3738
|
+
f,
|
|
3739
|
+
proto.supervisor.ResourceStatus.serializeBinaryToWriter
|
|
3740
|
+
);
|
|
3741
|
+
}
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
|
|
3745
|
+
/**
|
|
3746
|
+
* optional ResourceStatus memory = 1;
|
|
3747
|
+
* @return {?proto.supervisor.ResourceStatus}
|
|
3748
|
+
*/
|
|
3749
|
+
proto.supervisor.ResourcesStatusResponse.prototype.getMemory = function() {
|
|
3750
|
+
return /** @type{?proto.supervisor.ResourceStatus} */ (
|
|
3751
|
+
jspb.Message.getWrapperField(this, proto.supervisor.ResourceStatus, 1));
|
|
3752
|
+
};
|
|
3753
|
+
|
|
3754
|
+
|
|
3755
|
+
/**
|
|
3756
|
+
* @param {?proto.supervisor.ResourceStatus|undefined} value
|
|
3757
|
+
* @return {!proto.supervisor.ResourcesStatusResponse} returns this
|
|
3758
|
+
*/
|
|
3759
|
+
proto.supervisor.ResourcesStatusResponse.prototype.setMemory = function(value) {
|
|
3760
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3761
|
+
};
|
|
3762
|
+
|
|
3763
|
+
|
|
3764
|
+
/**
|
|
3765
|
+
* Clears the message field making it undefined.
|
|
3766
|
+
* @return {!proto.supervisor.ResourcesStatusResponse} returns this
|
|
3767
|
+
*/
|
|
3768
|
+
proto.supervisor.ResourcesStatusResponse.prototype.clearMemory = function() {
|
|
3769
|
+
return this.setMemory(undefined);
|
|
3770
|
+
};
|
|
3771
|
+
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* Returns whether this field is set.
|
|
3775
|
+
* @return {boolean}
|
|
3776
|
+
*/
|
|
3777
|
+
proto.supervisor.ResourcesStatusResponse.prototype.hasMemory = function() {
|
|
3778
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3779
|
+
};
|
|
3780
|
+
|
|
3781
|
+
|
|
3782
|
+
/**
|
|
3783
|
+
* optional ResourceStatus cpu = 2;
|
|
3784
|
+
* @return {?proto.supervisor.ResourceStatus}
|
|
3785
|
+
*/
|
|
3786
|
+
proto.supervisor.ResourcesStatusResponse.prototype.getCpu = function() {
|
|
3787
|
+
return /** @type{?proto.supervisor.ResourceStatus} */ (
|
|
3788
|
+
jspb.Message.getWrapperField(this, proto.supervisor.ResourceStatus, 2));
|
|
3789
|
+
};
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
/**
|
|
3793
|
+
* @param {?proto.supervisor.ResourceStatus|undefined} value
|
|
3794
|
+
* @return {!proto.supervisor.ResourcesStatusResponse} returns this
|
|
3795
|
+
*/
|
|
3796
|
+
proto.supervisor.ResourcesStatusResponse.prototype.setCpu = function(value) {
|
|
3797
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3798
|
+
};
|
|
3799
|
+
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* Clears the message field making it undefined.
|
|
3803
|
+
* @return {!proto.supervisor.ResourcesStatusResponse} returns this
|
|
3804
|
+
*/
|
|
3805
|
+
proto.supervisor.ResourcesStatusResponse.prototype.clearCpu = function() {
|
|
3806
|
+
return this.setCpu(undefined);
|
|
3807
|
+
};
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
/**
|
|
3811
|
+
* Returns whether this field is set.
|
|
3812
|
+
* @return {boolean}
|
|
3813
|
+
*/
|
|
3814
|
+
proto.supervisor.ResourcesStatusResponse.prototype.hasCpu = function() {
|
|
3815
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3816
|
+
};
|
|
3817
|
+
|
|
3818
|
+
|
|
3819
|
+
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3823
|
+
/**
|
|
3824
|
+
* Creates an object representation of this proto.
|
|
3825
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3826
|
+
* Optional fields that are not set will be set to undefined.
|
|
3827
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3828
|
+
* For the list of reserved names please see:
|
|
3829
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3830
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3831
|
+
* JSPB instance for transitional soy proto support:
|
|
3832
|
+
* http://goto/soy-param-migration
|
|
3833
|
+
* @return {!Object}
|
|
3834
|
+
*/
|
|
3835
|
+
proto.supervisor.ResourceStatus.prototype.toObject = function(opt_includeInstance) {
|
|
3836
|
+
return proto.supervisor.ResourceStatus.toObject(opt_includeInstance, this);
|
|
3837
|
+
};
|
|
3838
|
+
|
|
3839
|
+
|
|
3840
|
+
/**
|
|
3841
|
+
* Static version of the {@see toObject} method.
|
|
3842
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3843
|
+
* the JSPB instance for transitional soy proto support:
|
|
3844
|
+
* http://goto/soy-param-migration
|
|
3845
|
+
* @param {!proto.supervisor.ResourceStatus} msg The msg instance to transform.
|
|
3846
|
+
* @return {!Object}
|
|
3847
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3848
|
+
*/
|
|
3849
|
+
proto.supervisor.ResourceStatus.toObject = function(includeInstance, msg) {
|
|
3850
|
+
var f, obj = {
|
|
3851
|
+
used: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3852
|
+
limit: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
3853
|
+
};
|
|
3854
|
+
|
|
3855
|
+
if (includeInstance) {
|
|
3856
|
+
obj.$jspbMessageInstance = msg;
|
|
3857
|
+
}
|
|
3858
|
+
return obj;
|
|
3859
|
+
};
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
|
|
3863
|
+
/**
|
|
3864
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3865
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3866
|
+
* @return {!proto.supervisor.ResourceStatus}
|
|
3867
|
+
*/
|
|
3868
|
+
proto.supervisor.ResourceStatus.deserializeBinary = function(bytes) {
|
|
3869
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3870
|
+
var msg = new proto.supervisor.ResourceStatus;
|
|
3871
|
+
return proto.supervisor.ResourceStatus.deserializeBinaryFromReader(msg, reader);
|
|
3872
|
+
};
|
|
3873
|
+
|
|
3874
|
+
|
|
3875
|
+
/**
|
|
3876
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3877
|
+
* given reader into the given message object.
|
|
3878
|
+
* @param {!proto.supervisor.ResourceStatus} msg The message object to deserialize into.
|
|
3879
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3880
|
+
* @return {!proto.supervisor.ResourceStatus}
|
|
3881
|
+
*/
|
|
3882
|
+
proto.supervisor.ResourceStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
3883
|
+
while (reader.nextField()) {
|
|
3884
|
+
if (reader.isEndGroup()) {
|
|
3885
|
+
break;
|
|
3886
|
+
}
|
|
3887
|
+
var field = reader.getFieldNumber();
|
|
3888
|
+
switch (field) {
|
|
3889
|
+
case 1:
|
|
3890
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3891
|
+
msg.setUsed(value);
|
|
3892
|
+
break;
|
|
3893
|
+
case 2:
|
|
3894
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3895
|
+
msg.setLimit(value);
|
|
3896
|
+
break;
|
|
3897
|
+
default:
|
|
3898
|
+
reader.skipField();
|
|
3899
|
+
break;
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
return msg;
|
|
3903
|
+
};
|
|
3904
|
+
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3908
|
+
* @return {!Uint8Array}
|
|
3909
|
+
*/
|
|
3910
|
+
proto.supervisor.ResourceStatus.prototype.serializeBinary = function() {
|
|
3911
|
+
var writer = new jspb.BinaryWriter();
|
|
3912
|
+
proto.supervisor.ResourceStatus.serializeBinaryToWriter(this, writer);
|
|
3913
|
+
return writer.getResultBuffer();
|
|
3914
|
+
};
|
|
3915
|
+
|
|
3916
|
+
|
|
3917
|
+
/**
|
|
3918
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3919
|
+
* format), writing to the given BinaryWriter.
|
|
3920
|
+
* @param {!proto.supervisor.ResourceStatus} message
|
|
3921
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3922
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3923
|
+
*/
|
|
3924
|
+
proto.supervisor.ResourceStatus.serializeBinaryToWriter = function(message, writer) {
|
|
3925
|
+
var f = undefined;
|
|
3926
|
+
f = message.getUsed();
|
|
3927
|
+
if (f !== 0) {
|
|
3928
|
+
writer.writeInt64(
|
|
3929
|
+
1,
|
|
3930
|
+
f
|
|
3931
|
+
);
|
|
3932
|
+
}
|
|
3933
|
+
f = message.getLimit();
|
|
3934
|
+
if (f !== 0) {
|
|
3935
|
+
writer.writeInt64(
|
|
3936
|
+
2,
|
|
3937
|
+
f
|
|
3938
|
+
);
|
|
3939
|
+
}
|
|
3940
|
+
};
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
/**
|
|
3944
|
+
* optional int64 used = 1;
|
|
3945
|
+
* @return {number}
|
|
3946
|
+
*/
|
|
3947
|
+
proto.supervisor.ResourceStatus.prototype.getUsed = function() {
|
|
3948
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3949
|
+
};
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
/**
|
|
3953
|
+
* @param {number} value
|
|
3954
|
+
* @return {!proto.supervisor.ResourceStatus} returns this
|
|
3955
|
+
*/
|
|
3956
|
+
proto.supervisor.ResourceStatus.prototype.setUsed = function(value) {
|
|
3957
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3958
|
+
};
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* optional int64 limit = 2;
|
|
3963
|
+
* @return {number}
|
|
3964
|
+
*/
|
|
3965
|
+
proto.supervisor.ResourceStatus.prototype.getLimit = function() {
|
|
3966
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3967
|
+
};
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
/**
|
|
3971
|
+
* @param {number} value
|
|
3972
|
+
* @return {!proto.supervisor.ResourceStatus} returns this
|
|
3973
|
+
*/
|
|
3974
|
+
proto.supervisor.ResourceStatus.prototype.setLimit = function(value) {
|
|
3975
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
|
|
3396
3979
|
/**
|
|
3397
3980
|
* @enum {number}
|
|
3398
3981
|
*/
|
package/lib/terminal_pb.js
CHANGED
|
@@ -13,13 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global = (function() {
|
|
17
|
-
if (this) { return this; }
|
|
18
|
-
if (typeof window !== 'undefined') { return window; }
|
|
19
|
-
if (typeof global !== 'undefined') { return global; }
|
|
20
|
-
if (typeof self !== 'undefined') { return self; }
|
|
21
|
-
return Function('return this')();
|
|
22
|
-
}.call(null));
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
23
17
|
|
|
24
18
|
goog.exportSymbol('proto.supervisor.GetTerminalRequest', null, global);
|
|
25
19
|
goog.exportSymbol('proto.supervisor.ListTerminalsRequest', null, global);
|
package/lib/token_pb.js
CHANGED
|
@@ -13,13 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global = (function() {
|
|
17
|
-
if (this) { return this; }
|
|
18
|
-
if (typeof window !== 'undefined') { return window; }
|
|
19
|
-
if (typeof global !== 'undefined') { return global; }
|
|
20
|
-
if (typeof self !== 'undefined') { return self; }
|
|
21
|
-
return Function('return this')();
|
|
22
|
-
}.call(null));
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
23
17
|
|
|
24
18
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
25
19
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
package/package.json
CHANGED
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"lib",
|
|
15
|
-
"pkg-yarn.lock"
|
|
15
|
+
"pkg-yarn.lock",
|
|
16
|
+
"provenance-bundle.jsonl"
|
|
16
17
|
],
|
|
17
18
|
"license": "UNLICENSED",
|
|
18
19
|
"name": "@gitpod/supervisor-api-grpc",
|
|
19
20
|
"scripts": {
|
|
20
21
|
"build": "sh build.sh"
|
|
21
22
|
},
|
|
22
|
-
"version": "0.1.5-pd-
|
|
23
|
+
"version": "0.1.5-pd-use-userpk.0"
|
|
23
24
|
}
|
package/pkg-yarn.lock
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
"@gitpod/supervisor-api-grpc@0.1.5":
|
|
6
6
|
version "0.1.5"
|
|
7
|
-
resolved "file:///tmp/cache/
|
|
7
|
+
resolved "file:///tmp/cache/73c567e1d70131367d0ea6684fcca2cf7bc66a23.tar.gz"
|
|
8
8
|
dependencies:
|
|
9
9
|
"@grpc/grpc-js" "^1.3.7"
|
|
10
10
|
google-protobuf "^3.19.1"
|