protobuf-platform 1.0.229 → 1.0.231
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/package.json +1 -1
- package/user/user.proto +34 -0
- package/user/user_grpc_pb.js +111 -0
- package/user/user_pb.js +1525 -76
package/user/user_pb.js
CHANGED
@@ -23,10 +23,16 @@ var global = (function() {
|
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.user.DashboardRequest', null, global);
|
25
25
|
goog.exportSymbol('proto.user.DashboardResponse', null, global);
|
26
|
+
goog.exportSymbol('proto.user.GetNoteRequest', null, global);
|
26
27
|
goog.exportSymbol('proto.user.GetRoleRequest', null, global);
|
27
28
|
goog.exportSymbol('proto.user.GetSegmentRequest', null, global);
|
28
29
|
goog.exportSymbol('proto.user.LoggedInResponse', null, global);
|
29
30
|
goog.exportSymbol('proto.user.LoginRequest', null, global);
|
31
|
+
goog.exportSymbol('proto.user.NoteItem', null, global);
|
32
|
+
goog.exportSymbol('proto.user.NoteItemsResponse', null, global);
|
33
|
+
goog.exportSymbol('proto.user.NoteRequest', null, global);
|
34
|
+
goog.exportSymbol('proto.user.NoteSearchParams', null, global);
|
35
|
+
goog.exportSymbol('proto.user.NoteStatusResponse', null, global);
|
30
36
|
goog.exportSymbol('proto.user.PaginationRequest', null, global);
|
31
37
|
goog.exportSymbol('proto.user.PingRequest', null, global);
|
32
38
|
goog.exportSymbol('proto.user.PongResponse', null, global);
|
@@ -153,6 +159,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
153
159
|
*/
|
154
160
|
proto.user.SegmentSearchParams.displayName = 'proto.user.SegmentSearchParams';
|
155
161
|
}
|
162
|
+
/**
|
163
|
+
* Generated by JsPbCodeGenerator.
|
164
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
165
|
+
* server response, or constructed directly in Javascript. The array is used
|
166
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
167
|
+
* If no data is provided, the constructed object will be empty, but still
|
168
|
+
* valid.
|
169
|
+
* @extends {jspb.Message}
|
170
|
+
* @constructor
|
171
|
+
*/
|
172
|
+
proto.user.NoteSearchParams = function(opt_data) {
|
173
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
174
|
+
};
|
175
|
+
goog.inherits(proto.user.NoteSearchParams, jspb.Message);
|
176
|
+
if (goog.DEBUG && !COMPILED) {
|
177
|
+
/**
|
178
|
+
* @public
|
179
|
+
* @override
|
180
|
+
*/
|
181
|
+
proto.user.NoteSearchParams.displayName = 'proto.user.NoteSearchParams';
|
182
|
+
}
|
156
183
|
/**
|
157
184
|
* Generated by JsPbCodeGenerator.
|
158
185
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -615,6 +642,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
615
642
|
*/
|
616
643
|
proto.user.DashboardResponse.displayName = 'proto.user.DashboardResponse';
|
617
644
|
}
|
645
|
+
/**
|
646
|
+
* Generated by JsPbCodeGenerator.
|
647
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
648
|
+
* server response, or constructed directly in Javascript. The array is used
|
649
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
650
|
+
* If no data is provided, the constructed object will be empty, but still
|
651
|
+
* valid.
|
652
|
+
* @extends {jspb.Message}
|
653
|
+
* @constructor
|
654
|
+
*/
|
655
|
+
proto.user.NoteRequest = function(opt_data) {
|
656
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
657
|
+
};
|
658
|
+
goog.inherits(proto.user.NoteRequest, jspb.Message);
|
659
|
+
if (goog.DEBUG && !COMPILED) {
|
660
|
+
/**
|
661
|
+
* @public
|
662
|
+
* @override
|
663
|
+
*/
|
664
|
+
proto.user.NoteRequest.displayName = 'proto.user.NoteRequest';
|
665
|
+
}
|
666
|
+
/**
|
667
|
+
* Generated by JsPbCodeGenerator.
|
668
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
669
|
+
* server response, or constructed directly in Javascript. The array is used
|
670
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
671
|
+
* If no data is provided, the constructed object will be empty, but still
|
672
|
+
* valid.
|
673
|
+
* @extends {jspb.Message}
|
674
|
+
* @constructor
|
675
|
+
*/
|
676
|
+
proto.user.NoteItem = function(opt_data) {
|
677
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
678
|
+
};
|
679
|
+
goog.inherits(proto.user.NoteItem, jspb.Message);
|
680
|
+
if (goog.DEBUG && !COMPILED) {
|
681
|
+
/**
|
682
|
+
* @public
|
683
|
+
* @override
|
684
|
+
*/
|
685
|
+
proto.user.NoteItem.displayName = 'proto.user.NoteItem';
|
686
|
+
}
|
687
|
+
/**
|
688
|
+
* Generated by JsPbCodeGenerator.
|
689
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
690
|
+
* server response, or constructed directly in Javascript. The array is used
|
691
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
692
|
+
* If no data is provided, the constructed object will be empty, but still
|
693
|
+
* valid.
|
694
|
+
* @extends {jspb.Message}
|
695
|
+
* @constructor
|
696
|
+
*/
|
697
|
+
proto.user.NoteItemsResponse = function(opt_data) {
|
698
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.user.NoteItemsResponse.repeatedFields_, null);
|
699
|
+
};
|
700
|
+
goog.inherits(proto.user.NoteItemsResponse, jspb.Message);
|
701
|
+
if (goog.DEBUG && !COMPILED) {
|
702
|
+
/**
|
703
|
+
* @public
|
704
|
+
* @override
|
705
|
+
*/
|
706
|
+
proto.user.NoteItemsResponse.displayName = 'proto.user.NoteItemsResponse';
|
707
|
+
}
|
708
|
+
/**
|
709
|
+
* Generated by JsPbCodeGenerator.
|
710
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
711
|
+
* server response, or constructed directly in Javascript. The array is used
|
712
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
713
|
+
* If no data is provided, the constructed object will be empty, but still
|
714
|
+
* valid.
|
715
|
+
* @extends {jspb.Message}
|
716
|
+
* @constructor
|
717
|
+
*/
|
718
|
+
proto.user.NoteStatusResponse = function(opt_data) {
|
719
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
720
|
+
};
|
721
|
+
goog.inherits(proto.user.NoteStatusResponse, jspb.Message);
|
722
|
+
if (goog.DEBUG && !COMPILED) {
|
723
|
+
/**
|
724
|
+
* @public
|
725
|
+
* @override
|
726
|
+
*/
|
727
|
+
proto.user.NoteStatusResponse.displayName = 'proto.user.NoteStatusResponse';
|
728
|
+
}
|
729
|
+
/**
|
730
|
+
* Generated by JsPbCodeGenerator.
|
731
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
732
|
+
* server response, or constructed directly in Javascript. The array is used
|
733
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
734
|
+
* If no data is provided, the constructed object will be empty, but still
|
735
|
+
* valid.
|
736
|
+
* @extends {jspb.Message}
|
737
|
+
* @constructor
|
738
|
+
*/
|
739
|
+
proto.user.GetNoteRequest = function(opt_data) {
|
740
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
741
|
+
};
|
742
|
+
goog.inherits(proto.user.GetNoteRequest, jspb.Message);
|
743
|
+
if (goog.DEBUG && !COMPILED) {
|
744
|
+
/**
|
745
|
+
* @public
|
746
|
+
* @override
|
747
|
+
*/
|
748
|
+
proto.user.GetNoteRequest.displayName = 'proto.user.GetNoteRequest';
|
749
|
+
}
|
618
750
|
|
619
751
|
|
620
752
|
|
@@ -910,7 +1042,8 @@ proto.user.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
910
1042
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
911
1043
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
912
1044
|
userSearchParams: (f = msg.getUserSearchParams()) && proto.user.UserSearchParams.toObject(includeInstance, f),
|
913
|
-
segmentSearchParams: (f = msg.getSegmentSearchParams()) && proto.user.SegmentSearchParams.toObject(includeInstance, f)
|
1045
|
+
segmentSearchParams: (f = msg.getSegmentSearchParams()) && proto.user.SegmentSearchParams.toObject(includeInstance, f),
|
1046
|
+
noteSearchParams: (f = msg.getNoteSearchParams()) && proto.user.NoteSearchParams.toObject(includeInstance, f)
|
914
1047
|
};
|
915
1048
|
|
916
1049
|
if (includeInstance) {
|
@@ -965,6 +1098,11 @@ proto.user.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
965
1098
|
reader.readMessage(value,proto.user.SegmentSearchParams.deserializeBinaryFromReader);
|
966
1099
|
msg.setSegmentSearchParams(value);
|
967
1100
|
break;
|
1101
|
+
case 5:
|
1102
|
+
var value = new proto.user.NoteSearchParams;
|
1103
|
+
reader.readMessage(value,proto.user.NoteSearchParams.deserializeBinaryFromReader);
|
1104
|
+
msg.setNoteSearchParams(value);
|
1105
|
+
break;
|
968
1106
|
default:
|
969
1107
|
reader.skipField();
|
970
1108
|
break;
|
@@ -1024,6 +1162,14 @@ proto.user.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
1024
1162
|
proto.user.SegmentSearchParams.serializeBinaryToWriter
|
1025
1163
|
);
|
1026
1164
|
}
|
1165
|
+
f = message.getNoteSearchParams();
|
1166
|
+
if (f != null) {
|
1167
|
+
writer.writeMessage(
|
1168
|
+
5,
|
1169
|
+
f,
|
1170
|
+
proto.user.NoteSearchParams.serializeBinaryToWriter
|
1171
|
+
);
|
1172
|
+
}
|
1027
1173
|
};
|
1028
1174
|
|
1029
1175
|
|
@@ -1137,6 +1283,43 @@ proto.user.PaginationRequest.prototype.hasSegmentSearchParams = function() {
|
|
1137
1283
|
};
|
1138
1284
|
|
1139
1285
|
|
1286
|
+
/**
|
1287
|
+
* optional NoteSearchParams note_search_params = 5;
|
1288
|
+
* @return {?proto.user.NoteSearchParams}
|
1289
|
+
*/
|
1290
|
+
proto.user.PaginationRequest.prototype.getNoteSearchParams = function() {
|
1291
|
+
return /** @type{?proto.user.NoteSearchParams} */ (
|
1292
|
+
jspb.Message.getWrapperField(this, proto.user.NoteSearchParams, 5));
|
1293
|
+
};
|
1294
|
+
|
1295
|
+
|
1296
|
+
/**
|
1297
|
+
* @param {?proto.user.NoteSearchParams|undefined} value
|
1298
|
+
* @return {!proto.user.PaginationRequest} returns this
|
1299
|
+
*/
|
1300
|
+
proto.user.PaginationRequest.prototype.setNoteSearchParams = function(value) {
|
1301
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
1302
|
+
};
|
1303
|
+
|
1304
|
+
|
1305
|
+
/**
|
1306
|
+
* Clears the message field making it undefined.
|
1307
|
+
* @return {!proto.user.PaginationRequest} returns this
|
1308
|
+
*/
|
1309
|
+
proto.user.PaginationRequest.prototype.clearNoteSearchParams = function() {
|
1310
|
+
return this.setNoteSearchParams(undefined);
|
1311
|
+
};
|
1312
|
+
|
1313
|
+
|
1314
|
+
/**
|
1315
|
+
* Returns whether this field is set.
|
1316
|
+
* @return {boolean}
|
1317
|
+
*/
|
1318
|
+
proto.user.PaginationRequest.prototype.hasNoteSearchParams = function() {
|
1319
|
+
return jspb.Message.getField(this, 5) != null;
|
1320
|
+
};
|
1321
|
+
|
1322
|
+
|
1140
1323
|
|
1141
1324
|
/**
|
1142
1325
|
* List of repeated fields within this message type.
|
@@ -1377,7 +1560,8 @@ proto.user.SegmentSearchParams.prototype.toObject = function(opt_includeInstance
|
|
1377
1560
|
proto.user.SegmentSearchParams.toObject = function(includeInstance, msg) {
|
1378
1561
|
var f, obj = {
|
1379
1562
|
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1380
|
-
geo: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1563
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1564
|
+
segmentId: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
1381
1565
|
};
|
1382
1566
|
|
1383
1567
|
if (includeInstance) {
|
@@ -1422,6 +1606,10 @@ proto.user.SegmentSearchParams.deserializeBinaryFromReader = function(msg, reade
|
|
1422
1606
|
var value = /** @type {string} */ (reader.readString());
|
1423
1607
|
msg.setGeo(value);
|
1424
1608
|
break;
|
1609
|
+
case 3:
|
1610
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1611
|
+
msg.setSegmentId(value);
|
1612
|
+
break;
|
1425
1613
|
default:
|
1426
1614
|
reader.skipField();
|
1427
1615
|
break;
|
@@ -1465,6 +1653,13 @@ proto.user.SegmentSearchParams.serializeBinaryToWriter = function(message, write
|
|
1465
1653
|
f
|
1466
1654
|
);
|
1467
1655
|
}
|
1656
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
1657
|
+
if (f != null) {
|
1658
|
+
writer.writeInt32(
|
1659
|
+
3,
|
1660
|
+
f
|
1661
|
+
);
|
1662
|
+
}
|
1468
1663
|
};
|
1469
1664
|
|
1470
1665
|
|
@@ -1540,6 +1735,42 @@ proto.user.SegmentSearchParams.prototype.hasGeo = function() {
|
|
1540
1735
|
};
|
1541
1736
|
|
1542
1737
|
|
1738
|
+
/**
|
1739
|
+
* optional int32 segment_id = 3;
|
1740
|
+
* @return {number}
|
1741
|
+
*/
|
1742
|
+
proto.user.SegmentSearchParams.prototype.getSegmentId = function() {
|
1743
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1744
|
+
};
|
1745
|
+
|
1746
|
+
|
1747
|
+
/**
|
1748
|
+
* @param {number} value
|
1749
|
+
* @return {!proto.user.SegmentSearchParams} returns this
|
1750
|
+
*/
|
1751
|
+
proto.user.SegmentSearchParams.prototype.setSegmentId = function(value) {
|
1752
|
+
return jspb.Message.setField(this, 3, value);
|
1753
|
+
};
|
1754
|
+
|
1755
|
+
|
1756
|
+
/**
|
1757
|
+
* Clears the field making it undefined.
|
1758
|
+
* @return {!proto.user.SegmentSearchParams} returns this
|
1759
|
+
*/
|
1760
|
+
proto.user.SegmentSearchParams.prototype.clearSegmentId = function() {
|
1761
|
+
return jspb.Message.setField(this, 3, undefined);
|
1762
|
+
};
|
1763
|
+
|
1764
|
+
|
1765
|
+
/**
|
1766
|
+
* Returns whether this field is set.
|
1767
|
+
* @return {boolean}
|
1768
|
+
*/
|
1769
|
+
proto.user.SegmentSearchParams.prototype.hasSegmentId = function() {
|
1770
|
+
return jspb.Message.getField(this, 3) != null;
|
1771
|
+
};
|
1772
|
+
|
1773
|
+
|
1543
1774
|
|
1544
1775
|
|
1545
1776
|
|
@@ -1556,8 +1787,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1556
1787
|
* http://goto/soy-param-migration
|
1557
1788
|
* @return {!Object}
|
1558
1789
|
*/
|
1559
|
-
proto.user.
|
1560
|
-
return proto.user.
|
1790
|
+
proto.user.NoteSearchParams.prototype.toObject = function(opt_includeInstance) {
|
1791
|
+
return proto.user.NoteSearchParams.toObject(opt_includeInstance, this);
|
1561
1792
|
};
|
1562
1793
|
|
1563
1794
|
|
@@ -1566,25 +1797,13 @@ proto.user.RegistrationRequest.prototype.toObject = function(opt_includeInstance
|
|
1566
1797
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1567
1798
|
* the JSPB instance for transitional soy proto support:
|
1568
1799
|
* http://goto/soy-param-migration
|
1569
|
-
* @param {!proto.user.
|
1800
|
+
* @param {!proto.user.NoteSearchParams} msg The msg instance to transform.
|
1570
1801
|
* @return {!Object}
|
1571
1802
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1572
1803
|
*/
|
1573
|
-
proto.user.
|
1804
|
+
proto.user.NoteSearchParams.toObject = function(includeInstance, msg) {
|
1574
1805
|
var f, obj = {
|
1575
|
-
|
1576
|
-
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1577
|
-
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1578
|
-
country: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1579
|
-
city: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
1580
|
-
timezone: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1581
|
-
firstName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
1582
|
-
lastName: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1583
|
-
birthday: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1584
|
-
locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
1585
|
-
emailSubscription: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
1586
|
-
affiliateId: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
1587
|
-
promoCode: jspb.Message.getFieldWithDefault(msg, 13, "")
|
1806
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
1588
1807
|
};
|
1589
1808
|
|
1590
1809
|
if (includeInstance) {
|
@@ -1598,80 +1817,32 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
|
|
1598
1817
|
/**
|
1599
1818
|
* Deserializes binary data (in protobuf wire format).
|
1600
1819
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1601
|
-
* @return {!proto.user.
|
1820
|
+
* @return {!proto.user.NoteSearchParams}
|
1602
1821
|
*/
|
1603
|
-
proto.user.
|
1822
|
+
proto.user.NoteSearchParams.deserializeBinary = function(bytes) {
|
1604
1823
|
var reader = new jspb.BinaryReader(bytes);
|
1605
|
-
var msg = new proto.user.
|
1606
|
-
return proto.user.
|
1824
|
+
var msg = new proto.user.NoteSearchParams;
|
1825
|
+
return proto.user.NoteSearchParams.deserializeBinaryFromReader(msg, reader);
|
1607
1826
|
};
|
1608
1827
|
|
1609
1828
|
|
1610
1829
|
/**
|
1611
1830
|
* Deserializes binary data (in protobuf wire format) from the
|
1612
1831
|
* given reader into the given message object.
|
1613
|
-
* @param {!proto.user.
|
1832
|
+
* @param {!proto.user.NoteSearchParams} msg The message object to deserialize into.
|
1614
1833
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1615
|
-
* @return {!proto.user.
|
1834
|
+
* @return {!proto.user.NoteSearchParams}
|
1616
1835
|
*/
|
1617
|
-
proto.user.
|
1836
|
+
proto.user.NoteSearchParams.deserializeBinaryFromReader = function(msg, reader) {
|
1618
1837
|
while (reader.nextField()) {
|
1619
1838
|
if (reader.isEndGroup()) {
|
1620
1839
|
break;
|
1621
1840
|
}
|
1622
1841
|
var field = reader.getFieldNumber();
|
1623
1842
|
switch (field) {
|
1624
|
-
case 1:
|
1625
|
-
var value = /** @type {string} */ (reader.readString());
|
1626
|
-
msg.setEmail(value);
|
1627
|
-
break;
|
1628
1843
|
case 2:
|
1629
|
-
var value = /** @type {string} */ (reader.readString());
|
1630
|
-
msg.setPassword(value);
|
1631
|
-
break;
|
1632
|
-
case 3:
|
1633
|
-
var value = /** @type {string} */ (reader.readString());
|
1634
|
-
msg.setCurrency(value);
|
1635
|
-
break;
|
1636
|
-
case 4:
|
1637
|
-
var value = /** @type {string} */ (reader.readString());
|
1638
|
-
msg.setCountry(value);
|
1639
|
-
break;
|
1640
|
-
case 5:
|
1641
|
-
var value = /** @type {string} */ (reader.readString());
|
1642
|
-
msg.setCity(value);
|
1643
|
-
break;
|
1644
|
-
case 6:
|
1645
|
-
var value = /** @type {string} */ (reader.readString());
|
1646
|
-
msg.setTimezone(value);
|
1647
|
-
break;
|
1648
|
-
case 7:
|
1649
|
-
var value = /** @type {string} */ (reader.readString());
|
1650
|
-
msg.setFirstName(value);
|
1651
|
-
break;
|
1652
|
-
case 8:
|
1653
|
-
var value = /** @type {string} */ (reader.readString());
|
1654
|
-
msg.setLastName(value);
|
1655
|
-
break;
|
1656
|
-
case 9:
|
1657
|
-
var value = /** @type {string} */ (reader.readString());
|
1658
|
-
msg.setBirthday(value);
|
1659
|
-
break;
|
1660
|
-
case 10:
|
1661
|
-
var value = /** @type {string} */ (reader.readString());
|
1662
|
-
msg.setLocale(value);
|
1663
|
-
break;
|
1664
|
-
case 11:
|
1665
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
1666
|
-
msg.setEmailSubscription(value);
|
1667
|
-
break;
|
1668
|
-
case 12:
|
1669
1844
|
var value = /** @type {number} */ (reader.readInt32());
|
1670
|
-
msg.
|
1671
|
-
break;
|
1672
|
-
case 13:
|
1673
|
-
var value = /** @type {string} */ (reader.readString());
|
1674
|
-
msg.setPromoCode(value);
|
1845
|
+
msg.setUserId(value);
|
1675
1846
|
break;
|
1676
1847
|
default:
|
1677
1848
|
reader.skipField();
|
@@ -1686,7 +1857,215 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
|
|
1686
1857
|
* Serializes the message to binary data (in protobuf wire format).
|
1687
1858
|
* @return {!Uint8Array}
|
1688
1859
|
*/
|
1689
|
-
proto.user.
|
1860
|
+
proto.user.NoteSearchParams.prototype.serializeBinary = function() {
|
1861
|
+
var writer = new jspb.BinaryWriter();
|
1862
|
+
proto.user.NoteSearchParams.serializeBinaryToWriter(this, writer);
|
1863
|
+
return writer.getResultBuffer();
|
1864
|
+
};
|
1865
|
+
|
1866
|
+
|
1867
|
+
/**
|
1868
|
+
* Serializes the given message to binary data (in protobuf wire
|
1869
|
+
* format), writing to the given BinaryWriter.
|
1870
|
+
* @param {!proto.user.NoteSearchParams} message
|
1871
|
+
* @param {!jspb.BinaryWriter} writer
|
1872
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1873
|
+
*/
|
1874
|
+
proto.user.NoteSearchParams.serializeBinaryToWriter = function(message, writer) {
|
1875
|
+
var f = undefined;
|
1876
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1877
|
+
if (f != null) {
|
1878
|
+
writer.writeInt32(
|
1879
|
+
2,
|
1880
|
+
f
|
1881
|
+
);
|
1882
|
+
}
|
1883
|
+
};
|
1884
|
+
|
1885
|
+
|
1886
|
+
/**
|
1887
|
+
* optional int32 user_id = 2;
|
1888
|
+
* @return {number}
|
1889
|
+
*/
|
1890
|
+
proto.user.NoteSearchParams.prototype.getUserId = function() {
|
1891
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1892
|
+
};
|
1893
|
+
|
1894
|
+
|
1895
|
+
/**
|
1896
|
+
* @param {number} value
|
1897
|
+
* @return {!proto.user.NoteSearchParams} returns this
|
1898
|
+
*/
|
1899
|
+
proto.user.NoteSearchParams.prototype.setUserId = function(value) {
|
1900
|
+
return jspb.Message.setField(this, 2, value);
|
1901
|
+
};
|
1902
|
+
|
1903
|
+
|
1904
|
+
/**
|
1905
|
+
* Clears the field making it undefined.
|
1906
|
+
* @return {!proto.user.NoteSearchParams} returns this
|
1907
|
+
*/
|
1908
|
+
proto.user.NoteSearchParams.prototype.clearUserId = function() {
|
1909
|
+
return jspb.Message.setField(this, 2, undefined);
|
1910
|
+
};
|
1911
|
+
|
1912
|
+
|
1913
|
+
/**
|
1914
|
+
* Returns whether this field is set.
|
1915
|
+
* @return {boolean}
|
1916
|
+
*/
|
1917
|
+
proto.user.NoteSearchParams.prototype.hasUserId = function() {
|
1918
|
+
return jspb.Message.getField(this, 2) != null;
|
1919
|
+
};
|
1920
|
+
|
1921
|
+
|
1922
|
+
|
1923
|
+
|
1924
|
+
|
1925
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1926
|
+
/**
|
1927
|
+
* Creates an object representation of this proto.
|
1928
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1929
|
+
* Optional fields that are not set will be set to undefined.
|
1930
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1931
|
+
* For the list of reserved names please see:
|
1932
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1933
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1934
|
+
* JSPB instance for transitional soy proto support:
|
1935
|
+
* http://goto/soy-param-migration
|
1936
|
+
* @return {!Object}
|
1937
|
+
*/
|
1938
|
+
proto.user.RegistrationRequest.prototype.toObject = function(opt_includeInstance) {
|
1939
|
+
return proto.user.RegistrationRequest.toObject(opt_includeInstance, this);
|
1940
|
+
};
|
1941
|
+
|
1942
|
+
|
1943
|
+
/**
|
1944
|
+
* Static version of the {@see toObject} method.
|
1945
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1946
|
+
* the JSPB instance for transitional soy proto support:
|
1947
|
+
* http://goto/soy-param-migration
|
1948
|
+
* @param {!proto.user.RegistrationRequest} msg The msg instance to transform.
|
1949
|
+
* @return {!Object}
|
1950
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1951
|
+
*/
|
1952
|
+
proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
|
1953
|
+
var f, obj = {
|
1954
|
+
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1955
|
+
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1956
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1957
|
+
country: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1958
|
+
city: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
1959
|
+
timezone: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1960
|
+
firstName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
1961
|
+
lastName: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1962
|
+
birthday: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1963
|
+
locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
1964
|
+
emailSubscription: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
1965
|
+
affiliateId: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
1966
|
+
promoCode: jspb.Message.getFieldWithDefault(msg, 13, "")
|
1967
|
+
};
|
1968
|
+
|
1969
|
+
if (includeInstance) {
|
1970
|
+
obj.$jspbMessageInstance = msg;
|
1971
|
+
}
|
1972
|
+
return obj;
|
1973
|
+
};
|
1974
|
+
}
|
1975
|
+
|
1976
|
+
|
1977
|
+
/**
|
1978
|
+
* Deserializes binary data (in protobuf wire format).
|
1979
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1980
|
+
* @return {!proto.user.RegistrationRequest}
|
1981
|
+
*/
|
1982
|
+
proto.user.RegistrationRequest.deserializeBinary = function(bytes) {
|
1983
|
+
var reader = new jspb.BinaryReader(bytes);
|
1984
|
+
var msg = new proto.user.RegistrationRequest;
|
1985
|
+
return proto.user.RegistrationRequest.deserializeBinaryFromReader(msg, reader);
|
1986
|
+
};
|
1987
|
+
|
1988
|
+
|
1989
|
+
/**
|
1990
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1991
|
+
* given reader into the given message object.
|
1992
|
+
* @param {!proto.user.RegistrationRequest} msg The message object to deserialize into.
|
1993
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1994
|
+
* @return {!proto.user.RegistrationRequest}
|
1995
|
+
*/
|
1996
|
+
proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1997
|
+
while (reader.nextField()) {
|
1998
|
+
if (reader.isEndGroup()) {
|
1999
|
+
break;
|
2000
|
+
}
|
2001
|
+
var field = reader.getFieldNumber();
|
2002
|
+
switch (field) {
|
2003
|
+
case 1:
|
2004
|
+
var value = /** @type {string} */ (reader.readString());
|
2005
|
+
msg.setEmail(value);
|
2006
|
+
break;
|
2007
|
+
case 2:
|
2008
|
+
var value = /** @type {string} */ (reader.readString());
|
2009
|
+
msg.setPassword(value);
|
2010
|
+
break;
|
2011
|
+
case 3:
|
2012
|
+
var value = /** @type {string} */ (reader.readString());
|
2013
|
+
msg.setCurrency(value);
|
2014
|
+
break;
|
2015
|
+
case 4:
|
2016
|
+
var value = /** @type {string} */ (reader.readString());
|
2017
|
+
msg.setCountry(value);
|
2018
|
+
break;
|
2019
|
+
case 5:
|
2020
|
+
var value = /** @type {string} */ (reader.readString());
|
2021
|
+
msg.setCity(value);
|
2022
|
+
break;
|
2023
|
+
case 6:
|
2024
|
+
var value = /** @type {string} */ (reader.readString());
|
2025
|
+
msg.setTimezone(value);
|
2026
|
+
break;
|
2027
|
+
case 7:
|
2028
|
+
var value = /** @type {string} */ (reader.readString());
|
2029
|
+
msg.setFirstName(value);
|
2030
|
+
break;
|
2031
|
+
case 8:
|
2032
|
+
var value = /** @type {string} */ (reader.readString());
|
2033
|
+
msg.setLastName(value);
|
2034
|
+
break;
|
2035
|
+
case 9:
|
2036
|
+
var value = /** @type {string} */ (reader.readString());
|
2037
|
+
msg.setBirthday(value);
|
2038
|
+
break;
|
2039
|
+
case 10:
|
2040
|
+
var value = /** @type {string} */ (reader.readString());
|
2041
|
+
msg.setLocale(value);
|
2042
|
+
break;
|
2043
|
+
case 11:
|
2044
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
2045
|
+
msg.setEmailSubscription(value);
|
2046
|
+
break;
|
2047
|
+
case 12:
|
2048
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2049
|
+
msg.setAffiliateId(value);
|
2050
|
+
break;
|
2051
|
+
case 13:
|
2052
|
+
var value = /** @type {string} */ (reader.readString());
|
2053
|
+
msg.setPromoCode(value);
|
2054
|
+
break;
|
2055
|
+
default:
|
2056
|
+
reader.skipField();
|
2057
|
+
break;
|
2058
|
+
}
|
2059
|
+
}
|
2060
|
+
return msg;
|
2061
|
+
};
|
2062
|
+
|
2063
|
+
|
2064
|
+
/**
|
2065
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2066
|
+
* @return {!Uint8Array}
|
2067
|
+
*/
|
2068
|
+
proto.user.RegistrationRequest.prototype.serializeBinary = function() {
|
1690
2069
|
var writer = new jspb.BinaryWriter();
|
1691
2070
|
proto.user.RegistrationRequest.serializeBinaryToWriter(this, writer);
|
1692
2071
|
return writer.getResultBuffer();
|
@@ -9402,4 +9781,1074 @@ proto.user.DashboardResponse.prototype.hasLoginCount = function() {
|
|
9402
9781
|
};
|
9403
9782
|
|
9404
9783
|
|
9784
|
+
|
9785
|
+
|
9786
|
+
|
9787
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
9788
|
+
/**
|
9789
|
+
* Creates an object representation of this proto.
|
9790
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
9791
|
+
* Optional fields that are not set will be set to undefined.
|
9792
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
9793
|
+
* For the list of reserved names please see:
|
9794
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
9795
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
9796
|
+
* JSPB instance for transitional soy proto support:
|
9797
|
+
* http://goto/soy-param-migration
|
9798
|
+
* @return {!Object}
|
9799
|
+
*/
|
9800
|
+
proto.user.NoteRequest.prototype.toObject = function(opt_includeInstance) {
|
9801
|
+
return proto.user.NoteRequest.toObject(opt_includeInstance, this);
|
9802
|
+
};
|
9803
|
+
|
9804
|
+
|
9805
|
+
/**
|
9806
|
+
* Static version of the {@see toObject} method.
|
9807
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
9808
|
+
* the JSPB instance for transitional soy proto support:
|
9809
|
+
* http://goto/soy-param-migration
|
9810
|
+
* @param {!proto.user.NoteRequest} msg The msg instance to transform.
|
9811
|
+
* @return {!Object}
|
9812
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
9813
|
+
*/
|
9814
|
+
proto.user.NoteRequest.toObject = function(includeInstance, msg) {
|
9815
|
+
var f, obj = {
|
9816
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
9817
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
9818
|
+
userId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
9819
|
+
makerId: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
9820
|
+
};
|
9821
|
+
|
9822
|
+
if (includeInstance) {
|
9823
|
+
obj.$jspbMessageInstance = msg;
|
9824
|
+
}
|
9825
|
+
return obj;
|
9826
|
+
};
|
9827
|
+
}
|
9828
|
+
|
9829
|
+
|
9830
|
+
/**
|
9831
|
+
* Deserializes binary data (in protobuf wire format).
|
9832
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
9833
|
+
* @return {!proto.user.NoteRequest}
|
9834
|
+
*/
|
9835
|
+
proto.user.NoteRequest.deserializeBinary = function(bytes) {
|
9836
|
+
var reader = new jspb.BinaryReader(bytes);
|
9837
|
+
var msg = new proto.user.NoteRequest;
|
9838
|
+
return proto.user.NoteRequest.deserializeBinaryFromReader(msg, reader);
|
9839
|
+
};
|
9840
|
+
|
9841
|
+
|
9842
|
+
/**
|
9843
|
+
* Deserializes binary data (in protobuf wire format) from the
|
9844
|
+
* given reader into the given message object.
|
9845
|
+
* @param {!proto.user.NoteRequest} msg The message object to deserialize into.
|
9846
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
9847
|
+
* @return {!proto.user.NoteRequest}
|
9848
|
+
*/
|
9849
|
+
proto.user.NoteRequest.deserializeBinaryFromReader = function(msg, reader) {
|
9850
|
+
while (reader.nextField()) {
|
9851
|
+
if (reader.isEndGroup()) {
|
9852
|
+
break;
|
9853
|
+
}
|
9854
|
+
var field = reader.getFieldNumber();
|
9855
|
+
switch (field) {
|
9856
|
+
case 1:
|
9857
|
+
var value = /** @type {number} */ (reader.readInt32());
|
9858
|
+
msg.setId(value);
|
9859
|
+
break;
|
9860
|
+
case 2:
|
9861
|
+
var value = /** @type {string} */ (reader.readString());
|
9862
|
+
msg.setContent(value);
|
9863
|
+
break;
|
9864
|
+
case 3:
|
9865
|
+
var value = /** @type {number} */ (reader.readInt32());
|
9866
|
+
msg.setUserId(value);
|
9867
|
+
break;
|
9868
|
+
case 4:
|
9869
|
+
var value = /** @type {number} */ (reader.readInt32());
|
9870
|
+
msg.setMakerId(value);
|
9871
|
+
break;
|
9872
|
+
default:
|
9873
|
+
reader.skipField();
|
9874
|
+
break;
|
9875
|
+
}
|
9876
|
+
}
|
9877
|
+
return msg;
|
9878
|
+
};
|
9879
|
+
|
9880
|
+
|
9881
|
+
/**
|
9882
|
+
* Serializes the message to binary data (in protobuf wire format).
|
9883
|
+
* @return {!Uint8Array}
|
9884
|
+
*/
|
9885
|
+
proto.user.NoteRequest.prototype.serializeBinary = function() {
|
9886
|
+
var writer = new jspb.BinaryWriter();
|
9887
|
+
proto.user.NoteRequest.serializeBinaryToWriter(this, writer);
|
9888
|
+
return writer.getResultBuffer();
|
9889
|
+
};
|
9890
|
+
|
9891
|
+
|
9892
|
+
/**
|
9893
|
+
* Serializes the given message to binary data (in protobuf wire
|
9894
|
+
* format), writing to the given BinaryWriter.
|
9895
|
+
* @param {!proto.user.NoteRequest} message
|
9896
|
+
* @param {!jspb.BinaryWriter} writer
|
9897
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
9898
|
+
*/
|
9899
|
+
proto.user.NoteRequest.serializeBinaryToWriter = function(message, writer) {
|
9900
|
+
var f = undefined;
|
9901
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
9902
|
+
if (f != null) {
|
9903
|
+
writer.writeInt32(
|
9904
|
+
1,
|
9905
|
+
f
|
9906
|
+
);
|
9907
|
+
}
|
9908
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
9909
|
+
if (f != null) {
|
9910
|
+
writer.writeString(
|
9911
|
+
2,
|
9912
|
+
f
|
9913
|
+
);
|
9914
|
+
}
|
9915
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
9916
|
+
if (f != null) {
|
9917
|
+
writer.writeInt32(
|
9918
|
+
3,
|
9919
|
+
f
|
9920
|
+
);
|
9921
|
+
}
|
9922
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
9923
|
+
if (f != null) {
|
9924
|
+
writer.writeInt32(
|
9925
|
+
4,
|
9926
|
+
f
|
9927
|
+
);
|
9928
|
+
}
|
9929
|
+
};
|
9930
|
+
|
9931
|
+
|
9932
|
+
/**
|
9933
|
+
* optional int32 id = 1;
|
9934
|
+
* @return {number}
|
9935
|
+
*/
|
9936
|
+
proto.user.NoteRequest.prototype.getId = function() {
|
9937
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
9938
|
+
};
|
9939
|
+
|
9940
|
+
|
9941
|
+
/**
|
9942
|
+
* @param {number} value
|
9943
|
+
* @return {!proto.user.NoteRequest} returns this
|
9944
|
+
*/
|
9945
|
+
proto.user.NoteRequest.prototype.setId = function(value) {
|
9946
|
+
return jspb.Message.setField(this, 1, value);
|
9947
|
+
};
|
9948
|
+
|
9949
|
+
|
9950
|
+
/**
|
9951
|
+
* Clears the field making it undefined.
|
9952
|
+
* @return {!proto.user.NoteRequest} returns this
|
9953
|
+
*/
|
9954
|
+
proto.user.NoteRequest.prototype.clearId = function() {
|
9955
|
+
return jspb.Message.setField(this, 1, undefined);
|
9956
|
+
};
|
9957
|
+
|
9958
|
+
|
9959
|
+
/**
|
9960
|
+
* Returns whether this field is set.
|
9961
|
+
* @return {boolean}
|
9962
|
+
*/
|
9963
|
+
proto.user.NoteRequest.prototype.hasId = function() {
|
9964
|
+
return jspb.Message.getField(this, 1) != null;
|
9965
|
+
};
|
9966
|
+
|
9967
|
+
|
9968
|
+
/**
|
9969
|
+
* optional string content = 2;
|
9970
|
+
* @return {string}
|
9971
|
+
*/
|
9972
|
+
proto.user.NoteRequest.prototype.getContent = function() {
|
9973
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
9974
|
+
};
|
9975
|
+
|
9976
|
+
|
9977
|
+
/**
|
9978
|
+
* @param {string} value
|
9979
|
+
* @return {!proto.user.NoteRequest} returns this
|
9980
|
+
*/
|
9981
|
+
proto.user.NoteRequest.prototype.setContent = function(value) {
|
9982
|
+
return jspb.Message.setField(this, 2, value);
|
9983
|
+
};
|
9984
|
+
|
9985
|
+
|
9986
|
+
/**
|
9987
|
+
* Clears the field making it undefined.
|
9988
|
+
* @return {!proto.user.NoteRequest} returns this
|
9989
|
+
*/
|
9990
|
+
proto.user.NoteRequest.prototype.clearContent = function() {
|
9991
|
+
return jspb.Message.setField(this, 2, undefined);
|
9992
|
+
};
|
9993
|
+
|
9994
|
+
|
9995
|
+
/**
|
9996
|
+
* Returns whether this field is set.
|
9997
|
+
* @return {boolean}
|
9998
|
+
*/
|
9999
|
+
proto.user.NoteRequest.prototype.hasContent = function() {
|
10000
|
+
return jspb.Message.getField(this, 2) != null;
|
10001
|
+
};
|
10002
|
+
|
10003
|
+
|
10004
|
+
/**
|
10005
|
+
* optional int32 user_id = 3;
|
10006
|
+
* @return {number}
|
10007
|
+
*/
|
10008
|
+
proto.user.NoteRequest.prototype.getUserId = function() {
|
10009
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
10010
|
+
};
|
10011
|
+
|
10012
|
+
|
10013
|
+
/**
|
10014
|
+
* @param {number} value
|
10015
|
+
* @return {!proto.user.NoteRequest} returns this
|
10016
|
+
*/
|
10017
|
+
proto.user.NoteRequest.prototype.setUserId = function(value) {
|
10018
|
+
return jspb.Message.setField(this, 3, value);
|
10019
|
+
};
|
10020
|
+
|
10021
|
+
|
10022
|
+
/**
|
10023
|
+
* Clears the field making it undefined.
|
10024
|
+
* @return {!proto.user.NoteRequest} returns this
|
10025
|
+
*/
|
10026
|
+
proto.user.NoteRequest.prototype.clearUserId = function() {
|
10027
|
+
return jspb.Message.setField(this, 3, undefined);
|
10028
|
+
};
|
10029
|
+
|
10030
|
+
|
10031
|
+
/**
|
10032
|
+
* Returns whether this field is set.
|
10033
|
+
* @return {boolean}
|
10034
|
+
*/
|
10035
|
+
proto.user.NoteRequest.prototype.hasUserId = function() {
|
10036
|
+
return jspb.Message.getField(this, 3) != null;
|
10037
|
+
};
|
10038
|
+
|
10039
|
+
|
10040
|
+
/**
|
10041
|
+
* optional int32 maker_id = 4;
|
10042
|
+
* @return {number}
|
10043
|
+
*/
|
10044
|
+
proto.user.NoteRequest.prototype.getMakerId = function() {
|
10045
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
10046
|
+
};
|
10047
|
+
|
10048
|
+
|
10049
|
+
/**
|
10050
|
+
* @param {number} value
|
10051
|
+
* @return {!proto.user.NoteRequest} returns this
|
10052
|
+
*/
|
10053
|
+
proto.user.NoteRequest.prototype.setMakerId = function(value) {
|
10054
|
+
return jspb.Message.setField(this, 4, value);
|
10055
|
+
};
|
10056
|
+
|
10057
|
+
|
10058
|
+
/**
|
10059
|
+
* Clears the field making it undefined.
|
10060
|
+
* @return {!proto.user.NoteRequest} returns this
|
10061
|
+
*/
|
10062
|
+
proto.user.NoteRequest.prototype.clearMakerId = function() {
|
10063
|
+
return jspb.Message.setField(this, 4, undefined);
|
10064
|
+
};
|
10065
|
+
|
10066
|
+
|
10067
|
+
/**
|
10068
|
+
* Returns whether this field is set.
|
10069
|
+
* @return {boolean}
|
10070
|
+
*/
|
10071
|
+
proto.user.NoteRequest.prototype.hasMakerId = function() {
|
10072
|
+
return jspb.Message.getField(this, 4) != null;
|
10073
|
+
};
|
10074
|
+
|
10075
|
+
|
10076
|
+
|
10077
|
+
|
10078
|
+
|
10079
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
10080
|
+
/**
|
10081
|
+
* Creates an object representation of this proto.
|
10082
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
10083
|
+
* Optional fields that are not set will be set to undefined.
|
10084
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
10085
|
+
* For the list of reserved names please see:
|
10086
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
10087
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
10088
|
+
* JSPB instance for transitional soy proto support:
|
10089
|
+
* http://goto/soy-param-migration
|
10090
|
+
* @return {!Object}
|
10091
|
+
*/
|
10092
|
+
proto.user.NoteItem.prototype.toObject = function(opt_includeInstance) {
|
10093
|
+
return proto.user.NoteItem.toObject(opt_includeInstance, this);
|
10094
|
+
};
|
10095
|
+
|
10096
|
+
|
10097
|
+
/**
|
10098
|
+
* Static version of the {@see toObject} method.
|
10099
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
10100
|
+
* the JSPB instance for transitional soy proto support:
|
10101
|
+
* http://goto/soy-param-migration
|
10102
|
+
* @param {!proto.user.NoteItem} msg The msg instance to transform.
|
10103
|
+
* @return {!Object}
|
10104
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10105
|
+
*/
|
10106
|
+
proto.user.NoteItem.toObject = function(includeInstance, msg) {
|
10107
|
+
var f, obj = {
|
10108
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
10109
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
10110
|
+
created: jspb.Message.getFieldWithDefault(msg, 3, "")
|
10111
|
+
};
|
10112
|
+
|
10113
|
+
if (includeInstance) {
|
10114
|
+
obj.$jspbMessageInstance = msg;
|
10115
|
+
}
|
10116
|
+
return obj;
|
10117
|
+
};
|
10118
|
+
}
|
10119
|
+
|
10120
|
+
|
10121
|
+
/**
|
10122
|
+
* Deserializes binary data (in protobuf wire format).
|
10123
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
10124
|
+
* @return {!proto.user.NoteItem}
|
10125
|
+
*/
|
10126
|
+
proto.user.NoteItem.deserializeBinary = function(bytes) {
|
10127
|
+
var reader = new jspb.BinaryReader(bytes);
|
10128
|
+
var msg = new proto.user.NoteItem;
|
10129
|
+
return proto.user.NoteItem.deserializeBinaryFromReader(msg, reader);
|
10130
|
+
};
|
10131
|
+
|
10132
|
+
|
10133
|
+
/**
|
10134
|
+
* Deserializes binary data (in protobuf wire format) from the
|
10135
|
+
* given reader into the given message object.
|
10136
|
+
* @param {!proto.user.NoteItem} msg The message object to deserialize into.
|
10137
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
10138
|
+
* @return {!proto.user.NoteItem}
|
10139
|
+
*/
|
10140
|
+
proto.user.NoteItem.deserializeBinaryFromReader = function(msg, reader) {
|
10141
|
+
while (reader.nextField()) {
|
10142
|
+
if (reader.isEndGroup()) {
|
10143
|
+
break;
|
10144
|
+
}
|
10145
|
+
var field = reader.getFieldNumber();
|
10146
|
+
switch (field) {
|
10147
|
+
case 1:
|
10148
|
+
var value = /** @type {number} */ (reader.readInt32());
|
10149
|
+
msg.setId(value);
|
10150
|
+
break;
|
10151
|
+
case 2:
|
10152
|
+
var value = /** @type {string} */ (reader.readString());
|
10153
|
+
msg.setContent(value);
|
10154
|
+
break;
|
10155
|
+
case 3:
|
10156
|
+
var value = /** @type {string} */ (reader.readString());
|
10157
|
+
msg.setCreated(value);
|
10158
|
+
break;
|
10159
|
+
default:
|
10160
|
+
reader.skipField();
|
10161
|
+
break;
|
10162
|
+
}
|
10163
|
+
}
|
10164
|
+
return msg;
|
10165
|
+
};
|
10166
|
+
|
10167
|
+
|
10168
|
+
/**
|
10169
|
+
* Serializes the message to binary data (in protobuf wire format).
|
10170
|
+
* @return {!Uint8Array}
|
10171
|
+
*/
|
10172
|
+
proto.user.NoteItem.prototype.serializeBinary = function() {
|
10173
|
+
var writer = new jspb.BinaryWriter();
|
10174
|
+
proto.user.NoteItem.serializeBinaryToWriter(this, writer);
|
10175
|
+
return writer.getResultBuffer();
|
10176
|
+
};
|
10177
|
+
|
10178
|
+
|
10179
|
+
/**
|
10180
|
+
* Serializes the given message to binary data (in protobuf wire
|
10181
|
+
* format), writing to the given BinaryWriter.
|
10182
|
+
* @param {!proto.user.NoteItem} message
|
10183
|
+
* @param {!jspb.BinaryWriter} writer
|
10184
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10185
|
+
*/
|
10186
|
+
proto.user.NoteItem.serializeBinaryToWriter = function(message, writer) {
|
10187
|
+
var f = undefined;
|
10188
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
10189
|
+
if (f != null) {
|
10190
|
+
writer.writeInt32(
|
10191
|
+
1,
|
10192
|
+
f
|
10193
|
+
);
|
10194
|
+
}
|
10195
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
10196
|
+
if (f != null) {
|
10197
|
+
writer.writeString(
|
10198
|
+
2,
|
10199
|
+
f
|
10200
|
+
);
|
10201
|
+
}
|
10202
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
10203
|
+
if (f != null) {
|
10204
|
+
writer.writeString(
|
10205
|
+
3,
|
10206
|
+
f
|
10207
|
+
);
|
10208
|
+
}
|
10209
|
+
};
|
10210
|
+
|
10211
|
+
|
10212
|
+
/**
|
10213
|
+
* optional int32 id = 1;
|
10214
|
+
* @return {number}
|
10215
|
+
*/
|
10216
|
+
proto.user.NoteItem.prototype.getId = function() {
|
10217
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
10218
|
+
};
|
10219
|
+
|
10220
|
+
|
10221
|
+
/**
|
10222
|
+
* @param {number} value
|
10223
|
+
* @return {!proto.user.NoteItem} returns this
|
10224
|
+
*/
|
10225
|
+
proto.user.NoteItem.prototype.setId = function(value) {
|
10226
|
+
return jspb.Message.setField(this, 1, value);
|
10227
|
+
};
|
10228
|
+
|
10229
|
+
|
10230
|
+
/**
|
10231
|
+
* Clears the field making it undefined.
|
10232
|
+
* @return {!proto.user.NoteItem} returns this
|
10233
|
+
*/
|
10234
|
+
proto.user.NoteItem.prototype.clearId = function() {
|
10235
|
+
return jspb.Message.setField(this, 1, undefined);
|
10236
|
+
};
|
10237
|
+
|
10238
|
+
|
10239
|
+
/**
|
10240
|
+
* Returns whether this field is set.
|
10241
|
+
* @return {boolean}
|
10242
|
+
*/
|
10243
|
+
proto.user.NoteItem.prototype.hasId = function() {
|
10244
|
+
return jspb.Message.getField(this, 1) != null;
|
10245
|
+
};
|
10246
|
+
|
10247
|
+
|
10248
|
+
/**
|
10249
|
+
* optional string content = 2;
|
10250
|
+
* @return {string}
|
10251
|
+
*/
|
10252
|
+
proto.user.NoteItem.prototype.getContent = function() {
|
10253
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
10254
|
+
};
|
10255
|
+
|
10256
|
+
|
10257
|
+
/**
|
10258
|
+
* @param {string} value
|
10259
|
+
* @return {!proto.user.NoteItem} returns this
|
10260
|
+
*/
|
10261
|
+
proto.user.NoteItem.prototype.setContent = function(value) {
|
10262
|
+
return jspb.Message.setField(this, 2, value);
|
10263
|
+
};
|
10264
|
+
|
10265
|
+
|
10266
|
+
/**
|
10267
|
+
* Clears the field making it undefined.
|
10268
|
+
* @return {!proto.user.NoteItem} returns this
|
10269
|
+
*/
|
10270
|
+
proto.user.NoteItem.prototype.clearContent = function() {
|
10271
|
+
return jspb.Message.setField(this, 2, undefined);
|
10272
|
+
};
|
10273
|
+
|
10274
|
+
|
10275
|
+
/**
|
10276
|
+
* Returns whether this field is set.
|
10277
|
+
* @return {boolean}
|
10278
|
+
*/
|
10279
|
+
proto.user.NoteItem.prototype.hasContent = function() {
|
10280
|
+
return jspb.Message.getField(this, 2) != null;
|
10281
|
+
};
|
10282
|
+
|
10283
|
+
|
10284
|
+
/**
|
10285
|
+
* optional string created = 3;
|
10286
|
+
* @return {string}
|
10287
|
+
*/
|
10288
|
+
proto.user.NoteItem.prototype.getCreated = function() {
|
10289
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
10290
|
+
};
|
10291
|
+
|
10292
|
+
|
10293
|
+
/**
|
10294
|
+
* @param {string} value
|
10295
|
+
* @return {!proto.user.NoteItem} returns this
|
10296
|
+
*/
|
10297
|
+
proto.user.NoteItem.prototype.setCreated = function(value) {
|
10298
|
+
return jspb.Message.setField(this, 3, value);
|
10299
|
+
};
|
10300
|
+
|
10301
|
+
|
10302
|
+
/**
|
10303
|
+
* Clears the field making it undefined.
|
10304
|
+
* @return {!proto.user.NoteItem} returns this
|
10305
|
+
*/
|
10306
|
+
proto.user.NoteItem.prototype.clearCreated = function() {
|
10307
|
+
return jspb.Message.setField(this, 3, undefined);
|
10308
|
+
};
|
10309
|
+
|
10310
|
+
|
10311
|
+
/**
|
10312
|
+
* Returns whether this field is set.
|
10313
|
+
* @return {boolean}
|
10314
|
+
*/
|
10315
|
+
proto.user.NoteItem.prototype.hasCreated = function() {
|
10316
|
+
return jspb.Message.getField(this, 3) != null;
|
10317
|
+
};
|
10318
|
+
|
10319
|
+
|
10320
|
+
|
10321
|
+
/**
|
10322
|
+
* List of repeated fields within this message type.
|
10323
|
+
* @private {!Array<number>}
|
10324
|
+
* @const
|
10325
|
+
*/
|
10326
|
+
proto.user.NoteItemsResponse.repeatedFields_ = [1];
|
10327
|
+
|
10328
|
+
|
10329
|
+
|
10330
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
10331
|
+
/**
|
10332
|
+
* Creates an object representation of this proto.
|
10333
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
10334
|
+
* Optional fields that are not set will be set to undefined.
|
10335
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
10336
|
+
* For the list of reserved names please see:
|
10337
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
10338
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
10339
|
+
* JSPB instance for transitional soy proto support:
|
10340
|
+
* http://goto/soy-param-migration
|
10341
|
+
* @return {!Object}
|
10342
|
+
*/
|
10343
|
+
proto.user.NoteItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
10344
|
+
return proto.user.NoteItemsResponse.toObject(opt_includeInstance, this);
|
10345
|
+
};
|
10346
|
+
|
10347
|
+
|
10348
|
+
/**
|
10349
|
+
* Static version of the {@see toObject} method.
|
10350
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
10351
|
+
* the JSPB instance for transitional soy proto support:
|
10352
|
+
* http://goto/soy-param-migration
|
10353
|
+
* @param {!proto.user.NoteItemsResponse} msg The msg instance to transform.
|
10354
|
+
* @return {!Object}
|
10355
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10356
|
+
*/
|
10357
|
+
proto.user.NoteItemsResponse.toObject = function(includeInstance, msg) {
|
10358
|
+
var f, obj = {
|
10359
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
10360
|
+
proto.user.NoteItem.toObject, includeInstance),
|
10361
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
10362
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
10363
|
+
};
|
10364
|
+
|
10365
|
+
if (includeInstance) {
|
10366
|
+
obj.$jspbMessageInstance = msg;
|
10367
|
+
}
|
10368
|
+
return obj;
|
10369
|
+
};
|
10370
|
+
}
|
10371
|
+
|
10372
|
+
|
10373
|
+
/**
|
10374
|
+
* Deserializes binary data (in protobuf wire format).
|
10375
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
10376
|
+
* @return {!proto.user.NoteItemsResponse}
|
10377
|
+
*/
|
10378
|
+
proto.user.NoteItemsResponse.deserializeBinary = function(bytes) {
|
10379
|
+
var reader = new jspb.BinaryReader(bytes);
|
10380
|
+
var msg = new proto.user.NoteItemsResponse;
|
10381
|
+
return proto.user.NoteItemsResponse.deserializeBinaryFromReader(msg, reader);
|
10382
|
+
};
|
10383
|
+
|
10384
|
+
|
10385
|
+
/**
|
10386
|
+
* Deserializes binary data (in protobuf wire format) from the
|
10387
|
+
* given reader into the given message object.
|
10388
|
+
* @param {!proto.user.NoteItemsResponse} msg The message object to deserialize into.
|
10389
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
10390
|
+
* @return {!proto.user.NoteItemsResponse}
|
10391
|
+
*/
|
10392
|
+
proto.user.NoteItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
10393
|
+
while (reader.nextField()) {
|
10394
|
+
if (reader.isEndGroup()) {
|
10395
|
+
break;
|
10396
|
+
}
|
10397
|
+
var field = reader.getFieldNumber();
|
10398
|
+
switch (field) {
|
10399
|
+
case 1:
|
10400
|
+
var value = new proto.user.NoteItem;
|
10401
|
+
reader.readMessage(value,proto.user.NoteItem.deserializeBinaryFromReader);
|
10402
|
+
msg.addItems(value);
|
10403
|
+
break;
|
10404
|
+
case 2:
|
10405
|
+
var value = /** @type {number} */ (reader.readInt32());
|
10406
|
+
msg.setTotalPages(value);
|
10407
|
+
break;
|
10408
|
+
case 3:
|
10409
|
+
var value = /** @type {number} */ (reader.readInt32());
|
10410
|
+
msg.setTotalItems(value);
|
10411
|
+
break;
|
10412
|
+
default:
|
10413
|
+
reader.skipField();
|
10414
|
+
break;
|
10415
|
+
}
|
10416
|
+
}
|
10417
|
+
return msg;
|
10418
|
+
};
|
10419
|
+
|
10420
|
+
|
10421
|
+
/**
|
10422
|
+
* Serializes the message to binary data (in protobuf wire format).
|
10423
|
+
* @return {!Uint8Array}
|
10424
|
+
*/
|
10425
|
+
proto.user.NoteItemsResponse.prototype.serializeBinary = function() {
|
10426
|
+
var writer = new jspb.BinaryWriter();
|
10427
|
+
proto.user.NoteItemsResponse.serializeBinaryToWriter(this, writer);
|
10428
|
+
return writer.getResultBuffer();
|
10429
|
+
};
|
10430
|
+
|
10431
|
+
|
10432
|
+
/**
|
10433
|
+
* Serializes the given message to binary data (in protobuf wire
|
10434
|
+
* format), writing to the given BinaryWriter.
|
10435
|
+
* @param {!proto.user.NoteItemsResponse} message
|
10436
|
+
* @param {!jspb.BinaryWriter} writer
|
10437
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10438
|
+
*/
|
10439
|
+
proto.user.NoteItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
10440
|
+
var f = undefined;
|
10441
|
+
f = message.getItemsList();
|
10442
|
+
if (f.length > 0) {
|
10443
|
+
writer.writeRepeatedMessage(
|
10444
|
+
1,
|
10445
|
+
f,
|
10446
|
+
proto.user.NoteItem.serializeBinaryToWriter
|
10447
|
+
);
|
10448
|
+
}
|
10449
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
10450
|
+
if (f != null) {
|
10451
|
+
writer.writeInt32(
|
10452
|
+
2,
|
10453
|
+
f
|
10454
|
+
);
|
10455
|
+
}
|
10456
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
10457
|
+
if (f != null) {
|
10458
|
+
writer.writeInt32(
|
10459
|
+
3,
|
10460
|
+
f
|
10461
|
+
);
|
10462
|
+
}
|
10463
|
+
};
|
10464
|
+
|
10465
|
+
|
10466
|
+
/**
|
10467
|
+
* repeated NoteItem items = 1;
|
10468
|
+
* @return {!Array<!proto.user.NoteItem>}
|
10469
|
+
*/
|
10470
|
+
proto.user.NoteItemsResponse.prototype.getItemsList = function() {
|
10471
|
+
return /** @type{!Array<!proto.user.NoteItem>} */ (
|
10472
|
+
jspb.Message.getRepeatedWrapperField(this, proto.user.NoteItem, 1));
|
10473
|
+
};
|
10474
|
+
|
10475
|
+
|
10476
|
+
/**
|
10477
|
+
* @param {!Array<!proto.user.NoteItem>} value
|
10478
|
+
* @return {!proto.user.NoteItemsResponse} returns this
|
10479
|
+
*/
|
10480
|
+
proto.user.NoteItemsResponse.prototype.setItemsList = function(value) {
|
10481
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
10482
|
+
};
|
10483
|
+
|
10484
|
+
|
10485
|
+
/**
|
10486
|
+
* @param {!proto.user.NoteItem=} opt_value
|
10487
|
+
* @param {number=} opt_index
|
10488
|
+
* @return {!proto.user.NoteItem}
|
10489
|
+
*/
|
10490
|
+
proto.user.NoteItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
10491
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.NoteItem, opt_index);
|
10492
|
+
};
|
10493
|
+
|
10494
|
+
|
10495
|
+
/**
|
10496
|
+
* Clears the list making it empty but non-null.
|
10497
|
+
* @return {!proto.user.NoteItemsResponse} returns this
|
10498
|
+
*/
|
10499
|
+
proto.user.NoteItemsResponse.prototype.clearItemsList = function() {
|
10500
|
+
return this.setItemsList([]);
|
10501
|
+
};
|
10502
|
+
|
10503
|
+
|
10504
|
+
/**
|
10505
|
+
* optional int32 total_pages = 2;
|
10506
|
+
* @return {number}
|
10507
|
+
*/
|
10508
|
+
proto.user.NoteItemsResponse.prototype.getTotalPages = function() {
|
10509
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
10510
|
+
};
|
10511
|
+
|
10512
|
+
|
10513
|
+
/**
|
10514
|
+
* @param {number} value
|
10515
|
+
* @return {!proto.user.NoteItemsResponse} returns this
|
10516
|
+
*/
|
10517
|
+
proto.user.NoteItemsResponse.prototype.setTotalPages = function(value) {
|
10518
|
+
return jspb.Message.setField(this, 2, value);
|
10519
|
+
};
|
10520
|
+
|
10521
|
+
|
10522
|
+
/**
|
10523
|
+
* Clears the field making it undefined.
|
10524
|
+
* @return {!proto.user.NoteItemsResponse} returns this
|
10525
|
+
*/
|
10526
|
+
proto.user.NoteItemsResponse.prototype.clearTotalPages = function() {
|
10527
|
+
return jspb.Message.setField(this, 2, undefined);
|
10528
|
+
};
|
10529
|
+
|
10530
|
+
|
10531
|
+
/**
|
10532
|
+
* Returns whether this field is set.
|
10533
|
+
* @return {boolean}
|
10534
|
+
*/
|
10535
|
+
proto.user.NoteItemsResponse.prototype.hasTotalPages = function() {
|
10536
|
+
return jspb.Message.getField(this, 2) != null;
|
10537
|
+
};
|
10538
|
+
|
10539
|
+
|
10540
|
+
/**
|
10541
|
+
* optional int32 total_items = 3;
|
10542
|
+
* @return {number}
|
10543
|
+
*/
|
10544
|
+
proto.user.NoteItemsResponse.prototype.getTotalItems = function() {
|
10545
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
10546
|
+
};
|
10547
|
+
|
10548
|
+
|
10549
|
+
/**
|
10550
|
+
* @param {number} value
|
10551
|
+
* @return {!proto.user.NoteItemsResponse} returns this
|
10552
|
+
*/
|
10553
|
+
proto.user.NoteItemsResponse.prototype.setTotalItems = function(value) {
|
10554
|
+
return jspb.Message.setField(this, 3, value);
|
10555
|
+
};
|
10556
|
+
|
10557
|
+
|
10558
|
+
/**
|
10559
|
+
* Clears the field making it undefined.
|
10560
|
+
* @return {!proto.user.NoteItemsResponse} returns this
|
10561
|
+
*/
|
10562
|
+
proto.user.NoteItemsResponse.prototype.clearTotalItems = function() {
|
10563
|
+
return jspb.Message.setField(this, 3, undefined);
|
10564
|
+
};
|
10565
|
+
|
10566
|
+
|
10567
|
+
/**
|
10568
|
+
* Returns whether this field is set.
|
10569
|
+
* @return {boolean}
|
10570
|
+
*/
|
10571
|
+
proto.user.NoteItemsResponse.prototype.hasTotalItems = function() {
|
10572
|
+
return jspb.Message.getField(this, 3) != null;
|
10573
|
+
};
|
10574
|
+
|
10575
|
+
|
10576
|
+
|
10577
|
+
|
10578
|
+
|
10579
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
10580
|
+
/**
|
10581
|
+
* Creates an object representation of this proto.
|
10582
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
10583
|
+
* Optional fields that are not set will be set to undefined.
|
10584
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
10585
|
+
* For the list of reserved names please see:
|
10586
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
10587
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
10588
|
+
* JSPB instance for transitional soy proto support:
|
10589
|
+
* http://goto/soy-param-migration
|
10590
|
+
* @return {!Object}
|
10591
|
+
*/
|
10592
|
+
proto.user.NoteStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
10593
|
+
return proto.user.NoteStatusResponse.toObject(opt_includeInstance, this);
|
10594
|
+
};
|
10595
|
+
|
10596
|
+
|
10597
|
+
/**
|
10598
|
+
* Static version of the {@see toObject} method.
|
10599
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
10600
|
+
* the JSPB instance for transitional soy proto support:
|
10601
|
+
* http://goto/soy-param-migration
|
10602
|
+
* @param {!proto.user.NoteStatusResponse} msg The msg instance to transform.
|
10603
|
+
* @return {!Object}
|
10604
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10605
|
+
*/
|
10606
|
+
proto.user.NoteStatusResponse.toObject = function(includeInstance, msg) {
|
10607
|
+
var f, obj = {
|
10608
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
10609
|
+
};
|
10610
|
+
|
10611
|
+
if (includeInstance) {
|
10612
|
+
obj.$jspbMessageInstance = msg;
|
10613
|
+
}
|
10614
|
+
return obj;
|
10615
|
+
};
|
10616
|
+
}
|
10617
|
+
|
10618
|
+
|
10619
|
+
/**
|
10620
|
+
* Deserializes binary data (in protobuf wire format).
|
10621
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
10622
|
+
* @return {!proto.user.NoteStatusResponse}
|
10623
|
+
*/
|
10624
|
+
proto.user.NoteStatusResponse.deserializeBinary = function(bytes) {
|
10625
|
+
var reader = new jspb.BinaryReader(bytes);
|
10626
|
+
var msg = new proto.user.NoteStatusResponse;
|
10627
|
+
return proto.user.NoteStatusResponse.deserializeBinaryFromReader(msg, reader);
|
10628
|
+
};
|
10629
|
+
|
10630
|
+
|
10631
|
+
/**
|
10632
|
+
* Deserializes binary data (in protobuf wire format) from the
|
10633
|
+
* given reader into the given message object.
|
10634
|
+
* @param {!proto.user.NoteStatusResponse} msg The message object to deserialize into.
|
10635
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
10636
|
+
* @return {!proto.user.NoteStatusResponse}
|
10637
|
+
*/
|
10638
|
+
proto.user.NoteStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
10639
|
+
while (reader.nextField()) {
|
10640
|
+
if (reader.isEndGroup()) {
|
10641
|
+
break;
|
10642
|
+
}
|
10643
|
+
var field = reader.getFieldNumber();
|
10644
|
+
switch (field) {
|
10645
|
+
case 1:
|
10646
|
+
var value = /** @type {string} */ (reader.readString());
|
10647
|
+
msg.setStatus(value);
|
10648
|
+
break;
|
10649
|
+
default:
|
10650
|
+
reader.skipField();
|
10651
|
+
break;
|
10652
|
+
}
|
10653
|
+
}
|
10654
|
+
return msg;
|
10655
|
+
};
|
10656
|
+
|
10657
|
+
|
10658
|
+
/**
|
10659
|
+
* Serializes the message to binary data (in protobuf wire format).
|
10660
|
+
* @return {!Uint8Array}
|
10661
|
+
*/
|
10662
|
+
proto.user.NoteStatusResponse.prototype.serializeBinary = function() {
|
10663
|
+
var writer = new jspb.BinaryWriter();
|
10664
|
+
proto.user.NoteStatusResponse.serializeBinaryToWriter(this, writer);
|
10665
|
+
return writer.getResultBuffer();
|
10666
|
+
};
|
10667
|
+
|
10668
|
+
|
10669
|
+
/**
|
10670
|
+
* Serializes the given message to binary data (in protobuf wire
|
10671
|
+
* format), writing to the given BinaryWriter.
|
10672
|
+
* @param {!proto.user.NoteStatusResponse} message
|
10673
|
+
* @param {!jspb.BinaryWriter} writer
|
10674
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10675
|
+
*/
|
10676
|
+
proto.user.NoteStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
10677
|
+
var f = undefined;
|
10678
|
+
f = message.getStatus();
|
10679
|
+
if (f.length > 0) {
|
10680
|
+
writer.writeString(
|
10681
|
+
1,
|
10682
|
+
f
|
10683
|
+
);
|
10684
|
+
}
|
10685
|
+
};
|
10686
|
+
|
10687
|
+
|
10688
|
+
/**
|
10689
|
+
* optional string status = 1;
|
10690
|
+
* @return {string}
|
10691
|
+
*/
|
10692
|
+
proto.user.NoteStatusResponse.prototype.getStatus = function() {
|
10693
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
10694
|
+
};
|
10695
|
+
|
10696
|
+
|
10697
|
+
/**
|
10698
|
+
* @param {string} value
|
10699
|
+
* @return {!proto.user.NoteStatusResponse} returns this
|
10700
|
+
*/
|
10701
|
+
proto.user.NoteStatusResponse.prototype.setStatus = function(value) {
|
10702
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
10703
|
+
};
|
10704
|
+
|
10705
|
+
|
10706
|
+
|
10707
|
+
|
10708
|
+
|
10709
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
10710
|
+
/**
|
10711
|
+
* Creates an object representation of this proto.
|
10712
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
10713
|
+
* Optional fields that are not set will be set to undefined.
|
10714
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
10715
|
+
* For the list of reserved names please see:
|
10716
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
10717
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
10718
|
+
* JSPB instance for transitional soy proto support:
|
10719
|
+
* http://goto/soy-param-migration
|
10720
|
+
* @return {!Object}
|
10721
|
+
*/
|
10722
|
+
proto.user.GetNoteRequest.prototype.toObject = function(opt_includeInstance) {
|
10723
|
+
return proto.user.GetNoteRequest.toObject(opt_includeInstance, this);
|
10724
|
+
};
|
10725
|
+
|
10726
|
+
|
10727
|
+
/**
|
10728
|
+
* Static version of the {@see toObject} method.
|
10729
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
10730
|
+
* the JSPB instance for transitional soy proto support:
|
10731
|
+
* http://goto/soy-param-migration
|
10732
|
+
* @param {!proto.user.GetNoteRequest} msg The msg instance to transform.
|
10733
|
+
* @return {!Object}
|
10734
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10735
|
+
*/
|
10736
|
+
proto.user.GetNoteRequest.toObject = function(includeInstance, msg) {
|
10737
|
+
var f, obj = {
|
10738
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
10739
|
+
};
|
10740
|
+
|
10741
|
+
if (includeInstance) {
|
10742
|
+
obj.$jspbMessageInstance = msg;
|
10743
|
+
}
|
10744
|
+
return obj;
|
10745
|
+
};
|
10746
|
+
}
|
10747
|
+
|
10748
|
+
|
10749
|
+
/**
|
10750
|
+
* Deserializes binary data (in protobuf wire format).
|
10751
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
10752
|
+
* @return {!proto.user.GetNoteRequest}
|
10753
|
+
*/
|
10754
|
+
proto.user.GetNoteRequest.deserializeBinary = function(bytes) {
|
10755
|
+
var reader = new jspb.BinaryReader(bytes);
|
10756
|
+
var msg = new proto.user.GetNoteRequest;
|
10757
|
+
return proto.user.GetNoteRequest.deserializeBinaryFromReader(msg, reader);
|
10758
|
+
};
|
10759
|
+
|
10760
|
+
|
10761
|
+
/**
|
10762
|
+
* Deserializes binary data (in protobuf wire format) from the
|
10763
|
+
* given reader into the given message object.
|
10764
|
+
* @param {!proto.user.GetNoteRequest} msg The message object to deserialize into.
|
10765
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
10766
|
+
* @return {!proto.user.GetNoteRequest}
|
10767
|
+
*/
|
10768
|
+
proto.user.GetNoteRequest.deserializeBinaryFromReader = function(msg, reader) {
|
10769
|
+
while (reader.nextField()) {
|
10770
|
+
if (reader.isEndGroup()) {
|
10771
|
+
break;
|
10772
|
+
}
|
10773
|
+
var field = reader.getFieldNumber();
|
10774
|
+
switch (field) {
|
10775
|
+
case 1:
|
10776
|
+
var value = /** @type {number} */ (reader.readInt32());
|
10777
|
+
msg.setId(value);
|
10778
|
+
break;
|
10779
|
+
default:
|
10780
|
+
reader.skipField();
|
10781
|
+
break;
|
10782
|
+
}
|
10783
|
+
}
|
10784
|
+
return msg;
|
10785
|
+
};
|
10786
|
+
|
10787
|
+
|
10788
|
+
/**
|
10789
|
+
* Serializes the message to binary data (in protobuf wire format).
|
10790
|
+
* @return {!Uint8Array}
|
10791
|
+
*/
|
10792
|
+
proto.user.GetNoteRequest.prototype.serializeBinary = function() {
|
10793
|
+
var writer = new jspb.BinaryWriter();
|
10794
|
+
proto.user.GetNoteRequest.serializeBinaryToWriter(this, writer);
|
10795
|
+
return writer.getResultBuffer();
|
10796
|
+
};
|
10797
|
+
|
10798
|
+
|
10799
|
+
/**
|
10800
|
+
* Serializes the given message to binary data (in protobuf wire
|
10801
|
+
* format), writing to the given BinaryWriter.
|
10802
|
+
* @param {!proto.user.GetNoteRequest} message
|
10803
|
+
* @param {!jspb.BinaryWriter} writer
|
10804
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10805
|
+
*/
|
10806
|
+
proto.user.GetNoteRequest.serializeBinaryToWriter = function(message, writer) {
|
10807
|
+
var f = undefined;
|
10808
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
10809
|
+
if (f != null) {
|
10810
|
+
writer.writeInt32(
|
10811
|
+
1,
|
10812
|
+
f
|
10813
|
+
);
|
10814
|
+
}
|
10815
|
+
};
|
10816
|
+
|
10817
|
+
|
10818
|
+
/**
|
10819
|
+
* optional int32 id = 1;
|
10820
|
+
* @return {number}
|
10821
|
+
*/
|
10822
|
+
proto.user.GetNoteRequest.prototype.getId = function() {
|
10823
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
10824
|
+
};
|
10825
|
+
|
10826
|
+
|
10827
|
+
/**
|
10828
|
+
* @param {number} value
|
10829
|
+
* @return {!proto.user.GetNoteRequest} returns this
|
10830
|
+
*/
|
10831
|
+
proto.user.GetNoteRequest.prototype.setId = function(value) {
|
10832
|
+
return jspb.Message.setField(this, 1, value);
|
10833
|
+
};
|
10834
|
+
|
10835
|
+
|
10836
|
+
/**
|
10837
|
+
* Clears the field making it undefined.
|
10838
|
+
* @return {!proto.user.GetNoteRequest} returns this
|
10839
|
+
*/
|
10840
|
+
proto.user.GetNoteRequest.prototype.clearId = function() {
|
10841
|
+
return jspb.Message.setField(this, 1, undefined);
|
10842
|
+
};
|
10843
|
+
|
10844
|
+
|
10845
|
+
/**
|
10846
|
+
* Returns whether this field is set.
|
10847
|
+
* @return {boolean}
|
10848
|
+
*/
|
10849
|
+
proto.user.GetNoteRequest.prototype.hasId = function() {
|
10850
|
+
return jspb.Message.getField(this, 1) != null;
|
10851
|
+
};
|
10852
|
+
|
10853
|
+
|
9405
10854
|
goog.object.extend(exports, proto.user);
|