protobuf-platform 1.0.210 → 1.0.212

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/user/user_pb.js CHANGED
@@ -21,6 +21,8 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.user.DashboardRequest', null, global);
25
+ goog.exportSymbol('proto.user.DashboardResponse', null, global);
24
26
  goog.exportSymbol('proto.user.GetRoleRequest', null, global);
25
27
  goog.exportSymbol('proto.user.GetSegmentRequest', null, global);
26
28
  goog.exportSymbol('proto.user.LoggedInResponse', null, global);
@@ -29,6 +31,8 @@ goog.exportSymbol('proto.user.PaginationRequest', null, global);
29
31
  goog.exportSymbol('proto.user.PingRequest', null, global);
30
32
  goog.exportSymbol('proto.user.PongResponse', null, global);
31
33
  goog.exportSymbol('proto.user.RegistrationRequest', null, global);
34
+ goog.exportSymbol('proto.user.RiskStatus', null, global);
35
+ goog.exportSymbol('proto.user.RiskStatusItemsResponse', null, global);
32
36
  goog.exportSymbol('proto.user.Role', null, global);
33
37
  goog.exportSymbol('proto.user.RolePermissionRequest', null, global);
34
38
  goog.exportSymbol('proto.user.RolePermissionStatusResponse', null, global);
@@ -527,6 +531,90 @@ if (goog.DEBUG && !COMPILED) {
527
531
  */
528
532
  proto.user.SegmentItemsResponse.displayName = 'proto.user.SegmentItemsResponse';
529
533
  }
534
+ /**
535
+ * Generated by JsPbCodeGenerator.
536
+ * @param {Array=} opt_data Optional initial data array, typically from a
537
+ * server response, or constructed directly in Javascript. The array is used
538
+ * in place and becomes part of the constructed object. It is not cloned.
539
+ * If no data is provided, the constructed object will be empty, but still
540
+ * valid.
541
+ * @extends {jspb.Message}
542
+ * @constructor
543
+ */
544
+ proto.user.RiskStatus = function(opt_data) {
545
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
546
+ };
547
+ goog.inherits(proto.user.RiskStatus, jspb.Message);
548
+ if (goog.DEBUG && !COMPILED) {
549
+ /**
550
+ * @public
551
+ * @override
552
+ */
553
+ proto.user.RiskStatus.displayName = 'proto.user.RiskStatus';
554
+ }
555
+ /**
556
+ * Generated by JsPbCodeGenerator.
557
+ * @param {Array=} opt_data Optional initial data array, typically from a
558
+ * server response, or constructed directly in Javascript. The array is used
559
+ * in place and becomes part of the constructed object. It is not cloned.
560
+ * If no data is provided, the constructed object will be empty, but still
561
+ * valid.
562
+ * @extends {jspb.Message}
563
+ * @constructor
564
+ */
565
+ proto.user.RiskStatusItemsResponse = function(opt_data) {
566
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.RiskStatusItemsResponse.repeatedFields_, null);
567
+ };
568
+ goog.inherits(proto.user.RiskStatusItemsResponse, jspb.Message);
569
+ if (goog.DEBUG && !COMPILED) {
570
+ /**
571
+ * @public
572
+ * @override
573
+ */
574
+ proto.user.RiskStatusItemsResponse.displayName = 'proto.user.RiskStatusItemsResponse';
575
+ }
576
+ /**
577
+ * Generated by JsPbCodeGenerator.
578
+ * @param {Array=} opt_data Optional initial data array, typically from a
579
+ * server response, or constructed directly in Javascript. The array is used
580
+ * in place and becomes part of the constructed object. It is not cloned.
581
+ * If no data is provided, the constructed object will be empty, but still
582
+ * valid.
583
+ * @extends {jspb.Message}
584
+ * @constructor
585
+ */
586
+ proto.user.DashboardRequest = function(opt_data) {
587
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
588
+ };
589
+ goog.inherits(proto.user.DashboardRequest, jspb.Message);
590
+ if (goog.DEBUG && !COMPILED) {
591
+ /**
592
+ * @public
593
+ * @override
594
+ */
595
+ proto.user.DashboardRequest.displayName = 'proto.user.DashboardRequest';
596
+ }
597
+ /**
598
+ * Generated by JsPbCodeGenerator.
599
+ * @param {Array=} opt_data Optional initial data array, typically from a
600
+ * server response, or constructed directly in Javascript. The array is used
601
+ * in place and becomes part of the constructed object. It is not cloned.
602
+ * If no data is provided, the constructed object will be empty, but still
603
+ * valid.
604
+ * @extends {jspb.Message}
605
+ * @constructor
606
+ */
607
+ proto.user.DashboardResponse = function(opt_data) {
608
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
609
+ };
610
+ goog.inherits(proto.user.DashboardResponse, jspb.Message);
611
+ if (goog.DEBUG && !COMPILED) {
612
+ /**
613
+ * @public
614
+ * @override
615
+ */
616
+ proto.user.DashboardResponse.displayName = 'proto.user.DashboardResponse';
617
+ }
530
618
 
531
619
 
532
620
 
@@ -8380,4 +8468,824 @@ proto.user.SegmentItemsResponse.prototype.hasTotalItems = function() {
8380
8468
  };
8381
8469
 
8382
8470
 
8471
+
8472
+
8473
+
8474
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8475
+ /**
8476
+ * Creates an object representation of this proto.
8477
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8478
+ * Optional fields that are not set will be set to undefined.
8479
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8480
+ * For the list of reserved names please see:
8481
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8482
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8483
+ * JSPB instance for transitional soy proto support:
8484
+ * http://goto/soy-param-migration
8485
+ * @return {!Object}
8486
+ */
8487
+ proto.user.RiskStatus.prototype.toObject = function(opt_includeInstance) {
8488
+ return proto.user.RiskStatus.toObject(opt_includeInstance, this);
8489
+ };
8490
+
8491
+
8492
+ /**
8493
+ * Static version of the {@see toObject} method.
8494
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8495
+ * the JSPB instance for transitional soy proto support:
8496
+ * http://goto/soy-param-migration
8497
+ * @param {!proto.user.RiskStatus} msg The msg instance to transform.
8498
+ * @return {!Object}
8499
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8500
+ */
8501
+ proto.user.RiskStatus.toObject = function(includeInstance, msg) {
8502
+ var f, obj = {
8503
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
8504
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
8505
+ description: jspb.Message.getFieldWithDefault(msg, 3, "")
8506
+ };
8507
+
8508
+ if (includeInstance) {
8509
+ obj.$jspbMessageInstance = msg;
8510
+ }
8511
+ return obj;
8512
+ };
8513
+ }
8514
+
8515
+
8516
+ /**
8517
+ * Deserializes binary data (in protobuf wire format).
8518
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8519
+ * @return {!proto.user.RiskStatus}
8520
+ */
8521
+ proto.user.RiskStatus.deserializeBinary = function(bytes) {
8522
+ var reader = new jspb.BinaryReader(bytes);
8523
+ var msg = new proto.user.RiskStatus;
8524
+ return proto.user.RiskStatus.deserializeBinaryFromReader(msg, reader);
8525
+ };
8526
+
8527
+
8528
+ /**
8529
+ * Deserializes binary data (in protobuf wire format) from the
8530
+ * given reader into the given message object.
8531
+ * @param {!proto.user.RiskStatus} msg The message object to deserialize into.
8532
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8533
+ * @return {!proto.user.RiskStatus}
8534
+ */
8535
+ proto.user.RiskStatus.deserializeBinaryFromReader = function(msg, reader) {
8536
+ while (reader.nextField()) {
8537
+ if (reader.isEndGroup()) {
8538
+ break;
8539
+ }
8540
+ var field = reader.getFieldNumber();
8541
+ switch (field) {
8542
+ case 1:
8543
+ var value = /** @type {number} */ (reader.readInt32());
8544
+ msg.setId(value);
8545
+ break;
8546
+ case 2:
8547
+ var value = /** @type {string} */ (reader.readString());
8548
+ msg.setTitle(value);
8549
+ break;
8550
+ case 3:
8551
+ var value = /** @type {string} */ (reader.readString());
8552
+ msg.setDescription(value);
8553
+ break;
8554
+ default:
8555
+ reader.skipField();
8556
+ break;
8557
+ }
8558
+ }
8559
+ return msg;
8560
+ };
8561
+
8562
+
8563
+ /**
8564
+ * Serializes the message to binary data (in protobuf wire format).
8565
+ * @return {!Uint8Array}
8566
+ */
8567
+ proto.user.RiskStatus.prototype.serializeBinary = function() {
8568
+ var writer = new jspb.BinaryWriter();
8569
+ proto.user.RiskStatus.serializeBinaryToWriter(this, writer);
8570
+ return writer.getResultBuffer();
8571
+ };
8572
+
8573
+
8574
+ /**
8575
+ * Serializes the given message to binary data (in protobuf wire
8576
+ * format), writing to the given BinaryWriter.
8577
+ * @param {!proto.user.RiskStatus} message
8578
+ * @param {!jspb.BinaryWriter} writer
8579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8580
+ */
8581
+ proto.user.RiskStatus.serializeBinaryToWriter = function(message, writer) {
8582
+ var f = undefined;
8583
+ f = message.getId();
8584
+ if (f !== 0) {
8585
+ writer.writeInt32(
8586
+ 1,
8587
+ f
8588
+ );
8589
+ }
8590
+ f = message.getTitle();
8591
+ if (f.length > 0) {
8592
+ writer.writeString(
8593
+ 2,
8594
+ f
8595
+ );
8596
+ }
8597
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
8598
+ if (f != null) {
8599
+ writer.writeString(
8600
+ 3,
8601
+ f
8602
+ );
8603
+ }
8604
+ };
8605
+
8606
+
8607
+ /**
8608
+ * optional int32 id = 1;
8609
+ * @return {number}
8610
+ */
8611
+ proto.user.RiskStatus.prototype.getId = function() {
8612
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8613
+ };
8614
+
8615
+
8616
+ /**
8617
+ * @param {number} value
8618
+ * @return {!proto.user.RiskStatus} returns this
8619
+ */
8620
+ proto.user.RiskStatus.prototype.setId = function(value) {
8621
+ return jspb.Message.setProto3IntField(this, 1, value);
8622
+ };
8623
+
8624
+
8625
+ /**
8626
+ * optional string title = 2;
8627
+ * @return {string}
8628
+ */
8629
+ proto.user.RiskStatus.prototype.getTitle = function() {
8630
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8631
+ };
8632
+
8633
+
8634
+ /**
8635
+ * @param {string} value
8636
+ * @return {!proto.user.RiskStatus} returns this
8637
+ */
8638
+ proto.user.RiskStatus.prototype.setTitle = function(value) {
8639
+ return jspb.Message.setProto3StringField(this, 2, value);
8640
+ };
8641
+
8642
+
8643
+ /**
8644
+ * optional string description = 3;
8645
+ * @return {string}
8646
+ */
8647
+ proto.user.RiskStatus.prototype.getDescription = function() {
8648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8649
+ };
8650
+
8651
+
8652
+ /**
8653
+ * @param {string} value
8654
+ * @return {!proto.user.RiskStatus} returns this
8655
+ */
8656
+ proto.user.RiskStatus.prototype.setDescription = function(value) {
8657
+ return jspb.Message.setField(this, 3, value);
8658
+ };
8659
+
8660
+
8661
+ /**
8662
+ * Clears the field making it undefined.
8663
+ * @return {!proto.user.RiskStatus} returns this
8664
+ */
8665
+ proto.user.RiskStatus.prototype.clearDescription = function() {
8666
+ return jspb.Message.setField(this, 3, undefined);
8667
+ };
8668
+
8669
+
8670
+ /**
8671
+ * Returns whether this field is set.
8672
+ * @return {boolean}
8673
+ */
8674
+ proto.user.RiskStatus.prototype.hasDescription = function() {
8675
+ return jspb.Message.getField(this, 3) != null;
8676
+ };
8677
+
8678
+
8679
+
8680
+ /**
8681
+ * List of repeated fields within this message type.
8682
+ * @private {!Array<number>}
8683
+ * @const
8684
+ */
8685
+ proto.user.RiskStatusItemsResponse.repeatedFields_ = [1];
8686
+
8687
+
8688
+
8689
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8690
+ /**
8691
+ * Creates an object representation of this proto.
8692
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8693
+ * Optional fields that are not set will be set to undefined.
8694
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8695
+ * For the list of reserved names please see:
8696
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8697
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8698
+ * JSPB instance for transitional soy proto support:
8699
+ * http://goto/soy-param-migration
8700
+ * @return {!Object}
8701
+ */
8702
+ proto.user.RiskStatusItemsResponse.prototype.toObject = function(opt_includeInstance) {
8703
+ return proto.user.RiskStatusItemsResponse.toObject(opt_includeInstance, this);
8704
+ };
8705
+
8706
+
8707
+ /**
8708
+ * Static version of the {@see toObject} method.
8709
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8710
+ * the JSPB instance for transitional soy proto support:
8711
+ * http://goto/soy-param-migration
8712
+ * @param {!proto.user.RiskStatusItemsResponse} msg The msg instance to transform.
8713
+ * @return {!Object}
8714
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8715
+ */
8716
+ proto.user.RiskStatusItemsResponse.toObject = function(includeInstance, msg) {
8717
+ var f, obj = {
8718
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
8719
+ proto.user.RiskStatus.toObject, includeInstance),
8720
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
8721
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
8722
+ };
8723
+
8724
+ if (includeInstance) {
8725
+ obj.$jspbMessageInstance = msg;
8726
+ }
8727
+ return obj;
8728
+ };
8729
+ }
8730
+
8731
+
8732
+ /**
8733
+ * Deserializes binary data (in protobuf wire format).
8734
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8735
+ * @return {!proto.user.RiskStatusItemsResponse}
8736
+ */
8737
+ proto.user.RiskStatusItemsResponse.deserializeBinary = function(bytes) {
8738
+ var reader = new jspb.BinaryReader(bytes);
8739
+ var msg = new proto.user.RiskStatusItemsResponse;
8740
+ return proto.user.RiskStatusItemsResponse.deserializeBinaryFromReader(msg, reader);
8741
+ };
8742
+
8743
+
8744
+ /**
8745
+ * Deserializes binary data (in protobuf wire format) from the
8746
+ * given reader into the given message object.
8747
+ * @param {!proto.user.RiskStatusItemsResponse} msg The message object to deserialize into.
8748
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8749
+ * @return {!proto.user.RiskStatusItemsResponse}
8750
+ */
8751
+ proto.user.RiskStatusItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
8752
+ while (reader.nextField()) {
8753
+ if (reader.isEndGroup()) {
8754
+ break;
8755
+ }
8756
+ var field = reader.getFieldNumber();
8757
+ switch (field) {
8758
+ case 1:
8759
+ var value = new proto.user.RiskStatus;
8760
+ reader.readMessage(value,proto.user.RiskStatus.deserializeBinaryFromReader);
8761
+ msg.addItems(value);
8762
+ break;
8763
+ case 2:
8764
+ var value = /** @type {number} */ (reader.readInt32());
8765
+ msg.setTotalPages(value);
8766
+ break;
8767
+ case 3:
8768
+ var value = /** @type {number} */ (reader.readInt32());
8769
+ msg.setTotalItems(value);
8770
+ break;
8771
+ default:
8772
+ reader.skipField();
8773
+ break;
8774
+ }
8775
+ }
8776
+ return msg;
8777
+ };
8778
+
8779
+
8780
+ /**
8781
+ * Serializes the message to binary data (in protobuf wire format).
8782
+ * @return {!Uint8Array}
8783
+ */
8784
+ proto.user.RiskStatusItemsResponse.prototype.serializeBinary = function() {
8785
+ var writer = new jspb.BinaryWriter();
8786
+ proto.user.RiskStatusItemsResponse.serializeBinaryToWriter(this, writer);
8787
+ return writer.getResultBuffer();
8788
+ };
8789
+
8790
+
8791
+ /**
8792
+ * Serializes the given message to binary data (in protobuf wire
8793
+ * format), writing to the given BinaryWriter.
8794
+ * @param {!proto.user.RiskStatusItemsResponse} message
8795
+ * @param {!jspb.BinaryWriter} writer
8796
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8797
+ */
8798
+ proto.user.RiskStatusItemsResponse.serializeBinaryToWriter = function(message, writer) {
8799
+ var f = undefined;
8800
+ f = message.getItemsList();
8801
+ if (f.length > 0) {
8802
+ writer.writeRepeatedMessage(
8803
+ 1,
8804
+ f,
8805
+ proto.user.RiskStatus.serializeBinaryToWriter
8806
+ );
8807
+ }
8808
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
8809
+ if (f != null) {
8810
+ writer.writeInt32(
8811
+ 2,
8812
+ f
8813
+ );
8814
+ }
8815
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
8816
+ if (f != null) {
8817
+ writer.writeInt32(
8818
+ 3,
8819
+ f
8820
+ );
8821
+ }
8822
+ };
8823
+
8824
+
8825
+ /**
8826
+ * repeated RiskStatus items = 1;
8827
+ * @return {!Array<!proto.user.RiskStatus>}
8828
+ */
8829
+ proto.user.RiskStatusItemsResponse.prototype.getItemsList = function() {
8830
+ return /** @type{!Array<!proto.user.RiskStatus>} */ (
8831
+ jspb.Message.getRepeatedWrapperField(this, proto.user.RiskStatus, 1));
8832
+ };
8833
+
8834
+
8835
+ /**
8836
+ * @param {!Array<!proto.user.RiskStatus>} value
8837
+ * @return {!proto.user.RiskStatusItemsResponse} returns this
8838
+ */
8839
+ proto.user.RiskStatusItemsResponse.prototype.setItemsList = function(value) {
8840
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
8841
+ };
8842
+
8843
+
8844
+ /**
8845
+ * @param {!proto.user.RiskStatus=} opt_value
8846
+ * @param {number=} opt_index
8847
+ * @return {!proto.user.RiskStatus}
8848
+ */
8849
+ proto.user.RiskStatusItemsResponse.prototype.addItems = function(opt_value, opt_index) {
8850
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.RiskStatus, opt_index);
8851
+ };
8852
+
8853
+
8854
+ /**
8855
+ * Clears the list making it empty but non-null.
8856
+ * @return {!proto.user.RiskStatusItemsResponse} returns this
8857
+ */
8858
+ proto.user.RiskStatusItemsResponse.prototype.clearItemsList = function() {
8859
+ return this.setItemsList([]);
8860
+ };
8861
+
8862
+
8863
+ /**
8864
+ * optional int32 total_pages = 2;
8865
+ * @return {number}
8866
+ */
8867
+ proto.user.RiskStatusItemsResponse.prototype.getTotalPages = function() {
8868
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8869
+ };
8870
+
8871
+
8872
+ /**
8873
+ * @param {number} value
8874
+ * @return {!proto.user.RiskStatusItemsResponse} returns this
8875
+ */
8876
+ proto.user.RiskStatusItemsResponse.prototype.setTotalPages = function(value) {
8877
+ return jspb.Message.setField(this, 2, value);
8878
+ };
8879
+
8880
+
8881
+ /**
8882
+ * Clears the field making it undefined.
8883
+ * @return {!proto.user.RiskStatusItemsResponse} returns this
8884
+ */
8885
+ proto.user.RiskStatusItemsResponse.prototype.clearTotalPages = function() {
8886
+ return jspb.Message.setField(this, 2, undefined);
8887
+ };
8888
+
8889
+
8890
+ /**
8891
+ * Returns whether this field is set.
8892
+ * @return {boolean}
8893
+ */
8894
+ proto.user.RiskStatusItemsResponse.prototype.hasTotalPages = function() {
8895
+ return jspb.Message.getField(this, 2) != null;
8896
+ };
8897
+
8898
+
8899
+ /**
8900
+ * optional int32 total_items = 3;
8901
+ * @return {number}
8902
+ */
8903
+ proto.user.RiskStatusItemsResponse.prototype.getTotalItems = function() {
8904
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8905
+ };
8906
+
8907
+
8908
+ /**
8909
+ * @param {number} value
8910
+ * @return {!proto.user.RiskStatusItemsResponse} returns this
8911
+ */
8912
+ proto.user.RiskStatusItemsResponse.prototype.setTotalItems = function(value) {
8913
+ return jspb.Message.setField(this, 3, value);
8914
+ };
8915
+
8916
+
8917
+ /**
8918
+ * Clears the field making it undefined.
8919
+ * @return {!proto.user.RiskStatusItemsResponse} returns this
8920
+ */
8921
+ proto.user.RiskStatusItemsResponse.prototype.clearTotalItems = function() {
8922
+ return jspb.Message.setField(this, 3, undefined);
8923
+ };
8924
+
8925
+
8926
+ /**
8927
+ * Returns whether this field is set.
8928
+ * @return {boolean}
8929
+ */
8930
+ proto.user.RiskStatusItemsResponse.prototype.hasTotalItems = function() {
8931
+ return jspb.Message.getField(this, 3) != null;
8932
+ };
8933
+
8934
+
8935
+
8936
+
8937
+
8938
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8939
+ /**
8940
+ * Creates an object representation of this proto.
8941
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8942
+ * Optional fields that are not set will be set to undefined.
8943
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8944
+ * For the list of reserved names please see:
8945
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8946
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8947
+ * JSPB instance for transitional soy proto support:
8948
+ * http://goto/soy-param-migration
8949
+ * @return {!Object}
8950
+ */
8951
+ proto.user.DashboardRequest.prototype.toObject = function(opt_includeInstance) {
8952
+ return proto.user.DashboardRequest.toObject(opt_includeInstance, this);
8953
+ };
8954
+
8955
+
8956
+ /**
8957
+ * Static version of the {@see toObject} method.
8958
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8959
+ * the JSPB instance for transitional soy proto support:
8960
+ * http://goto/soy-param-migration
8961
+ * @param {!proto.user.DashboardRequest} msg The msg instance to transform.
8962
+ * @return {!Object}
8963
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8964
+ */
8965
+ proto.user.DashboardRequest.toObject = function(includeInstance, msg) {
8966
+ var f, obj = {
8967
+ startDate: jspb.Message.getFieldWithDefault(msg, 1, ""),
8968
+ endDate: jspb.Message.getFieldWithDefault(msg, 2, "")
8969
+ };
8970
+
8971
+ if (includeInstance) {
8972
+ obj.$jspbMessageInstance = msg;
8973
+ }
8974
+ return obj;
8975
+ };
8976
+ }
8977
+
8978
+
8979
+ /**
8980
+ * Deserializes binary data (in protobuf wire format).
8981
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8982
+ * @return {!proto.user.DashboardRequest}
8983
+ */
8984
+ proto.user.DashboardRequest.deserializeBinary = function(bytes) {
8985
+ var reader = new jspb.BinaryReader(bytes);
8986
+ var msg = new proto.user.DashboardRequest;
8987
+ return proto.user.DashboardRequest.deserializeBinaryFromReader(msg, reader);
8988
+ };
8989
+
8990
+
8991
+ /**
8992
+ * Deserializes binary data (in protobuf wire format) from the
8993
+ * given reader into the given message object.
8994
+ * @param {!proto.user.DashboardRequest} msg The message object to deserialize into.
8995
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8996
+ * @return {!proto.user.DashboardRequest}
8997
+ */
8998
+ proto.user.DashboardRequest.deserializeBinaryFromReader = function(msg, reader) {
8999
+ while (reader.nextField()) {
9000
+ if (reader.isEndGroup()) {
9001
+ break;
9002
+ }
9003
+ var field = reader.getFieldNumber();
9004
+ switch (field) {
9005
+ case 1:
9006
+ var value = /** @type {string} */ (reader.readString());
9007
+ msg.setStartDate(value);
9008
+ break;
9009
+ case 2:
9010
+ var value = /** @type {string} */ (reader.readString());
9011
+ msg.setEndDate(value);
9012
+ break;
9013
+ default:
9014
+ reader.skipField();
9015
+ break;
9016
+ }
9017
+ }
9018
+ return msg;
9019
+ };
9020
+
9021
+
9022
+ /**
9023
+ * Serializes the message to binary data (in protobuf wire format).
9024
+ * @return {!Uint8Array}
9025
+ */
9026
+ proto.user.DashboardRequest.prototype.serializeBinary = function() {
9027
+ var writer = new jspb.BinaryWriter();
9028
+ proto.user.DashboardRequest.serializeBinaryToWriter(this, writer);
9029
+ return writer.getResultBuffer();
9030
+ };
9031
+
9032
+
9033
+ /**
9034
+ * Serializes the given message to binary data (in protobuf wire
9035
+ * format), writing to the given BinaryWriter.
9036
+ * @param {!proto.user.DashboardRequest} message
9037
+ * @param {!jspb.BinaryWriter} writer
9038
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9039
+ */
9040
+ proto.user.DashboardRequest.serializeBinaryToWriter = function(message, writer) {
9041
+ var f = undefined;
9042
+ f = message.getStartDate();
9043
+ if (f.length > 0) {
9044
+ writer.writeString(
9045
+ 1,
9046
+ f
9047
+ );
9048
+ }
9049
+ f = message.getEndDate();
9050
+ if (f.length > 0) {
9051
+ writer.writeString(
9052
+ 2,
9053
+ f
9054
+ );
9055
+ }
9056
+ };
9057
+
9058
+
9059
+ /**
9060
+ * optional string start_date = 1;
9061
+ * @return {string}
9062
+ */
9063
+ proto.user.DashboardRequest.prototype.getStartDate = function() {
9064
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9065
+ };
9066
+
9067
+
9068
+ /**
9069
+ * @param {string} value
9070
+ * @return {!proto.user.DashboardRequest} returns this
9071
+ */
9072
+ proto.user.DashboardRequest.prototype.setStartDate = function(value) {
9073
+ return jspb.Message.setProto3StringField(this, 1, value);
9074
+ };
9075
+
9076
+
9077
+ /**
9078
+ * optional string end_date = 2;
9079
+ * @return {string}
9080
+ */
9081
+ proto.user.DashboardRequest.prototype.getEndDate = function() {
9082
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9083
+ };
9084
+
9085
+
9086
+ /**
9087
+ * @param {string} value
9088
+ * @return {!proto.user.DashboardRequest} returns this
9089
+ */
9090
+ proto.user.DashboardRequest.prototype.setEndDate = function(value) {
9091
+ return jspb.Message.setProto3StringField(this, 2, value);
9092
+ };
9093
+
9094
+
9095
+
9096
+
9097
+
9098
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9099
+ /**
9100
+ * Creates an object representation of this proto.
9101
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9102
+ * Optional fields that are not set will be set to undefined.
9103
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9104
+ * For the list of reserved names please see:
9105
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9106
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9107
+ * JSPB instance for transitional soy proto support:
9108
+ * http://goto/soy-param-migration
9109
+ * @return {!Object}
9110
+ */
9111
+ proto.user.DashboardResponse.prototype.toObject = function(opt_includeInstance) {
9112
+ return proto.user.DashboardResponse.toObject(opt_includeInstance, this);
9113
+ };
9114
+
9115
+
9116
+ /**
9117
+ * Static version of the {@see toObject} method.
9118
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9119
+ * the JSPB instance for transitional soy proto support:
9120
+ * http://goto/soy-param-migration
9121
+ * @param {!proto.user.DashboardResponse} msg The msg instance to transform.
9122
+ * @return {!Object}
9123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9124
+ */
9125
+ proto.user.DashboardResponse.toObject = function(includeInstance, msg) {
9126
+ var f, obj = {
9127
+ registrationCount: jspb.Message.getFieldWithDefault(msg, 1, 0),
9128
+ loginCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
9129
+ };
9130
+
9131
+ if (includeInstance) {
9132
+ obj.$jspbMessageInstance = msg;
9133
+ }
9134
+ return obj;
9135
+ };
9136
+ }
9137
+
9138
+
9139
+ /**
9140
+ * Deserializes binary data (in protobuf wire format).
9141
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9142
+ * @return {!proto.user.DashboardResponse}
9143
+ */
9144
+ proto.user.DashboardResponse.deserializeBinary = function(bytes) {
9145
+ var reader = new jspb.BinaryReader(bytes);
9146
+ var msg = new proto.user.DashboardResponse;
9147
+ return proto.user.DashboardResponse.deserializeBinaryFromReader(msg, reader);
9148
+ };
9149
+
9150
+
9151
+ /**
9152
+ * Deserializes binary data (in protobuf wire format) from the
9153
+ * given reader into the given message object.
9154
+ * @param {!proto.user.DashboardResponse} msg The message object to deserialize into.
9155
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9156
+ * @return {!proto.user.DashboardResponse}
9157
+ */
9158
+ proto.user.DashboardResponse.deserializeBinaryFromReader = function(msg, reader) {
9159
+ while (reader.nextField()) {
9160
+ if (reader.isEndGroup()) {
9161
+ break;
9162
+ }
9163
+ var field = reader.getFieldNumber();
9164
+ switch (field) {
9165
+ case 1:
9166
+ var value = /** @type {number} */ (reader.readInt32());
9167
+ msg.setRegistrationCount(value);
9168
+ break;
9169
+ case 2:
9170
+ var value = /** @type {number} */ (reader.readInt32());
9171
+ msg.setLoginCount(value);
9172
+ break;
9173
+ default:
9174
+ reader.skipField();
9175
+ break;
9176
+ }
9177
+ }
9178
+ return msg;
9179
+ };
9180
+
9181
+
9182
+ /**
9183
+ * Serializes the message to binary data (in protobuf wire format).
9184
+ * @return {!Uint8Array}
9185
+ */
9186
+ proto.user.DashboardResponse.prototype.serializeBinary = function() {
9187
+ var writer = new jspb.BinaryWriter();
9188
+ proto.user.DashboardResponse.serializeBinaryToWriter(this, writer);
9189
+ return writer.getResultBuffer();
9190
+ };
9191
+
9192
+
9193
+ /**
9194
+ * Serializes the given message to binary data (in protobuf wire
9195
+ * format), writing to the given BinaryWriter.
9196
+ * @param {!proto.user.DashboardResponse} message
9197
+ * @param {!jspb.BinaryWriter} writer
9198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9199
+ */
9200
+ proto.user.DashboardResponse.serializeBinaryToWriter = function(message, writer) {
9201
+ var f = undefined;
9202
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
9203
+ if (f != null) {
9204
+ writer.writeInt32(
9205
+ 1,
9206
+ f
9207
+ );
9208
+ }
9209
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
9210
+ if (f != null) {
9211
+ writer.writeInt32(
9212
+ 2,
9213
+ f
9214
+ );
9215
+ }
9216
+ };
9217
+
9218
+
9219
+ /**
9220
+ * optional int32 registration_count = 1;
9221
+ * @return {number}
9222
+ */
9223
+ proto.user.DashboardResponse.prototype.getRegistrationCount = function() {
9224
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9225
+ };
9226
+
9227
+
9228
+ /**
9229
+ * @param {number} value
9230
+ * @return {!proto.user.DashboardResponse} returns this
9231
+ */
9232
+ proto.user.DashboardResponse.prototype.setRegistrationCount = function(value) {
9233
+ return jspb.Message.setField(this, 1, value);
9234
+ };
9235
+
9236
+
9237
+ /**
9238
+ * Clears the field making it undefined.
9239
+ * @return {!proto.user.DashboardResponse} returns this
9240
+ */
9241
+ proto.user.DashboardResponse.prototype.clearRegistrationCount = function() {
9242
+ return jspb.Message.setField(this, 1, undefined);
9243
+ };
9244
+
9245
+
9246
+ /**
9247
+ * Returns whether this field is set.
9248
+ * @return {boolean}
9249
+ */
9250
+ proto.user.DashboardResponse.prototype.hasRegistrationCount = function() {
9251
+ return jspb.Message.getField(this, 1) != null;
9252
+ };
9253
+
9254
+
9255
+ /**
9256
+ * optional int32 login_count = 2;
9257
+ * @return {number}
9258
+ */
9259
+ proto.user.DashboardResponse.prototype.getLoginCount = function() {
9260
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
9261
+ };
9262
+
9263
+
9264
+ /**
9265
+ * @param {number} value
9266
+ * @return {!proto.user.DashboardResponse} returns this
9267
+ */
9268
+ proto.user.DashboardResponse.prototype.setLoginCount = function(value) {
9269
+ return jspb.Message.setField(this, 2, value);
9270
+ };
9271
+
9272
+
9273
+ /**
9274
+ * Clears the field making it undefined.
9275
+ * @return {!proto.user.DashboardResponse} returns this
9276
+ */
9277
+ proto.user.DashboardResponse.prototype.clearLoginCount = function() {
9278
+ return jspb.Message.setField(this, 2, undefined);
9279
+ };
9280
+
9281
+
9282
+ /**
9283
+ * Returns whether this field is set.
9284
+ * @return {boolean}
9285
+ */
9286
+ proto.user.DashboardResponse.prototype.hasLoginCount = function() {
9287
+ return jspb.Message.getField(this, 2) != null;
9288
+ };
9289
+
9290
+
8383
9291
  goog.object.extend(exports, proto.user);