protobuf-platform 1.2.53 → 1.2.55

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/bonus/bonus.proto CHANGED
@@ -16,6 +16,7 @@ service Bonus {
16
16
  rpc setBonusBetRanges(BonusBetRangesRequest) returns (BonusStatusResponse);
17
17
  rpc setBonusTranslation(BonusTranslationRequest) returns (BonusStatusResponse);
18
18
  rpc getBonusTranslation(GetBonusTranslationRequest) returns (BonusTranslationResponse);
19
+ rpc updateBonusesInBunch(ItemsBunchRequest) returns (BonusStatusResponse);
19
20
  //Users
20
21
  rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
21
22
  rpc cancelUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
@@ -43,6 +44,10 @@ message PaginationRequest {
43
44
  optional GetUserBonusRequest user_bonus_params = 4;
44
45
  optional SearchBonusRequest search_bonus_params = 5;
45
46
  }
47
+ message ItemsBunchRequest {
48
+ repeated int32 ids = 1;
49
+ optional int32 status_id = 2;
50
+ }
46
51
  //Bonus search
47
52
  message SearchBonusRequest {
48
53
  optional string title = 1;
@@ -202,6 +202,17 @@ function deserialize_bonus_GetUserBonusRequest(buffer_arg) {
202
202
  return bonus_pb.GetUserBonusRequest.deserializeBinary(new Uint8Array(buffer_arg));
203
203
  }
204
204
 
205
+ function serialize_bonus_ItemsBunchRequest(arg) {
206
+ if (!(arg instanceof bonus_pb.ItemsBunchRequest)) {
207
+ throw new Error('Expected argument of type bonus.ItemsBunchRequest');
208
+ }
209
+ return Buffer.from(arg.serializeBinary());
210
+ }
211
+
212
+ function deserialize_bonus_ItemsBunchRequest(buffer_arg) {
213
+ return bonus_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
214
+ }
215
+
205
216
  function serialize_bonus_PaginationRequest(arg) {
206
217
  if (!(arg instanceof bonus_pb.PaginationRequest)) {
207
218
  throw new Error('Expected argument of type bonus.PaginationRequest');
@@ -392,6 +403,17 @@ createSingleBonus: {
392
403
  responseSerialize: serialize_bonus_BonusTranslationResponse,
393
404
  responseDeserialize: deserialize_bonus_BonusTranslationResponse,
394
405
  },
406
+ updateBonusesInBunch: {
407
+ path: '/bonus.Bonus/updateBonusesInBunch',
408
+ requestStream: false,
409
+ responseStream: false,
410
+ requestType: bonus_pb.ItemsBunchRequest,
411
+ responseType: bonus_pb.BonusStatusResponse,
412
+ requestSerialize: serialize_bonus_ItemsBunchRequest,
413
+ requestDeserialize: deserialize_bonus_ItemsBunchRequest,
414
+ responseSerialize: serialize_bonus_BonusStatusResponse,
415
+ responseDeserialize: deserialize_bonus_BonusStatusResponse,
416
+ },
395
417
  // Users
396
418
  claimUserBonus: {
397
419
  path: '/bonus.Bonus/claimUserBonus',
package/bonus/bonus_pb.js CHANGED
@@ -49,6 +49,7 @@ goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
49
49
  goog.exportSymbol('proto.bonus.GetBonusTranslationRequest', null, global);
50
50
  goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
51
51
  goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
52
+ goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
52
53
  goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
53
54
  goog.exportSymbol('proto.bonus.PingRequest', null, global);
54
55
  goog.exportSymbol('proto.bonus.PongResponse', null, global);
@@ -160,6 +161,27 @@ if (goog.DEBUG && !COMPILED) {
160
161
  */
161
162
  proto.bonus.PaginationRequest.displayName = 'proto.bonus.PaginationRequest';
162
163
  }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.bonus.ItemsBunchRequest = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.ItemsBunchRequest.repeatedFields_, null);
176
+ };
177
+ goog.inherits(proto.bonus.ItemsBunchRequest, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.bonus.ItemsBunchRequest.displayName = 'proto.bonus.ItemsBunchRequest';
184
+ }
163
185
  /**
164
186
  * Generated by JsPbCodeGenerator.
165
187
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1633,6 +1655,212 @@ proto.bonus.PaginationRequest.prototype.hasSearchBonusParams = function() {
1633
1655
 
1634
1656
 
1635
1657
 
1658
+ /**
1659
+ * List of repeated fields within this message type.
1660
+ * @private {!Array<number>}
1661
+ * @const
1662
+ */
1663
+ proto.bonus.ItemsBunchRequest.repeatedFields_ = [1];
1664
+
1665
+
1666
+
1667
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1668
+ /**
1669
+ * Creates an object representation of this proto.
1670
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1671
+ * Optional fields that are not set will be set to undefined.
1672
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1673
+ * For the list of reserved names please see:
1674
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1675
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1676
+ * JSPB instance for transitional soy proto support:
1677
+ * http://goto/soy-param-migration
1678
+ * @return {!Object}
1679
+ */
1680
+ proto.bonus.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
1681
+ return proto.bonus.ItemsBunchRequest.toObject(opt_includeInstance, this);
1682
+ };
1683
+
1684
+
1685
+ /**
1686
+ * Static version of the {@see toObject} method.
1687
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1688
+ * the JSPB instance for transitional soy proto support:
1689
+ * http://goto/soy-param-migration
1690
+ * @param {!proto.bonus.ItemsBunchRequest} msg The msg instance to transform.
1691
+ * @return {!Object}
1692
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1693
+ */
1694
+ proto.bonus.ItemsBunchRequest.toObject = function(includeInstance, msg) {
1695
+ var f, obj = {
1696
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1697
+ statusId: jspb.Message.getFieldWithDefault(msg, 2, 0)
1698
+ };
1699
+
1700
+ if (includeInstance) {
1701
+ obj.$jspbMessageInstance = msg;
1702
+ }
1703
+ return obj;
1704
+ };
1705
+ }
1706
+
1707
+
1708
+ /**
1709
+ * Deserializes binary data (in protobuf wire format).
1710
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1711
+ * @return {!proto.bonus.ItemsBunchRequest}
1712
+ */
1713
+ proto.bonus.ItemsBunchRequest.deserializeBinary = function(bytes) {
1714
+ var reader = new jspb.BinaryReader(bytes);
1715
+ var msg = new proto.bonus.ItemsBunchRequest;
1716
+ return proto.bonus.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
1717
+ };
1718
+
1719
+
1720
+ /**
1721
+ * Deserializes binary data (in protobuf wire format) from the
1722
+ * given reader into the given message object.
1723
+ * @param {!proto.bonus.ItemsBunchRequest} msg The message object to deserialize into.
1724
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1725
+ * @return {!proto.bonus.ItemsBunchRequest}
1726
+ */
1727
+ proto.bonus.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
1728
+ while (reader.nextField()) {
1729
+ if (reader.isEndGroup()) {
1730
+ break;
1731
+ }
1732
+ var field = reader.getFieldNumber();
1733
+ switch (field) {
1734
+ case 1:
1735
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1736
+ for (var i = 0; i < values.length; i++) {
1737
+ msg.addIds(values[i]);
1738
+ }
1739
+ break;
1740
+ case 2:
1741
+ var value = /** @type {number} */ (reader.readInt32());
1742
+ msg.setStatusId(value);
1743
+ break;
1744
+ default:
1745
+ reader.skipField();
1746
+ break;
1747
+ }
1748
+ }
1749
+ return msg;
1750
+ };
1751
+
1752
+
1753
+ /**
1754
+ * Serializes the message to binary data (in protobuf wire format).
1755
+ * @return {!Uint8Array}
1756
+ */
1757
+ proto.bonus.ItemsBunchRequest.prototype.serializeBinary = function() {
1758
+ var writer = new jspb.BinaryWriter();
1759
+ proto.bonus.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
1760
+ return writer.getResultBuffer();
1761
+ };
1762
+
1763
+
1764
+ /**
1765
+ * Serializes the given message to binary data (in protobuf wire
1766
+ * format), writing to the given BinaryWriter.
1767
+ * @param {!proto.bonus.ItemsBunchRequest} message
1768
+ * @param {!jspb.BinaryWriter} writer
1769
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1770
+ */
1771
+ proto.bonus.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
1772
+ var f = undefined;
1773
+ f = message.getIdsList();
1774
+ if (f.length > 0) {
1775
+ writer.writePackedInt32(
1776
+ 1,
1777
+ f
1778
+ );
1779
+ }
1780
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
1781
+ if (f != null) {
1782
+ writer.writeInt32(
1783
+ 2,
1784
+ f
1785
+ );
1786
+ }
1787
+ };
1788
+
1789
+
1790
+ /**
1791
+ * repeated int32 ids = 1;
1792
+ * @return {!Array<number>}
1793
+ */
1794
+ proto.bonus.ItemsBunchRequest.prototype.getIdsList = function() {
1795
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
1796
+ };
1797
+
1798
+
1799
+ /**
1800
+ * @param {!Array<number>} value
1801
+ * @return {!proto.bonus.ItemsBunchRequest} returns this
1802
+ */
1803
+ proto.bonus.ItemsBunchRequest.prototype.setIdsList = function(value) {
1804
+ return jspb.Message.setField(this, 1, value || []);
1805
+ };
1806
+
1807
+
1808
+ /**
1809
+ * @param {number} value
1810
+ * @param {number=} opt_index
1811
+ * @return {!proto.bonus.ItemsBunchRequest} returns this
1812
+ */
1813
+ proto.bonus.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
1814
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * Clears the list making it empty but non-null.
1820
+ * @return {!proto.bonus.ItemsBunchRequest} returns this
1821
+ */
1822
+ proto.bonus.ItemsBunchRequest.prototype.clearIdsList = function() {
1823
+ return this.setIdsList([]);
1824
+ };
1825
+
1826
+
1827
+ /**
1828
+ * optional int32 status_id = 2;
1829
+ * @return {number}
1830
+ */
1831
+ proto.bonus.ItemsBunchRequest.prototype.getStatusId = function() {
1832
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * @param {number} value
1838
+ * @return {!proto.bonus.ItemsBunchRequest} returns this
1839
+ */
1840
+ proto.bonus.ItemsBunchRequest.prototype.setStatusId = function(value) {
1841
+ return jspb.Message.setField(this, 2, value);
1842
+ };
1843
+
1844
+
1845
+ /**
1846
+ * Clears the field making it undefined.
1847
+ * @return {!proto.bonus.ItemsBunchRequest} returns this
1848
+ */
1849
+ proto.bonus.ItemsBunchRequest.prototype.clearStatusId = function() {
1850
+ return jspb.Message.setField(this, 2, undefined);
1851
+ };
1852
+
1853
+
1854
+ /**
1855
+ * Returns whether this field is set.
1856
+ * @return {boolean}
1857
+ */
1858
+ proto.bonus.ItemsBunchRequest.prototype.hasStatusId = function() {
1859
+ return jspb.Message.getField(this, 2) != null;
1860
+ };
1861
+
1862
+
1863
+
1636
1864
  /**
1637
1865
  * List of repeated fields within this message type.
1638
1866
  * @private {!Array<number>}
package/cms/cms.proto CHANGED
@@ -26,6 +26,7 @@ service CMS {
26
26
  rpc deleteBannerGroup(GetBannerGroupRequest) returns (BannerStatusResponse);
27
27
  rpc readListBannersGroup(PaginationRequest) returns (BannerGroupItemsResponse);
28
28
  rpc fetchBannerGroupForUser(GetBannerGroupRequest) returns (UserBannerGroupResponse);
29
+ rpc updateBannersGroupInBunch(ItemsBunchRequest) returns (BannerStatusResponse);
29
30
  //Pages
30
31
  rpc createSinglePage(PageRequest) returns (PageResponse);
31
32
  rpc readSinglePage(GetPageRequest) returns (PageResponse);
@@ -34,6 +35,7 @@ service CMS {
34
35
  rpc readListPages(PaginationRequest) returns (PagesItemsResponse);
35
36
  rpc setPageTranslation(PageTranslationRequest) returns (PageStatusResponse);
36
37
  rpc getPageTranslation(GetPageTranslationRequest) returns (PageTranslationResponse);
38
+ rpc updatePagesInBunch(ItemsBunchRequest) returns (PageStatusResponse);
37
39
  //Promo
38
40
  rpc createSinglePromo(stream PromoRequest) returns (PromoResponse);
39
41
  rpc readSinglePromo(GetPromoRequest) returns (PromoResponse);
@@ -43,6 +45,7 @@ service CMS {
43
45
  rpc listPromosForUser(PaginationRequest) returns (PromosItemsResponse);
44
46
  rpc setPromoTranslation(PromoTranslationRequest) returns (PromoStatusResponse);
45
47
  rpc getPromoTranslation(GetPromoTranslationRequest) returns (PromoTranslationResponse);
48
+ rpc updatePromosInBunch(ItemsBunchRequest) returns (PromoStatusResponse);
46
49
  //Game Widgets
47
50
  rpc createSingleGameWidget(stream GameWidgetRequest) returns (GameWidgetResponse);
48
51
  rpc readSingleGameWidget(GetGameWidgetRequest) returns (GameWidgetResponse);
@@ -64,6 +67,10 @@ message PaginationRequest {
64
67
  optional string title = 8;
65
68
  repeated string countries = 9;
66
69
  }
70
+ message ItemsBunchRequest {
71
+ repeated int32 ids = 1;
72
+ optional int32 is_active = 2;
73
+ }
67
74
  //Media
68
75
  message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
69
76
  message GetFileRequest { string file_name = 1; string instance_type = 2; }
@@ -279,6 +279,17 @@ function deserialize_cms_GetSignUpFormWidgetRequest(buffer_arg) {
279
279
  return cms_pb.GetSignUpFormWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
280
280
  }
281
281
 
282
+ function serialize_cms_ItemsBunchRequest(arg) {
283
+ if (!(arg instanceof cms_pb.ItemsBunchRequest)) {
284
+ throw new Error('Expected argument of type cms.ItemsBunchRequest');
285
+ }
286
+ return Buffer.from(arg.serializeBinary());
287
+ }
288
+
289
+ function deserialize_cms_ItemsBunchRequest(buffer_arg) {
290
+ return cms_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
291
+ }
292
+
282
293
  function serialize_cms_MainPageWidgetItem(arg) {
283
294
  if (!(arg instanceof cms_pb.MainPageWidgetItem)) {
284
295
  throw new Error('Expected argument of type cms.MainPageWidgetItem');
@@ -713,6 +724,17 @@ createBannerGroup: {
713
724
  responseSerialize: serialize_cms_UserBannerGroupResponse,
714
725
  responseDeserialize: deserialize_cms_UserBannerGroupResponse,
715
726
  },
727
+ updateBannersGroupInBunch: {
728
+ path: '/cms.CMS/updateBannersGroupInBunch',
729
+ requestStream: false,
730
+ responseStream: false,
731
+ requestType: cms_pb.ItemsBunchRequest,
732
+ responseType: cms_pb.BannerStatusResponse,
733
+ requestSerialize: serialize_cms_ItemsBunchRequest,
734
+ requestDeserialize: deserialize_cms_ItemsBunchRequest,
735
+ responseSerialize: serialize_cms_BannerStatusResponse,
736
+ responseDeserialize: deserialize_cms_BannerStatusResponse,
737
+ },
716
738
  // Pages
717
739
  createSinglePage: {
718
740
  path: '/cms.CMS/createSinglePage',
@@ -791,6 +813,17 @@ createSinglePage: {
791
813
  responseSerialize: serialize_cms_PageTranslationResponse,
792
814
  responseDeserialize: deserialize_cms_PageTranslationResponse,
793
815
  },
816
+ updatePagesInBunch: {
817
+ path: '/cms.CMS/updatePagesInBunch',
818
+ requestStream: false,
819
+ responseStream: false,
820
+ requestType: cms_pb.ItemsBunchRequest,
821
+ responseType: cms_pb.PageStatusResponse,
822
+ requestSerialize: serialize_cms_ItemsBunchRequest,
823
+ requestDeserialize: deserialize_cms_ItemsBunchRequest,
824
+ responseSerialize: serialize_cms_PageStatusResponse,
825
+ responseDeserialize: deserialize_cms_PageStatusResponse,
826
+ },
794
827
  // Promo
795
828
  createSinglePromo: {
796
829
  path: '/cms.CMS/createSinglePromo',
@@ -880,6 +913,17 @@ createSinglePromo: {
880
913
  responseSerialize: serialize_cms_PromoTranslationResponse,
881
914
  responseDeserialize: deserialize_cms_PromoTranslationResponse,
882
915
  },
916
+ updatePromosInBunch: {
917
+ path: '/cms.CMS/updatePromosInBunch',
918
+ requestStream: false,
919
+ responseStream: false,
920
+ requestType: cms_pb.ItemsBunchRequest,
921
+ responseType: cms_pb.PromoStatusResponse,
922
+ requestSerialize: serialize_cms_ItemsBunchRequest,
923
+ requestDeserialize: deserialize_cms_ItemsBunchRequest,
924
+ responseSerialize: serialize_cms_PromoStatusResponse,
925
+ responseDeserialize: deserialize_cms_PromoStatusResponse,
926
+ },
883
927
  // Game Widgets
884
928
  createSingleGameWidget: {
885
929
  path: '/cms.CMS/createSingleGameWidget',
package/cms/cms_pb.js CHANGED
@@ -54,6 +54,7 @@ goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
54
54
  goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
55
55
  goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
56
56
  goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
57
+ goog.exportSymbol('proto.cms.ItemsBunchRequest', null, global);
57
58
  goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
58
59
  goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
59
60
  goog.exportSymbol('proto.cms.PageItem', null, global);
@@ -142,6 +143,27 @@ if (goog.DEBUG && !COMPILED) {
142
143
  */
143
144
  proto.cms.PaginationRequest.displayName = 'proto.cms.PaginationRequest';
144
145
  }
146
+ /**
147
+ * Generated by JsPbCodeGenerator.
148
+ * @param {Array=} opt_data Optional initial data array, typically from a
149
+ * server response, or constructed directly in Javascript. The array is used
150
+ * in place and becomes part of the constructed object. It is not cloned.
151
+ * If no data is provided, the constructed object will be empty, but still
152
+ * valid.
153
+ * @extends {jspb.Message}
154
+ * @constructor
155
+ */
156
+ proto.cms.ItemsBunchRequest = function(opt_data) {
157
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.ItemsBunchRequest.repeatedFields_, null);
158
+ };
159
+ goog.inherits(proto.cms.ItemsBunchRequest, jspb.Message);
160
+ if (goog.DEBUG && !COMPILED) {
161
+ /**
162
+ * @public
163
+ * @override
164
+ */
165
+ proto.cms.ItemsBunchRequest.displayName = 'proto.cms.ItemsBunchRequest';
166
+ }
145
167
  /**
146
168
  * Generated by JsPbCodeGenerator.
147
169
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1999,6 +2021,212 @@ proto.cms.PaginationRequest.prototype.clearCountriesList = function() {
1999
2021
 
2000
2022
 
2001
2023
 
2024
+ /**
2025
+ * List of repeated fields within this message type.
2026
+ * @private {!Array<number>}
2027
+ * @const
2028
+ */
2029
+ proto.cms.ItemsBunchRequest.repeatedFields_ = [1];
2030
+
2031
+
2032
+
2033
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2034
+ /**
2035
+ * Creates an object representation of this proto.
2036
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2037
+ * Optional fields that are not set will be set to undefined.
2038
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2039
+ * For the list of reserved names please see:
2040
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2041
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2042
+ * JSPB instance for transitional soy proto support:
2043
+ * http://goto/soy-param-migration
2044
+ * @return {!Object}
2045
+ */
2046
+ proto.cms.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
2047
+ return proto.cms.ItemsBunchRequest.toObject(opt_includeInstance, this);
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * Static version of the {@see toObject} method.
2053
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2054
+ * the JSPB instance for transitional soy proto support:
2055
+ * http://goto/soy-param-migration
2056
+ * @param {!proto.cms.ItemsBunchRequest} msg The msg instance to transform.
2057
+ * @return {!Object}
2058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2059
+ */
2060
+ proto.cms.ItemsBunchRequest.toObject = function(includeInstance, msg) {
2061
+ var f, obj = {
2062
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2063
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
2064
+ };
2065
+
2066
+ if (includeInstance) {
2067
+ obj.$jspbMessageInstance = msg;
2068
+ }
2069
+ return obj;
2070
+ };
2071
+ }
2072
+
2073
+
2074
+ /**
2075
+ * Deserializes binary data (in protobuf wire format).
2076
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2077
+ * @return {!proto.cms.ItemsBunchRequest}
2078
+ */
2079
+ proto.cms.ItemsBunchRequest.deserializeBinary = function(bytes) {
2080
+ var reader = new jspb.BinaryReader(bytes);
2081
+ var msg = new proto.cms.ItemsBunchRequest;
2082
+ return proto.cms.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
2083
+ };
2084
+
2085
+
2086
+ /**
2087
+ * Deserializes binary data (in protobuf wire format) from the
2088
+ * given reader into the given message object.
2089
+ * @param {!proto.cms.ItemsBunchRequest} msg The message object to deserialize into.
2090
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2091
+ * @return {!proto.cms.ItemsBunchRequest}
2092
+ */
2093
+ proto.cms.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
2094
+ while (reader.nextField()) {
2095
+ if (reader.isEndGroup()) {
2096
+ break;
2097
+ }
2098
+ var field = reader.getFieldNumber();
2099
+ switch (field) {
2100
+ case 1:
2101
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
2102
+ for (var i = 0; i < values.length; i++) {
2103
+ msg.addIds(values[i]);
2104
+ }
2105
+ break;
2106
+ case 2:
2107
+ var value = /** @type {number} */ (reader.readInt32());
2108
+ msg.setIsActive(value);
2109
+ break;
2110
+ default:
2111
+ reader.skipField();
2112
+ break;
2113
+ }
2114
+ }
2115
+ return msg;
2116
+ };
2117
+
2118
+
2119
+ /**
2120
+ * Serializes the message to binary data (in protobuf wire format).
2121
+ * @return {!Uint8Array}
2122
+ */
2123
+ proto.cms.ItemsBunchRequest.prototype.serializeBinary = function() {
2124
+ var writer = new jspb.BinaryWriter();
2125
+ proto.cms.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
2126
+ return writer.getResultBuffer();
2127
+ };
2128
+
2129
+
2130
+ /**
2131
+ * Serializes the given message to binary data (in protobuf wire
2132
+ * format), writing to the given BinaryWriter.
2133
+ * @param {!proto.cms.ItemsBunchRequest} message
2134
+ * @param {!jspb.BinaryWriter} writer
2135
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2136
+ */
2137
+ proto.cms.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
2138
+ var f = undefined;
2139
+ f = message.getIdsList();
2140
+ if (f.length > 0) {
2141
+ writer.writePackedInt32(
2142
+ 1,
2143
+ f
2144
+ );
2145
+ }
2146
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
2147
+ if (f != null) {
2148
+ writer.writeInt32(
2149
+ 2,
2150
+ f
2151
+ );
2152
+ }
2153
+ };
2154
+
2155
+
2156
+ /**
2157
+ * repeated int32 ids = 1;
2158
+ * @return {!Array<number>}
2159
+ */
2160
+ proto.cms.ItemsBunchRequest.prototype.getIdsList = function() {
2161
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
2162
+ };
2163
+
2164
+
2165
+ /**
2166
+ * @param {!Array<number>} value
2167
+ * @return {!proto.cms.ItemsBunchRequest} returns this
2168
+ */
2169
+ proto.cms.ItemsBunchRequest.prototype.setIdsList = function(value) {
2170
+ return jspb.Message.setField(this, 1, value || []);
2171
+ };
2172
+
2173
+
2174
+ /**
2175
+ * @param {number} value
2176
+ * @param {number=} opt_index
2177
+ * @return {!proto.cms.ItemsBunchRequest} returns this
2178
+ */
2179
+ proto.cms.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
2180
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2181
+ };
2182
+
2183
+
2184
+ /**
2185
+ * Clears the list making it empty but non-null.
2186
+ * @return {!proto.cms.ItemsBunchRequest} returns this
2187
+ */
2188
+ proto.cms.ItemsBunchRequest.prototype.clearIdsList = function() {
2189
+ return this.setIdsList([]);
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * optional int32 is_active = 2;
2195
+ * @return {number}
2196
+ */
2197
+ proto.cms.ItemsBunchRequest.prototype.getIsActive = function() {
2198
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2199
+ };
2200
+
2201
+
2202
+ /**
2203
+ * @param {number} value
2204
+ * @return {!proto.cms.ItemsBunchRequest} returns this
2205
+ */
2206
+ proto.cms.ItemsBunchRequest.prototype.setIsActive = function(value) {
2207
+ return jspb.Message.setField(this, 2, value);
2208
+ };
2209
+
2210
+
2211
+ /**
2212
+ * Clears the field making it undefined.
2213
+ * @return {!proto.cms.ItemsBunchRequest} returns this
2214
+ */
2215
+ proto.cms.ItemsBunchRequest.prototype.clearIsActive = function() {
2216
+ return jspb.Message.setField(this, 2, undefined);
2217
+ };
2218
+
2219
+
2220
+ /**
2221
+ * Returns whether this field is set.
2222
+ * @return {boolean}
2223
+ */
2224
+ proto.cms.ItemsBunchRequest.prototype.hasIsActive = function() {
2225
+ return jspb.Message.getField(this, 2) != null;
2226
+ };
2227
+
2228
+
2229
+
2002
2230
 
2003
2231
 
2004
2232
  if (jspb.Message.GENERATE_TO_OBJECT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.53",
3
+ "version": "1.2.55",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {