protobuf-platform 1.2.203 → 1.2.206

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.
@@ -18,6 +18,7 @@ service Cashback {
18
18
  rpc getCashbacksListForUser(CashbackUserRequest) returns (UserCashbackItemsResponse);
19
19
  rpc getUserCashbackByType(CashbackUserRequest) returns (UserCashbackResponse);
20
20
  rpc claimCashbackForUser(ClaimCashbackRequest) returns (ClaimCashbackResponse);
21
+ rpc reactivateCashbackForUser(ReactivateCashbackRequest) returns (UserCashbackResponse);
21
22
  }
22
23
  //Technical
23
24
  message PingRequest { string ping = 1; }
@@ -156,6 +157,11 @@ message ClaimCashbackRequest {
156
157
  int32 cashback_user_id = 2;
157
158
  optional string currency = 3;
158
159
  }
160
+ message ReactivateCashbackRequest {
161
+ int32 user_id = 1;
162
+ string cashback_type = 2;
163
+ optional string currency = 3;
164
+ }
159
165
  message ClaimCashbackResponse {
160
166
  string status = 1;
161
167
  }
@@ -180,6 +180,17 @@ function deserialize_cashback_PongResponse(buffer_arg) {
180
180
  return cashback_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
181
181
  }
182
182
 
183
+ function serialize_cashback_ReactivateCashbackRequest(arg) {
184
+ if (!(arg instanceof cashback_pb.ReactivateCashbackRequest)) {
185
+ throw new Error('Expected argument of type cashback.ReactivateCashbackRequest');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_cashback_ReactivateCashbackRequest(buffer_arg) {
191
+ return cashback_pb.ReactivateCashbackRequest.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
183
194
  function serialize_cashback_UserCashbackItemsResponse(arg) {
184
195
  if (!(arg instanceof cashback_pb.UserCashbackItemsResponse)) {
185
196
  throw new Error('Expected argument of type cashback.UserCashbackItemsResponse');
@@ -349,6 +360,17 @@ getCashbackForUserByType: {
349
360
  responseSerialize: serialize_cashback_ClaimCashbackResponse,
350
361
  responseDeserialize: deserialize_cashback_ClaimCashbackResponse,
351
362
  },
363
+ reactivateCashbackForUser: {
364
+ path: '/cashback.Cashback/reactivateCashbackForUser',
365
+ requestStream: false,
366
+ responseStream: false,
367
+ requestType: cashback_pb.ReactivateCashbackRequest,
368
+ responseType: cashback_pb.UserCashbackResponse,
369
+ requestSerialize: serialize_cashback_ReactivateCashbackRequest,
370
+ requestDeserialize: deserialize_cashback_ReactivateCashbackRequest,
371
+ responseSerialize: serialize_cashback_UserCashbackResponse,
372
+ responseDeserialize: deserialize_cashback_UserCashbackResponse,
373
+ },
352
374
  };
353
375
 
354
376
  exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService, 'Cashback');
@@ -42,6 +42,7 @@ goog.exportSymbol('proto.cashback.ItemsBunchRequest', null, global);
42
42
  goog.exportSymbol('proto.cashback.PaginationRequest', null, global);
43
43
  goog.exportSymbol('proto.cashback.PingRequest', null, global);
44
44
  goog.exportSymbol('proto.cashback.PongResponse', null, global);
45
+ goog.exportSymbol('proto.cashback.ReactivateCashbackRequest', null, global);
45
46
  goog.exportSymbol('proto.cashback.SearchRequest', null, global);
46
47
  goog.exportSymbol('proto.cashback.UserCashbackItem', null, global);
47
48
  goog.exportSymbol('proto.cashback.UserCashbackItemsResponse', null, global);
@@ -530,6 +531,27 @@ if (goog.DEBUG && !COMPILED) {
530
531
  */
531
532
  proto.cashback.ClaimCashbackRequest.displayName = 'proto.cashback.ClaimCashbackRequest';
532
533
  }
534
+ /**
535
+ * Generated by JsPbCodeGenerator.
536
+ * @param {Array=} opt_data Optional initial data array, typically from a
537
+ * server response, or constructed directly in Javascript. The array is used
538
+ * in place and becomes part of the constructed object. It is not cloned.
539
+ * If no data is provided, the constructed object will be empty, but still
540
+ * valid.
541
+ * @extends {jspb.Message}
542
+ * @constructor
543
+ */
544
+ proto.cashback.ReactivateCashbackRequest = function(opt_data) {
545
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
546
+ };
547
+ goog.inherits(proto.cashback.ReactivateCashbackRequest, jspb.Message);
548
+ if (goog.DEBUG && !COMPILED) {
549
+ /**
550
+ * @public
551
+ * @override
552
+ */
553
+ proto.cashback.ReactivateCashbackRequest.displayName = 'proto.cashback.ReactivateCashbackRequest';
554
+ }
533
555
  /**
534
556
  * Generated by JsPbCodeGenerator.
535
557
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6831,6 +6853,214 @@ proto.cashback.ClaimCashbackRequest.prototype.hasCurrency = function() {
6831
6853
 
6832
6854
 
6833
6855
 
6856
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6857
+ /**
6858
+ * Creates an object representation of this proto.
6859
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6860
+ * Optional fields that are not set will be set to undefined.
6861
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6862
+ * For the list of reserved names please see:
6863
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6864
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6865
+ * JSPB instance for transitional soy proto support:
6866
+ * http://goto/soy-param-migration
6867
+ * @return {!Object}
6868
+ */
6869
+ proto.cashback.ReactivateCashbackRequest.prototype.toObject = function(opt_includeInstance) {
6870
+ return proto.cashback.ReactivateCashbackRequest.toObject(opt_includeInstance, this);
6871
+ };
6872
+
6873
+
6874
+ /**
6875
+ * Static version of the {@see toObject} method.
6876
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6877
+ * the JSPB instance for transitional soy proto support:
6878
+ * http://goto/soy-param-migration
6879
+ * @param {!proto.cashback.ReactivateCashbackRequest} msg The msg instance to transform.
6880
+ * @return {!Object}
6881
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6882
+ */
6883
+ proto.cashback.ReactivateCashbackRequest.toObject = function(includeInstance, msg) {
6884
+ var f, obj = {
6885
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
6886
+ cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
6887
+ currency: jspb.Message.getFieldWithDefault(msg, 3, "")
6888
+ };
6889
+
6890
+ if (includeInstance) {
6891
+ obj.$jspbMessageInstance = msg;
6892
+ }
6893
+ return obj;
6894
+ };
6895
+ }
6896
+
6897
+
6898
+ /**
6899
+ * Deserializes binary data (in protobuf wire format).
6900
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6901
+ * @return {!proto.cashback.ReactivateCashbackRequest}
6902
+ */
6903
+ proto.cashback.ReactivateCashbackRequest.deserializeBinary = function(bytes) {
6904
+ var reader = new jspb.BinaryReader(bytes);
6905
+ var msg = new proto.cashback.ReactivateCashbackRequest;
6906
+ return proto.cashback.ReactivateCashbackRequest.deserializeBinaryFromReader(msg, reader);
6907
+ };
6908
+
6909
+
6910
+ /**
6911
+ * Deserializes binary data (in protobuf wire format) from the
6912
+ * given reader into the given message object.
6913
+ * @param {!proto.cashback.ReactivateCashbackRequest} msg The message object to deserialize into.
6914
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6915
+ * @return {!proto.cashback.ReactivateCashbackRequest}
6916
+ */
6917
+ proto.cashback.ReactivateCashbackRequest.deserializeBinaryFromReader = function(msg, reader) {
6918
+ while (reader.nextField()) {
6919
+ if (reader.isEndGroup()) {
6920
+ break;
6921
+ }
6922
+ var field = reader.getFieldNumber();
6923
+ switch (field) {
6924
+ case 1:
6925
+ var value = /** @type {number} */ (reader.readInt32());
6926
+ msg.setUserId(value);
6927
+ break;
6928
+ case 2:
6929
+ var value = /** @type {string} */ (reader.readString());
6930
+ msg.setCashbackType(value);
6931
+ break;
6932
+ case 3:
6933
+ var value = /** @type {string} */ (reader.readString());
6934
+ msg.setCurrency(value);
6935
+ break;
6936
+ default:
6937
+ reader.skipField();
6938
+ break;
6939
+ }
6940
+ }
6941
+ return msg;
6942
+ };
6943
+
6944
+
6945
+ /**
6946
+ * Serializes the message to binary data (in protobuf wire format).
6947
+ * @return {!Uint8Array}
6948
+ */
6949
+ proto.cashback.ReactivateCashbackRequest.prototype.serializeBinary = function() {
6950
+ var writer = new jspb.BinaryWriter();
6951
+ proto.cashback.ReactivateCashbackRequest.serializeBinaryToWriter(this, writer);
6952
+ return writer.getResultBuffer();
6953
+ };
6954
+
6955
+
6956
+ /**
6957
+ * Serializes the given message to binary data (in protobuf wire
6958
+ * format), writing to the given BinaryWriter.
6959
+ * @param {!proto.cashback.ReactivateCashbackRequest} message
6960
+ * @param {!jspb.BinaryWriter} writer
6961
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6962
+ */
6963
+ proto.cashback.ReactivateCashbackRequest.serializeBinaryToWriter = function(message, writer) {
6964
+ var f = undefined;
6965
+ f = message.getUserId();
6966
+ if (f !== 0) {
6967
+ writer.writeInt32(
6968
+ 1,
6969
+ f
6970
+ );
6971
+ }
6972
+ f = message.getCashbackType();
6973
+ if (f.length > 0) {
6974
+ writer.writeString(
6975
+ 2,
6976
+ f
6977
+ );
6978
+ }
6979
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
6980
+ if (f != null) {
6981
+ writer.writeString(
6982
+ 3,
6983
+ f
6984
+ );
6985
+ }
6986
+ };
6987
+
6988
+
6989
+ /**
6990
+ * optional int32 user_id = 1;
6991
+ * @return {number}
6992
+ */
6993
+ proto.cashback.ReactivateCashbackRequest.prototype.getUserId = function() {
6994
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6995
+ };
6996
+
6997
+
6998
+ /**
6999
+ * @param {number} value
7000
+ * @return {!proto.cashback.ReactivateCashbackRequest} returns this
7001
+ */
7002
+ proto.cashback.ReactivateCashbackRequest.prototype.setUserId = function(value) {
7003
+ return jspb.Message.setProto3IntField(this, 1, value);
7004
+ };
7005
+
7006
+
7007
+ /**
7008
+ * optional string cashback_type = 2;
7009
+ * @return {string}
7010
+ */
7011
+ proto.cashback.ReactivateCashbackRequest.prototype.getCashbackType = function() {
7012
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7013
+ };
7014
+
7015
+
7016
+ /**
7017
+ * @param {string} value
7018
+ * @return {!proto.cashback.ReactivateCashbackRequest} returns this
7019
+ */
7020
+ proto.cashback.ReactivateCashbackRequest.prototype.setCashbackType = function(value) {
7021
+ return jspb.Message.setProto3StringField(this, 2, value);
7022
+ };
7023
+
7024
+
7025
+ /**
7026
+ * optional string currency = 3;
7027
+ * @return {string}
7028
+ */
7029
+ proto.cashback.ReactivateCashbackRequest.prototype.getCurrency = function() {
7030
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7031
+ };
7032
+
7033
+
7034
+ /**
7035
+ * @param {string} value
7036
+ * @return {!proto.cashback.ReactivateCashbackRequest} returns this
7037
+ */
7038
+ proto.cashback.ReactivateCashbackRequest.prototype.setCurrency = function(value) {
7039
+ return jspb.Message.setField(this, 3, value);
7040
+ };
7041
+
7042
+
7043
+ /**
7044
+ * Clears the field making it undefined.
7045
+ * @return {!proto.cashback.ReactivateCashbackRequest} returns this
7046
+ */
7047
+ proto.cashback.ReactivateCashbackRequest.prototype.clearCurrency = function() {
7048
+ return jspb.Message.setField(this, 3, undefined);
7049
+ };
7050
+
7051
+
7052
+ /**
7053
+ * Returns whether this field is set.
7054
+ * @return {boolean}
7055
+ */
7056
+ proto.cashback.ReactivateCashbackRequest.prototype.hasCurrency = function() {
7057
+ return jspb.Message.getField(this, 3) != null;
7058
+ };
7059
+
7060
+
7061
+
7062
+
7063
+
6834
7064
  if (jspb.Message.GENERATE_TO_OBJECT) {
6835
7065
  /**
6836
7066
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.203",
3
+ "version": "1.2.206",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -12,6 +12,7 @@ service User {
12
12
  rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
13
13
  rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
14
14
  rpc getUserCachedData(UserDataRequest) returns (UserDataResponse);
15
+ rpc getUserAffiliateAttribution(UserAffiliateAttributionRequest) returns (UserAffiliateAttributionResponse);
15
16
  //Role and Permissions
16
17
  rpc addPermissionToUserRole(RolePermissionRequest) returns (RolePermissionStatusResponse);
17
18
  rpc rolesList(PaginationRequest) returns (RolesItemsResponse);
@@ -178,6 +179,17 @@ message UserDataRequest {
178
179
  optional string requested_area = 2;
179
180
  optional string public_id = 3;
180
181
  }
182
+ message UserAffiliateAttributionRequest {
183
+ int32 userId = 1;
184
+ }
185
+ message UserAffiliateAttributionResponse {
186
+ bool found = 1;
187
+ optional string network = 2;
188
+ optional string clickId = 3;
189
+ optional string affId = 4;
190
+ optional string offerId = 5;
191
+ optional string userPublicId = 6;
192
+ }
181
193
  message UserBalanceRequest {
182
194
  int32 id = 1;
183
195
  float amount = 2;
@@ -477,6 +477,28 @@ function deserialize_user_UserActionResponse(buffer_arg) {
477
477
  return user_pb.UserActionResponse.deserializeBinary(new Uint8Array(buffer_arg));
478
478
  }
479
479
 
480
+ function serialize_user_UserAffiliateAttributionRequest(arg) {
481
+ if (!(arg instanceof user_pb.UserAffiliateAttributionRequest)) {
482
+ throw new Error('Expected argument of type user.UserAffiliateAttributionRequest');
483
+ }
484
+ return Buffer.from(arg.serializeBinary());
485
+ }
486
+
487
+ function deserialize_user_UserAffiliateAttributionRequest(buffer_arg) {
488
+ return user_pb.UserAffiliateAttributionRequest.deserializeBinary(new Uint8Array(buffer_arg));
489
+ }
490
+
491
+ function serialize_user_UserAffiliateAttributionResponse(arg) {
492
+ if (!(arg instanceof user_pb.UserAffiliateAttributionResponse)) {
493
+ throw new Error('Expected argument of type user.UserAffiliateAttributionResponse');
494
+ }
495
+ return Buffer.from(arg.serializeBinary());
496
+ }
497
+
498
+ function deserialize_user_UserAffiliateAttributionResponse(buffer_arg) {
499
+ return user_pb.UserAffiliateAttributionResponse.deserializeBinary(new Uint8Array(buffer_arg));
500
+ }
501
+
480
502
  function serialize_user_UserBalanceRequest(arg) {
481
503
  if (!(arg instanceof user_pb.UserBalanceRequest)) {
482
504
  throw new Error('Expected argument of type user.UserBalanceRequest');
@@ -744,6 +766,17 @@ signUp: {
744
766
  responseSerialize: serialize_user_UserDataResponse,
745
767
  responseDeserialize: deserialize_user_UserDataResponse,
746
768
  },
769
+ getUserAffiliateAttribution: {
770
+ path: '/user.User/getUserAffiliateAttribution',
771
+ requestStream: false,
772
+ responseStream: false,
773
+ requestType: user_pb.UserAffiliateAttributionRequest,
774
+ responseType: user_pb.UserAffiliateAttributionResponse,
775
+ requestSerialize: serialize_user_UserAffiliateAttributionRequest,
776
+ requestDeserialize: deserialize_user_UserAffiliateAttributionRequest,
777
+ responseSerialize: serialize_user_UserAffiliateAttributionResponse,
778
+ responseDeserialize: deserialize_user_UserAffiliateAttributionResponse,
779
+ },
747
780
  // Role and Permissions
748
781
  addPermissionToUserRole: {
749
782
  path: '/user.User/addPermissionToUserRole',
package/user/user_pb.js CHANGED
@@ -81,6 +81,8 @@ goog.exportSymbol('proto.user.SumSubResponse', null, global);
81
81
  goog.exportSymbol('proto.user.TournamentRulesInfoResponse', null, global);
82
82
  goog.exportSymbol('proto.user.UserActionRequest', null, global);
83
83
  goog.exportSymbol('proto.user.UserActionResponse', null, global);
84
+ goog.exportSymbol('proto.user.UserAffiliateAttributionRequest', null, global);
85
+ goog.exportSymbol('proto.user.UserAffiliateAttributionResponse', null, global);
84
86
  goog.exportSymbol('proto.user.UserBalanceRequest', null, global);
85
87
  goog.exportSymbol('proto.user.UserCookiesRequest', null, global);
86
88
  goog.exportSymbol('proto.user.UserDataRequest', null, global);
@@ -352,6 +354,48 @@ if (goog.DEBUG && !COMPILED) {
352
354
  */
353
355
  proto.user.UserDataRequest.displayName = 'proto.user.UserDataRequest';
354
356
  }
357
+ /**
358
+ * Generated by JsPbCodeGenerator.
359
+ * @param {Array=} opt_data Optional initial data array, typically from a
360
+ * server response, or constructed directly in Javascript. The array is used
361
+ * in place and becomes part of the constructed object. It is not cloned.
362
+ * If no data is provided, the constructed object will be empty, but still
363
+ * valid.
364
+ * @extends {jspb.Message}
365
+ * @constructor
366
+ */
367
+ proto.user.UserAffiliateAttributionRequest = function(opt_data) {
368
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
369
+ };
370
+ goog.inherits(proto.user.UserAffiliateAttributionRequest, jspb.Message);
371
+ if (goog.DEBUG && !COMPILED) {
372
+ /**
373
+ * @public
374
+ * @override
375
+ */
376
+ proto.user.UserAffiliateAttributionRequest.displayName = 'proto.user.UserAffiliateAttributionRequest';
377
+ }
378
+ /**
379
+ * Generated by JsPbCodeGenerator.
380
+ * @param {Array=} opt_data Optional initial data array, typically from a
381
+ * server response, or constructed directly in Javascript. The array is used
382
+ * in place and becomes part of the constructed object. It is not cloned.
383
+ * If no data is provided, the constructed object will be empty, but still
384
+ * valid.
385
+ * @extends {jspb.Message}
386
+ * @constructor
387
+ */
388
+ proto.user.UserAffiliateAttributionResponse = function(opt_data) {
389
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
390
+ };
391
+ goog.inherits(proto.user.UserAffiliateAttributionResponse, jspb.Message);
392
+ if (goog.DEBUG && !COMPILED) {
393
+ /**
394
+ * @public
395
+ * @override
396
+ */
397
+ proto.user.UserAffiliateAttributionResponse.displayName = 'proto.user.UserAffiliateAttributionResponse';
398
+ }
355
399
  /**
356
400
  * Generated by JsPbCodeGenerator.
357
401
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6867,6 +6911,506 @@ proto.user.UserDataRequest.prototype.hasPublicId = function() {
6867
6911
 
6868
6912
 
6869
6913
 
6914
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6915
+ /**
6916
+ * Creates an object representation of this proto.
6917
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6918
+ * Optional fields that are not set will be set to undefined.
6919
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6920
+ * For the list of reserved names please see:
6921
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6922
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6923
+ * JSPB instance for transitional soy proto support:
6924
+ * http://goto/soy-param-migration
6925
+ * @return {!Object}
6926
+ */
6927
+ proto.user.UserAffiliateAttributionRequest.prototype.toObject = function(opt_includeInstance) {
6928
+ return proto.user.UserAffiliateAttributionRequest.toObject(opt_includeInstance, this);
6929
+ };
6930
+
6931
+
6932
+ /**
6933
+ * Static version of the {@see toObject} method.
6934
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6935
+ * the JSPB instance for transitional soy proto support:
6936
+ * http://goto/soy-param-migration
6937
+ * @param {!proto.user.UserAffiliateAttributionRequest} msg The msg instance to transform.
6938
+ * @return {!Object}
6939
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6940
+ */
6941
+ proto.user.UserAffiliateAttributionRequest.toObject = function(includeInstance, msg) {
6942
+ var f, obj = {
6943
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0)
6944
+ };
6945
+
6946
+ if (includeInstance) {
6947
+ obj.$jspbMessageInstance = msg;
6948
+ }
6949
+ return obj;
6950
+ };
6951
+ }
6952
+
6953
+
6954
+ /**
6955
+ * Deserializes binary data (in protobuf wire format).
6956
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6957
+ * @return {!proto.user.UserAffiliateAttributionRequest}
6958
+ */
6959
+ proto.user.UserAffiliateAttributionRequest.deserializeBinary = function(bytes) {
6960
+ var reader = new jspb.BinaryReader(bytes);
6961
+ var msg = new proto.user.UserAffiliateAttributionRequest;
6962
+ return proto.user.UserAffiliateAttributionRequest.deserializeBinaryFromReader(msg, reader);
6963
+ };
6964
+
6965
+
6966
+ /**
6967
+ * Deserializes binary data (in protobuf wire format) from the
6968
+ * given reader into the given message object.
6969
+ * @param {!proto.user.UserAffiliateAttributionRequest} msg The message object to deserialize into.
6970
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6971
+ * @return {!proto.user.UserAffiliateAttributionRequest}
6972
+ */
6973
+ proto.user.UserAffiliateAttributionRequest.deserializeBinaryFromReader = function(msg, reader) {
6974
+ while (reader.nextField()) {
6975
+ if (reader.isEndGroup()) {
6976
+ break;
6977
+ }
6978
+ var field = reader.getFieldNumber();
6979
+ switch (field) {
6980
+ case 1:
6981
+ var value = /** @type {number} */ (reader.readInt32());
6982
+ msg.setUserid(value);
6983
+ break;
6984
+ default:
6985
+ reader.skipField();
6986
+ break;
6987
+ }
6988
+ }
6989
+ return msg;
6990
+ };
6991
+
6992
+
6993
+ /**
6994
+ * Serializes the message to binary data (in protobuf wire format).
6995
+ * @return {!Uint8Array}
6996
+ */
6997
+ proto.user.UserAffiliateAttributionRequest.prototype.serializeBinary = function() {
6998
+ var writer = new jspb.BinaryWriter();
6999
+ proto.user.UserAffiliateAttributionRequest.serializeBinaryToWriter(this, writer);
7000
+ return writer.getResultBuffer();
7001
+ };
7002
+
7003
+
7004
+ /**
7005
+ * Serializes the given message to binary data (in protobuf wire
7006
+ * format), writing to the given BinaryWriter.
7007
+ * @param {!proto.user.UserAffiliateAttributionRequest} message
7008
+ * @param {!jspb.BinaryWriter} writer
7009
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7010
+ */
7011
+ proto.user.UserAffiliateAttributionRequest.serializeBinaryToWriter = function(message, writer) {
7012
+ var f = undefined;
7013
+ f = message.getUserid();
7014
+ if (f !== 0) {
7015
+ writer.writeInt32(
7016
+ 1,
7017
+ f
7018
+ );
7019
+ }
7020
+ };
7021
+
7022
+
7023
+ /**
7024
+ * optional int32 userId = 1;
7025
+ * @return {number}
7026
+ */
7027
+ proto.user.UserAffiliateAttributionRequest.prototype.getUserid = function() {
7028
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7029
+ };
7030
+
7031
+
7032
+ /**
7033
+ * @param {number} value
7034
+ * @return {!proto.user.UserAffiliateAttributionRequest} returns this
7035
+ */
7036
+ proto.user.UserAffiliateAttributionRequest.prototype.setUserid = function(value) {
7037
+ return jspb.Message.setProto3IntField(this, 1, value);
7038
+ };
7039
+
7040
+
7041
+
7042
+
7043
+
7044
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7045
+ /**
7046
+ * Creates an object representation of this proto.
7047
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7048
+ * Optional fields that are not set will be set to undefined.
7049
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7050
+ * For the list of reserved names please see:
7051
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7052
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7053
+ * JSPB instance for transitional soy proto support:
7054
+ * http://goto/soy-param-migration
7055
+ * @return {!Object}
7056
+ */
7057
+ proto.user.UserAffiliateAttributionResponse.prototype.toObject = function(opt_includeInstance) {
7058
+ return proto.user.UserAffiliateAttributionResponse.toObject(opt_includeInstance, this);
7059
+ };
7060
+
7061
+
7062
+ /**
7063
+ * Static version of the {@see toObject} method.
7064
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7065
+ * the JSPB instance for transitional soy proto support:
7066
+ * http://goto/soy-param-migration
7067
+ * @param {!proto.user.UserAffiliateAttributionResponse} msg The msg instance to transform.
7068
+ * @return {!Object}
7069
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7070
+ */
7071
+ proto.user.UserAffiliateAttributionResponse.toObject = function(includeInstance, msg) {
7072
+ var f, obj = {
7073
+ found: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
7074
+ network: jspb.Message.getFieldWithDefault(msg, 2, ""),
7075
+ clickid: jspb.Message.getFieldWithDefault(msg, 3, ""),
7076
+ affid: jspb.Message.getFieldWithDefault(msg, 4, ""),
7077
+ offerid: jspb.Message.getFieldWithDefault(msg, 5, ""),
7078
+ userpublicid: jspb.Message.getFieldWithDefault(msg, 6, "")
7079
+ };
7080
+
7081
+ if (includeInstance) {
7082
+ obj.$jspbMessageInstance = msg;
7083
+ }
7084
+ return obj;
7085
+ };
7086
+ }
7087
+
7088
+
7089
+ /**
7090
+ * Deserializes binary data (in protobuf wire format).
7091
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7092
+ * @return {!proto.user.UserAffiliateAttributionResponse}
7093
+ */
7094
+ proto.user.UserAffiliateAttributionResponse.deserializeBinary = function(bytes) {
7095
+ var reader = new jspb.BinaryReader(bytes);
7096
+ var msg = new proto.user.UserAffiliateAttributionResponse;
7097
+ return proto.user.UserAffiliateAttributionResponse.deserializeBinaryFromReader(msg, reader);
7098
+ };
7099
+
7100
+
7101
+ /**
7102
+ * Deserializes binary data (in protobuf wire format) from the
7103
+ * given reader into the given message object.
7104
+ * @param {!proto.user.UserAffiliateAttributionResponse} msg The message object to deserialize into.
7105
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7106
+ * @return {!proto.user.UserAffiliateAttributionResponse}
7107
+ */
7108
+ proto.user.UserAffiliateAttributionResponse.deserializeBinaryFromReader = function(msg, reader) {
7109
+ while (reader.nextField()) {
7110
+ if (reader.isEndGroup()) {
7111
+ break;
7112
+ }
7113
+ var field = reader.getFieldNumber();
7114
+ switch (field) {
7115
+ case 1:
7116
+ var value = /** @type {boolean} */ (reader.readBool());
7117
+ msg.setFound(value);
7118
+ break;
7119
+ case 2:
7120
+ var value = /** @type {string} */ (reader.readString());
7121
+ msg.setNetwork(value);
7122
+ break;
7123
+ case 3:
7124
+ var value = /** @type {string} */ (reader.readString());
7125
+ msg.setClickid(value);
7126
+ break;
7127
+ case 4:
7128
+ var value = /** @type {string} */ (reader.readString());
7129
+ msg.setAffid(value);
7130
+ break;
7131
+ case 5:
7132
+ var value = /** @type {string} */ (reader.readString());
7133
+ msg.setOfferid(value);
7134
+ break;
7135
+ case 6:
7136
+ var value = /** @type {string} */ (reader.readString());
7137
+ msg.setUserpublicid(value);
7138
+ break;
7139
+ default:
7140
+ reader.skipField();
7141
+ break;
7142
+ }
7143
+ }
7144
+ return msg;
7145
+ };
7146
+
7147
+
7148
+ /**
7149
+ * Serializes the message to binary data (in protobuf wire format).
7150
+ * @return {!Uint8Array}
7151
+ */
7152
+ proto.user.UserAffiliateAttributionResponse.prototype.serializeBinary = function() {
7153
+ var writer = new jspb.BinaryWriter();
7154
+ proto.user.UserAffiliateAttributionResponse.serializeBinaryToWriter(this, writer);
7155
+ return writer.getResultBuffer();
7156
+ };
7157
+
7158
+
7159
+ /**
7160
+ * Serializes the given message to binary data (in protobuf wire
7161
+ * format), writing to the given BinaryWriter.
7162
+ * @param {!proto.user.UserAffiliateAttributionResponse} message
7163
+ * @param {!jspb.BinaryWriter} writer
7164
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7165
+ */
7166
+ proto.user.UserAffiliateAttributionResponse.serializeBinaryToWriter = function(message, writer) {
7167
+ var f = undefined;
7168
+ f = message.getFound();
7169
+ if (f) {
7170
+ writer.writeBool(
7171
+ 1,
7172
+ f
7173
+ );
7174
+ }
7175
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
7176
+ if (f != null) {
7177
+ writer.writeString(
7178
+ 2,
7179
+ f
7180
+ );
7181
+ }
7182
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
7183
+ if (f != null) {
7184
+ writer.writeString(
7185
+ 3,
7186
+ f
7187
+ );
7188
+ }
7189
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7190
+ if (f != null) {
7191
+ writer.writeString(
7192
+ 4,
7193
+ f
7194
+ );
7195
+ }
7196
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
7197
+ if (f != null) {
7198
+ writer.writeString(
7199
+ 5,
7200
+ f
7201
+ );
7202
+ }
7203
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
7204
+ if (f != null) {
7205
+ writer.writeString(
7206
+ 6,
7207
+ f
7208
+ );
7209
+ }
7210
+ };
7211
+
7212
+
7213
+ /**
7214
+ * optional bool found = 1;
7215
+ * @return {boolean}
7216
+ */
7217
+ proto.user.UserAffiliateAttributionResponse.prototype.getFound = function() {
7218
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
7219
+ };
7220
+
7221
+
7222
+ /**
7223
+ * @param {boolean} value
7224
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7225
+ */
7226
+ proto.user.UserAffiliateAttributionResponse.prototype.setFound = function(value) {
7227
+ return jspb.Message.setProto3BooleanField(this, 1, value);
7228
+ };
7229
+
7230
+
7231
+ /**
7232
+ * optional string network = 2;
7233
+ * @return {string}
7234
+ */
7235
+ proto.user.UserAffiliateAttributionResponse.prototype.getNetwork = function() {
7236
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7237
+ };
7238
+
7239
+
7240
+ /**
7241
+ * @param {string} value
7242
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7243
+ */
7244
+ proto.user.UserAffiliateAttributionResponse.prototype.setNetwork = function(value) {
7245
+ return jspb.Message.setField(this, 2, value);
7246
+ };
7247
+
7248
+
7249
+ /**
7250
+ * Clears the field making it undefined.
7251
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7252
+ */
7253
+ proto.user.UserAffiliateAttributionResponse.prototype.clearNetwork = function() {
7254
+ return jspb.Message.setField(this, 2, undefined);
7255
+ };
7256
+
7257
+
7258
+ /**
7259
+ * Returns whether this field is set.
7260
+ * @return {boolean}
7261
+ */
7262
+ proto.user.UserAffiliateAttributionResponse.prototype.hasNetwork = function() {
7263
+ return jspb.Message.getField(this, 2) != null;
7264
+ };
7265
+
7266
+
7267
+ /**
7268
+ * optional string clickId = 3;
7269
+ * @return {string}
7270
+ */
7271
+ proto.user.UserAffiliateAttributionResponse.prototype.getClickid = function() {
7272
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7273
+ };
7274
+
7275
+
7276
+ /**
7277
+ * @param {string} value
7278
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7279
+ */
7280
+ proto.user.UserAffiliateAttributionResponse.prototype.setClickid = function(value) {
7281
+ return jspb.Message.setField(this, 3, value);
7282
+ };
7283
+
7284
+
7285
+ /**
7286
+ * Clears the field making it undefined.
7287
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7288
+ */
7289
+ proto.user.UserAffiliateAttributionResponse.prototype.clearClickid = function() {
7290
+ return jspb.Message.setField(this, 3, undefined);
7291
+ };
7292
+
7293
+
7294
+ /**
7295
+ * Returns whether this field is set.
7296
+ * @return {boolean}
7297
+ */
7298
+ proto.user.UserAffiliateAttributionResponse.prototype.hasClickid = function() {
7299
+ return jspb.Message.getField(this, 3) != null;
7300
+ };
7301
+
7302
+
7303
+ /**
7304
+ * optional string affId = 4;
7305
+ * @return {string}
7306
+ */
7307
+ proto.user.UserAffiliateAttributionResponse.prototype.getAffid = function() {
7308
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7309
+ };
7310
+
7311
+
7312
+ /**
7313
+ * @param {string} value
7314
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7315
+ */
7316
+ proto.user.UserAffiliateAttributionResponse.prototype.setAffid = function(value) {
7317
+ return jspb.Message.setField(this, 4, value);
7318
+ };
7319
+
7320
+
7321
+ /**
7322
+ * Clears the field making it undefined.
7323
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7324
+ */
7325
+ proto.user.UserAffiliateAttributionResponse.prototype.clearAffid = function() {
7326
+ return jspb.Message.setField(this, 4, undefined);
7327
+ };
7328
+
7329
+
7330
+ /**
7331
+ * Returns whether this field is set.
7332
+ * @return {boolean}
7333
+ */
7334
+ proto.user.UserAffiliateAttributionResponse.prototype.hasAffid = function() {
7335
+ return jspb.Message.getField(this, 4) != null;
7336
+ };
7337
+
7338
+
7339
+ /**
7340
+ * optional string offerId = 5;
7341
+ * @return {string}
7342
+ */
7343
+ proto.user.UserAffiliateAttributionResponse.prototype.getOfferid = function() {
7344
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
7345
+ };
7346
+
7347
+
7348
+ /**
7349
+ * @param {string} value
7350
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7351
+ */
7352
+ proto.user.UserAffiliateAttributionResponse.prototype.setOfferid = function(value) {
7353
+ return jspb.Message.setField(this, 5, value);
7354
+ };
7355
+
7356
+
7357
+ /**
7358
+ * Clears the field making it undefined.
7359
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7360
+ */
7361
+ proto.user.UserAffiliateAttributionResponse.prototype.clearOfferid = function() {
7362
+ return jspb.Message.setField(this, 5, undefined);
7363
+ };
7364
+
7365
+
7366
+ /**
7367
+ * Returns whether this field is set.
7368
+ * @return {boolean}
7369
+ */
7370
+ proto.user.UserAffiliateAttributionResponse.prototype.hasOfferid = function() {
7371
+ return jspb.Message.getField(this, 5) != null;
7372
+ };
7373
+
7374
+
7375
+ /**
7376
+ * optional string userPublicId = 6;
7377
+ * @return {string}
7378
+ */
7379
+ proto.user.UserAffiliateAttributionResponse.prototype.getUserpublicid = function() {
7380
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
7381
+ };
7382
+
7383
+
7384
+ /**
7385
+ * @param {string} value
7386
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7387
+ */
7388
+ proto.user.UserAffiliateAttributionResponse.prototype.setUserpublicid = function(value) {
7389
+ return jspb.Message.setField(this, 6, value);
7390
+ };
7391
+
7392
+
7393
+ /**
7394
+ * Clears the field making it undefined.
7395
+ * @return {!proto.user.UserAffiliateAttributionResponse} returns this
7396
+ */
7397
+ proto.user.UserAffiliateAttributionResponse.prototype.clearUserpublicid = function() {
7398
+ return jspb.Message.setField(this, 6, undefined);
7399
+ };
7400
+
7401
+
7402
+ /**
7403
+ * Returns whether this field is set.
7404
+ * @return {boolean}
7405
+ */
7406
+ proto.user.UserAffiliateAttributionResponse.prototype.hasUserpublicid = function() {
7407
+ return jspb.Message.getField(this, 6) != null;
7408
+ };
7409
+
7410
+
7411
+
7412
+
7413
+
6870
7414
  if (jspb.Message.GENERATE_TO_OBJECT) {
6871
7415
  /**
6872
7416
  * Creates an object representation of this proto.