protobuf-platform 1.2.321 → 1.2.322

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.2.321",
3
+ "version": "1.2.322",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -54,6 +54,7 @@ service User {
54
54
  //Manual user restrictions
55
55
  rpc readUserManualRestrictions(ReadUserManualRestrictionsRequest) returns (UserManualRestrictionsResponse);
56
56
  rpc updateUserManualRestriction(UpdateUserManualRestrictionRequest) returns (UserManualRestrictionItem);
57
+ rpc updateUserManualRestrictionsInBunch(UpdateUserManualRestrictionsInBunchRequest) returns (UserManualRestrictionsResponse);
57
58
  //Calculated user restrictions
58
59
  rpc readUserCalculatedRestrictions(ReadUserCalculatedRestrictionsRequest) returns (UserCalculatedRestrictionsResponse);
59
60
  //Risk permission matrix
@@ -693,6 +694,17 @@ message UpdateUserManualRestrictionRequest {
693
694
  bool is_blocked = 3;
694
695
  optional string reason = 4;
695
696
  }
697
+
698
+ message UpdateUserManualRestrictionInBunchItem {
699
+ string restriction_type = 1;
700
+ bool is_blocked = 2;
701
+ optional string reason = 3;
702
+ }
703
+ // Updates or creates only restrictions listed in items; others unchanged.
704
+ message UpdateUserManualRestrictionsInBunchRequest {
705
+ int64 user_id = 1;
706
+ repeated UpdateUserManualRestrictionInBunchItem items = 2;
707
+ }
696
708
  message ReadUserCalculatedRestrictionsRequest {
697
709
  int32 user_id = 1;
698
710
  optional string restriction_type = 2;
@@ -785,6 +785,17 @@ function deserialize_user_UpdateUserManualRestrictionRequest(buffer_arg) {
785
785
  return user_pb.UpdateUserManualRestrictionRequest.deserializeBinary(new Uint8Array(buffer_arg));
786
786
  }
787
787
 
788
+ function serialize_user_UpdateUserManualRestrictionsInBunchRequest(arg) {
789
+ if (!(arg instanceof user_pb.UpdateUserManualRestrictionsInBunchRequest)) {
790
+ throw new Error('Expected argument of type user.UpdateUserManualRestrictionsInBunchRequest');
791
+ }
792
+ return Buffer.from(arg.serializeBinary());
793
+ }
794
+
795
+ function deserialize_user_UpdateUserManualRestrictionsInBunchRequest(buffer_arg) {
796
+ return user_pb.UpdateUserManualRestrictionsInBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
797
+ }
798
+
788
799
  function serialize_user_UpdateUserRiskProfileRequest(arg) {
789
800
  if (!(arg instanceof user_pb.UpdateUserRiskProfileRequest)) {
790
801
  throw new Error('Expected argument of type user.UpdateUserRiskProfileRequest');
@@ -1608,6 +1619,17 @@ readUserManualRestrictions: {
1608
1619
  responseSerialize: serialize_user_UserManualRestrictionItem,
1609
1620
  responseDeserialize: deserialize_user_UserManualRestrictionItem,
1610
1621
  },
1622
+ updateUserManualRestrictionsInBunch: {
1623
+ path: '/user.User/updateUserManualRestrictionsInBunch',
1624
+ requestStream: false,
1625
+ responseStream: false,
1626
+ requestType: user_pb.UpdateUserManualRestrictionsInBunchRequest,
1627
+ responseType: user_pb.UserManualRestrictionsResponse,
1628
+ requestSerialize: serialize_user_UpdateUserManualRestrictionsInBunchRequest,
1629
+ requestDeserialize: deserialize_user_UpdateUserManualRestrictionsInBunchRequest,
1630
+ responseSerialize: serialize_user_UserManualRestrictionsResponse,
1631
+ responseDeserialize: deserialize_user_UserManualRestrictionsResponse,
1632
+ },
1611
1633
  // Calculated user restrictions
1612
1634
  readUserCalculatedRestrictions: {
1613
1635
  path: '/user.User/readUserCalculatedRestrictions',
package/user/user_pb.js CHANGED
@@ -110,7 +110,9 @@ goog.exportSymbol('proto.user.UpdateRiskPermissionMatrixLimitRequest', null, glo
110
110
  goog.exportSymbol('proto.user.UpdateRiskPermissionMatrixRequest', null, global);
111
111
  goog.exportSymbol('proto.user.UpdateUserKycDocumentReviewRequest', null, global);
112
112
  goog.exportSymbol('proto.user.UpdateUserKycProfileRequest', null, global);
113
+ goog.exportSymbol('proto.user.UpdateUserManualRestrictionInBunchItem', null, global);
113
114
  goog.exportSymbol('proto.user.UpdateUserManualRestrictionRequest', null, global);
115
+ goog.exportSymbol('proto.user.UpdateUserManualRestrictionsInBunchRequest', null, global);
114
116
  goog.exportSymbol('proto.user.UpdateUserRiskProfileRequest', null, global);
115
117
  goog.exportSymbol('proto.user.UserActionRequest', null, global);
116
118
  goog.exportSymbol('proto.user.UserActionResponse', null, global);
@@ -1658,6 +1660,48 @@ if (goog.DEBUG && !COMPILED) {
1658
1660
  */
1659
1661
  proto.user.UpdateUserManualRestrictionRequest.displayName = 'proto.user.UpdateUserManualRestrictionRequest';
1660
1662
  }
1663
+ /**
1664
+ * Generated by JsPbCodeGenerator.
1665
+ * @param {Array=} opt_data Optional initial data array, typically from a
1666
+ * server response, or constructed directly in Javascript. The array is used
1667
+ * in place and becomes part of the constructed object. It is not cloned.
1668
+ * If no data is provided, the constructed object will be empty, but still
1669
+ * valid.
1670
+ * @extends {jspb.Message}
1671
+ * @constructor
1672
+ */
1673
+ proto.user.UpdateUserManualRestrictionInBunchItem = function(opt_data) {
1674
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1675
+ };
1676
+ goog.inherits(proto.user.UpdateUserManualRestrictionInBunchItem, jspb.Message);
1677
+ if (goog.DEBUG && !COMPILED) {
1678
+ /**
1679
+ * @public
1680
+ * @override
1681
+ */
1682
+ proto.user.UpdateUserManualRestrictionInBunchItem.displayName = 'proto.user.UpdateUserManualRestrictionInBunchItem';
1683
+ }
1684
+ /**
1685
+ * Generated by JsPbCodeGenerator.
1686
+ * @param {Array=} opt_data Optional initial data array, typically from a
1687
+ * server response, or constructed directly in Javascript. The array is used
1688
+ * in place and becomes part of the constructed object. It is not cloned.
1689
+ * If no data is provided, the constructed object will be empty, but still
1690
+ * valid.
1691
+ * @extends {jspb.Message}
1692
+ * @constructor
1693
+ */
1694
+ proto.user.UpdateUserManualRestrictionsInBunchRequest = function(opt_data) {
1695
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UpdateUserManualRestrictionsInBunchRequest.repeatedFields_, null);
1696
+ };
1697
+ goog.inherits(proto.user.UpdateUserManualRestrictionsInBunchRequest, jspb.Message);
1698
+ if (goog.DEBUG && !COMPILED) {
1699
+ /**
1700
+ * @public
1701
+ * @override
1702
+ */
1703
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.displayName = 'proto.user.UpdateUserManualRestrictionsInBunchRequest';
1704
+ }
1661
1705
  /**
1662
1706
  * Generated by JsPbCodeGenerator.
1663
1707
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -30171,6 +30215,404 @@ proto.user.UpdateUserManualRestrictionRequest.prototype.hasReason = function() {
30171
30215
 
30172
30216
 
30173
30217
 
30218
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30219
+ /**
30220
+ * Creates an object representation of this proto.
30221
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30222
+ * Optional fields that are not set will be set to undefined.
30223
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30224
+ * For the list of reserved names please see:
30225
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30226
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30227
+ * JSPB instance for transitional soy proto support:
30228
+ * http://goto/soy-param-migration
30229
+ * @return {!Object}
30230
+ */
30231
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.toObject = function(opt_includeInstance) {
30232
+ return proto.user.UpdateUserManualRestrictionInBunchItem.toObject(opt_includeInstance, this);
30233
+ };
30234
+
30235
+
30236
+ /**
30237
+ * Static version of the {@see toObject} method.
30238
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30239
+ * the JSPB instance for transitional soy proto support:
30240
+ * http://goto/soy-param-migration
30241
+ * @param {!proto.user.UpdateUserManualRestrictionInBunchItem} msg The msg instance to transform.
30242
+ * @return {!Object}
30243
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30244
+ */
30245
+ proto.user.UpdateUserManualRestrictionInBunchItem.toObject = function(includeInstance, msg) {
30246
+ var f, obj = {
30247
+ restrictionType: jspb.Message.getFieldWithDefault(msg, 1, ""),
30248
+ isBlocked: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
30249
+ reason: jspb.Message.getFieldWithDefault(msg, 3, "")
30250
+ };
30251
+
30252
+ if (includeInstance) {
30253
+ obj.$jspbMessageInstance = msg;
30254
+ }
30255
+ return obj;
30256
+ };
30257
+ }
30258
+
30259
+
30260
+ /**
30261
+ * Deserializes binary data (in protobuf wire format).
30262
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30263
+ * @return {!proto.user.UpdateUserManualRestrictionInBunchItem}
30264
+ */
30265
+ proto.user.UpdateUserManualRestrictionInBunchItem.deserializeBinary = function(bytes) {
30266
+ var reader = new jspb.BinaryReader(bytes);
30267
+ var msg = new proto.user.UpdateUserManualRestrictionInBunchItem;
30268
+ return proto.user.UpdateUserManualRestrictionInBunchItem.deserializeBinaryFromReader(msg, reader);
30269
+ };
30270
+
30271
+
30272
+ /**
30273
+ * Deserializes binary data (in protobuf wire format) from the
30274
+ * given reader into the given message object.
30275
+ * @param {!proto.user.UpdateUserManualRestrictionInBunchItem} msg The message object to deserialize into.
30276
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30277
+ * @return {!proto.user.UpdateUserManualRestrictionInBunchItem}
30278
+ */
30279
+ proto.user.UpdateUserManualRestrictionInBunchItem.deserializeBinaryFromReader = function(msg, reader) {
30280
+ while (reader.nextField()) {
30281
+ if (reader.isEndGroup()) {
30282
+ break;
30283
+ }
30284
+ var field = reader.getFieldNumber();
30285
+ switch (field) {
30286
+ case 1:
30287
+ var value = /** @type {string} */ (reader.readString());
30288
+ msg.setRestrictionType(value);
30289
+ break;
30290
+ case 2:
30291
+ var value = /** @type {boolean} */ (reader.readBool());
30292
+ msg.setIsBlocked(value);
30293
+ break;
30294
+ case 3:
30295
+ var value = /** @type {string} */ (reader.readString());
30296
+ msg.setReason(value);
30297
+ break;
30298
+ default:
30299
+ reader.skipField();
30300
+ break;
30301
+ }
30302
+ }
30303
+ return msg;
30304
+ };
30305
+
30306
+
30307
+ /**
30308
+ * Serializes the message to binary data (in protobuf wire format).
30309
+ * @return {!Uint8Array}
30310
+ */
30311
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.serializeBinary = function() {
30312
+ var writer = new jspb.BinaryWriter();
30313
+ proto.user.UpdateUserManualRestrictionInBunchItem.serializeBinaryToWriter(this, writer);
30314
+ return writer.getResultBuffer();
30315
+ };
30316
+
30317
+
30318
+ /**
30319
+ * Serializes the given message to binary data (in protobuf wire
30320
+ * format), writing to the given BinaryWriter.
30321
+ * @param {!proto.user.UpdateUserManualRestrictionInBunchItem} message
30322
+ * @param {!jspb.BinaryWriter} writer
30323
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30324
+ */
30325
+ proto.user.UpdateUserManualRestrictionInBunchItem.serializeBinaryToWriter = function(message, writer) {
30326
+ var f = undefined;
30327
+ f = message.getRestrictionType();
30328
+ if (f.length > 0) {
30329
+ writer.writeString(
30330
+ 1,
30331
+ f
30332
+ );
30333
+ }
30334
+ f = message.getIsBlocked();
30335
+ if (f) {
30336
+ writer.writeBool(
30337
+ 2,
30338
+ f
30339
+ );
30340
+ }
30341
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
30342
+ if (f != null) {
30343
+ writer.writeString(
30344
+ 3,
30345
+ f
30346
+ );
30347
+ }
30348
+ };
30349
+
30350
+
30351
+ /**
30352
+ * optional string restriction_type = 1;
30353
+ * @return {string}
30354
+ */
30355
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.getRestrictionType = function() {
30356
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
30357
+ };
30358
+
30359
+
30360
+ /**
30361
+ * @param {string} value
30362
+ * @return {!proto.user.UpdateUserManualRestrictionInBunchItem} returns this
30363
+ */
30364
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.setRestrictionType = function(value) {
30365
+ return jspb.Message.setProto3StringField(this, 1, value);
30366
+ };
30367
+
30368
+
30369
+ /**
30370
+ * optional bool is_blocked = 2;
30371
+ * @return {boolean}
30372
+ */
30373
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.getIsBlocked = function() {
30374
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
30375
+ };
30376
+
30377
+
30378
+ /**
30379
+ * @param {boolean} value
30380
+ * @return {!proto.user.UpdateUserManualRestrictionInBunchItem} returns this
30381
+ */
30382
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.setIsBlocked = function(value) {
30383
+ return jspb.Message.setProto3BooleanField(this, 2, value);
30384
+ };
30385
+
30386
+
30387
+ /**
30388
+ * optional string reason = 3;
30389
+ * @return {string}
30390
+ */
30391
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.getReason = function() {
30392
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
30393
+ };
30394
+
30395
+
30396
+ /**
30397
+ * @param {string} value
30398
+ * @return {!proto.user.UpdateUserManualRestrictionInBunchItem} returns this
30399
+ */
30400
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.setReason = function(value) {
30401
+ return jspb.Message.setField(this, 3, value);
30402
+ };
30403
+
30404
+
30405
+ /**
30406
+ * Clears the field making it undefined.
30407
+ * @return {!proto.user.UpdateUserManualRestrictionInBunchItem} returns this
30408
+ */
30409
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.clearReason = function() {
30410
+ return jspb.Message.setField(this, 3, undefined);
30411
+ };
30412
+
30413
+
30414
+ /**
30415
+ * Returns whether this field is set.
30416
+ * @return {boolean}
30417
+ */
30418
+ proto.user.UpdateUserManualRestrictionInBunchItem.prototype.hasReason = function() {
30419
+ return jspb.Message.getField(this, 3) != null;
30420
+ };
30421
+
30422
+
30423
+
30424
+ /**
30425
+ * List of repeated fields within this message type.
30426
+ * @private {!Array<number>}
30427
+ * @const
30428
+ */
30429
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.repeatedFields_ = [2];
30430
+
30431
+
30432
+
30433
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30434
+ /**
30435
+ * Creates an object representation of this proto.
30436
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30437
+ * Optional fields that are not set will be set to undefined.
30438
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30439
+ * For the list of reserved names please see:
30440
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30441
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30442
+ * JSPB instance for transitional soy proto support:
30443
+ * http://goto/soy-param-migration
30444
+ * @return {!Object}
30445
+ */
30446
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.prototype.toObject = function(opt_includeInstance) {
30447
+ return proto.user.UpdateUserManualRestrictionsInBunchRequest.toObject(opt_includeInstance, this);
30448
+ };
30449
+
30450
+
30451
+ /**
30452
+ * Static version of the {@see toObject} method.
30453
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30454
+ * the JSPB instance for transitional soy proto support:
30455
+ * http://goto/soy-param-migration
30456
+ * @param {!proto.user.UpdateUserManualRestrictionsInBunchRequest} msg The msg instance to transform.
30457
+ * @return {!Object}
30458
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30459
+ */
30460
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.toObject = function(includeInstance, msg) {
30461
+ var f, obj = {
30462
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
30463
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
30464
+ proto.user.UpdateUserManualRestrictionInBunchItem.toObject, includeInstance)
30465
+ };
30466
+
30467
+ if (includeInstance) {
30468
+ obj.$jspbMessageInstance = msg;
30469
+ }
30470
+ return obj;
30471
+ };
30472
+ }
30473
+
30474
+
30475
+ /**
30476
+ * Deserializes binary data (in protobuf wire format).
30477
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30478
+ * @return {!proto.user.UpdateUserManualRestrictionsInBunchRequest}
30479
+ */
30480
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.deserializeBinary = function(bytes) {
30481
+ var reader = new jspb.BinaryReader(bytes);
30482
+ var msg = new proto.user.UpdateUserManualRestrictionsInBunchRequest;
30483
+ return proto.user.UpdateUserManualRestrictionsInBunchRequest.deserializeBinaryFromReader(msg, reader);
30484
+ };
30485
+
30486
+
30487
+ /**
30488
+ * Deserializes binary data (in protobuf wire format) from the
30489
+ * given reader into the given message object.
30490
+ * @param {!proto.user.UpdateUserManualRestrictionsInBunchRequest} msg The message object to deserialize into.
30491
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30492
+ * @return {!proto.user.UpdateUserManualRestrictionsInBunchRequest}
30493
+ */
30494
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
30495
+ while (reader.nextField()) {
30496
+ if (reader.isEndGroup()) {
30497
+ break;
30498
+ }
30499
+ var field = reader.getFieldNumber();
30500
+ switch (field) {
30501
+ case 1:
30502
+ var value = /** @type {number} */ (reader.readInt64());
30503
+ msg.setUserId(value);
30504
+ break;
30505
+ case 2:
30506
+ var value = new proto.user.UpdateUserManualRestrictionInBunchItem;
30507
+ reader.readMessage(value,proto.user.UpdateUserManualRestrictionInBunchItem.deserializeBinaryFromReader);
30508
+ msg.addItems(value);
30509
+ break;
30510
+ default:
30511
+ reader.skipField();
30512
+ break;
30513
+ }
30514
+ }
30515
+ return msg;
30516
+ };
30517
+
30518
+
30519
+ /**
30520
+ * Serializes the message to binary data (in protobuf wire format).
30521
+ * @return {!Uint8Array}
30522
+ */
30523
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.prototype.serializeBinary = function() {
30524
+ var writer = new jspb.BinaryWriter();
30525
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.serializeBinaryToWriter(this, writer);
30526
+ return writer.getResultBuffer();
30527
+ };
30528
+
30529
+
30530
+ /**
30531
+ * Serializes the given message to binary data (in protobuf wire
30532
+ * format), writing to the given BinaryWriter.
30533
+ * @param {!proto.user.UpdateUserManualRestrictionsInBunchRequest} message
30534
+ * @param {!jspb.BinaryWriter} writer
30535
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30536
+ */
30537
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.serializeBinaryToWriter = function(message, writer) {
30538
+ var f = undefined;
30539
+ f = message.getUserId();
30540
+ if (f !== 0) {
30541
+ writer.writeInt64(
30542
+ 1,
30543
+ f
30544
+ );
30545
+ }
30546
+ f = message.getItemsList();
30547
+ if (f.length > 0) {
30548
+ writer.writeRepeatedMessage(
30549
+ 2,
30550
+ f,
30551
+ proto.user.UpdateUserManualRestrictionInBunchItem.serializeBinaryToWriter
30552
+ );
30553
+ }
30554
+ };
30555
+
30556
+
30557
+ /**
30558
+ * optional int64 user_id = 1;
30559
+ * @return {number}
30560
+ */
30561
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.prototype.getUserId = function() {
30562
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
30563
+ };
30564
+
30565
+
30566
+ /**
30567
+ * @param {number} value
30568
+ * @return {!proto.user.UpdateUserManualRestrictionsInBunchRequest} returns this
30569
+ */
30570
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.prototype.setUserId = function(value) {
30571
+ return jspb.Message.setProto3IntField(this, 1, value);
30572
+ };
30573
+
30574
+
30575
+ /**
30576
+ * repeated UpdateUserManualRestrictionInBunchItem items = 2;
30577
+ * @return {!Array<!proto.user.UpdateUserManualRestrictionInBunchItem>}
30578
+ */
30579
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.prototype.getItemsList = function() {
30580
+ return /** @type{!Array<!proto.user.UpdateUserManualRestrictionInBunchItem>} */ (
30581
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UpdateUserManualRestrictionInBunchItem, 2));
30582
+ };
30583
+
30584
+
30585
+ /**
30586
+ * @param {!Array<!proto.user.UpdateUserManualRestrictionInBunchItem>} value
30587
+ * @return {!proto.user.UpdateUserManualRestrictionsInBunchRequest} returns this
30588
+ */
30589
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.prototype.setItemsList = function(value) {
30590
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
30591
+ };
30592
+
30593
+
30594
+ /**
30595
+ * @param {!proto.user.UpdateUserManualRestrictionInBunchItem=} opt_value
30596
+ * @param {number=} opt_index
30597
+ * @return {!proto.user.UpdateUserManualRestrictionInBunchItem}
30598
+ */
30599
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.prototype.addItems = function(opt_value, opt_index) {
30600
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.user.UpdateUserManualRestrictionInBunchItem, opt_index);
30601
+ };
30602
+
30603
+
30604
+ /**
30605
+ * Clears the list making it empty but non-null.
30606
+ * @return {!proto.user.UpdateUserManualRestrictionsInBunchRequest} returns this
30607
+ */
30608
+ proto.user.UpdateUserManualRestrictionsInBunchRequest.prototype.clearItemsList = function() {
30609
+ return this.setItemsList([]);
30610
+ };
30611
+
30612
+
30613
+
30614
+
30615
+
30174
30616
  if (jspb.Message.GENERATE_TO_OBJECT) {
30175
30617
  /**
30176
30618
  * Creates an object representation of this proto.