protobuf-platform 1.0.271 → 1.0.272

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.271",
3
+ "version": "1.0.272",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -261,4 +261,6 @@ message UserPaymentMethodItem {
261
261
  }
262
262
  message UserPaymentMethodsResponse {
263
263
  repeated UserPaymentMethodItem items = 1;
264
+ optional int32 total_pages = 2;
265
+ optional int32 total_items = 3;
264
266
  }
@@ -11177,7 +11177,9 @@ proto.payment.UserPaymentMethodsResponse.prototype.toObject = function(opt_inclu
11177
11177
  proto.payment.UserPaymentMethodsResponse.toObject = function(includeInstance, msg) {
11178
11178
  var f, obj = {
11179
11179
  itemsList: jspb.Message.toObjectList(msg.getItemsList(),
11180
- proto.payment.UserPaymentMethodItem.toObject, includeInstance)
11180
+ proto.payment.UserPaymentMethodItem.toObject, includeInstance),
11181
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
11182
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
11181
11183
  };
11182
11184
 
11183
11185
  if (includeInstance) {
@@ -11219,6 +11221,14 @@ proto.payment.UserPaymentMethodsResponse.deserializeBinaryFromReader = function(
11219
11221
  reader.readMessage(value,proto.payment.UserPaymentMethodItem.deserializeBinaryFromReader);
11220
11222
  msg.addItems(value);
11221
11223
  break;
11224
+ case 2:
11225
+ var value = /** @type {number} */ (reader.readInt32());
11226
+ msg.setTotalPages(value);
11227
+ break;
11228
+ case 3:
11229
+ var value = /** @type {number} */ (reader.readInt32());
11230
+ msg.setTotalItems(value);
11231
+ break;
11222
11232
  default:
11223
11233
  reader.skipField();
11224
11234
  break;
@@ -11256,6 +11266,20 @@ proto.payment.UserPaymentMethodsResponse.serializeBinaryToWriter = function(mess
11256
11266
  proto.payment.UserPaymentMethodItem.serializeBinaryToWriter
11257
11267
  );
11258
11268
  }
11269
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
11270
+ if (f != null) {
11271
+ writer.writeInt32(
11272
+ 2,
11273
+ f
11274
+ );
11275
+ }
11276
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
11277
+ if (f != null) {
11278
+ writer.writeInt32(
11279
+ 3,
11280
+ f
11281
+ );
11282
+ }
11259
11283
  };
11260
11284
 
11261
11285
 
@@ -11297,4 +11321,76 @@ proto.payment.UserPaymentMethodsResponse.prototype.clearItemsList = function() {
11297
11321
  };
11298
11322
 
11299
11323
 
11324
+ /**
11325
+ * optional int32 total_pages = 2;
11326
+ * @return {number}
11327
+ */
11328
+ proto.payment.UserPaymentMethodsResponse.prototype.getTotalPages = function() {
11329
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11330
+ };
11331
+
11332
+
11333
+ /**
11334
+ * @param {number} value
11335
+ * @return {!proto.payment.UserPaymentMethodsResponse} returns this
11336
+ */
11337
+ proto.payment.UserPaymentMethodsResponse.prototype.setTotalPages = function(value) {
11338
+ return jspb.Message.setField(this, 2, value);
11339
+ };
11340
+
11341
+
11342
+ /**
11343
+ * Clears the field making it undefined.
11344
+ * @return {!proto.payment.UserPaymentMethodsResponse} returns this
11345
+ */
11346
+ proto.payment.UserPaymentMethodsResponse.prototype.clearTotalPages = function() {
11347
+ return jspb.Message.setField(this, 2, undefined);
11348
+ };
11349
+
11350
+
11351
+ /**
11352
+ * Returns whether this field is set.
11353
+ * @return {boolean}
11354
+ */
11355
+ proto.payment.UserPaymentMethodsResponse.prototype.hasTotalPages = function() {
11356
+ return jspb.Message.getField(this, 2) != null;
11357
+ };
11358
+
11359
+
11360
+ /**
11361
+ * optional int32 total_items = 3;
11362
+ * @return {number}
11363
+ */
11364
+ proto.payment.UserPaymentMethodsResponse.prototype.getTotalItems = function() {
11365
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11366
+ };
11367
+
11368
+
11369
+ /**
11370
+ * @param {number} value
11371
+ * @return {!proto.payment.UserPaymentMethodsResponse} returns this
11372
+ */
11373
+ proto.payment.UserPaymentMethodsResponse.prototype.setTotalItems = function(value) {
11374
+ return jspb.Message.setField(this, 3, value);
11375
+ };
11376
+
11377
+
11378
+ /**
11379
+ * Clears the field making it undefined.
11380
+ * @return {!proto.payment.UserPaymentMethodsResponse} returns this
11381
+ */
11382
+ proto.payment.UserPaymentMethodsResponse.prototype.clearTotalItems = function() {
11383
+ return jspb.Message.setField(this, 3, undefined);
11384
+ };
11385
+
11386
+
11387
+ /**
11388
+ * Returns whether this field is set.
11389
+ * @return {boolean}
11390
+ */
11391
+ proto.payment.UserPaymentMethodsResponse.prototype.hasTotalItems = function() {
11392
+ return jspb.Message.getField(this, 3) != null;
11393
+ };
11394
+
11395
+
11300
11396
  goog.object.extend(exports, proto.payment);