protobuf-platform 1.1.76 → 1.1.78

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/user/user_pb.js CHANGED
@@ -32,6 +32,7 @@ goog.exportSymbol('proto.user.File', null, global);
32
32
  goog.exportSymbol('proto.user.GetNoteRequest', null, global);
33
33
  goog.exportSymbol('proto.user.GetRoleRequest', null, global);
34
34
  goog.exportSymbol('proto.user.GetSegmentRequest', null, global);
35
+ goog.exportSymbol('proto.user.GetSegmentRuleRequest', null, global);
35
36
  goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
36
37
  goog.exportSymbol('proto.user.LimitStatusResponse', null, global);
37
38
  goog.exportSymbol('proto.user.LoggedInResponse', null, global);
@@ -51,9 +52,15 @@ goog.exportSymbol('proto.user.Role', null, global);
51
52
  goog.exportSymbol('proto.user.RolePermissionRequest', null, global);
52
53
  goog.exportSymbol('proto.user.RolePermissionStatusResponse', null, global);
53
54
  goog.exportSymbol('proto.user.RolesItemsResponse', null, global);
55
+ goog.exportSymbol('proto.user.SegmentBetRuleItem', null, global);
56
+ goog.exportSymbol('proto.user.SegmentBetRuleRequest', null, global);
54
57
  goog.exportSymbol('proto.user.SegmentItemsResponse', null, global);
58
+ goog.exportSymbol('proto.user.SegmentPaymentRuleItem', null, global);
59
+ goog.exportSymbol('proto.user.SegmentPaymentRuleRequest', null, global);
55
60
  goog.exportSymbol('proto.user.SegmentRequest', null, global);
56
61
  goog.exportSymbol('proto.user.SegmentResponse', null, global);
62
+ goog.exportSymbol('proto.user.SegmentRuleItem', null, global);
63
+ goog.exportSymbol('proto.user.SegmentRuleRequest', null, global);
57
64
  goog.exportSymbol('proto.user.SegmentSearchParams', null, global);
58
65
  goog.exportSymbol('proto.user.SegmentStatusResponse', null, global);
59
66
  goog.exportSymbol('proto.user.SumSubApplicantRequest', null, global);
@@ -597,6 +604,153 @@ if (goog.DEBUG && !COMPILED) {
597
604
  */
598
605
  proto.user.SegmentItemsResponse.displayName = 'proto.user.SegmentItemsResponse';
599
606
  }
607
+ /**
608
+ * Generated by JsPbCodeGenerator.
609
+ * @param {Array=} opt_data Optional initial data array, typically from a
610
+ * server response, or constructed directly in Javascript. The array is used
611
+ * in place and becomes part of the constructed object. It is not cloned.
612
+ * If no data is provided, the constructed object will be empty, but still
613
+ * valid.
614
+ * @extends {jspb.Message}
615
+ * @constructor
616
+ */
617
+ proto.user.SegmentRuleRequest = function(opt_data) {
618
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
619
+ };
620
+ goog.inherits(proto.user.SegmentRuleRequest, jspb.Message);
621
+ if (goog.DEBUG && !COMPILED) {
622
+ /**
623
+ * @public
624
+ * @override
625
+ */
626
+ proto.user.SegmentRuleRequest.displayName = 'proto.user.SegmentRuleRequest';
627
+ }
628
+ /**
629
+ * Generated by JsPbCodeGenerator.
630
+ * @param {Array=} opt_data Optional initial data array, typically from a
631
+ * server response, or constructed directly in Javascript. The array is used
632
+ * in place and becomes part of the constructed object. It is not cloned.
633
+ * If no data is provided, the constructed object will be empty, but still
634
+ * valid.
635
+ * @extends {jspb.Message}
636
+ * @constructor
637
+ */
638
+ proto.user.GetSegmentRuleRequest = function(opt_data) {
639
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
640
+ };
641
+ goog.inherits(proto.user.GetSegmentRuleRequest, jspb.Message);
642
+ if (goog.DEBUG && !COMPILED) {
643
+ /**
644
+ * @public
645
+ * @override
646
+ */
647
+ proto.user.GetSegmentRuleRequest.displayName = 'proto.user.GetSegmentRuleRequest';
648
+ }
649
+ /**
650
+ * Generated by JsPbCodeGenerator.
651
+ * @param {Array=} opt_data Optional initial data array, typically from a
652
+ * server response, or constructed directly in Javascript. The array is used
653
+ * in place and becomes part of the constructed object. It is not cloned.
654
+ * If no data is provided, the constructed object will be empty, but still
655
+ * valid.
656
+ * @extends {jspb.Message}
657
+ * @constructor
658
+ */
659
+ proto.user.SegmentPaymentRuleRequest = function(opt_data) {
660
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.SegmentPaymentRuleRequest.repeatedFields_, null);
661
+ };
662
+ goog.inherits(proto.user.SegmentPaymentRuleRequest, jspb.Message);
663
+ if (goog.DEBUG && !COMPILED) {
664
+ /**
665
+ * @public
666
+ * @override
667
+ */
668
+ proto.user.SegmentPaymentRuleRequest.displayName = 'proto.user.SegmentPaymentRuleRequest';
669
+ }
670
+ /**
671
+ * Generated by JsPbCodeGenerator.
672
+ * @param {Array=} opt_data Optional initial data array, typically from a
673
+ * server response, or constructed directly in Javascript. The array is used
674
+ * in place and becomes part of the constructed object. It is not cloned.
675
+ * If no data is provided, the constructed object will be empty, but still
676
+ * valid.
677
+ * @extends {jspb.Message}
678
+ * @constructor
679
+ */
680
+ proto.user.SegmentBetRuleRequest = function(opt_data) {
681
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
682
+ };
683
+ goog.inherits(proto.user.SegmentBetRuleRequest, jspb.Message);
684
+ if (goog.DEBUG && !COMPILED) {
685
+ /**
686
+ * @public
687
+ * @override
688
+ */
689
+ proto.user.SegmentBetRuleRequest.displayName = 'proto.user.SegmentBetRuleRequest';
690
+ }
691
+ /**
692
+ * Generated by JsPbCodeGenerator.
693
+ * @param {Array=} opt_data Optional initial data array, typically from a
694
+ * server response, or constructed directly in Javascript. The array is used
695
+ * in place and becomes part of the constructed object. It is not cloned.
696
+ * If no data is provided, the constructed object will be empty, but still
697
+ * valid.
698
+ * @extends {jspb.Message}
699
+ * @constructor
700
+ */
701
+ proto.user.SegmentRuleItem = function(opt_data) {
702
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
703
+ };
704
+ goog.inherits(proto.user.SegmentRuleItem, jspb.Message);
705
+ if (goog.DEBUG && !COMPILED) {
706
+ /**
707
+ * @public
708
+ * @override
709
+ */
710
+ proto.user.SegmentRuleItem.displayName = 'proto.user.SegmentRuleItem';
711
+ }
712
+ /**
713
+ * Generated by JsPbCodeGenerator.
714
+ * @param {Array=} opt_data Optional initial data array, typically from a
715
+ * server response, or constructed directly in Javascript. The array is used
716
+ * in place and becomes part of the constructed object. It is not cloned.
717
+ * If no data is provided, the constructed object will be empty, but still
718
+ * valid.
719
+ * @extends {jspb.Message}
720
+ * @constructor
721
+ */
722
+ proto.user.SegmentPaymentRuleItem = function(opt_data) {
723
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.SegmentPaymentRuleItem.repeatedFields_, null);
724
+ };
725
+ goog.inherits(proto.user.SegmentPaymentRuleItem, jspb.Message);
726
+ if (goog.DEBUG && !COMPILED) {
727
+ /**
728
+ * @public
729
+ * @override
730
+ */
731
+ proto.user.SegmentPaymentRuleItem.displayName = 'proto.user.SegmentPaymentRuleItem';
732
+ }
733
+ /**
734
+ * Generated by JsPbCodeGenerator.
735
+ * @param {Array=} opt_data Optional initial data array, typically from a
736
+ * server response, or constructed directly in Javascript. The array is used
737
+ * in place and becomes part of the constructed object. It is not cloned.
738
+ * If no data is provided, the constructed object will be empty, but still
739
+ * valid.
740
+ * @extends {jspb.Message}
741
+ * @constructor
742
+ */
743
+ proto.user.SegmentBetRuleItem = function(opt_data) {
744
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
745
+ };
746
+ goog.inherits(proto.user.SegmentBetRuleItem, jspb.Message);
747
+ if (goog.DEBUG && !COMPILED) {
748
+ /**
749
+ * @public
750
+ * @override
751
+ */
752
+ proto.user.SegmentBetRuleItem.displayName = 'proto.user.SegmentBetRuleItem';
753
+ }
600
754
  /**
601
755
  * Generated by JsPbCodeGenerator.
602
756
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -11076,6 +11230,4036 @@ proto.user.SegmentItemsResponse.prototype.hasTotalItems = function() {
11076
11230
 
11077
11231
 
11078
11232
 
11233
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11234
+ /**
11235
+ * Creates an object representation of this proto.
11236
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11237
+ * Optional fields that are not set will be set to undefined.
11238
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11239
+ * For the list of reserved names please see:
11240
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11241
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11242
+ * JSPB instance for transitional soy proto support:
11243
+ * http://goto/soy-param-migration
11244
+ * @return {!Object}
11245
+ */
11246
+ proto.user.SegmentRuleRequest.prototype.toObject = function(opt_includeInstance) {
11247
+ return proto.user.SegmentRuleRequest.toObject(opt_includeInstance, this);
11248
+ };
11249
+
11250
+
11251
+ /**
11252
+ * Static version of the {@see toObject} method.
11253
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11254
+ * the JSPB instance for transitional soy proto support:
11255
+ * http://goto/soy-param-migration
11256
+ * @param {!proto.user.SegmentRuleRequest} msg The msg instance to transform.
11257
+ * @return {!Object}
11258
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11259
+ */
11260
+ proto.user.SegmentRuleRequest.toObject = function(includeInstance, msg) {
11261
+ var f, obj = {
11262
+ paymentRule: (f = msg.getPaymentRule()) && proto.user.SegmentPaymentRuleRequest.toObject(includeInstance, f),
11263
+ betRule: (f = msg.getBetRule()) && proto.user.SegmentBetRuleRequest.toObject(includeInstance, f)
11264
+ };
11265
+
11266
+ if (includeInstance) {
11267
+ obj.$jspbMessageInstance = msg;
11268
+ }
11269
+ return obj;
11270
+ };
11271
+ }
11272
+
11273
+
11274
+ /**
11275
+ * Deserializes binary data (in protobuf wire format).
11276
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11277
+ * @return {!proto.user.SegmentRuleRequest}
11278
+ */
11279
+ proto.user.SegmentRuleRequest.deserializeBinary = function(bytes) {
11280
+ var reader = new jspb.BinaryReader(bytes);
11281
+ var msg = new proto.user.SegmentRuleRequest;
11282
+ return proto.user.SegmentRuleRequest.deserializeBinaryFromReader(msg, reader);
11283
+ };
11284
+
11285
+
11286
+ /**
11287
+ * Deserializes binary data (in protobuf wire format) from the
11288
+ * given reader into the given message object.
11289
+ * @param {!proto.user.SegmentRuleRequest} msg The message object to deserialize into.
11290
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11291
+ * @return {!proto.user.SegmentRuleRequest}
11292
+ */
11293
+ proto.user.SegmentRuleRequest.deserializeBinaryFromReader = function(msg, reader) {
11294
+ while (reader.nextField()) {
11295
+ if (reader.isEndGroup()) {
11296
+ break;
11297
+ }
11298
+ var field = reader.getFieldNumber();
11299
+ switch (field) {
11300
+ case 1:
11301
+ var value = new proto.user.SegmentPaymentRuleRequest;
11302
+ reader.readMessage(value,proto.user.SegmentPaymentRuleRequest.deserializeBinaryFromReader);
11303
+ msg.setPaymentRule(value);
11304
+ break;
11305
+ case 2:
11306
+ var value = new proto.user.SegmentBetRuleRequest;
11307
+ reader.readMessage(value,proto.user.SegmentBetRuleRequest.deserializeBinaryFromReader);
11308
+ msg.setBetRule(value);
11309
+ break;
11310
+ default:
11311
+ reader.skipField();
11312
+ break;
11313
+ }
11314
+ }
11315
+ return msg;
11316
+ };
11317
+
11318
+
11319
+ /**
11320
+ * Serializes the message to binary data (in protobuf wire format).
11321
+ * @return {!Uint8Array}
11322
+ */
11323
+ proto.user.SegmentRuleRequest.prototype.serializeBinary = function() {
11324
+ var writer = new jspb.BinaryWriter();
11325
+ proto.user.SegmentRuleRequest.serializeBinaryToWriter(this, writer);
11326
+ return writer.getResultBuffer();
11327
+ };
11328
+
11329
+
11330
+ /**
11331
+ * Serializes the given message to binary data (in protobuf wire
11332
+ * format), writing to the given BinaryWriter.
11333
+ * @param {!proto.user.SegmentRuleRequest} message
11334
+ * @param {!jspb.BinaryWriter} writer
11335
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11336
+ */
11337
+ proto.user.SegmentRuleRequest.serializeBinaryToWriter = function(message, writer) {
11338
+ var f = undefined;
11339
+ f = message.getPaymentRule();
11340
+ if (f != null) {
11341
+ writer.writeMessage(
11342
+ 1,
11343
+ f,
11344
+ proto.user.SegmentPaymentRuleRequest.serializeBinaryToWriter
11345
+ );
11346
+ }
11347
+ f = message.getBetRule();
11348
+ if (f != null) {
11349
+ writer.writeMessage(
11350
+ 2,
11351
+ f,
11352
+ proto.user.SegmentBetRuleRequest.serializeBinaryToWriter
11353
+ );
11354
+ }
11355
+ };
11356
+
11357
+
11358
+ /**
11359
+ * optional SegmentPaymentRuleRequest payment_rule = 1;
11360
+ * @return {?proto.user.SegmentPaymentRuleRequest}
11361
+ */
11362
+ proto.user.SegmentRuleRequest.prototype.getPaymentRule = function() {
11363
+ return /** @type{?proto.user.SegmentPaymentRuleRequest} */ (
11364
+ jspb.Message.getWrapperField(this, proto.user.SegmentPaymentRuleRequest, 1));
11365
+ };
11366
+
11367
+
11368
+ /**
11369
+ * @param {?proto.user.SegmentPaymentRuleRequest|undefined} value
11370
+ * @return {!proto.user.SegmentRuleRequest} returns this
11371
+ */
11372
+ proto.user.SegmentRuleRequest.prototype.setPaymentRule = function(value) {
11373
+ return jspb.Message.setWrapperField(this, 1, value);
11374
+ };
11375
+
11376
+
11377
+ /**
11378
+ * Clears the message field making it undefined.
11379
+ * @return {!proto.user.SegmentRuleRequest} returns this
11380
+ */
11381
+ proto.user.SegmentRuleRequest.prototype.clearPaymentRule = function() {
11382
+ return this.setPaymentRule(undefined);
11383
+ };
11384
+
11385
+
11386
+ /**
11387
+ * Returns whether this field is set.
11388
+ * @return {boolean}
11389
+ */
11390
+ proto.user.SegmentRuleRequest.prototype.hasPaymentRule = function() {
11391
+ return jspb.Message.getField(this, 1) != null;
11392
+ };
11393
+
11394
+
11395
+ /**
11396
+ * optional SegmentBetRuleRequest bet_rule = 2;
11397
+ * @return {?proto.user.SegmentBetRuleRequest}
11398
+ */
11399
+ proto.user.SegmentRuleRequest.prototype.getBetRule = function() {
11400
+ return /** @type{?proto.user.SegmentBetRuleRequest} */ (
11401
+ jspb.Message.getWrapperField(this, proto.user.SegmentBetRuleRequest, 2));
11402
+ };
11403
+
11404
+
11405
+ /**
11406
+ * @param {?proto.user.SegmentBetRuleRequest|undefined} value
11407
+ * @return {!proto.user.SegmentRuleRequest} returns this
11408
+ */
11409
+ proto.user.SegmentRuleRequest.prototype.setBetRule = function(value) {
11410
+ return jspb.Message.setWrapperField(this, 2, value);
11411
+ };
11412
+
11413
+
11414
+ /**
11415
+ * Clears the message field making it undefined.
11416
+ * @return {!proto.user.SegmentRuleRequest} returns this
11417
+ */
11418
+ proto.user.SegmentRuleRequest.prototype.clearBetRule = function() {
11419
+ return this.setBetRule(undefined);
11420
+ };
11421
+
11422
+
11423
+ /**
11424
+ * Returns whether this field is set.
11425
+ * @return {boolean}
11426
+ */
11427
+ proto.user.SegmentRuleRequest.prototype.hasBetRule = function() {
11428
+ return jspb.Message.getField(this, 2) != null;
11429
+ };
11430
+
11431
+
11432
+
11433
+
11434
+
11435
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11436
+ /**
11437
+ * Creates an object representation of this proto.
11438
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11439
+ * Optional fields that are not set will be set to undefined.
11440
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11441
+ * For the list of reserved names please see:
11442
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11443
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11444
+ * JSPB instance for transitional soy proto support:
11445
+ * http://goto/soy-param-migration
11446
+ * @return {!Object}
11447
+ */
11448
+ proto.user.GetSegmentRuleRequest.prototype.toObject = function(opt_includeInstance) {
11449
+ return proto.user.GetSegmentRuleRequest.toObject(opt_includeInstance, this);
11450
+ };
11451
+
11452
+
11453
+ /**
11454
+ * Static version of the {@see toObject} method.
11455
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11456
+ * the JSPB instance for transitional soy proto support:
11457
+ * http://goto/soy-param-migration
11458
+ * @param {!proto.user.GetSegmentRuleRequest} msg The msg instance to transform.
11459
+ * @return {!Object}
11460
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11461
+ */
11462
+ proto.user.GetSegmentRuleRequest.toObject = function(includeInstance, msg) {
11463
+ var f, obj = {
11464
+ segmentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
11465
+ ruleType: jspb.Message.getFieldWithDefault(msg, 2, ""),
11466
+ currency: jspb.Message.getFieldWithDefault(msg, 3, "")
11467
+ };
11468
+
11469
+ if (includeInstance) {
11470
+ obj.$jspbMessageInstance = msg;
11471
+ }
11472
+ return obj;
11473
+ };
11474
+ }
11475
+
11476
+
11477
+ /**
11478
+ * Deserializes binary data (in protobuf wire format).
11479
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11480
+ * @return {!proto.user.GetSegmentRuleRequest}
11481
+ */
11482
+ proto.user.GetSegmentRuleRequest.deserializeBinary = function(bytes) {
11483
+ var reader = new jspb.BinaryReader(bytes);
11484
+ var msg = new proto.user.GetSegmentRuleRequest;
11485
+ return proto.user.GetSegmentRuleRequest.deserializeBinaryFromReader(msg, reader);
11486
+ };
11487
+
11488
+
11489
+ /**
11490
+ * Deserializes binary data (in protobuf wire format) from the
11491
+ * given reader into the given message object.
11492
+ * @param {!proto.user.GetSegmentRuleRequest} msg The message object to deserialize into.
11493
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11494
+ * @return {!proto.user.GetSegmentRuleRequest}
11495
+ */
11496
+ proto.user.GetSegmentRuleRequest.deserializeBinaryFromReader = function(msg, reader) {
11497
+ while (reader.nextField()) {
11498
+ if (reader.isEndGroup()) {
11499
+ break;
11500
+ }
11501
+ var field = reader.getFieldNumber();
11502
+ switch (field) {
11503
+ case 1:
11504
+ var value = /** @type {number} */ (reader.readInt32());
11505
+ msg.setSegmentId(value);
11506
+ break;
11507
+ case 2:
11508
+ var value = /** @type {string} */ (reader.readString());
11509
+ msg.setRuleType(value);
11510
+ break;
11511
+ case 3:
11512
+ var value = /** @type {string} */ (reader.readString());
11513
+ msg.setCurrency(value);
11514
+ break;
11515
+ default:
11516
+ reader.skipField();
11517
+ break;
11518
+ }
11519
+ }
11520
+ return msg;
11521
+ };
11522
+
11523
+
11524
+ /**
11525
+ * Serializes the message to binary data (in protobuf wire format).
11526
+ * @return {!Uint8Array}
11527
+ */
11528
+ proto.user.GetSegmentRuleRequest.prototype.serializeBinary = function() {
11529
+ var writer = new jspb.BinaryWriter();
11530
+ proto.user.GetSegmentRuleRequest.serializeBinaryToWriter(this, writer);
11531
+ return writer.getResultBuffer();
11532
+ };
11533
+
11534
+
11535
+ /**
11536
+ * Serializes the given message to binary data (in protobuf wire
11537
+ * format), writing to the given BinaryWriter.
11538
+ * @param {!proto.user.GetSegmentRuleRequest} message
11539
+ * @param {!jspb.BinaryWriter} writer
11540
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11541
+ */
11542
+ proto.user.GetSegmentRuleRequest.serializeBinaryToWriter = function(message, writer) {
11543
+ var f = undefined;
11544
+ f = message.getSegmentId();
11545
+ if (f !== 0) {
11546
+ writer.writeInt32(
11547
+ 1,
11548
+ f
11549
+ );
11550
+ }
11551
+ f = message.getRuleType();
11552
+ if (f.length > 0) {
11553
+ writer.writeString(
11554
+ 2,
11555
+ f
11556
+ );
11557
+ }
11558
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
11559
+ if (f != null) {
11560
+ writer.writeString(
11561
+ 3,
11562
+ f
11563
+ );
11564
+ }
11565
+ };
11566
+
11567
+
11568
+ /**
11569
+ * optional int32 segment_id = 1;
11570
+ * @return {number}
11571
+ */
11572
+ proto.user.GetSegmentRuleRequest.prototype.getSegmentId = function() {
11573
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
11574
+ };
11575
+
11576
+
11577
+ /**
11578
+ * @param {number} value
11579
+ * @return {!proto.user.GetSegmentRuleRequest} returns this
11580
+ */
11581
+ proto.user.GetSegmentRuleRequest.prototype.setSegmentId = function(value) {
11582
+ return jspb.Message.setProto3IntField(this, 1, value);
11583
+ };
11584
+
11585
+
11586
+ /**
11587
+ * optional string rule_type = 2;
11588
+ * @return {string}
11589
+ */
11590
+ proto.user.GetSegmentRuleRequest.prototype.getRuleType = function() {
11591
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11592
+ };
11593
+
11594
+
11595
+ /**
11596
+ * @param {string} value
11597
+ * @return {!proto.user.GetSegmentRuleRequest} returns this
11598
+ */
11599
+ proto.user.GetSegmentRuleRequest.prototype.setRuleType = function(value) {
11600
+ return jspb.Message.setProto3StringField(this, 2, value);
11601
+ };
11602
+
11603
+
11604
+ /**
11605
+ * optional string currency = 3;
11606
+ * @return {string}
11607
+ */
11608
+ proto.user.GetSegmentRuleRequest.prototype.getCurrency = function() {
11609
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11610
+ };
11611
+
11612
+
11613
+ /**
11614
+ * @param {string} value
11615
+ * @return {!proto.user.GetSegmentRuleRequest} returns this
11616
+ */
11617
+ proto.user.GetSegmentRuleRequest.prototype.setCurrency = function(value) {
11618
+ return jspb.Message.setField(this, 3, value);
11619
+ };
11620
+
11621
+
11622
+ /**
11623
+ * Clears the field making it undefined.
11624
+ * @return {!proto.user.GetSegmentRuleRequest} returns this
11625
+ */
11626
+ proto.user.GetSegmentRuleRequest.prototype.clearCurrency = function() {
11627
+ return jspb.Message.setField(this, 3, undefined);
11628
+ };
11629
+
11630
+
11631
+ /**
11632
+ * Returns whether this field is set.
11633
+ * @return {boolean}
11634
+ */
11635
+ proto.user.GetSegmentRuleRequest.prototype.hasCurrency = function() {
11636
+ return jspb.Message.getField(this, 3) != null;
11637
+ };
11638
+
11639
+
11640
+
11641
+ /**
11642
+ * List of repeated fields within this message type.
11643
+ * @private {!Array<number>}
11644
+ * @const
11645
+ */
11646
+ proto.user.SegmentPaymentRuleRequest.repeatedFields_ = [13,14];
11647
+
11648
+
11649
+
11650
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11651
+ /**
11652
+ * Creates an object representation of this proto.
11653
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11654
+ * Optional fields that are not set will be set to undefined.
11655
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11656
+ * For the list of reserved names please see:
11657
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11658
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11659
+ * JSPB instance for transitional soy proto support:
11660
+ * http://goto/soy-param-migration
11661
+ * @return {!Object}
11662
+ */
11663
+ proto.user.SegmentPaymentRuleRequest.prototype.toObject = function(opt_includeInstance) {
11664
+ return proto.user.SegmentPaymentRuleRequest.toObject(opt_includeInstance, this);
11665
+ };
11666
+
11667
+
11668
+ /**
11669
+ * Static version of the {@see toObject} method.
11670
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11671
+ * the JSPB instance for transitional soy proto support:
11672
+ * http://goto/soy-param-migration
11673
+ * @param {!proto.user.SegmentPaymentRuleRequest} msg The msg instance to transform.
11674
+ * @return {!Object}
11675
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11676
+ */
11677
+ proto.user.SegmentPaymentRuleRequest.toObject = function(includeInstance, msg) {
11678
+ var f, obj = {
11679
+ segmentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
11680
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
11681
+ depositAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
11682
+ depositAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
11683
+ ftdAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
11684
+ ftdAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
11685
+ depositCountMin: jspb.Message.getFieldWithDefault(msg, 7, 0),
11686
+ depositCountMax: jspb.Message.getFieldWithDefault(msg, 8, 0),
11687
+ depositSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
11688
+ depositSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
11689
+ depositAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
11690
+ depositAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
11691
+ paymentProvidersList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
11692
+ paymentTypesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f
11693
+ };
11694
+
11695
+ if (includeInstance) {
11696
+ obj.$jspbMessageInstance = msg;
11697
+ }
11698
+ return obj;
11699
+ };
11700
+ }
11701
+
11702
+
11703
+ /**
11704
+ * Deserializes binary data (in protobuf wire format).
11705
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11706
+ * @return {!proto.user.SegmentPaymentRuleRequest}
11707
+ */
11708
+ proto.user.SegmentPaymentRuleRequest.deserializeBinary = function(bytes) {
11709
+ var reader = new jspb.BinaryReader(bytes);
11710
+ var msg = new proto.user.SegmentPaymentRuleRequest;
11711
+ return proto.user.SegmentPaymentRuleRequest.deserializeBinaryFromReader(msg, reader);
11712
+ };
11713
+
11714
+
11715
+ /**
11716
+ * Deserializes binary data (in protobuf wire format) from the
11717
+ * given reader into the given message object.
11718
+ * @param {!proto.user.SegmentPaymentRuleRequest} msg The message object to deserialize into.
11719
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11720
+ * @return {!proto.user.SegmentPaymentRuleRequest}
11721
+ */
11722
+ proto.user.SegmentPaymentRuleRequest.deserializeBinaryFromReader = function(msg, reader) {
11723
+ while (reader.nextField()) {
11724
+ if (reader.isEndGroup()) {
11725
+ break;
11726
+ }
11727
+ var field = reader.getFieldNumber();
11728
+ switch (field) {
11729
+ case 1:
11730
+ var value = /** @type {number} */ (reader.readInt32());
11731
+ msg.setSegmentId(value);
11732
+ break;
11733
+ case 2:
11734
+ var value = /** @type {string} */ (reader.readString());
11735
+ msg.setCurrency(value);
11736
+ break;
11737
+ case 3:
11738
+ var value = /** @type {number} */ (reader.readFloat());
11739
+ msg.setDepositAmountMin(value);
11740
+ break;
11741
+ case 4:
11742
+ var value = /** @type {number} */ (reader.readFloat());
11743
+ msg.setDepositAmountMax(value);
11744
+ break;
11745
+ case 5:
11746
+ var value = /** @type {number} */ (reader.readFloat());
11747
+ msg.setFtdAmountMin(value);
11748
+ break;
11749
+ case 6:
11750
+ var value = /** @type {number} */ (reader.readFloat());
11751
+ msg.setFtdAmountMax(value);
11752
+ break;
11753
+ case 7:
11754
+ var value = /** @type {number} */ (reader.readInt32());
11755
+ msg.setDepositCountMin(value);
11756
+ break;
11757
+ case 8:
11758
+ var value = /** @type {number} */ (reader.readInt32());
11759
+ msg.setDepositCountMax(value);
11760
+ break;
11761
+ case 9:
11762
+ var value = /** @type {number} */ (reader.readFloat());
11763
+ msg.setDepositSumMin(value);
11764
+ break;
11765
+ case 10:
11766
+ var value = /** @type {number} */ (reader.readFloat());
11767
+ msg.setDepositSumMax(value);
11768
+ break;
11769
+ case 11:
11770
+ var value = /** @type {number} */ (reader.readFloat());
11771
+ msg.setDepositAvgMin(value);
11772
+ break;
11773
+ case 12:
11774
+ var value = /** @type {number} */ (reader.readFloat());
11775
+ msg.setDepositAvgMax(value);
11776
+ break;
11777
+ case 13:
11778
+ var value = /** @type {string} */ (reader.readString());
11779
+ msg.addPaymentProviders(value);
11780
+ break;
11781
+ case 14:
11782
+ var value = /** @type {string} */ (reader.readString());
11783
+ msg.addPaymentTypes(value);
11784
+ break;
11785
+ default:
11786
+ reader.skipField();
11787
+ break;
11788
+ }
11789
+ }
11790
+ return msg;
11791
+ };
11792
+
11793
+
11794
+ /**
11795
+ * Serializes the message to binary data (in protobuf wire format).
11796
+ * @return {!Uint8Array}
11797
+ */
11798
+ proto.user.SegmentPaymentRuleRequest.prototype.serializeBinary = function() {
11799
+ var writer = new jspb.BinaryWriter();
11800
+ proto.user.SegmentPaymentRuleRequest.serializeBinaryToWriter(this, writer);
11801
+ return writer.getResultBuffer();
11802
+ };
11803
+
11804
+
11805
+ /**
11806
+ * Serializes the given message to binary data (in protobuf wire
11807
+ * format), writing to the given BinaryWriter.
11808
+ * @param {!proto.user.SegmentPaymentRuleRequest} message
11809
+ * @param {!jspb.BinaryWriter} writer
11810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11811
+ */
11812
+ proto.user.SegmentPaymentRuleRequest.serializeBinaryToWriter = function(message, writer) {
11813
+ var f = undefined;
11814
+ f = message.getSegmentId();
11815
+ if (f !== 0) {
11816
+ writer.writeInt32(
11817
+ 1,
11818
+ f
11819
+ );
11820
+ }
11821
+ f = message.getCurrency();
11822
+ if (f.length > 0) {
11823
+ writer.writeString(
11824
+ 2,
11825
+ f
11826
+ );
11827
+ }
11828
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
11829
+ if (f != null) {
11830
+ writer.writeFloat(
11831
+ 3,
11832
+ f
11833
+ );
11834
+ }
11835
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
11836
+ if (f != null) {
11837
+ writer.writeFloat(
11838
+ 4,
11839
+ f
11840
+ );
11841
+ }
11842
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
11843
+ if (f != null) {
11844
+ writer.writeFloat(
11845
+ 5,
11846
+ f
11847
+ );
11848
+ }
11849
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
11850
+ if (f != null) {
11851
+ writer.writeFloat(
11852
+ 6,
11853
+ f
11854
+ );
11855
+ }
11856
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
11857
+ if (f != null) {
11858
+ writer.writeInt32(
11859
+ 7,
11860
+ f
11861
+ );
11862
+ }
11863
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
11864
+ if (f != null) {
11865
+ writer.writeInt32(
11866
+ 8,
11867
+ f
11868
+ );
11869
+ }
11870
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
11871
+ if (f != null) {
11872
+ writer.writeFloat(
11873
+ 9,
11874
+ f
11875
+ );
11876
+ }
11877
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
11878
+ if (f != null) {
11879
+ writer.writeFloat(
11880
+ 10,
11881
+ f
11882
+ );
11883
+ }
11884
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
11885
+ if (f != null) {
11886
+ writer.writeFloat(
11887
+ 11,
11888
+ f
11889
+ );
11890
+ }
11891
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
11892
+ if (f != null) {
11893
+ writer.writeFloat(
11894
+ 12,
11895
+ f
11896
+ );
11897
+ }
11898
+ f = message.getPaymentProvidersList();
11899
+ if (f.length > 0) {
11900
+ writer.writeRepeatedString(
11901
+ 13,
11902
+ f
11903
+ );
11904
+ }
11905
+ f = message.getPaymentTypesList();
11906
+ if (f.length > 0) {
11907
+ writer.writeRepeatedString(
11908
+ 14,
11909
+ f
11910
+ );
11911
+ }
11912
+ };
11913
+
11914
+
11915
+ /**
11916
+ * optional int32 segment_id = 1;
11917
+ * @return {number}
11918
+ */
11919
+ proto.user.SegmentPaymentRuleRequest.prototype.getSegmentId = function() {
11920
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
11921
+ };
11922
+
11923
+
11924
+ /**
11925
+ * @param {number} value
11926
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
11927
+ */
11928
+ proto.user.SegmentPaymentRuleRequest.prototype.setSegmentId = function(value) {
11929
+ return jspb.Message.setProto3IntField(this, 1, value);
11930
+ };
11931
+
11932
+
11933
+ /**
11934
+ * optional string currency = 2;
11935
+ * @return {string}
11936
+ */
11937
+ proto.user.SegmentPaymentRuleRequest.prototype.getCurrency = function() {
11938
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11939
+ };
11940
+
11941
+
11942
+ /**
11943
+ * @param {string} value
11944
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
11945
+ */
11946
+ proto.user.SegmentPaymentRuleRequest.prototype.setCurrency = function(value) {
11947
+ return jspb.Message.setProto3StringField(this, 2, value);
11948
+ };
11949
+
11950
+
11951
+ /**
11952
+ * optional float deposit_amount_min = 3;
11953
+ * @return {number}
11954
+ */
11955
+ proto.user.SegmentPaymentRuleRequest.prototype.getDepositAmountMin = function() {
11956
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
11957
+ };
11958
+
11959
+
11960
+ /**
11961
+ * @param {number} value
11962
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
11963
+ */
11964
+ proto.user.SegmentPaymentRuleRequest.prototype.setDepositAmountMin = function(value) {
11965
+ return jspb.Message.setField(this, 3, value);
11966
+ };
11967
+
11968
+
11969
+ /**
11970
+ * Clears the field making it undefined.
11971
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
11972
+ */
11973
+ proto.user.SegmentPaymentRuleRequest.prototype.clearDepositAmountMin = function() {
11974
+ return jspb.Message.setField(this, 3, undefined);
11975
+ };
11976
+
11977
+
11978
+ /**
11979
+ * Returns whether this field is set.
11980
+ * @return {boolean}
11981
+ */
11982
+ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositAmountMin = function() {
11983
+ return jspb.Message.getField(this, 3) != null;
11984
+ };
11985
+
11986
+
11987
+ /**
11988
+ * optional float deposit_amount_max = 4;
11989
+ * @return {number}
11990
+ */
11991
+ proto.user.SegmentPaymentRuleRequest.prototype.getDepositAmountMax = function() {
11992
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
11993
+ };
11994
+
11995
+
11996
+ /**
11997
+ * @param {number} value
11998
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
11999
+ */
12000
+ proto.user.SegmentPaymentRuleRequest.prototype.setDepositAmountMax = function(value) {
12001
+ return jspb.Message.setField(this, 4, value);
12002
+ };
12003
+
12004
+
12005
+ /**
12006
+ * Clears the field making it undefined.
12007
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12008
+ */
12009
+ proto.user.SegmentPaymentRuleRequest.prototype.clearDepositAmountMax = function() {
12010
+ return jspb.Message.setField(this, 4, undefined);
12011
+ };
12012
+
12013
+
12014
+ /**
12015
+ * Returns whether this field is set.
12016
+ * @return {boolean}
12017
+ */
12018
+ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositAmountMax = function() {
12019
+ return jspb.Message.getField(this, 4) != null;
12020
+ };
12021
+
12022
+
12023
+ /**
12024
+ * optional float ftd_amount_min = 5;
12025
+ * @return {number}
12026
+ */
12027
+ proto.user.SegmentPaymentRuleRequest.prototype.getFtdAmountMin = function() {
12028
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
12029
+ };
12030
+
12031
+
12032
+ /**
12033
+ * @param {number} value
12034
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12035
+ */
12036
+ proto.user.SegmentPaymentRuleRequest.prototype.setFtdAmountMin = function(value) {
12037
+ return jspb.Message.setField(this, 5, value);
12038
+ };
12039
+
12040
+
12041
+ /**
12042
+ * Clears the field making it undefined.
12043
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12044
+ */
12045
+ proto.user.SegmentPaymentRuleRequest.prototype.clearFtdAmountMin = function() {
12046
+ return jspb.Message.setField(this, 5, undefined);
12047
+ };
12048
+
12049
+
12050
+ /**
12051
+ * Returns whether this field is set.
12052
+ * @return {boolean}
12053
+ */
12054
+ proto.user.SegmentPaymentRuleRequest.prototype.hasFtdAmountMin = function() {
12055
+ return jspb.Message.getField(this, 5) != null;
12056
+ };
12057
+
12058
+
12059
+ /**
12060
+ * optional float ftd_amount_max = 6;
12061
+ * @return {number}
12062
+ */
12063
+ proto.user.SegmentPaymentRuleRequest.prototype.getFtdAmountMax = function() {
12064
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
12065
+ };
12066
+
12067
+
12068
+ /**
12069
+ * @param {number} value
12070
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12071
+ */
12072
+ proto.user.SegmentPaymentRuleRequest.prototype.setFtdAmountMax = function(value) {
12073
+ return jspb.Message.setField(this, 6, value);
12074
+ };
12075
+
12076
+
12077
+ /**
12078
+ * Clears the field making it undefined.
12079
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12080
+ */
12081
+ proto.user.SegmentPaymentRuleRequest.prototype.clearFtdAmountMax = function() {
12082
+ return jspb.Message.setField(this, 6, undefined);
12083
+ };
12084
+
12085
+
12086
+ /**
12087
+ * Returns whether this field is set.
12088
+ * @return {boolean}
12089
+ */
12090
+ proto.user.SegmentPaymentRuleRequest.prototype.hasFtdAmountMax = function() {
12091
+ return jspb.Message.getField(this, 6) != null;
12092
+ };
12093
+
12094
+
12095
+ /**
12096
+ * optional int32 deposit_count_min = 7;
12097
+ * @return {number}
12098
+ */
12099
+ proto.user.SegmentPaymentRuleRequest.prototype.getDepositCountMin = function() {
12100
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
12101
+ };
12102
+
12103
+
12104
+ /**
12105
+ * @param {number} value
12106
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12107
+ */
12108
+ proto.user.SegmentPaymentRuleRequest.prototype.setDepositCountMin = function(value) {
12109
+ return jspb.Message.setField(this, 7, value);
12110
+ };
12111
+
12112
+
12113
+ /**
12114
+ * Clears the field making it undefined.
12115
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12116
+ */
12117
+ proto.user.SegmentPaymentRuleRequest.prototype.clearDepositCountMin = function() {
12118
+ return jspb.Message.setField(this, 7, undefined);
12119
+ };
12120
+
12121
+
12122
+ /**
12123
+ * Returns whether this field is set.
12124
+ * @return {boolean}
12125
+ */
12126
+ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositCountMin = function() {
12127
+ return jspb.Message.getField(this, 7) != null;
12128
+ };
12129
+
12130
+
12131
+ /**
12132
+ * optional int32 deposit_count_max = 8;
12133
+ * @return {number}
12134
+ */
12135
+ proto.user.SegmentPaymentRuleRequest.prototype.getDepositCountMax = function() {
12136
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
12137
+ };
12138
+
12139
+
12140
+ /**
12141
+ * @param {number} value
12142
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12143
+ */
12144
+ proto.user.SegmentPaymentRuleRequest.prototype.setDepositCountMax = function(value) {
12145
+ return jspb.Message.setField(this, 8, value);
12146
+ };
12147
+
12148
+
12149
+ /**
12150
+ * Clears the field making it undefined.
12151
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12152
+ */
12153
+ proto.user.SegmentPaymentRuleRequest.prototype.clearDepositCountMax = function() {
12154
+ return jspb.Message.setField(this, 8, undefined);
12155
+ };
12156
+
12157
+
12158
+ /**
12159
+ * Returns whether this field is set.
12160
+ * @return {boolean}
12161
+ */
12162
+ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositCountMax = function() {
12163
+ return jspb.Message.getField(this, 8) != null;
12164
+ };
12165
+
12166
+
12167
+ /**
12168
+ * optional float deposit_sum_min = 9;
12169
+ * @return {number}
12170
+ */
12171
+ proto.user.SegmentPaymentRuleRequest.prototype.getDepositSumMin = function() {
12172
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
12173
+ };
12174
+
12175
+
12176
+ /**
12177
+ * @param {number} value
12178
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12179
+ */
12180
+ proto.user.SegmentPaymentRuleRequest.prototype.setDepositSumMin = function(value) {
12181
+ return jspb.Message.setField(this, 9, value);
12182
+ };
12183
+
12184
+
12185
+ /**
12186
+ * Clears the field making it undefined.
12187
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12188
+ */
12189
+ proto.user.SegmentPaymentRuleRequest.prototype.clearDepositSumMin = function() {
12190
+ return jspb.Message.setField(this, 9, undefined);
12191
+ };
12192
+
12193
+
12194
+ /**
12195
+ * Returns whether this field is set.
12196
+ * @return {boolean}
12197
+ */
12198
+ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositSumMin = function() {
12199
+ return jspb.Message.getField(this, 9) != null;
12200
+ };
12201
+
12202
+
12203
+ /**
12204
+ * optional float deposit_sum_max = 10;
12205
+ * @return {number}
12206
+ */
12207
+ proto.user.SegmentPaymentRuleRequest.prototype.getDepositSumMax = function() {
12208
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
12209
+ };
12210
+
12211
+
12212
+ /**
12213
+ * @param {number} value
12214
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12215
+ */
12216
+ proto.user.SegmentPaymentRuleRequest.prototype.setDepositSumMax = function(value) {
12217
+ return jspb.Message.setField(this, 10, value);
12218
+ };
12219
+
12220
+
12221
+ /**
12222
+ * Clears the field making it undefined.
12223
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12224
+ */
12225
+ proto.user.SegmentPaymentRuleRequest.prototype.clearDepositSumMax = function() {
12226
+ return jspb.Message.setField(this, 10, undefined);
12227
+ };
12228
+
12229
+
12230
+ /**
12231
+ * Returns whether this field is set.
12232
+ * @return {boolean}
12233
+ */
12234
+ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositSumMax = function() {
12235
+ return jspb.Message.getField(this, 10) != null;
12236
+ };
12237
+
12238
+
12239
+ /**
12240
+ * optional float deposit_avg_min = 11;
12241
+ * @return {number}
12242
+ */
12243
+ proto.user.SegmentPaymentRuleRequest.prototype.getDepositAvgMin = function() {
12244
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
12245
+ };
12246
+
12247
+
12248
+ /**
12249
+ * @param {number} value
12250
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12251
+ */
12252
+ proto.user.SegmentPaymentRuleRequest.prototype.setDepositAvgMin = function(value) {
12253
+ return jspb.Message.setField(this, 11, value);
12254
+ };
12255
+
12256
+
12257
+ /**
12258
+ * Clears the field making it undefined.
12259
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12260
+ */
12261
+ proto.user.SegmentPaymentRuleRequest.prototype.clearDepositAvgMin = function() {
12262
+ return jspb.Message.setField(this, 11, undefined);
12263
+ };
12264
+
12265
+
12266
+ /**
12267
+ * Returns whether this field is set.
12268
+ * @return {boolean}
12269
+ */
12270
+ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositAvgMin = function() {
12271
+ return jspb.Message.getField(this, 11) != null;
12272
+ };
12273
+
12274
+
12275
+ /**
12276
+ * optional float deposit_avg_max = 12;
12277
+ * @return {number}
12278
+ */
12279
+ proto.user.SegmentPaymentRuleRequest.prototype.getDepositAvgMax = function() {
12280
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
12281
+ };
12282
+
12283
+
12284
+ /**
12285
+ * @param {number} value
12286
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12287
+ */
12288
+ proto.user.SegmentPaymentRuleRequest.prototype.setDepositAvgMax = function(value) {
12289
+ return jspb.Message.setField(this, 12, value);
12290
+ };
12291
+
12292
+
12293
+ /**
12294
+ * Clears the field making it undefined.
12295
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12296
+ */
12297
+ proto.user.SegmentPaymentRuleRequest.prototype.clearDepositAvgMax = function() {
12298
+ return jspb.Message.setField(this, 12, undefined);
12299
+ };
12300
+
12301
+
12302
+ /**
12303
+ * Returns whether this field is set.
12304
+ * @return {boolean}
12305
+ */
12306
+ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositAvgMax = function() {
12307
+ return jspb.Message.getField(this, 12) != null;
12308
+ };
12309
+
12310
+
12311
+ /**
12312
+ * repeated string payment_providers = 13;
12313
+ * @return {!Array<string>}
12314
+ */
12315
+ proto.user.SegmentPaymentRuleRequest.prototype.getPaymentProvidersList = function() {
12316
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 13));
12317
+ };
12318
+
12319
+
12320
+ /**
12321
+ * @param {!Array<string>} value
12322
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12323
+ */
12324
+ proto.user.SegmentPaymentRuleRequest.prototype.setPaymentProvidersList = function(value) {
12325
+ return jspb.Message.setField(this, 13, value || []);
12326
+ };
12327
+
12328
+
12329
+ /**
12330
+ * @param {string} value
12331
+ * @param {number=} opt_index
12332
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12333
+ */
12334
+ proto.user.SegmentPaymentRuleRequest.prototype.addPaymentProviders = function(value, opt_index) {
12335
+ return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
12336
+ };
12337
+
12338
+
12339
+ /**
12340
+ * Clears the list making it empty but non-null.
12341
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12342
+ */
12343
+ proto.user.SegmentPaymentRuleRequest.prototype.clearPaymentProvidersList = function() {
12344
+ return this.setPaymentProvidersList([]);
12345
+ };
12346
+
12347
+
12348
+ /**
12349
+ * repeated string payment_types = 14;
12350
+ * @return {!Array<string>}
12351
+ */
12352
+ proto.user.SegmentPaymentRuleRequest.prototype.getPaymentTypesList = function() {
12353
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
12354
+ };
12355
+
12356
+
12357
+ /**
12358
+ * @param {!Array<string>} value
12359
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12360
+ */
12361
+ proto.user.SegmentPaymentRuleRequest.prototype.setPaymentTypesList = function(value) {
12362
+ return jspb.Message.setField(this, 14, value || []);
12363
+ };
12364
+
12365
+
12366
+ /**
12367
+ * @param {string} value
12368
+ * @param {number=} opt_index
12369
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12370
+ */
12371
+ proto.user.SegmentPaymentRuleRequest.prototype.addPaymentTypes = function(value, opt_index) {
12372
+ return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
12373
+ };
12374
+
12375
+
12376
+ /**
12377
+ * Clears the list making it empty but non-null.
12378
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12379
+ */
12380
+ proto.user.SegmentPaymentRuleRequest.prototype.clearPaymentTypesList = function() {
12381
+ return this.setPaymentTypesList([]);
12382
+ };
12383
+
12384
+
12385
+
12386
+
12387
+
12388
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12389
+ /**
12390
+ * Creates an object representation of this proto.
12391
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12392
+ * Optional fields that are not set will be set to undefined.
12393
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12394
+ * For the list of reserved names please see:
12395
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12396
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12397
+ * JSPB instance for transitional soy proto support:
12398
+ * http://goto/soy-param-migration
12399
+ * @return {!Object}
12400
+ */
12401
+ proto.user.SegmentBetRuleRequest.prototype.toObject = function(opt_includeInstance) {
12402
+ return proto.user.SegmentBetRuleRequest.toObject(opt_includeInstance, this);
12403
+ };
12404
+
12405
+
12406
+ /**
12407
+ * Static version of the {@see toObject} method.
12408
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12409
+ * the JSPB instance for transitional soy proto support:
12410
+ * http://goto/soy-param-migration
12411
+ * @param {!proto.user.SegmentBetRuleRequest} msg The msg instance to transform.
12412
+ * @return {!Object}
12413
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12414
+ */
12415
+ proto.user.SegmentBetRuleRequest.toObject = function(includeInstance, msg) {
12416
+ var f, obj = {
12417
+ segmentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
12418
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
12419
+ betAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
12420
+ betAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
12421
+ betCountMin: jspb.Message.getFieldWithDefault(msg, 5, 0),
12422
+ betCountMax: jspb.Message.getFieldWithDefault(msg, 6, 0),
12423
+ betSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
12424
+ betSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
12425
+ betAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
12426
+ betAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
12427
+ winAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
12428
+ winAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
12429
+ winCountMin: jspb.Message.getFieldWithDefault(msg, 13, 0),
12430
+ winCountMax: jspb.Message.getFieldWithDefault(msg, 14, 0),
12431
+ winSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
12432
+ winSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
12433
+ winAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
12434
+ winAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0)
12435
+ };
12436
+
12437
+ if (includeInstance) {
12438
+ obj.$jspbMessageInstance = msg;
12439
+ }
12440
+ return obj;
12441
+ };
12442
+ }
12443
+
12444
+
12445
+ /**
12446
+ * Deserializes binary data (in protobuf wire format).
12447
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12448
+ * @return {!proto.user.SegmentBetRuleRequest}
12449
+ */
12450
+ proto.user.SegmentBetRuleRequest.deserializeBinary = function(bytes) {
12451
+ var reader = new jspb.BinaryReader(bytes);
12452
+ var msg = new proto.user.SegmentBetRuleRequest;
12453
+ return proto.user.SegmentBetRuleRequest.deserializeBinaryFromReader(msg, reader);
12454
+ };
12455
+
12456
+
12457
+ /**
12458
+ * Deserializes binary data (in protobuf wire format) from the
12459
+ * given reader into the given message object.
12460
+ * @param {!proto.user.SegmentBetRuleRequest} msg The message object to deserialize into.
12461
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12462
+ * @return {!proto.user.SegmentBetRuleRequest}
12463
+ */
12464
+ proto.user.SegmentBetRuleRequest.deserializeBinaryFromReader = function(msg, reader) {
12465
+ while (reader.nextField()) {
12466
+ if (reader.isEndGroup()) {
12467
+ break;
12468
+ }
12469
+ var field = reader.getFieldNumber();
12470
+ switch (field) {
12471
+ case 1:
12472
+ var value = /** @type {number} */ (reader.readInt32());
12473
+ msg.setSegmentId(value);
12474
+ break;
12475
+ case 2:
12476
+ var value = /** @type {string} */ (reader.readString());
12477
+ msg.setCurrency(value);
12478
+ break;
12479
+ case 3:
12480
+ var value = /** @type {number} */ (reader.readFloat());
12481
+ msg.setBetAmountMin(value);
12482
+ break;
12483
+ case 4:
12484
+ var value = /** @type {number} */ (reader.readFloat());
12485
+ msg.setBetAmountMax(value);
12486
+ break;
12487
+ case 5:
12488
+ var value = /** @type {number} */ (reader.readInt32());
12489
+ msg.setBetCountMin(value);
12490
+ break;
12491
+ case 6:
12492
+ var value = /** @type {number} */ (reader.readInt32());
12493
+ msg.setBetCountMax(value);
12494
+ break;
12495
+ case 7:
12496
+ var value = /** @type {number} */ (reader.readFloat());
12497
+ msg.setBetSumMin(value);
12498
+ break;
12499
+ case 8:
12500
+ var value = /** @type {number} */ (reader.readFloat());
12501
+ msg.setBetSumMax(value);
12502
+ break;
12503
+ case 9:
12504
+ var value = /** @type {number} */ (reader.readFloat());
12505
+ msg.setBetAvgMin(value);
12506
+ break;
12507
+ case 10:
12508
+ var value = /** @type {number} */ (reader.readFloat());
12509
+ msg.setBetAvgMax(value);
12510
+ break;
12511
+ case 11:
12512
+ var value = /** @type {number} */ (reader.readFloat());
12513
+ msg.setWinAmountMin(value);
12514
+ break;
12515
+ case 12:
12516
+ var value = /** @type {number} */ (reader.readFloat());
12517
+ msg.setWinAmountMax(value);
12518
+ break;
12519
+ case 13:
12520
+ var value = /** @type {number} */ (reader.readInt32());
12521
+ msg.setWinCountMin(value);
12522
+ break;
12523
+ case 14:
12524
+ var value = /** @type {number} */ (reader.readInt32());
12525
+ msg.setWinCountMax(value);
12526
+ break;
12527
+ case 15:
12528
+ var value = /** @type {number} */ (reader.readFloat());
12529
+ msg.setWinSumMin(value);
12530
+ break;
12531
+ case 16:
12532
+ var value = /** @type {number} */ (reader.readFloat());
12533
+ msg.setWinSumMax(value);
12534
+ break;
12535
+ case 17:
12536
+ var value = /** @type {number} */ (reader.readFloat());
12537
+ msg.setWinAvgMin(value);
12538
+ break;
12539
+ case 18:
12540
+ var value = /** @type {number} */ (reader.readFloat());
12541
+ msg.setWinAvgMax(value);
12542
+ break;
12543
+ default:
12544
+ reader.skipField();
12545
+ break;
12546
+ }
12547
+ }
12548
+ return msg;
12549
+ };
12550
+
12551
+
12552
+ /**
12553
+ * Serializes the message to binary data (in protobuf wire format).
12554
+ * @return {!Uint8Array}
12555
+ */
12556
+ proto.user.SegmentBetRuleRequest.prototype.serializeBinary = function() {
12557
+ var writer = new jspb.BinaryWriter();
12558
+ proto.user.SegmentBetRuleRequest.serializeBinaryToWriter(this, writer);
12559
+ return writer.getResultBuffer();
12560
+ };
12561
+
12562
+
12563
+ /**
12564
+ * Serializes the given message to binary data (in protobuf wire
12565
+ * format), writing to the given BinaryWriter.
12566
+ * @param {!proto.user.SegmentBetRuleRequest} message
12567
+ * @param {!jspb.BinaryWriter} writer
12568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12569
+ */
12570
+ proto.user.SegmentBetRuleRequest.serializeBinaryToWriter = function(message, writer) {
12571
+ var f = undefined;
12572
+ f = message.getSegmentId();
12573
+ if (f !== 0) {
12574
+ writer.writeInt32(
12575
+ 1,
12576
+ f
12577
+ );
12578
+ }
12579
+ f = message.getCurrency();
12580
+ if (f.length > 0) {
12581
+ writer.writeString(
12582
+ 2,
12583
+ f
12584
+ );
12585
+ }
12586
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
12587
+ if (f != null) {
12588
+ writer.writeFloat(
12589
+ 3,
12590
+ f
12591
+ );
12592
+ }
12593
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
12594
+ if (f != null) {
12595
+ writer.writeFloat(
12596
+ 4,
12597
+ f
12598
+ );
12599
+ }
12600
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
12601
+ if (f != null) {
12602
+ writer.writeInt32(
12603
+ 5,
12604
+ f
12605
+ );
12606
+ }
12607
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
12608
+ if (f != null) {
12609
+ writer.writeInt32(
12610
+ 6,
12611
+ f
12612
+ );
12613
+ }
12614
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
12615
+ if (f != null) {
12616
+ writer.writeFloat(
12617
+ 7,
12618
+ f
12619
+ );
12620
+ }
12621
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
12622
+ if (f != null) {
12623
+ writer.writeFloat(
12624
+ 8,
12625
+ f
12626
+ );
12627
+ }
12628
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
12629
+ if (f != null) {
12630
+ writer.writeFloat(
12631
+ 9,
12632
+ f
12633
+ );
12634
+ }
12635
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
12636
+ if (f != null) {
12637
+ writer.writeFloat(
12638
+ 10,
12639
+ f
12640
+ );
12641
+ }
12642
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
12643
+ if (f != null) {
12644
+ writer.writeFloat(
12645
+ 11,
12646
+ f
12647
+ );
12648
+ }
12649
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
12650
+ if (f != null) {
12651
+ writer.writeFloat(
12652
+ 12,
12653
+ f
12654
+ );
12655
+ }
12656
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
12657
+ if (f != null) {
12658
+ writer.writeInt32(
12659
+ 13,
12660
+ f
12661
+ );
12662
+ }
12663
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
12664
+ if (f != null) {
12665
+ writer.writeInt32(
12666
+ 14,
12667
+ f
12668
+ );
12669
+ }
12670
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
12671
+ if (f != null) {
12672
+ writer.writeFloat(
12673
+ 15,
12674
+ f
12675
+ );
12676
+ }
12677
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
12678
+ if (f != null) {
12679
+ writer.writeFloat(
12680
+ 16,
12681
+ f
12682
+ );
12683
+ }
12684
+ f = /** @type {number} */ (jspb.Message.getField(message, 17));
12685
+ if (f != null) {
12686
+ writer.writeFloat(
12687
+ 17,
12688
+ f
12689
+ );
12690
+ }
12691
+ f = /** @type {number} */ (jspb.Message.getField(message, 18));
12692
+ if (f != null) {
12693
+ writer.writeFloat(
12694
+ 18,
12695
+ f
12696
+ );
12697
+ }
12698
+ };
12699
+
12700
+
12701
+ /**
12702
+ * optional int32 segment_id = 1;
12703
+ * @return {number}
12704
+ */
12705
+ proto.user.SegmentBetRuleRequest.prototype.getSegmentId = function() {
12706
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
12707
+ };
12708
+
12709
+
12710
+ /**
12711
+ * @param {number} value
12712
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12713
+ */
12714
+ proto.user.SegmentBetRuleRequest.prototype.setSegmentId = function(value) {
12715
+ return jspb.Message.setProto3IntField(this, 1, value);
12716
+ };
12717
+
12718
+
12719
+ /**
12720
+ * optional string currency = 2;
12721
+ * @return {string}
12722
+ */
12723
+ proto.user.SegmentBetRuleRequest.prototype.getCurrency = function() {
12724
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12725
+ };
12726
+
12727
+
12728
+ /**
12729
+ * @param {string} value
12730
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12731
+ */
12732
+ proto.user.SegmentBetRuleRequest.prototype.setCurrency = function(value) {
12733
+ return jspb.Message.setProto3StringField(this, 2, value);
12734
+ };
12735
+
12736
+
12737
+ /**
12738
+ * optional float bet_amount_min = 3;
12739
+ * @return {number}
12740
+ */
12741
+ proto.user.SegmentBetRuleRequest.prototype.getBetAmountMin = function() {
12742
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
12743
+ };
12744
+
12745
+
12746
+ /**
12747
+ * @param {number} value
12748
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12749
+ */
12750
+ proto.user.SegmentBetRuleRequest.prototype.setBetAmountMin = function(value) {
12751
+ return jspb.Message.setField(this, 3, value);
12752
+ };
12753
+
12754
+
12755
+ /**
12756
+ * Clears the field making it undefined.
12757
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12758
+ */
12759
+ proto.user.SegmentBetRuleRequest.prototype.clearBetAmountMin = function() {
12760
+ return jspb.Message.setField(this, 3, undefined);
12761
+ };
12762
+
12763
+
12764
+ /**
12765
+ * Returns whether this field is set.
12766
+ * @return {boolean}
12767
+ */
12768
+ proto.user.SegmentBetRuleRequest.prototype.hasBetAmountMin = function() {
12769
+ return jspb.Message.getField(this, 3) != null;
12770
+ };
12771
+
12772
+
12773
+ /**
12774
+ * optional float bet_amount_max = 4;
12775
+ * @return {number}
12776
+ */
12777
+ proto.user.SegmentBetRuleRequest.prototype.getBetAmountMax = function() {
12778
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
12779
+ };
12780
+
12781
+
12782
+ /**
12783
+ * @param {number} value
12784
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12785
+ */
12786
+ proto.user.SegmentBetRuleRequest.prototype.setBetAmountMax = function(value) {
12787
+ return jspb.Message.setField(this, 4, value);
12788
+ };
12789
+
12790
+
12791
+ /**
12792
+ * Clears the field making it undefined.
12793
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12794
+ */
12795
+ proto.user.SegmentBetRuleRequest.prototype.clearBetAmountMax = function() {
12796
+ return jspb.Message.setField(this, 4, undefined);
12797
+ };
12798
+
12799
+
12800
+ /**
12801
+ * Returns whether this field is set.
12802
+ * @return {boolean}
12803
+ */
12804
+ proto.user.SegmentBetRuleRequest.prototype.hasBetAmountMax = function() {
12805
+ return jspb.Message.getField(this, 4) != null;
12806
+ };
12807
+
12808
+
12809
+ /**
12810
+ * optional int32 bet_count_min = 5;
12811
+ * @return {number}
12812
+ */
12813
+ proto.user.SegmentBetRuleRequest.prototype.getBetCountMin = function() {
12814
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
12815
+ };
12816
+
12817
+
12818
+ /**
12819
+ * @param {number} value
12820
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12821
+ */
12822
+ proto.user.SegmentBetRuleRequest.prototype.setBetCountMin = function(value) {
12823
+ return jspb.Message.setField(this, 5, value);
12824
+ };
12825
+
12826
+
12827
+ /**
12828
+ * Clears the field making it undefined.
12829
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12830
+ */
12831
+ proto.user.SegmentBetRuleRequest.prototype.clearBetCountMin = function() {
12832
+ return jspb.Message.setField(this, 5, undefined);
12833
+ };
12834
+
12835
+
12836
+ /**
12837
+ * Returns whether this field is set.
12838
+ * @return {boolean}
12839
+ */
12840
+ proto.user.SegmentBetRuleRequest.prototype.hasBetCountMin = function() {
12841
+ return jspb.Message.getField(this, 5) != null;
12842
+ };
12843
+
12844
+
12845
+ /**
12846
+ * optional int32 bet_count_max = 6;
12847
+ * @return {number}
12848
+ */
12849
+ proto.user.SegmentBetRuleRequest.prototype.getBetCountMax = function() {
12850
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
12851
+ };
12852
+
12853
+
12854
+ /**
12855
+ * @param {number} value
12856
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12857
+ */
12858
+ proto.user.SegmentBetRuleRequest.prototype.setBetCountMax = function(value) {
12859
+ return jspb.Message.setField(this, 6, value);
12860
+ };
12861
+
12862
+
12863
+ /**
12864
+ * Clears the field making it undefined.
12865
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12866
+ */
12867
+ proto.user.SegmentBetRuleRequest.prototype.clearBetCountMax = function() {
12868
+ return jspb.Message.setField(this, 6, undefined);
12869
+ };
12870
+
12871
+
12872
+ /**
12873
+ * Returns whether this field is set.
12874
+ * @return {boolean}
12875
+ */
12876
+ proto.user.SegmentBetRuleRequest.prototype.hasBetCountMax = function() {
12877
+ return jspb.Message.getField(this, 6) != null;
12878
+ };
12879
+
12880
+
12881
+ /**
12882
+ * optional float bet_sum_min = 7;
12883
+ * @return {number}
12884
+ */
12885
+ proto.user.SegmentBetRuleRequest.prototype.getBetSumMin = function() {
12886
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
12887
+ };
12888
+
12889
+
12890
+ /**
12891
+ * @param {number} value
12892
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12893
+ */
12894
+ proto.user.SegmentBetRuleRequest.prototype.setBetSumMin = function(value) {
12895
+ return jspb.Message.setField(this, 7, value);
12896
+ };
12897
+
12898
+
12899
+ /**
12900
+ * Clears the field making it undefined.
12901
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12902
+ */
12903
+ proto.user.SegmentBetRuleRequest.prototype.clearBetSumMin = function() {
12904
+ return jspb.Message.setField(this, 7, undefined);
12905
+ };
12906
+
12907
+
12908
+ /**
12909
+ * Returns whether this field is set.
12910
+ * @return {boolean}
12911
+ */
12912
+ proto.user.SegmentBetRuleRequest.prototype.hasBetSumMin = function() {
12913
+ return jspb.Message.getField(this, 7) != null;
12914
+ };
12915
+
12916
+
12917
+ /**
12918
+ * optional float bet_sum_max = 8;
12919
+ * @return {number}
12920
+ */
12921
+ proto.user.SegmentBetRuleRequest.prototype.getBetSumMax = function() {
12922
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
12923
+ };
12924
+
12925
+
12926
+ /**
12927
+ * @param {number} value
12928
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12929
+ */
12930
+ proto.user.SegmentBetRuleRequest.prototype.setBetSumMax = function(value) {
12931
+ return jspb.Message.setField(this, 8, value);
12932
+ };
12933
+
12934
+
12935
+ /**
12936
+ * Clears the field making it undefined.
12937
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12938
+ */
12939
+ proto.user.SegmentBetRuleRequest.prototype.clearBetSumMax = function() {
12940
+ return jspb.Message.setField(this, 8, undefined);
12941
+ };
12942
+
12943
+
12944
+ /**
12945
+ * Returns whether this field is set.
12946
+ * @return {boolean}
12947
+ */
12948
+ proto.user.SegmentBetRuleRequest.prototype.hasBetSumMax = function() {
12949
+ return jspb.Message.getField(this, 8) != null;
12950
+ };
12951
+
12952
+
12953
+ /**
12954
+ * optional float bet_avg_min = 9;
12955
+ * @return {number}
12956
+ */
12957
+ proto.user.SegmentBetRuleRequest.prototype.getBetAvgMin = function() {
12958
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
12959
+ };
12960
+
12961
+
12962
+ /**
12963
+ * @param {number} value
12964
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12965
+ */
12966
+ proto.user.SegmentBetRuleRequest.prototype.setBetAvgMin = function(value) {
12967
+ return jspb.Message.setField(this, 9, value);
12968
+ };
12969
+
12970
+
12971
+ /**
12972
+ * Clears the field making it undefined.
12973
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
12974
+ */
12975
+ proto.user.SegmentBetRuleRequest.prototype.clearBetAvgMin = function() {
12976
+ return jspb.Message.setField(this, 9, undefined);
12977
+ };
12978
+
12979
+
12980
+ /**
12981
+ * Returns whether this field is set.
12982
+ * @return {boolean}
12983
+ */
12984
+ proto.user.SegmentBetRuleRequest.prototype.hasBetAvgMin = function() {
12985
+ return jspb.Message.getField(this, 9) != null;
12986
+ };
12987
+
12988
+
12989
+ /**
12990
+ * optional float bet_avg_max = 10;
12991
+ * @return {number}
12992
+ */
12993
+ proto.user.SegmentBetRuleRequest.prototype.getBetAvgMax = function() {
12994
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
12995
+ };
12996
+
12997
+
12998
+ /**
12999
+ * @param {number} value
13000
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13001
+ */
13002
+ proto.user.SegmentBetRuleRequest.prototype.setBetAvgMax = function(value) {
13003
+ return jspb.Message.setField(this, 10, value);
13004
+ };
13005
+
13006
+
13007
+ /**
13008
+ * Clears the field making it undefined.
13009
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13010
+ */
13011
+ proto.user.SegmentBetRuleRequest.prototype.clearBetAvgMax = function() {
13012
+ return jspb.Message.setField(this, 10, undefined);
13013
+ };
13014
+
13015
+
13016
+ /**
13017
+ * Returns whether this field is set.
13018
+ * @return {boolean}
13019
+ */
13020
+ proto.user.SegmentBetRuleRequest.prototype.hasBetAvgMax = function() {
13021
+ return jspb.Message.getField(this, 10) != null;
13022
+ };
13023
+
13024
+
13025
+ /**
13026
+ * optional float win_amount_min = 11;
13027
+ * @return {number}
13028
+ */
13029
+ proto.user.SegmentBetRuleRequest.prototype.getWinAmountMin = function() {
13030
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
13031
+ };
13032
+
13033
+
13034
+ /**
13035
+ * @param {number} value
13036
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13037
+ */
13038
+ proto.user.SegmentBetRuleRequest.prototype.setWinAmountMin = function(value) {
13039
+ return jspb.Message.setField(this, 11, value);
13040
+ };
13041
+
13042
+
13043
+ /**
13044
+ * Clears the field making it undefined.
13045
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13046
+ */
13047
+ proto.user.SegmentBetRuleRequest.prototype.clearWinAmountMin = function() {
13048
+ return jspb.Message.setField(this, 11, undefined);
13049
+ };
13050
+
13051
+
13052
+ /**
13053
+ * Returns whether this field is set.
13054
+ * @return {boolean}
13055
+ */
13056
+ proto.user.SegmentBetRuleRequest.prototype.hasWinAmountMin = function() {
13057
+ return jspb.Message.getField(this, 11) != null;
13058
+ };
13059
+
13060
+
13061
+ /**
13062
+ * optional float win_amount_max = 12;
13063
+ * @return {number}
13064
+ */
13065
+ proto.user.SegmentBetRuleRequest.prototype.getWinAmountMax = function() {
13066
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
13067
+ };
13068
+
13069
+
13070
+ /**
13071
+ * @param {number} value
13072
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13073
+ */
13074
+ proto.user.SegmentBetRuleRequest.prototype.setWinAmountMax = function(value) {
13075
+ return jspb.Message.setField(this, 12, value);
13076
+ };
13077
+
13078
+
13079
+ /**
13080
+ * Clears the field making it undefined.
13081
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13082
+ */
13083
+ proto.user.SegmentBetRuleRequest.prototype.clearWinAmountMax = function() {
13084
+ return jspb.Message.setField(this, 12, undefined);
13085
+ };
13086
+
13087
+
13088
+ /**
13089
+ * Returns whether this field is set.
13090
+ * @return {boolean}
13091
+ */
13092
+ proto.user.SegmentBetRuleRequest.prototype.hasWinAmountMax = function() {
13093
+ return jspb.Message.getField(this, 12) != null;
13094
+ };
13095
+
13096
+
13097
+ /**
13098
+ * optional int32 win_count_min = 13;
13099
+ * @return {number}
13100
+ */
13101
+ proto.user.SegmentBetRuleRequest.prototype.getWinCountMin = function() {
13102
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
13103
+ };
13104
+
13105
+
13106
+ /**
13107
+ * @param {number} value
13108
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13109
+ */
13110
+ proto.user.SegmentBetRuleRequest.prototype.setWinCountMin = function(value) {
13111
+ return jspb.Message.setField(this, 13, value);
13112
+ };
13113
+
13114
+
13115
+ /**
13116
+ * Clears the field making it undefined.
13117
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13118
+ */
13119
+ proto.user.SegmentBetRuleRequest.prototype.clearWinCountMin = function() {
13120
+ return jspb.Message.setField(this, 13, undefined);
13121
+ };
13122
+
13123
+
13124
+ /**
13125
+ * Returns whether this field is set.
13126
+ * @return {boolean}
13127
+ */
13128
+ proto.user.SegmentBetRuleRequest.prototype.hasWinCountMin = function() {
13129
+ return jspb.Message.getField(this, 13) != null;
13130
+ };
13131
+
13132
+
13133
+ /**
13134
+ * optional int32 win_count_max = 14;
13135
+ * @return {number}
13136
+ */
13137
+ proto.user.SegmentBetRuleRequest.prototype.getWinCountMax = function() {
13138
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
13139
+ };
13140
+
13141
+
13142
+ /**
13143
+ * @param {number} value
13144
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13145
+ */
13146
+ proto.user.SegmentBetRuleRequest.prototype.setWinCountMax = function(value) {
13147
+ return jspb.Message.setField(this, 14, value);
13148
+ };
13149
+
13150
+
13151
+ /**
13152
+ * Clears the field making it undefined.
13153
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13154
+ */
13155
+ proto.user.SegmentBetRuleRequest.prototype.clearWinCountMax = function() {
13156
+ return jspb.Message.setField(this, 14, undefined);
13157
+ };
13158
+
13159
+
13160
+ /**
13161
+ * Returns whether this field is set.
13162
+ * @return {boolean}
13163
+ */
13164
+ proto.user.SegmentBetRuleRequest.prototype.hasWinCountMax = function() {
13165
+ return jspb.Message.getField(this, 14) != null;
13166
+ };
13167
+
13168
+
13169
+ /**
13170
+ * optional float win_sum_min = 15;
13171
+ * @return {number}
13172
+ */
13173
+ proto.user.SegmentBetRuleRequest.prototype.getWinSumMin = function() {
13174
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0));
13175
+ };
13176
+
13177
+
13178
+ /**
13179
+ * @param {number} value
13180
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13181
+ */
13182
+ proto.user.SegmentBetRuleRequest.prototype.setWinSumMin = function(value) {
13183
+ return jspb.Message.setField(this, 15, value);
13184
+ };
13185
+
13186
+
13187
+ /**
13188
+ * Clears the field making it undefined.
13189
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13190
+ */
13191
+ proto.user.SegmentBetRuleRequest.prototype.clearWinSumMin = function() {
13192
+ return jspb.Message.setField(this, 15, undefined);
13193
+ };
13194
+
13195
+
13196
+ /**
13197
+ * Returns whether this field is set.
13198
+ * @return {boolean}
13199
+ */
13200
+ proto.user.SegmentBetRuleRequest.prototype.hasWinSumMin = function() {
13201
+ return jspb.Message.getField(this, 15) != null;
13202
+ };
13203
+
13204
+
13205
+ /**
13206
+ * optional float win_sum_max = 16;
13207
+ * @return {number}
13208
+ */
13209
+ proto.user.SegmentBetRuleRequest.prototype.getWinSumMax = function() {
13210
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
13211
+ };
13212
+
13213
+
13214
+ /**
13215
+ * @param {number} value
13216
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13217
+ */
13218
+ proto.user.SegmentBetRuleRequest.prototype.setWinSumMax = function(value) {
13219
+ return jspb.Message.setField(this, 16, value);
13220
+ };
13221
+
13222
+
13223
+ /**
13224
+ * Clears the field making it undefined.
13225
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13226
+ */
13227
+ proto.user.SegmentBetRuleRequest.prototype.clearWinSumMax = function() {
13228
+ return jspb.Message.setField(this, 16, undefined);
13229
+ };
13230
+
13231
+
13232
+ /**
13233
+ * Returns whether this field is set.
13234
+ * @return {boolean}
13235
+ */
13236
+ proto.user.SegmentBetRuleRequest.prototype.hasWinSumMax = function() {
13237
+ return jspb.Message.getField(this, 16) != null;
13238
+ };
13239
+
13240
+
13241
+ /**
13242
+ * optional float win_avg_min = 17;
13243
+ * @return {number}
13244
+ */
13245
+ proto.user.SegmentBetRuleRequest.prototype.getWinAvgMin = function() {
13246
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 17, 0.0));
13247
+ };
13248
+
13249
+
13250
+ /**
13251
+ * @param {number} value
13252
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13253
+ */
13254
+ proto.user.SegmentBetRuleRequest.prototype.setWinAvgMin = function(value) {
13255
+ return jspb.Message.setField(this, 17, value);
13256
+ };
13257
+
13258
+
13259
+ /**
13260
+ * Clears the field making it undefined.
13261
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13262
+ */
13263
+ proto.user.SegmentBetRuleRequest.prototype.clearWinAvgMin = function() {
13264
+ return jspb.Message.setField(this, 17, undefined);
13265
+ };
13266
+
13267
+
13268
+ /**
13269
+ * Returns whether this field is set.
13270
+ * @return {boolean}
13271
+ */
13272
+ proto.user.SegmentBetRuleRequest.prototype.hasWinAvgMin = function() {
13273
+ return jspb.Message.getField(this, 17) != null;
13274
+ };
13275
+
13276
+
13277
+ /**
13278
+ * optional float win_avg_max = 18;
13279
+ * @return {number}
13280
+ */
13281
+ proto.user.SegmentBetRuleRequest.prototype.getWinAvgMax = function() {
13282
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 18, 0.0));
13283
+ };
13284
+
13285
+
13286
+ /**
13287
+ * @param {number} value
13288
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13289
+ */
13290
+ proto.user.SegmentBetRuleRequest.prototype.setWinAvgMax = function(value) {
13291
+ return jspb.Message.setField(this, 18, value);
13292
+ };
13293
+
13294
+
13295
+ /**
13296
+ * Clears the field making it undefined.
13297
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13298
+ */
13299
+ proto.user.SegmentBetRuleRequest.prototype.clearWinAvgMax = function() {
13300
+ return jspb.Message.setField(this, 18, undefined);
13301
+ };
13302
+
13303
+
13304
+ /**
13305
+ * Returns whether this field is set.
13306
+ * @return {boolean}
13307
+ */
13308
+ proto.user.SegmentBetRuleRequest.prototype.hasWinAvgMax = function() {
13309
+ return jspb.Message.getField(this, 18) != null;
13310
+ };
13311
+
13312
+
13313
+
13314
+
13315
+
13316
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13317
+ /**
13318
+ * Creates an object representation of this proto.
13319
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13320
+ * Optional fields that are not set will be set to undefined.
13321
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13322
+ * For the list of reserved names please see:
13323
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13324
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13325
+ * JSPB instance for transitional soy proto support:
13326
+ * http://goto/soy-param-migration
13327
+ * @return {!Object}
13328
+ */
13329
+ proto.user.SegmentRuleItem.prototype.toObject = function(opt_includeInstance) {
13330
+ return proto.user.SegmentRuleItem.toObject(opt_includeInstance, this);
13331
+ };
13332
+
13333
+
13334
+ /**
13335
+ * Static version of the {@see toObject} method.
13336
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13337
+ * the JSPB instance for transitional soy proto support:
13338
+ * http://goto/soy-param-migration
13339
+ * @param {!proto.user.SegmentRuleItem} msg The msg instance to transform.
13340
+ * @return {!Object}
13341
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13342
+ */
13343
+ proto.user.SegmentRuleItem.toObject = function(includeInstance, msg) {
13344
+ var f, obj = {
13345
+ paymentRule: (f = msg.getPaymentRule()) && proto.user.SegmentPaymentRuleItem.toObject(includeInstance, f),
13346
+ betRule: (f = msg.getBetRule()) && proto.user.SegmentBetRuleItem.toObject(includeInstance, f)
13347
+ };
13348
+
13349
+ if (includeInstance) {
13350
+ obj.$jspbMessageInstance = msg;
13351
+ }
13352
+ return obj;
13353
+ };
13354
+ }
13355
+
13356
+
13357
+ /**
13358
+ * Deserializes binary data (in protobuf wire format).
13359
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13360
+ * @return {!proto.user.SegmentRuleItem}
13361
+ */
13362
+ proto.user.SegmentRuleItem.deserializeBinary = function(bytes) {
13363
+ var reader = new jspb.BinaryReader(bytes);
13364
+ var msg = new proto.user.SegmentRuleItem;
13365
+ return proto.user.SegmentRuleItem.deserializeBinaryFromReader(msg, reader);
13366
+ };
13367
+
13368
+
13369
+ /**
13370
+ * Deserializes binary data (in protobuf wire format) from the
13371
+ * given reader into the given message object.
13372
+ * @param {!proto.user.SegmentRuleItem} msg The message object to deserialize into.
13373
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13374
+ * @return {!proto.user.SegmentRuleItem}
13375
+ */
13376
+ proto.user.SegmentRuleItem.deserializeBinaryFromReader = function(msg, reader) {
13377
+ while (reader.nextField()) {
13378
+ if (reader.isEndGroup()) {
13379
+ break;
13380
+ }
13381
+ var field = reader.getFieldNumber();
13382
+ switch (field) {
13383
+ case 1:
13384
+ var value = new proto.user.SegmentPaymentRuleItem;
13385
+ reader.readMessage(value,proto.user.SegmentPaymentRuleItem.deserializeBinaryFromReader);
13386
+ msg.setPaymentRule(value);
13387
+ break;
13388
+ case 2:
13389
+ var value = new proto.user.SegmentBetRuleItem;
13390
+ reader.readMessage(value,proto.user.SegmentBetRuleItem.deserializeBinaryFromReader);
13391
+ msg.setBetRule(value);
13392
+ break;
13393
+ default:
13394
+ reader.skipField();
13395
+ break;
13396
+ }
13397
+ }
13398
+ return msg;
13399
+ };
13400
+
13401
+
13402
+ /**
13403
+ * Serializes the message to binary data (in protobuf wire format).
13404
+ * @return {!Uint8Array}
13405
+ */
13406
+ proto.user.SegmentRuleItem.prototype.serializeBinary = function() {
13407
+ var writer = new jspb.BinaryWriter();
13408
+ proto.user.SegmentRuleItem.serializeBinaryToWriter(this, writer);
13409
+ return writer.getResultBuffer();
13410
+ };
13411
+
13412
+
13413
+ /**
13414
+ * Serializes the given message to binary data (in protobuf wire
13415
+ * format), writing to the given BinaryWriter.
13416
+ * @param {!proto.user.SegmentRuleItem} message
13417
+ * @param {!jspb.BinaryWriter} writer
13418
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13419
+ */
13420
+ proto.user.SegmentRuleItem.serializeBinaryToWriter = function(message, writer) {
13421
+ var f = undefined;
13422
+ f = message.getPaymentRule();
13423
+ if (f != null) {
13424
+ writer.writeMessage(
13425
+ 1,
13426
+ f,
13427
+ proto.user.SegmentPaymentRuleItem.serializeBinaryToWriter
13428
+ );
13429
+ }
13430
+ f = message.getBetRule();
13431
+ if (f != null) {
13432
+ writer.writeMessage(
13433
+ 2,
13434
+ f,
13435
+ proto.user.SegmentBetRuleItem.serializeBinaryToWriter
13436
+ );
13437
+ }
13438
+ };
13439
+
13440
+
13441
+ /**
13442
+ * optional SegmentPaymentRuleItem payment_rule = 1;
13443
+ * @return {?proto.user.SegmentPaymentRuleItem}
13444
+ */
13445
+ proto.user.SegmentRuleItem.prototype.getPaymentRule = function() {
13446
+ return /** @type{?proto.user.SegmentPaymentRuleItem} */ (
13447
+ jspb.Message.getWrapperField(this, proto.user.SegmentPaymentRuleItem, 1));
13448
+ };
13449
+
13450
+
13451
+ /**
13452
+ * @param {?proto.user.SegmentPaymentRuleItem|undefined} value
13453
+ * @return {!proto.user.SegmentRuleItem} returns this
13454
+ */
13455
+ proto.user.SegmentRuleItem.prototype.setPaymentRule = function(value) {
13456
+ return jspb.Message.setWrapperField(this, 1, value);
13457
+ };
13458
+
13459
+
13460
+ /**
13461
+ * Clears the message field making it undefined.
13462
+ * @return {!proto.user.SegmentRuleItem} returns this
13463
+ */
13464
+ proto.user.SegmentRuleItem.prototype.clearPaymentRule = function() {
13465
+ return this.setPaymentRule(undefined);
13466
+ };
13467
+
13468
+
13469
+ /**
13470
+ * Returns whether this field is set.
13471
+ * @return {boolean}
13472
+ */
13473
+ proto.user.SegmentRuleItem.prototype.hasPaymentRule = function() {
13474
+ return jspb.Message.getField(this, 1) != null;
13475
+ };
13476
+
13477
+
13478
+ /**
13479
+ * optional SegmentBetRuleItem bet_rule = 2;
13480
+ * @return {?proto.user.SegmentBetRuleItem}
13481
+ */
13482
+ proto.user.SegmentRuleItem.prototype.getBetRule = function() {
13483
+ return /** @type{?proto.user.SegmentBetRuleItem} */ (
13484
+ jspb.Message.getWrapperField(this, proto.user.SegmentBetRuleItem, 2));
13485
+ };
13486
+
13487
+
13488
+ /**
13489
+ * @param {?proto.user.SegmentBetRuleItem|undefined} value
13490
+ * @return {!proto.user.SegmentRuleItem} returns this
13491
+ */
13492
+ proto.user.SegmentRuleItem.prototype.setBetRule = function(value) {
13493
+ return jspb.Message.setWrapperField(this, 2, value);
13494
+ };
13495
+
13496
+
13497
+ /**
13498
+ * Clears the message field making it undefined.
13499
+ * @return {!proto.user.SegmentRuleItem} returns this
13500
+ */
13501
+ proto.user.SegmentRuleItem.prototype.clearBetRule = function() {
13502
+ return this.setBetRule(undefined);
13503
+ };
13504
+
13505
+
13506
+ /**
13507
+ * Returns whether this field is set.
13508
+ * @return {boolean}
13509
+ */
13510
+ proto.user.SegmentRuleItem.prototype.hasBetRule = function() {
13511
+ return jspb.Message.getField(this, 2) != null;
13512
+ };
13513
+
13514
+
13515
+
13516
+ /**
13517
+ * List of repeated fields within this message type.
13518
+ * @private {!Array<number>}
13519
+ * @const
13520
+ */
13521
+ proto.user.SegmentPaymentRuleItem.repeatedFields_ = [11,12];
13522
+
13523
+
13524
+
13525
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13526
+ /**
13527
+ * Creates an object representation of this proto.
13528
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13529
+ * Optional fields that are not set will be set to undefined.
13530
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13531
+ * For the list of reserved names please see:
13532
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13533
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13534
+ * JSPB instance for transitional soy proto support:
13535
+ * http://goto/soy-param-migration
13536
+ * @return {!Object}
13537
+ */
13538
+ proto.user.SegmentPaymentRuleItem.prototype.toObject = function(opt_includeInstance) {
13539
+ return proto.user.SegmentPaymentRuleItem.toObject(opt_includeInstance, this);
13540
+ };
13541
+
13542
+
13543
+ /**
13544
+ * Static version of the {@see toObject} method.
13545
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13546
+ * the JSPB instance for transitional soy proto support:
13547
+ * http://goto/soy-param-migration
13548
+ * @param {!proto.user.SegmentPaymentRuleItem} msg The msg instance to transform.
13549
+ * @return {!Object}
13550
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13551
+ */
13552
+ proto.user.SegmentPaymentRuleItem.toObject = function(includeInstance, msg) {
13553
+ var f, obj = {
13554
+ depositAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
13555
+ depositAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
13556
+ ftdAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
13557
+ ftdAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
13558
+ depositCountMin: jspb.Message.getFieldWithDefault(msg, 5, 0),
13559
+ depositCountMax: jspb.Message.getFieldWithDefault(msg, 6, 0),
13560
+ depositSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
13561
+ depositSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
13562
+ depositAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
13563
+ depositAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
13564
+ paymentProvidersList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
13565
+ paymentTypesList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
13566
+ segmentId: jspb.Message.getFieldWithDefault(msg, 13, 0),
13567
+ currency: jspb.Message.getFieldWithDefault(msg, 14, "")
13568
+ };
13569
+
13570
+ if (includeInstance) {
13571
+ obj.$jspbMessageInstance = msg;
13572
+ }
13573
+ return obj;
13574
+ };
13575
+ }
13576
+
13577
+
13578
+ /**
13579
+ * Deserializes binary data (in protobuf wire format).
13580
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13581
+ * @return {!proto.user.SegmentPaymentRuleItem}
13582
+ */
13583
+ proto.user.SegmentPaymentRuleItem.deserializeBinary = function(bytes) {
13584
+ var reader = new jspb.BinaryReader(bytes);
13585
+ var msg = new proto.user.SegmentPaymentRuleItem;
13586
+ return proto.user.SegmentPaymentRuleItem.deserializeBinaryFromReader(msg, reader);
13587
+ };
13588
+
13589
+
13590
+ /**
13591
+ * Deserializes binary data (in protobuf wire format) from the
13592
+ * given reader into the given message object.
13593
+ * @param {!proto.user.SegmentPaymentRuleItem} msg The message object to deserialize into.
13594
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13595
+ * @return {!proto.user.SegmentPaymentRuleItem}
13596
+ */
13597
+ proto.user.SegmentPaymentRuleItem.deserializeBinaryFromReader = function(msg, reader) {
13598
+ while (reader.nextField()) {
13599
+ if (reader.isEndGroup()) {
13600
+ break;
13601
+ }
13602
+ var field = reader.getFieldNumber();
13603
+ switch (field) {
13604
+ case 1:
13605
+ var value = /** @type {number} */ (reader.readFloat());
13606
+ msg.setDepositAmountMin(value);
13607
+ break;
13608
+ case 2:
13609
+ var value = /** @type {number} */ (reader.readFloat());
13610
+ msg.setDepositAmountMax(value);
13611
+ break;
13612
+ case 3:
13613
+ var value = /** @type {number} */ (reader.readFloat());
13614
+ msg.setFtdAmountMin(value);
13615
+ break;
13616
+ case 4:
13617
+ var value = /** @type {number} */ (reader.readFloat());
13618
+ msg.setFtdAmountMax(value);
13619
+ break;
13620
+ case 5:
13621
+ var value = /** @type {number} */ (reader.readInt32());
13622
+ msg.setDepositCountMin(value);
13623
+ break;
13624
+ case 6:
13625
+ var value = /** @type {number} */ (reader.readInt32());
13626
+ msg.setDepositCountMax(value);
13627
+ break;
13628
+ case 7:
13629
+ var value = /** @type {number} */ (reader.readFloat());
13630
+ msg.setDepositSumMin(value);
13631
+ break;
13632
+ case 8:
13633
+ var value = /** @type {number} */ (reader.readFloat());
13634
+ msg.setDepositSumMax(value);
13635
+ break;
13636
+ case 9:
13637
+ var value = /** @type {number} */ (reader.readFloat());
13638
+ msg.setDepositAvgMin(value);
13639
+ break;
13640
+ case 10:
13641
+ var value = /** @type {number} */ (reader.readFloat());
13642
+ msg.setDepositAvgMax(value);
13643
+ break;
13644
+ case 11:
13645
+ var value = /** @type {string} */ (reader.readString());
13646
+ msg.addPaymentProviders(value);
13647
+ break;
13648
+ case 12:
13649
+ var value = /** @type {string} */ (reader.readString());
13650
+ msg.addPaymentTypes(value);
13651
+ break;
13652
+ case 13:
13653
+ var value = /** @type {number} */ (reader.readInt32());
13654
+ msg.setSegmentId(value);
13655
+ break;
13656
+ case 14:
13657
+ var value = /** @type {string} */ (reader.readString());
13658
+ msg.setCurrency(value);
13659
+ break;
13660
+ default:
13661
+ reader.skipField();
13662
+ break;
13663
+ }
13664
+ }
13665
+ return msg;
13666
+ };
13667
+
13668
+
13669
+ /**
13670
+ * Serializes the message to binary data (in protobuf wire format).
13671
+ * @return {!Uint8Array}
13672
+ */
13673
+ proto.user.SegmentPaymentRuleItem.prototype.serializeBinary = function() {
13674
+ var writer = new jspb.BinaryWriter();
13675
+ proto.user.SegmentPaymentRuleItem.serializeBinaryToWriter(this, writer);
13676
+ return writer.getResultBuffer();
13677
+ };
13678
+
13679
+
13680
+ /**
13681
+ * Serializes the given message to binary data (in protobuf wire
13682
+ * format), writing to the given BinaryWriter.
13683
+ * @param {!proto.user.SegmentPaymentRuleItem} message
13684
+ * @param {!jspb.BinaryWriter} writer
13685
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13686
+ */
13687
+ proto.user.SegmentPaymentRuleItem.serializeBinaryToWriter = function(message, writer) {
13688
+ var f = undefined;
13689
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
13690
+ if (f != null) {
13691
+ writer.writeFloat(
13692
+ 1,
13693
+ f
13694
+ );
13695
+ }
13696
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
13697
+ if (f != null) {
13698
+ writer.writeFloat(
13699
+ 2,
13700
+ f
13701
+ );
13702
+ }
13703
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
13704
+ if (f != null) {
13705
+ writer.writeFloat(
13706
+ 3,
13707
+ f
13708
+ );
13709
+ }
13710
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
13711
+ if (f != null) {
13712
+ writer.writeFloat(
13713
+ 4,
13714
+ f
13715
+ );
13716
+ }
13717
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
13718
+ if (f != null) {
13719
+ writer.writeInt32(
13720
+ 5,
13721
+ f
13722
+ );
13723
+ }
13724
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
13725
+ if (f != null) {
13726
+ writer.writeInt32(
13727
+ 6,
13728
+ f
13729
+ );
13730
+ }
13731
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
13732
+ if (f != null) {
13733
+ writer.writeFloat(
13734
+ 7,
13735
+ f
13736
+ );
13737
+ }
13738
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
13739
+ if (f != null) {
13740
+ writer.writeFloat(
13741
+ 8,
13742
+ f
13743
+ );
13744
+ }
13745
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
13746
+ if (f != null) {
13747
+ writer.writeFloat(
13748
+ 9,
13749
+ f
13750
+ );
13751
+ }
13752
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
13753
+ if (f != null) {
13754
+ writer.writeFloat(
13755
+ 10,
13756
+ f
13757
+ );
13758
+ }
13759
+ f = message.getPaymentProvidersList();
13760
+ if (f.length > 0) {
13761
+ writer.writeRepeatedString(
13762
+ 11,
13763
+ f
13764
+ );
13765
+ }
13766
+ f = message.getPaymentTypesList();
13767
+ if (f.length > 0) {
13768
+ writer.writeRepeatedString(
13769
+ 12,
13770
+ f
13771
+ );
13772
+ }
13773
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
13774
+ if (f != null) {
13775
+ writer.writeInt32(
13776
+ 13,
13777
+ f
13778
+ );
13779
+ }
13780
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
13781
+ if (f != null) {
13782
+ writer.writeString(
13783
+ 14,
13784
+ f
13785
+ );
13786
+ }
13787
+ };
13788
+
13789
+
13790
+ /**
13791
+ * optional float deposit_amount_min = 1;
13792
+ * @return {number}
13793
+ */
13794
+ proto.user.SegmentPaymentRuleItem.prototype.getDepositAmountMin = function() {
13795
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
13796
+ };
13797
+
13798
+
13799
+ /**
13800
+ * @param {number} value
13801
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13802
+ */
13803
+ proto.user.SegmentPaymentRuleItem.prototype.setDepositAmountMin = function(value) {
13804
+ return jspb.Message.setField(this, 1, value);
13805
+ };
13806
+
13807
+
13808
+ /**
13809
+ * Clears the field making it undefined.
13810
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13811
+ */
13812
+ proto.user.SegmentPaymentRuleItem.prototype.clearDepositAmountMin = function() {
13813
+ return jspb.Message.setField(this, 1, undefined);
13814
+ };
13815
+
13816
+
13817
+ /**
13818
+ * Returns whether this field is set.
13819
+ * @return {boolean}
13820
+ */
13821
+ proto.user.SegmentPaymentRuleItem.prototype.hasDepositAmountMin = function() {
13822
+ return jspb.Message.getField(this, 1) != null;
13823
+ };
13824
+
13825
+
13826
+ /**
13827
+ * optional float deposit_amount_max = 2;
13828
+ * @return {number}
13829
+ */
13830
+ proto.user.SegmentPaymentRuleItem.prototype.getDepositAmountMax = function() {
13831
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
13832
+ };
13833
+
13834
+
13835
+ /**
13836
+ * @param {number} value
13837
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13838
+ */
13839
+ proto.user.SegmentPaymentRuleItem.prototype.setDepositAmountMax = function(value) {
13840
+ return jspb.Message.setField(this, 2, value);
13841
+ };
13842
+
13843
+
13844
+ /**
13845
+ * Clears the field making it undefined.
13846
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13847
+ */
13848
+ proto.user.SegmentPaymentRuleItem.prototype.clearDepositAmountMax = function() {
13849
+ return jspb.Message.setField(this, 2, undefined);
13850
+ };
13851
+
13852
+
13853
+ /**
13854
+ * Returns whether this field is set.
13855
+ * @return {boolean}
13856
+ */
13857
+ proto.user.SegmentPaymentRuleItem.prototype.hasDepositAmountMax = function() {
13858
+ return jspb.Message.getField(this, 2) != null;
13859
+ };
13860
+
13861
+
13862
+ /**
13863
+ * optional float ftd_amount_min = 3;
13864
+ * @return {number}
13865
+ */
13866
+ proto.user.SegmentPaymentRuleItem.prototype.getFtdAmountMin = function() {
13867
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
13868
+ };
13869
+
13870
+
13871
+ /**
13872
+ * @param {number} value
13873
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13874
+ */
13875
+ proto.user.SegmentPaymentRuleItem.prototype.setFtdAmountMin = function(value) {
13876
+ return jspb.Message.setField(this, 3, value);
13877
+ };
13878
+
13879
+
13880
+ /**
13881
+ * Clears the field making it undefined.
13882
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13883
+ */
13884
+ proto.user.SegmentPaymentRuleItem.prototype.clearFtdAmountMin = function() {
13885
+ return jspb.Message.setField(this, 3, undefined);
13886
+ };
13887
+
13888
+
13889
+ /**
13890
+ * Returns whether this field is set.
13891
+ * @return {boolean}
13892
+ */
13893
+ proto.user.SegmentPaymentRuleItem.prototype.hasFtdAmountMin = function() {
13894
+ return jspb.Message.getField(this, 3) != null;
13895
+ };
13896
+
13897
+
13898
+ /**
13899
+ * optional float ftd_amount_max = 4;
13900
+ * @return {number}
13901
+ */
13902
+ proto.user.SegmentPaymentRuleItem.prototype.getFtdAmountMax = function() {
13903
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
13904
+ };
13905
+
13906
+
13907
+ /**
13908
+ * @param {number} value
13909
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13910
+ */
13911
+ proto.user.SegmentPaymentRuleItem.prototype.setFtdAmountMax = function(value) {
13912
+ return jspb.Message.setField(this, 4, value);
13913
+ };
13914
+
13915
+
13916
+ /**
13917
+ * Clears the field making it undefined.
13918
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13919
+ */
13920
+ proto.user.SegmentPaymentRuleItem.prototype.clearFtdAmountMax = function() {
13921
+ return jspb.Message.setField(this, 4, undefined);
13922
+ };
13923
+
13924
+
13925
+ /**
13926
+ * Returns whether this field is set.
13927
+ * @return {boolean}
13928
+ */
13929
+ proto.user.SegmentPaymentRuleItem.prototype.hasFtdAmountMax = function() {
13930
+ return jspb.Message.getField(this, 4) != null;
13931
+ };
13932
+
13933
+
13934
+ /**
13935
+ * optional int32 deposit_count_min = 5;
13936
+ * @return {number}
13937
+ */
13938
+ proto.user.SegmentPaymentRuleItem.prototype.getDepositCountMin = function() {
13939
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
13940
+ };
13941
+
13942
+
13943
+ /**
13944
+ * @param {number} value
13945
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13946
+ */
13947
+ proto.user.SegmentPaymentRuleItem.prototype.setDepositCountMin = function(value) {
13948
+ return jspb.Message.setField(this, 5, value);
13949
+ };
13950
+
13951
+
13952
+ /**
13953
+ * Clears the field making it undefined.
13954
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13955
+ */
13956
+ proto.user.SegmentPaymentRuleItem.prototype.clearDepositCountMin = function() {
13957
+ return jspb.Message.setField(this, 5, undefined);
13958
+ };
13959
+
13960
+
13961
+ /**
13962
+ * Returns whether this field is set.
13963
+ * @return {boolean}
13964
+ */
13965
+ proto.user.SegmentPaymentRuleItem.prototype.hasDepositCountMin = function() {
13966
+ return jspb.Message.getField(this, 5) != null;
13967
+ };
13968
+
13969
+
13970
+ /**
13971
+ * optional int32 deposit_count_max = 6;
13972
+ * @return {number}
13973
+ */
13974
+ proto.user.SegmentPaymentRuleItem.prototype.getDepositCountMax = function() {
13975
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
13976
+ };
13977
+
13978
+
13979
+ /**
13980
+ * @param {number} value
13981
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13982
+ */
13983
+ proto.user.SegmentPaymentRuleItem.prototype.setDepositCountMax = function(value) {
13984
+ return jspb.Message.setField(this, 6, value);
13985
+ };
13986
+
13987
+
13988
+ /**
13989
+ * Clears the field making it undefined.
13990
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
13991
+ */
13992
+ proto.user.SegmentPaymentRuleItem.prototype.clearDepositCountMax = function() {
13993
+ return jspb.Message.setField(this, 6, undefined);
13994
+ };
13995
+
13996
+
13997
+ /**
13998
+ * Returns whether this field is set.
13999
+ * @return {boolean}
14000
+ */
14001
+ proto.user.SegmentPaymentRuleItem.prototype.hasDepositCountMax = function() {
14002
+ return jspb.Message.getField(this, 6) != null;
14003
+ };
14004
+
14005
+
14006
+ /**
14007
+ * optional float deposit_sum_min = 7;
14008
+ * @return {number}
14009
+ */
14010
+ proto.user.SegmentPaymentRuleItem.prototype.getDepositSumMin = function() {
14011
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
14012
+ };
14013
+
14014
+
14015
+ /**
14016
+ * @param {number} value
14017
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14018
+ */
14019
+ proto.user.SegmentPaymentRuleItem.prototype.setDepositSumMin = function(value) {
14020
+ return jspb.Message.setField(this, 7, value);
14021
+ };
14022
+
14023
+
14024
+ /**
14025
+ * Clears the field making it undefined.
14026
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14027
+ */
14028
+ proto.user.SegmentPaymentRuleItem.prototype.clearDepositSumMin = function() {
14029
+ return jspb.Message.setField(this, 7, undefined);
14030
+ };
14031
+
14032
+
14033
+ /**
14034
+ * Returns whether this field is set.
14035
+ * @return {boolean}
14036
+ */
14037
+ proto.user.SegmentPaymentRuleItem.prototype.hasDepositSumMin = function() {
14038
+ return jspb.Message.getField(this, 7) != null;
14039
+ };
14040
+
14041
+
14042
+ /**
14043
+ * optional float deposit_sum_max = 8;
14044
+ * @return {number}
14045
+ */
14046
+ proto.user.SegmentPaymentRuleItem.prototype.getDepositSumMax = function() {
14047
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
14048
+ };
14049
+
14050
+
14051
+ /**
14052
+ * @param {number} value
14053
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14054
+ */
14055
+ proto.user.SegmentPaymentRuleItem.prototype.setDepositSumMax = function(value) {
14056
+ return jspb.Message.setField(this, 8, value);
14057
+ };
14058
+
14059
+
14060
+ /**
14061
+ * Clears the field making it undefined.
14062
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14063
+ */
14064
+ proto.user.SegmentPaymentRuleItem.prototype.clearDepositSumMax = function() {
14065
+ return jspb.Message.setField(this, 8, undefined);
14066
+ };
14067
+
14068
+
14069
+ /**
14070
+ * Returns whether this field is set.
14071
+ * @return {boolean}
14072
+ */
14073
+ proto.user.SegmentPaymentRuleItem.prototype.hasDepositSumMax = function() {
14074
+ return jspb.Message.getField(this, 8) != null;
14075
+ };
14076
+
14077
+
14078
+ /**
14079
+ * optional float deposit_avg_min = 9;
14080
+ * @return {number}
14081
+ */
14082
+ proto.user.SegmentPaymentRuleItem.prototype.getDepositAvgMin = function() {
14083
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
14084
+ };
14085
+
14086
+
14087
+ /**
14088
+ * @param {number} value
14089
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14090
+ */
14091
+ proto.user.SegmentPaymentRuleItem.prototype.setDepositAvgMin = function(value) {
14092
+ return jspb.Message.setField(this, 9, value);
14093
+ };
14094
+
14095
+
14096
+ /**
14097
+ * Clears the field making it undefined.
14098
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14099
+ */
14100
+ proto.user.SegmentPaymentRuleItem.prototype.clearDepositAvgMin = function() {
14101
+ return jspb.Message.setField(this, 9, undefined);
14102
+ };
14103
+
14104
+
14105
+ /**
14106
+ * Returns whether this field is set.
14107
+ * @return {boolean}
14108
+ */
14109
+ proto.user.SegmentPaymentRuleItem.prototype.hasDepositAvgMin = function() {
14110
+ return jspb.Message.getField(this, 9) != null;
14111
+ };
14112
+
14113
+
14114
+ /**
14115
+ * optional float deposit_avg_max = 10;
14116
+ * @return {number}
14117
+ */
14118
+ proto.user.SegmentPaymentRuleItem.prototype.getDepositAvgMax = function() {
14119
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
14120
+ };
14121
+
14122
+
14123
+ /**
14124
+ * @param {number} value
14125
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14126
+ */
14127
+ proto.user.SegmentPaymentRuleItem.prototype.setDepositAvgMax = function(value) {
14128
+ return jspb.Message.setField(this, 10, value);
14129
+ };
14130
+
14131
+
14132
+ /**
14133
+ * Clears the field making it undefined.
14134
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14135
+ */
14136
+ proto.user.SegmentPaymentRuleItem.prototype.clearDepositAvgMax = function() {
14137
+ return jspb.Message.setField(this, 10, undefined);
14138
+ };
14139
+
14140
+
14141
+ /**
14142
+ * Returns whether this field is set.
14143
+ * @return {boolean}
14144
+ */
14145
+ proto.user.SegmentPaymentRuleItem.prototype.hasDepositAvgMax = function() {
14146
+ return jspb.Message.getField(this, 10) != null;
14147
+ };
14148
+
14149
+
14150
+ /**
14151
+ * repeated string payment_providers = 11;
14152
+ * @return {!Array<string>}
14153
+ */
14154
+ proto.user.SegmentPaymentRuleItem.prototype.getPaymentProvidersList = function() {
14155
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
14156
+ };
14157
+
14158
+
14159
+ /**
14160
+ * @param {!Array<string>} value
14161
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14162
+ */
14163
+ proto.user.SegmentPaymentRuleItem.prototype.setPaymentProvidersList = function(value) {
14164
+ return jspb.Message.setField(this, 11, value || []);
14165
+ };
14166
+
14167
+
14168
+ /**
14169
+ * @param {string} value
14170
+ * @param {number=} opt_index
14171
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14172
+ */
14173
+ proto.user.SegmentPaymentRuleItem.prototype.addPaymentProviders = function(value, opt_index) {
14174
+ return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
14175
+ };
14176
+
14177
+
14178
+ /**
14179
+ * Clears the list making it empty but non-null.
14180
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14181
+ */
14182
+ proto.user.SegmentPaymentRuleItem.prototype.clearPaymentProvidersList = function() {
14183
+ return this.setPaymentProvidersList([]);
14184
+ };
14185
+
14186
+
14187
+ /**
14188
+ * repeated string payment_types = 12;
14189
+ * @return {!Array<string>}
14190
+ */
14191
+ proto.user.SegmentPaymentRuleItem.prototype.getPaymentTypesList = function() {
14192
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 12));
14193
+ };
14194
+
14195
+
14196
+ /**
14197
+ * @param {!Array<string>} value
14198
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14199
+ */
14200
+ proto.user.SegmentPaymentRuleItem.prototype.setPaymentTypesList = function(value) {
14201
+ return jspb.Message.setField(this, 12, value || []);
14202
+ };
14203
+
14204
+
14205
+ /**
14206
+ * @param {string} value
14207
+ * @param {number=} opt_index
14208
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14209
+ */
14210
+ proto.user.SegmentPaymentRuleItem.prototype.addPaymentTypes = function(value, opt_index) {
14211
+ return jspb.Message.addToRepeatedField(this, 12, value, opt_index);
14212
+ };
14213
+
14214
+
14215
+ /**
14216
+ * Clears the list making it empty but non-null.
14217
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14218
+ */
14219
+ proto.user.SegmentPaymentRuleItem.prototype.clearPaymentTypesList = function() {
14220
+ return this.setPaymentTypesList([]);
14221
+ };
14222
+
14223
+
14224
+ /**
14225
+ * optional int32 segment_id = 13;
14226
+ * @return {number}
14227
+ */
14228
+ proto.user.SegmentPaymentRuleItem.prototype.getSegmentId = function() {
14229
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
14230
+ };
14231
+
14232
+
14233
+ /**
14234
+ * @param {number} value
14235
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14236
+ */
14237
+ proto.user.SegmentPaymentRuleItem.prototype.setSegmentId = function(value) {
14238
+ return jspb.Message.setField(this, 13, value);
14239
+ };
14240
+
14241
+
14242
+ /**
14243
+ * Clears the field making it undefined.
14244
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14245
+ */
14246
+ proto.user.SegmentPaymentRuleItem.prototype.clearSegmentId = function() {
14247
+ return jspb.Message.setField(this, 13, undefined);
14248
+ };
14249
+
14250
+
14251
+ /**
14252
+ * Returns whether this field is set.
14253
+ * @return {boolean}
14254
+ */
14255
+ proto.user.SegmentPaymentRuleItem.prototype.hasSegmentId = function() {
14256
+ return jspb.Message.getField(this, 13) != null;
14257
+ };
14258
+
14259
+
14260
+ /**
14261
+ * optional string currency = 14;
14262
+ * @return {string}
14263
+ */
14264
+ proto.user.SegmentPaymentRuleItem.prototype.getCurrency = function() {
14265
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
14266
+ };
14267
+
14268
+
14269
+ /**
14270
+ * @param {string} value
14271
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14272
+ */
14273
+ proto.user.SegmentPaymentRuleItem.prototype.setCurrency = function(value) {
14274
+ return jspb.Message.setField(this, 14, value);
14275
+ };
14276
+
14277
+
14278
+ /**
14279
+ * Clears the field making it undefined.
14280
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14281
+ */
14282
+ proto.user.SegmentPaymentRuleItem.prototype.clearCurrency = function() {
14283
+ return jspb.Message.setField(this, 14, undefined);
14284
+ };
14285
+
14286
+
14287
+ /**
14288
+ * Returns whether this field is set.
14289
+ * @return {boolean}
14290
+ */
14291
+ proto.user.SegmentPaymentRuleItem.prototype.hasCurrency = function() {
14292
+ return jspb.Message.getField(this, 14) != null;
14293
+ };
14294
+
14295
+
14296
+
14297
+
14298
+
14299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14300
+ /**
14301
+ * Creates an object representation of this proto.
14302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14303
+ * Optional fields that are not set will be set to undefined.
14304
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14305
+ * For the list of reserved names please see:
14306
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14307
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14308
+ * JSPB instance for transitional soy proto support:
14309
+ * http://goto/soy-param-migration
14310
+ * @return {!Object}
14311
+ */
14312
+ proto.user.SegmentBetRuleItem.prototype.toObject = function(opt_includeInstance) {
14313
+ return proto.user.SegmentBetRuleItem.toObject(opt_includeInstance, this);
14314
+ };
14315
+
14316
+
14317
+ /**
14318
+ * Static version of the {@see toObject} method.
14319
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14320
+ * the JSPB instance for transitional soy proto support:
14321
+ * http://goto/soy-param-migration
14322
+ * @param {!proto.user.SegmentBetRuleItem} msg The msg instance to transform.
14323
+ * @return {!Object}
14324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14325
+ */
14326
+ proto.user.SegmentBetRuleItem.toObject = function(includeInstance, msg) {
14327
+ var f, obj = {
14328
+ segmentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
14329
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
14330
+ betAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
14331
+ betAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
14332
+ betCountMin: jspb.Message.getFieldWithDefault(msg, 5, 0),
14333
+ betCountMax: jspb.Message.getFieldWithDefault(msg, 6, 0),
14334
+ betSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
14335
+ betSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
14336
+ betAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
14337
+ betAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
14338
+ winAmountMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
14339
+ winAmountMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
14340
+ winCountMin: jspb.Message.getFieldWithDefault(msg, 13, 0),
14341
+ winCountMax: jspb.Message.getFieldWithDefault(msg, 14, 0),
14342
+ winSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
14343
+ winSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
14344
+ winAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
14345
+ winAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0)
14346
+ };
14347
+
14348
+ if (includeInstance) {
14349
+ obj.$jspbMessageInstance = msg;
14350
+ }
14351
+ return obj;
14352
+ };
14353
+ }
14354
+
14355
+
14356
+ /**
14357
+ * Deserializes binary data (in protobuf wire format).
14358
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14359
+ * @return {!proto.user.SegmentBetRuleItem}
14360
+ */
14361
+ proto.user.SegmentBetRuleItem.deserializeBinary = function(bytes) {
14362
+ var reader = new jspb.BinaryReader(bytes);
14363
+ var msg = new proto.user.SegmentBetRuleItem;
14364
+ return proto.user.SegmentBetRuleItem.deserializeBinaryFromReader(msg, reader);
14365
+ };
14366
+
14367
+
14368
+ /**
14369
+ * Deserializes binary data (in protobuf wire format) from the
14370
+ * given reader into the given message object.
14371
+ * @param {!proto.user.SegmentBetRuleItem} msg The message object to deserialize into.
14372
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14373
+ * @return {!proto.user.SegmentBetRuleItem}
14374
+ */
14375
+ proto.user.SegmentBetRuleItem.deserializeBinaryFromReader = function(msg, reader) {
14376
+ while (reader.nextField()) {
14377
+ if (reader.isEndGroup()) {
14378
+ break;
14379
+ }
14380
+ var field = reader.getFieldNumber();
14381
+ switch (field) {
14382
+ case 1:
14383
+ var value = /** @type {number} */ (reader.readInt32());
14384
+ msg.setSegmentId(value);
14385
+ break;
14386
+ case 2:
14387
+ var value = /** @type {string} */ (reader.readString());
14388
+ msg.setCurrency(value);
14389
+ break;
14390
+ case 3:
14391
+ var value = /** @type {number} */ (reader.readFloat());
14392
+ msg.setBetAmountMin(value);
14393
+ break;
14394
+ case 4:
14395
+ var value = /** @type {number} */ (reader.readFloat());
14396
+ msg.setBetAmountMax(value);
14397
+ break;
14398
+ case 5:
14399
+ var value = /** @type {number} */ (reader.readInt32());
14400
+ msg.setBetCountMin(value);
14401
+ break;
14402
+ case 6:
14403
+ var value = /** @type {number} */ (reader.readInt32());
14404
+ msg.setBetCountMax(value);
14405
+ break;
14406
+ case 7:
14407
+ var value = /** @type {number} */ (reader.readFloat());
14408
+ msg.setBetSumMin(value);
14409
+ break;
14410
+ case 8:
14411
+ var value = /** @type {number} */ (reader.readFloat());
14412
+ msg.setBetSumMax(value);
14413
+ break;
14414
+ case 9:
14415
+ var value = /** @type {number} */ (reader.readFloat());
14416
+ msg.setBetAvgMin(value);
14417
+ break;
14418
+ case 10:
14419
+ var value = /** @type {number} */ (reader.readFloat());
14420
+ msg.setBetAvgMax(value);
14421
+ break;
14422
+ case 11:
14423
+ var value = /** @type {number} */ (reader.readFloat());
14424
+ msg.setWinAmountMin(value);
14425
+ break;
14426
+ case 12:
14427
+ var value = /** @type {number} */ (reader.readFloat());
14428
+ msg.setWinAmountMax(value);
14429
+ break;
14430
+ case 13:
14431
+ var value = /** @type {number} */ (reader.readInt32());
14432
+ msg.setWinCountMin(value);
14433
+ break;
14434
+ case 14:
14435
+ var value = /** @type {number} */ (reader.readInt32());
14436
+ msg.setWinCountMax(value);
14437
+ break;
14438
+ case 15:
14439
+ var value = /** @type {number} */ (reader.readFloat());
14440
+ msg.setWinSumMin(value);
14441
+ break;
14442
+ case 16:
14443
+ var value = /** @type {number} */ (reader.readFloat());
14444
+ msg.setWinSumMax(value);
14445
+ break;
14446
+ case 17:
14447
+ var value = /** @type {number} */ (reader.readFloat());
14448
+ msg.setWinAvgMin(value);
14449
+ break;
14450
+ case 18:
14451
+ var value = /** @type {number} */ (reader.readFloat());
14452
+ msg.setWinAvgMax(value);
14453
+ break;
14454
+ default:
14455
+ reader.skipField();
14456
+ break;
14457
+ }
14458
+ }
14459
+ return msg;
14460
+ };
14461
+
14462
+
14463
+ /**
14464
+ * Serializes the message to binary data (in protobuf wire format).
14465
+ * @return {!Uint8Array}
14466
+ */
14467
+ proto.user.SegmentBetRuleItem.prototype.serializeBinary = function() {
14468
+ var writer = new jspb.BinaryWriter();
14469
+ proto.user.SegmentBetRuleItem.serializeBinaryToWriter(this, writer);
14470
+ return writer.getResultBuffer();
14471
+ };
14472
+
14473
+
14474
+ /**
14475
+ * Serializes the given message to binary data (in protobuf wire
14476
+ * format), writing to the given BinaryWriter.
14477
+ * @param {!proto.user.SegmentBetRuleItem} message
14478
+ * @param {!jspb.BinaryWriter} writer
14479
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14480
+ */
14481
+ proto.user.SegmentBetRuleItem.serializeBinaryToWriter = function(message, writer) {
14482
+ var f = undefined;
14483
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
14484
+ if (f != null) {
14485
+ writer.writeInt32(
14486
+ 1,
14487
+ f
14488
+ );
14489
+ }
14490
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
14491
+ if (f != null) {
14492
+ writer.writeString(
14493
+ 2,
14494
+ f
14495
+ );
14496
+ }
14497
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
14498
+ if (f != null) {
14499
+ writer.writeFloat(
14500
+ 3,
14501
+ f
14502
+ );
14503
+ }
14504
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
14505
+ if (f != null) {
14506
+ writer.writeFloat(
14507
+ 4,
14508
+ f
14509
+ );
14510
+ }
14511
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
14512
+ if (f != null) {
14513
+ writer.writeInt32(
14514
+ 5,
14515
+ f
14516
+ );
14517
+ }
14518
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
14519
+ if (f != null) {
14520
+ writer.writeInt32(
14521
+ 6,
14522
+ f
14523
+ );
14524
+ }
14525
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
14526
+ if (f != null) {
14527
+ writer.writeFloat(
14528
+ 7,
14529
+ f
14530
+ );
14531
+ }
14532
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
14533
+ if (f != null) {
14534
+ writer.writeFloat(
14535
+ 8,
14536
+ f
14537
+ );
14538
+ }
14539
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
14540
+ if (f != null) {
14541
+ writer.writeFloat(
14542
+ 9,
14543
+ f
14544
+ );
14545
+ }
14546
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
14547
+ if (f != null) {
14548
+ writer.writeFloat(
14549
+ 10,
14550
+ f
14551
+ );
14552
+ }
14553
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
14554
+ if (f != null) {
14555
+ writer.writeFloat(
14556
+ 11,
14557
+ f
14558
+ );
14559
+ }
14560
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
14561
+ if (f != null) {
14562
+ writer.writeFloat(
14563
+ 12,
14564
+ f
14565
+ );
14566
+ }
14567
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
14568
+ if (f != null) {
14569
+ writer.writeInt32(
14570
+ 13,
14571
+ f
14572
+ );
14573
+ }
14574
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
14575
+ if (f != null) {
14576
+ writer.writeInt32(
14577
+ 14,
14578
+ f
14579
+ );
14580
+ }
14581
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
14582
+ if (f != null) {
14583
+ writer.writeFloat(
14584
+ 15,
14585
+ f
14586
+ );
14587
+ }
14588
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
14589
+ if (f != null) {
14590
+ writer.writeFloat(
14591
+ 16,
14592
+ f
14593
+ );
14594
+ }
14595
+ f = /** @type {number} */ (jspb.Message.getField(message, 17));
14596
+ if (f != null) {
14597
+ writer.writeFloat(
14598
+ 17,
14599
+ f
14600
+ );
14601
+ }
14602
+ f = /** @type {number} */ (jspb.Message.getField(message, 18));
14603
+ if (f != null) {
14604
+ writer.writeFloat(
14605
+ 18,
14606
+ f
14607
+ );
14608
+ }
14609
+ };
14610
+
14611
+
14612
+ /**
14613
+ * optional int32 segment_id = 1;
14614
+ * @return {number}
14615
+ */
14616
+ proto.user.SegmentBetRuleItem.prototype.getSegmentId = function() {
14617
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
14618
+ };
14619
+
14620
+
14621
+ /**
14622
+ * @param {number} value
14623
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14624
+ */
14625
+ proto.user.SegmentBetRuleItem.prototype.setSegmentId = function(value) {
14626
+ return jspb.Message.setField(this, 1, value);
14627
+ };
14628
+
14629
+
14630
+ /**
14631
+ * Clears the field making it undefined.
14632
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14633
+ */
14634
+ proto.user.SegmentBetRuleItem.prototype.clearSegmentId = function() {
14635
+ return jspb.Message.setField(this, 1, undefined);
14636
+ };
14637
+
14638
+
14639
+ /**
14640
+ * Returns whether this field is set.
14641
+ * @return {boolean}
14642
+ */
14643
+ proto.user.SegmentBetRuleItem.prototype.hasSegmentId = function() {
14644
+ return jspb.Message.getField(this, 1) != null;
14645
+ };
14646
+
14647
+
14648
+ /**
14649
+ * optional string currency = 2;
14650
+ * @return {string}
14651
+ */
14652
+ proto.user.SegmentBetRuleItem.prototype.getCurrency = function() {
14653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
14654
+ };
14655
+
14656
+
14657
+ /**
14658
+ * @param {string} value
14659
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14660
+ */
14661
+ proto.user.SegmentBetRuleItem.prototype.setCurrency = function(value) {
14662
+ return jspb.Message.setField(this, 2, value);
14663
+ };
14664
+
14665
+
14666
+ /**
14667
+ * Clears the field making it undefined.
14668
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14669
+ */
14670
+ proto.user.SegmentBetRuleItem.prototype.clearCurrency = function() {
14671
+ return jspb.Message.setField(this, 2, undefined);
14672
+ };
14673
+
14674
+
14675
+ /**
14676
+ * Returns whether this field is set.
14677
+ * @return {boolean}
14678
+ */
14679
+ proto.user.SegmentBetRuleItem.prototype.hasCurrency = function() {
14680
+ return jspb.Message.getField(this, 2) != null;
14681
+ };
14682
+
14683
+
14684
+ /**
14685
+ * optional float bet_amount_min = 3;
14686
+ * @return {number}
14687
+ */
14688
+ proto.user.SegmentBetRuleItem.prototype.getBetAmountMin = function() {
14689
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
14690
+ };
14691
+
14692
+
14693
+ /**
14694
+ * @param {number} value
14695
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14696
+ */
14697
+ proto.user.SegmentBetRuleItem.prototype.setBetAmountMin = function(value) {
14698
+ return jspb.Message.setField(this, 3, value);
14699
+ };
14700
+
14701
+
14702
+ /**
14703
+ * Clears the field making it undefined.
14704
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14705
+ */
14706
+ proto.user.SegmentBetRuleItem.prototype.clearBetAmountMin = function() {
14707
+ return jspb.Message.setField(this, 3, undefined);
14708
+ };
14709
+
14710
+
14711
+ /**
14712
+ * Returns whether this field is set.
14713
+ * @return {boolean}
14714
+ */
14715
+ proto.user.SegmentBetRuleItem.prototype.hasBetAmountMin = function() {
14716
+ return jspb.Message.getField(this, 3) != null;
14717
+ };
14718
+
14719
+
14720
+ /**
14721
+ * optional float bet_amount_max = 4;
14722
+ * @return {number}
14723
+ */
14724
+ proto.user.SegmentBetRuleItem.prototype.getBetAmountMax = function() {
14725
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
14726
+ };
14727
+
14728
+
14729
+ /**
14730
+ * @param {number} value
14731
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14732
+ */
14733
+ proto.user.SegmentBetRuleItem.prototype.setBetAmountMax = function(value) {
14734
+ return jspb.Message.setField(this, 4, value);
14735
+ };
14736
+
14737
+
14738
+ /**
14739
+ * Clears the field making it undefined.
14740
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14741
+ */
14742
+ proto.user.SegmentBetRuleItem.prototype.clearBetAmountMax = function() {
14743
+ return jspb.Message.setField(this, 4, undefined);
14744
+ };
14745
+
14746
+
14747
+ /**
14748
+ * Returns whether this field is set.
14749
+ * @return {boolean}
14750
+ */
14751
+ proto.user.SegmentBetRuleItem.prototype.hasBetAmountMax = function() {
14752
+ return jspb.Message.getField(this, 4) != null;
14753
+ };
14754
+
14755
+
14756
+ /**
14757
+ * optional int32 bet_count_min = 5;
14758
+ * @return {number}
14759
+ */
14760
+ proto.user.SegmentBetRuleItem.prototype.getBetCountMin = function() {
14761
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
14762
+ };
14763
+
14764
+
14765
+ /**
14766
+ * @param {number} value
14767
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14768
+ */
14769
+ proto.user.SegmentBetRuleItem.prototype.setBetCountMin = function(value) {
14770
+ return jspb.Message.setField(this, 5, value);
14771
+ };
14772
+
14773
+
14774
+ /**
14775
+ * Clears the field making it undefined.
14776
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14777
+ */
14778
+ proto.user.SegmentBetRuleItem.prototype.clearBetCountMin = function() {
14779
+ return jspb.Message.setField(this, 5, undefined);
14780
+ };
14781
+
14782
+
14783
+ /**
14784
+ * Returns whether this field is set.
14785
+ * @return {boolean}
14786
+ */
14787
+ proto.user.SegmentBetRuleItem.prototype.hasBetCountMin = function() {
14788
+ return jspb.Message.getField(this, 5) != null;
14789
+ };
14790
+
14791
+
14792
+ /**
14793
+ * optional int32 bet_count_max = 6;
14794
+ * @return {number}
14795
+ */
14796
+ proto.user.SegmentBetRuleItem.prototype.getBetCountMax = function() {
14797
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
14798
+ };
14799
+
14800
+
14801
+ /**
14802
+ * @param {number} value
14803
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14804
+ */
14805
+ proto.user.SegmentBetRuleItem.prototype.setBetCountMax = function(value) {
14806
+ return jspb.Message.setField(this, 6, value);
14807
+ };
14808
+
14809
+
14810
+ /**
14811
+ * Clears the field making it undefined.
14812
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14813
+ */
14814
+ proto.user.SegmentBetRuleItem.prototype.clearBetCountMax = function() {
14815
+ return jspb.Message.setField(this, 6, undefined);
14816
+ };
14817
+
14818
+
14819
+ /**
14820
+ * Returns whether this field is set.
14821
+ * @return {boolean}
14822
+ */
14823
+ proto.user.SegmentBetRuleItem.prototype.hasBetCountMax = function() {
14824
+ return jspb.Message.getField(this, 6) != null;
14825
+ };
14826
+
14827
+
14828
+ /**
14829
+ * optional float bet_sum_min = 7;
14830
+ * @return {number}
14831
+ */
14832
+ proto.user.SegmentBetRuleItem.prototype.getBetSumMin = function() {
14833
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
14834
+ };
14835
+
14836
+
14837
+ /**
14838
+ * @param {number} value
14839
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14840
+ */
14841
+ proto.user.SegmentBetRuleItem.prototype.setBetSumMin = function(value) {
14842
+ return jspb.Message.setField(this, 7, value);
14843
+ };
14844
+
14845
+
14846
+ /**
14847
+ * Clears the field making it undefined.
14848
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14849
+ */
14850
+ proto.user.SegmentBetRuleItem.prototype.clearBetSumMin = function() {
14851
+ return jspb.Message.setField(this, 7, undefined);
14852
+ };
14853
+
14854
+
14855
+ /**
14856
+ * Returns whether this field is set.
14857
+ * @return {boolean}
14858
+ */
14859
+ proto.user.SegmentBetRuleItem.prototype.hasBetSumMin = function() {
14860
+ return jspb.Message.getField(this, 7) != null;
14861
+ };
14862
+
14863
+
14864
+ /**
14865
+ * optional float bet_sum_max = 8;
14866
+ * @return {number}
14867
+ */
14868
+ proto.user.SegmentBetRuleItem.prototype.getBetSumMax = function() {
14869
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
14870
+ };
14871
+
14872
+
14873
+ /**
14874
+ * @param {number} value
14875
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14876
+ */
14877
+ proto.user.SegmentBetRuleItem.prototype.setBetSumMax = function(value) {
14878
+ return jspb.Message.setField(this, 8, value);
14879
+ };
14880
+
14881
+
14882
+ /**
14883
+ * Clears the field making it undefined.
14884
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14885
+ */
14886
+ proto.user.SegmentBetRuleItem.prototype.clearBetSumMax = function() {
14887
+ return jspb.Message.setField(this, 8, undefined);
14888
+ };
14889
+
14890
+
14891
+ /**
14892
+ * Returns whether this field is set.
14893
+ * @return {boolean}
14894
+ */
14895
+ proto.user.SegmentBetRuleItem.prototype.hasBetSumMax = function() {
14896
+ return jspb.Message.getField(this, 8) != null;
14897
+ };
14898
+
14899
+
14900
+ /**
14901
+ * optional float bet_avg_min = 9;
14902
+ * @return {number}
14903
+ */
14904
+ proto.user.SegmentBetRuleItem.prototype.getBetAvgMin = function() {
14905
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
14906
+ };
14907
+
14908
+
14909
+ /**
14910
+ * @param {number} value
14911
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14912
+ */
14913
+ proto.user.SegmentBetRuleItem.prototype.setBetAvgMin = function(value) {
14914
+ return jspb.Message.setField(this, 9, value);
14915
+ };
14916
+
14917
+
14918
+ /**
14919
+ * Clears the field making it undefined.
14920
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14921
+ */
14922
+ proto.user.SegmentBetRuleItem.prototype.clearBetAvgMin = function() {
14923
+ return jspb.Message.setField(this, 9, undefined);
14924
+ };
14925
+
14926
+
14927
+ /**
14928
+ * Returns whether this field is set.
14929
+ * @return {boolean}
14930
+ */
14931
+ proto.user.SegmentBetRuleItem.prototype.hasBetAvgMin = function() {
14932
+ return jspb.Message.getField(this, 9) != null;
14933
+ };
14934
+
14935
+
14936
+ /**
14937
+ * optional float bet_avg_max = 10;
14938
+ * @return {number}
14939
+ */
14940
+ proto.user.SegmentBetRuleItem.prototype.getBetAvgMax = function() {
14941
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
14942
+ };
14943
+
14944
+
14945
+ /**
14946
+ * @param {number} value
14947
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14948
+ */
14949
+ proto.user.SegmentBetRuleItem.prototype.setBetAvgMax = function(value) {
14950
+ return jspb.Message.setField(this, 10, value);
14951
+ };
14952
+
14953
+
14954
+ /**
14955
+ * Clears the field making it undefined.
14956
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14957
+ */
14958
+ proto.user.SegmentBetRuleItem.prototype.clearBetAvgMax = function() {
14959
+ return jspb.Message.setField(this, 10, undefined);
14960
+ };
14961
+
14962
+
14963
+ /**
14964
+ * Returns whether this field is set.
14965
+ * @return {boolean}
14966
+ */
14967
+ proto.user.SegmentBetRuleItem.prototype.hasBetAvgMax = function() {
14968
+ return jspb.Message.getField(this, 10) != null;
14969
+ };
14970
+
14971
+
14972
+ /**
14973
+ * optional float win_amount_min = 11;
14974
+ * @return {number}
14975
+ */
14976
+ proto.user.SegmentBetRuleItem.prototype.getWinAmountMin = function() {
14977
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
14978
+ };
14979
+
14980
+
14981
+ /**
14982
+ * @param {number} value
14983
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14984
+ */
14985
+ proto.user.SegmentBetRuleItem.prototype.setWinAmountMin = function(value) {
14986
+ return jspb.Message.setField(this, 11, value);
14987
+ };
14988
+
14989
+
14990
+ /**
14991
+ * Clears the field making it undefined.
14992
+ * @return {!proto.user.SegmentBetRuleItem} returns this
14993
+ */
14994
+ proto.user.SegmentBetRuleItem.prototype.clearWinAmountMin = function() {
14995
+ return jspb.Message.setField(this, 11, undefined);
14996
+ };
14997
+
14998
+
14999
+ /**
15000
+ * Returns whether this field is set.
15001
+ * @return {boolean}
15002
+ */
15003
+ proto.user.SegmentBetRuleItem.prototype.hasWinAmountMin = function() {
15004
+ return jspb.Message.getField(this, 11) != null;
15005
+ };
15006
+
15007
+
15008
+ /**
15009
+ * optional float win_amount_max = 12;
15010
+ * @return {number}
15011
+ */
15012
+ proto.user.SegmentBetRuleItem.prototype.getWinAmountMax = function() {
15013
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
15014
+ };
15015
+
15016
+
15017
+ /**
15018
+ * @param {number} value
15019
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15020
+ */
15021
+ proto.user.SegmentBetRuleItem.prototype.setWinAmountMax = function(value) {
15022
+ return jspb.Message.setField(this, 12, value);
15023
+ };
15024
+
15025
+
15026
+ /**
15027
+ * Clears the field making it undefined.
15028
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15029
+ */
15030
+ proto.user.SegmentBetRuleItem.prototype.clearWinAmountMax = function() {
15031
+ return jspb.Message.setField(this, 12, undefined);
15032
+ };
15033
+
15034
+
15035
+ /**
15036
+ * Returns whether this field is set.
15037
+ * @return {boolean}
15038
+ */
15039
+ proto.user.SegmentBetRuleItem.prototype.hasWinAmountMax = function() {
15040
+ return jspb.Message.getField(this, 12) != null;
15041
+ };
15042
+
15043
+
15044
+ /**
15045
+ * optional int32 win_count_min = 13;
15046
+ * @return {number}
15047
+ */
15048
+ proto.user.SegmentBetRuleItem.prototype.getWinCountMin = function() {
15049
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
15050
+ };
15051
+
15052
+
15053
+ /**
15054
+ * @param {number} value
15055
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15056
+ */
15057
+ proto.user.SegmentBetRuleItem.prototype.setWinCountMin = function(value) {
15058
+ return jspb.Message.setField(this, 13, value);
15059
+ };
15060
+
15061
+
15062
+ /**
15063
+ * Clears the field making it undefined.
15064
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15065
+ */
15066
+ proto.user.SegmentBetRuleItem.prototype.clearWinCountMin = function() {
15067
+ return jspb.Message.setField(this, 13, undefined);
15068
+ };
15069
+
15070
+
15071
+ /**
15072
+ * Returns whether this field is set.
15073
+ * @return {boolean}
15074
+ */
15075
+ proto.user.SegmentBetRuleItem.prototype.hasWinCountMin = function() {
15076
+ return jspb.Message.getField(this, 13) != null;
15077
+ };
15078
+
15079
+
15080
+ /**
15081
+ * optional int32 win_count_max = 14;
15082
+ * @return {number}
15083
+ */
15084
+ proto.user.SegmentBetRuleItem.prototype.getWinCountMax = function() {
15085
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
15086
+ };
15087
+
15088
+
15089
+ /**
15090
+ * @param {number} value
15091
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15092
+ */
15093
+ proto.user.SegmentBetRuleItem.prototype.setWinCountMax = function(value) {
15094
+ return jspb.Message.setField(this, 14, value);
15095
+ };
15096
+
15097
+
15098
+ /**
15099
+ * Clears the field making it undefined.
15100
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15101
+ */
15102
+ proto.user.SegmentBetRuleItem.prototype.clearWinCountMax = function() {
15103
+ return jspb.Message.setField(this, 14, undefined);
15104
+ };
15105
+
15106
+
15107
+ /**
15108
+ * Returns whether this field is set.
15109
+ * @return {boolean}
15110
+ */
15111
+ proto.user.SegmentBetRuleItem.prototype.hasWinCountMax = function() {
15112
+ return jspb.Message.getField(this, 14) != null;
15113
+ };
15114
+
15115
+
15116
+ /**
15117
+ * optional float win_sum_min = 15;
15118
+ * @return {number}
15119
+ */
15120
+ proto.user.SegmentBetRuleItem.prototype.getWinSumMin = function() {
15121
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0));
15122
+ };
15123
+
15124
+
15125
+ /**
15126
+ * @param {number} value
15127
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15128
+ */
15129
+ proto.user.SegmentBetRuleItem.prototype.setWinSumMin = function(value) {
15130
+ return jspb.Message.setField(this, 15, value);
15131
+ };
15132
+
15133
+
15134
+ /**
15135
+ * Clears the field making it undefined.
15136
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15137
+ */
15138
+ proto.user.SegmentBetRuleItem.prototype.clearWinSumMin = function() {
15139
+ return jspb.Message.setField(this, 15, undefined);
15140
+ };
15141
+
15142
+
15143
+ /**
15144
+ * Returns whether this field is set.
15145
+ * @return {boolean}
15146
+ */
15147
+ proto.user.SegmentBetRuleItem.prototype.hasWinSumMin = function() {
15148
+ return jspb.Message.getField(this, 15) != null;
15149
+ };
15150
+
15151
+
15152
+ /**
15153
+ * optional float win_sum_max = 16;
15154
+ * @return {number}
15155
+ */
15156
+ proto.user.SegmentBetRuleItem.prototype.getWinSumMax = function() {
15157
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
15158
+ };
15159
+
15160
+
15161
+ /**
15162
+ * @param {number} value
15163
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15164
+ */
15165
+ proto.user.SegmentBetRuleItem.prototype.setWinSumMax = function(value) {
15166
+ return jspb.Message.setField(this, 16, value);
15167
+ };
15168
+
15169
+
15170
+ /**
15171
+ * Clears the field making it undefined.
15172
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15173
+ */
15174
+ proto.user.SegmentBetRuleItem.prototype.clearWinSumMax = function() {
15175
+ return jspb.Message.setField(this, 16, undefined);
15176
+ };
15177
+
15178
+
15179
+ /**
15180
+ * Returns whether this field is set.
15181
+ * @return {boolean}
15182
+ */
15183
+ proto.user.SegmentBetRuleItem.prototype.hasWinSumMax = function() {
15184
+ return jspb.Message.getField(this, 16) != null;
15185
+ };
15186
+
15187
+
15188
+ /**
15189
+ * optional float win_avg_min = 17;
15190
+ * @return {number}
15191
+ */
15192
+ proto.user.SegmentBetRuleItem.prototype.getWinAvgMin = function() {
15193
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 17, 0.0));
15194
+ };
15195
+
15196
+
15197
+ /**
15198
+ * @param {number} value
15199
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15200
+ */
15201
+ proto.user.SegmentBetRuleItem.prototype.setWinAvgMin = function(value) {
15202
+ return jspb.Message.setField(this, 17, value);
15203
+ };
15204
+
15205
+
15206
+ /**
15207
+ * Clears the field making it undefined.
15208
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15209
+ */
15210
+ proto.user.SegmentBetRuleItem.prototype.clearWinAvgMin = function() {
15211
+ return jspb.Message.setField(this, 17, undefined);
15212
+ };
15213
+
15214
+
15215
+ /**
15216
+ * Returns whether this field is set.
15217
+ * @return {boolean}
15218
+ */
15219
+ proto.user.SegmentBetRuleItem.prototype.hasWinAvgMin = function() {
15220
+ return jspb.Message.getField(this, 17) != null;
15221
+ };
15222
+
15223
+
15224
+ /**
15225
+ * optional float win_avg_max = 18;
15226
+ * @return {number}
15227
+ */
15228
+ proto.user.SegmentBetRuleItem.prototype.getWinAvgMax = function() {
15229
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 18, 0.0));
15230
+ };
15231
+
15232
+
15233
+ /**
15234
+ * @param {number} value
15235
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15236
+ */
15237
+ proto.user.SegmentBetRuleItem.prototype.setWinAvgMax = function(value) {
15238
+ return jspb.Message.setField(this, 18, value);
15239
+ };
15240
+
15241
+
15242
+ /**
15243
+ * Clears the field making it undefined.
15244
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15245
+ */
15246
+ proto.user.SegmentBetRuleItem.prototype.clearWinAvgMax = function() {
15247
+ return jspb.Message.setField(this, 18, undefined);
15248
+ };
15249
+
15250
+
15251
+ /**
15252
+ * Returns whether this field is set.
15253
+ * @return {boolean}
15254
+ */
15255
+ proto.user.SegmentBetRuleItem.prototype.hasWinAvgMax = function() {
15256
+ return jspb.Message.getField(this, 18) != null;
15257
+ };
15258
+
15259
+
15260
+
15261
+
15262
+
11079
15263
  if (jspb.Message.GENERATE_TO_OBJECT) {
11080
15264
  /**
11081
15265
  * Creates an object representation of this proto.