protobuf-platform 1.2.210 → 1.2.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.210",
3
+ "version": "1.2.212",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -328,10 +328,11 @@ message UserPaymentMethodItem {
328
328
  string method_title = 3;
329
329
  string provider_title = 4;
330
330
  string image = 5;
331
- string currency = 6;
332
- optional string payment_type = 7;
333
- optional int32 min_amount = 8;
334
- optional int32 max_amount = 9;
331
+ string image_cdn = 6;
332
+ string currency = 7;
333
+ optional string payment_type = 8;
334
+ optional int32 min_amount = 9;
335
+ optional int32 max_amount = 10;
335
336
  }
336
337
  message UserPaymentMethodsResponse {
337
338
  repeated UserPaymentMethodItem items = 1;
@@ -13893,10 +13893,11 @@ proto.payment.UserPaymentMethodItem.toObject = function(includeInstance, msg) {
13893
13893
  methodTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
13894
13894
  providerTitle: jspb.Message.getFieldWithDefault(msg, 4, ""),
13895
13895
  image: jspb.Message.getFieldWithDefault(msg, 5, ""),
13896
- currency: jspb.Message.getFieldWithDefault(msg, 6, ""),
13897
- paymentType: jspb.Message.getFieldWithDefault(msg, 7, ""),
13898
- minAmount: jspb.Message.getFieldWithDefault(msg, 8, 0),
13899
- maxAmount: jspb.Message.getFieldWithDefault(msg, 9, 0)
13896
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 6, ""),
13897
+ currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
13898
+ paymentType: jspb.Message.getFieldWithDefault(msg, 8, ""),
13899
+ minAmount: jspb.Message.getFieldWithDefault(msg, 9, 0),
13900
+ maxAmount: jspb.Message.getFieldWithDefault(msg, 10, 0)
13900
13901
  };
13901
13902
 
13902
13903
  if (includeInstance) {
@@ -13955,17 +13956,21 @@ proto.payment.UserPaymentMethodItem.deserializeBinaryFromReader = function(msg,
13955
13956
  break;
13956
13957
  case 6:
13957
13958
  var value = /** @type {string} */ (reader.readString());
13958
- msg.setCurrency(value);
13959
+ msg.setImageCdn(value);
13959
13960
  break;
13960
13961
  case 7:
13961
13962
  var value = /** @type {string} */ (reader.readString());
13962
- msg.setPaymentType(value);
13963
+ msg.setCurrency(value);
13963
13964
  break;
13964
13965
  case 8:
13966
+ var value = /** @type {string} */ (reader.readString());
13967
+ msg.setPaymentType(value);
13968
+ break;
13969
+ case 9:
13965
13970
  var value = /** @type {number} */ (reader.readInt32());
13966
13971
  msg.setMinAmount(value);
13967
13972
  break;
13968
- case 9:
13973
+ case 10:
13969
13974
  var value = /** @type {number} */ (reader.readInt32());
13970
13975
  msg.setMaxAmount(value);
13971
13976
  break;
@@ -14033,23 +14038,23 @@ proto.payment.UserPaymentMethodItem.serializeBinaryToWriter = function(message,
14033
14038
  f
14034
14039
  );
14035
14040
  }
14036
- f = message.getCurrency();
14041
+ f = message.getImageCdn();
14037
14042
  if (f.length > 0) {
14038
14043
  writer.writeString(
14039
14044
  6,
14040
14045
  f
14041
14046
  );
14042
14047
  }
14043
- f = /** @type {string} */ (jspb.Message.getField(message, 7));
14044
- if (f != null) {
14048
+ f = message.getCurrency();
14049
+ if (f.length > 0) {
14045
14050
  writer.writeString(
14046
14051
  7,
14047
14052
  f
14048
14053
  );
14049
14054
  }
14050
- f = /** @type {number} */ (jspb.Message.getField(message, 8));
14055
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
14051
14056
  if (f != null) {
14052
- writer.writeInt32(
14057
+ writer.writeString(
14053
14058
  8,
14054
14059
  f
14055
14060
  );
@@ -14061,6 +14066,13 @@ proto.payment.UserPaymentMethodItem.serializeBinaryToWriter = function(message,
14061
14066
  f
14062
14067
  );
14063
14068
  }
14069
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
14070
+ if (f != null) {
14071
+ writer.writeInt32(
14072
+ 10,
14073
+ f
14074
+ );
14075
+ }
14064
14076
  };
14065
14077
 
14066
14078
 
@@ -14155,10 +14167,10 @@ proto.payment.UserPaymentMethodItem.prototype.setImage = function(value) {
14155
14167
 
14156
14168
 
14157
14169
  /**
14158
- * optional string currency = 6;
14170
+ * optional string image_cdn = 6;
14159
14171
  * @return {string}
14160
14172
  */
14161
- proto.payment.UserPaymentMethodItem.prototype.getCurrency = function() {
14173
+ proto.payment.UserPaymentMethodItem.prototype.getImageCdn = function() {
14162
14174
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
14163
14175
  };
14164
14176
 
@@ -14167,26 +14179,44 @@ proto.payment.UserPaymentMethodItem.prototype.getCurrency = function() {
14167
14179
  * @param {string} value
14168
14180
  * @return {!proto.payment.UserPaymentMethodItem} returns this
14169
14181
  */
14170
- proto.payment.UserPaymentMethodItem.prototype.setCurrency = function(value) {
14182
+ proto.payment.UserPaymentMethodItem.prototype.setImageCdn = function(value) {
14171
14183
  return jspb.Message.setProto3StringField(this, 6, value);
14172
14184
  };
14173
14185
 
14174
14186
 
14175
14187
  /**
14176
- * optional string payment_type = 7;
14188
+ * optional string currency = 7;
14177
14189
  * @return {string}
14178
14190
  */
14179
- proto.payment.UserPaymentMethodItem.prototype.getPaymentType = function() {
14191
+ proto.payment.UserPaymentMethodItem.prototype.getCurrency = function() {
14180
14192
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
14181
14193
  };
14182
14194
 
14183
14195
 
14196
+ /**
14197
+ * @param {string} value
14198
+ * @return {!proto.payment.UserPaymentMethodItem} returns this
14199
+ */
14200
+ proto.payment.UserPaymentMethodItem.prototype.setCurrency = function(value) {
14201
+ return jspb.Message.setProto3StringField(this, 7, value);
14202
+ };
14203
+
14204
+
14205
+ /**
14206
+ * optional string payment_type = 8;
14207
+ * @return {string}
14208
+ */
14209
+ proto.payment.UserPaymentMethodItem.prototype.getPaymentType = function() {
14210
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
14211
+ };
14212
+
14213
+
14184
14214
  /**
14185
14215
  * @param {string} value
14186
14216
  * @return {!proto.payment.UserPaymentMethodItem} returns this
14187
14217
  */
14188
14218
  proto.payment.UserPaymentMethodItem.prototype.setPaymentType = function(value) {
14189
- return jspb.Message.setField(this, 7, value);
14219
+ return jspb.Message.setField(this, 8, value);
14190
14220
  };
14191
14221
 
14192
14222
 
@@ -14195,7 +14225,7 @@ proto.payment.UserPaymentMethodItem.prototype.setPaymentType = function(value) {
14195
14225
  * @return {!proto.payment.UserPaymentMethodItem} returns this
14196
14226
  */
14197
14227
  proto.payment.UserPaymentMethodItem.prototype.clearPaymentType = function() {
14198
- return jspb.Message.setField(this, 7, undefined);
14228
+ return jspb.Message.setField(this, 8, undefined);
14199
14229
  };
14200
14230
 
14201
14231
 
@@ -14204,16 +14234,16 @@ proto.payment.UserPaymentMethodItem.prototype.clearPaymentType = function() {
14204
14234
  * @return {boolean}
14205
14235
  */
14206
14236
  proto.payment.UserPaymentMethodItem.prototype.hasPaymentType = function() {
14207
- return jspb.Message.getField(this, 7) != null;
14237
+ return jspb.Message.getField(this, 8) != null;
14208
14238
  };
14209
14239
 
14210
14240
 
14211
14241
  /**
14212
- * optional int32 min_amount = 8;
14242
+ * optional int32 min_amount = 9;
14213
14243
  * @return {number}
14214
14244
  */
14215
14245
  proto.payment.UserPaymentMethodItem.prototype.getMinAmount = function() {
14216
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
14246
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
14217
14247
  };
14218
14248
 
14219
14249
 
@@ -14222,7 +14252,7 @@ proto.payment.UserPaymentMethodItem.prototype.getMinAmount = function() {
14222
14252
  * @return {!proto.payment.UserPaymentMethodItem} returns this
14223
14253
  */
14224
14254
  proto.payment.UserPaymentMethodItem.prototype.setMinAmount = function(value) {
14225
- return jspb.Message.setField(this, 8, value);
14255
+ return jspb.Message.setField(this, 9, value);
14226
14256
  };
14227
14257
 
14228
14258
 
@@ -14231,7 +14261,7 @@ proto.payment.UserPaymentMethodItem.prototype.setMinAmount = function(value) {
14231
14261
  * @return {!proto.payment.UserPaymentMethodItem} returns this
14232
14262
  */
14233
14263
  proto.payment.UserPaymentMethodItem.prototype.clearMinAmount = function() {
14234
- return jspb.Message.setField(this, 8, undefined);
14264
+ return jspb.Message.setField(this, 9, undefined);
14235
14265
  };
14236
14266
 
14237
14267
 
@@ -14240,16 +14270,16 @@ proto.payment.UserPaymentMethodItem.prototype.clearMinAmount = function() {
14240
14270
  * @return {boolean}
14241
14271
  */
14242
14272
  proto.payment.UserPaymentMethodItem.prototype.hasMinAmount = function() {
14243
- return jspb.Message.getField(this, 8) != null;
14273
+ return jspb.Message.getField(this, 9) != null;
14244
14274
  };
14245
14275
 
14246
14276
 
14247
14277
  /**
14248
- * optional int32 max_amount = 9;
14278
+ * optional int32 max_amount = 10;
14249
14279
  * @return {number}
14250
14280
  */
14251
14281
  proto.payment.UserPaymentMethodItem.prototype.getMaxAmount = function() {
14252
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
14282
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
14253
14283
  };
14254
14284
 
14255
14285
 
@@ -14258,7 +14288,7 @@ proto.payment.UserPaymentMethodItem.prototype.getMaxAmount = function() {
14258
14288
  * @return {!proto.payment.UserPaymentMethodItem} returns this
14259
14289
  */
14260
14290
  proto.payment.UserPaymentMethodItem.prototype.setMaxAmount = function(value) {
14261
- return jspb.Message.setField(this, 9, value);
14291
+ return jspb.Message.setField(this, 10, value);
14262
14292
  };
14263
14293
 
14264
14294
 
@@ -14267,7 +14297,7 @@ proto.payment.UserPaymentMethodItem.prototype.setMaxAmount = function(value) {
14267
14297
  * @return {!proto.payment.UserPaymentMethodItem} returns this
14268
14298
  */
14269
14299
  proto.payment.UserPaymentMethodItem.prototype.clearMaxAmount = function() {
14270
- return jspb.Message.setField(this, 9, undefined);
14300
+ return jspb.Message.setField(this, 10, undefined);
14271
14301
  };
14272
14302
 
14273
14303
 
@@ -14276,7 +14306,7 @@ proto.payment.UserPaymentMethodItem.prototype.clearMaxAmount = function() {
14276
14306
  * @return {boolean}
14277
14307
  */
14278
14308
  proto.payment.UserPaymentMethodItem.prototype.hasMaxAmount = function() {
14279
- return jspb.Message.getField(this, 9) != null;
14309
+ return jspb.Message.getField(this, 10) != null;
14280
14310
  };
14281
14311
 
14282
14312
 
package/user/user.proto CHANGED
@@ -13,6 +13,7 @@ service User {
13
13
  rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
14
14
  rpc getUserCachedData(UserDataRequest) returns (UserDataResponse);
15
15
  rpc getUserAffiliateAttribution(UserAffiliateAttributionRequest) returns (UserAffiliateAttributionResponse);
16
+ rpc batchGetAffiliateAttribution(BatchGetAffiliateAttributionRequest) returns (BatchGetAffiliateAttributionResponse);
16
17
  //Role and Permissions
17
18
  rpc addPermissionToUserRole(RolePermissionRequest) returns (RolePermissionStatusResponse);
18
19
  rpc rolesList(PaginationRequest) returns (RolesItemsResponse);
@@ -190,6 +191,17 @@ message UserAffiliateAttributionResponse {
190
191
  optional string offer_id = 5;
191
192
  optional string user_public_id = 6;
192
193
  }
194
+ message BatchGetAffiliateAttributionRequest {
195
+ repeated int32 user_ids = 1;
196
+ }
197
+ message BatchGetAffiliateAttributionResponse {
198
+ repeated BatchGetAffiliateAttributionItem items = 1;
199
+ }
200
+ message BatchGetAffiliateAttributionItem {
201
+ int32 user_id = 1;
202
+ string user_public_id = 2;
203
+ string click_id = 3;
204
+ }
193
205
  message UserBalanceRequest {
194
206
  int32 id = 1;
195
207
  float amount = 2;
@@ -4,6 +4,28 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var user_pb = require('./user_pb.js');
6
6
 
7
+ function serialize_user_BatchGetAffiliateAttributionRequest(arg) {
8
+ if (!(arg instanceof user_pb.BatchGetAffiliateAttributionRequest)) {
9
+ throw new Error('Expected argument of type user.BatchGetAffiliateAttributionRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_user_BatchGetAffiliateAttributionRequest(buffer_arg) {
15
+ return user_pb.BatchGetAffiliateAttributionRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_user_BatchGetAffiliateAttributionResponse(arg) {
19
+ if (!(arg instanceof user_pb.BatchGetAffiliateAttributionResponse)) {
20
+ throw new Error('Expected argument of type user.BatchGetAffiliateAttributionResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_user_BatchGetAffiliateAttributionResponse(buffer_arg) {
26
+ return user_pb.BatchGetAffiliateAttributionResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
7
29
  function serialize_user_CategoryItemsResponse(arg) {
8
30
  if (!(arg instanceof user_pb.CategoryItemsResponse)) {
9
31
  throw new Error('Expected argument of type user.CategoryItemsResponse');
@@ -777,6 +799,17 @@ signUp: {
777
799
  responseSerialize: serialize_user_UserAffiliateAttributionResponse,
778
800
  responseDeserialize: deserialize_user_UserAffiliateAttributionResponse,
779
801
  },
802
+ batchGetAffiliateAttribution: {
803
+ path: '/user.User/batchGetAffiliateAttribution',
804
+ requestStream: false,
805
+ responseStream: false,
806
+ requestType: user_pb.BatchGetAffiliateAttributionRequest,
807
+ responseType: user_pb.BatchGetAffiliateAttributionResponse,
808
+ requestSerialize: serialize_user_BatchGetAffiliateAttributionRequest,
809
+ requestDeserialize: deserialize_user_BatchGetAffiliateAttributionRequest,
810
+ responseSerialize: serialize_user_BatchGetAffiliateAttributionResponse,
811
+ responseDeserialize: deserialize_user_BatchGetAffiliateAttributionResponse,
812
+ },
780
813
  // Role and Permissions
781
814
  addPermissionToUserRole: {
782
815
  path: '/user.User/addPermissionToUserRole',
package/user/user_pb.js CHANGED
@@ -21,6 +21,9 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.user.BatchGetAffiliateAttributionItem', null, global);
25
+ goog.exportSymbol('proto.user.BatchGetAffiliateAttributionRequest', null, global);
26
+ goog.exportSymbol('proto.user.BatchGetAffiliateAttributionResponse', null, global);
24
27
  goog.exportSymbol('proto.user.CategoryItem', null, global);
25
28
  goog.exportSymbol('proto.user.CategoryItemsResponse', null, global);
26
29
  goog.exportSymbol('proto.user.ConfirmTwoFaRequest', null, global);
@@ -396,6 +399,69 @@ if (goog.DEBUG && !COMPILED) {
396
399
  */
397
400
  proto.user.UserAffiliateAttributionResponse.displayName = 'proto.user.UserAffiliateAttributionResponse';
398
401
  }
402
+ /**
403
+ * Generated by JsPbCodeGenerator.
404
+ * @param {Array=} opt_data Optional initial data array, typically from a
405
+ * server response, or constructed directly in Javascript. The array is used
406
+ * in place and becomes part of the constructed object. It is not cloned.
407
+ * If no data is provided, the constructed object will be empty, but still
408
+ * valid.
409
+ * @extends {jspb.Message}
410
+ * @constructor
411
+ */
412
+ proto.user.BatchGetAffiliateAttributionRequest = function(opt_data) {
413
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.BatchGetAffiliateAttributionRequest.repeatedFields_, null);
414
+ };
415
+ goog.inherits(proto.user.BatchGetAffiliateAttributionRequest, jspb.Message);
416
+ if (goog.DEBUG && !COMPILED) {
417
+ /**
418
+ * @public
419
+ * @override
420
+ */
421
+ proto.user.BatchGetAffiliateAttributionRequest.displayName = 'proto.user.BatchGetAffiliateAttributionRequest';
422
+ }
423
+ /**
424
+ * Generated by JsPbCodeGenerator.
425
+ * @param {Array=} opt_data Optional initial data array, typically from a
426
+ * server response, or constructed directly in Javascript. The array is used
427
+ * in place and becomes part of the constructed object. It is not cloned.
428
+ * If no data is provided, the constructed object will be empty, but still
429
+ * valid.
430
+ * @extends {jspb.Message}
431
+ * @constructor
432
+ */
433
+ proto.user.BatchGetAffiliateAttributionResponse = function(opt_data) {
434
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.BatchGetAffiliateAttributionResponse.repeatedFields_, null);
435
+ };
436
+ goog.inherits(proto.user.BatchGetAffiliateAttributionResponse, jspb.Message);
437
+ if (goog.DEBUG && !COMPILED) {
438
+ /**
439
+ * @public
440
+ * @override
441
+ */
442
+ proto.user.BatchGetAffiliateAttributionResponse.displayName = 'proto.user.BatchGetAffiliateAttributionResponse';
443
+ }
444
+ /**
445
+ * Generated by JsPbCodeGenerator.
446
+ * @param {Array=} opt_data Optional initial data array, typically from a
447
+ * server response, or constructed directly in Javascript. The array is used
448
+ * in place and becomes part of the constructed object. It is not cloned.
449
+ * If no data is provided, the constructed object will be empty, but still
450
+ * valid.
451
+ * @extends {jspb.Message}
452
+ * @constructor
453
+ */
454
+ proto.user.BatchGetAffiliateAttributionItem = function(opt_data) {
455
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
456
+ };
457
+ goog.inherits(proto.user.BatchGetAffiliateAttributionItem, jspb.Message);
458
+ if (goog.DEBUG && !COMPILED) {
459
+ /**
460
+ * @public
461
+ * @override
462
+ */
463
+ proto.user.BatchGetAffiliateAttributionItem.displayName = 'proto.user.BatchGetAffiliateAttributionItem';
464
+ }
399
465
  /**
400
466
  * Generated by JsPbCodeGenerator.
401
467
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7409,6 +7475,514 @@ proto.user.UserAffiliateAttributionResponse.prototype.hasUserPublicId = function
7409
7475
 
7410
7476
 
7411
7477
 
7478
+ /**
7479
+ * List of repeated fields within this message type.
7480
+ * @private {!Array<number>}
7481
+ * @const
7482
+ */
7483
+ proto.user.BatchGetAffiliateAttributionRequest.repeatedFields_ = [1];
7484
+
7485
+
7486
+
7487
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7488
+ /**
7489
+ * Creates an object representation of this proto.
7490
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7491
+ * Optional fields that are not set will be set to undefined.
7492
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7493
+ * For the list of reserved names please see:
7494
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7495
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7496
+ * JSPB instance for transitional soy proto support:
7497
+ * http://goto/soy-param-migration
7498
+ * @return {!Object}
7499
+ */
7500
+ proto.user.BatchGetAffiliateAttributionRequest.prototype.toObject = function(opt_includeInstance) {
7501
+ return proto.user.BatchGetAffiliateAttributionRequest.toObject(opt_includeInstance, this);
7502
+ };
7503
+
7504
+
7505
+ /**
7506
+ * Static version of the {@see toObject} method.
7507
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7508
+ * the JSPB instance for transitional soy proto support:
7509
+ * http://goto/soy-param-migration
7510
+ * @param {!proto.user.BatchGetAffiliateAttributionRequest} msg The msg instance to transform.
7511
+ * @return {!Object}
7512
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7513
+ */
7514
+ proto.user.BatchGetAffiliateAttributionRequest.toObject = function(includeInstance, msg) {
7515
+ var f, obj = {
7516
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
7517
+ };
7518
+
7519
+ if (includeInstance) {
7520
+ obj.$jspbMessageInstance = msg;
7521
+ }
7522
+ return obj;
7523
+ };
7524
+ }
7525
+
7526
+
7527
+ /**
7528
+ * Deserializes binary data (in protobuf wire format).
7529
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7530
+ * @return {!proto.user.BatchGetAffiliateAttributionRequest}
7531
+ */
7532
+ proto.user.BatchGetAffiliateAttributionRequest.deserializeBinary = function(bytes) {
7533
+ var reader = new jspb.BinaryReader(bytes);
7534
+ var msg = new proto.user.BatchGetAffiliateAttributionRequest;
7535
+ return proto.user.BatchGetAffiliateAttributionRequest.deserializeBinaryFromReader(msg, reader);
7536
+ };
7537
+
7538
+
7539
+ /**
7540
+ * Deserializes binary data (in protobuf wire format) from the
7541
+ * given reader into the given message object.
7542
+ * @param {!proto.user.BatchGetAffiliateAttributionRequest} msg The message object to deserialize into.
7543
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7544
+ * @return {!proto.user.BatchGetAffiliateAttributionRequest}
7545
+ */
7546
+ proto.user.BatchGetAffiliateAttributionRequest.deserializeBinaryFromReader = function(msg, reader) {
7547
+ while (reader.nextField()) {
7548
+ if (reader.isEndGroup()) {
7549
+ break;
7550
+ }
7551
+ var field = reader.getFieldNumber();
7552
+ switch (field) {
7553
+ case 1:
7554
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
7555
+ for (var i = 0; i < values.length; i++) {
7556
+ msg.addUserIds(values[i]);
7557
+ }
7558
+ break;
7559
+ default:
7560
+ reader.skipField();
7561
+ break;
7562
+ }
7563
+ }
7564
+ return msg;
7565
+ };
7566
+
7567
+
7568
+ /**
7569
+ * Serializes the message to binary data (in protobuf wire format).
7570
+ * @return {!Uint8Array}
7571
+ */
7572
+ proto.user.BatchGetAffiliateAttributionRequest.prototype.serializeBinary = function() {
7573
+ var writer = new jspb.BinaryWriter();
7574
+ proto.user.BatchGetAffiliateAttributionRequest.serializeBinaryToWriter(this, writer);
7575
+ return writer.getResultBuffer();
7576
+ };
7577
+
7578
+
7579
+ /**
7580
+ * Serializes the given message to binary data (in protobuf wire
7581
+ * format), writing to the given BinaryWriter.
7582
+ * @param {!proto.user.BatchGetAffiliateAttributionRequest} message
7583
+ * @param {!jspb.BinaryWriter} writer
7584
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7585
+ */
7586
+ proto.user.BatchGetAffiliateAttributionRequest.serializeBinaryToWriter = function(message, writer) {
7587
+ var f = undefined;
7588
+ f = message.getUserIdsList();
7589
+ if (f.length > 0) {
7590
+ writer.writePackedInt32(
7591
+ 1,
7592
+ f
7593
+ );
7594
+ }
7595
+ };
7596
+
7597
+
7598
+ /**
7599
+ * repeated int32 user_ids = 1;
7600
+ * @return {!Array<number>}
7601
+ */
7602
+ proto.user.BatchGetAffiliateAttributionRequest.prototype.getUserIdsList = function() {
7603
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
7604
+ };
7605
+
7606
+
7607
+ /**
7608
+ * @param {!Array<number>} value
7609
+ * @return {!proto.user.BatchGetAffiliateAttributionRequest} returns this
7610
+ */
7611
+ proto.user.BatchGetAffiliateAttributionRequest.prototype.setUserIdsList = function(value) {
7612
+ return jspb.Message.setField(this, 1, value || []);
7613
+ };
7614
+
7615
+
7616
+ /**
7617
+ * @param {number} value
7618
+ * @param {number=} opt_index
7619
+ * @return {!proto.user.BatchGetAffiliateAttributionRequest} returns this
7620
+ */
7621
+ proto.user.BatchGetAffiliateAttributionRequest.prototype.addUserIds = function(value, opt_index) {
7622
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
7623
+ };
7624
+
7625
+
7626
+ /**
7627
+ * Clears the list making it empty but non-null.
7628
+ * @return {!proto.user.BatchGetAffiliateAttributionRequest} returns this
7629
+ */
7630
+ proto.user.BatchGetAffiliateAttributionRequest.prototype.clearUserIdsList = function() {
7631
+ return this.setUserIdsList([]);
7632
+ };
7633
+
7634
+
7635
+
7636
+ /**
7637
+ * List of repeated fields within this message type.
7638
+ * @private {!Array<number>}
7639
+ * @const
7640
+ */
7641
+ proto.user.BatchGetAffiliateAttributionResponse.repeatedFields_ = [1];
7642
+
7643
+
7644
+
7645
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7646
+ /**
7647
+ * Creates an object representation of this proto.
7648
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7649
+ * Optional fields that are not set will be set to undefined.
7650
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7651
+ * For the list of reserved names please see:
7652
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7653
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7654
+ * JSPB instance for transitional soy proto support:
7655
+ * http://goto/soy-param-migration
7656
+ * @return {!Object}
7657
+ */
7658
+ proto.user.BatchGetAffiliateAttributionResponse.prototype.toObject = function(opt_includeInstance) {
7659
+ return proto.user.BatchGetAffiliateAttributionResponse.toObject(opt_includeInstance, this);
7660
+ };
7661
+
7662
+
7663
+ /**
7664
+ * Static version of the {@see toObject} method.
7665
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7666
+ * the JSPB instance for transitional soy proto support:
7667
+ * http://goto/soy-param-migration
7668
+ * @param {!proto.user.BatchGetAffiliateAttributionResponse} msg The msg instance to transform.
7669
+ * @return {!Object}
7670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7671
+ */
7672
+ proto.user.BatchGetAffiliateAttributionResponse.toObject = function(includeInstance, msg) {
7673
+ var f, obj = {
7674
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
7675
+ proto.user.BatchGetAffiliateAttributionItem.toObject, includeInstance)
7676
+ };
7677
+
7678
+ if (includeInstance) {
7679
+ obj.$jspbMessageInstance = msg;
7680
+ }
7681
+ return obj;
7682
+ };
7683
+ }
7684
+
7685
+
7686
+ /**
7687
+ * Deserializes binary data (in protobuf wire format).
7688
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7689
+ * @return {!proto.user.BatchGetAffiliateAttributionResponse}
7690
+ */
7691
+ proto.user.BatchGetAffiliateAttributionResponse.deserializeBinary = function(bytes) {
7692
+ var reader = new jspb.BinaryReader(bytes);
7693
+ var msg = new proto.user.BatchGetAffiliateAttributionResponse;
7694
+ return proto.user.BatchGetAffiliateAttributionResponse.deserializeBinaryFromReader(msg, reader);
7695
+ };
7696
+
7697
+
7698
+ /**
7699
+ * Deserializes binary data (in protobuf wire format) from the
7700
+ * given reader into the given message object.
7701
+ * @param {!proto.user.BatchGetAffiliateAttributionResponse} msg The message object to deserialize into.
7702
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7703
+ * @return {!proto.user.BatchGetAffiliateAttributionResponse}
7704
+ */
7705
+ proto.user.BatchGetAffiliateAttributionResponse.deserializeBinaryFromReader = function(msg, reader) {
7706
+ while (reader.nextField()) {
7707
+ if (reader.isEndGroup()) {
7708
+ break;
7709
+ }
7710
+ var field = reader.getFieldNumber();
7711
+ switch (field) {
7712
+ case 1:
7713
+ var value = new proto.user.BatchGetAffiliateAttributionItem;
7714
+ reader.readMessage(value,proto.user.BatchGetAffiliateAttributionItem.deserializeBinaryFromReader);
7715
+ msg.addItems(value);
7716
+ break;
7717
+ default:
7718
+ reader.skipField();
7719
+ break;
7720
+ }
7721
+ }
7722
+ return msg;
7723
+ };
7724
+
7725
+
7726
+ /**
7727
+ * Serializes the message to binary data (in protobuf wire format).
7728
+ * @return {!Uint8Array}
7729
+ */
7730
+ proto.user.BatchGetAffiliateAttributionResponse.prototype.serializeBinary = function() {
7731
+ var writer = new jspb.BinaryWriter();
7732
+ proto.user.BatchGetAffiliateAttributionResponse.serializeBinaryToWriter(this, writer);
7733
+ return writer.getResultBuffer();
7734
+ };
7735
+
7736
+
7737
+ /**
7738
+ * Serializes the given message to binary data (in protobuf wire
7739
+ * format), writing to the given BinaryWriter.
7740
+ * @param {!proto.user.BatchGetAffiliateAttributionResponse} message
7741
+ * @param {!jspb.BinaryWriter} writer
7742
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7743
+ */
7744
+ proto.user.BatchGetAffiliateAttributionResponse.serializeBinaryToWriter = function(message, writer) {
7745
+ var f = undefined;
7746
+ f = message.getItemsList();
7747
+ if (f.length > 0) {
7748
+ writer.writeRepeatedMessage(
7749
+ 1,
7750
+ f,
7751
+ proto.user.BatchGetAffiliateAttributionItem.serializeBinaryToWriter
7752
+ );
7753
+ }
7754
+ };
7755
+
7756
+
7757
+ /**
7758
+ * repeated BatchGetAffiliateAttributionItem items = 1;
7759
+ * @return {!Array<!proto.user.BatchGetAffiliateAttributionItem>}
7760
+ */
7761
+ proto.user.BatchGetAffiliateAttributionResponse.prototype.getItemsList = function() {
7762
+ return /** @type{!Array<!proto.user.BatchGetAffiliateAttributionItem>} */ (
7763
+ jspb.Message.getRepeatedWrapperField(this, proto.user.BatchGetAffiliateAttributionItem, 1));
7764
+ };
7765
+
7766
+
7767
+ /**
7768
+ * @param {!Array<!proto.user.BatchGetAffiliateAttributionItem>} value
7769
+ * @return {!proto.user.BatchGetAffiliateAttributionResponse} returns this
7770
+ */
7771
+ proto.user.BatchGetAffiliateAttributionResponse.prototype.setItemsList = function(value) {
7772
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
7773
+ };
7774
+
7775
+
7776
+ /**
7777
+ * @param {!proto.user.BatchGetAffiliateAttributionItem=} opt_value
7778
+ * @param {number=} opt_index
7779
+ * @return {!proto.user.BatchGetAffiliateAttributionItem}
7780
+ */
7781
+ proto.user.BatchGetAffiliateAttributionResponse.prototype.addItems = function(opt_value, opt_index) {
7782
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.BatchGetAffiliateAttributionItem, opt_index);
7783
+ };
7784
+
7785
+
7786
+ /**
7787
+ * Clears the list making it empty but non-null.
7788
+ * @return {!proto.user.BatchGetAffiliateAttributionResponse} returns this
7789
+ */
7790
+ proto.user.BatchGetAffiliateAttributionResponse.prototype.clearItemsList = function() {
7791
+ return this.setItemsList([]);
7792
+ };
7793
+
7794
+
7795
+
7796
+
7797
+
7798
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7799
+ /**
7800
+ * Creates an object representation of this proto.
7801
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7802
+ * Optional fields that are not set will be set to undefined.
7803
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7804
+ * For the list of reserved names please see:
7805
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7806
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7807
+ * JSPB instance for transitional soy proto support:
7808
+ * http://goto/soy-param-migration
7809
+ * @return {!Object}
7810
+ */
7811
+ proto.user.BatchGetAffiliateAttributionItem.prototype.toObject = function(opt_includeInstance) {
7812
+ return proto.user.BatchGetAffiliateAttributionItem.toObject(opt_includeInstance, this);
7813
+ };
7814
+
7815
+
7816
+ /**
7817
+ * Static version of the {@see toObject} method.
7818
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7819
+ * the JSPB instance for transitional soy proto support:
7820
+ * http://goto/soy-param-migration
7821
+ * @param {!proto.user.BatchGetAffiliateAttributionItem} msg The msg instance to transform.
7822
+ * @return {!Object}
7823
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7824
+ */
7825
+ proto.user.BatchGetAffiliateAttributionItem.toObject = function(includeInstance, msg) {
7826
+ var f, obj = {
7827
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
7828
+ userPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
7829
+ clickId: jspb.Message.getFieldWithDefault(msg, 3, "")
7830
+ };
7831
+
7832
+ if (includeInstance) {
7833
+ obj.$jspbMessageInstance = msg;
7834
+ }
7835
+ return obj;
7836
+ };
7837
+ }
7838
+
7839
+
7840
+ /**
7841
+ * Deserializes binary data (in protobuf wire format).
7842
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7843
+ * @return {!proto.user.BatchGetAffiliateAttributionItem}
7844
+ */
7845
+ proto.user.BatchGetAffiliateAttributionItem.deserializeBinary = function(bytes) {
7846
+ var reader = new jspb.BinaryReader(bytes);
7847
+ var msg = new proto.user.BatchGetAffiliateAttributionItem;
7848
+ return proto.user.BatchGetAffiliateAttributionItem.deserializeBinaryFromReader(msg, reader);
7849
+ };
7850
+
7851
+
7852
+ /**
7853
+ * Deserializes binary data (in protobuf wire format) from the
7854
+ * given reader into the given message object.
7855
+ * @param {!proto.user.BatchGetAffiliateAttributionItem} msg The message object to deserialize into.
7856
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7857
+ * @return {!proto.user.BatchGetAffiliateAttributionItem}
7858
+ */
7859
+ proto.user.BatchGetAffiliateAttributionItem.deserializeBinaryFromReader = function(msg, reader) {
7860
+ while (reader.nextField()) {
7861
+ if (reader.isEndGroup()) {
7862
+ break;
7863
+ }
7864
+ var field = reader.getFieldNumber();
7865
+ switch (field) {
7866
+ case 1:
7867
+ var value = /** @type {number} */ (reader.readInt32());
7868
+ msg.setUserId(value);
7869
+ break;
7870
+ case 2:
7871
+ var value = /** @type {string} */ (reader.readString());
7872
+ msg.setUserPublicId(value);
7873
+ break;
7874
+ case 3:
7875
+ var value = /** @type {string} */ (reader.readString());
7876
+ msg.setClickId(value);
7877
+ break;
7878
+ default:
7879
+ reader.skipField();
7880
+ break;
7881
+ }
7882
+ }
7883
+ return msg;
7884
+ };
7885
+
7886
+
7887
+ /**
7888
+ * Serializes the message to binary data (in protobuf wire format).
7889
+ * @return {!Uint8Array}
7890
+ */
7891
+ proto.user.BatchGetAffiliateAttributionItem.prototype.serializeBinary = function() {
7892
+ var writer = new jspb.BinaryWriter();
7893
+ proto.user.BatchGetAffiliateAttributionItem.serializeBinaryToWriter(this, writer);
7894
+ return writer.getResultBuffer();
7895
+ };
7896
+
7897
+
7898
+ /**
7899
+ * Serializes the given message to binary data (in protobuf wire
7900
+ * format), writing to the given BinaryWriter.
7901
+ * @param {!proto.user.BatchGetAffiliateAttributionItem} message
7902
+ * @param {!jspb.BinaryWriter} writer
7903
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7904
+ */
7905
+ proto.user.BatchGetAffiliateAttributionItem.serializeBinaryToWriter = function(message, writer) {
7906
+ var f = undefined;
7907
+ f = message.getUserId();
7908
+ if (f !== 0) {
7909
+ writer.writeInt32(
7910
+ 1,
7911
+ f
7912
+ );
7913
+ }
7914
+ f = message.getUserPublicId();
7915
+ if (f.length > 0) {
7916
+ writer.writeString(
7917
+ 2,
7918
+ f
7919
+ );
7920
+ }
7921
+ f = message.getClickId();
7922
+ if (f.length > 0) {
7923
+ writer.writeString(
7924
+ 3,
7925
+ f
7926
+ );
7927
+ }
7928
+ };
7929
+
7930
+
7931
+ /**
7932
+ * optional int32 user_id = 1;
7933
+ * @return {number}
7934
+ */
7935
+ proto.user.BatchGetAffiliateAttributionItem.prototype.getUserId = function() {
7936
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7937
+ };
7938
+
7939
+
7940
+ /**
7941
+ * @param {number} value
7942
+ * @return {!proto.user.BatchGetAffiliateAttributionItem} returns this
7943
+ */
7944
+ proto.user.BatchGetAffiliateAttributionItem.prototype.setUserId = function(value) {
7945
+ return jspb.Message.setProto3IntField(this, 1, value);
7946
+ };
7947
+
7948
+
7949
+ /**
7950
+ * optional string user_public_id = 2;
7951
+ * @return {string}
7952
+ */
7953
+ proto.user.BatchGetAffiliateAttributionItem.prototype.getUserPublicId = function() {
7954
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7955
+ };
7956
+
7957
+
7958
+ /**
7959
+ * @param {string} value
7960
+ * @return {!proto.user.BatchGetAffiliateAttributionItem} returns this
7961
+ */
7962
+ proto.user.BatchGetAffiliateAttributionItem.prototype.setUserPublicId = function(value) {
7963
+ return jspb.Message.setProto3StringField(this, 2, value);
7964
+ };
7965
+
7966
+
7967
+ /**
7968
+ * optional string click_id = 3;
7969
+ * @return {string}
7970
+ */
7971
+ proto.user.BatchGetAffiliateAttributionItem.prototype.getClickId = function() {
7972
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7973
+ };
7974
+
7975
+
7976
+ /**
7977
+ * @param {string} value
7978
+ * @return {!proto.user.BatchGetAffiliateAttributionItem} returns this
7979
+ */
7980
+ proto.user.BatchGetAffiliateAttributionItem.prototype.setClickId = function(value) {
7981
+ return jspb.Message.setProto3StringField(this, 3, value);
7982
+ };
7983
+
7984
+
7985
+
7412
7986
 
7413
7987
 
7414
7988
  if (jspb.Message.GENERATE_TO_OBJECT) {