@gitpod/supervisor-api-grpc 0.1.5-patch-2-fork.0 → 0.1.5-port-description-3059-fork.2

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,35 @@
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() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
13
23
 
14
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
15
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
16
26
  goog.exportSymbol('proto.supervisor.ClearTokenRequest', null, global);
27
+ goog.exportSymbol('proto.supervisor.ClearTokenRequest.TokenCase', null, global);
17
28
  goog.exportSymbol('proto.supervisor.ClearTokenResponse', null, global);
18
29
  goog.exportSymbol('proto.supervisor.GetTokenRequest', null, global);
19
30
  goog.exportSymbol('proto.supervisor.GetTokenResponse', null, global);
20
31
  goog.exportSymbol('proto.supervisor.ProvideTokenRequest', null, global);
32
+ goog.exportSymbol('proto.supervisor.ProvideTokenRequest.MessageCase', null, global);
21
33
  goog.exportSymbol('proto.supervisor.ProvideTokenRequest.RegisterProvider', null, global);
22
34
  goog.exportSymbol('proto.supervisor.ProvideTokenResponse', null, global);
23
35
  goog.exportSymbol('proto.supervisor.SetTokenRequest', null, global);
@@ -224,13 +236,15 @@ proto.supervisor.GetTokenRequest.repeatedFields_ = [2];
224
236
 
225
237
  if (jspb.Message.GENERATE_TO_OBJECT) {
226
238
  /**
227
- * Creates an object representation of this proto suitable for use in Soy templates.
239
+ * Creates an object representation of this proto.
228
240
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
241
+ * Optional fields that are not set will be set to undefined.
229
242
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
230
243
  * 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
244
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
245
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
246
+ * JSPB instance for transitional soy proto support:
247
+ * http://goto/soy-param-migration
234
248
  * @return {!Object}
235
249
  */
236
250
  proto.supervisor.GetTokenRequest.prototype.toObject = function(opt_includeInstance) {
@@ -240,8 +254,8 @@ proto.supervisor.GetTokenRequest.prototype.toObject = function(opt_includeInstan
240
254
 
241
255
  /**
242
256
  * Static version of the {@see toObject} method.
243
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
244
- * instance for transitional soy proto support:
257
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
258
+ * the JSPB instance for transitional soy proto support:
245
259
  * http://goto/soy-param-migration
246
260
  * @param {!proto.supervisor.GetTokenRequest} msg The msg instance to transform.
247
261
  * @return {!Object}
@@ -250,7 +264,7 @@ proto.supervisor.GetTokenRequest.prototype.toObject = function(opt_includeInstan
250
264
  proto.supervisor.GetTokenRequest.toObject = function(includeInstance, msg) {
251
265
  var f, obj = {
252
266
  host: jspb.Message.getFieldWithDefault(msg, 1, ""),
253
- scopeList: jspb.Message.getRepeatedField(msg, 2),
267
+ scopeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
254
268
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
255
269
  kind: jspb.Message.getFieldWithDefault(msg, 4, "")
256
270
  };
@@ -374,9 +388,12 @@ proto.supervisor.GetTokenRequest.prototype.getHost = function() {
374
388
  };
375
389
 
376
390
 
377
- /** @param {string} value */
391
+ /**
392
+ * @param {string} value
393
+ * @return {!proto.supervisor.GetTokenRequest} returns this
394
+ */
378
395
  proto.supervisor.GetTokenRequest.prototype.setHost = function(value) {
379
- jspb.Message.setProto3StringField(this, 1, value);
396
+ return jspb.Message.setProto3StringField(this, 1, value);
380
397
  };
381
398
 
382
399
 
@@ -389,26 +406,31 @@ proto.supervisor.GetTokenRequest.prototype.getScopeList = function() {
389
406
  };
390
407
 
391
408
 
392
- /** @param {!Array<string>} value */
409
+ /**
410
+ * @param {!Array<string>} value
411
+ * @return {!proto.supervisor.GetTokenRequest} returns this
412
+ */
393
413
  proto.supervisor.GetTokenRequest.prototype.setScopeList = function(value) {
394
- jspb.Message.setField(this, 2, value || []);
414
+ return jspb.Message.setField(this, 2, value || []);
395
415
  };
396
416
 
397
417
 
398
418
  /**
399
419
  * @param {string} value
400
420
  * @param {number=} opt_index
421
+ * @return {!proto.supervisor.GetTokenRequest} returns this
401
422
  */
402
423
  proto.supervisor.GetTokenRequest.prototype.addScope = function(value, opt_index) {
403
- jspb.Message.addToRepeatedField(this, 2, value, opt_index);
424
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
404
425
  };
405
426
 
406
427
 
407
428
  /**
408
429
  * Clears the list making it empty but non-null.
430
+ * @return {!proto.supervisor.GetTokenRequest} returns this
409
431
  */
410
432
  proto.supervisor.GetTokenRequest.prototype.clearScopeList = function() {
411
- this.setScopeList([]);
433
+ return this.setScopeList([]);
412
434
  };
413
435
 
414
436
 
@@ -421,9 +443,12 @@ proto.supervisor.GetTokenRequest.prototype.getDescription = function() {
421
443
  };
422
444
 
423
445
 
424
- /** @param {string} value */
446
+ /**
447
+ * @param {string} value
448
+ * @return {!proto.supervisor.GetTokenRequest} returns this
449
+ */
425
450
  proto.supervisor.GetTokenRequest.prototype.setDescription = function(value) {
426
- jspb.Message.setProto3StringField(this, 3, value);
451
+ return jspb.Message.setProto3StringField(this, 3, value);
427
452
  };
428
453
 
429
454
 
@@ -436,9 +461,12 @@ proto.supervisor.GetTokenRequest.prototype.getKind = function() {
436
461
  };
437
462
 
438
463
 
439
- /** @param {string} value */
464
+ /**
465
+ * @param {string} value
466
+ * @return {!proto.supervisor.GetTokenRequest} returns this
467
+ */
440
468
  proto.supervisor.GetTokenRequest.prototype.setKind = function(value) {
441
- jspb.Message.setProto3StringField(this, 4, value);
469
+ return jspb.Message.setProto3StringField(this, 4, value);
442
470
  };
443
471
 
444
472
 
@@ -454,13 +482,15 @@ proto.supervisor.GetTokenResponse.repeatedFields_ = [3];
454
482
 
455
483
  if (jspb.Message.GENERATE_TO_OBJECT) {
456
484
  /**
457
- * Creates an object representation of this proto suitable for use in Soy templates.
485
+ * Creates an object representation of this proto.
458
486
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
487
+ * Optional fields that are not set will be set to undefined.
459
488
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
460
489
  * For the list of reserved names please see:
461
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
462
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
463
- * for transitional soy proto support: http://goto/soy-param-migration
490
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
491
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
492
+ * JSPB instance for transitional soy proto support:
493
+ * http://goto/soy-param-migration
464
494
  * @return {!Object}
465
495
  */
466
496
  proto.supervisor.GetTokenResponse.prototype.toObject = function(opt_includeInstance) {
@@ -470,8 +500,8 @@ proto.supervisor.GetTokenResponse.prototype.toObject = function(opt_includeInsta
470
500
 
471
501
  /**
472
502
  * Static version of the {@see toObject} method.
473
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
474
- * instance for transitional soy proto support:
503
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
504
+ * the JSPB instance for transitional soy proto support:
475
505
  * http://goto/soy-param-migration
476
506
  * @param {!proto.supervisor.GetTokenResponse} msg The msg instance to transform.
477
507
  * @return {!Object}
@@ -481,7 +511,7 @@ proto.supervisor.GetTokenResponse.toObject = function(includeInstance, msg) {
481
511
  var f, obj = {
482
512
  token: jspb.Message.getFieldWithDefault(msg, 1, ""),
483
513
  user: jspb.Message.getFieldWithDefault(msg, 2, ""),
484
- scopeList: jspb.Message.getRepeatedField(msg, 3)
514
+ scopeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
485
515
  };
486
516
 
487
517
  if (includeInstance) {
@@ -592,9 +622,12 @@ proto.supervisor.GetTokenResponse.prototype.getToken = function() {
592
622
  };
593
623
 
594
624
 
595
- /** @param {string} value */
625
+ /**
626
+ * @param {string} value
627
+ * @return {!proto.supervisor.GetTokenResponse} returns this
628
+ */
596
629
  proto.supervisor.GetTokenResponse.prototype.setToken = function(value) {
597
- jspb.Message.setProto3StringField(this, 1, value);
630
+ return jspb.Message.setProto3StringField(this, 1, value);
598
631
  };
599
632
 
600
633
 
@@ -607,9 +640,12 @@ proto.supervisor.GetTokenResponse.prototype.getUser = function() {
607
640
  };
608
641
 
609
642
 
610
- /** @param {string} value */
643
+ /**
644
+ * @param {string} value
645
+ * @return {!proto.supervisor.GetTokenResponse} returns this
646
+ */
611
647
  proto.supervisor.GetTokenResponse.prototype.setUser = function(value) {
612
- jspb.Message.setProto3StringField(this, 2, value);
648
+ return jspb.Message.setProto3StringField(this, 2, value);
613
649
  };
614
650
 
615
651
 
@@ -622,26 +658,31 @@ proto.supervisor.GetTokenResponse.prototype.getScopeList = function() {
622
658
  };
623
659
 
624
660
 
625
- /** @param {!Array<string>} value */
661
+ /**
662
+ * @param {!Array<string>} value
663
+ * @return {!proto.supervisor.GetTokenResponse} returns this
664
+ */
626
665
  proto.supervisor.GetTokenResponse.prototype.setScopeList = function(value) {
627
- jspb.Message.setField(this, 3, value || []);
666
+ return jspb.Message.setField(this, 3, value || []);
628
667
  };
629
668
 
630
669
 
631
670
  /**
632
671
  * @param {string} value
633
672
  * @param {number=} opt_index
673
+ * @return {!proto.supervisor.GetTokenResponse} returns this
634
674
  */
635
675
  proto.supervisor.GetTokenResponse.prototype.addScope = function(value, opt_index) {
636
- jspb.Message.addToRepeatedField(this, 3, value, opt_index);
676
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
637
677
  };
638
678
 
639
679
 
640
680
  /**
641
681
  * Clears the list making it empty but non-null.
682
+ * @return {!proto.supervisor.GetTokenResponse} returns this
642
683
  */
643
684
  proto.supervisor.GetTokenResponse.prototype.clearScopeList = function() {
644
- this.setScopeList([]);
685
+ return this.setScopeList([]);
645
686
  };
646
687
 
647
688
 
@@ -657,13 +698,15 @@ proto.supervisor.SetTokenRequest.repeatedFields_ = [2];
657
698
 
658
699
  if (jspb.Message.GENERATE_TO_OBJECT) {
659
700
  /**
660
- * Creates an object representation of this proto suitable for use in Soy templates.
701
+ * Creates an object representation of this proto.
661
702
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
703
+ * Optional fields that are not set will be set to undefined.
662
704
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
663
705
  * For the list of reserved names please see:
664
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
665
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
666
- * for transitional soy proto support: http://goto/soy-param-migration
706
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
707
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
708
+ * JSPB instance for transitional soy proto support:
709
+ * http://goto/soy-param-migration
667
710
  * @return {!Object}
668
711
  */
669
712
  proto.supervisor.SetTokenRequest.prototype.toObject = function(opt_includeInstance) {
@@ -673,8 +716,8 @@ proto.supervisor.SetTokenRequest.prototype.toObject = function(opt_includeInstan
673
716
 
674
717
  /**
675
718
  * Static version of the {@see toObject} method.
676
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
677
- * instance for transitional soy proto support:
719
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
720
+ * the JSPB instance for transitional soy proto support:
678
721
  * http://goto/soy-param-migration
679
722
  * @param {!proto.supervisor.SetTokenRequest} msg The msg instance to transform.
680
723
  * @return {!Object}
@@ -683,7 +726,7 @@ proto.supervisor.SetTokenRequest.prototype.toObject = function(opt_includeInstan
683
726
  proto.supervisor.SetTokenRequest.toObject = function(includeInstance, msg) {
684
727
  var f, obj = {
685
728
  host: jspb.Message.getFieldWithDefault(msg, 1, ""),
686
- scopeList: jspb.Message.getRepeatedField(msg, 2),
729
+ scopeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
687
730
  token: jspb.Message.getFieldWithDefault(msg, 3, ""),
688
731
  expiryDate: (f = msg.getExpiryDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
689
732
  reuse: jspb.Message.getFieldWithDefault(msg, 5, 0),
@@ -833,9 +876,12 @@ proto.supervisor.SetTokenRequest.prototype.getHost = function() {
833
876
  };
834
877
 
835
878
 
836
- /** @param {string} value */
879
+ /**
880
+ * @param {string} value
881
+ * @return {!proto.supervisor.SetTokenRequest} returns this
882
+ */
837
883
  proto.supervisor.SetTokenRequest.prototype.setHost = function(value) {
838
- jspb.Message.setProto3StringField(this, 1, value);
884
+ return jspb.Message.setProto3StringField(this, 1, value);
839
885
  };
840
886
 
841
887
 
@@ -848,26 +894,31 @@ proto.supervisor.SetTokenRequest.prototype.getScopeList = function() {
848
894
  };
849
895
 
850
896
 
851
- /** @param {!Array<string>} value */
897
+ /**
898
+ * @param {!Array<string>} value
899
+ * @return {!proto.supervisor.SetTokenRequest} returns this
900
+ */
852
901
  proto.supervisor.SetTokenRequest.prototype.setScopeList = function(value) {
853
- jspb.Message.setField(this, 2, value || []);
902
+ return jspb.Message.setField(this, 2, value || []);
854
903
  };
855
904
 
856
905
 
857
906
  /**
858
907
  * @param {string} value
859
908
  * @param {number=} opt_index
909
+ * @return {!proto.supervisor.SetTokenRequest} returns this
860
910
  */
861
911
  proto.supervisor.SetTokenRequest.prototype.addScope = function(value, opt_index) {
862
- jspb.Message.addToRepeatedField(this, 2, value, opt_index);
912
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
863
913
  };
864
914
 
865
915
 
866
916
  /**
867
917
  * Clears the list making it empty but non-null.
918
+ * @return {!proto.supervisor.SetTokenRequest} returns this
868
919
  */
869
920
  proto.supervisor.SetTokenRequest.prototype.clearScopeList = function() {
870
- this.setScopeList([]);
921
+ return this.setScopeList([]);
871
922
  };
872
923
 
873
924
 
@@ -880,9 +931,12 @@ proto.supervisor.SetTokenRequest.prototype.getToken = function() {
880
931
  };
881
932
 
882
933
 
883
- /** @param {string} value */
934
+ /**
935
+ * @param {string} value
936
+ * @return {!proto.supervisor.SetTokenRequest} returns this
937
+ */
884
938
  proto.supervisor.SetTokenRequest.prototype.setToken = function(value) {
885
- jspb.Message.setProto3StringField(this, 3, value);
939
+ return jspb.Message.setProto3StringField(this, 3, value);
886
940
  };
887
941
 
888
942
 
@@ -896,17 +950,21 @@ proto.supervisor.SetTokenRequest.prototype.getExpiryDate = function() {
896
950
  };
897
951
 
898
952
 
899
- /** @param {?proto.google.protobuf.Timestamp|undefined} value */
953
+ /**
954
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
955
+ * @return {!proto.supervisor.SetTokenRequest} returns this
956
+ */
900
957
  proto.supervisor.SetTokenRequest.prototype.setExpiryDate = function(value) {
901
- jspb.Message.setWrapperField(this, 4, value);
958
+ return jspb.Message.setWrapperField(this, 4, value);
902
959
  };
903
960
 
904
961
 
905
962
  /**
906
963
  * Clears the message field making it undefined.
964
+ * @return {!proto.supervisor.SetTokenRequest} returns this
907
965
  */
908
966
  proto.supervisor.SetTokenRequest.prototype.clearExpiryDate = function() {
909
- this.setExpiryDate(undefined);
967
+ return this.setExpiryDate(undefined);
910
968
  };
911
969
 
912
970
 
@@ -928,9 +986,12 @@ proto.supervisor.SetTokenRequest.prototype.getReuse = function() {
928
986
  };
929
987
 
930
988
 
931
- /** @param {!proto.supervisor.TokenReuse} value */
989
+ /**
990
+ * @param {!proto.supervisor.TokenReuse} value
991
+ * @return {!proto.supervisor.SetTokenRequest} returns this
992
+ */
932
993
  proto.supervisor.SetTokenRequest.prototype.setReuse = function(value) {
933
- jspb.Message.setProto3EnumField(this, 5, value);
994
+ return jspb.Message.setProto3EnumField(this, 5, value);
934
995
  };
935
996
 
936
997
 
@@ -943,9 +1004,12 @@ proto.supervisor.SetTokenRequest.prototype.getKind = function() {
943
1004
  };
944
1005
 
945
1006
 
946
- /** @param {string} value */
1007
+ /**
1008
+ * @param {string} value
1009
+ * @return {!proto.supervisor.SetTokenRequest} returns this
1010
+ */
947
1011
  proto.supervisor.SetTokenRequest.prototype.setKind = function(value) {
948
- jspb.Message.setProto3StringField(this, 6, value);
1012
+ return jspb.Message.setProto3StringField(this, 6, value);
949
1013
  };
950
1014
 
951
1015
 
@@ -954,13 +1018,15 @@ proto.supervisor.SetTokenRequest.prototype.setKind = function(value) {
954
1018
 
955
1019
  if (jspb.Message.GENERATE_TO_OBJECT) {
956
1020
  /**
957
- * Creates an object representation of this proto suitable for use in Soy templates.
1021
+ * Creates an object representation of this proto.
958
1022
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1023
+ * Optional fields that are not set will be set to undefined.
959
1024
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
960
1025
  * For the list of reserved names please see:
961
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
962
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
963
- * for transitional soy proto support: http://goto/soy-param-migration
1026
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1027
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1028
+ * JSPB instance for transitional soy proto support:
1029
+ * http://goto/soy-param-migration
964
1030
  * @return {!Object}
965
1031
  */
966
1032
  proto.supervisor.SetTokenResponse.prototype.toObject = function(opt_includeInstance) {
@@ -970,8 +1036,8 @@ proto.supervisor.SetTokenResponse.prototype.toObject = function(opt_includeInsta
970
1036
 
971
1037
  /**
972
1038
  * Static version of the {@see toObject} method.
973
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
974
- * instance for transitional soy proto support:
1039
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1040
+ * the JSPB instance for transitional soy proto support:
975
1041
  * http://goto/soy-param-migration
976
1042
  * @param {!proto.supervisor.SetTokenResponse} msg The msg instance to transform.
977
1043
  * @return {!Object}
@@ -1079,13 +1145,15 @@ proto.supervisor.ClearTokenRequest.prototype.getTokenCase = function() {
1079
1145
 
1080
1146
  if (jspb.Message.GENERATE_TO_OBJECT) {
1081
1147
  /**
1082
- * Creates an object representation of this proto suitable for use in Soy templates.
1148
+ * Creates an object representation of this proto.
1083
1149
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1150
+ * Optional fields that are not set will be set to undefined.
1084
1151
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1085
1152
  * For the list of reserved names please see:
1086
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1087
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1088
- * for transitional soy proto support: http://goto/soy-param-migration
1153
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1154
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1155
+ * JSPB instance for transitional soy proto support:
1156
+ * http://goto/soy-param-migration
1089
1157
  * @return {!Object}
1090
1158
  */
1091
1159
  proto.supervisor.ClearTokenRequest.prototype.toObject = function(opt_includeInstance) {
@@ -1095,8 +1163,8 @@ proto.supervisor.ClearTokenRequest.prototype.toObject = function(opt_includeInst
1095
1163
 
1096
1164
  /**
1097
1165
  * Static version of the {@see toObject} method.
1098
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1099
- * instance for transitional soy proto support:
1166
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1167
+ * the JSPB instance for transitional soy proto support:
1100
1168
  * http://goto/soy-param-migration
1101
1169
  * @param {!proto.supervisor.ClearTokenRequest} msg The msg instance to transform.
1102
1170
  * @return {!Object}
@@ -1105,7 +1173,7 @@ proto.supervisor.ClearTokenRequest.prototype.toObject = function(opt_includeInst
1105
1173
  proto.supervisor.ClearTokenRequest.toObject = function(includeInstance, msg) {
1106
1174
  var f, obj = {
1107
1175
  value: jspb.Message.getFieldWithDefault(msg, 1, ""),
1108
- all: jspb.Message.getFieldWithDefault(msg, 2, false),
1176
+ all: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1109
1177
  kind: jspb.Message.getFieldWithDefault(msg, 3, "")
1110
1178
  };
1111
1179
 
@@ -1217,17 +1285,21 @@ proto.supervisor.ClearTokenRequest.prototype.getValue = function() {
1217
1285
  };
1218
1286
 
1219
1287
 
1220
- /** @param {string} value */
1288
+ /**
1289
+ * @param {string} value
1290
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1291
+ */
1221
1292
  proto.supervisor.ClearTokenRequest.prototype.setValue = function(value) {
1222
- jspb.Message.setOneofField(this, 1, proto.supervisor.ClearTokenRequest.oneofGroups_[0], value);
1293
+ return jspb.Message.setOneofField(this, 1, proto.supervisor.ClearTokenRequest.oneofGroups_[0], value);
1223
1294
  };
1224
1295
 
1225
1296
 
1226
1297
  /**
1227
1298
  * Clears the field making it undefined.
1299
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1228
1300
  */
1229
1301
  proto.supervisor.ClearTokenRequest.prototype.clearValue = function() {
1230
- jspb.Message.setOneofField(this, 1, proto.supervisor.ClearTokenRequest.oneofGroups_[0], undefined);
1302
+ return jspb.Message.setOneofField(this, 1, proto.supervisor.ClearTokenRequest.oneofGroups_[0], undefined);
1231
1303
  };
1232
1304
 
1233
1305
 
@@ -1242,26 +1314,28 @@ proto.supervisor.ClearTokenRequest.prototype.hasValue = function() {
1242
1314
 
1243
1315
  /**
1244
1316
  * optional bool all = 2;
1245
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
1246
- * You should avoid comparisons like {@code val === true/false} in those cases.
1247
1317
  * @return {boolean}
1248
1318
  */
1249
1319
  proto.supervisor.ClearTokenRequest.prototype.getAll = function() {
1250
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false));
1320
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1251
1321
  };
1252
1322
 
1253
1323
 
1254
- /** @param {boolean} value */
1324
+ /**
1325
+ * @param {boolean} value
1326
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1327
+ */
1255
1328
  proto.supervisor.ClearTokenRequest.prototype.setAll = function(value) {
1256
- jspb.Message.setOneofField(this, 2, proto.supervisor.ClearTokenRequest.oneofGroups_[0], value);
1329
+ return jspb.Message.setOneofField(this, 2, proto.supervisor.ClearTokenRequest.oneofGroups_[0], value);
1257
1330
  };
1258
1331
 
1259
1332
 
1260
1333
  /**
1261
1334
  * Clears the field making it undefined.
1335
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1262
1336
  */
1263
1337
  proto.supervisor.ClearTokenRequest.prototype.clearAll = function() {
1264
- jspb.Message.setOneofField(this, 2, proto.supervisor.ClearTokenRequest.oneofGroups_[0], undefined);
1338
+ return jspb.Message.setOneofField(this, 2, proto.supervisor.ClearTokenRequest.oneofGroups_[0], undefined);
1265
1339
  };
1266
1340
 
1267
1341
 
@@ -1283,9 +1357,12 @@ proto.supervisor.ClearTokenRequest.prototype.getKind = function() {
1283
1357
  };
1284
1358
 
1285
1359
 
1286
- /** @param {string} value */
1360
+ /**
1361
+ * @param {string} value
1362
+ * @return {!proto.supervisor.ClearTokenRequest} returns this
1363
+ */
1287
1364
  proto.supervisor.ClearTokenRequest.prototype.setKind = function(value) {
1288
- jspb.Message.setProto3StringField(this, 3, value);
1365
+ return jspb.Message.setProto3StringField(this, 3, value);
1289
1366
  };
1290
1367
 
1291
1368
 
@@ -1294,13 +1371,15 @@ proto.supervisor.ClearTokenRequest.prototype.setKind = function(value) {
1294
1371
 
1295
1372
  if (jspb.Message.GENERATE_TO_OBJECT) {
1296
1373
  /**
1297
- * Creates an object representation of this proto suitable for use in Soy templates.
1374
+ * Creates an object representation of this proto.
1298
1375
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1376
+ * Optional fields that are not set will be set to undefined.
1299
1377
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1300
1378
  * For the list of reserved names please see:
1301
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1302
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1303
- * for transitional soy proto support: http://goto/soy-param-migration
1379
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1380
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1381
+ * JSPB instance for transitional soy proto support:
1382
+ * http://goto/soy-param-migration
1304
1383
  * @return {!Object}
1305
1384
  */
1306
1385
  proto.supervisor.ClearTokenResponse.prototype.toObject = function(opt_includeInstance) {
@@ -1310,8 +1389,8 @@ proto.supervisor.ClearTokenResponse.prototype.toObject = function(opt_includeIns
1310
1389
 
1311
1390
  /**
1312
1391
  * Static version of the {@see toObject} method.
1313
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1314
- * instance for transitional soy proto support:
1392
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1393
+ * the JSPB instance for transitional soy proto support:
1315
1394
  * http://goto/soy-param-migration
1316
1395
  * @param {!proto.supervisor.ClearTokenResponse} msg The msg instance to transform.
1317
1396
  * @return {!Object}
@@ -1419,13 +1498,15 @@ proto.supervisor.ProvideTokenRequest.prototype.getMessageCase = function() {
1419
1498
 
1420
1499
  if (jspb.Message.GENERATE_TO_OBJECT) {
1421
1500
  /**
1422
- * Creates an object representation of this proto suitable for use in Soy templates.
1501
+ * Creates an object representation of this proto.
1423
1502
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1503
+ * Optional fields that are not set will be set to undefined.
1424
1504
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1425
1505
  * For the list of reserved names please see:
1426
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1427
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1428
- * for transitional soy proto support: http://goto/soy-param-migration
1506
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1507
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1508
+ * JSPB instance for transitional soy proto support:
1509
+ * http://goto/soy-param-migration
1429
1510
  * @return {!Object}
1430
1511
  */
1431
1512
  proto.supervisor.ProvideTokenRequest.prototype.toObject = function(opt_includeInstance) {
@@ -1435,8 +1516,8 @@ proto.supervisor.ProvideTokenRequest.prototype.toObject = function(opt_includeIn
1435
1516
 
1436
1517
  /**
1437
1518
  * Static version of the {@see toObject} method.
1438
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1439
- * instance for transitional soy proto support:
1519
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1520
+ * the JSPB instance for transitional soy proto support:
1440
1521
  * http://goto/soy-param-migration
1441
1522
  * @param {!proto.supervisor.ProvideTokenRequest} msg The msg instance to transform.
1442
1523
  * @return {!Object}
@@ -1545,13 +1626,15 @@ proto.supervisor.ProvideTokenRequest.serializeBinaryToWriter = function(message,
1545
1626
 
1546
1627
  if (jspb.Message.GENERATE_TO_OBJECT) {
1547
1628
  /**
1548
- * Creates an object representation of this proto suitable for use in Soy templates.
1629
+ * Creates an object representation of this proto.
1549
1630
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1631
+ * Optional fields that are not set will be set to undefined.
1550
1632
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1551
1633
  * For the list of reserved names please see:
1552
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1553
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1554
- * for transitional soy proto support: http://goto/soy-param-migration
1634
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1635
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1636
+ * JSPB instance for transitional soy proto support:
1637
+ * http://goto/soy-param-migration
1555
1638
  * @return {!Object}
1556
1639
  */
1557
1640
  proto.supervisor.ProvideTokenRequest.RegisterProvider.prototype.toObject = function(opt_includeInstance) {
@@ -1561,8 +1644,8 @@ proto.supervisor.ProvideTokenRequest.RegisterProvider.prototype.toObject = funct
1561
1644
 
1562
1645
  /**
1563
1646
  * Static version of the {@see toObject} method.
1564
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1565
- * instance for transitional soy proto support:
1647
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1648
+ * the JSPB instance for transitional soy proto support:
1566
1649
  * http://goto/soy-param-migration
1567
1650
  * @param {!proto.supervisor.ProvideTokenRequest.RegisterProvider} msg The msg instance to transform.
1568
1651
  * @return {!Object}
@@ -1659,9 +1742,12 @@ proto.supervisor.ProvideTokenRequest.RegisterProvider.prototype.getKind = functi
1659
1742
  };
1660
1743
 
1661
1744
 
1662
- /** @param {string} value */
1745
+ /**
1746
+ * @param {string} value
1747
+ * @return {!proto.supervisor.ProvideTokenRequest.RegisterProvider} returns this
1748
+ */
1663
1749
  proto.supervisor.ProvideTokenRequest.RegisterProvider.prototype.setKind = function(value) {
1664
- jspb.Message.setProto3StringField(this, 1, value);
1750
+ return jspb.Message.setProto3StringField(this, 1, value);
1665
1751
  };
1666
1752
 
1667
1753
 
@@ -1675,17 +1761,21 @@ proto.supervisor.ProvideTokenRequest.prototype.getRegistration = function() {
1675
1761
  };
1676
1762
 
1677
1763
 
1678
- /** @param {?proto.supervisor.ProvideTokenRequest.RegisterProvider|undefined} value */
1764
+ /**
1765
+ * @param {?proto.supervisor.ProvideTokenRequest.RegisterProvider|undefined} value
1766
+ * @return {!proto.supervisor.ProvideTokenRequest} returns this
1767
+ */
1679
1768
  proto.supervisor.ProvideTokenRequest.prototype.setRegistration = function(value) {
1680
- jspb.Message.setOneofWrapperField(this, 1, proto.supervisor.ProvideTokenRequest.oneofGroups_[0], value);
1769
+ return jspb.Message.setOneofWrapperField(this, 1, proto.supervisor.ProvideTokenRequest.oneofGroups_[0], value);
1681
1770
  };
1682
1771
 
1683
1772
 
1684
1773
  /**
1685
1774
  * Clears the message field making it undefined.
1775
+ * @return {!proto.supervisor.ProvideTokenRequest} returns this
1686
1776
  */
1687
1777
  proto.supervisor.ProvideTokenRequest.prototype.clearRegistration = function() {
1688
- this.setRegistration(undefined);
1778
+ return this.setRegistration(undefined);
1689
1779
  };
1690
1780
 
1691
1781
 
@@ -1708,17 +1798,21 @@ proto.supervisor.ProvideTokenRequest.prototype.getAnswer = function() {
1708
1798
  };
1709
1799
 
1710
1800
 
1711
- /** @param {?proto.supervisor.SetTokenRequest|undefined} value */
1801
+ /**
1802
+ * @param {?proto.supervisor.SetTokenRequest|undefined} value
1803
+ * @return {!proto.supervisor.ProvideTokenRequest} returns this
1804
+ */
1712
1805
  proto.supervisor.ProvideTokenRequest.prototype.setAnswer = function(value) {
1713
- jspb.Message.setOneofWrapperField(this, 2, proto.supervisor.ProvideTokenRequest.oneofGroups_[0], value);
1806
+ return jspb.Message.setOneofWrapperField(this, 2, proto.supervisor.ProvideTokenRequest.oneofGroups_[0], value);
1714
1807
  };
1715
1808
 
1716
1809
 
1717
1810
  /**
1718
1811
  * Clears the message field making it undefined.
1812
+ * @return {!proto.supervisor.ProvideTokenRequest} returns this
1719
1813
  */
1720
1814
  proto.supervisor.ProvideTokenRequest.prototype.clearAnswer = function() {
1721
- this.setAnswer(undefined);
1815
+ return this.setAnswer(undefined);
1722
1816
  };
1723
1817
 
1724
1818
 
@@ -1736,13 +1830,15 @@ proto.supervisor.ProvideTokenRequest.prototype.hasAnswer = function() {
1736
1830
 
1737
1831
  if (jspb.Message.GENERATE_TO_OBJECT) {
1738
1832
  /**
1739
- * Creates an object representation of this proto suitable for use in Soy templates.
1833
+ * Creates an object representation of this proto.
1740
1834
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
1835
+ * Optional fields that are not set will be set to undefined.
1741
1836
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1742
1837
  * For the list of reserved names please see:
1743
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1744
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1745
- * for transitional soy proto support: http://goto/soy-param-migration
1838
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1839
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1840
+ * JSPB instance for transitional soy proto support:
1841
+ * http://goto/soy-param-migration
1746
1842
  * @return {!Object}
1747
1843
  */
1748
1844
  proto.supervisor.ProvideTokenResponse.prototype.toObject = function(opt_includeInstance) {
@@ -1752,8 +1848,8 @@ proto.supervisor.ProvideTokenResponse.prototype.toObject = function(opt_includeI
1752
1848
 
1753
1849
  /**
1754
1850
  * Static version of the {@see toObject} method.
1755
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1756
- * instance for transitional soy proto support:
1851
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1852
+ * the JSPB instance for transitional soy proto support:
1757
1853
  * http://goto/soy-param-migration
1758
1854
  * @param {!proto.supervisor.ProvideTokenResponse} msg The msg instance to transform.
1759
1855
  * @return {!Object}
@@ -1853,17 +1949,21 @@ proto.supervisor.ProvideTokenResponse.prototype.getRequest = function() {
1853
1949
  };
1854
1950
 
1855
1951
 
1856
- /** @param {?proto.supervisor.GetTokenRequest|undefined} value */
1952
+ /**
1953
+ * @param {?proto.supervisor.GetTokenRequest|undefined} value
1954
+ * @return {!proto.supervisor.ProvideTokenResponse} returns this
1955
+ */
1857
1956
  proto.supervisor.ProvideTokenResponse.prototype.setRequest = function(value) {
1858
- jspb.Message.setWrapperField(this, 1, value);
1957
+ return jspb.Message.setWrapperField(this, 1, value);
1859
1958
  };
1860
1959
 
1861
1960
 
1862
1961
  /**
1863
1962
  * Clears the message field making it undefined.
1963
+ * @return {!proto.supervisor.ProvideTokenResponse} returns this
1864
1964
  */
1865
1965
  proto.supervisor.ProvideTokenResponse.prototype.clearRequest = function() {
1866
- this.setRequest(undefined);
1966
+ return this.setRequest(undefined);
1867
1967
  };
1868
1968
 
1869
1969