@gitpod/supervisor-api-grpc 0.1.5-prs-dazzlev2-test.3 → 0.1.5-release-2022.9.2.1
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_pb.js +1 -7
- package/lib/info_pb.d.ts +32 -0
- package/lib/info_pb.js +265 -8
- 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 +93 -0
- package/lib/status_pb.js +644 -9
- package/lib/terminal_pb.js +1 -7
- package/lib/token_pb.js +1 -7
- package/package.json +1 -1
- package/pkg-yarn.lock +1 -1
- package/provenance-bundle.jsonl +2 -2
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);
|
|
@@ -36,8 +30,13 @@ goog.exportSymbol('proto.supervisor.OnPortExposedAction', null, global);
|
|
|
36
30
|
goog.exportSymbol('proto.supervisor.PortAutoExposure', null, global);
|
|
37
31
|
goog.exportSymbol('proto.supervisor.PortVisibility', null, global);
|
|
38
32
|
goog.exportSymbol('proto.supervisor.PortsStatus', null, global);
|
|
33
|
+
goog.exportSymbol('proto.supervisor.PortsStatus.OnOpenAction', null, global);
|
|
39
34
|
goog.exportSymbol('proto.supervisor.PortsStatusRequest', null, global);
|
|
40
35
|
goog.exportSymbol('proto.supervisor.PortsStatusResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.supervisor.ResourceStatus', null, global);
|
|
37
|
+
goog.exportSymbol('proto.supervisor.ResourceStatusSeverity', null, global);
|
|
38
|
+
goog.exportSymbol('proto.supervisor.ResourcesStatuRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.supervisor.ResourcesStatusResponse', null, global);
|
|
41
40
|
goog.exportSymbol('proto.supervisor.SupervisorStatusRequest', null, global);
|
|
42
41
|
goog.exportSymbol('proto.supervisor.SupervisorStatusResponse', null, global);
|
|
43
42
|
goog.exportSymbol('proto.supervisor.TaskPresentation', null, global);
|
|
@@ -424,6 +423,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
424
423
|
*/
|
|
425
424
|
proto.supervisor.TaskPresentation.displayName = 'proto.supervisor.TaskPresentation';
|
|
426
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* Generated by JsPbCodeGenerator.
|
|
428
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
429
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
430
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
431
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
432
|
+
* valid.
|
|
433
|
+
* @extends {jspb.Message}
|
|
434
|
+
* @constructor
|
|
435
|
+
*/
|
|
436
|
+
proto.supervisor.ResourcesStatuRequest = function(opt_data) {
|
|
437
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
438
|
+
};
|
|
439
|
+
goog.inherits(proto.supervisor.ResourcesStatuRequest, jspb.Message);
|
|
440
|
+
if (goog.DEBUG && !COMPILED) {
|
|
441
|
+
/**
|
|
442
|
+
* @public
|
|
443
|
+
* @override
|
|
444
|
+
*/
|
|
445
|
+
proto.supervisor.ResourcesStatuRequest.displayName = 'proto.supervisor.ResourcesStatuRequest';
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Generated by JsPbCodeGenerator.
|
|
449
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
450
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
451
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
452
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
453
|
+
* valid.
|
|
454
|
+
* @extends {jspb.Message}
|
|
455
|
+
* @constructor
|
|
456
|
+
*/
|
|
457
|
+
proto.supervisor.ResourcesStatusResponse = function(opt_data) {
|
|
458
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
459
|
+
};
|
|
460
|
+
goog.inherits(proto.supervisor.ResourcesStatusResponse, jspb.Message);
|
|
461
|
+
if (goog.DEBUG && !COMPILED) {
|
|
462
|
+
/**
|
|
463
|
+
* @public
|
|
464
|
+
* @override
|
|
465
|
+
*/
|
|
466
|
+
proto.supervisor.ResourcesStatusResponse.displayName = 'proto.supervisor.ResourcesStatusResponse';
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Generated by JsPbCodeGenerator.
|
|
470
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
471
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
472
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
473
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
474
|
+
* valid.
|
|
475
|
+
* @extends {jspb.Message}
|
|
476
|
+
* @constructor
|
|
477
|
+
*/
|
|
478
|
+
proto.supervisor.ResourceStatus = function(opt_data) {
|
|
479
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
480
|
+
};
|
|
481
|
+
goog.inherits(proto.supervisor.ResourceStatus, jspb.Message);
|
|
482
|
+
if (goog.DEBUG && !COMPILED) {
|
|
483
|
+
/**
|
|
484
|
+
* @public
|
|
485
|
+
* @override
|
|
486
|
+
*/
|
|
487
|
+
proto.supervisor.ResourceStatus.displayName = 'proto.supervisor.ResourceStatus';
|
|
488
|
+
}
|
|
427
489
|
|
|
428
490
|
|
|
429
491
|
|
|
@@ -945,7 +1007,8 @@ proto.supervisor.IDEStatusResponse.DesktopStatus.toObject = function(includeInst
|
|
|
945
1007
|
var f, obj = {
|
|
946
1008
|
link: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
947
1009
|
label: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
948
|
-
clientid: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1010
|
+
clientid: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1011
|
+
kind: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
949
1012
|
};
|
|
950
1013
|
|
|
951
1014
|
if (includeInstance) {
|
|
@@ -994,6 +1057,10 @@ proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader = f
|
|
|
994
1057
|
var value = /** @type {string} */ (reader.readString());
|
|
995
1058
|
msg.setClientid(value);
|
|
996
1059
|
break;
|
|
1060
|
+
case 4:
|
|
1061
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1062
|
+
msg.setKind(value);
|
|
1063
|
+
break;
|
|
997
1064
|
default:
|
|
998
1065
|
reader.skipField();
|
|
999
1066
|
break;
|
|
@@ -1044,6 +1111,13 @@ proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter = funct
|
|
|
1044
1111
|
f
|
|
1045
1112
|
);
|
|
1046
1113
|
}
|
|
1114
|
+
f = message.getKind();
|
|
1115
|
+
if (f.length > 0) {
|
|
1116
|
+
writer.writeString(
|
|
1117
|
+
4,
|
|
1118
|
+
f
|
|
1119
|
+
);
|
|
1120
|
+
}
|
|
1047
1121
|
};
|
|
1048
1122
|
|
|
1049
1123
|
|
|
@@ -1101,6 +1175,24 @@ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setClientid = functio
|
|
|
1101
1175
|
};
|
|
1102
1176
|
|
|
1103
1177
|
|
|
1178
|
+
/**
|
|
1179
|
+
* optional string kind = 4;
|
|
1180
|
+
* @return {string}
|
|
1181
|
+
*/
|
|
1182
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getKind = function() {
|
|
1183
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* @param {string} value
|
|
1189
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1190
|
+
*/
|
|
1191
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setKind = function(value) {
|
|
1192
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
|
|
1104
1196
|
/**
|
|
1105
1197
|
* optional bool ok = 1;
|
|
1106
1198
|
* @return {boolean}
|
|
@@ -2388,7 +2480,8 @@ proto.supervisor.PortsStatus.toObject = function(includeInstance, msg) {
|
|
|
2388
2480
|
autoExposure: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
2389
2481
|
tunneled: (f = msg.getTunneled()) && proto.supervisor.TunneledPortInfo.toObject(includeInstance, f),
|
|
2390
2482
|
description: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2391
|
-
name: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
2483
|
+
name: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
2484
|
+
onOpen: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
2392
2485
|
};
|
|
2393
2486
|
|
|
2394
2487
|
if (includeInstance) {
|
|
@@ -2455,6 +2548,10 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2455
2548
|
var value = /** @type {string} */ (reader.readString());
|
|
2456
2549
|
msg.setName(value);
|
|
2457
2550
|
break;
|
|
2551
|
+
case 10:
|
|
2552
|
+
var value = /** @type {!proto.supervisor.PortsStatus.OnOpenAction} */ (reader.readEnum());
|
|
2553
|
+
msg.setOnOpen(value);
|
|
2554
|
+
break;
|
|
2458
2555
|
default:
|
|
2459
2556
|
reader.skipField();
|
|
2460
2557
|
break;
|
|
@@ -2535,9 +2632,27 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
|
|
|
2535
2632
|
f
|
|
2536
2633
|
);
|
|
2537
2634
|
}
|
|
2635
|
+
f = message.getOnOpen();
|
|
2636
|
+
if (f !== 0.0) {
|
|
2637
|
+
writer.writeEnum(
|
|
2638
|
+
10,
|
|
2639
|
+
f
|
|
2640
|
+
);
|
|
2641
|
+
}
|
|
2538
2642
|
};
|
|
2539
2643
|
|
|
2540
2644
|
|
|
2645
|
+
/**
|
|
2646
|
+
* @enum {number}
|
|
2647
|
+
*/
|
|
2648
|
+
proto.supervisor.PortsStatus.OnOpenAction = {
|
|
2649
|
+
IGNORE: 0,
|
|
2650
|
+
OPEN_BROWSER: 1,
|
|
2651
|
+
OPEN_PREVIEW: 2,
|
|
2652
|
+
NOTIFY: 3,
|
|
2653
|
+
NOTIFY_PRIVATE: 4
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2541
2656
|
/**
|
|
2542
2657
|
* optional uint32 local_port = 1;
|
|
2543
2658
|
* @return {number}
|
|
@@ -2702,6 +2817,24 @@ proto.supervisor.PortsStatus.prototype.setName = function(value) {
|
|
|
2702
2817
|
};
|
|
2703
2818
|
|
|
2704
2819
|
|
|
2820
|
+
/**
|
|
2821
|
+
* optional OnOpenAction on_open = 10;
|
|
2822
|
+
* @return {!proto.supervisor.PortsStatus.OnOpenAction}
|
|
2823
|
+
*/
|
|
2824
|
+
proto.supervisor.PortsStatus.prototype.getOnOpen = function() {
|
|
2825
|
+
return /** @type {!proto.supervisor.PortsStatus.OnOpenAction} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
/**
|
|
2830
|
+
* @param {!proto.supervisor.PortsStatus.OnOpenAction} value
|
|
2831
|
+
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2832
|
+
*/
|
|
2833
|
+
proto.supervisor.PortsStatus.prototype.setOnOpen = function(value) {
|
|
2834
|
+
return jspb.Message.setProto3EnumField(this, 10, value);
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2837
|
+
|
|
2705
2838
|
|
|
2706
2839
|
|
|
2707
2840
|
|
|
@@ -3423,6 +3556,499 @@ proto.supervisor.TaskPresentation.prototype.setOpenMode = function(value) {
|
|
|
3423
3556
|
};
|
|
3424
3557
|
|
|
3425
3558
|
|
|
3559
|
+
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3563
|
+
/**
|
|
3564
|
+
* Creates an object representation of this proto.
|
|
3565
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3566
|
+
* Optional fields that are not set will be set to undefined.
|
|
3567
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3568
|
+
* For the list of reserved names please see:
|
|
3569
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3570
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3571
|
+
* JSPB instance for transitional soy proto support:
|
|
3572
|
+
* http://goto/soy-param-migration
|
|
3573
|
+
* @return {!Object}
|
|
3574
|
+
*/
|
|
3575
|
+
proto.supervisor.ResourcesStatuRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3576
|
+
return proto.supervisor.ResourcesStatuRequest.toObject(opt_includeInstance, this);
|
|
3577
|
+
};
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
/**
|
|
3581
|
+
* Static version of the {@see toObject} method.
|
|
3582
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3583
|
+
* the JSPB instance for transitional soy proto support:
|
|
3584
|
+
* http://goto/soy-param-migration
|
|
3585
|
+
* @param {!proto.supervisor.ResourcesStatuRequest} msg The msg instance to transform.
|
|
3586
|
+
* @return {!Object}
|
|
3587
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3588
|
+
*/
|
|
3589
|
+
proto.supervisor.ResourcesStatuRequest.toObject = function(includeInstance, msg) {
|
|
3590
|
+
var f, obj = {
|
|
3591
|
+
|
|
3592
|
+
};
|
|
3593
|
+
|
|
3594
|
+
if (includeInstance) {
|
|
3595
|
+
obj.$jspbMessageInstance = msg;
|
|
3596
|
+
}
|
|
3597
|
+
return obj;
|
|
3598
|
+
};
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3601
|
+
|
|
3602
|
+
/**
|
|
3603
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3604
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3605
|
+
* @return {!proto.supervisor.ResourcesStatuRequest}
|
|
3606
|
+
*/
|
|
3607
|
+
proto.supervisor.ResourcesStatuRequest.deserializeBinary = function(bytes) {
|
|
3608
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3609
|
+
var msg = new proto.supervisor.ResourcesStatuRequest;
|
|
3610
|
+
return proto.supervisor.ResourcesStatuRequest.deserializeBinaryFromReader(msg, reader);
|
|
3611
|
+
};
|
|
3612
|
+
|
|
3613
|
+
|
|
3614
|
+
/**
|
|
3615
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3616
|
+
* given reader into the given message object.
|
|
3617
|
+
* @param {!proto.supervisor.ResourcesStatuRequest} msg The message object to deserialize into.
|
|
3618
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3619
|
+
* @return {!proto.supervisor.ResourcesStatuRequest}
|
|
3620
|
+
*/
|
|
3621
|
+
proto.supervisor.ResourcesStatuRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3622
|
+
while (reader.nextField()) {
|
|
3623
|
+
if (reader.isEndGroup()) {
|
|
3624
|
+
break;
|
|
3625
|
+
}
|
|
3626
|
+
var field = reader.getFieldNumber();
|
|
3627
|
+
switch (field) {
|
|
3628
|
+
default:
|
|
3629
|
+
reader.skipField();
|
|
3630
|
+
break;
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
return msg;
|
|
3634
|
+
};
|
|
3635
|
+
|
|
3636
|
+
|
|
3637
|
+
/**
|
|
3638
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3639
|
+
* @return {!Uint8Array}
|
|
3640
|
+
*/
|
|
3641
|
+
proto.supervisor.ResourcesStatuRequest.prototype.serializeBinary = function() {
|
|
3642
|
+
var writer = new jspb.BinaryWriter();
|
|
3643
|
+
proto.supervisor.ResourcesStatuRequest.serializeBinaryToWriter(this, writer);
|
|
3644
|
+
return writer.getResultBuffer();
|
|
3645
|
+
};
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
/**
|
|
3649
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3650
|
+
* format), writing to the given BinaryWriter.
|
|
3651
|
+
* @param {!proto.supervisor.ResourcesStatuRequest} message
|
|
3652
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3653
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3654
|
+
*/
|
|
3655
|
+
proto.supervisor.ResourcesStatuRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3656
|
+
var f = undefined;
|
|
3657
|
+
};
|
|
3658
|
+
|
|
3659
|
+
|
|
3660
|
+
|
|
3661
|
+
|
|
3662
|
+
|
|
3663
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3664
|
+
/**
|
|
3665
|
+
* Creates an object representation of this proto.
|
|
3666
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3667
|
+
* Optional fields that are not set will be set to undefined.
|
|
3668
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3669
|
+
* For the list of reserved names please see:
|
|
3670
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3671
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3672
|
+
* JSPB instance for transitional soy proto support:
|
|
3673
|
+
* http://goto/soy-param-migration
|
|
3674
|
+
* @return {!Object}
|
|
3675
|
+
*/
|
|
3676
|
+
proto.supervisor.ResourcesStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3677
|
+
return proto.supervisor.ResourcesStatusResponse.toObject(opt_includeInstance, this);
|
|
3678
|
+
};
|
|
3679
|
+
|
|
3680
|
+
|
|
3681
|
+
/**
|
|
3682
|
+
* Static version of the {@see toObject} method.
|
|
3683
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3684
|
+
* the JSPB instance for transitional soy proto support:
|
|
3685
|
+
* http://goto/soy-param-migration
|
|
3686
|
+
* @param {!proto.supervisor.ResourcesStatusResponse} msg The msg instance to transform.
|
|
3687
|
+
* @return {!Object}
|
|
3688
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3689
|
+
*/
|
|
3690
|
+
proto.supervisor.ResourcesStatusResponse.toObject = function(includeInstance, msg) {
|
|
3691
|
+
var f, obj = {
|
|
3692
|
+
memory: (f = msg.getMemory()) && proto.supervisor.ResourceStatus.toObject(includeInstance, f),
|
|
3693
|
+
cpu: (f = msg.getCpu()) && proto.supervisor.ResourceStatus.toObject(includeInstance, f)
|
|
3694
|
+
};
|
|
3695
|
+
|
|
3696
|
+
if (includeInstance) {
|
|
3697
|
+
obj.$jspbMessageInstance = msg;
|
|
3698
|
+
}
|
|
3699
|
+
return obj;
|
|
3700
|
+
};
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
/**
|
|
3705
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3706
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3707
|
+
* @return {!proto.supervisor.ResourcesStatusResponse}
|
|
3708
|
+
*/
|
|
3709
|
+
proto.supervisor.ResourcesStatusResponse.deserializeBinary = function(bytes) {
|
|
3710
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3711
|
+
var msg = new proto.supervisor.ResourcesStatusResponse;
|
|
3712
|
+
return proto.supervisor.ResourcesStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
3713
|
+
};
|
|
3714
|
+
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3718
|
+
* given reader into the given message object.
|
|
3719
|
+
* @param {!proto.supervisor.ResourcesStatusResponse} msg The message object to deserialize into.
|
|
3720
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3721
|
+
* @return {!proto.supervisor.ResourcesStatusResponse}
|
|
3722
|
+
*/
|
|
3723
|
+
proto.supervisor.ResourcesStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3724
|
+
while (reader.nextField()) {
|
|
3725
|
+
if (reader.isEndGroup()) {
|
|
3726
|
+
break;
|
|
3727
|
+
}
|
|
3728
|
+
var field = reader.getFieldNumber();
|
|
3729
|
+
switch (field) {
|
|
3730
|
+
case 1:
|
|
3731
|
+
var value = new proto.supervisor.ResourceStatus;
|
|
3732
|
+
reader.readMessage(value,proto.supervisor.ResourceStatus.deserializeBinaryFromReader);
|
|
3733
|
+
msg.setMemory(value);
|
|
3734
|
+
break;
|
|
3735
|
+
case 2:
|
|
3736
|
+
var value = new proto.supervisor.ResourceStatus;
|
|
3737
|
+
reader.readMessage(value,proto.supervisor.ResourceStatus.deserializeBinaryFromReader);
|
|
3738
|
+
msg.setCpu(value);
|
|
3739
|
+
break;
|
|
3740
|
+
default:
|
|
3741
|
+
reader.skipField();
|
|
3742
|
+
break;
|
|
3743
|
+
}
|
|
3744
|
+
}
|
|
3745
|
+
return msg;
|
|
3746
|
+
};
|
|
3747
|
+
|
|
3748
|
+
|
|
3749
|
+
/**
|
|
3750
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3751
|
+
* @return {!Uint8Array}
|
|
3752
|
+
*/
|
|
3753
|
+
proto.supervisor.ResourcesStatusResponse.prototype.serializeBinary = function() {
|
|
3754
|
+
var writer = new jspb.BinaryWriter();
|
|
3755
|
+
proto.supervisor.ResourcesStatusResponse.serializeBinaryToWriter(this, writer);
|
|
3756
|
+
return writer.getResultBuffer();
|
|
3757
|
+
};
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
/**
|
|
3761
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3762
|
+
* format), writing to the given BinaryWriter.
|
|
3763
|
+
* @param {!proto.supervisor.ResourcesStatusResponse} message
|
|
3764
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3765
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3766
|
+
*/
|
|
3767
|
+
proto.supervisor.ResourcesStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3768
|
+
var f = undefined;
|
|
3769
|
+
f = message.getMemory();
|
|
3770
|
+
if (f != null) {
|
|
3771
|
+
writer.writeMessage(
|
|
3772
|
+
1,
|
|
3773
|
+
f,
|
|
3774
|
+
proto.supervisor.ResourceStatus.serializeBinaryToWriter
|
|
3775
|
+
);
|
|
3776
|
+
}
|
|
3777
|
+
f = message.getCpu();
|
|
3778
|
+
if (f != null) {
|
|
3779
|
+
writer.writeMessage(
|
|
3780
|
+
2,
|
|
3781
|
+
f,
|
|
3782
|
+
proto.supervisor.ResourceStatus.serializeBinaryToWriter
|
|
3783
|
+
);
|
|
3784
|
+
}
|
|
3785
|
+
};
|
|
3786
|
+
|
|
3787
|
+
|
|
3788
|
+
/**
|
|
3789
|
+
* optional ResourceStatus memory = 1;
|
|
3790
|
+
* @return {?proto.supervisor.ResourceStatus}
|
|
3791
|
+
*/
|
|
3792
|
+
proto.supervisor.ResourcesStatusResponse.prototype.getMemory = function() {
|
|
3793
|
+
return /** @type{?proto.supervisor.ResourceStatus} */ (
|
|
3794
|
+
jspb.Message.getWrapperField(this, proto.supervisor.ResourceStatus, 1));
|
|
3795
|
+
};
|
|
3796
|
+
|
|
3797
|
+
|
|
3798
|
+
/**
|
|
3799
|
+
* @param {?proto.supervisor.ResourceStatus|undefined} value
|
|
3800
|
+
* @return {!proto.supervisor.ResourcesStatusResponse} returns this
|
|
3801
|
+
*/
|
|
3802
|
+
proto.supervisor.ResourcesStatusResponse.prototype.setMemory = function(value) {
|
|
3803
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3804
|
+
};
|
|
3805
|
+
|
|
3806
|
+
|
|
3807
|
+
/**
|
|
3808
|
+
* Clears the message field making it undefined.
|
|
3809
|
+
* @return {!proto.supervisor.ResourcesStatusResponse} returns this
|
|
3810
|
+
*/
|
|
3811
|
+
proto.supervisor.ResourcesStatusResponse.prototype.clearMemory = function() {
|
|
3812
|
+
return this.setMemory(undefined);
|
|
3813
|
+
};
|
|
3814
|
+
|
|
3815
|
+
|
|
3816
|
+
/**
|
|
3817
|
+
* Returns whether this field is set.
|
|
3818
|
+
* @return {boolean}
|
|
3819
|
+
*/
|
|
3820
|
+
proto.supervisor.ResourcesStatusResponse.prototype.hasMemory = function() {
|
|
3821
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3822
|
+
};
|
|
3823
|
+
|
|
3824
|
+
|
|
3825
|
+
/**
|
|
3826
|
+
* optional ResourceStatus cpu = 2;
|
|
3827
|
+
* @return {?proto.supervisor.ResourceStatus}
|
|
3828
|
+
*/
|
|
3829
|
+
proto.supervisor.ResourcesStatusResponse.prototype.getCpu = function() {
|
|
3830
|
+
return /** @type{?proto.supervisor.ResourceStatus} */ (
|
|
3831
|
+
jspb.Message.getWrapperField(this, proto.supervisor.ResourceStatus, 2));
|
|
3832
|
+
};
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* @param {?proto.supervisor.ResourceStatus|undefined} value
|
|
3837
|
+
* @return {!proto.supervisor.ResourcesStatusResponse} returns this
|
|
3838
|
+
*/
|
|
3839
|
+
proto.supervisor.ResourcesStatusResponse.prototype.setCpu = function(value) {
|
|
3840
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3841
|
+
};
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
/**
|
|
3845
|
+
* Clears the message field making it undefined.
|
|
3846
|
+
* @return {!proto.supervisor.ResourcesStatusResponse} returns this
|
|
3847
|
+
*/
|
|
3848
|
+
proto.supervisor.ResourcesStatusResponse.prototype.clearCpu = function() {
|
|
3849
|
+
return this.setCpu(undefined);
|
|
3850
|
+
};
|
|
3851
|
+
|
|
3852
|
+
|
|
3853
|
+
/**
|
|
3854
|
+
* Returns whether this field is set.
|
|
3855
|
+
* @return {boolean}
|
|
3856
|
+
*/
|
|
3857
|
+
proto.supervisor.ResourcesStatusResponse.prototype.hasCpu = function() {
|
|
3858
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3859
|
+
};
|
|
3860
|
+
|
|
3861
|
+
|
|
3862
|
+
|
|
3863
|
+
|
|
3864
|
+
|
|
3865
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3866
|
+
/**
|
|
3867
|
+
* Creates an object representation of this proto.
|
|
3868
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3869
|
+
* Optional fields that are not set will be set to undefined.
|
|
3870
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3871
|
+
* For the list of reserved names please see:
|
|
3872
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3873
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3874
|
+
* JSPB instance for transitional soy proto support:
|
|
3875
|
+
* http://goto/soy-param-migration
|
|
3876
|
+
* @return {!Object}
|
|
3877
|
+
*/
|
|
3878
|
+
proto.supervisor.ResourceStatus.prototype.toObject = function(opt_includeInstance) {
|
|
3879
|
+
return proto.supervisor.ResourceStatus.toObject(opt_includeInstance, this);
|
|
3880
|
+
};
|
|
3881
|
+
|
|
3882
|
+
|
|
3883
|
+
/**
|
|
3884
|
+
* Static version of the {@see toObject} method.
|
|
3885
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3886
|
+
* the JSPB instance for transitional soy proto support:
|
|
3887
|
+
* http://goto/soy-param-migration
|
|
3888
|
+
* @param {!proto.supervisor.ResourceStatus} msg The msg instance to transform.
|
|
3889
|
+
* @return {!Object}
|
|
3890
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3891
|
+
*/
|
|
3892
|
+
proto.supervisor.ResourceStatus.toObject = function(includeInstance, msg) {
|
|
3893
|
+
var f, obj = {
|
|
3894
|
+
used: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3895
|
+
limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3896
|
+
severity: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
3897
|
+
};
|
|
3898
|
+
|
|
3899
|
+
if (includeInstance) {
|
|
3900
|
+
obj.$jspbMessageInstance = msg;
|
|
3901
|
+
}
|
|
3902
|
+
return obj;
|
|
3903
|
+
};
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
/**
|
|
3908
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3909
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3910
|
+
* @return {!proto.supervisor.ResourceStatus}
|
|
3911
|
+
*/
|
|
3912
|
+
proto.supervisor.ResourceStatus.deserializeBinary = function(bytes) {
|
|
3913
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3914
|
+
var msg = new proto.supervisor.ResourceStatus;
|
|
3915
|
+
return proto.supervisor.ResourceStatus.deserializeBinaryFromReader(msg, reader);
|
|
3916
|
+
};
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
/**
|
|
3920
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3921
|
+
* given reader into the given message object.
|
|
3922
|
+
* @param {!proto.supervisor.ResourceStatus} msg The message object to deserialize into.
|
|
3923
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3924
|
+
* @return {!proto.supervisor.ResourceStatus}
|
|
3925
|
+
*/
|
|
3926
|
+
proto.supervisor.ResourceStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
3927
|
+
while (reader.nextField()) {
|
|
3928
|
+
if (reader.isEndGroup()) {
|
|
3929
|
+
break;
|
|
3930
|
+
}
|
|
3931
|
+
var field = reader.getFieldNumber();
|
|
3932
|
+
switch (field) {
|
|
3933
|
+
case 1:
|
|
3934
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3935
|
+
msg.setUsed(value);
|
|
3936
|
+
break;
|
|
3937
|
+
case 2:
|
|
3938
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3939
|
+
msg.setLimit(value);
|
|
3940
|
+
break;
|
|
3941
|
+
case 3:
|
|
3942
|
+
var value = /** @type {!proto.supervisor.ResourceStatusSeverity} */ (reader.readEnum());
|
|
3943
|
+
msg.setSeverity(value);
|
|
3944
|
+
break;
|
|
3945
|
+
default:
|
|
3946
|
+
reader.skipField();
|
|
3947
|
+
break;
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
return msg;
|
|
3951
|
+
};
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3956
|
+
* @return {!Uint8Array}
|
|
3957
|
+
*/
|
|
3958
|
+
proto.supervisor.ResourceStatus.prototype.serializeBinary = function() {
|
|
3959
|
+
var writer = new jspb.BinaryWriter();
|
|
3960
|
+
proto.supervisor.ResourceStatus.serializeBinaryToWriter(this, writer);
|
|
3961
|
+
return writer.getResultBuffer();
|
|
3962
|
+
};
|
|
3963
|
+
|
|
3964
|
+
|
|
3965
|
+
/**
|
|
3966
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3967
|
+
* format), writing to the given BinaryWriter.
|
|
3968
|
+
* @param {!proto.supervisor.ResourceStatus} message
|
|
3969
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3970
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3971
|
+
*/
|
|
3972
|
+
proto.supervisor.ResourceStatus.serializeBinaryToWriter = function(message, writer) {
|
|
3973
|
+
var f = undefined;
|
|
3974
|
+
f = message.getUsed();
|
|
3975
|
+
if (f !== 0) {
|
|
3976
|
+
writer.writeInt64(
|
|
3977
|
+
1,
|
|
3978
|
+
f
|
|
3979
|
+
);
|
|
3980
|
+
}
|
|
3981
|
+
f = message.getLimit();
|
|
3982
|
+
if (f !== 0) {
|
|
3983
|
+
writer.writeInt64(
|
|
3984
|
+
2,
|
|
3985
|
+
f
|
|
3986
|
+
);
|
|
3987
|
+
}
|
|
3988
|
+
f = message.getSeverity();
|
|
3989
|
+
if (f !== 0.0) {
|
|
3990
|
+
writer.writeEnum(
|
|
3991
|
+
3,
|
|
3992
|
+
f
|
|
3993
|
+
);
|
|
3994
|
+
}
|
|
3995
|
+
};
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
/**
|
|
3999
|
+
* optional int64 used = 1;
|
|
4000
|
+
* @return {number}
|
|
4001
|
+
*/
|
|
4002
|
+
proto.supervisor.ResourceStatus.prototype.getUsed = function() {
|
|
4003
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4004
|
+
};
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* @param {number} value
|
|
4009
|
+
* @return {!proto.supervisor.ResourceStatus} returns this
|
|
4010
|
+
*/
|
|
4011
|
+
proto.supervisor.ResourceStatus.prototype.setUsed = function(value) {
|
|
4012
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
/**
|
|
4017
|
+
* optional int64 limit = 2;
|
|
4018
|
+
* @return {number}
|
|
4019
|
+
*/
|
|
4020
|
+
proto.supervisor.ResourceStatus.prototype.getLimit = function() {
|
|
4021
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4022
|
+
};
|
|
4023
|
+
|
|
4024
|
+
|
|
4025
|
+
/**
|
|
4026
|
+
* @param {number} value
|
|
4027
|
+
* @return {!proto.supervisor.ResourceStatus} returns this
|
|
4028
|
+
*/
|
|
4029
|
+
proto.supervisor.ResourceStatus.prototype.setLimit = function(value) {
|
|
4030
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
4031
|
+
};
|
|
4032
|
+
|
|
4033
|
+
|
|
4034
|
+
/**
|
|
4035
|
+
* optional ResourceStatusSeverity severity = 3;
|
|
4036
|
+
* @return {!proto.supervisor.ResourceStatusSeverity}
|
|
4037
|
+
*/
|
|
4038
|
+
proto.supervisor.ResourceStatus.prototype.getSeverity = function() {
|
|
4039
|
+
return /** @type {!proto.supervisor.ResourceStatusSeverity} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
4040
|
+
};
|
|
4041
|
+
|
|
4042
|
+
|
|
4043
|
+
/**
|
|
4044
|
+
* @param {!proto.supervisor.ResourceStatusSeverity} value
|
|
4045
|
+
* @return {!proto.supervisor.ResourceStatus} returns this
|
|
4046
|
+
*/
|
|
4047
|
+
proto.supervisor.ResourceStatus.prototype.setSeverity = function(value) {
|
|
4048
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
4049
|
+
};
|
|
4050
|
+
|
|
4051
|
+
|
|
3426
4052
|
/**
|
|
3427
4053
|
* @enum {number}
|
|
3428
4054
|
*/
|
|
@@ -3469,4 +4095,13 @@ proto.supervisor.TaskState = {
|
|
|
3469
4095
|
CLOSED: 2
|
|
3470
4096
|
};
|
|
3471
4097
|
|
|
4098
|
+
/**
|
|
4099
|
+
* @enum {number}
|
|
4100
|
+
*/
|
|
4101
|
+
proto.supervisor.ResourceStatusSeverity = {
|
|
4102
|
+
NORMAL: 0,
|
|
4103
|
+
WARNING: 1,
|
|
4104
|
+
DANGER: 2
|
|
4105
|
+
};
|
|
4106
|
+
|
|
3472
4107
|
goog.object.extend(exports, proto.supervisor);
|