@gitpod/supervisor-api-grpc 0.1.5-patch-1.2 → 0.1.5-pavel-git-status-fix.4

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/status_pb.js CHANGED
@@ -1,16 +1,22 @@
1
+ // source: status.proto
1
2
  /**
2
3
  * @fileoverview
3
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
4
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
5
7
  * field starts with 'MSG_' and isn't a translatable message.
6
8
  * @public
7
9
  */
8
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
9
13
 
10
14
  var jspb = require('google-protobuf');
11
15
  var goog = jspb;
12
- var global = Function('return this')();
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
13
17
 
18
+ var port_pb = require('./port_pb.js');
19
+ goog.object.extend(proto, port_pb);
14
20
  goog.exportSymbol('proto.supervisor.BackupStatusRequest', null, global);
15
21
  goog.exportSymbol('proto.supervisor.BackupStatusResponse', null, global);
16
22
  goog.exportSymbol('proto.supervisor.ContentSource', null, global);
@@ -19,11 +25,16 @@ goog.exportSymbol('proto.supervisor.ContentStatusResponse', null, global);
19
25
  goog.exportSymbol('proto.supervisor.ExposedPortInfo', null, global);
20
26
  goog.exportSymbol('proto.supervisor.IDEStatusRequest', null, global);
21
27
  goog.exportSymbol('proto.supervisor.IDEStatusResponse', null, global);
28
+ goog.exportSymbol('proto.supervisor.IDEStatusResponse.DesktopStatus', null, global);
22
29
  goog.exportSymbol('proto.supervisor.OnPortExposedAction', null, global);
30
+ goog.exportSymbol('proto.supervisor.PortAutoExposure', null, global);
23
31
  goog.exportSymbol('proto.supervisor.PortVisibility', null, global);
24
32
  goog.exportSymbol('proto.supervisor.PortsStatus', null, global);
25
33
  goog.exportSymbol('proto.supervisor.PortsStatusRequest', null, global);
26
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);
27
38
  goog.exportSymbol('proto.supervisor.SupervisorStatusRequest', null, global);
28
39
  goog.exportSymbol('proto.supervisor.SupervisorStatusResponse', null, global);
29
40
  goog.exportSymbol('proto.supervisor.TaskPresentation', null, global);
@@ -31,6 +42,7 @@ goog.exportSymbol('proto.supervisor.TaskState', null, global);
31
42
  goog.exportSymbol('proto.supervisor.TaskStatus', null, global);
32
43
  goog.exportSymbol('proto.supervisor.TasksStatusRequest', null, global);
33
44
  goog.exportSymbol('proto.supervisor.TasksStatusResponse', null, global);
45
+ goog.exportSymbol('proto.supervisor.TunneledPortInfo', null, global);
34
46
  /**
35
47
  * Generated by JsPbCodeGenerator.
36
48
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -115,6 +127,27 @@ if (goog.DEBUG && !COMPILED) {
115
127
  */
116
128
  proto.supervisor.IDEStatusResponse.displayName = 'proto.supervisor.IDEStatusResponse';
117
129
  }
130
+ /**
131
+ * Generated by JsPbCodeGenerator.
132
+ * @param {Array=} opt_data Optional initial data array, typically from a
133
+ * server response, or constructed directly in Javascript. The array is used
134
+ * in place and becomes part of the constructed object. It is not cloned.
135
+ * If no data is provided, the constructed object will be empty, but still
136
+ * valid.
137
+ * @extends {jspb.Message}
138
+ * @constructor
139
+ */
140
+ proto.supervisor.IDEStatusResponse.DesktopStatus = function(opt_data) {
141
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
142
+ };
143
+ goog.inherits(proto.supervisor.IDEStatusResponse.DesktopStatus, jspb.Message);
144
+ if (goog.DEBUG && !COMPILED) {
145
+ /**
146
+ * @public
147
+ * @override
148
+ */
149
+ proto.supervisor.IDEStatusResponse.DesktopStatus.displayName = 'proto.supervisor.IDEStatusResponse.DesktopStatus';
150
+ }
118
151
  /**
119
152
  * Generated by JsPbCodeGenerator.
120
153
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -262,6 +295,27 @@ if (goog.DEBUG && !COMPILED) {
262
295
  */
263
296
  proto.supervisor.ExposedPortInfo.displayName = 'proto.supervisor.ExposedPortInfo';
264
297
  }
298
+ /**
299
+ * Generated by JsPbCodeGenerator.
300
+ * @param {Array=} opt_data Optional initial data array, typically from a
301
+ * server response, or constructed directly in Javascript. The array is used
302
+ * in place and becomes part of the constructed object. It is not cloned.
303
+ * If no data is provided, the constructed object will be empty, but still
304
+ * valid.
305
+ * @extends {jspb.Message}
306
+ * @constructor
307
+ */
308
+ proto.supervisor.TunneledPortInfo = function(opt_data) {
309
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
310
+ };
311
+ goog.inherits(proto.supervisor.TunneledPortInfo, jspb.Message);
312
+ if (goog.DEBUG && !COMPILED) {
313
+ /**
314
+ * @public
315
+ * @override
316
+ */
317
+ proto.supervisor.TunneledPortInfo.displayName = 'proto.supervisor.TunneledPortInfo';
318
+ }
265
319
  /**
266
320
  * Generated by JsPbCodeGenerator.
267
321
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -367,18 +421,83 @@ if (goog.DEBUG && !COMPILED) {
367
421
  */
368
422
  proto.supervisor.TaskPresentation.displayName = 'proto.supervisor.TaskPresentation';
369
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
+ }
370
487
 
371
488
 
372
489
 
373
490
  if (jspb.Message.GENERATE_TO_OBJECT) {
374
491
  /**
375
- * Creates an object representation of this proto suitable for use in Soy templates.
492
+ * Creates an object representation of this proto.
376
493
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
494
+ * Optional fields that are not set will be set to undefined.
377
495
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
378
496
  * For the list of reserved names please see:
379
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
380
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
381
- * for transitional soy proto support: http://goto/soy-param-migration
497
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
498
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
499
+ * JSPB instance for transitional soy proto support:
500
+ * http://goto/soy-param-migration
382
501
  * @return {!Object}
383
502
  */
384
503
  proto.supervisor.SupervisorStatusRequest.prototype.toObject = function(opt_includeInstance) {
@@ -388,8 +507,8 @@ proto.supervisor.SupervisorStatusRequest.prototype.toObject = function(opt_inclu
388
507
 
389
508
  /**
390
509
  * Static version of the {@see toObject} method.
391
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
392
- * instance for transitional soy proto support:
510
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
511
+ * the JSPB instance for transitional soy proto support:
393
512
  * http://goto/soy-param-migration
394
513
  * @param {!proto.supervisor.SupervisorStatusRequest} msg The msg instance to transform.
395
514
  * @return {!Object}
@@ -471,13 +590,15 @@ proto.supervisor.SupervisorStatusRequest.serializeBinaryToWriter = function(mess
471
590
 
472
591
  if (jspb.Message.GENERATE_TO_OBJECT) {
473
592
  /**
474
- * Creates an object representation of this proto suitable for use in Soy templates.
593
+ * Creates an object representation of this proto.
475
594
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
595
+ * Optional fields that are not set will be set to undefined.
476
596
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
477
597
  * For the list of reserved names please see:
478
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
479
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
480
- * for transitional soy proto support: http://goto/soy-param-migration
598
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
599
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
600
+ * JSPB instance for transitional soy proto support:
601
+ * http://goto/soy-param-migration
481
602
  * @return {!Object}
482
603
  */
483
604
  proto.supervisor.SupervisorStatusResponse.prototype.toObject = function(opt_includeInstance) {
@@ -487,8 +608,8 @@ proto.supervisor.SupervisorStatusResponse.prototype.toObject = function(opt_incl
487
608
 
488
609
  /**
489
610
  * Static version of the {@see toObject} method.
490
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
491
- * instance for transitional soy proto support:
611
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
612
+ * the JSPB instance for transitional soy proto support:
492
613
  * http://goto/soy-param-migration
493
614
  * @param {!proto.supervisor.SupervisorStatusResponse} msg The msg instance to transform.
494
615
  * @return {!Object}
@@ -496,7 +617,7 @@ proto.supervisor.SupervisorStatusResponse.prototype.toObject = function(opt_incl
496
617
  */
497
618
  proto.supervisor.SupervisorStatusResponse.toObject = function(includeInstance, msg) {
498
619
  var f, obj = {
499
- ok: jspb.Message.getFieldWithDefault(msg, 1, false)
620
+ ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
500
621
  };
501
622
 
502
623
  if (includeInstance) {
@@ -578,18 +699,19 @@ proto.supervisor.SupervisorStatusResponse.serializeBinaryToWriter = function(mes
578
699
 
579
700
  /**
580
701
  * optional bool ok = 1;
581
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
582
- * You should avoid comparisons like {@code val === true/false} in those cases.
583
702
  * @return {boolean}
584
703
  */
585
704
  proto.supervisor.SupervisorStatusResponse.prototype.getOk = function() {
586
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
705
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
587
706
  };
588
707
 
589
708
 
590
- /** @param {boolean} value */
709
+ /**
710
+ * @param {boolean} value
711
+ * @return {!proto.supervisor.SupervisorStatusResponse} returns this
712
+ */
591
713
  proto.supervisor.SupervisorStatusResponse.prototype.setOk = function(value) {
592
- jspb.Message.setProto3BooleanField(this, 1, value);
714
+ return jspb.Message.setProto3BooleanField(this, 1, value);
593
715
  };
594
716
 
595
717
 
@@ -598,13 +720,15 @@ proto.supervisor.SupervisorStatusResponse.prototype.setOk = function(value) {
598
720
 
599
721
  if (jspb.Message.GENERATE_TO_OBJECT) {
600
722
  /**
601
- * Creates an object representation of this proto suitable for use in Soy templates.
723
+ * Creates an object representation of this proto.
602
724
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
725
+ * Optional fields that are not set will be set to undefined.
603
726
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
604
727
  * For the list of reserved names please see:
605
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
606
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
607
- * for transitional soy proto support: http://goto/soy-param-migration
728
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
729
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
730
+ * JSPB instance for transitional soy proto support:
731
+ * http://goto/soy-param-migration
608
732
  * @return {!Object}
609
733
  */
610
734
  proto.supervisor.IDEStatusRequest.prototype.toObject = function(opt_includeInstance) {
@@ -614,8 +738,8 @@ proto.supervisor.IDEStatusRequest.prototype.toObject = function(opt_includeInsta
614
738
 
615
739
  /**
616
740
  * Static version of the {@see toObject} method.
617
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
618
- * instance for transitional soy proto support:
741
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
742
+ * the JSPB instance for transitional soy proto support:
619
743
  * http://goto/soy-param-migration
620
744
  * @param {!proto.supervisor.IDEStatusRequest} msg The msg instance to transform.
621
745
  * @return {!Object}
@@ -623,7 +747,7 @@ proto.supervisor.IDEStatusRequest.prototype.toObject = function(opt_includeInsta
623
747
  */
624
748
  proto.supervisor.IDEStatusRequest.toObject = function(includeInstance, msg) {
625
749
  var f, obj = {
626
- wait: jspb.Message.getFieldWithDefault(msg, 1, false)
750
+ wait: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
627
751
  };
628
752
 
629
753
  if (includeInstance) {
@@ -705,18 +829,19 @@ proto.supervisor.IDEStatusRequest.serializeBinaryToWriter = function(message, wr
705
829
 
706
830
  /**
707
831
  * optional bool wait = 1;
708
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
709
- * You should avoid comparisons like {@code val === true/false} in those cases.
710
832
  * @return {boolean}
711
833
  */
712
834
  proto.supervisor.IDEStatusRequest.prototype.getWait = function() {
713
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
835
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
714
836
  };
715
837
 
716
838
 
717
- /** @param {boolean} value */
839
+ /**
840
+ * @param {boolean} value
841
+ * @return {!proto.supervisor.IDEStatusRequest} returns this
842
+ */
718
843
  proto.supervisor.IDEStatusRequest.prototype.setWait = function(value) {
719
- jspb.Message.setProto3BooleanField(this, 1, value);
844
+ return jspb.Message.setProto3BooleanField(this, 1, value);
720
845
  };
721
846
 
722
847
 
@@ -725,13 +850,15 @@ proto.supervisor.IDEStatusRequest.prototype.setWait = function(value) {
725
850
 
726
851
  if (jspb.Message.GENERATE_TO_OBJECT) {
727
852
  /**
728
- * Creates an object representation of this proto suitable for use in Soy templates.
853
+ * Creates an object representation of this proto.
729
854
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
855
+ * Optional fields that are not set will be set to undefined.
730
856
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
731
857
  * For the list of reserved names please see:
732
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
733
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
734
- * for transitional soy proto support: http://goto/soy-param-migration
858
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
859
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
860
+ * JSPB instance for transitional soy proto support:
861
+ * http://goto/soy-param-migration
735
862
  * @return {!Object}
736
863
  */
737
864
  proto.supervisor.IDEStatusResponse.prototype.toObject = function(opt_includeInstance) {
@@ -741,8 +868,8 @@ proto.supervisor.IDEStatusResponse.prototype.toObject = function(opt_includeInst
741
868
 
742
869
  /**
743
870
  * Static version of the {@see toObject} method.
744
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
745
- * instance for transitional soy proto support:
871
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
872
+ * the JSPB instance for transitional soy proto support:
746
873
  * http://goto/soy-param-migration
747
874
  * @param {!proto.supervisor.IDEStatusResponse} msg The msg instance to transform.
748
875
  * @return {!Object}
@@ -750,7 +877,8 @@ proto.supervisor.IDEStatusResponse.prototype.toObject = function(opt_includeInst
750
877
  */
751
878
  proto.supervisor.IDEStatusResponse.toObject = function(includeInstance, msg) {
752
879
  var f, obj = {
753
- ok: jspb.Message.getFieldWithDefault(msg, 1, false)
880
+ ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
881
+ desktop: (f = msg.getDesktop()) && proto.supervisor.IDEStatusResponse.DesktopStatus.toObject(includeInstance, f)
754
882
  };
755
883
 
756
884
  if (includeInstance) {
@@ -791,6 +919,11 @@ proto.supervisor.IDEStatusResponse.deserializeBinaryFromReader = function(msg, r
791
919
  var value = /** @type {boolean} */ (reader.readBool());
792
920
  msg.setOk(value);
793
921
  break;
922
+ case 2:
923
+ var value = new proto.supervisor.IDEStatusResponse.DesktopStatus;
924
+ reader.readMessage(value,proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader);
925
+ msg.setDesktop(value);
926
+ break;
794
927
  default:
795
928
  reader.skipField();
796
929
  break;
@@ -827,23 +960,14 @@ proto.supervisor.IDEStatusResponse.serializeBinaryToWriter = function(message, w
827
960
  f
828
961
  );
829
962
  }
830
- };
831
-
832
-
833
- /**
834
- * optional bool ok = 1;
835
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
836
- * You should avoid comparisons like {@code val === true/false} in those cases.
837
- * @return {boolean}
838
- */
839
- proto.supervisor.IDEStatusResponse.prototype.getOk = function() {
840
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
841
- };
842
-
843
-
844
- /** @param {boolean} value */
845
- proto.supervisor.IDEStatusResponse.prototype.setOk = function(value) {
846
- jspb.Message.setProto3BooleanField(this, 1, value);
963
+ f = message.getDesktop();
964
+ if (f != null) {
965
+ writer.writeMessage(
966
+ 2,
967
+ f,
968
+ proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter
969
+ );
970
+ }
847
971
  };
848
972
 
849
973
 
@@ -852,32 +976,37 @@ proto.supervisor.IDEStatusResponse.prototype.setOk = function(value) {
852
976
 
853
977
  if (jspb.Message.GENERATE_TO_OBJECT) {
854
978
  /**
855
- * Creates an object representation of this proto suitable for use in Soy templates.
979
+ * Creates an object representation of this proto.
856
980
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
981
+ * Optional fields that are not set will be set to undefined.
857
982
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
858
983
  * For the list of reserved names please see:
859
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
860
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
861
- * for transitional soy proto support: http://goto/soy-param-migration
984
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
985
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
986
+ * JSPB instance for transitional soy proto support:
987
+ * http://goto/soy-param-migration
862
988
  * @return {!Object}
863
989
  */
864
- proto.supervisor.ContentStatusRequest.prototype.toObject = function(opt_includeInstance) {
865
- return proto.supervisor.ContentStatusRequest.toObject(opt_includeInstance, this);
990
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.toObject = function(opt_includeInstance) {
991
+ return proto.supervisor.IDEStatusResponse.DesktopStatus.toObject(opt_includeInstance, this);
866
992
  };
867
993
 
868
994
 
869
995
  /**
870
996
  * Static version of the {@see toObject} method.
871
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
872
- * instance for transitional soy proto support:
997
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
998
+ * the JSPB instance for transitional soy proto support:
873
999
  * http://goto/soy-param-migration
874
- * @param {!proto.supervisor.ContentStatusRequest} msg The msg instance to transform.
1000
+ * @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The msg instance to transform.
875
1001
  * @return {!Object}
876
1002
  * @suppress {unusedLocalVariables} f is only used for nested messages
877
1003
  */
878
- proto.supervisor.ContentStatusRequest.toObject = function(includeInstance, msg) {
1004
+ proto.supervisor.IDEStatusResponse.DesktopStatus.toObject = function(includeInstance, msg) {
879
1005
  var f, obj = {
880
- wait: jspb.Message.getFieldWithDefault(msg, 1, false)
1006
+ link: jspb.Message.getFieldWithDefault(msg, 1, ""),
1007
+ label: jspb.Message.getFieldWithDefault(msg, 2, ""),
1008
+ clientid: jspb.Message.getFieldWithDefault(msg, 3, ""),
1009
+ kind: jspb.Message.getFieldWithDefault(msg, 4, "")
881
1010
  };
882
1011
 
883
1012
  if (includeInstance) {
@@ -891,23 +1020,23 @@ proto.supervisor.ContentStatusRequest.toObject = function(includeInstance, msg)
891
1020
  /**
892
1021
  * Deserializes binary data (in protobuf wire format).
893
1022
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
894
- * @return {!proto.supervisor.ContentStatusRequest}
1023
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
895
1024
  */
896
- proto.supervisor.ContentStatusRequest.deserializeBinary = function(bytes) {
1025
+ proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinary = function(bytes) {
897
1026
  var reader = new jspb.BinaryReader(bytes);
898
- var msg = new proto.supervisor.ContentStatusRequest;
899
- return proto.supervisor.ContentStatusRequest.deserializeBinaryFromReader(msg, reader);
1027
+ var msg = new proto.supervisor.IDEStatusResponse.DesktopStatus;
1028
+ return proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader(msg, reader);
900
1029
  };
901
1030
 
902
1031
 
903
1032
  /**
904
1033
  * Deserializes binary data (in protobuf wire format) from the
905
1034
  * given reader into the given message object.
906
- * @param {!proto.supervisor.ContentStatusRequest} msg The message object to deserialize into.
1035
+ * @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The message object to deserialize into.
907
1036
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
908
- * @return {!proto.supervisor.ContentStatusRequest}
1037
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
909
1038
  */
910
- proto.supervisor.ContentStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
1039
+ proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader = function(msg, reader) {
911
1040
  while (reader.nextField()) {
912
1041
  if (reader.isEndGroup()) {
913
1042
  break;
@@ -915,8 +1044,20 @@ proto.supervisor.ContentStatusRequest.deserializeBinaryFromReader = function(msg
915
1044
  var field = reader.getFieldNumber();
916
1045
  switch (field) {
917
1046
  case 1:
918
- var value = /** @type {boolean} */ (reader.readBool());
919
- msg.setWait(value);
1047
+ var value = /** @type {string} */ (reader.readString());
1048
+ msg.setLink(value);
1049
+ break;
1050
+ case 2:
1051
+ var value = /** @type {string} */ (reader.readString());
1052
+ msg.setLabel(value);
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);
920
1061
  break;
921
1062
  default:
922
1063
  reader.skipField();
@@ -931,9 +1072,9 @@ proto.supervisor.ContentStatusRequest.deserializeBinaryFromReader = function(msg
931
1072
  * Serializes the message to binary data (in protobuf wire format).
932
1073
  * @return {!Uint8Array}
933
1074
  */
934
- proto.supervisor.ContentStatusRequest.prototype.serializeBinary = function() {
1075
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.serializeBinary = function() {
935
1076
  var writer = new jspb.BinaryWriter();
936
- proto.supervisor.ContentStatusRequest.serializeBinaryToWriter(this, writer);
1077
+ proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter(this, writer);
937
1078
  return writer.getResultBuffer();
938
1079
  };
939
1080
 
@@ -941,36 +1082,167 @@ proto.supervisor.ContentStatusRequest.prototype.serializeBinary = function() {
941
1082
  /**
942
1083
  * Serializes the given message to binary data (in protobuf wire
943
1084
  * format), writing to the given BinaryWriter.
944
- * @param {!proto.supervisor.ContentStatusRequest} message
1085
+ * @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} message
945
1086
  * @param {!jspb.BinaryWriter} writer
946
1087
  * @suppress {unusedLocalVariables} f is only used for nested messages
947
1088
  */
948
- proto.supervisor.ContentStatusRequest.serializeBinaryToWriter = function(message, writer) {
1089
+ proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter = function(message, writer) {
949
1090
  var f = undefined;
950
- f = message.getWait();
951
- if (f) {
952
- writer.writeBool(
1091
+ f = message.getLink();
1092
+ if (f.length > 0) {
1093
+ writer.writeString(
953
1094
  1,
954
1095
  f
955
1096
  );
956
1097
  }
1098
+ f = message.getLabel();
1099
+ if (f.length > 0) {
1100
+ writer.writeString(
1101
+ 2,
1102
+ f
1103
+ );
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
+ }
957
1119
  };
958
1120
 
959
1121
 
960
1122
  /**
961
- * optional bool wait = 1;
962
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
963
- * You should avoid comparisons like {@code val === true/false} in those cases.
1123
+ * optional string link = 1;
1124
+ * @return {string}
1125
+ */
1126
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLink = function() {
1127
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1128
+ };
1129
+
1130
+
1131
+ /**
1132
+ * @param {string} value
1133
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
1134
+ */
1135
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLink = function(value) {
1136
+ return jspb.Message.setProto3StringField(this, 1, value);
1137
+ };
1138
+
1139
+
1140
+ /**
1141
+ * optional string label = 2;
1142
+ * @return {string}
1143
+ */
1144
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLabel = function() {
1145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * @param {string} value
1151
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
1152
+ */
1153
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLabel = function(value) {
1154
+ return jspb.Message.setProto3StringField(this, 2, value);
1155
+ };
1156
+
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
+
1194
+ /**
1195
+ * optional bool ok = 1;
964
1196
  * @return {boolean}
965
1197
  */
966
- proto.supervisor.ContentStatusRequest.prototype.getWait = function() {
967
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
1198
+ proto.supervisor.IDEStatusResponse.prototype.getOk = function() {
1199
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
968
1200
  };
969
1201
 
970
1202
 
971
- /** @param {boolean} value */
972
- proto.supervisor.ContentStatusRequest.prototype.setWait = function(value) {
973
- jspb.Message.setProto3BooleanField(this, 1, value);
1203
+ /**
1204
+ * @param {boolean} value
1205
+ * @return {!proto.supervisor.IDEStatusResponse} returns this
1206
+ */
1207
+ proto.supervisor.IDEStatusResponse.prototype.setOk = function(value) {
1208
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * optional DesktopStatus desktop = 2;
1214
+ * @return {?proto.supervisor.IDEStatusResponse.DesktopStatus}
1215
+ */
1216
+ proto.supervisor.IDEStatusResponse.prototype.getDesktop = function() {
1217
+ return /** @type{?proto.supervisor.IDEStatusResponse.DesktopStatus} */ (
1218
+ jspb.Message.getWrapperField(this, proto.supervisor.IDEStatusResponse.DesktopStatus, 2));
1219
+ };
1220
+
1221
+
1222
+ /**
1223
+ * @param {?proto.supervisor.IDEStatusResponse.DesktopStatus|undefined} value
1224
+ * @return {!proto.supervisor.IDEStatusResponse} returns this
1225
+ */
1226
+ proto.supervisor.IDEStatusResponse.prototype.setDesktop = function(value) {
1227
+ return jspb.Message.setWrapperField(this, 2, value);
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * Clears the message field making it undefined.
1233
+ * @return {!proto.supervisor.IDEStatusResponse} returns this
1234
+ */
1235
+ proto.supervisor.IDEStatusResponse.prototype.clearDesktop = function() {
1236
+ return this.setDesktop(undefined);
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * Returns whether this field is set.
1242
+ * @return {boolean}
1243
+ */
1244
+ proto.supervisor.IDEStatusResponse.prototype.hasDesktop = function() {
1245
+ return jspb.Message.getField(this, 2) != null;
974
1246
  };
975
1247
 
976
1248
 
@@ -979,33 +1251,165 @@ proto.supervisor.ContentStatusRequest.prototype.setWait = function(value) {
979
1251
 
980
1252
  if (jspb.Message.GENERATE_TO_OBJECT) {
981
1253
  /**
982
- * Creates an object representation of this proto suitable for use in Soy templates.
1254
+ * Creates an object representation of this proto.
983
1255
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1256
+ * Optional fields that are not set will be set to undefined.
984
1257
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
985
1258
  * For the list of reserved names please see:
986
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
987
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
988
- * for transitional soy proto support: http://goto/soy-param-migration
1259
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1260
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1261
+ * JSPB instance for transitional soy proto support:
1262
+ * http://goto/soy-param-migration
989
1263
  * @return {!Object}
990
1264
  */
991
- proto.supervisor.ContentStatusResponse.prototype.toObject = function(opt_includeInstance) {
992
- return proto.supervisor.ContentStatusResponse.toObject(opt_includeInstance, this);
1265
+ proto.supervisor.ContentStatusRequest.prototype.toObject = function(opt_includeInstance) {
1266
+ return proto.supervisor.ContentStatusRequest.toObject(opt_includeInstance, this);
993
1267
  };
994
1268
 
995
1269
 
996
1270
  /**
997
1271
  * Static version of the {@see toObject} method.
998
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
999
- * instance for transitional soy proto support:
1272
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1273
+ * the JSPB instance for transitional soy proto support:
1000
1274
  * http://goto/soy-param-migration
1001
- * @param {!proto.supervisor.ContentStatusResponse} msg The msg instance to transform.
1275
+ * @param {!proto.supervisor.ContentStatusRequest} msg The msg instance to transform.
1002
1276
  * @return {!Object}
1003
1277
  * @suppress {unusedLocalVariables} f is only used for nested messages
1004
1278
  */
1005
- proto.supervisor.ContentStatusResponse.toObject = function(includeInstance, msg) {
1279
+ proto.supervisor.ContentStatusRequest.toObject = function(includeInstance, msg) {
1006
1280
  var f, obj = {
1007
- available: jspb.Message.getFieldWithDefault(msg, 1, false),
1008
- source: jspb.Message.getFieldWithDefault(msg, 2, 0)
1281
+ wait: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
1282
+ };
1283
+
1284
+ if (includeInstance) {
1285
+ obj.$jspbMessageInstance = msg;
1286
+ }
1287
+ return obj;
1288
+ };
1289
+ }
1290
+
1291
+
1292
+ /**
1293
+ * Deserializes binary data (in protobuf wire format).
1294
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1295
+ * @return {!proto.supervisor.ContentStatusRequest}
1296
+ */
1297
+ proto.supervisor.ContentStatusRequest.deserializeBinary = function(bytes) {
1298
+ var reader = new jspb.BinaryReader(bytes);
1299
+ var msg = new proto.supervisor.ContentStatusRequest;
1300
+ return proto.supervisor.ContentStatusRequest.deserializeBinaryFromReader(msg, reader);
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * Deserializes binary data (in protobuf wire format) from the
1306
+ * given reader into the given message object.
1307
+ * @param {!proto.supervisor.ContentStatusRequest} msg The message object to deserialize into.
1308
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1309
+ * @return {!proto.supervisor.ContentStatusRequest}
1310
+ */
1311
+ proto.supervisor.ContentStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
1312
+ while (reader.nextField()) {
1313
+ if (reader.isEndGroup()) {
1314
+ break;
1315
+ }
1316
+ var field = reader.getFieldNumber();
1317
+ switch (field) {
1318
+ case 1:
1319
+ var value = /** @type {boolean} */ (reader.readBool());
1320
+ msg.setWait(value);
1321
+ break;
1322
+ default:
1323
+ reader.skipField();
1324
+ break;
1325
+ }
1326
+ }
1327
+ return msg;
1328
+ };
1329
+
1330
+
1331
+ /**
1332
+ * Serializes the message to binary data (in protobuf wire format).
1333
+ * @return {!Uint8Array}
1334
+ */
1335
+ proto.supervisor.ContentStatusRequest.prototype.serializeBinary = function() {
1336
+ var writer = new jspb.BinaryWriter();
1337
+ proto.supervisor.ContentStatusRequest.serializeBinaryToWriter(this, writer);
1338
+ return writer.getResultBuffer();
1339
+ };
1340
+
1341
+
1342
+ /**
1343
+ * Serializes the given message to binary data (in protobuf wire
1344
+ * format), writing to the given BinaryWriter.
1345
+ * @param {!proto.supervisor.ContentStatusRequest} message
1346
+ * @param {!jspb.BinaryWriter} writer
1347
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1348
+ */
1349
+ proto.supervisor.ContentStatusRequest.serializeBinaryToWriter = function(message, writer) {
1350
+ var f = undefined;
1351
+ f = message.getWait();
1352
+ if (f) {
1353
+ writer.writeBool(
1354
+ 1,
1355
+ f
1356
+ );
1357
+ }
1358
+ };
1359
+
1360
+
1361
+ /**
1362
+ * optional bool wait = 1;
1363
+ * @return {boolean}
1364
+ */
1365
+ proto.supervisor.ContentStatusRequest.prototype.getWait = function() {
1366
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1367
+ };
1368
+
1369
+
1370
+ /**
1371
+ * @param {boolean} value
1372
+ * @return {!proto.supervisor.ContentStatusRequest} returns this
1373
+ */
1374
+ proto.supervisor.ContentStatusRequest.prototype.setWait = function(value) {
1375
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1376
+ };
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1383
+ /**
1384
+ * Creates an object representation of this proto.
1385
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1386
+ * Optional fields that are not set will be set to undefined.
1387
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1388
+ * For the list of reserved names please see:
1389
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1390
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1391
+ * JSPB instance for transitional soy proto support:
1392
+ * http://goto/soy-param-migration
1393
+ * @return {!Object}
1394
+ */
1395
+ proto.supervisor.ContentStatusResponse.prototype.toObject = function(opt_includeInstance) {
1396
+ return proto.supervisor.ContentStatusResponse.toObject(opt_includeInstance, this);
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * Static version of the {@see toObject} method.
1402
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1403
+ * the JSPB instance for transitional soy proto support:
1404
+ * http://goto/soy-param-migration
1405
+ * @param {!proto.supervisor.ContentStatusResponse} msg The msg instance to transform.
1406
+ * @return {!Object}
1407
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1408
+ */
1409
+ proto.supervisor.ContentStatusResponse.toObject = function(includeInstance, msg) {
1410
+ var f, obj = {
1411
+ available: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
1412
+ source: jspb.Message.getFieldWithDefault(msg, 2, 0)
1009
1413
  };
1010
1414
 
1011
1415
  if (includeInstance) {
@@ -1098,18 +1502,19 @@ proto.supervisor.ContentStatusResponse.serializeBinaryToWriter = function(messag
1098
1502
 
1099
1503
  /**
1100
1504
  * optional bool available = 1;
1101
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1102
- * You should avoid comparisons like {@code val === true/false} in those cases.
1103
1505
  * @return {boolean}
1104
1506
  */
1105
1507
  proto.supervisor.ContentStatusResponse.prototype.getAvailable = function() {
1106
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
1508
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1107
1509
  };
1108
1510
 
1109
1511
 
1110
- /** @param {boolean} value */
1512
+ /**
1513
+ * @param {boolean} value
1514
+ * @return {!proto.supervisor.ContentStatusResponse} returns this
1515
+ */
1111
1516
  proto.supervisor.ContentStatusResponse.prototype.setAvailable = function(value) {
1112
- jspb.Message.setProto3BooleanField(this, 1, value);
1517
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1113
1518
  };
1114
1519
 
1115
1520
 
@@ -1122,9 +1527,12 @@ proto.supervisor.ContentStatusResponse.prototype.getSource = function() {
1122
1527
  };
1123
1528
 
1124
1529
 
1125
- /** @param {!proto.supervisor.ContentSource} value */
1530
+ /**
1531
+ * @param {!proto.supervisor.ContentSource} value
1532
+ * @return {!proto.supervisor.ContentStatusResponse} returns this
1533
+ */
1126
1534
  proto.supervisor.ContentStatusResponse.prototype.setSource = function(value) {
1127
- jspb.Message.setProto3EnumField(this, 2, value);
1535
+ return jspb.Message.setProto3EnumField(this, 2, value);
1128
1536
  };
1129
1537
 
1130
1538
 
@@ -1133,13 +1541,15 @@ proto.supervisor.ContentStatusResponse.prototype.setSource = function(value) {
1133
1541
 
1134
1542
  if (jspb.Message.GENERATE_TO_OBJECT) {
1135
1543
  /**
1136
- * Creates an object representation of this proto suitable for use in Soy templates.
1544
+ * Creates an object representation of this proto.
1137
1545
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1546
+ * Optional fields that are not set will be set to undefined.
1138
1547
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1139
1548
  * For the list of reserved names please see:
1140
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1141
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1142
- * for transitional soy proto support: http://goto/soy-param-migration
1549
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1550
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1551
+ * JSPB instance for transitional soy proto support:
1552
+ * http://goto/soy-param-migration
1143
1553
  * @return {!Object}
1144
1554
  */
1145
1555
  proto.supervisor.BackupStatusRequest.prototype.toObject = function(opt_includeInstance) {
@@ -1149,8 +1559,8 @@ proto.supervisor.BackupStatusRequest.prototype.toObject = function(opt_includeIn
1149
1559
 
1150
1560
  /**
1151
1561
  * Static version of the {@see toObject} method.
1152
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1153
- * instance for transitional soy proto support:
1562
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1563
+ * the JSPB instance for transitional soy proto support:
1154
1564
  * http://goto/soy-param-migration
1155
1565
  * @param {!proto.supervisor.BackupStatusRequest} msg The msg instance to transform.
1156
1566
  * @return {!Object}
@@ -1232,13 +1642,15 @@ proto.supervisor.BackupStatusRequest.serializeBinaryToWriter = function(message,
1232
1642
 
1233
1643
  if (jspb.Message.GENERATE_TO_OBJECT) {
1234
1644
  /**
1235
- * Creates an object representation of this proto suitable for use in Soy templates.
1645
+ * Creates an object representation of this proto.
1236
1646
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1647
+ * Optional fields that are not set will be set to undefined.
1237
1648
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1238
1649
  * For the list of reserved names please see:
1239
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1240
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1241
- * for transitional soy proto support: http://goto/soy-param-migration
1650
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1651
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1652
+ * JSPB instance for transitional soy proto support:
1653
+ * http://goto/soy-param-migration
1242
1654
  * @return {!Object}
1243
1655
  */
1244
1656
  proto.supervisor.BackupStatusResponse.prototype.toObject = function(opt_includeInstance) {
@@ -1248,8 +1660,8 @@ proto.supervisor.BackupStatusResponse.prototype.toObject = function(opt_includeI
1248
1660
 
1249
1661
  /**
1250
1662
  * Static version of the {@see toObject} method.
1251
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1252
- * instance for transitional soy proto support:
1663
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1664
+ * the JSPB instance for transitional soy proto support:
1253
1665
  * http://goto/soy-param-migration
1254
1666
  * @param {!proto.supervisor.BackupStatusResponse} msg The msg instance to transform.
1255
1667
  * @return {!Object}
@@ -1257,7 +1669,7 @@ proto.supervisor.BackupStatusResponse.prototype.toObject = function(opt_includeI
1257
1669
  */
1258
1670
  proto.supervisor.BackupStatusResponse.toObject = function(includeInstance, msg) {
1259
1671
  var f, obj = {
1260
- canaryAvailable: jspb.Message.getFieldWithDefault(msg, 1, false)
1672
+ canaryAvailable: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
1261
1673
  };
1262
1674
 
1263
1675
  if (includeInstance) {
@@ -1339,18 +1751,19 @@ proto.supervisor.BackupStatusResponse.serializeBinaryToWriter = function(message
1339
1751
 
1340
1752
  /**
1341
1753
  * optional bool canary_available = 1;
1342
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1343
- * You should avoid comparisons like {@code val === true/false} in those cases.
1344
1754
  * @return {boolean}
1345
1755
  */
1346
1756
  proto.supervisor.BackupStatusResponse.prototype.getCanaryAvailable = function() {
1347
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
1757
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1348
1758
  };
1349
1759
 
1350
1760
 
1351
- /** @param {boolean} value */
1761
+ /**
1762
+ * @param {boolean} value
1763
+ * @return {!proto.supervisor.BackupStatusResponse} returns this
1764
+ */
1352
1765
  proto.supervisor.BackupStatusResponse.prototype.setCanaryAvailable = function(value) {
1353
- jspb.Message.setProto3BooleanField(this, 1, value);
1766
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1354
1767
  };
1355
1768
 
1356
1769
 
@@ -1359,13 +1772,15 @@ proto.supervisor.BackupStatusResponse.prototype.setCanaryAvailable = function(va
1359
1772
 
1360
1773
  if (jspb.Message.GENERATE_TO_OBJECT) {
1361
1774
  /**
1362
- * Creates an object representation of this proto suitable for use in Soy templates.
1775
+ * Creates an object representation of this proto.
1363
1776
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1777
+ * Optional fields that are not set will be set to undefined.
1364
1778
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1365
1779
  * For the list of reserved names please see:
1366
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1367
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1368
- * for transitional soy proto support: http://goto/soy-param-migration
1780
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1781
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1782
+ * JSPB instance for transitional soy proto support:
1783
+ * http://goto/soy-param-migration
1369
1784
  * @return {!Object}
1370
1785
  */
1371
1786
  proto.supervisor.PortsStatusRequest.prototype.toObject = function(opt_includeInstance) {
@@ -1375,8 +1790,8 @@ proto.supervisor.PortsStatusRequest.prototype.toObject = function(opt_includeIns
1375
1790
 
1376
1791
  /**
1377
1792
  * Static version of the {@see toObject} method.
1378
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1379
- * instance for transitional soy proto support:
1793
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1794
+ * the JSPB instance for transitional soy proto support:
1380
1795
  * http://goto/soy-param-migration
1381
1796
  * @param {!proto.supervisor.PortsStatusRequest} msg The msg instance to transform.
1382
1797
  * @return {!Object}
@@ -1384,7 +1799,7 @@ proto.supervisor.PortsStatusRequest.prototype.toObject = function(opt_includeIns
1384
1799
  */
1385
1800
  proto.supervisor.PortsStatusRequest.toObject = function(includeInstance, msg) {
1386
1801
  var f, obj = {
1387
- observe: jspb.Message.getFieldWithDefault(msg, 1, false)
1802
+ observe: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
1388
1803
  };
1389
1804
 
1390
1805
  if (includeInstance) {
@@ -1466,18 +1881,19 @@ proto.supervisor.PortsStatusRequest.serializeBinaryToWriter = function(message,
1466
1881
 
1467
1882
  /**
1468
1883
  * optional bool observe = 1;
1469
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1470
- * You should avoid comparisons like {@code val === true/false} in those cases.
1471
1884
  * @return {boolean}
1472
1885
  */
1473
1886
  proto.supervisor.PortsStatusRequest.prototype.getObserve = function() {
1474
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
1887
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1475
1888
  };
1476
1889
 
1477
1890
 
1478
- /** @param {boolean} value */
1891
+ /**
1892
+ * @param {boolean} value
1893
+ * @return {!proto.supervisor.PortsStatusRequest} returns this
1894
+ */
1479
1895
  proto.supervisor.PortsStatusRequest.prototype.setObserve = function(value) {
1480
- jspb.Message.setProto3BooleanField(this, 1, value);
1896
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1481
1897
  };
1482
1898
 
1483
1899
 
@@ -1493,13 +1909,15 @@ proto.supervisor.PortsStatusResponse.repeatedFields_ = [1];
1493
1909
 
1494
1910
  if (jspb.Message.GENERATE_TO_OBJECT) {
1495
1911
  /**
1496
- * Creates an object representation of this proto suitable for use in Soy templates.
1912
+ * Creates an object representation of this proto.
1497
1913
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1914
+ * Optional fields that are not set will be set to undefined.
1498
1915
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1499
1916
  * For the list of reserved names please see:
1500
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1501
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1502
- * for transitional soy proto support: http://goto/soy-param-migration
1917
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1918
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1919
+ * JSPB instance for transitional soy proto support:
1920
+ * http://goto/soy-param-migration
1503
1921
  * @return {!Object}
1504
1922
  */
1505
1923
  proto.supervisor.PortsStatusResponse.prototype.toObject = function(opt_includeInstance) {
@@ -1509,8 +1927,8 @@ proto.supervisor.PortsStatusResponse.prototype.toObject = function(opt_includeIn
1509
1927
 
1510
1928
  /**
1511
1929
  * Static version of the {@see toObject} method.
1512
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1513
- * instance for transitional soy proto support:
1930
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1931
+ * the JSPB instance for transitional soy proto support:
1514
1932
  * http://goto/soy-param-migration
1515
1933
  * @param {!proto.supervisor.PortsStatusResponse} msg The msg instance to transform.
1516
1934
  * @return {!Object}
@@ -1611,9 +2029,12 @@ proto.supervisor.PortsStatusResponse.prototype.getPortsList = function() {
1611
2029
  };
1612
2030
 
1613
2031
 
1614
- /** @param {!Array<!proto.supervisor.PortsStatus>} value */
2032
+ /**
2033
+ * @param {!Array<!proto.supervisor.PortsStatus>} value
2034
+ * @return {!proto.supervisor.PortsStatusResponse} returns this
2035
+ */
1615
2036
  proto.supervisor.PortsStatusResponse.prototype.setPortsList = function(value) {
1616
- jspb.Message.setRepeatedWrapperField(this, 1, value);
2037
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1617
2038
  };
1618
2039
 
1619
2040
 
@@ -1629,9 +2050,10 @@ proto.supervisor.PortsStatusResponse.prototype.addPorts = function(opt_value, op
1629
2050
 
1630
2051
  /**
1631
2052
  * Clears the list making it empty but non-null.
2053
+ * @return {!proto.supervisor.PortsStatusResponse} returns this
1632
2054
  */
1633
2055
  proto.supervisor.PortsStatusResponse.prototype.clearPortsList = function() {
1634
- this.setPortsList([]);
2056
+ return this.setPortsList([]);
1635
2057
  };
1636
2058
 
1637
2059
 
@@ -1640,13 +2062,15 @@ proto.supervisor.PortsStatusResponse.prototype.clearPortsList = function() {
1640
2062
 
1641
2063
  if (jspb.Message.GENERATE_TO_OBJECT) {
1642
2064
  /**
1643
- * Creates an object representation of this proto suitable for use in Soy templates.
2065
+ * Creates an object representation of this proto.
1644
2066
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
2067
+ * Optional fields that are not set will be set to undefined.
1645
2068
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1646
2069
  * For the list of reserved names please see:
1647
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1648
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1649
- * for transitional soy proto support: http://goto/soy-param-migration
2070
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2071
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2072
+ * JSPB instance for transitional soy proto support:
2073
+ * http://goto/soy-param-migration
1650
2074
  * @return {!Object}
1651
2075
  */
1652
2076
  proto.supervisor.ExposedPortInfo.prototype.toObject = function(opt_includeInstance) {
@@ -1656,8 +2080,8 @@ proto.supervisor.ExposedPortInfo.prototype.toObject = function(opt_includeInstan
1656
2080
 
1657
2081
  /**
1658
2082
  * Static version of the {@see toObject} method.
1659
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1660
- * instance for transitional soy proto support:
2083
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2084
+ * the JSPB instance for transitional soy proto support:
1661
2085
  * http://goto/soy-param-migration
1662
2086
  * @param {!proto.supervisor.ExposedPortInfo} msg The msg instance to transform.
1663
2087
  * @return {!Object}
@@ -1778,9 +2202,12 @@ proto.supervisor.ExposedPortInfo.prototype.getVisibility = function() {
1778
2202
  };
1779
2203
 
1780
2204
 
1781
- /** @param {!proto.supervisor.PortVisibility} value */
2205
+ /**
2206
+ * @param {!proto.supervisor.PortVisibility} value
2207
+ * @return {!proto.supervisor.ExposedPortInfo} returns this
2208
+ */
1782
2209
  proto.supervisor.ExposedPortInfo.prototype.setVisibility = function(value) {
1783
- jspb.Message.setProto3EnumField(this, 1, value);
2210
+ return jspb.Message.setProto3EnumField(this, 1, value);
1784
2211
  };
1785
2212
 
1786
2213
 
@@ -1793,9 +2220,12 @@ proto.supervisor.ExposedPortInfo.prototype.getUrl = function() {
1793
2220
  };
1794
2221
 
1795
2222
 
1796
- /** @param {string} value */
2223
+ /**
2224
+ * @param {string} value
2225
+ * @return {!proto.supervisor.ExposedPortInfo} returns this
2226
+ */
1797
2227
  proto.supervisor.ExposedPortInfo.prototype.setUrl = function(value) {
1798
- jspb.Message.setProto3StringField(this, 2, value);
2228
+ return jspb.Message.setProto3StringField(this, 2, value);
1799
2229
  };
1800
2230
 
1801
2231
 
@@ -1808,9 +2238,12 @@ proto.supervisor.ExposedPortInfo.prototype.getOnExposed = function() {
1808
2238
  };
1809
2239
 
1810
2240
 
1811
- /** @param {!proto.supervisor.OnPortExposedAction} value */
2241
+ /**
2242
+ * @param {!proto.supervisor.OnPortExposedAction} value
2243
+ * @return {!proto.supervisor.ExposedPortInfo} returns this
2244
+ */
1812
2245
  proto.supervisor.ExposedPortInfo.prototype.setOnExposed = function(value) {
1813
- jspb.Message.setProto3EnumField(this, 3, value);
2246
+ return jspb.Message.setProto3EnumField(this, 3, value);
1814
2247
  };
1815
2248
 
1816
2249
 
@@ -1819,35 +2252,36 @@ proto.supervisor.ExposedPortInfo.prototype.setOnExposed = function(value) {
1819
2252
 
1820
2253
  if (jspb.Message.GENERATE_TO_OBJECT) {
1821
2254
  /**
1822
- * Creates an object representation of this proto suitable for use in Soy templates.
2255
+ * Creates an object representation of this proto.
1823
2256
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
2257
+ * Optional fields that are not set will be set to undefined.
1824
2258
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1825
2259
  * For the list of reserved names please see:
1826
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1827
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1828
- * for transitional soy proto support: http://goto/soy-param-migration
2260
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2261
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2262
+ * JSPB instance for transitional soy proto support:
2263
+ * http://goto/soy-param-migration
1829
2264
  * @return {!Object}
1830
2265
  */
1831
- proto.supervisor.PortsStatus.prototype.toObject = function(opt_includeInstance) {
1832
- return proto.supervisor.PortsStatus.toObject(opt_includeInstance, this);
2266
+ proto.supervisor.TunneledPortInfo.prototype.toObject = function(opt_includeInstance) {
2267
+ return proto.supervisor.TunneledPortInfo.toObject(opt_includeInstance, this);
1833
2268
  };
1834
2269
 
1835
2270
 
1836
2271
  /**
1837
2272
  * Static version of the {@see toObject} method.
1838
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1839
- * instance for transitional soy proto support:
2273
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2274
+ * the JSPB instance for transitional soy proto support:
1840
2275
  * http://goto/soy-param-migration
1841
- * @param {!proto.supervisor.PortsStatus} msg The msg instance to transform.
2276
+ * @param {!proto.supervisor.TunneledPortInfo} msg The msg instance to transform.
1842
2277
  * @return {!Object}
1843
2278
  * @suppress {unusedLocalVariables} f is only used for nested messages
1844
2279
  */
1845
- proto.supervisor.PortsStatus.toObject = function(includeInstance, msg) {
2280
+ proto.supervisor.TunneledPortInfo.toObject = function(includeInstance, msg) {
1846
2281
  var f, obj = {
1847
- localPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
1848
- globalPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
1849
- served: jspb.Message.getFieldWithDefault(msg, 4, false),
1850
- exposed: (f = msg.getExposed()) && proto.supervisor.ExposedPortInfo.toObject(includeInstance, f)
2282
+ targetPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
2283
+ visibility: jspb.Message.getFieldWithDefault(msg, 2, 0),
2284
+ clientsMap: (f = msg.getClientsMap()) ? f.toObject(includeInstance, undefined) : []
1851
2285
  };
1852
2286
 
1853
2287
  if (includeInstance) {
@@ -1861,23 +2295,23 @@ proto.supervisor.PortsStatus.toObject = function(includeInstance, msg) {
1861
2295
  /**
1862
2296
  * Deserializes binary data (in protobuf wire format).
1863
2297
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1864
- * @return {!proto.supervisor.PortsStatus}
2298
+ * @return {!proto.supervisor.TunneledPortInfo}
1865
2299
  */
1866
- proto.supervisor.PortsStatus.deserializeBinary = function(bytes) {
2300
+ proto.supervisor.TunneledPortInfo.deserializeBinary = function(bytes) {
1867
2301
  var reader = new jspb.BinaryReader(bytes);
1868
- var msg = new proto.supervisor.PortsStatus;
1869
- return proto.supervisor.PortsStatus.deserializeBinaryFromReader(msg, reader);
2302
+ var msg = new proto.supervisor.TunneledPortInfo;
2303
+ return proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader(msg, reader);
1870
2304
  };
1871
2305
 
1872
2306
 
1873
2307
  /**
1874
2308
  * Deserializes binary data (in protobuf wire format) from the
1875
2309
  * given reader into the given message object.
1876
- * @param {!proto.supervisor.PortsStatus} msg The message object to deserialize into.
2310
+ * @param {!proto.supervisor.TunneledPortInfo} msg The message object to deserialize into.
1877
2311
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1878
- * @return {!proto.supervisor.PortsStatus}
2312
+ * @return {!proto.supervisor.TunneledPortInfo}
1879
2313
  */
1880
- proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader) {
2314
+ proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader = function(msg, reader) {
1881
2315
  while (reader.nextField()) {
1882
2316
  if (reader.isEndGroup()) {
1883
2317
  break;
@@ -1886,20 +2320,17 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
1886
2320
  switch (field) {
1887
2321
  case 1:
1888
2322
  var value = /** @type {number} */ (reader.readUint32());
1889
- msg.setLocalPort(value);
2323
+ msg.setTargetPort(value);
1890
2324
  break;
1891
2325
  case 2:
1892
- var value = /** @type {number} */ (reader.readUint32());
1893
- msg.setGlobalPort(value);
1894
- break;
1895
- case 4:
1896
- var value = /** @type {boolean} */ (reader.readBool());
1897
- msg.setServed(value);
2326
+ var value = /** @type {!proto.supervisor.TunnelVisiblity} */ (reader.readEnum());
2327
+ msg.setVisibility(value);
1898
2328
  break;
1899
- case 5:
1900
- var value = new proto.supervisor.ExposedPortInfo;
1901
- reader.readMessage(value,proto.supervisor.ExposedPortInfo.deserializeBinaryFromReader);
1902
- msg.setExposed(value);
2329
+ case 3:
2330
+ var value = msg.getClientsMap();
2331
+ reader.readMessage(value, function(message, reader) {
2332
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint32, null, "", 0);
2333
+ });
1903
2334
  break;
1904
2335
  default:
1905
2336
  reader.skipField();
@@ -1914,9 +2345,9 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
1914
2345
  * Serializes the message to binary data (in protobuf wire format).
1915
2346
  * @return {!Uint8Array}
1916
2347
  */
1917
- proto.supervisor.PortsStatus.prototype.serializeBinary = function() {
2348
+ proto.supervisor.TunneledPortInfo.prototype.serializeBinary = function() {
1918
2349
  var writer = new jspb.BinaryWriter();
1919
- proto.supervisor.PortsStatus.serializeBinaryToWriter(this, writer);
2350
+ proto.supervisor.TunneledPortInfo.serializeBinaryToWriter(this, writer);
1920
2351
  return writer.getResultBuffer();
1921
2352
  };
1922
2353
 
@@ -1924,122 +2355,89 @@ proto.supervisor.PortsStatus.prototype.serializeBinary = function() {
1924
2355
  /**
1925
2356
  * Serializes the given message to binary data (in protobuf wire
1926
2357
  * format), writing to the given BinaryWriter.
1927
- * @param {!proto.supervisor.PortsStatus} message
2358
+ * @param {!proto.supervisor.TunneledPortInfo} message
1928
2359
  * @param {!jspb.BinaryWriter} writer
1929
2360
  * @suppress {unusedLocalVariables} f is only used for nested messages
1930
2361
  */
1931
- proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer) {
2362
+ proto.supervisor.TunneledPortInfo.serializeBinaryToWriter = function(message, writer) {
1932
2363
  var f = undefined;
1933
- f = message.getLocalPort();
2364
+ f = message.getTargetPort();
1934
2365
  if (f !== 0) {
1935
2366
  writer.writeUint32(
1936
2367
  1,
1937
2368
  f
1938
2369
  );
1939
2370
  }
1940
- f = message.getGlobalPort();
1941
- if (f !== 0) {
1942
- writer.writeUint32(
2371
+ f = message.getVisibility();
2372
+ if (f !== 0.0) {
2373
+ writer.writeEnum(
1943
2374
  2,
1944
2375
  f
1945
2376
  );
1946
2377
  }
1947
- f = message.getServed();
1948
- if (f) {
1949
- writer.writeBool(
1950
- 4,
1951
- f
1952
- );
1953
- }
1954
- f = message.getExposed();
1955
- if (f != null) {
1956
- writer.writeMessage(
1957
- 5,
1958
- f,
1959
- proto.supervisor.ExposedPortInfo.serializeBinaryToWriter
1960
- );
2378
+ f = message.getClientsMap(true);
2379
+ if (f && f.getLength() > 0) {
2380
+ f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint32);
1961
2381
  }
1962
2382
  };
1963
2383
 
1964
2384
 
1965
2385
  /**
1966
- * optional uint32 local_port = 1;
2386
+ * optional uint32 target_port = 1;
1967
2387
  * @return {number}
1968
2388
  */
1969
- proto.supervisor.PortsStatus.prototype.getLocalPort = function() {
2389
+ proto.supervisor.TunneledPortInfo.prototype.getTargetPort = function() {
1970
2390
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1971
2391
  };
1972
2392
 
1973
2393
 
1974
- /** @param {number} value */
1975
- proto.supervisor.PortsStatus.prototype.setLocalPort = function(value) {
1976
- jspb.Message.setProto3IntField(this, 1, value);
1977
- };
1978
-
1979
-
1980
2394
  /**
1981
- * optional uint32 global_port = 2;
1982
- * @return {number}
2395
+ * @param {number} value
2396
+ * @return {!proto.supervisor.TunneledPortInfo} returns this
1983
2397
  */
1984
- proto.supervisor.PortsStatus.prototype.getGlobalPort = function() {
1985
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1986
- };
1987
-
1988
-
1989
- /** @param {number} value */
1990
- proto.supervisor.PortsStatus.prototype.setGlobalPort = function(value) {
1991
- jspb.Message.setProto3IntField(this, 2, value);
2398
+ proto.supervisor.TunneledPortInfo.prototype.setTargetPort = function(value) {
2399
+ return jspb.Message.setProto3IntField(this, 1, value);
1992
2400
  };
1993
2401
 
1994
2402
 
1995
2403
  /**
1996
- * optional bool served = 4;
1997
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1998
- * You should avoid comparisons like {@code val === true/false} in those cases.
1999
- * @return {boolean}
2404
+ * optional TunnelVisiblity visibility = 2;
2405
+ * @return {!proto.supervisor.TunnelVisiblity}
2000
2406
  */
2001
- proto.supervisor.PortsStatus.prototype.getServed = function() {
2002
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false));
2003
- };
2004
-
2005
-
2006
- /** @param {boolean} value */
2007
- proto.supervisor.PortsStatus.prototype.setServed = function(value) {
2008
- jspb.Message.setProto3BooleanField(this, 4, value);
2407
+ proto.supervisor.TunneledPortInfo.prototype.getVisibility = function() {
2408
+ return /** @type {!proto.supervisor.TunnelVisiblity} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2009
2409
  };
2010
2410
 
2011
2411
 
2012
2412
  /**
2013
- * optional ExposedPortInfo exposed = 5;
2014
- * @return {?proto.supervisor.ExposedPortInfo}
2413
+ * @param {!proto.supervisor.TunnelVisiblity} value
2414
+ * @return {!proto.supervisor.TunneledPortInfo} returns this
2015
2415
  */
2016
- proto.supervisor.PortsStatus.prototype.getExposed = function() {
2017
- return /** @type{?proto.supervisor.ExposedPortInfo} */ (
2018
- jspb.Message.getWrapperField(this, proto.supervisor.ExposedPortInfo, 5));
2019
- };
2020
-
2021
-
2022
- /** @param {?proto.supervisor.ExposedPortInfo|undefined} value */
2023
- proto.supervisor.PortsStatus.prototype.setExposed = function(value) {
2024
- jspb.Message.setWrapperField(this, 5, value);
2416
+ proto.supervisor.TunneledPortInfo.prototype.setVisibility = function(value) {
2417
+ return jspb.Message.setProto3EnumField(this, 2, value);
2025
2418
  };
2026
2419
 
2027
2420
 
2028
2421
  /**
2029
- * Clears the message field making it undefined.
2422
+ * map<string, uint32> clients = 3;
2423
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2424
+ * empty, instead returning `undefined`
2425
+ * @return {!jspb.Map<string,number>}
2030
2426
  */
2031
- proto.supervisor.PortsStatus.prototype.clearExposed = function() {
2032
- this.setExposed(undefined);
2427
+ proto.supervisor.TunneledPortInfo.prototype.getClientsMap = function(opt_noLazyCreate) {
2428
+ return /** @type {!jspb.Map<string,number>} */ (
2429
+ jspb.Message.getMapField(this, 3, opt_noLazyCreate,
2430
+ null));
2033
2431
  };
2034
2432
 
2035
2433
 
2036
2434
  /**
2037
- * Returns whether this field is set.
2038
- * @return {boolean}
2435
+ * Clears values from the map. The map will be non-null.
2436
+ * @return {!proto.supervisor.TunneledPortInfo} returns this
2039
2437
  */
2040
- proto.supervisor.PortsStatus.prototype.hasExposed = function() {
2041
- return jspb.Message.getField(this, 5) != null;
2042
- };
2438
+ proto.supervisor.TunneledPortInfo.prototype.clearClientsMap = function() {
2439
+ this.getClientsMap().clear();
2440
+ return this;};
2043
2441
 
2044
2442
 
2045
2443
 
@@ -2047,32 +2445,40 @@ proto.supervisor.PortsStatus.prototype.hasExposed = function() {
2047
2445
 
2048
2446
  if (jspb.Message.GENERATE_TO_OBJECT) {
2049
2447
  /**
2050
- * Creates an object representation of this proto suitable for use in Soy templates.
2448
+ * Creates an object representation of this proto.
2051
2449
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
2450
+ * Optional fields that are not set will be set to undefined.
2052
2451
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2053
2452
  * For the list of reserved names please see:
2054
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2055
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2056
- * for transitional soy proto support: http://goto/soy-param-migration
2453
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2454
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2455
+ * JSPB instance for transitional soy proto support:
2456
+ * http://goto/soy-param-migration
2057
2457
  * @return {!Object}
2058
2458
  */
2059
- proto.supervisor.TasksStatusRequest.prototype.toObject = function(opt_includeInstance) {
2060
- return proto.supervisor.TasksStatusRequest.toObject(opt_includeInstance, this);
2459
+ proto.supervisor.PortsStatus.prototype.toObject = function(opt_includeInstance) {
2460
+ return proto.supervisor.PortsStatus.toObject(opt_includeInstance, this);
2061
2461
  };
2062
2462
 
2063
2463
 
2064
2464
  /**
2065
2465
  * Static version of the {@see toObject} method.
2066
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2067
- * instance for transitional soy proto support:
2466
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2467
+ * the JSPB instance for transitional soy proto support:
2068
2468
  * http://goto/soy-param-migration
2069
- * @param {!proto.supervisor.TasksStatusRequest} msg The msg instance to transform.
2469
+ * @param {!proto.supervisor.PortsStatus} msg The msg instance to transform.
2070
2470
  * @return {!Object}
2071
2471
  * @suppress {unusedLocalVariables} f is only used for nested messages
2072
2472
  */
2073
- proto.supervisor.TasksStatusRequest.toObject = function(includeInstance, msg) {
2473
+ proto.supervisor.PortsStatus.toObject = function(includeInstance, msg) {
2074
2474
  var f, obj = {
2075
- observe: jspb.Message.getFieldWithDefault(msg, 1, false)
2475
+ localPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
2476
+ served: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
2477
+ exposed: (f = msg.getExposed()) && proto.supervisor.ExposedPortInfo.toObject(includeInstance, f),
2478
+ autoExposure: jspb.Message.getFieldWithDefault(msg, 7, 0),
2479
+ tunneled: (f = msg.getTunneled()) && proto.supervisor.TunneledPortInfo.toObject(includeInstance, f),
2480
+ description: jspb.Message.getFieldWithDefault(msg, 8, ""),
2481
+ name: jspb.Message.getFieldWithDefault(msg, 9, "")
2076
2482
  };
2077
2483
 
2078
2484
  if (includeInstance) {
@@ -2086,23 +2492,23 @@ proto.supervisor.TasksStatusRequest.toObject = function(includeInstance, msg) {
2086
2492
  /**
2087
2493
  * Deserializes binary data (in protobuf wire format).
2088
2494
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2089
- * @return {!proto.supervisor.TasksStatusRequest}
2495
+ * @return {!proto.supervisor.PortsStatus}
2090
2496
  */
2091
- proto.supervisor.TasksStatusRequest.deserializeBinary = function(bytes) {
2497
+ proto.supervisor.PortsStatus.deserializeBinary = function(bytes) {
2092
2498
  var reader = new jspb.BinaryReader(bytes);
2093
- var msg = new proto.supervisor.TasksStatusRequest;
2094
- return proto.supervisor.TasksStatusRequest.deserializeBinaryFromReader(msg, reader);
2499
+ var msg = new proto.supervisor.PortsStatus;
2500
+ return proto.supervisor.PortsStatus.deserializeBinaryFromReader(msg, reader);
2095
2501
  };
2096
2502
 
2097
2503
 
2098
2504
  /**
2099
2505
  * Deserializes binary data (in protobuf wire format) from the
2100
2506
  * given reader into the given message object.
2101
- * @param {!proto.supervisor.TasksStatusRequest} msg The message object to deserialize into.
2507
+ * @param {!proto.supervisor.PortsStatus} msg The message object to deserialize into.
2102
2508
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2103
- * @return {!proto.supervisor.TasksStatusRequest}
2509
+ * @return {!proto.supervisor.PortsStatus}
2104
2510
  */
2105
- proto.supervisor.TasksStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
2511
+ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader) {
2106
2512
  while (reader.nextField()) {
2107
2513
  if (reader.isEndGroup()) {
2108
2514
  break;
@@ -2110,13 +2516,39 @@ proto.supervisor.TasksStatusRequest.deserializeBinaryFromReader = function(msg,
2110
2516
  var field = reader.getFieldNumber();
2111
2517
  switch (field) {
2112
2518
  case 1:
2113
- var value = /** @type {boolean} */ (reader.readBool());
2114
- msg.setObserve(value);
2519
+ var value = /** @type {number} */ (reader.readUint32());
2520
+ msg.setLocalPort(value);
2115
2521
  break;
2116
- default:
2117
- reader.skipField();
2522
+ case 4:
2523
+ var value = /** @type {boolean} */ (reader.readBool());
2524
+ msg.setServed(value);
2118
2525
  break;
2119
- }
2526
+ case 5:
2527
+ var value = new proto.supervisor.ExposedPortInfo;
2528
+ reader.readMessage(value,proto.supervisor.ExposedPortInfo.deserializeBinaryFromReader);
2529
+ msg.setExposed(value);
2530
+ break;
2531
+ case 7:
2532
+ var value = /** @type {!proto.supervisor.PortAutoExposure} */ (reader.readEnum());
2533
+ msg.setAutoExposure(value);
2534
+ break;
2535
+ case 6:
2536
+ var value = new proto.supervisor.TunneledPortInfo;
2537
+ reader.readMessage(value,proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader);
2538
+ msg.setTunneled(value);
2539
+ break;
2540
+ case 8:
2541
+ var value = /** @type {string} */ (reader.readString());
2542
+ msg.setDescription(value);
2543
+ break;
2544
+ case 9:
2545
+ var value = /** @type {string} */ (reader.readString());
2546
+ msg.setName(value);
2547
+ break;
2548
+ default:
2549
+ reader.skipField();
2550
+ break;
2551
+ }
2120
2552
  }
2121
2553
  return msg;
2122
2554
  };
@@ -2126,9 +2558,9 @@ proto.supervisor.TasksStatusRequest.deserializeBinaryFromReader = function(msg,
2126
2558
  * Serializes the message to binary data (in protobuf wire format).
2127
2559
  * @return {!Uint8Array}
2128
2560
  */
2129
- proto.supervisor.TasksStatusRequest.prototype.serializeBinary = function() {
2561
+ proto.supervisor.PortsStatus.prototype.serializeBinary = function() {
2130
2562
  var writer = new jspb.BinaryWriter();
2131
- proto.supervisor.TasksStatusRequest.serializeBinaryToWriter(this, writer);
2563
+ proto.supervisor.PortsStatus.serializeBinaryToWriter(this, writer);
2132
2564
  return writer.getResultBuffer();
2133
2565
  };
2134
2566
 
@@ -2136,16 +2568,60 @@ proto.supervisor.TasksStatusRequest.prototype.serializeBinary = function() {
2136
2568
  /**
2137
2569
  * Serializes the given message to binary data (in protobuf wire
2138
2570
  * format), writing to the given BinaryWriter.
2139
- * @param {!proto.supervisor.TasksStatusRequest} message
2571
+ * @param {!proto.supervisor.PortsStatus} message
2140
2572
  * @param {!jspb.BinaryWriter} writer
2141
2573
  * @suppress {unusedLocalVariables} f is only used for nested messages
2142
2574
  */
2143
- proto.supervisor.TasksStatusRequest.serializeBinaryToWriter = function(message, writer) {
2575
+ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer) {
2144
2576
  var f = undefined;
2145
- f = message.getObserve();
2577
+ f = message.getLocalPort();
2578
+ if (f !== 0) {
2579
+ writer.writeUint32(
2580
+ 1,
2581
+ f
2582
+ );
2583
+ }
2584
+ f = message.getServed();
2146
2585
  if (f) {
2147
2586
  writer.writeBool(
2148
- 1,
2587
+ 4,
2588
+ f
2589
+ );
2590
+ }
2591
+ f = message.getExposed();
2592
+ if (f != null) {
2593
+ writer.writeMessage(
2594
+ 5,
2595
+ f,
2596
+ proto.supervisor.ExposedPortInfo.serializeBinaryToWriter
2597
+ );
2598
+ }
2599
+ f = message.getAutoExposure();
2600
+ if (f !== 0.0) {
2601
+ writer.writeEnum(
2602
+ 7,
2603
+ f
2604
+ );
2605
+ }
2606
+ f = message.getTunneled();
2607
+ if (f != null) {
2608
+ writer.writeMessage(
2609
+ 6,
2610
+ f,
2611
+ proto.supervisor.TunneledPortInfo.serializeBinaryToWriter
2612
+ );
2613
+ }
2614
+ f = message.getDescription();
2615
+ if (f.length > 0) {
2616
+ writer.writeString(
2617
+ 8,
2618
+ f
2619
+ );
2620
+ }
2621
+ f = message.getName();
2622
+ if (f.length > 0) {
2623
+ writer.writeString(
2624
+ 9,
2149
2625
  f
2150
2626
  );
2151
2627
  }
@@ -2153,61 +2629,923 @@ proto.supervisor.TasksStatusRequest.serializeBinaryToWriter = function(message,
2153
2629
 
2154
2630
 
2155
2631
  /**
2156
- * optional bool observe = 1;
2157
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2158
- * You should avoid comparisons like {@code val === true/false} in those cases.
2159
- * @return {boolean}
2632
+ * optional uint32 local_port = 1;
2633
+ * @return {number}
2634
+ */
2635
+ proto.supervisor.PortsStatus.prototype.getLocalPort = function() {
2636
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2637
+ };
2638
+
2639
+
2640
+ /**
2641
+ * @param {number} value
2642
+ * @return {!proto.supervisor.PortsStatus} returns this
2643
+ */
2644
+ proto.supervisor.PortsStatus.prototype.setLocalPort = function(value) {
2645
+ return jspb.Message.setProto3IntField(this, 1, value);
2646
+ };
2647
+
2648
+
2649
+ /**
2650
+ * optional bool served = 4;
2651
+ * @return {boolean}
2652
+ */
2653
+ proto.supervisor.PortsStatus.prototype.getServed = function() {
2654
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2655
+ };
2656
+
2657
+
2658
+ /**
2659
+ * @param {boolean} value
2660
+ * @return {!proto.supervisor.PortsStatus} returns this
2661
+ */
2662
+ proto.supervisor.PortsStatus.prototype.setServed = function(value) {
2663
+ return jspb.Message.setProto3BooleanField(this, 4, value);
2664
+ };
2665
+
2666
+
2667
+ /**
2668
+ * optional ExposedPortInfo exposed = 5;
2669
+ * @return {?proto.supervisor.ExposedPortInfo}
2670
+ */
2671
+ proto.supervisor.PortsStatus.prototype.getExposed = function() {
2672
+ return /** @type{?proto.supervisor.ExposedPortInfo} */ (
2673
+ jspb.Message.getWrapperField(this, proto.supervisor.ExposedPortInfo, 5));
2674
+ };
2675
+
2676
+
2677
+ /**
2678
+ * @param {?proto.supervisor.ExposedPortInfo|undefined} value
2679
+ * @return {!proto.supervisor.PortsStatus} returns this
2680
+ */
2681
+ proto.supervisor.PortsStatus.prototype.setExposed = function(value) {
2682
+ return jspb.Message.setWrapperField(this, 5, value);
2683
+ };
2684
+
2685
+
2686
+ /**
2687
+ * Clears the message field making it undefined.
2688
+ * @return {!proto.supervisor.PortsStatus} returns this
2689
+ */
2690
+ proto.supervisor.PortsStatus.prototype.clearExposed = function() {
2691
+ return this.setExposed(undefined);
2692
+ };
2693
+
2694
+
2695
+ /**
2696
+ * Returns whether this field is set.
2697
+ * @return {boolean}
2698
+ */
2699
+ proto.supervisor.PortsStatus.prototype.hasExposed = function() {
2700
+ return jspb.Message.getField(this, 5) != null;
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * optional PortAutoExposure auto_exposure = 7;
2706
+ * @return {!proto.supervisor.PortAutoExposure}
2707
+ */
2708
+ proto.supervisor.PortsStatus.prototype.getAutoExposure = function() {
2709
+ return /** @type {!proto.supervisor.PortAutoExposure} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2710
+ };
2711
+
2712
+
2713
+ /**
2714
+ * @param {!proto.supervisor.PortAutoExposure} value
2715
+ * @return {!proto.supervisor.PortsStatus} returns this
2716
+ */
2717
+ proto.supervisor.PortsStatus.prototype.setAutoExposure = function(value) {
2718
+ return jspb.Message.setProto3EnumField(this, 7, value);
2719
+ };
2720
+
2721
+
2722
+ /**
2723
+ * optional TunneledPortInfo tunneled = 6;
2724
+ * @return {?proto.supervisor.TunneledPortInfo}
2725
+ */
2726
+ proto.supervisor.PortsStatus.prototype.getTunneled = function() {
2727
+ return /** @type{?proto.supervisor.TunneledPortInfo} */ (
2728
+ jspb.Message.getWrapperField(this, proto.supervisor.TunneledPortInfo, 6));
2729
+ };
2730
+
2731
+
2732
+ /**
2733
+ * @param {?proto.supervisor.TunneledPortInfo|undefined} value
2734
+ * @return {!proto.supervisor.PortsStatus} returns this
2735
+ */
2736
+ proto.supervisor.PortsStatus.prototype.setTunneled = function(value) {
2737
+ return jspb.Message.setWrapperField(this, 6, value);
2738
+ };
2739
+
2740
+
2741
+ /**
2742
+ * Clears the message field making it undefined.
2743
+ * @return {!proto.supervisor.PortsStatus} returns this
2744
+ */
2745
+ proto.supervisor.PortsStatus.prototype.clearTunneled = function() {
2746
+ return this.setTunneled(undefined);
2747
+ };
2748
+
2749
+
2750
+ /**
2751
+ * Returns whether this field is set.
2752
+ * @return {boolean}
2753
+ */
2754
+ proto.supervisor.PortsStatus.prototype.hasTunneled = function() {
2755
+ return jspb.Message.getField(this, 6) != null;
2756
+ };
2757
+
2758
+
2759
+ /**
2760
+ * optional string description = 8;
2761
+ * @return {string}
2762
+ */
2763
+ proto.supervisor.PortsStatus.prototype.getDescription = function() {
2764
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2765
+ };
2766
+
2767
+
2768
+ /**
2769
+ * @param {string} value
2770
+ * @return {!proto.supervisor.PortsStatus} returns this
2771
+ */
2772
+ proto.supervisor.PortsStatus.prototype.setDescription = function(value) {
2773
+ return jspb.Message.setProto3StringField(this, 8, value);
2774
+ };
2775
+
2776
+
2777
+ /**
2778
+ * optional string name = 9;
2779
+ * @return {string}
2780
+ */
2781
+ proto.supervisor.PortsStatus.prototype.getName = function() {
2782
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2783
+ };
2784
+
2785
+
2786
+ /**
2787
+ * @param {string} value
2788
+ * @return {!proto.supervisor.PortsStatus} returns this
2789
+ */
2790
+ proto.supervisor.PortsStatus.prototype.setName = function(value) {
2791
+ return jspb.Message.setProto3StringField(this, 9, value);
2792
+ };
2793
+
2794
+
2795
+
2796
+
2797
+
2798
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2799
+ /**
2800
+ * Creates an object representation of this proto.
2801
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2802
+ * Optional fields that are not set will be set to undefined.
2803
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2804
+ * For the list of reserved names please see:
2805
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2806
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2807
+ * JSPB instance for transitional soy proto support:
2808
+ * http://goto/soy-param-migration
2809
+ * @return {!Object}
2810
+ */
2811
+ proto.supervisor.TasksStatusRequest.prototype.toObject = function(opt_includeInstance) {
2812
+ return proto.supervisor.TasksStatusRequest.toObject(opt_includeInstance, this);
2813
+ };
2814
+
2815
+
2816
+ /**
2817
+ * Static version of the {@see toObject} method.
2818
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2819
+ * the JSPB instance for transitional soy proto support:
2820
+ * http://goto/soy-param-migration
2821
+ * @param {!proto.supervisor.TasksStatusRequest} msg The msg instance to transform.
2822
+ * @return {!Object}
2823
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2824
+ */
2825
+ proto.supervisor.TasksStatusRequest.toObject = function(includeInstance, msg) {
2826
+ var f, obj = {
2827
+ observe: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
2828
+ };
2829
+
2830
+ if (includeInstance) {
2831
+ obj.$jspbMessageInstance = msg;
2832
+ }
2833
+ return obj;
2834
+ };
2835
+ }
2836
+
2837
+
2838
+ /**
2839
+ * Deserializes binary data (in protobuf wire format).
2840
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2841
+ * @return {!proto.supervisor.TasksStatusRequest}
2842
+ */
2843
+ proto.supervisor.TasksStatusRequest.deserializeBinary = function(bytes) {
2844
+ var reader = new jspb.BinaryReader(bytes);
2845
+ var msg = new proto.supervisor.TasksStatusRequest;
2846
+ return proto.supervisor.TasksStatusRequest.deserializeBinaryFromReader(msg, reader);
2847
+ };
2848
+
2849
+
2850
+ /**
2851
+ * Deserializes binary data (in protobuf wire format) from the
2852
+ * given reader into the given message object.
2853
+ * @param {!proto.supervisor.TasksStatusRequest} msg The message object to deserialize into.
2854
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2855
+ * @return {!proto.supervisor.TasksStatusRequest}
2856
+ */
2857
+ proto.supervisor.TasksStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
2858
+ while (reader.nextField()) {
2859
+ if (reader.isEndGroup()) {
2860
+ break;
2861
+ }
2862
+ var field = reader.getFieldNumber();
2863
+ switch (field) {
2864
+ case 1:
2865
+ var value = /** @type {boolean} */ (reader.readBool());
2866
+ msg.setObserve(value);
2867
+ break;
2868
+ default:
2869
+ reader.skipField();
2870
+ break;
2871
+ }
2872
+ }
2873
+ return msg;
2874
+ };
2875
+
2876
+
2877
+ /**
2878
+ * Serializes the message to binary data (in protobuf wire format).
2879
+ * @return {!Uint8Array}
2880
+ */
2881
+ proto.supervisor.TasksStatusRequest.prototype.serializeBinary = function() {
2882
+ var writer = new jspb.BinaryWriter();
2883
+ proto.supervisor.TasksStatusRequest.serializeBinaryToWriter(this, writer);
2884
+ return writer.getResultBuffer();
2885
+ };
2886
+
2887
+
2888
+ /**
2889
+ * Serializes the given message to binary data (in protobuf wire
2890
+ * format), writing to the given BinaryWriter.
2891
+ * @param {!proto.supervisor.TasksStatusRequest} message
2892
+ * @param {!jspb.BinaryWriter} writer
2893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2894
+ */
2895
+ proto.supervisor.TasksStatusRequest.serializeBinaryToWriter = function(message, writer) {
2896
+ var f = undefined;
2897
+ f = message.getObserve();
2898
+ if (f) {
2899
+ writer.writeBool(
2900
+ 1,
2901
+ f
2902
+ );
2903
+ }
2904
+ };
2905
+
2906
+
2907
+ /**
2908
+ * optional bool observe = 1;
2909
+ * @return {boolean}
2910
+ */
2911
+ proto.supervisor.TasksStatusRequest.prototype.getObserve = function() {
2912
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
2913
+ };
2914
+
2915
+
2916
+ /**
2917
+ * @param {boolean} value
2918
+ * @return {!proto.supervisor.TasksStatusRequest} returns this
2919
+ */
2920
+ proto.supervisor.TasksStatusRequest.prototype.setObserve = function(value) {
2921
+ return jspb.Message.setProto3BooleanField(this, 1, value);
2922
+ };
2923
+
2924
+
2925
+
2926
+ /**
2927
+ * List of repeated fields within this message type.
2928
+ * @private {!Array<number>}
2929
+ * @const
2930
+ */
2931
+ proto.supervisor.TasksStatusResponse.repeatedFields_ = [1];
2932
+
2933
+
2934
+
2935
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2936
+ /**
2937
+ * Creates an object representation of this proto.
2938
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2939
+ * Optional fields that are not set will be set to undefined.
2940
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2941
+ * For the list of reserved names please see:
2942
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2943
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2944
+ * JSPB instance for transitional soy proto support:
2945
+ * http://goto/soy-param-migration
2946
+ * @return {!Object}
2947
+ */
2948
+ proto.supervisor.TasksStatusResponse.prototype.toObject = function(opt_includeInstance) {
2949
+ return proto.supervisor.TasksStatusResponse.toObject(opt_includeInstance, this);
2950
+ };
2951
+
2952
+
2953
+ /**
2954
+ * Static version of the {@see toObject} method.
2955
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2956
+ * the JSPB instance for transitional soy proto support:
2957
+ * http://goto/soy-param-migration
2958
+ * @param {!proto.supervisor.TasksStatusResponse} msg The msg instance to transform.
2959
+ * @return {!Object}
2960
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2961
+ */
2962
+ proto.supervisor.TasksStatusResponse.toObject = function(includeInstance, msg) {
2963
+ var f, obj = {
2964
+ tasksList: jspb.Message.toObjectList(msg.getTasksList(),
2965
+ proto.supervisor.TaskStatus.toObject, includeInstance)
2966
+ };
2967
+
2968
+ if (includeInstance) {
2969
+ obj.$jspbMessageInstance = msg;
2970
+ }
2971
+ return obj;
2972
+ };
2973
+ }
2974
+
2975
+
2976
+ /**
2977
+ * Deserializes binary data (in protobuf wire format).
2978
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2979
+ * @return {!proto.supervisor.TasksStatusResponse}
2980
+ */
2981
+ proto.supervisor.TasksStatusResponse.deserializeBinary = function(bytes) {
2982
+ var reader = new jspb.BinaryReader(bytes);
2983
+ var msg = new proto.supervisor.TasksStatusResponse;
2984
+ return proto.supervisor.TasksStatusResponse.deserializeBinaryFromReader(msg, reader);
2985
+ };
2986
+
2987
+
2988
+ /**
2989
+ * Deserializes binary data (in protobuf wire format) from the
2990
+ * given reader into the given message object.
2991
+ * @param {!proto.supervisor.TasksStatusResponse} msg The message object to deserialize into.
2992
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2993
+ * @return {!proto.supervisor.TasksStatusResponse}
2994
+ */
2995
+ proto.supervisor.TasksStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
2996
+ while (reader.nextField()) {
2997
+ if (reader.isEndGroup()) {
2998
+ break;
2999
+ }
3000
+ var field = reader.getFieldNumber();
3001
+ switch (field) {
3002
+ case 1:
3003
+ var value = new proto.supervisor.TaskStatus;
3004
+ reader.readMessage(value,proto.supervisor.TaskStatus.deserializeBinaryFromReader);
3005
+ msg.addTasks(value);
3006
+ break;
3007
+ default:
3008
+ reader.skipField();
3009
+ break;
3010
+ }
3011
+ }
3012
+ return msg;
3013
+ };
3014
+
3015
+
3016
+ /**
3017
+ * Serializes the message to binary data (in protobuf wire format).
3018
+ * @return {!Uint8Array}
3019
+ */
3020
+ proto.supervisor.TasksStatusResponse.prototype.serializeBinary = function() {
3021
+ var writer = new jspb.BinaryWriter();
3022
+ proto.supervisor.TasksStatusResponse.serializeBinaryToWriter(this, writer);
3023
+ return writer.getResultBuffer();
3024
+ };
3025
+
3026
+
3027
+ /**
3028
+ * Serializes the given message to binary data (in protobuf wire
3029
+ * format), writing to the given BinaryWriter.
3030
+ * @param {!proto.supervisor.TasksStatusResponse} message
3031
+ * @param {!jspb.BinaryWriter} writer
3032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3033
+ */
3034
+ proto.supervisor.TasksStatusResponse.serializeBinaryToWriter = function(message, writer) {
3035
+ var f = undefined;
3036
+ f = message.getTasksList();
3037
+ if (f.length > 0) {
3038
+ writer.writeRepeatedMessage(
3039
+ 1,
3040
+ f,
3041
+ proto.supervisor.TaskStatus.serializeBinaryToWriter
3042
+ );
3043
+ }
3044
+ };
3045
+
3046
+
3047
+ /**
3048
+ * repeated TaskStatus tasks = 1;
3049
+ * @return {!Array<!proto.supervisor.TaskStatus>}
3050
+ */
3051
+ proto.supervisor.TasksStatusResponse.prototype.getTasksList = function() {
3052
+ return /** @type{!Array<!proto.supervisor.TaskStatus>} */ (
3053
+ jspb.Message.getRepeatedWrapperField(this, proto.supervisor.TaskStatus, 1));
3054
+ };
3055
+
3056
+
3057
+ /**
3058
+ * @param {!Array<!proto.supervisor.TaskStatus>} value
3059
+ * @return {!proto.supervisor.TasksStatusResponse} returns this
3060
+ */
3061
+ proto.supervisor.TasksStatusResponse.prototype.setTasksList = function(value) {
3062
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3063
+ };
3064
+
3065
+
3066
+ /**
3067
+ * @param {!proto.supervisor.TaskStatus=} opt_value
3068
+ * @param {number=} opt_index
3069
+ * @return {!proto.supervisor.TaskStatus}
3070
+ */
3071
+ proto.supervisor.TasksStatusResponse.prototype.addTasks = function(opt_value, opt_index) {
3072
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.supervisor.TaskStatus, opt_index);
3073
+ };
3074
+
3075
+
3076
+ /**
3077
+ * Clears the list making it empty but non-null.
3078
+ * @return {!proto.supervisor.TasksStatusResponse} returns this
3079
+ */
3080
+ proto.supervisor.TasksStatusResponse.prototype.clearTasksList = function() {
3081
+ return this.setTasksList([]);
3082
+ };
3083
+
3084
+
3085
+
3086
+
3087
+
3088
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3089
+ /**
3090
+ * Creates an object representation of this proto.
3091
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3092
+ * Optional fields that are not set will be set to undefined.
3093
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3094
+ * For the list of reserved names please see:
3095
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3096
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3097
+ * JSPB instance for transitional soy proto support:
3098
+ * http://goto/soy-param-migration
3099
+ * @return {!Object}
3100
+ */
3101
+ proto.supervisor.TaskStatus.prototype.toObject = function(opt_includeInstance) {
3102
+ return proto.supervisor.TaskStatus.toObject(opt_includeInstance, this);
3103
+ };
3104
+
3105
+
3106
+ /**
3107
+ * Static version of the {@see toObject} method.
3108
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3109
+ * the JSPB instance for transitional soy proto support:
3110
+ * http://goto/soy-param-migration
3111
+ * @param {!proto.supervisor.TaskStatus} msg The msg instance to transform.
3112
+ * @return {!Object}
3113
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3114
+ */
3115
+ proto.supervisor.TaskStatus.toObject = function(includeInstance, msg) {
3116
+ var f, obj = {
3117
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
3118
+ state: jspb.Message.getFieldWithDefault(msg, 2, 0),
3119
+ terminal: jspb.Message.getFieldWithDefault(msg, 3, ""),
3120
+ presentation: (f = msg.getPresentation()) && proto.supervisor.TaskPresentation.toObject(includeInstance, f)
3121
+ };
3122
+
3123
+ if (includeInstance) {
3124
+ obj.$jspbMessageInstance = msg;
3125
+ }
3126
+ return obj;
3127
+ };
3128
+ }
3129
+
3130
+
3131
+ /**
3132
+ * Deserializes binary data (in protobuf wire format).
3133
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3134
+ * @return {!proto.supervisor.TaskStatus}
3135
+ */
3136
+ proto.supervisor.TaskStatus.deserializeBinary = function(bytes) {
3137
+ var reader = new jspb.BinaryReader(bytes);
3138
+ var msg = new proto.supervisor.TaskStatus;
3139
+ return proto.supervisor.TaskStatus.deserializeBinaryFromReader(msg, reader);
3140
+ };
3141
+
3142
+
3143
+ /**
3144
+ * Deserializes binary data (in protobuf wire format) from the
3145
+ * given reader into the given message object.
3146
+ * @param {!proto.supervisor.TaskStatus} msg The message object to deserialize into.
3147
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3148
+ * @return {!proto.supervisor.TaskStatus}
3149
+ */
3150
+ proto.supervisor.TaskStatus.deserializeBinaryFromReader = function(msg, reader) {
3151
+ while (reader.nextField()) {
3152
+ if (reader.isEndGroup()) {
3153
+ break;
3154
+ }
3155
+ var field = reader.getFieldNumber();
3156
+ switch (field) {
3157
+ case 1:
3158
+ var value = /** @type {string} */ (reader.readString());
3159
+ msg.setId(value);
3160
+ break;
3161
+ case 2:
3162
+ var value = /** @type {!proto.supervisor.TaskState} */ (reader.readEnum());
3163
+ msg.setState(value);
3164
+ break;
3165
+ case 3:
3166
+ var value = /** @type {string} */ (reader.readString());
3167
+ msg.setTerminal(value);
3168
+ break;
3169
+ case 4:
3170
+ var value = new proto.supervisor.TaskPresentation;
3171
+ reader.readMessage(value,proto.supervisor.TaskPresentation.deserializeBinaryFromReader);
3172
+ msg.setPresentation(value);
3173
+ break;
3174
+ default:
3175
+ reader.skipField();
3176
+ break;
3177
+ }
3178
+ }
3179
+ return msg;
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * Serializes the message to binary data (in protobuf wire format).
3185
+ * @return {!Uint8Array}
3186
+ */
3187
+ proto.supervisor.TaskStatus.prototype.serializeBinary = function() {
3188
+ var writer = new jspb.BinaryWriter();
3189
+ proto.supervisor.TaskStatus.serializeBinaryToWriter(this, writer);
3190
+ return writer.getResultBuffer();
3191
+ };
3192
+
3193
+
3194
+ /**
3195
+ * Serializes the given message to binary data (in protobuf wire
3196
+ * format), writing to the given BinaryWriter.
3197
+ * @param {!proto.supervisor.TaskStatus} message
3198
+ * @param {!jspb.BinaryWriter} writer
3199
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3200
+ */
3201
+ proto.supervisor.TaskStatus.serializeBinaryToWriter = function(message, writer) {
3202
+ var f = undefined;
3203
+ f = message.getId();
3204
+ if (f.length > 0) {
3205
+ writer.writeString(
3206
+ 1,
3207
+ f
3208
+ );
3209
+ }
3210
+ f = message.getState();
3211
+ if (f !== 0.0) {
3212
+ writer.writeEnum(
3213
+ 2,
3214
+ f
3215
+ );
3216
+ }
3217
+ f = message.getTerminal();
3218
+ if (f.length > 0) {
3219
+ writer.writeString(
3220
+ 3,
3221
+ f
3222
+ );
3223
+ }
3224
+ f = message.getPresentation();
3225
+ if (f != null) {
3226
+ writer.writeMessage(
3227
+ 4,
3228
+ f,
3229
+ proto.supervisor.TaskPresentation.serializeBinaryToWriter
3230
+ );
3231
+ }
3232
+ };
3233
+
3234
+
3235
+ /**
3236
+ * optional string id = 1;
3237
+ * @return {string}
3238
+ */
3239
+ proto.supervisor.TaskStatus.prototype.getId = function() {
3240
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3241
+ };
3242
+
3243
+
3244
+ /**
3245
+ * @param {string} value
3246
+ * @return {!proto.supervisor.TaskStatus} returns this
3247
+ */
3248
+ proto.supervisor.TaskStatus.prototype.setId = function(value) {
3249
+ return jspb.Message.setProto3StringField(this, 1, value);
3250
+ };
3251
+
3252
+
3253
+ /**
3254
+ * optional TaskState state = 2;
3255
+ * @return {!proto.supervisor.TaskState}
3256
+ */
3257
+ proto.supervisor.TaskStatus.prototype.getState = function() {
3258
+ return /** @type {!proto.supervisor.TaskState} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3259
+ };
3260
+
3261
+
3262
+ /**
3263
+ * @param {!proto.supervisor.TaskState} value
3264
+ * @return {!proto.supervisor.TaskStatus} returns this
3265
+ */
3266
+ proto.supervisor.TaskStatus.prototype.setState = function(value) {
3267
+ return jspb.Message.setProto3EnumField(this, 2, value);
3268
+ };
3269
+
3270
+
3271
+ /**
3272
+ * optional string terminal = 3;
3273
+ * @return {string}
3274
+ */
3275
+ proto.supervisor.TaskStatus.prototype.getTerminal = function() {
3276
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3277
+ };
3278
+
3279
+
3280
+ /**
3281
+ * @param {string} value
3282
+ * @return {!proto.supervisor.TaskStatus} returns this
3283
+ */
3284
+ proto.supervisor.TaskStatus.prototype.setTerminal = function(value) {
3285
+ return jspb.Message.setProto3StringField(this, 3, value);
3286
+ };
3287
+
3288
+
3289
+ /**
3290
+ * optional TaskPresentation presentation = 4;
3291
+ * @return {?proto.supervisor.TaskPresentation}
3292
+ */
3293
+ proto.supervisor.TaskStatus.prototype.getPresentation = function() {
3294
+ return /** @type{?proto.supervisor.TaskPresentation} */ (
3295
+ jspb.Message.getWrapperField(this, proto.supervisor.TaskPresentation, 4));
3296
+ };
3297
+
3298
+
3299
+ /**
3300
+ * @param {?proto.supervisor.TaskPresentation|undefined} value
3301
+ * @return {!proto.supervisor.TaskStatus} returns this
3302
+ */
3303
+ proto.supervisor.TaskStatus.prototype.setPresentation = function(value) {
3304
+ return jspb.Message.setWrapperField(this, 4, value);
3305
+ };
3306
+
3307
+
3308
+ /**
3309
+ * Clears the message field making it undefined.
3310
+ * @return {!proto.supervisor.TaskStatus} returns this
3311
+ */
3312
+ proto.supervisor.TaskStatus.prototype.clearPresentation = function() {
3313
+ return this.setPresentation(undefined);
3314
+ };
3315
+
3316
+
3317
+ /**
3318
+ * Returns whether this field is set.
3319
+ * @return {boolean}
3320
+ */
3321
+ proto.supervisor.TaskStatus.prototype.hasPresentation = function() {
3322
+ return jspb.Message.getField(this, 4) != null;
3323
+ };
3324
+
3325
+
3326
+
3327
+
3328
+
3329
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3330
+ /**
3331
+ * Creates an object representation of this proto.
3332
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3333
+ * Optional fields that are not set will be set to undefined.
3334
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3335
+ * For the list of reserved names please see:
3336
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3337
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3338
+ * JSPB instance for transitional soy proto support:
3339
+ * http://goto/soy-param-migration
3340
+ * @return {!Object}
3341
+ */
3342
+ proto.supervisor.TaskPresentation.prototype.toObject = function(opt_includeInstance) {
3343
+ return proto.supervisor.TaskPresentation.toObject(opt_includeInstance, this);
3344
+ };
3345
+
3346
+
3347
+ /**
3348
+ * Static version of the {@see toObject} method.
3349
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3350
+ * the JSPB instance for transitional soy proto support:
3351
+ * http://goto/soy-param-migration
3352
+ * @param {!proto.supervisor.TaskPresentation} msg The msg instance to transform.
3353
+ * @return {!Object}
3354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3355
+ */
3356
+ proto.supervisor.TaskPresentation.toObject = function(includeInstance, msg) {
3357
+ var f, obj = {
3358
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3359
+ openIn: jspb.Message.getFieldWithDefault(msg, 2, ""),
3360
+ openMode: jspb.Message.getFieldWithDefault(msg, 3, "")
3361
+ };
3362
+
3363
+ if (includeInstance) {
3364
+ obj.$jspbMessageInstance = msg;
3365
+ }
3366
+ return obj;
3367
+ };
3368
+ }
3369
+
3370
+
3371
+ /**
3372
+ * Deserializes binary data (in protobuf wire format).
3373
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3374
+ * @return {!proto.supervisor.TaskPresentation}
3375
+ */
3376
+ proto.supervisor.TaskPresentation.deserializeBinary = function(bytes) {
3377
+ var reader = new jspb.BinaryReader(bytes);
3378
+ var msg = new proto.supervisor.TaskPresentation;
3379
+ return proto.supervisor.TaskPresentation.deserializeBinaryFromReader(msg, reader);
3380
+ };
3381
+
3382
+
3383
+ /**
3384
+ * Deserializes binary data (in protobuf wire format) from the
3385
+ * given reader into the given message object.
3386
+ * @param {!proto.supervisor.TaskPresentation} msg The message object to deserialize into.
3387
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3388
+ * @return {!proto.supervisor.TaskPresentation}
3389
+ */
3390
+ proto.supervisor.TaskPresentation.deserializeBinaryFromReader = function(msg, reader) {
3391
+ while (reader.nextField()) {
3392
+ if (reader.isEndGroup()) {
3393
+ break;
3394
+ }
3395
+ var field = reader.getFieldNumber();
3396
+ switch (field) {
3397
+ case 1:
3398
+ var value = /** @type {string} */ (reader.readString());
3399
+ msg.setName(value);
3400
+ break;
3401
+ case 2:
3402
+ var value = /** @type {string} */ (reader.readString());
3403
+ msg.setOpenIn(value);
3404
+ break;
3405
+ case 3:
3406
+ var value = /** @type {string} */ (reader.readString());
3407
+ msg.setOpenMode(value);
3408
+ break;
3409
+ default:
3410
+ reader.skipField();
3411
+ break;
3412
+ }
3413
+ }
3414
+ return msg;
3415
+ };
3416
+
3417
+
3418
+ /**
3419
+ * Serializes the message to binary data (in protobuf wire format).
3420
+ * @return {!Uint8Array}
3421
+ */
3422
+ proto.supervisor.TaskPresentation.prototype.serializeBinary = function() {
3423
+ var writer = new jspb.BinaryWriter();
3424
+ proto.supervisor.TaskPresentation.serializeBinaryToWriter(this, writer);
3425
+ return writer.getResultBuffer();
3426
+ };
3427
+
3428
+
3429
+ /**
3430
+ * Serializes the given message to binary data (in protobuf wire
3431
+ * format), writing to the given BinaryWriter.
3432
+ * @param {!proto.supervisor.TaskPresentation} message
3433
+ * @param {!jspb.BinaryWriter} writer
3434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3435
+ */
3436
+ proto.supervisor.TaskPresentation.serializeBinaryToWriter = function(message, writer) {
3437
+ var f = undefined;
3438
+ f = message.getName();
3439
+ if (f.length > 0) {
3440
+ writer.writeString(
3441
+ 1,
3442
+ f
3443
+ );
3444
+ }
3445
+ f = message.getOpenIn();
3446
+ if (f.length > 0) {
3447
+ writer.writeString(
3448
+ 2,
3449
+ f
3450
+ );
3451
+ }
3452
+ f = message.getOpenMode();
3453
+ if (f.length > 0) {
3454
+ writer.writeString(
3455
+ 3,
3456
+ f
3457
+ );
3458
+ }
3459
+ };
3460
+
3461
+
3462
+ /**
3463
+ * optional string name = 1;
3464
+ * @return {string}
3465
+ */
3466
+ proto.supervisor.TaskPresentation.prototype.getName = function() {
3467
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3468
+ };
3469
+
3470
+
3471
+ /**
3472
+ * @param {string} value
3473
+ * @return {!proto.supervisor.TaskPresentation} returns this
3474
+ */
3475
+ proto.supervisor.TaskPresentation.prototype.setName = function(value) {
3476
+ return jspb.Message.setProto3StringField(this, 1, value);
3477
+ };
3478
+
3479
+
3480
+ /**
3481
+ * optional string open_in = 2;
3482
+ * @return {string}
3483
+ */
3484
+ proto.supervisor.TaskPresentation.prototype.getOpenIn = function() {
3485
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3486
+ };
3487
+
3488
+
3489
+ /**
3490
+ * @param {string} value
3491
+ * @return {!proto.supervisor.TaskPresentation} returns this
2160
3492
  */
2161
- proto.supervisor.TasksStatusRequest.prototype.getObserve = function() {
2162
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false));
3493
+ proto.supervisor.TaskPresentation.prototype.setOpenIn = function(value) {
3494
+ return jspb.Message.setProto3StringField(this, 2, value);
2163
3495
  };
2164
3496
 
2165
3497
 
2166
- /** @param {boolean} value */
2167
- proto.supervisor.TasksStatusRequest.prototype.setObserve = function(value) {
2168
- jspb.Message.setProto3BooleanField(this, 1, value);
3498
+ /**
3499
+ * optional string open_mode = 3;
3500
+ * @return {string}
3501
+ */
3502
+ proto.supervisor.TaskPresentation.prototype.getOpenMode = function() {
3503
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2169
3504
  };
2170
3505
 
2171
3506
 
2172
-
2173
3507
  /**
2174
- * List of repeated fields within this message type.
2175
- * @private {!Array<number>}
2176
- * @const
3508
+ * @param {string} value
3509
+ * @return {!proto.supervisor.TaskPresentation} returns this
2177
3510
  */
2178
- proto.supervisor.TasksStatusResponse.repeatedFields_ = [1];
3511
+ proto.supervisor.TaskPresentation.prototype.setOpenMode = function(value) {
3512
+ return jspb.Message.setProto3StringField(this, 3, value);
3513
+ };
3514
+
3515
+
2179
3516
 
2180
3517
 
2181
3518
 
2182
3519
  if (jspb.Message.GENERATE_TO_OBJECT) {
2183
3520
  /**
2184
- * Creates an object representation of this proto suitable for use in Soy templates.
3521
+ * Creates an object representation of this proto.
2185
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.
2186
3524
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2187
3525
  * For the list of reserved names please see:
2188
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2189
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2190
- * for transitional soy proto support: http://goto/soy-param-migration
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
2191
3530
  * @return {!Object}
2192
3531
  */
2193
- proto.supervisor.TasksStatusResponse.prototype.toObject = function(opt_includeInstance) {
2194
- return proto.supervisor.TasksStatusResponse.toObject(opt_includeInstance, this);
3532
+ proto.supervisor.ResourcesStatuRequest.prototype.toObject = function(opt_includeInstance) {
3533
+ return proto.supervisor.ResourcesStatuRequest.toObject(opt_includeInstance, this);
2195
3534
  };
2196
3535
 
2197
3536
 
2198
3537
  /**
2199
3538
  * Static version of the {@see toObject} method.
2200
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2201
- * instance for transitional soy proto support:
3539
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3540
+ * the JSPB instance for transitional soy proto support:
2202
3541
  * http://goto/soy-param-migration
2203
- * @param {!proto.supervisor.TasksStatusResponse} msg The msg instance to transform.
3542
+ * @param {!proto.supervisor.ResourcesStatuRequest} msg The msg instance to transform.
2204
3543
  * @return {!Object}
2205
3544
  * @suppress {unusedLocalVariables} f is only used for nested messages
2206
3545
  */
2207
- proto.supervisor.TasksStatusResponse.toObject = function(includeInstance, msg) {
3546
+ proto.supervisor.ResourcesStatuRequest.toObject = function(includeInstance, msg) {
2208
3547
  var f, obj = {
2209
- tasksList: jspb.Message.toObjectList(msg.getTasksList(),
2210
- proto.supervisor.TaskStatus.toObject, includeInstance)
3548
+
2211
3549
  };
2212
3550
 
2213
3551
  if (includeInstance) {
@@ -2221,34 +3559,29 @@ proto.supervisor.TasksStatusResponse.toObject = function(includeInstance, msg) {
2221
3559
  /**
2222
3560
  * Deserializes binary data (in protobuf wire format).
2223
3561
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2224
- * @return {!proto.supervisor.TasksStatusResponse}
3562
+ * @return {!proto.supervisor.ResourcesStatuRequest}
2225
3563
  */
2226
- proto.supervisor.TasksStatusResponse.deserializeBinary = function(bytes) {
3564
+ proto.supervisor.ResourcesStatuRequest.deserializeBinary = function(bytes) {
2227
3565
  var reader = new jspb.BinaryReader(bytes);
2228
- var msg = new proto.supervisor.TasksStatusResponse;
2229
- return proto.supervisor.TasksStatusResponse.deserializeBinaryFromReader(msg, reader);
3566
+ var msg = new proto.supervisor.ResourcesStatuRequest;
3567
+ return proto.supervisor.ResourcesStatuRequest.deserializeBinaryFromReader(msg, reader);
2230
3568
  };
2231
3569
 
2232
3570
 
2233
3571
  /**
2234
3572
  * Deserializes binary data (in protobuf wire format) from the
2235
3573
  * given reader into the given message object.
2236
- * @param {!proto.supervisor.TasksStatusResponse} msg The message object to deserialize into.
3574
+ * @param {!proto.supervisor.ResourcesStatuRequest} msg The message object to deserialize into.
2237
3575
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2238
- * @return {!proto.supervisor.TasksStatusResponse}
3576
+ * @return {!proto.supervisor.ResourcesStatuRequest}
2239
3577
  */
2240
- proto.supervisor.TasksStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
3578
+ proto.supervisor.ResourcesStatuRequest.deserializeBinaryFromReader = function(msg, reader) {
2241
3579
  while (reader.nextField()) {
2242
3580
  if (reader.isEndGroup()) {
2243
3581
  break;
2244
3582
  }
2245
3583
  var field = reader.getFieldNumber();
2246
3584
  switch (field) {
2247
- case 1:
2248
- var value = new proto.supervisor.TaskStatus;
2249
- reader.readMessage(value,proto.supervisor.TaskStatus.deserializeBinaryFromReader);
2250
- msg.addTasks(value);
2251
- break;
2252
3585
  default:
2253
3586
  reader.skipField();
2254
3587
  break;
@@ -2262,9 +3595,9 @@ proto.supervisor.TasksStatusResponse.deserializeBinaryFromReader = function(msg,
2262
3595
  * Serializes the message to binary data (in protobuf wire format).
2263
3596
  * @return {!Uint8Array}
2264
3597
  */
2265
- proto.supervisor.TasksStatusResponse.prototype.serializeBinary = function() {
3598
+ proto.supervisor.ResourcesStatuRequest.prototype.serializeBinary = function() {
2266
3599
  var writer = new jspb.BinaryWriter();
2267
- proto.supervisor.TasksStatusResponse.serializeBinaryToWriter(this, writer);
3600
+ proto.supervisor.ResourcesStatuRequest.serializeBinaryToWriter(this, writer);
2268
3601
  return writer.getResultBuffer();
2269
3602
  };
2270
3603
 
@@ -2272,54 +3605,12 @@ proto.supervisor.TasksStatusResponse.prototype.serializeBinary = function() {
2272
3605
  /**
2273
3606
  * Serializes the given message to binary data (in protobuf wire
2274
3607
  * format), writing to the given BinaryWriter.
2275
- * @param {!proto.supervisor.TasksStatusResponse} message
3608
+ * @param {!proto.supervisor.ResourcesStatuRequest} message
2276
3609
  * @param {!jspb.BinaryWriter} writer
2277
3610
  * @suppress {unusedLocalVariables} f is only used for nested messages
2278
3611
  */
2279
- proto.supervisor.TasksStatusResponse.serializeBinaryToWriter = function(message, writer) {
3612
+ proto.supervisor.ResourcesStatuRequest.serializeBinaryToWriter = function(message, writer) {
2280
3613
  var f = undefined;
2281
- f = message.getTasksList();
2282
- if (f.length > 0) {
2283
- writer.writeRepeatedMessage(
2284
- 1,
2285
- f,
2286
- proto.supervisor.TaskStatus.serializeBinaryToWriter
2287
- );
2288
- }
2289
- };
2290
-
2291
-
2292
- /**
2293
- * repeated TaskStatus tasks = 1;
2294
- * @return {!Array<!proto.supervisor.TaskStatus>}
2295
- */
2296
- proto.supervisor.TasksStatusResponse.prototype.getTasksList = function() {
2297
- return /** @type{!Array<!proto.supervisor.TaskStatus>} */ (
2298
- jspb.Message.getRepeatedWrapperField(this, proto.supervisor.TaskStatus, 1));
2299
- };
2300
-
2301
-
2302
- /** @param {!Array<!proto.supervisor.TaskStatus>} value */
2303
- proto.supervisor.TasksStatusResponse.prototype.setTasksList = function(value) {
2304
- jspb.Message.setRepeatedWrapperField(this, 1, value);
2305
- };
2306
-
2307
-
2308
- /**
2309
- * @param {!proto.supervisor.TaskStatus=} opt_value
2310
- * @param {number=} opt_index
2311
- * @return {!proto.supervisor.TaskStatus}
2312
- */
2313
- proto.supervisor.TasksStatusResponse.prototype.addTasks = function(opt_value, opt_index) {
2314
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.supervisor.TaskStatus, opt_index);
2315
- };
2316
-
2317
-
2318
- /**
2319
- * Clears the list making it empty but non-null.
2320
- */
2321
- proto.supervisor.TasksStatusResponse.prototype.clearTasksList = function() {
2322
- this.setTasksList([]);
2323
3614
  };
2324
3615
 
2325
3616
 
@@ -2328,35 +3619,35 @@ proto.supervisor.TasksStatusResponse.prototype.clearTasksList = function() {
2328
3619
 
2329
3620
  if (jspb.Message.GENERATE_TO_OBJECT) {
2330
3621
  /**
2331
- * Creates an object representation of this proto suitable for use in Soy templates.
3622
+ * Creates an object representation of this proto.
2332
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.
2333
3625
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2334
3626
  * For the list of reserved names please see:
2335
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2336
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2337
- * for transitional soy proto support: http://goto/soy-param-migration
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
2338
3631
  * @return {!Object}
2339
3632
  */
2340
- proto.supervisor.TaskStatus.prototype.toObject = function(opt_includeInstance) {
2341
- return proto.supervisor.TaskStatus.toObject(opt_includeInstance, this);
3633
+ proto.supervisor.ResourcesStatusResponse.prototype.toObject = function(opt_includeInstance) {
3634
+ return proto.supervisor.ResourcesStatusResponse.toObject(opt_includeInstance, this);
2342
3635
  };
2343
3636
 
2344
3637
 
2345
3638
  /**
2346
3639
  * Static version of the {@see toObject} method.
2347
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2348
- * instance for transitional soy proto support:
3640
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3641
+ * the JSPB instance for transitional soy proto support:
2349
3642
  * http://goto/soy-param-migration
2350
- * @param {!proto.supervisor.TaskStatus} msg The msg instance to transform.
3643
+ * @param {!proto.supervisor.ResourcesStatusResponse} msg The msg instance to transform.
2351
3644
  * @return {!Object}
2352
3645
  * @suppress {unusedLocalVariables} f is only used for nested messages
2353
3646
  */
2354
- proto.supervisor.TaskStatus.toObject = function(includeInstance, msg) {
3647
+ proto.supervisor.ResourcesStatusResponse.toObject = function(includeInstance, msg) {
2355
3648
  var f, obj = {
2356
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2357
- state: jspb.Message.getFieldWithDefault(msg, 2, 0),
2358
- terminal: jspb.Message.getFieldWithDefault(msg, 3, ""),
2359
- presentation: (f = msg.getPresentation()) && proto.supervisor.TaskPresentation.toObject(includeInstance, f)
3649
+ memory: (f = msg.getMemory()) && proto.supervisor.ResourceStatus.toObject(includeInstance, f),
3650
+ cpu: (f = msg.getCpu()) && proto.supervisor.ResourceStatus.toObject(includeInstance, f)
2360
3651
  };
2361
3652
 
2362
3653
  if (includeInstance) {
@@ -2370,23 +3661,23 @@ proto.supervisor.TaskStatus.toObject = function(includeInstance, msg) {
2370
3661
  /**
2371
3662
  * Deserializes binary data (in protobuf wire format).
2372
3663
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2373
- * @return {!proto.supervisor.TaskStatus}
3664
+ * @return {!proto.supervisor.ResourcesStatusResponse}
2374
3665
  */
2375
- proto.supervisor.TaskStatus.deserializeBinary = function(bytes) {
3666
+ proto.supervisor.ResourcesStatusResponse.deserializeBinary = function(bytes) {
2376
3667
  var reader = new jspb.BinaryReader(bytes);
2377
- var msg = new proto.supervisor.TaskStatus;
2378
- return proto.supervisor.TaskStatus.deserializeBinaryFromReader(msg, reader);
3668
+ var msg = new proto.supervisor.ResourcesStatusResponse;
3669
+ return proto.supervisor.ResourcesStatusResponse.deserializeBinaryFromReader(msg, reader);
2379
3670
  };
2380
3671
 
2381
3672
 
2382
3673
  /**
2383
3674
  * Deserializes binary data (in protobuf wire format) from the
2384
3675
  * given reader into the given message object.
2385
- * @param {!proto.supervisor.TaskStatus} msg The message object to deserialize into.
3676
+ * @param {!proto.supervisor.ResourcesStatusResponse} msg The message object to deserialize into.
2386
3677
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2387
- * @return {!proto.supervisor.TaskStatus}
3678
+ * @return {!proto.supervisor.ResourcesStatusResponse}
2388
3679
  */
2389
- proto.supervisor.TaskStatus.deserializeBinaryFromReader = function(msg, reader) {
3680
+ proto.supervisor.ResourcesStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
2390
3681
  while (reader.nextField()) {
2391
3682
  if (reader.isEndGroup()) {
2392
3683
  break;
@@ -2394,21 +3685,14 @@ proto.supervisor.TaskStatus.deserializeBinaryFromReader = function(msg, reader)
2394
3685
  var field = reader.getFieldNumber();
2395
3686
  switch (field) {
2396
3687
  case 1:
2397
- var value = /** @type {string} */ (reader.readString());
2398
- msg.setId(value);
3688
+ var value = new proto.supervisor.ResourceStatus;
3689
+ reader.readMessage(value,proto.supervisor.ResourceStatus.deserializeBinaryFromReader);
3690
+ msg.setMemory(value);
2399
3691
  break;
2400
3692
  case 2:
2401
- var value = /** @type {!proto.supervisor.TaskState} */ (reader.readEnum());
2402
- msg.setState(value);
2403
- break;
2404
- case 3:
2405
- var value = /** @type {string} */ (reader.readString());
2406
- msg.setTerminal(value);
2407
- break;
2408
- case 4:
2409
- var value = new proto.supervisor.TaskPresentation;
2410
- reader.readMessage(value,proto.supervisor.TaskPresentation.deserializeBinaryFromReader);
2411
- msg.setPresentation(value);
3693
+ var value = new proto.supervisor.ResourceStatus;
3694
+ reader.readMessage(value,proto.supervisor.ResourceStatus.deserializeBinaryFromReader);
3695
+ msg.setCpu(value);
2412
3696
  break;
2413
3697
  default:
2414
3698
  reader.skipField();
@@ -2423,9 +3707,9 @@ proto.supervisor.TaskStatus.deserializeBinaryFromReader = function(msg, reader)
2423
3707
  * Serializes the message to binary data (in protobuf wire format).
2424
3708
  * @return {!Uint8Array}
2425
3709
  */
2426
- proto.supervisor.TaskStatus.prototype.serializeBinary = function() {
3710
+ proto.supervisor.ResourcesStatusResponse.prototype.serializeBinary = function() {
2427
3711
  var writer = new jspb.BinaryWriter();
2428
- proto.supervisor.TaskStatus.serializeBinaryToWriter(this, writer);
3712
+ proto.supervisor.ResourcesStatusResponse.serializeBinaryToWriter(this, writer);
2429
3713
  return writer.getResultBuffer();
2430
3714
  };
2431
3715
 
@@ -2433,110 +3717,93 @@ proto.supervisor.TaskStatus.prototype.serializeBinary = function() {
2433
3717
  /**
2434
3718
  * Serializes the given message to binary data (in protobuf wire
2435
3719
  * format), writing to the given BinaryWriter.
2436
- * @param {!proto.supervisor.TaskStatus} message
3720
+ * @param {!proto.supervisor.ResourcesStatusResponse} message
2437
3721
  * @param {!jspb.BinaryWriter} writer
2438
3722
  * @suppress {unusedLocalVariables} f is only used for nested messages
2439
3723
  */
2440
- proto.supervisor.TaskStatus.serializeBinaryToWriter = function(message, writer) {
3724
+ proto.supervisor.ResourcesStatusResponse.serializeBinaryToWriter = function(message, writer) {
2441
3725
  var f = undefined;
2442
- f = message.getId();
2443
- if (f.length > 0) {
2444
- writer.writeString(
3726
+ f = message.getMemory();
3727
+ if (f != null) {
3728
+ writer.writeMessage(
2445
3729
  1,
2446
- f
2447
- );
2448
- }
2449
- f = message.getState();
2450
- if (f !== 0.0) {
2451
- writer.writeEnum(
2452
- 2,
2453
- f
2454
- );
2455
- }
2456
- f = message.getTerminal();
2457
- if (f.length > 0) {
2458
- writer.writeString(
2459
- 3,
2460
- f
3730
+ f,
3731
+ proto.supervisor.ResourceStatus.serializeBinaryToWriter
2461
3732
  );
2462
3733
  }
2463
- f = message.getPresentation();
3734
+ f = message.getCpu();
2464
3735
  if (f != null) {
2465
3736
  writer.writeMessage(
2466
- 4,
3737
+ 2,
2467
3738
  f,
2468
- proto.supervisor.TaskPresentation.serializeBinaryToWriter
3739
+ proto.supervisor.ResourceStatus.serializeBinaryToWriter
2469
3740
  );
2470
3741
  }
2471
3742
  };
2472
3743
 
2473
3744
 
2474
3745
  /**
2475
- * optional string id = 1;
2476
- * @return {string}
3746
+ * optional ResourceStatus memory = 1;
3747
+ * @return {?proto.supervisor.ResourceStatus}
2477
3748
  */
2478
- proto.supervisor.TaskStatus.prototype.getId = function() {
2479
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3749
+ proto.supervisor.ResourcesStatusResponse.prototype.getMemory = function() {
3750
+ return /** @type{?proto.supervisor.ResourceStatus} */ (
3751
+ jspb.Message.getWrapperField(this, proto.supervisor.ResourceStatus, 1));
2480
3752
  };
2481
3753
 
2482
3754
 
2483
- /** @param {string} value */
2484
- proto.supervisor.TaskStatus.prototype.setId = function(value) {
2485
- jspb.Message.setProto3StringField(this, 1, value);
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);
2486
3761
  };
2487
3762
 
2488
3763
 
2489
3764
  /**
2490
- * optional TaskState state = 2;
2491
- * @return {!proto.supervisor.TaskState}
3765
+ * Clears the message field making it undefined.
3766
+ * @return {!proto.supervisor.ResourcesStatusResponse} returns this
2492
3767
  */
2493
- proto.supervisor.TaskStatus.prototype.getState = function() {
2494
- return /** @type {!proto.supervisor.TaskState} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2495
- };
2496
-
2497
-
2498
- /** @param {!proto.supervisor.TaskState} value */
2499
- proto.supervisor.TaskStatus.prototype.setState = function(value) {
2500
- jspb.Message.setProto3EnumField(this, 2, value);
3768
+ proto.supervisor.ResourcesStatusResponse.prototype.clearMemory = function() {
3769
+ return this.setMemory(undefined);
2501
3770
  };
2502
3771
 
2503
3772
 
2504
3773
  /**
2505
- * optional string terminal = 3;
2506
- * @return {string}
3774
+ * Returns whether this field is set.
3775
+ * @return {boolean}
2507
3776
  */
2508
- proto.supervisor.TaskStatus.prototype.getTerminal = function() {
2509
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2510
- };
2511
-
2512
-
2513
- /** @param {string} value */
2514
- proto.supervisor.TaskStatus.prototype.setTerminal = function(value) {
2515
- jspb.Message.setProto3StringField(this, 3, value);
3777
+ proto.supervisor.ResourcesStatusResponse.prototype.hasMemory = function() {
3778
+ return jspb.Message.getField(this, 1) != null;
2516
3779
  };
2517
3780
 
2518
3781
 
2519
3782
  /**
2520
- * optional TaskPresentation presentation = 4;
2521
- * @return {?proto.supervisor.TaskPresentation}
3783
+ * optional ResourceStatus cpu = 2;
3784
+ * @return {?proto.supervisor.ResourceStatus}
2522
3785
  */
2523
- proto.supervisor.TaskStatus.prototype.getPresentation = function() {
2524
- return /** @type{?proto.supervisor.TaskPresentation} */ (
2525
- jspb.Message.getWrapperField(this, proto.supervisor.TaskPresentation, 4));
3786
+ proto.supervisor.ResourcesStatusResponse.prototype.getCpu = function() {
3787
+ return /** @type{?proto.supervisor.ResourceStatus} */ (
3788
+ jspb.Message.getWrapperField(this, proto.supervisor.ResourceStatus, 2));
2526
3789
  };
2527
3790
 
2528
3791
 
2529
- /** @param {?proto.supervisor.TaskPresentation|undefined} value */
2530
- proto.supervisor.TaskStatus.prototype.setPresentation = function(value) {
2531
- jspb.Message.setWrapperField(this, 4, value);
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);
2532
3798
  };
2533
3799
 
2534
3800
 
2535
3801
  /**
2536
3802
  * Clears the message field making it undefined.
3803
+ * @return {!proto.supervisor.ResourcesStatusResponse} returns this
2537
3804
  */
2538
- proto.supervisor.TaskStatus.prototype.clearPresentation = function() {
2539
- this.setPresentation(undefined);
3805
+ proto.supervisor.ResourcesStatusResponse.prototype.clearCpu = function() {
3806
+ return this.setCpu(undefined);
2540
3807
  };
2541
3808
 
2542
3809
 
@@ -2544,8 +3811,8 @@ proto.supervisor.TaskStatus.prototype.clearPresentation = function() {
2544
3811
  * Returns whether this field is set.
2545
3812
  * @return {boolean}
2546
3813
  */
2547
- proto.supervisor.TaskStatus.prototype.hasPresentation = function() {
2548
- return jspb.Message.getField(this, 4) != null;
3814
+ proto.supervisor.ResourcesStatusResponse.prototype.hasCpu = function() {
3815
+ return jspb.Message.getField(this, 2) != null;
2549
3816
  };
2550
3817
 
2551
3818
 
@@ -2554,34 +3821,35 @@ proto.supervisor.TaskStatus.prototype.hasPresentation = function() {
2554
3821
 
2555
3822
  if (jspb.Message.GENERATE_TO_OBJECT) {
2556
3823
  /**
2557
- * Creates an object representation of this proto suitable for use in Soy templates.
3824
+ * Creates an object representation of this proto.
2558
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.
2559
3827
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2560
3828
  * For the list of reserved names please see:
2561
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2562
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2563
- * for transitional soy proto support: http://goto/soy-param-migration
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
2564
3833
  * @return {!Object}
2565
3834
  */
2566
- proto.supervisor.TaskPresentation.prototype.toObject = function(opt_includeInstance) {
2567
- return proto.supervisor.TaskPresentation.toObject(opt_includeInstance, this);
3835
+ proto.supervisor.ResourceStatus.prototype.toObject = function(opt_includeInstance) {
3836
+ return proto.supervisor.ResourceStatus.toObject(opt_includeInstance, this);
2568
3837
  };
2569
3838
 
2570
3839
 
2571
3840
  /**
2572
3841
  * Static version of the {@see toObject} method.
2573
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2574
- * instance for transitional soy proto support:
3842
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3843
+ * the JSPB instance for transitional soy proto support:
2575
3844
  * http://goto/soy-param-migration
2576
- * @param {!proto.supervisor.TaskPresentation} msg The msg instance to transform.
3845
+ * @param {!proto.supervisor.ResourceStatus} msg The msg instance to transform.
2577
3846
  * @return {!Object}
2578
3847
  * @suppress {unusedLocalVariables} f is only used for nested messages
2579
3848
  */
2580
- proto.supervisor.TaskPresentation.toObject = function(includeInstance, msg) {
3849
+ proto.supervisor.ResourceStatus.toObject = function(includeInstance, msg) {
2581
3850
  var f, obj = {
2582
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2583
- openIn: jspb.Message.getFieldWithDefault(msg, 2, ""),
2584
- openMode: jspb.Message.getFieldWithDefault(msg, 3, "")
3851
+ used: jspb.Message.getFieldWithDefault(msg, 1, 0),
3852
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0)
2585
3853
  };
2586
3854
 
2587
3855
  if (includeInstance) {
@@ -2595,23 +3863,23 @@ proto.supervisor.TaskPresentation.toObject = function(includeInstance, msg) {
2595
3863
  /**
2596
3864
  * Deserializes binary data (in protobuf wire format).
2597
3865
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2598
- * @return {!proto.supervisor.TaskPresentation}
3866
+ * @return {!proto.supervisor.ResourceStatus}
2599
3867
  */
2600
- proto.supervisor.TaskPresentation.deserializeBinary = function(bytes) {
3868
+ proto.supervisor.ResourceStatus.deserializeBinary = function(bytes) {
2601
3869
  var reader = new jspb.BinaryReader(bytes);
2602
- var msg = new proto.supervisor.TaskPresentation;
2603
- return proto.supervisor.TaskPresentation.deserializeBinaryFromReader(msg, reader);
3870
+ var msg = new proto.supervisor.ResourceStatus;
3871
+ return proto.supervisor.ResourceStatus.deserializeBinaryFromReader(msg, reader);
2604
3872
  };
2605
3873
 
2606
3874
 
2607
3875
  /**
2608
3876
  * Deserializes binary data (in protobuf wire format) from the
2609
3877
  * given reader into the given message object.
2610
- * @param {!proto.supervisor.TaskPresentation} msg The message object to deserialize into.
3878
+ * @param {!proto.supervisor.ResourceStatus} msg The message object to deserialize into.
2611
3879
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2612
- * @return {!proto.supervisor.TaskPresentation}
3880
+ * @return {!proto.supervisor.ResourceStatus}
2613
3881
  */
2614
- proto.supervisor.TaskPresentation.deserializeBinaryFromReader = function(msg, reader) {
3882
+ proto.supervisor.ResourceStatus.deserializeBinaryFromReader = function(msg, reader) {
2615
3883
  while (reader.nextField()) {
2616
3884
  if (reader.isEndGroup()) {
2617
3885
  break;
@@ -2619,16 +3887,12 @@ proto.supervisor.TaskPresentation.deserializeBinaryFromReader = function(msg, re
2619
3887
  var field = reader.getFieldNumber();
2620
3888
  switch (field) {
2621
3889
  case 1:
2622
- var value = /** @type {string} */ (reader.readString());
2623
- msg.setName(value);
3890
+ var value = /** @type {number} */ (reader.readInt64());
3891
+ msg.setUsed(value);
2624
3892
  break;
2625
3893
  case 2:
2626
- var value = /** @type {string} */ (reader.readString());
2627
- msg.setOpenIn(value);
2628
- break;
2629
- case 3:
2630
- var value = /** @type {string} */ (reader.readString());
2631
- msg.setOpenMode(value);
3894
+ var value = /** @type {number} */ (reader.readInt64());
3895
+ msg.setLimit(value);
2632
3896
  break;
2633
3897
  default:
2634
3898
  reader.skipField();
@@ -2643,9 +3907,9 @@ proto.supervisor.TaskPresentation.deserializeBinaryFromReader = function(msg, re
2643
3907
  * Serializes the message to binary data (in protobuf wire format).
2644
3908
  * @return {!Uint8Array}
2645
3909
  */
2646
- proto.supervisor.TaskPresentation.prototype.serializeBinary = function() {
3910
+ proto.supervisor.ResourceStatus.prototype.serializeBinary = function() {
2647
3911
  var writer = new jspb.BinaryWriter();
2648
- proto.supervisor.TaskPresentation.serializeBinaryToWriter(this, writer);
3912
+ proto.supervisor.ResourceStatus.serializeBinaryToWriter(this, writer);
2649
3913
  return writer.getResultBuffer();
2650
3914
  };
2651
3915
 
@@ -2653,78 +3917,62 @@ proto.supervisor.TaskPresentation.prototype.serializeBinary = function() {
2653
3917
  /**
2654
3918
  * Serializes the given message to binary data (in protobuf wire
2655
3919
  * format), writing to the given BinaryWriter.
2656
- * @param {!proto.supervisor.TaskPresentation} message
3920
+ * @param {!proto.supervisor.ResourceStatus} message
2657
3921
  * @param {!jspb.BinaryWriter} writer
2658
3922
  * @suppress {unusedLocalVariables} f is only used for nested messages
2659
3923
  */
2660
- proto.supervisor.TaskPresentation.serializeBinaryToWriter = function(message, writer) {
3924
+ proto.supervisor.ResourceStatus.serializeBinaryToWriter = function(message, writer) {
2661
3925
  var f = undefined;
2662
- f = message.getName();
2663
- if (f.length > 0) {
2664
- writer.writeString(
3926
+ f = message.getUsed();
3927
+ if (f !== 0) {
3928
+ writer.writeInt64(
2665
3929
  1,
2666
3930
  f
2667
3931
  );
2668
3932
  }
2669
- f = message.getOpenIn();
2670
- if (f.length > 0) {
2671
- writer.writeString(
3933
+ f = message.getLimit();
3934
+ if (f !== 0) {
3935
+ writer.writeInt64(
2672
3936
  2,
2673
3937
  f
2674
3938
  );
2675
3939
  }
2676
- f = message.getOpenMode();
2677
- if (f.length > 0) {
2678
- writer.writeString(
2679
- 3,
2680
- f
2681
- );
2682
- }
2683
3940
  };
2684
3941
 
2685
3942
 
2686
3943
  /**
2687
- * optional string name = 1;
2688
- * @return {string}
3944
+ * optional int64 used = 1;
3945
+ * @return {number}
2689
3946
  */
2690
- proto.supervisor.TaskPresentation.prototype.getName = function() {
2691
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2692
- };
2693
-
2694
-
2695
- /** @param {string} value */
2696
- proto.supervisor.TaskPresentation.prototype.setName = function(value) {
2697
- jspb.Message.setProto3StringField(this, 1, value);
3947
+ proto.supervisor.ResourceStatus.prototype.getUsed = function() {
3948
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2698
3949
  };
2699
3950
 
2700
3951
 
2701
3952
  /**
2702
- * optional string open_in = 2;
2703
- * @return {string}
3953
+ * @param {number} value
3954
+ * @return {!proto.supervisor.ResourceStatus} returns this
2704
3955
  */
2705
- proto.supervisor.TaskPresentation.prototype.getOpenIn = function() {
2706
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2707
- };
2708
-
2709
-
2710
- /** @param {string} value */
2711
- proto.supervisor.TaskPresentation.prototype.setOpenIn = function(value) {
2712
- jspb.Message.setProto3StringField(this, 2, value);
3956
+ proto.supervisor.ResourceStatus.prototype.setUsed = function(value) {
3957
+ return jspb.Message.setProto3IntField(this, 1, value);
2713
3958
  };
2714
3959
 
2715
3960
 
2716
3961
  /**
2717
- * optional string open_mode = 3;
2718
- * @return {string}
3962
+ * optional int64 limit = 2;
3963
+ * @return {number}
2719
3964
  */
2720
- proto.supervisor.TaskPresentation.prototype.getOpenMode = function() {
2721
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3965
+ proto.supervisor.ResourceStatus.prototype.getLimit = function() {
3966
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2722
3967
  };
2723
3968
 
2724
3969
 
2725
- /** @param {string} value */
2726
- proto.supervisor.TaskPresentation.prototype.setOpenMode = function(value) {
2727
- jspb.Message.setProto3StringField(this, 3, value);
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);
2728
3976
  };
2729
3977
 
2730
3978
 
@@ -2756,6 +4004,15 @@ proto.supervisor.OnPortExposedAction = {
2756
4004
  NOTIFY_PRIVATE: 4
2757
4005
  };
2758
4006
 
4007
+ /**
4008
+ * @enum {number}
4009
+ */
4010
+ proto.supervisor.PortAutoExposure = {
4011
+ TRYING: 0,
4012
+ SUCCEEDED: 1,
4013
+ FAILED: 2
4014
+ };
4015
+
2759
4016
  /**
2760
4017
  * @enum {number}
2761
4018
  */