protobuf-platform 1.2.210 → 1.2.211
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 +12 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +574 -0
package/package.json
CHANGED
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;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -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) {
|