@aldiokta/protocgen 1.0.23 → 1.0.25

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.
@@ -27,13 +27,79 @@ goog.exportSymbol('proto.AccessCreateRequest', null, global);
27
27
  goog.exportSymbol('proto.AccessResponse', null, global);
28
28
  goog.exportSymbol('proto.AuthVerifyToken', null, global);
29
29
  goog.exportSymbol('proto.CreateUserPayload', null, global);
30
+ goog.exportSymbol('proto.ForgotPassworReq', null, global);
30
31
  goog.exportSymbol('proto.GetAccessByIdPayload', null, global);
31
32
  goog.exportSymbol('proto.GetListAccessRequest', null, global);
32
33
  goog.exportSymbol('proto.ListAccessResponse', null, global);
33
34
  goog.exportSymbol('proto.LoginRequest', null, global);
35
+ goog.exportSymbol('proto.RequestForgotPasswordReq', null, global);
36
+ goog.exportSymbol('proto.RequestForgotResponse', null, global);
34
37
  goog.exportSymbol('proto.UpdateAccessPayload', null, global);
35
38
  goog.exportSymbol('proto.UpdateUserPayload', null, global);
36
39
  goog.exportSymbol('proto.UserResponse', null, global);
40
+ /**
41
+ * Generated by JsPbCodeGenerator.
42
+ * @param {Array=} opt_data Optional initial data array, typically from a
43
+ * server response, or constructed directly in Javascript. The array is used
44
+ * in place and becomes part of the constructed object. It is not cloned.
45
+ * If no data is provided, the constructed object will be empty, but still
46
+ * valid.
47
+ * @extends {jspb.Message}
48
+ * @constructor
49
+ */
50
+ proto.ForgotPassworReq = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
+ };
53
+ goog.inherits(proto.ForgotPassworReq, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.ForgotPassworReq.displayName = 'proto.ForgotPassworReq';
60
+ }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.RequestForgotPasswordReq = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.RequestForgotPasswordReq, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.RequestForgotPasswordReq.displayName = 'proto.RequestForgotPasswordReq';
81
+ }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.RequestForgotResponse = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.RequestForgotResponse, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.RequestForgotResponse.displayName = 'proto.RequestForgotResponse';
102
+ }
37
103
  /**
38
104
  * Generated by JsPbCodeGenerator.
39
105
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -310,6 +376,396 @@ if (goog.DEBUG && !COMPILED) {
310
376
 
311
377
 
312
378
 
379
+ if (jspb.Message.GENERATE_TO_OBJECT) {
380
+ /**
381
+ * Creates an object representation of this proto.
382
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
383
+ * Optional fields that are not set will be set to undefined.
384
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
385
+ * For the list of reserved names please see:
386
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
387
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
388
+ * JSPB instance for transitional soy proto support:
389
+ * http://goto/soy-param-migration
390
+ * @return {!Object}
391
+ */
392
+ proto.ForgotPassworReq.prototype.toObject = function(opt_includeInstance) {
393
+ return proto.ForgotPassworReq.toObject(opt_includeInstance, this);
394
+ };
395
+
396
+
397
+ /**
398
+ * Static version of the {@see toObject} method.
399
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
400
+ * the JSPB instance for transitional soy proto support:
401
+ * http://goto/soy-param-migration
402
+ * @param {!proto.ForgotPassworReq} msg The msg instance to transform.
403
+ * @return {!Object}
404
+ * @suppress {unusedLocalVariables} f is only used for nested messages
405
+ */
406
+ proto.ForgotPassworReq.toObject = function(includeInstance, msg) {
407
+ var f, obj = {
408
+ password: jspb.Message.getFieldWithDefault(msg, 1, "")
409
+ };
410
+
411
+ if (includeInstance) {
412
+ obj.$jspbMessageInstance = msg;
413
+ }
414
+ return obj;
415
+ };
416
+ }
417
+
418
+
419
+ /**
420
+ * Deserializes binary data (in protobuf wire format).
421
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
422
+ * @return {!proto.ForgotPassworReq}
423
+ */
424
+ proto.ForgotPassworReq.deserializeBinary = function(bytes) {
425
+ var reader = new jspb.BinaryReader(bytes);
426
+ var msg = new proto.ForgotPassworReq;
427
+ return proto.ForgotPassworReq.deserializeBinaryFromReader(msg, reader);
428
+ };
429
+
430
+
431
+ /**
432
+ * Deserializes binary data (in protobuf wire format) from the
433
+ * given reader into the given message object.
434
+ * @param {!proto.ForgotPassworReq} msg The message object to deserialize into.
435
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
436
+ * @return {!proto.ForgotPassworReq}
437
+ */
438
+ proto.ForgotPassworReq.deserializeBinaryFromReader = function(msg, reader) {
439
+ while (reader.nextField()) {
440
+ if (reader.isEndGroup()) {
441
+ break;
442
+ }
443
+ var field = reader.getFieldNumber();
444
+ switch (field) {
445
+ case 1:
446
+ var value = /** @type {string} */ (reader.readString());
447
+ msg.setPassword(value);
448
+ break;
449
+ default:
450
+ reader.skipField();
451
+ break;
452
+ }
453
+ }
454
+ return msg;
455
+ };
456
+
457
+
458
+ /**
459
+ * Serializes the message to binary data (in protobuf wire format).
460
+ * @return {!Uint8Array}
461
+ */
462
+ proto.ForgotPassworReq.prototype.serializeBinary = function() {
463
+ var writer = new jspb.BinaryWriter();
464
+ proto.ForgotPassworReq.serializeBinaryToWriter(this, writer);
465
+ return writer.getResultBuffer();
466
+ };
467
+
468
+
469
+ /**
470
+ * Serializes the given message to binary data (in protobuf wire
471
+ * format), writing to the given BinaryWriter.
472
+ * @param {!proto.ForgotPassworReq} message
473
+ * @param {!jspb.BinaryWriter} writer
474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
475
+ */
476
+ proto.ForgotPassworReq.serializeBinaryToWriter = function(message, writer) {
477
+ var f = undefined;
478
+ f = message.getPassword();
479
+ if (f.length > 0) {
480
+ writer.writeString(
481
+ 1,
482
+ f
483
+ );
484
+ }
485
+ };
486
+
487
+
488
+ /**
489
+ * optional string password = 1;
490
+ * @return {string}
491
+ */
492
+ proto.ForgotPassworReq.prototype.getPassword = function() {
493
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
494
+ };
495
+
496
+
497
+ /**
498
+ * @param {string} value
499
+ * @return {!proto.ForgotPassworReq} returns this
500
+ */
501
+ proto.ForgotPassworReq.prototype.setPassword = function(value) {
502
+ return jspb.Message.setProto3StringField(this, 1, value);
503
+ };
504
+
505
+
506
+
507
+
508
+
509
+ if (jspb.Message.GENERATE_TO_OBJECT) {
510
+ /**
511
+ * Creates an object representation of this proto.
512
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
513
+ * Optional fields that are not set will be set to undefined.
514
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
515
+ * For the list of reserved names please see:
516
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
517
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
518
+ * JSPB instance for transitional soy proto support:
519
+ * http://goto/soy-param-migration
520
+ * @return {!Object}
521
+ */
522
+ proto.RequestForgotPasswordReq.prototype.toObject = function(opt_includeInstance) {
523
+ return proto.RequestForgotPasswordReq.toObject(opt_includeInstance, this);
524
+ };
525
+
526
+
527
+ /**
528
+ * Static version of the {@see toObject} method.
529
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
530
+ * the JSPB instance for transitional soy proto support:
531
+ * http://goto/soy-param-migration
532
+ * @param {!proto.RequestForgotPasswordReq} msg The msg instance to transform.
533
+ * @return {!Object}
534
+ * @suppress {unusedLocalVariables} f is only used for nested messages
535
+ */
536
+ proto.RequestForgotPasswordReq.toObject = function(includeInstance, msg) {
537
+ var f, obj = {
538
+ email: jspb.Message.getFieldWithDefault(msg, 1, "")
539
+ };
540
+
541
+ if (includeInstance) {
542
+ obj.$jspbMessageInstance = msg;
543
+ }
544
+ return obj;
545
+ };
546
+ }
547
+
548
+
549
+ /**
550
+ * Deserializes binary data (in protobuf wire format).
551
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
552
+ * @return {!proto.RequestForgotPasswordReq}
553
+ */
554
+ proto.RequestForgotPasswordReq.deserializeBinary = function(bytes) {
555
+ var reader = new jspb.BinaryReader(bytes);
556
+ var msg = new proto.RequestForgotPasswordReq;
557
+ return proto.RequestForgotPasswordReq.deserializeBinaryFromReader(msg, reader);
558
+ };
559
+
560
+
561
+ /**
562
+ * Deserializes binary data (in protobuf wire format) from the
563
+ * given reader into the given message object.
564
+ * @param {!proto.RequestForgotPasswordReq} msg The message object to deserialize into.
565
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
566
+ * @return {!proto.RequestForgotPasswordReq}
567
+ */
568
+ proto.RequestForgotPasswordReq.deserializeBinaryFromReader = function(msg, reader) {
569
+ while (reader.nextField()) {
570
+ if (reader.isEndGroup()) {
571
+ break;
572
+ }
573
+ var field = reader.getFieldNumber();
574
+ switch (field) {
575
+ case 1:
576
+ var value = /** @type {string} */ (reader.readString());
577
+ msg.setEmail(value);
578
+ break;
579
+ default:
580
+ reader.skipField();
581
+ break;
582
+ }
583
+ }
584
+ return msg;
585
+ };
586
+
587
+
588
+ /**
589
+ * Serializes the message to binary data (in protobuf wire format).
590
+ * @return {!Uint8Array}
591
+ */
592
+ proto.RequestForgotPasswordReq.prototype.serializeBinary = function() {
593
+ var writer = new jspb.BinaryWriter();
594
+ proto.RequestForgotPasswordReq.serializeBinaryToWriter(this, writer);
595
+ return writer.getResultBuffer();
596
+ };
597
+
598
+
599
+ /**
600
+ * Serializes the given message to binary data (in protobuf wire
601
+ * format), writing to the given BinaryWriter.
602
+ * @param {!proto.RequestForgotPasswordReq} message
603
+ * @param {!jspb.BinaryWriter} writer
604
+ * @suppress {unusedLocalVariables} f is only used for nested messages
605
+ */
606
+ proto.RequestForgotPasswordReq.serializeBinaryToWriter = function(message, writer) {
607
+ var f = undefined;
608
+ f = message.getEmail();
609
+ if (f.length > 0) {
610
+ writer.writeString(
611
+ 1,
612
+ f
613
+ );
614
+ }
615
+ };
616
+
617
+
618
+ /**
619
+ * optional string email = 1;
620
+ * @return {string}
621
+ */
622
+ proto.RequestForgotPasswordReq.prototype.getEmail = function() {
623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
624
+ };
625
+
626
+
627
+ /**
628
+ * @param {string} value
629
+ * @return {!proto.RequestForgotPasswordReq} returns this
630
+ */
631
+ proto.RequestForgotPasswordReq.prototype.setEmail = function(value) {
632
+ return jspb.Message.setProto3StringField(this, 1, value);
633
+ };
634
+
635
+
636
+
637
+
638
+
639
+ if (jspb.Message.GENERATE_TO_OBJECT) {
640
+ /**
641
+ * Creates an object representation of this proto.
642
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
643
+ * Optional fields that are not set will be set to undefined.
644
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
645
+ * For the list of reserved names please see:
646
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
647
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
648
+ * JSPB instance for transitional soy proto support:
649
+ * http://goto/soy-param-migration
650
+ * @return {!Object}
651
+ */
652
+ proto.RequestForgotResponse.prototype.toObject = function(opt_includeInstance) {
653
+ return proto.RequestForgotResponse.toObject(opt_includeInstance, this);
654
+ };
655
+
656
+
657
+ /**
658
+ * Static version of the {@see toObject} method.
659
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
660
+ * the JSPB instance for transitional soy proto support:
661
+ * http://goto/soy-param-migration
662
+ * @param {!proto.RequestForgotResponse} msg The msg instance to transform.
663
+ * @return {!Object}
664
+ * @suppress {unusedLocalVariables} f is only used for nested messages
665
+ */
666
+ proto.RequestForgotResponse.toObject = function(includeInstance, msg) {
667
+ var f, obj = {
668
+ url: jspb.Message.getFieldWithDefault(msg, 1, "")
669
+ };
670
+
671
+ if (includeInstance) {
672
+ obj.$jspbMessageInstance = msg;
673
+ }
674
+ return obj;
675
+ };
676
+ }
677
+
678
+
679
+ /**
680
+ * Deserializes binary data (in protobuf wire format).
681
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
682
+ * @return {!proto.RequestForgotResponse}
683
+ */
684
+ proto.RequestForgotResponse.deserializeBinary = function(bytes) {
685
+ var reader = new jspb.BinaryReader(bytes);
686
+ var msg = new proto.RequestForgotResponse;
687
+ return proto.RequestForgotResponse.deserializeBinaryFromReader(msg, reader);
688
+ };
689
+
690
+
691
+ /**
692
+ * Deserializes binary data (in protobuf wire format) from the
693
+ * given reader into the given message object.
694
+ * @param {!proto.RequestForgotResponse} msg The message object to deserialize into.
695
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
696
+ * @return {!proto.RequestForgotResponse}
697
+ */
698
+ proto.RequestForgotResponse.deserializeBinaryFromReader = function(msg, reader) {
699
+ while (reader.nextField()) {
700
+ if (reader.isEndGroup()) {
701
+ break;
702
+ }
703
+ var field = reader.getFieldNumber();
704
+ switch (field) {
705
+ case 1:
706
+ var value = /** @type {string} */ (reader.readString());
707
+ msg.setUrl(value);
708
+ break;
709
+ default:
710
+ reader.skipField();
711
+ break;
712
+ }
713
+ }
714
+ return msg;
715
+ };
716
+
717
+
718
+ /**
719
+ * Serializes the message to binary data (in protobuf wire format).
720
+ * @return {!Uint8Array}
721
+ */
722
+ proto.RequestForgotResponse.prototype.serializeBinary = function() {
723
+ var writer = new jspb.BinaryWriter();
724
+ proto.RequestForgotResponse.serializeBinaryToWriter(this, writer);
725
+ return writer.getResultBuffer();
726
+ };
727
+
728
+
729
+ /**
730
+ * Serializes the given message to binary data (in protobuf wire
731
+ * format), writing to the given BinaryWriter.
732
+ * @param {!proto.RequestForgotResponse} message
733
+ * @param {!jspb.BinaryWriter} writer
734
+ * @suppress {unusedLocalVariables} f is only used for nested messages
735
+ */
736
+ proto.RequestForgotResponse.serializeBinaryToWriter = function(message, writer) {
737
+ var f = undefined;
738
+ f = message.getUrl();
739
+ if (f.length > 0) {
740
+ writer.writeString(
741
+ 1,
742
+ f
743
+ );
744
+ }
745
+ };
746
+
747
+
748
+ /**
749
+ * optional string url = 1;
750
+ * @return {string}
751
+ */
752
+ proto.RequestForgotResponse.prototype.getUrl = function() {
753
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
754
+ };
755
+
756
+
757
+ /**
758
+ * @param {string} value
759
+ * @return {!proto.RequestForgotResponse} returns this
760
+ */
761
+ proto.RequestForgotResponse.prototype.setUrl = function(value) {
762
+ return jspb.Message.setProto3StringField(this, 1, value);
763
+ };
764
+
765
+
766
+
767
+
768
+
313
769
  if (jspb.Message.GENERATE_TO_OBJECT) {
314
770
  /**
315
771
  * Creates an object representation of this proto.
@@ -1139,8 +1595,9 @@ proto.UpdateAccessPayload.prototype.toObject = function(opt_includeInstance) {
1139
1595
  */
1140
1596
  proto.UpdateAccessPayload.toObject = function(includeInstance, msg) {
1141
1597
  var f, obj = {
1142
- access: (f = msg.getAccess()) && proto.AccessCreateRequest.toObject(includeInstance, f),
1143
- id: jspb.Message.getFieldWithDefault(msg, 2, 0)
1598
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1599
+ id: jspb.Message.getFieldWithDefault(msg, 2, 0),
1600
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, "")
1144
1601
  };
1145
1602
 
1146
1603
  if (includeInstance) {
@@ -1178,14 +1635,17 @@ proto.UpdateAccessPayload.deserializeBinaryFromReader = function(msg, reader) {
1178
1635
  var field = reader.getFieldNumber();
1179
1636
  switch (field) {
1180
1637
  case 1:
1181
- var value = new proto.AccessCreateRequest;
1182
- reader.readMessage(value,proto.AccessCreateRequest.deserializeBinaryFromReader);
1183
- msg.setAccess(value);
1638
+ var value = /** @type {string} */ (reader.readString());
1639
+ msg.setName(value);
1184
1640
  break;
1185
1641
  case 2:
1186
1642
  var value = /** @type {number} */ (reader.readInt64());
1187
1643
  msg.setId(value);
1188
1644
  break;
1645
+ case 3:
1646
+ var value = /** @type {string} */ (reader.readString());
1647
+ msg.setScopes(value);
1648
+ break;
1189
1649
  default:
1190
1650
  reader.skipField();
1191
1651
  break;
@@ -1215,12 +1675,11 @@ proto.UpdateAccessPayload.prototype.serializeBinary = function() {
1215
1675
  */
1216
1676
  proto.UpdateAccessPayload.serializeBinaryToWriter = function(message, writer) {
1217
1677
  var f = undefined;
1218
- f = message.getAccess();
1219
- if (f != null) {
1220
- writer.writeMessage(
1678
+ f = message.getName();
1679
+ if (f.length > 0) {
1680
+ writer.writeString(
1221
1681
  1,
1222
- f,
1223
- proto.AccessCreateRequest.serializeBinaryToWriter
1682
+ f
1224
1683
  );
1225
1684
  }
1226
1685
  f = message.getId();
@@ -1230,61 +1689,67 @@ proto.UpdateAccessPayload.serializeBinaryToWriter = function(message, writer) {
1230
1689
  f
1231
1690
  );
1232
1691
  }
1692
+ f = message.getScopes();
1693
+ if (f.length > 0) {
1694
+ writer.writeString(
1695
+ 3,
1696
+ f
1697
+ );
1698
+ }
1233
1699
  };
1234
1700
 
1235
1701
 
1236
1702
  /**
1237
- * optional AccessCreateRequest access = 1;
1238
- * @return {?proto.AccessCreateRequest}
1703
+ * optional string name = 1;
1704
+ * @return {string}
1239
1705
  */
1240
- proto.UpdateAccessPayload.prototype.getAccess = function() {
1241
- return /** @type{?proto.AccessCreateRequest} */ (
1242
- jspb.Message.getWrapperField(this, proto.AccessCreateRequest, 1));
1706
+ proto.UpdateAccessPayload.prototype.getName = function() {
1707
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1243
1708
  };
1244
1709
 
1245
1710
 
1246
1711
  /**
1247
- * @param {?proto.AccessCreateRequest|undefined} value
1712
+ * @param {string} value
1248
1713
  * @return {!proto.UpdateAccessPayload} returns this
1249
- */
1250
- proto.UpdateAccessPayload.prototype.setAccess = function(value) {
1251
- return jspb.Message.setWrapperField(this, 1, value);
1714
+ */
1715
+ proto.UpdateAccessPayload.prototype.setName = function(value) {
1716
+ return jspb.Message.setProto3StringField(this, 1, value);
1252
1717
  };
1253
1718
 
1254
1719
 
1255
1720
  /**
1256
- * Clears the message field making it undefined.
1257
- * @return {!proto.UpdateAccessPayload} returns this
1721
+ * optional int64 id = 2;
1722
+ * @return {number}
1258
1723
  */
1259
- proto.UpdateAccessPayload.prototype.clearAccess = function() {
1260
- return this.setAccess(undefined);
1724
+ proto.UpdateAccessPayload.prototype.getId = function() {
1725
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1261
1726
  };
1262
1727
 
1263
1728
 
1264
1729
  /**
1265
- * Returns whether this field is set.
1266
- * @return {boolean}
1730
+ * @param {number} value
1731
+ * @return {!proto.UpdateAccessPayload} returns this
1267
1732
  */
1268
- proto.UpdateAccessPayload.prototype.hasAccess = function() {
1269
- return jspb.Message.getField(this, 1) != null;
1733
+ proto.UpdateAccessPayload.prototype.setId = function(value) {
1734
+ return jspb.Message.setProto3IntField(this, 2, value);
1270
1735
  };
1271
1736
 
1272
1737
 
1273
1738
  /**
1274
- * optional int64 id = 2;
1275
- * @return {number}
1739
+ * optional string scopes = 3;
1740
+ * @return {string}
1276
1741
  */
1277
- proto.UpdateAccessPayload.prototype.getId = function() {
1278
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1742
+ proto.UpdateAccessPayload.prototype.getScopes = function() {
1743
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1279
1744
  };
1280
1745
 
1281
1746
 
1282
1747
  /**
1283
- * @param {number} value
1748
+ * @param {string} value
1284
1749
  * @return {!proto.UpdateAccessPayload} returns this
1285
1750
  */
1286
- proto.UpdateAccessPayload.prototype.setId = function(value) {
1287
- return jspb.Message.setProto3IntField(this, 2, value);
1751
+ proto.UpdateAccessPayload.prototype.setScopes = function(value) {
1752
+ return jspb.Message.setProto3StringField(this, 3, value);
1288
1753
  };
1289
1754
 
1290
1755
 
@@ -1640,9 +2105,8 @@ proto.UpdateUserPayload.prototype.toObject = function(opt_includeInstance) {
1640
2105
  */
1641
2106
  proto.UpdateUserPayload.toObject = function(includeInstance, msg) {
1642
2107
  var f, obj = {
1643
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1644
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1645
- email: jspb.Message.getFieldWithDefault(msg, 3, "")
2108
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
2109
+ password: jspb.Message.getFieldWithDefault(msg, 2, "")
1646
2110
  };
1647
2111
 
1648
2112
  if (includeInstance) {
@@ -1681,15 +2145,11 @@ proto.UpdateUserPayload.deserializeBinaryFromReader = function(msg, reader) {
1681
2145
  switch (field) {
1682
2146
  case 1:
1683
2147
  var value = /** @type {string} */ (reader.readString());
1684
- msg.setId(value);
2148
+ msg.setEmail(value);
1685
2149
  break;
1686
2150
  case 2:
1687
2151
  var value = /** @type {string} */ (reader.readString());
1688
- msg.setName(value);
1689
- break;
1690
- case 3:
1691
- var value = /** @type {string} */ (reader.readString());
1692
- msg.setEmail(value);
2152
+ msg.setPassword(value);
1693
2153
  break;
1694
2154
  default:
1695
2155
  reader.skipField();
@@ -1720,35 +2180,28 @@ proto.UpdateUserPayload.prototype.serializeBinary = function() {
1720
2180
  */
1721
2181
  proto.UpdateUserPayload.serializeBinaryToWriter = function(message, writer) {
1722
2182
  var f = undefined;
1723
- f = message.getId();
2183
+ f = message.getEmail();
1724
2184
  if (f.length > 0) {
1725
2185
  writer.writeString(
1726
2186
  1,
1727
2187
  f
1728
2188
  );
1729
2189
  }
1730
- f = message.getName();
2190
+ f = message.getPassword();
1731
2191
  if (f.length > 0) {
1732
2192
  writer.writeString(
1733
2193
  2,
1734
2194
  f
1735
2195
  );
1736
2196
  }
1737
- f = message.getEmail();
1738
- if (f.length > 0) {
1739
- writer.writeString(
1740
- 3,
1741
- f
1742
- );
1743
- }
1744
2197
  };
1745
2198
 
1746
2199
 
1747
2200
  /**
1748
- * optional string id = 1;
2201
+ * optional string email = 1;
1749
2202
  * @return {string}
1750
2203
  */
1751
- proto.UpdateUserPayload.prototype.getId = function() {
2204
+ proto.UpdateUserPayload.prototype.getEmail = function() {
1752
2205
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1753
2206
  };
1754
2207
 
@@ -1757,16 +2210,16 @@ proto.UpdateUserPayload.prototype.getId = function() {
1757
2210
  * @param {string} value
1758
2211
  * @return {!proto.UpdateUserPayload} returns this
1759
2212
  */
1760
- proto.UpdateUserPayload.prototype.setId = function(value) {
2213
+ proto.UpdateUserPayload.prototype.setEmail = function(value) {
1761
2214
  return jspb.Message.setProto3StringField(this, 1, value);
1762
2215
  };
1763
2216
 
1764
2217
 
1765
2218
  /**
1766
- * optional string name = 2;
2219
+ * optional string password = 2;
1767
2220
  * @return {string}
1768
2221
  */
1769
- proto.UpdateUserPayload.prototype.getName = function() {
2222
+ proto.UpdateUserPayload.prototype.getPassword = function() {
1770
2223
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1771
2224
  };
1772
2225
 
@@ -1775,29 +2228,11 @@ proto.UpdateUserPayload.prototype.getName = function() {
1775
2228
  * @param {string} value
1776
2229
  * @return {!proto.UpdateUserPayload} returns this
1777
2230
  */
1778
- proto.UpdateUserPayload.prototype.setName = function(value) {
2231
+ proto.UpdateUserPayload.prototype.setPassword = function(value) {
1779
2232
  return jspb.Message.setProto3StringField(this, 2, value);
1780
2233
  };
1781
2234
 
1782
2235
 
1783
- /**
1784
- * optional string email = 3;
1785
- * @return {string}
1786
- */
1787
- proto.UpdateUserPayload.prototype.getEmail = function() {
1788
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1789
- };
1790
-
1791
-
1792
- /**
1793
- * @param {string} value
1794
- * @return {!proto.UpdateUserPayload} returns this
1795
- */
1796
- proto.UpdateUserPayload.prototype.setEmail = function(value) {
1797
- return jspb.Message.setProto3StringField(this, 3, value);
1798
- };
1799
-
1800
-
1801
2236
 
1802
2237
 
1803
2238
 
@@ -1833,8 +2268,8 @@ proto.UserResponse.toObject = function(includeInstance, msg) {
1833
2268
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1834
2269
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1835
2270
  email: jspb.Message.getFieldWithDefault(msg, 3, ""),
1836
- password: jspb.Message.getFieldWithDefault(msg, 4, ""),
1837
- role: jspb.Message.getFieldWithDefault(msg, 5, "")
2271
+ role: jspb.Message.getFieldWithDefault(msg, 4, ""),
2272
+ token: jspb.Message.getFieldWithDefault(msg, 5, "")
1838
2273
  };
1839
2274
 
1840
2275
  if (includeInstance) {
@@ -1885,11 +2320,11 @@ proto.UserResponse.deserializeBinaryFromReader = function(msg, reader) {
1885
2320
  break;
1886
2321
  case 4:
1887
2322
  var value = /** @type {string} */ (reader.readString());
1888
- msg.setPassword(value);
2323
+ msg.setRole(value);
1889
2324
  break;
1890
2325
  case 5:
1891
2326
  var value = /** @type {string} */ (reader.readString());
1892
- msg.setRole(value);
2327
+ msg.setToken(value);
1893
2328
  break;
1894
2329
  default:
1895
2330
  reader.skipField();
@@ -1941,14 +2376,14 @@ proto.UserResponse.serializeBinaryToWriter = function(message, writer) {
1941
2376
  f
1942
2377
  );
1943
2378
  }
1944
- f = message.getPassword();
2379
+ f = message.getRole();
1945
2380
  if (f.length > 0) {
1946
2381
  writer.writeString(
1947
2382
  4,
1948
2383
  f
1949
2384
  );
1950
2385
  }
1951
- f = message.getRole();
2386
+ f = message.getToken();
1952
2387
  if (f.length > 0) {
1953
2388
  writer.writeString(
1954
2389
  5,
@@ -2013,10 +2448,10 @@ proto.UserResponse.prototype.setEmail = function(value) {
2013
2448
 
2014
2449
 
2015
2450
  /**
2016
- * optional string password = 4;
2451
+ * optional string role = 4;
2017
2452
  * @return {string}
2018
2453
  */
2019
- proto.UserResponse.prototype.getPassword = function() {
2454
+ proto.UserResponse.prototype.getRole = function() {
2020
2455
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2021
2456
  };
2022
2457
 
@@ -2025,16 +2460,16 @@ proto.UserResponse.prototype.getPassword = function() {
2025
2460
  * @param {string} value
2026
2461
  * @return {!proto.UserResponse} returns this
2027
2462
  */
2028
- proto.UserResponse.prototype.setPassword = function(value) {
2463
+ proto.UserResponse.prototype.setRole = function(value) {
2029
2464
  return jspb.Message.setProto3StringField(this, 4, value);
2030
2465
  };
2031
2466
 
2032
2467
 
2033
2468
  /**
2034
- * optional string role = 5;
2469
+ * optional string token = 5;
2035
2470
  * @return {string}
2036
2471
  */
2037
- proto.UserResponse.prototype.getRole = function() {
2472
+ proto.UserResponse.prototype.getToken = function() {
2038
2473
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2039
2474
  };
2040
2475
 
@@ -2043,7 +2478,7 @@ proto.UserResponse.prototype.getRole = function() {
2043
2478
  * @param {string} value
2044
2479
  * @return {!proto.UserResponse} returns this
2045
2480
  */
2046
- proto.UserResponse.prototype.setRole = function(value) {
2481
+ proto.UserResponse.prototype.setToken = function(value) {
2047
2482
  return jspb.Message.setProto3StringField(this, 5, value);
2048
2483
  };
2049
2484