@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/token_pb.js CHANGED
@@ -1,23 +1,29 @@
1
+ // source: token.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
 
14
18
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
15
19
  goog.object.extend(proto, google_protobuf_timestamp_pb);
16
20
  goog.exportSymbol('proto.supervisor.ClearTokenRequest', null, global);
21
+ goog.exportSymbol('proto.supervisor.ClearTokenRequest.TokenCase', null, global);
17
22
  goog.exportSymbol('proto.supervisor.ClearTokenResponse', null, global);
18
23
  goog.exportSymbol('proto.supervisor.GetTokenRequest', null, global);
19
24
  goog.exportSymbol('proto.supervisor.GetTokenResponse', null, global);
20
25
  goog.exportSymbol('proto.supervisor.ProvideTokenRequest', null, global);
26
+ goog.exportSymbol('proto.supervisor.ProvideTokenRequest.MessageCase', null, global);
21
27
  goog.exportSymbol('proto.supervisor.ProvideTokenRequest.RegisterProvider', null, global);
22
28
  goog.exportSymbol('proto.supervisor.ProvideTokenResponse', null, global);
23
29
  goog.exportSymbol('proto.supervisor.SetTokenRequest', null, global);
@@ -55,7 +61,7 @@ if (goog.DEBUG && !COMPILED) {
55
61
  * @constructor
56
62
  */
57
63
  proto.supervisor.GetTokenResponse = function(opt_data) {
58
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.supervisor.GetTokenResponse.repeatedFields_, null);
59
65
  };
60
66
  goog.inherits(proto.supervisor.GetTokenResponse, jspb.Message);
61
67
  if (goog.DEBUG && !COMPILED) {
@@ -224,13 +230,15 @@ proto.supervisor.GetTokenRequest.repeatedFields_ = [2];
224
230
 
225
231
  if (jspb.Message.GENERATE_TO_OBJECT) {
226
232
  /**
227
- * Creates an object representation of this proto suitable for use in Soy templates.
233
+ * Creates an object representation of this proto.
228
234
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
235
+ * Optional fields that are not set will be set to undefined.
229
236
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
230
237
  * For the list of reserved names please see:
231
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
232
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
233
- * for transitional soy proto support: http://goto/soy-param-migration
238
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
239
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
240
+ * JSPB instance for transitional soy proto support:
241
+ * http://goto/soy-param-migration
234
242
  * @return {!Object}
235
243
  */
236
244
  proto.supervisor.GetTokenRequest.prototype.toObject = function(opt_includeInstance) {
@@ -240,8 +248,8 @@ proto.supervisor.GetTokenRequest.prototype.toObject = function(opt_includeInstan
240
248
 
241
249
  /**
242
250
  * Static version of the {@see toObject} method.
243
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
244
- * instance for transitional soy proto support:
251
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
252
+ * the JSPB instance for transitional soy proto support:
245
253
  * http://goto/soy-param-migration
246
254
  * @param {!proto.supervisor.GetTokenRequest} msg The msg instance to transform.
247
255
  * @return {!Object}
@@ -250,7 +258,7 @@ proto.supervisor.GetTokenRequest.prototype.toObject = function(opt_includeInstan
250
258
  proto.supervisor.GetTokenRequest.toObject = function(includeInstance, msg) {
251
259
  var f, obj = {
252
260
  host: jspb.Message.getFieldWithDefault(msg, 1, ""),
253
- scopeList: jspb.Message.getRepeatedField(msg, 2),
261
+ scopeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
254
262
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
255
263
  kind: jspb.Message.getFieldWithDefault(msg, 4, "")
256
264
  };
@@ -374,9 +382,12 @@ proto.supervisor.GetTokenRequest.prototype.getHost = function() {
374
382
  };
375
383
 
376
384
 
377
- /** @param {string} value */
385
+ /**
386
+ * @param {string} value
387
+ * @return {!proto.supervisor.GetTokenRequest} returns this
388
+ */
378
389
  proto.supervisor.GetTokenRequest.prototype.setHost = function(value) {
379
- jspb.Message.setProto3StringField(this, 1, value);
390
+ return jspb.Message.setProto3StringField(this, 1, value);
380
391
  };
381
392
 
382
393
 
@@ -389,26 +400,31 @@ proto.supervisor.GetTokenRequest.prototype.getScopeList = function() {
389
400
  };
390
401
 
391
402
 
392
- /** @param {!Array<string>} value */
403
+ /**
404
+ * @param {!Array<string>} value
405
+ * @return {!proto.supervisor.GetTokenRequest} returns this
406
+ */
393
407
  proto.supervisor.GetTokenRequest.prototype.setScopeList = function(value) {
394
- jspb.Message.setField(this, 2, value || []);
408
+ return jspb.Message.setField(this, 2, value || []);
395
409
  };
396
410
 
397
411
 
398
412
  /**
399
413
  * @param {string} value
400
414
  * @param {number=} opt_index
415
+ * @return {!proto.supervisor.GetTokenRequest} returns this
401
416
  */
402
417
  proto.supervisor.GetTokenRequest.prototype.addScope = function(value, opt_index) {
403
- jspb.Message.addToRepeatedField(this, 2, value, opt_index);
418
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
404
419
  };
405
420
 
406
421
 
407
422
  /**
408
423
  * Clears the list making it empty but non-null.
424
+ * @return {!proto.supervisor.GetTokenRequest} returns this
409
425
  */
410
426
  proto.supervisor.GetTokenRequest.prototype.clearScopeList = function() {
411
- this.setScopeList([]);
427
+ return this.setScopeList([]);
412
428
  };
413
429
 
414
430
 
@@ -421,9 +437,12 @@ proto.supervisor.GetTokenRequest.prototype.getDescription = function() {
421
437
  };
422
438
 
423
439
 
424
- /** @param {string} value */
440
+ /**
441
+ * @param {string} value
442
+ * @return {!proto.supervisor.GetTokenRequest} returns this
443
+ */
425
444
  proto.supervisor.GetTokenRequest.prototype.setDescription = function(value) {
426
- jspb.Message.setProto3StringField(this, 3, value);
445
+ return jspb.Message.setProto3StringField(this, 3, value);
427
446
  };
428
447
 
429
448
 
@@ -436,24 +455,36 @@ proto.supervisor.GetTokenRequest.prototype.getKind = function() {
436
455
  };
437
456
 
438
457
 
439
- /** @param {string} value */
458
+ /**
459
+ * @param {string} value
460
+ * @return {!proto.supervisor.GetTokenRequest} returns this
461
+ */
440
462
  proto.supervisor.GetTokenRequest.prototype.setKind = function(value) {
441
- jspb.Message.setProto3StringField(this, 4, value);
463
+ return jspb.Message.setProto3StringField(this, 4, value);
442
464
  };
443
465
 
444
466
 
445
467
 
468
+ /**
469
+ * List of repeated fields within this message type.
470
+ * @private {!Array<number>}
471
+ * @const
472
+ */
473
+ proto.supervisor.GetTokenResponse.repeatedFields_ = [3];
474
+
446
475
 
447
476
 
448
477
  if (jspb.Message.GENERATE_TO_OBJECT) {
449
478
  /**
450
- * Creates an object representation of this proto suitable for use in Soy templates.
479
+ * Creates an object representation of this proto.
451
480
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
481
+ * Optional fields that are not set will be set to undefined.
452
482
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
453
483
  * For the list of reserved names please see:
454
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
455
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
456
- * for transitional soy proto support: http://goto/soy-param-migration
484
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
485
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
486
+ * JSPB instance for transitional soy proto support:
487
+ * http://goto/soy-param-migration
457
488
  * @return {!Object}
458
489
  */
459
490
  proto.supervisor.GetTokenResponse.prototype.toObject = function(opt_includeInstance) {
@@ -463,8 +494,8 @@ proto.supervisor.GetTokenResponse.prototype.toObject = function(opt_includeInsta
463
494
 
464
495
  /**
465
496
  * Static version of the {@see toObject} method.
466
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
467
- * instance for transitional soy proto support:
497
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
498
+ * the JSPB instance for transitional soy proto support:
468
499
  * http://goto/soy-param-migration
469
500
  * @param {!proto.supervisor.GetTokenResponse} msg The msg instance to transform.
470
501
  * @return {!Object}
@@ -473,7 +504,8 @@ proto.supervisor.GetTokenResponse.prototype.toObject = function(opt_includeInsta
473
504
  proto.supervisor.GetTokenResponse.toObject = function(includeInstance, msg) {
474
505
  var f, obj = {
475
506
  token: jspb.Message.getFieldWithDefault(msg, 1, ""),
476
- user: jspb.Message.getFieldWithDefault(msg, 2, "")
507
+ user: jspb.Message.getFieldWithDefault(msg, 2, ""),
508
+ scopeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
477
509
  };
478
510
 
479
511
  if (includeInstance) {
@@ -518,6 +550,10 @@ proto.supervisor.GetTokenResponse.deserializeBinaryFromReader = function(msg, re
518
550
  var value = /** @type {string} */ (reader.readString());
519
551
  msg.setUser(value);
520
552
  break;
553
+ case 3:
554
+ var value = /** @type {string} */ (reader.readString());
555
+ msg.addScope(value);
556
+ break;
521
557
  default:
522
558
  reader.skipField();
523
559
  break;
@@ -561,6 +597,13 @@ proto.supervisor.GetTokenResponse.serializeBinaryToWriter = function(message, wr
561
597
  f
562
598
  );
563
599
  }
600
+ f = message.getScopeList();
601
+ if (f.length > 0) {
602
+ writer.writeRepeatedString(
603
+ 3,
604
+ f
605
+ );
606
+ }
564
607
  };
565
608
 
566
609
 
@@ -573,9 +616,12 @@ proto.supervisor.GetTokenResponse.prototype.getToken = function() {
573
616
  };
574
617
 
575
618
 
576
- /** @param {string} value */
619
+ /**
620
+ * @param {string} value
621
+ * @return {!proto.supervisor.GetTokenResponse} returns this
622
+ */
577
623
  proto.supervisor.GetTokenResponse.prototype.setToken = function(value) {
578
- jspb.Message.setProto3StringField(this, 1, value);
624
+ return jspb.Message.setProto3StringField(this, 1, value);
579
625
  };
580
626
 
581
627
 
@@ -588,9 +634,49 @@ proto.supervisor.GetTokenResponse.prototype.getUser = function() {
588
634
  };
589
635
 
590
636
 
591
- /** @param {string} value */
637
+ /**
638
+ * @param {string} value
639
+ * @return {!proto.supervisor.GetTokenResponse} returns this
640
+ */
592
641
  proto.supervisor.GetTokenResponse.prototype.setUser = function(value) {
593
- jspb.Message.setProto3StringField(this, 2, value);
642
+ return jspb.Message.setProto3StringField(this, 2, value);
643
+ };
644
+
645
+
646
+ /**
647
+ * repeated string scope = 3;
648
+ * @return {!Array<string>}
649
+ */
650
+ proto.supervisor.GetTokenResponse.prototype.getScopeList = function() {
651
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
652
+ };
653
+
654
+
655
+ /**
656
+ * @param {!Array<string>} value
657
+ * @return {!proto.supervisor.GetTokenResponse} returns this
658
+ */
659
+ proto.supervisor.GetTokenResponse.prototype.setScopeList = function(value) {
660
+ return jspb.Message.setField(this, 3, value || []);
661
+ };
662
+
663
+
664
+ /**
665
+ * @param {string} value
666
+ * @param {number=} opt_index
667
+ * @return {!proto.supervisor.GetTokenResponse} returns this
668
+ */
669
+ proto.supervisor.GetTokenResponse.prototype.addScope = function(value, opt_index) {
670
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
671
+ };
672
+
673
+
674
+ /**
675
+ * Clears the list making it empty but non-null.
676
+ * @return {!proto.supervisor.GetTokenResponse} returns this
677
+ */
678
+ proto.supervisor.GetTokenResponse.prototype.clearScopeList = function() {
679
+ return this.setScopeList([]);
594
680
  };
595
681
 
596
682
 
@@ -606,13 +692,15 @@ proto.supervisor.SetTokenRequest.repeatedFields_ = [2];
606
692
 
607
693
  if (jspb.Message.GENERATE_TO_OBJECT) {
608
694
  /**
609
- * Creates an object representation of this proto suitable for use in Soy templates.
695
+ * Creates an object representation of this proto.
610
696
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
697
+ * Optional fields that are not set will be set to undefined.
611
698
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
612
699
  * For the list of reserved names please see:
613
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
614
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
615
- * for transitional soy proto support: http://goto/soy-param-migration
700
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
701
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
702
+ * JSPB instance for transitional soy proto support:
703
+ * http://goto/soy-param-migration
616
704
  * @return {!Object}
617
705
  */
618
706
  proto.supervisor.SetTokenRequest.prototype.toObject = function(opt_includeInstance) {
@@ -622,8 +710,8 @@ proto.supervisor.SetTokenRequest.prototype.toObject = function(opt_includeInstan
622
710
 
623
711
  /**
624
712
  * Static version of the {@see toObject} method.
625
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
626
- * instance for transitional soy proto support:
713
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
714
+ * the JSPB instance for transitional soy proto support:
627
715
  * http://goto/soy-param-migration
628
716
  * @param {!proto.supervisor.SetTokenRequest} msg The msg instance to transform.
629
717
  * @return {!Object}
@@ -632,7 +720,7 @@ proto.supervisor.SetTokenRequest.prototype.toObject = function(opt_includeInstan
632
720
  proto.supervisor.SetTokenRequest.toObject = function(includeInstance, msg) {
633
721
  var f, obj = {
634
722
  host: jspb.Message.getFieldWithDefault(msg, 1, ""),
635
- scopeList: jspb.Message.getRepeatedField(msg, 2),
723
+ scopeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
636
724
  token: jspb.Message.getFieldWithDefault(msg, 3, ""),
637
725
  expiryDate: (f = msg.getExpiryDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
638
726
  reuse: jspb.Message.getFieldWithDefault(msg, 5, 0),
@@ -782,9 +870,12 @@ proto.supervisor.SetTokenRequest.prototype.getHost = function() {
782
870
  };
783
871
 
784
872
 
785
- /** @param {string} value */
873
+ /**
874
+ * @param {string} value
875
+ * @return {!proto.supervisor.SetTokenRequest} returns this
876
+ */
786
877
  proto.supervisor.SetTokenRequest.prototype.setHost = function(value) {
787
- jspb.Message.setProto3StringField(this, 1, value);
878
+ return jspb.Message.setProto3StringField(this, 1, value);
788
879
  };
789
880
 
790
881
 
@@ -797,26 +888,31 @@ proto.supervisor.SetTokenRequest.prototype.getScopeList = function() {
797
888
  };
798
889
 
799
890
 
800
- /** @param {!Array<string>} value */
891
+ /**
892
+ * @param {!Array<string>} value
893
+ * @return {!proto.supervisor.SetTokenRequest} returns this
894
+ */
801
895
  proto.supervisor.SetTokenRequest.prototype.setScopeList = function(value) {
802
- jspb.Message.setField(this, 2, value || []);
896
+ return jspb.Message.setField(this, 2, value || []);
803
897
  };
804
898
 
805
899
 
806
900
  /**
807
901
  * @param {string} value
808
902
  * @param {number=} opt_index
903
+ * @return {!proto.supervisor.SetTokenRequest} returns this
809
904
  */
810
905
  proto.supervisor.SetTokenRequest.prototype.addScope = function(value, opt_index) {
811
- jspb.Message.addToRepeatedField(this, 2, value, opt_index);
906
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
812
907
  };
813
908
 
814
909
 
815
910
  /**
816
911
  * Clears the list making it empty but non-null.
912
+ * @return {!proto.supervisor.SetTokenRequest} returns this
817
913
  */
818
914
  proto.supervisor.SetTokenRequest.prototype.clearScopeList = function() {
819
- this.setScopeList([]);
915
+ return this.setScopeList([]);
820
916
  };
821
917
 
822
918
 
@@ -829,9 +925,12 @@ proto.supervisor.SetTokenRequest.prototype.getToken = function() {
829
925
  };
830
926
 
831
927
 
832
- /** @param {string} value */
928
+ /**
929
+ * @param {string} value
930
+ * @return {!proto.supervisor.SetTokenRequest} returns this
931
+ */
833
932
  proto.supervisor.SetTokenRequest.prototype.setToken = function(value) {
834
- jspb.Message.setProto3StringField(this, 3, value);
933
+ return jspb.Message.setProto3StringField(this, 3, value);
835
934
  };
836
935
 
837
936
 
@@ -845,17 +944,21 @@ proto.supervisor.SetTokenRequest.prototype.getExpiryDate = function() {
845
944
  };
846
945
 
847
946
 
848
- /** @param {?proto.google.protobuf.Timestamp|undefined} value */
947
+ /**
948
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
949
+ * @return {!proto.supervisor.SetTokenRequest} returns this
950
+ */
849
951
  proto.supervisor.SetTokenRequest.prototype.setExpiryDate = function(value) {
850
- jspb.Message.setWrapperField(this, 4, value);
952
+ return jspb.Message.setWrapperField(this, 4, value);
851
953
  };
852
954
 
853
955
 
854
956
  /**
855
957
  * Clears the message field making it undefined.
958
+ * @return {!proto.supervisor.SetTokenRequest} returns this
856
959
  */
857
960
  proto.supervisor.SetTokenRequest.prototype.clearExpiryDate = function() {
858
- this.setExpiryDate(undefined);
961
+ return this.setExpiryDate(undefined);
859
962
  };
860
963
 
861
964
 
@@ -877,9 +980,12 @@ proto.supervisor.SetTokenRequest.prototype.getReuse = function() {
877
980
  };
878
981
 
879
982
 
880
- /** @param {!proto.supervisor.TokenReuse} value */
983
+ /**
984
+ * @param {!proto.supervisor.TokenReuse} value
985
+ * @return {!proto.supervisor.SetTokenRequest} returns this
986
+ */
881
987
  proto.supervisor.SetTokenRequest.prototype.setReuse = function(value) {
882
- jspb.Message.setProto3EnumField(this, 5, value);
988
+ return jspb.Message.setProto3EnumField(this, 5, value);
883
989
  };
884
990
 
885
991
 
@@ -892,9 +998,12 @@ proto.supervisor.SetTokenRequest.prototype.getKind = function() {
892
998
  };
893
999
 
894
1000
 
895
- /** @param {string} value */
1001
+ /**
1002
+ * @param {string} value
1003
+ * @return {!proto.supervisor.SetTokenRequest} returns this
1004
+ */
896
1005
  proto.supervisor.SetTokenRequest.prototype.setKind = function(value) {
897
- jspb.Message.setProto3StringField(this, 6, value);
1006
+ return jspb.Message.setProto3StringField(this, 6, value);
898
1007
  };
899
1008
 
900
1009
 
@@ -903,13 +1012,15 @@ proto.supervisor.SetTokenRequest.prototype.setKind = function(value) {
903
1012
 
904
1013
  if (jspb.Message.GENERATE_TO_OBJECT) {
905
1014
  /**
906
- * Creates an object representation of this proto suitable for use in Soy templates.
1015
+ * Creates an object representation of this proto.
907
1016
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1017
+ * Optional fields that are not set will be set to undefined.
908
1018
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
909
1019
  * For the list of reserved names please see:
910
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
911
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
912
- * for transitional soy proto support: http://goto/soy-param-migration
1020
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1021
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1022
+ * JSPB instance for transitional soy proto support:
1023
+ * http://goto/soy-param-migration
913
1024
  * @return {!Object}
914
1025
  */
915
1026
  proto.supervisor.SetTokenResponse.prototype.toObject = function(opt_includeInstance) {
@@ -919,8 +1030,8 @@ proto.supervisor.SetTokenResponse.prototype.toObject = function(opt_includeInsta
919
1030
 
920
1031
  /**
921
1032
  * Static version of the {@see toObject} method.
922
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
923
- * instance for transitional soy proto support:
1033
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1034
+ * the JSPB instance for transitional soy proto support:
924
1035
  * http://goto/soy-param-migration
925
1036
  * @param {!proto.supervisor.SetTokenResponse} msg The msg instance to transform.
926
1037
  * @return {!Object}
@@ -1028,13 +1139,15 @@ proto.supervisor.ClearTokenRequest.prototype.getTokenCase = function() {
1028
1139
 
1029
1140
  if (jspb.Message.GENERATE_TO_OBJECT) {
1030
1141
  /**
1031
- * Creates an object representation of this proto suitable for use in Soy templates.
1142
+ * Creates an object representation of this proto.
1032
1143
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1144
+ * Optional fields that are not set will be set to undefined.
1033
1145
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1034
1146
  * For the list of reserved names please see:
1035
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1036
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1037
- * for transitional soy proto support: http://goto/soy-param-migration
1147
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1148
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1149
+ * JSPB instance for transitional soy proto support:
1150
+ * http://goto/soy-param-migration
1038
1151
  * @return {!Object}
1039
1152
  */
1040
1153
  proto.supervisor.ClearTokenRequest.prototype.toObject = function(opt_includeInstance) {
@@ -1044,8 +1157,8 @@ proto.supervisor.ClearTokenRequest.prototype.toObject = function(opt_includeInst
1044
1157
 
1045
1158
  /**
1046
1159
  * Static version of the {@see toObject} method.
1047
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1048
- * instance for transitional soy proto support:
1160
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1161
+ * the JSPB instance for transitional soy proto support:
1049
1162
  * http://goto/soy-param-migration
1050
1163
  * @param {!proto.supervisor.ClearTokenRequest} msg The msg instance to transform.
1051
1164
  * @return {!Object}
@@ -1054,7 +1167,7 @@ proto.supervisor.ClearTokenRequest.prototype.toObject = function(opt_includeInst
1054
1167
  proto.supervisor.ClearTokenRequest.toObject = function(includeInstance, msg) {
1055
1168
  var f, obj = {
1056
1169
  value: jspb.Message.getFieldWithDefault(msg, 1, ""),
1057
- all: jspb.Message.getFieldWithDefault(msg, 2, false),
1170
+ all: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1058
1171
  kind: jspb.Message.getFieldWithDefault(msg, 3, "")
1059
1172
  };
1060
1173
 
@@ -1166,17 +1279,21 @@ proto.supervisor.ClearTokenRequest.prototype.getValue = function() {
1166
1279
  };
1167
1280
 
1168
1281
 
1169
- /** @param {string} value */
1282
+ /**
1283
+ * @param {string} value
1284
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1285
+ */
1170
1286
  proto.supervisor.ClearTokenRequest.prototype.setValue = function(value) {
1171
- jspb.Message.setOneofField(this, 1, proto.supervisor.ClearTokenRequest.oneofGroups_[0], value);
1287
+ return jspb.Message.setOneofField(this, 1, proto.supervisor.ClearTokenRequest.oneofGroups_[0], value);
1172
1288
  };
1173
1289
 
1174
1290
 
1175
1291
  /**
1176
1292
  * Clears the field making it undefined.
1293
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1177
1294
  */
1178
1295
  proto.supervisor.ClearTokenRequest.prototype.clearValue = function() {
1179
- jspb.Message.setOneofField(this, 1, proto.supervisor.ClearTokenRequest.oneofGroups_[0], undefined);
1296
+ return jspb.Message.setOneofField(this, 1, proto.supervisor.ClearTokenRequest.oneofGroups_[0], undefined);
1180
1297
  };
1181
1298
 
1182
1299
 
@@ -1191,26 +1308,28 @@ proto.supervisor.ClearTokenRequest.prototype.hasValue = function() {
1191
1308
 
1192
1309
  /**
1193
1310
  * optional bool all = 2;
1194
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1195
- * You should avoid comparisons like {@code val === true/false} in those cases.
1196
1311
  * @return {boolean}
1197
1312
  */
1198
1313
  proto.supervisor.ClearTokenRequest.prototype.getAll = function() {
1199
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false));
1314
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1200
1315
  };
1201
1316
 
1202
1317
 
1203
- /** @param {boolean} value */
1318
+ /**
1319
+ * @param {boolean} value
1320
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1321
+ */
1204
1322
  proto.supervisor.ClearTokenRequest.prototype.setAll = function(value) {
1205
- jspb.Message.setOneofField(this, 2, proto.supervisor.ClearTokenRequest.oneofGroups_[0], value);
1323
+ return jspb.Message.setOneofField(this, 2, proto.supervisor.ClearTokenRequest.oneofGroups_[0], value);
1206
1324
  };
1207
1325
 
1208
1326
 
1209
1327
  /**
1210
1328
  * Clears the field making it undefined.
1329
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1211
1330
  */
1212
1331
  proto.supervisor.ClearTokenRequest.prototype.clearAll = function() {
1213
- jspb.Message.setOneofField(this, 2, proto.supervisor.ClearTokenRequest.oneofGroups_[0], undefined);
1332
+ return jspb.Message.setOneofField(this, 2, proto.supervisor.ClearTokenRequest.oneofGroups_[0], undefined);
1214
1333
  };
1215
1334
 
1216
1335
 
@@ -1232,9 +1351,12 @@ proto.supervisor.ClearTokenRequest.prototype.getKind = function() {
1232
1351
  };
1233
1352
 
1234
1353
 
1235
- /** @param {string} value */
1354
+ /**
1355
+ * @param {string} value
1356
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1357
+ */
1236
1358
  proto.supervisor.ClearTokenRequest.prototype.setKind = function(value) {
1237
- jspb.Message.setProto3StringField(this, 3, value);
1359
+ return jspb.Message.setProto3StringField(this, 3, value);
1238
1360
  };
1239
1361
 
1240
1362
 
@@ -1243,13 +1365,15 @@ proto.supervisor.ClearTokenRequest.prototype.setKind = function(value) {
1243
1365
 
1244
1366
  if (jspb.Message.GENERATE_TO_OBJECT) {
1245
1367
  /**
1246
- * Creates an object representation of this proto suitable for use in Soy templates.
1368
+ * Creates an object representation of this proto.
1247
1369
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1370
+ * Optional fields that are not set will be set to undefined.
1248
1371
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1249
1372
  * For the list of reserved names please see:
1250
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1251
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1252
- * for transitional soy proto support: http://goto/soy-param-migration
1373
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1374
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1375
+ * JSPB instance for transitional soy proto support:
1376
+ * http://goto/soy-param-migration
1253
1377
  * @return {!Object}
1254
1378
  */
1255
1379
  proto.supervisor.ClearTokenResponse.prototype.toObject = function(opt_includeInstance) {
@@ -1259,8 +1383,8 @@ proto.supervisor.ClearTokenResponse.prototype.toObject = function(opt_includeIns
1259
1383
 
1260
1384
  /**
1261
1385
  * Static version of the {@see toObject} method.
1262
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1263
- * instance for transitional soy proto support:
1386
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1387
+ * the JSPB instance for transitional soy proto support:
1264
1388
  * http://goto/soy-param-migration
1265
1389
  * @param {!proto.supervisor.ClearTokenResponse} msg The msg instance to transform.
1266
1390
  * @return {!Object}
@@ -1368,13 +1492,15 @@ proto.supervisor.ProvideTokenRequest.prototype.getMessageCase = function() {
1368
1492
 
1369
1493
  if (jspb.Message.GENERATE_TO_OBJECT) {
1370
1494
  /**
1371
- * Creates an object representation of this proto suitable for use in Soy templates.
1495
+ * Creates an object representation of this proto.
1372
1496
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1497
+ * Optional fields that are not set will be set to undefined.
1373
1498
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1374
1499
  * For the list of reserved names please see:
1375
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1376
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1377
- * for transitional soy proto support: http://goto/soy-param-migration
1500
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1501
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1502
+ * JSPB instance for transitional soy proto support:
1503
+ * http://goto/soy-param-migration
1378
1504
  * @return {!Object}
1379
1505
  */
1380
1506
  proto.supervisor.ProvideTokenRequest.prototype.toObject = function(opt_includeInstance) {
@@ -1384,8 +1510,8 @@ proto.supervisor.ProvideTokenRequest.prototype.toObject = function(opt_includeIn
1384
1510
 
1385
1511
  /**
1386
1512
  * Static version of the {@see toObject} method.
1387
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1388
- * instance for transitional soy proto support:
1513
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1514
+ * the JSPB instance for transitional soy proto support:
1389
1515
  * http://goto/soy-param-migration
1390
1516
  * @param {!proto.supervisor.ProvideTokenRequest} msg The msg instance to transform.
1391
1517
  * @return {!Object}
@@ -1494,13 +1620,15 @@ proto.supervisor.ProvideTokenRequest.serializeBinaryToWriter = function(message,
1494
1620
 
1495
1621
  if (jspb.Message.GENERATE_TO_OBJECT) {
1496
1622
  /**
1497
- * Creates an object representation of this proto suitable for use in Soy templates.
1623
+ * Creates an object representation of this proto.
1498
1624
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1625
+ * Optional fields that are not set will be set to undefined.
1499
1626
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1500
1627
  * For the list of reserved names please see:
1501
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1502
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1503
- * for transitional soy proto support: http://goto/soy-param-migration
1628
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1629
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1630
+ * JSPB instance for transitional soy proto support:
1631
+ * http://goto/soy-param-migration
1504
1632
  * @return {!Object}
1505
1633
  */
1506
1634
  proto.supervisor.ProvideTokenRequest.RegisterProvider.prototype.toObject = function(opt_includeInstance) {
@@ -1510,8 +1638,8 @@ proto.supervisor.ProvideTokenRequest.RegisterProvider.prototype.toObject = funct
1510
1638
 
1511
1639
  /**
1512
1640
  * Static version of the {@see toObject} method.
1513
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1514
- * instance for transitional soy proto support:
1641
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1642
+ * the JSPB instance for transitional soy proto support:
1515
1643
  * http://goto/soy-param-migration
1516
1644
  * @param {!proto.supervisor.ProvideTokenRequest.RegisterProvider} msg The msg instance to transform.
1517
1645
  * @return {!Object}
@@ -1608,9 +1736,12 @@ proto.supervisor.ProvideTokenRequest.RegisterProvider.prototype.getKind = functi
1608
1736
  };
1609
1737
 
1610
1738
 
1611
- /** @param {string} value */
1739
+ /**
1740
+ * @param {string} value
1741
+ * @return {!proto.supervisor.ProvideTokenRequest.RegisterProvider} returns this
1742
+ */
1612
1743
  proto.supervisor.ProvideTokenRequest.RegisterProvider.prototype.setKind = function(value) {
1613
- jspb.Message.setProto3StringField(this, 1, value);
1744
+ return jspb.Message.setProto3StringField(this, 1, value);
1614
1745
  };
1615
1746
 
1616
1747
 
@@ -1624,17 +1755,21 @@ proto.supervisor.ProvideTokenRequest.prototype.getRegistration = function() {
1624
1755
  };
1625
1756
 
1626
1757
 
1627
- /** @param {?proto.supervisor.ProvideTokenRequest.RegisterProvider|undefined} value */
1758
+ /**
1759
+ * @param {?proto.supervisor.ProvideTokenRequest.RegisterProvider|undefined} value
1760
+ * @return {!proto.supervisor.ProvideTokenRequest} returns this
1761
+ */
1628
1762
  proto.supervisor.ProvideTokenRequest.prototype.setRegistration = function(value) {
1629
- jspb.Message.setOneofWrapperField(this, 1, proto.supervisor.ProvideTokenRequest.oneofGroups_[0], value);
1763
+ return jspb.Message.setOneofWrapperField(this, 1, proto.supervisor.ProvideTokenRequest.oneofGroups_[0], value);
1630
1764
  };
1631
1765
 
1632
1766
 
1633
1767
  /**
1634
1768
  * Clears the message field making it undefined.
1769
+ * @return {!proto.supervisor.ProvideTokenRequest} returns this
1635
1770
  */
1636
1771
  proto.supervisor.ProvideTokenRequest.prototype.clearRegistration = function() {
1637
- this.setRegistration(undefined);
1772
+ return this.setRegistration(undefined);
1638
1773
  };
1639
1774
 
1640
1775
 
@@ -1657,17 +1792,21 @@ proto.supervisor.ProvideTokenRequest.prototype.getAnswer = function() {
1657
1792
  };
1658
1793
 
1659
1794
 
1660
- /** @param {?proto.supervisor.SetTokenRequest|undefined} value */
1795
+ /**
1796
+ * @param {?proto.supervisor.SetTokenRequest|undefined} value
1797
+ * @return {!proto.supervisor.ProvideTokenRequest} returns this
1798
+ */
1661
1799
  proto.supervisor.ProvideTokenRequest.prototype.setAnswer = function(value) {
1662
- jspb.Message.setOneofWrapperField(this, 2, proto.supervisor.ProvideTokenRequest.oneofGroups_[0], value);
1800
+ return jspb.Message.setOneofWrapperField(this, 2, proto.supervisor.ProvideTokenRequest.oneofGroups_[0], value);
1663
1801
  };
1664
1802
 
1665
1803
 
1666
1804
  /**
1667
1805
  * Clears the message field making it undefined.
1806
+ * @return {!proto.supervisor.ProvideTokenRequest} returns this
1668
1807
  */
1669
1808
  proto.supervisor.ProvideTokenRequest.prototype.clearAnswer = function() {
1670
- this.setAnswer(undefined);
1809
+ return this.setAnswer(undefined);
1671
1810
  };
1672
1811
 
1673
1812
 
@@ -1685,13 +1824,15 @@ proto.supervisor.ProvideTokenRequest.prototype.hasAnswer = function() {
1685
1824
 
1686
1825
  if (jspb.Message.GENERATE_TO_OBJECT) {
1687
1826
  /**
1688
- * Creates an object representation of this proto suitable for use in Soy templates.
1827
+ * Creates an object representation of this proto.
1689
1828
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1829
+ * Optional fields that are not set will be set to undefined.
1690
1830
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1691
1831
  * For the list of reserved names please see:
1692
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1693
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1694
- * for transitional soy proto support: http://goto/soy-param-migration
1832
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1833
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1834
+ * JSPB instance for transitional soy proto support:
1835
+ * http://goto/soy-param-migration
1695
1836
  * @return {!Object}
1696
1837
  */
1697
1838
  proto.supervisor.ProvideTokenResponse.prototype.toObject = function(opt_includeInstance) {
@@ -1701,8 +1842,8 @@ proto.supervisor.ProvideTokenResponse.prototype.toObject = function(opt_includeI
1701
1842
 
1702
1843
  /**
1703
1844
  * Static version of the {@see toObject} method.
1704
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1705
- * instance for transitional soy proto support:
1845
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1846
+ * the JSPB instance for transitional soy proto support:
1706
1847
  * http://goto/soy-param-migration
1707
1848
  * @param {!proto.supervisor.ProvideTokenResponse} msg The msg instance to transform.
1708
1849
  * @return {!Object}
@@ -1802,17 +1943,21 @@ proto.supervisor.ProvideTokenResponse.prototype.getRequest = function() {
1802
1943
  };
1803
1944
 
1804
1945
 
1805
- /** @param {?proto.supervisor.GetTokenRequest|undefined} value */
1946
+ /**
1947
+ * @param {?proto.supervisor.GetTokenRequest|undefined} value
1948
+ * @return {!proto.supervisor.ProvideTokenResponse} returns this
1949
+ */
1806
1950
  proto.supervisor.ProvideTokenResponse.prototype.setRequest = function(value) {
1807
- jspb.Message.setWrapperField(this, 1, value);
1951
+ return jspb.Message.setWrapperField(this, 1, value);
1808
1952
  };
1809
1953
 
1810
1954
 
1811
1955
  /**
1812
1956
  * Clears the message field making it undefined.
1957
+ * @return {!proto.supervisor.ProvideTokenResponse} returns this
1813
1958
  */
1814
1959
  proto.supervisor.ProvideTokenResponse.prototype.clearRequest = function() {
1815
- this.setRequest(undefined);
1960
+ return this.setRequest(undefined);
1816
1961
  };
1817
1962
 
1818
1963