protobuf-platform 1.2.357 → 1.2.362
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/bonus/bonus.proto +9 -9
- package/bonus/bonus_grpc_pb.js +26 -26
- package/bonus/bonus_pb.js +125 -125
- package/cms/cms.proto +98 -0
- package/cms/cms_grpc_pb.js +222 -0
- package/cms/cms_pb.js +4079 -1
- package/package.json +1 -1
- package/user/user.proto +76 -0
- package/user/user_grpc_pb.js +199 -0
- package/user/user_pb.js +3291 -2
package/cms/cms_pb.js
CHANGED
|
@@ -132,6 +132,8 @@ goog.exportSymbol('proto.cms.GetPageSeoAttributesRequest', null, global);
|
|
|
132
132
|
goog.exportSymbol('proto.cms.GetPageSeoRequest', null, global);
|
|
133
133
|
goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
|
|
134
134
|
goog.exportSymbol('proto.cms.GetPreDepositFormWidgetRequest', null, global);
|
|
135
|
+
goog.exportSymbol('proto.cms.GetPresetCashierConfigRequest', null, global);
|
|
136
|
+
goog.exportSymbol('proto.cms.GetPresetWidgetRequest', null, global);
|
|
135
137
|
goog.exportSymbol('proto.cms.GetProfileMenuWidgetRequest', null, global);
|
|
136
138
|
goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
|
|
137
139
|
goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
|
|
@@ -161,6 +163,12 @@ goog.exportSymbol('proto.cms.PaginationRequest', null, global);
|
|
|
161
163
|
goog.exportSymbol('proto.cms.PingRequest', null, global);
|
|
162
164
|
goog.exportSymbol('proto.cms.PongResponse', null, global);
|
|
163
165
|
goog.exportSymbol('proto.cms.PreDepositFormWidgetItem', null, global);
|
|
166
|
+
goog.exportSymbol('proto.cms.PresetCashierConfigItem', null, global);
|
|
167
|
+
goog.exportSymbol('proto.cms.PresetCashierConfigsResponse', null, global);
|
|
168
|
+
goog.exportSymbol('proto.cms.PresetCashierCurrencyAmounts', null, global);
|
|
169
|
+
goog.exportSymbol('proto.cms.PresetCashierPaymentOrderGroup', null, global);
|
|
170
|
+
goog.exportSymbol('proto.cms.PresetWidgetItem', null, global);
|
|
171
|
+
goog.exportSymbol('proto.cms.PresetWidgetsResponse', null, global);
|
|
164
172
|
goog.exportSymbol('proto.cms.ProfileMenuWidgetItem', null, global);
|
|
165
173
|
goog.exportSymbol('proto.cms.PromoItem', null, global);
|
|
166
174
|
goog.exportSymbol('proto.cms.PromoItemRequest', null, global);
|
|
@@ -171,7 +179,13 @@ goog.exportSymbol('proto.cms.PromoStatusResponse', null, global);
|
|
|
171
179
|
goog.exportSymbol('proto.cms.PromoTranslationRequest', null, global);
|
|
172
180
|
goog.exportSymbol('proto.cms.PromoTranslationResponse', null, global);
|
|
173
181
|
goog.exportSymbol('proto.cms.PromosItemsResponse', null, global);
|
|
182
|
+
goog.exportSymbol('proto.cms.ReadListPresetCashierConfigsRequest', null, global);
|
|
183
|
+
goog.exportSymbol('proto.cms.ReadListPresetWidgetsRequest', null, global);
|
|
184
|
+
goog.exportSymbol('proto.cms.ReadPresetCashierConfigRequest', null, global);
|
|
185
|
+
goog.exportSymbol('proto.cms.ReadPresetWidgetRequest', null, global);
|
|
174
186
|
goog.exportSymbol('proto.cms.SetPageSeoAttributesRequest', null, global);
|
|
187
|
+
goog.exportSymbol('proto.cms.SetPresetCashierConfigRequest', null, global);
|
|
188
|
+
goog.exportSymbol('proto.cms.SetPresetWidgetRequest', null, global);
|
|
175
189
|
goog.exportSymbol('proto.cms.SignUpFormWidgetItem', null, global);
|
|
176
190
|
goog.exportSymbol('proto.cms.TokenWidgetItem', null, global);
|
|
177
191
|
goog.exportSymbol('proto.cms.TokenWidgetItemRequest', null, global);
|
|
@@ -3483,6 +3497,300 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3483
3497
|
*/
|
|
3484
3498
|
proto.cms.FooterBrandCoreBrief.displayName = 'proto.cms.FooterBrandCoreBrief';
|
|
3485
3499
|
}
|
|
3500
|
+
/**
|
|
3501
|
+
* Generated by JsPbCodeGenerator.
|
|
3502
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3503
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3504
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3505
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3506
|
+
* valid.
|
|
3507
|
+
* @extends {jspb.Message}
|
|
3508
|
+
* @constructor
|
|
3509
|
+
*/
|
|
3510
|
+
proto.cms.SetPresetWidgetRequest = function(opt_data) {
|
|
3511
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3512
|
+
};
|
|
3513
|
+
goog.inherits(proto.cms.SetPresetWidgetRequest, jspb.Message);
|
|
3514
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3515
|
+
/**
|
|
3516
|
+
* @public
|
|
3517
|
+
* @override
|
|
3518
|
+
*/
|
|
3519
|
+
proto.cms.SetPresetWidgetRequest.displayName = 'proto.cms.SetPresetWidgetRequest';
|
|
3520
|
+
}
|
|
3521
|
+
/**
|
|
3522
|
+
* Generated by JsPbCodeGenerator.
|
|
3523
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3524
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3525
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3526
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3527
|
+
* valid.
|
|
3528
|
+
* @extends {jspb.Message}
|
|
3529
|
+
* @constructor
|
|
3530
|
+
*/
|
|
3531
|
+
proto.cms.GetPresetWidgetRequest = function(opt_data) {
|
|
3532
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3533
|
+
};
|
|
3534
|
+
goog.inherits(proto.cms.GetPresetWidgetRequest, jspb.Message);
|
|
3535
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3536
|
+
/**
|
|
3537
|
+
* @public
|
|
3538
|
+
* @override
|
|
3539
|
+
*/
|
|
3540
|
+
proto.cms.GetPresetWidgetRequest.displayName = 'proto.cms.GetPresetWidgetRequest';
|
|
3541
|
+
}
|
|
3542
|
+
/**
|
|
3543
|
+
* Generated by JsPbCodeGenerator.
|
|
3544
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3545
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3546
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3547
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3548
|
+
* valid.
|
|
3549
|
+
* @extends {jspb.Message}
|
|
3550
|
+
* @constructor
|
|
3551
|
+
*/
|
|
3552
|
+
proto.cms.ReadPresetWidgetRequest = function(opt_data) {
|
|
3553
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3554
|
+
};
|
|
3555
|
+
goog.inherits(proto.cms.ReadPresetWidgetRequest, jspb.Message);
|
|
3556
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3557
|
+
/**
|
|
3558
|
+
* @public
|
|
3559
|
+
* @override
|
|
3560
|
+
*/
|
|
3561
|
+
proto.cms.ReadPresetWidgetRequest.displayName = 'proto.cms.ReadPresetWidgetRequest';
|
|
3562
|
+
}
|
|
3563
|
+
/**
|
|
3564
|
+
* Generated by JsPbCodeGenerator.
|
|
3565
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3566
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3567
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3568
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3569
|
+
* valid.
|
|
3570
|
+
* @extends {jspb.Message}
|
|
3571
|
+
* @constructor
|
|
3572
|
+
*/
|
|
3573
|
+
proto.cms.ReadListPresetWidgetsRequest = function(opt_data) {
|
|
3574
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3575
|
+
};
|
|
3576
|
+
goog.inherits(proto.cms.ReadListPresetWidgetsRequest, jspb.Message);
|
|
3577
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3578
|
+
/**
|
|
3579
|
+
* @public
|
|
3580
|
+
* @override
|
|
3581
|
+
*/
|
|
3582
|
+
proto.cms.ReadListPresetWidgetsRequest.displayName = 'proto.cms.ReadListPresetWidgetsRequest';
|
|
3583
|
+
}
|
|
3584
|
+
/**
|
|
3585
|
+
* Generated by JsPbCodeGenerator.
|
|
3586
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3587
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3588
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3589
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3590
|
+
* valid.
|
|
3591
|
+
* @extends {jspb.Message}
|
|
3592
|
+
* @constructor
|
|
3593
|
+
*/
|
|
3594
|
+
proto.cms.PresetWidgetItem = function(opt_data) {
|
|
3595
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3596
|
+
};
|
|
3597
|
+
goog.inherits(proto.cms.PresetWidgetItem, jspb.Message);
|
|
3598
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3599
|
+
/**
|
|
3600
|
+
* @public
|
|
3601
|
+
* @override
|
|
3602
|
+
*/
|
|
3603
|
+
proto.cms.PresetWidgetItem.displayName = 'proto.cms.PresetWidgetItem';
|
|
3604
|
+
}
|
|
3605
|
+
/**
|
|
3606
|
+
* Generated by JsPbCodeGenerator.
|
|
3607
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3608
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3609
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3610
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3611
|
+
* valid.
|
|
3612
|
+
* @extends {jspb.Message}
|
|
3613
|
+
* @constructor
|
|
3614
|
+
*/
|
|
3615
|
+
proto.cms.PresetWidgetsResponse = function(opt_data) {
|
|
3616
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PresetWidgetsResponse.repeatedFields_, null);
|
|
3617
|
+
};
|
|
3618
|
+
goog.inherits(proto.cms.PresetWidgetsResponse, jspb.Message);
|
|
3619
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3620
|
+
/**
|
|
3621
|
+
* @public
|
|
3622
|
+
* @override
|
|
3623
|
+
*/
|
|
3624
|
+
proto.cms.PresetWidgetsResponse.displayName = 'proto.cms.PresetWidgetsResponse';
|
|
3625
|
+
}
|
|
3626
|
+
/**
|
|
3627
|
+
* Generated by JsPbCodeGenerator.
|
|
3628
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3629
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3630
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3631
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3632
|
+
* valid.
|
|
3633
|
+
* @extends {jspb.Message}
|
|
3634
|
+
* @constructor
|
|
3635
|
+
*/
|
|
3636
|
+
proto.cms.PresetCashierCurrencyAmounts = function(opt_data) {
|
|
3637
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PresetCashierCurrencyAmounts.repeatedFields_, null);
|
|
3638
|
+
};
|
|
3639
|
+
goog.inherits(proto.cms.PresetCashierCurrencyAmounts, jspb.Message);
|
|
3640
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3641
|
+
/**
|
|
3642
|
+
* @public
|
|
3643
|
+
* @override
|
|
3644
|
+
*/
|
|
3645
|
+
proto.cms.PresetCashierCurrencyAmounts.displayName = 'proto.cms.PresetCashierCurrencyAmounts';
|
|
3646
|
+
}
|
|
3647
|
+
/**
|
|
3648
|
+
* Generated by JsPbCodeGenerator.
|
|
3649
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3650
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3651
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3652
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3653
|
+
* valid.
|
|
3654
|
+
* @extends {jspb.Message}
|
|
3655
|
+
* @constructor
|
|
3656
|
+
*/
|
|
3657
|
+
proto.cms.PresetCashierPaymentOrderGroup = function(opt_data) {
|
|
3658
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PresetCashierPaymentOrderGroup.repeatedFields_, null);
|
|
3659
|
+
};
|
|
3660
|
+
goog.inherits(proto.cms.PresetCashierPaymentOrderGroup, jspb.Message);
|
|
3661
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3662
|
+
/**
|
|
3663
|
+
* @public
|
|
3664
|
+
* @override
|
|
3665
|
+
*/
|
|
3666
|
+
proto.cms.PresetCashierPaymentOrderGroup.displayName = 'proto.cms.PresetCashierPaymentOrderGroup';
|
|
3667
|
+
}
|
|
3668
|
+
/**
|
|
3669
|
+
* Generated by JsPbCodeGenerator.
|
|
3670
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3671
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3672
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3673
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3674
|
+
* valid.
|
|
3675
|
+
* @extends {jspb.Message}
|
|
3676
|
+
* @constructor
|
|
3677
|
+
*/
|
|
3678
|
+
proto.cms.PresetCashierConfigItem = function(opt_data) {
|
|
3679
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PresetCashierConfigItem.repeatedFields_, null);
|
|
3680
|
+
};
|
|
3681
|
+
goog.inherits(proto.cms.PresetCashierConfigItem, jspb.Message);
|
|
3682
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3683
|
+
/**
|
|
3684
|
+
* @public
|
|
3685
|
+
* @override
|
|
3686
|
+
*/
|
|
3687
|
+
proto.cms.PresetCashierConfigItem.displayName = 'proto.cms.PresetCashierConfigItem';
|
|
3688
|
+
}
|
|
3689
|
+
/**
|
|
3690
|
+
* Generated by JsPbCodeGenerator.
|
|
3691
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3692
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3693
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3694
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3695
|
+
* valid.
|
|
3696
|
+
* @extends {jspb.Message}
|
|
3697
|
+
* @constructor
|
|
3698
|
+
*/
|
|
3699
|
+
proto.cms.SetPresetCashierConfigRequest = function(opt_data) {
|
|
3700
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.SetPresetCashierConfigRequest.repeatedFields_, null);
|
|
3701
|
+
};
|
|
3702
|
+
goog.inherits(proto.cms.SetPresetCashierConfigRequest, jspb.Message);
|
|
3703
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3704
|
+
/**
|
|
3705
|
+
* @public
|
|
3706
|
+
* @override
|
|
3707
|
+
*/
|
|
3708
|
+
proto.cms.SetPresetCashierConfigRequest.displayName = 'proto.cms.SetPresetCashierConfigRequest';
|
|
3709
|
+
}
|
|
3710
|
+
/**
|
|
3711
|
+
* Generated by JsPbCodeGenerator.
|
|
3712
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3713
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3714
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3715
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3716
|
+
* valid.
|
|
3717
|
+
* @extends {jspb.Message}
|
|
3718
|
+
* @constructor
|
|
3719
|
+
*/
|
|
3720
|
+
proto.cms.GetPresetCashierConfigRequest = function(opt_data) {
|
|
3721
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3722
|
+
};
|
|
3723
|
+
goog.inherits(proto.cms.GetPresetCashierConfigRequest, jspb.Message);
|
|
3724
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3725
|
+
/**
|
|
3726
|
+
* @public
|
|
3727
|
+
* @override
|
|
3728
|
+
*/
|
|
3729
|
+
proto.cms.GetPresetCashierConfigRequest.displayName = 'proto.cms.GetPresetCashierConfigRequest';
|
|
3730
|
+
}
|
|
3731
|
+
/**
|
|
3732
|
+
* Generated by JsPbCodeGenerator.
|
|
3733
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3734
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3735
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3736
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3737
|
+
* valid.
|
|
3738
|
+
* @extends {jspb.Message}
|
|
3739
|
+
* @constructor
|
|
3740
|
+
*/
|
|
3741
|
+
proto.cms.ReadPresetCashierConfigRequest = function(opt_data) {
|
|
3742
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3743
|
+
};
|
|
3744
|
+
goog.inherits(proto.cms.ReadPresetCashierConfigRequest, jspb.Message);
|
|
3745
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3746
|
+
/**
|
|
3747
|
+
* @public
|
|
3748
|
+
* @override
|
|
3749
|
+
*/
|
|
3750
|
+
proto.cms.ReadPresetCashierConfigRequest.displayName = 'proto.cms.ReadPresetCashierConfigRequest';
|
|
3751
|
+
}
|
|
3752
|
+
/**
|
|
3753
|
+
* Generated by JsPbCodeGenerator.
|
|
3754
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3755
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3756
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3757
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3758
|
+
* valid.
|
|
3759
|
+
* @extends {jspb.Message}
|
|
3760
|
+
* @constructor
|
|
3761
|
+
*/
|
|
3762
|
+
proto.cms.ReadListPresetCashierConfigsRequest = function(opt_data) {
|
|
3763
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3764
|
+
};
|
|
3765
|
+
goog.inherits(proto.cms.ReadListPresetCashierConfigsRequest, jspb.Message);
|
|
3766
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3767
|
+
/**
|
|
3768
|
+
* @public
|
|
3769
|
+
* @override
|
|
3770
|
+
*/
|
|
3771
|
+
proto.cms.ReadListPresetCashierConfigsRequest.displayName = 'proto.cms.ReadListPresetCashierConfigsRequest';
|
|
3772
|
+
}
|
|
3773
|
+
/**
|
|
3774
|
+
* Generated by JsPbCodeGenerator.
|
|
3775
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3776
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3777
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3778
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3779
|
+
* valid.
|
|
3780
|
+
* @extends {jspb.Message}
|
|
3781
|
+
* @constructor
|
|
3782
|
+
*/
|
|
3783
|
+
proto.cms.PresetCashierConfigsResponse = function(opt_data) {
|
|
3784
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PresetCashierConfigsResponse.repeatedFields_, null);
|
|
3785
|
+
};
|
|
3786
|
+
goog.inherits(proto.cms.PresetCashierConfigsResponse, jspb.Message);
|
|
3787
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3788
|
+
/**
|
|
3789
|
+
* @public
|
|
3790
|
+
* @override
|
|
3791
|
+
*/
|
|
3792
|
+
proto.cms.PresetCashierConfigsResponse.displayName = 'proto.cms.PresetCashierConfigsResponse';
|
|
3793
|
+
}
|
|
3486
3794
|
|
|
3487
3795
|
|
|
3488
3796
|
|
|
@@ -27565,7 +27873,8 @@ proto.cms.CustomWidgetRequest.toObject = function(includeInstance, msg) {
|
|
|
27565
27873
|
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
27566
27874
|
geoList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
27567
27875
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
27568
|
-
proto.cms.CustomWidgetRow.toObject, includeInstance)
|
|
27876
|
+
proto.cms.CustomWidgetRow.toObject, includeInstance),
|
|
27877
|
+
replaceItems: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
27569
27878
|
};
|
|
27570
27879
|
|
|
27571
27880
|
if (includeInstance) {
|
|
@@ -27627,6 +27936,10 @@ proto.cms.CustomWidgetRequest.deserializeBinaryFromReader = function(msg, reader
|
|
|
27627
27936
|
reader.readMessage(value,proto.cms.CustomWidgetRow.deserializeBinaryFromReader);
|
|
27628
27937
|
msg.addItems(value);
|
|
27629
27938
|
break;
|
|
27939
|
+
case 7:
|
|
27940
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
27941
|
+
msg.setReplaceItems(value);
|
|
27942
|
+
break;
|
|
27630
27943
|
default:
|
|
27631
27944
|
reader.skipField();
|
|
27632
27945
|
break;
|
|
@@ -27699,6 +28012,13 @@ proto.cms.CustomWidgetRequest.serializeBinaryToWriter = function(message, writer
|
|
|
27699
28012
|
proto.cms.CustomWidgetRow.serializeBinaryToWriter
|
|
27700
28013
|
);
|
|
27701
28014
|
}
|
|
28015
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 7));
|
|
28016
|
+
if (f != null) {
|
|
28017
|
+
writer.writeBool(
|
|
28018
|
+
7,
|
|
28019
|
+
f
|
|
28020
|
+
);
|
|
28021
|
+
}
|
|
27702
28022
|
};
|
|
27703
28023
|
|
|
27704
28024
|
|
|
@@ -27921,6 +28241,42 @@ proto.cms.CustomWidgetRequest.prototype.clearItemsList = function() {
|
|
|
27921
28241
|
};
|
|
27922
28242
|
|
|
27923
28243
|
|
|
28244
|
+
/**
|
|
28245
|
+
* optional bool replace_items = 7;
|
|
28246
|
+
* @return {boolean}
|
|
28247
|
+
*/
|
|
28248
|
+
proto.cms.CustomWidgetRequest.prototype.getReplaceItems = function() {
|
|
28249
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
28250
|
+
};
|
|
28251
|
+
|
|
28252
|
+
|
|
28253
|
+
/**
|
|
28254
|
+
* @param {boolean} value
|
|
28255
|
+
* @return {!proto.cms.CustomWidgetRequest} returns this
|
|
28256
|
+
*/
|
|
28257
|
+
proto.cms.CustomWidgetRequest.prototype.setReplaceItems = function(value) {
|
|
28258
|
+
return jspb.Message.setField(this, 7, value);
|
|
28259
|
+
};
|
|
28260
|
+
|
|
28261
|
+
|
|
28262
|
+
/**
|
|
28263
|
+
* Clears the field making it undefined.
|
|
28264
|
+
* @return {!proto.cms.CustomWidgetRequest} returns this
|
|
28265
|
+
*/
|
|
28266
|
+
proto.cms.CustomWidgetRequest.prototype.clearReplaceItems = function() {
|
|
28267
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
28268
|
+
};
|
|
28269
|
+
|
|
28270
|
+
|
|
28271
|
+
/**
|
|
28272
|
+
* Returns whether this field is set.
|
|
28273
|
+
* @return {boolean}
|
|
28274
|
+
*/
|
|
28275
|
+
proto.cms.CustomWidgetRequest.prototype.hasReplaceItems = function() {
|
|
28276
|
+
return jspb.Message.getField(this, 7) != null;
|
|
28277
|
+
};
|
|
28278
|
+
|
|
28279
|
+
|
|
27924
28280
|
|
|
27925
28281
|
|
|
27926
28282
|
|
|
@@ -44229,4 +44585,3726 @@ proto.cms.FooterBrandCoreBrief.prototype.hasSlug = function() {
|
|
|
44229
44585
|
};
|
|
44230
44586
|
|
|
44231
44587
|
|
|
44588
|
+
|
|
44589
|
+
|
|
44590
|
+
|
|
44591
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44592
|
+
/**
|
|
44593
|
+
* Creates an object representation of this proto.
|
|
44594
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44595
|
+
* Optional fields that are not set will be set to undefined.
|
|
44596
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44597
|
+
* For the list of reserved names please see:
|
|
44598
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44599
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44600
|
+
* JSPB instance for transitional soy proto support:
|
|
44601
|
+
* http://goto/soy-param-migration
|
|
44602
|
+
* @return {!Object}
|
|
44603
|
+
*/
|
|
44604
|
+
proto.cms.SetPresetWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
44605
|
+
return proto.cms.SetPresetWidgetRequest.toObject(opt_includeInstance, this);
|
|
44606
|
+
};
|
|
44607
|
+
|
|
44608
|
+
|
|
44609
|
+
/**
|
|
44610
|
+
* Static version of the {@see toObject} method.
|
|
44611
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44612
|
+
* the JSPB instance for transitional soy proto support:
|
|
44613
|
+
* http://goto/soy-param-migration
|
|
44614
|
+
* @param {!proto.cms.SetPresetWidgetRequest} msg The msg instance to transform.
|
|
44615
|
+
* @return {!Object}
|
|
44616
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44617
|
+
*/
|
|
44618
|
+
proto.cms.SetPresetWidgetRequest.toObject = function(includeInstance, msg) {
|
|
44619
|
+
var f, obj = {
|
|
44620
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44621
|
+
presetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
44622
|
+
widgetType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
44623
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
44624
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
44625
|
+
};
|
|
44626
|
+
|
|
44627
|
+
if (includeInstance) {
|
|
44628
|
+
obj.$jspbMessageInstance = msg;
|
|
44629
|
+
}
|
|
44630
|
+
return obj;
|
|
44631
|
+
};
|
|
44632
|
+
}
|
|
44633
|
+
|
|
44634
|
+
|
|
44635
|
+
/**
|
|
44636
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44637
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
44638
|
+
* @return {!proto.cms.SetPresetWidgetRequest}
|
|
44639
|
+
*/
|
|
44640
|
+
proto.cms.SetPresetWidgetRequest.deserializeBinary = function(bytes) {
|
|
44641
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44642
|
+
var msg = new proto.cms.SetPresetWidgetRequest;
|
|
44643
|
+
return proto.cms.SetPresetWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
44644
|
+
};
|
|
44645
|
+
|
|
44646
|
+
|
|
44647
|
+
/**
|
|
44648
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44649
|
+
* given reader into the given message object.
|
|
44650
|
+
* @param {!proto.cms.SetPresetWidgetRequest} msg The message object to deserialize into.
|
|
44651
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44652
|
+
* @return {!proto.cms.SetPresetWidgetRequest}
|
|
44653
|
+
*/
|
|
44654
|
+
proto.cms.SetPresetWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
44655
|
+
while (reader.nextField()) {
|
|
44656
|
+
if (reader.isEndGroup()) {
|
|
44657
|
+
break;
|
|
44658
|
+
}
|
|
44659
|
+
var field = reader.getFieldNumber();
|
|
44660
|
+
switch (field) {
|
|
44661
|
+
case 1:
|
|
44662
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44663
|
+
msg.setId(value);
|
|
44664
|
+
break;
|
|
44665
|
+
case 2:
|
|
44666
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44667
|
+
msg.setPresetId(value);
|
|
44668
|
+
break;
|
|
44669
|
+
case 3:
|
|
44670
|
+
var value = /** @type {string} */ (reader.readString());
|
|
44671
|
+
msg.setWidgetType(value);
|
|
44672
|
+
break;
|
|
44673
|
+
case 4:
|
|
44674
|
+
var value = /** @type {string} */ (reader.readString());
|
|
44675
|
+
msg.setContent(value);
|
|
44676
|
+
break;
|
|
44677
|
+
case 5:
|
|
44678
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44679
|
+
msg.setIsActive(value);
|
|
44680
|
+
break;
|
|
44681
|
+
default:
|
|
44682
|
+
reader.skipField();
|
|
44683
|
+
break;
|
|
44684
|
+
}
|
|
44685
|
+
}
|
|
44686
|
+
return msg;
|
|
44687
|
+
};
|
|
44688
|
+
|
|
44689
|
+
|
|
44690
|
+
/**
|
|
44691
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44692
|
+
* @return {!Uint8Array}
|
|
44693
|
+
*/
|
|
44694
|
+
proto.cms.SetPresetWidgetRequest.prototype.serializeBinary = function() {
|
|
44695
|
+
var writer = new jspb.BinaryWriter();
|
|
44696
|
+
proto.cms.SetPresetWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
44697
|
+
return writer.getResultBuffer();
|
|
44698
|
+
};
|
|
44699
|
+
|
|
44700
|
+
|
|
44701
|
+
/**
|
|
44702
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44703
|
+
* format), writing to the given BinaryWriter.
|
|
44704
|
+
* @param {!proto.cms.SetPresetWidgetRequest} message
|
|
44705
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44706
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44707
|
+
*/
|
|
44708
|
+
proto.cms.SetPresetWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
44709
|
+
var f = undefined;
|
|
44710
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
44711
|
+
if (f != null) {
|
|
44712
|
+
writer.writeInt32(
|
|
44713
|
+
1,
|
|
44714
|
+
f
|
|
44715
|
+
);
|
|
44716
|
+
}
|
|
44717
|
+
f = message.getPresetId();
|
|
44718
|
+
if (f !== 0) {
|
|
44719
|
+
writer.writeInt32(
|
|
44720
|
+
2,
|
|
44721
|
+
f
|
|
44722
|
+
);
|
|
44723
|
+
}
|
|
44724
|
+
f = message.getWidgetType();
|
|
44725
|
+
if (f.length > 0) {
|
|
44726
|
+
writer.writeString(
|
|
44727
|
+
3,
|
|
44728
|
+
f
|
|
44729
|
+
);
|
|
44730
|
+
}
|
|
44731
|
+
f = message.getContent();
|
|
44732
|
+
if (f.length > 0) {
|
|
44733
|
+
writer.writeString(
|
|
44734
|
+
4,
|
|
44735
|
+
f
|
|
44736
|
+
);
|
|
44737
|
+
}
|
|
44738
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
44739
|
+
if (f != null) {
|
|
44740
|
+
writer.writeInt32(
|
|
44741
|
+
5,
|
|
44742
|
+
f
|
|
44743
|
+
);
|
|
44744
|
+
}
|
|
44745
|
+
};
|
|
44746
|
+
|
|
44747
|
+
|
|
44748
|
+
/**
|
|
44749
|
+
* optional int32 id = 1;
|
|
44750
|
+
* @return {number}
|
|
44751
|
+
*/
|
|
44752
|
+
proto.cms.SetPresetWidgetRequest.prototype.getId = function() {
|
|
44753
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44754
|
+
};
|
|
44755
|
+
|
|
44756
|
+
|
|
44757
|
+
/**
|
|
44758
|
+
* @param {number} value
|
|
44759
|
+
* @return {!proto.cms.SetPresetWidgetRequest} returns this
|
|
44760
|
+
*/
|
|
44761
|
+
proto.cms.SetPresetWidgetRequest.prototype.setId = function(value) {
|
|
44762
|
+
return jspb.Message.setField(this, 1, value);
|
|
44763
|
+
};
|
|
44764
|
+
|
|
44765
|
+
|
|
44766
|
+
/**
|
|
44767
|
+
* Clears the field making it undefined.
|
|
44768
|
+
* @return {!proto.cms.SetPresetWidgetRequest} returns this
|
|
44769
|
+
*/
|
|
44770
|
+
proto.cms.SetPresetWidgetRequest.prototype.clearId = function() {
|
|
44771
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
44772
|
+
};
|
|
44773
|
+
|
|
44774
|
+
|
|
44775
|
+
/**
|
|
44776
|
+
* Returns whether this field is set.
|
|
44777
|
+
* @return {boolean}
|
|
44778
|
+
*/
|
|
44779
|
+
proto.cms.SetPresetWidgetRequest.prototype.hasId = function() {
|
|
44780
|
+
return jspb.Message.getField(this, 1) != null;
|
|
44781
|
+
};
|
|
44782
|
+
|
|
44783
|
+
|
|
44784
|
+
/**
|
|
44785
|
+
* optional int32 preset_id = 2;
|
|
44786
|
+
* @return {number}
|
|
44787
|
+
*/
|
|
44788
|
+
proto.cms.SetPresetWidgetRequest.prototype.getPresetId = function() {
|
|
44789
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
44790
|
+
};
|
|
44791
|
+
|
|
44792
|
+
|
|
44793
|
+
/**
|
|
44794
|
+
* @param {number} value
|
|
44795
|
+
* @return {!proto.cms.SetPresetWidgetRequest} returns this
|
|
44796
|
+
*/
|
|
44797
|
+
proto.cms.SetPresetWidgetRequest.prototype.setPresetId = function(value) {
|
|
44798
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
44799
|
+
};
|
|
44800
|
+
|
|
44801
|
+
|
|
44802
|
+
/**
|
|
44803
|
+
* optional string widget_type = 3;
|
|
44804
|
+
* @return {string}
|
|
44805
|
+
*/
|
|
44806
|
+
proto.cms.SetPresetWidgetRequest.prototype.getWidgetType = function() {
|
|
44807
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
44808
|
+
};
|
|
44809
|
+
|
|
44810
|
+
|
|
44811
|
+
/**
|
|
44812
|
+
* @param {string} value
|
|
44813
|
+
* @return {!proto.cms.SetPresetWidgetRequest} returns this
|
|
44814
|
+
*/
|
|
44815
|
+
proto.cms.SetPresetWidgetRequest.prototype.setWidgetType = function(value) {
|
|
44816
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
44817
|
+
};
|
|
44818
|
+
|
|
44819
|
+
|
|
44820
|
+
/**
|
|
44821
|
+
* optional string content = 4;
|
|
44822
|
+
* @return {string}
|
|
44823
|
+
*/
|
|
44824
|
+
proto.cms.SetPresetWidgetRequest.prototype.getContent = function() {
|
|
44825
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
44826
|
+
};
|
|
44827
|
+
|
|
44828
|
+
|
|
44829
|
+
/**
|
|
44830
|
+
* @param {string} value
|
|
44831
|
+
* @return {!proto.cms.SetPresetWidgetRequest} returns this
|
|
44832
|
+
*/
|
|
44833
|
+
proto.cms.SetPresetWidgetRequest.prototype.setContent = function(value) {
|
|
44834
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
44835
|
+
};
|
|
44836
|
+
|
|
44837
|
+
|
|
44838
|
+
/**
|
|
44839
|
+
* optional int32 is_active = 5;
|
|
44840
|
+
* @return {number}
|
|
44841
|
+
*/
|
|
44842
|
+
proto.cms.SetPresetWidgetRequest.prototype.getIsActive = function() {
|
|
44843
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
44844
|
+
};
|
|
44845
|
+
|
|
44846
|
+
|
|
44847
|
+
/**
|
|
44848
|
+
* @param {number} value
|
|
44849
|
+
* @return {!proto.cms.SetPresetWidgetRequest} returns this
|
|
44850
|
+
*/
|
|
44851
|
+
proto.cms.SetPresetWidgetRequest.prototype.setIsActive = function(value) {
|
|
44852
|
+
return jspb.Message.setField(this, 5, value);
|
|
44853
|
+
};
|
|
44854
|
+
|
|
44855
|
+
|
|
44856
|
+
/**
|
|
44857
|
+
* Clears the field making it undefined.
|
|
44858
|
+
* @return {!proto.cms.SetPresetWidgetRequest} returns this
|
|
44859
|
+
*/
|
|
44860
|
+
proto.cms.SetPresetWidgetRequest.prototype.clearIsActive = function() {
|
|
44861
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
44862
|
+
};
|
|
44863
|
+
|
|
44864
|
+
|
|
44865
|
+
/**
|
|
44866
|
+
* Returns whether this field is set.
|
|
44867
|
+
* @return {boolean}
|
|
44868
|
+
*/
|
|
44869
|
+
proto.cms.SetPresetWidgetRequest.prototype.hasIsActive = function() {
|
|
44870
|
+
return jspb.Message.getField(this, 5) != null;
|
|
44871
|
+
};
|
|
44872
|
+
|
|
44873
|
+
|
|
44874
|
+
|
|
44875
|
+
|
|
44876
|
+
|
|
44877
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44878
|
+
/**
|
|
44879
|
+
* Creates an object representation of this proto.
|
|
44880
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44881
|
+
* Optional fields that are not set will be set to undefined.
|
|
44882
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44883
|
+
* For the list of reserved names please see:
|
|
44884
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44885
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44886
|
+
* JSPB instance for transitional soy proto support:
|
|
44887
|
+
* http://goto/soy-param-migration
|
|
44888
|
+
* @return {!Object}
|
|
44889
|
+
*/
|
|
44890
|
+
proto.cms.GetPresetWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
44891
|
+
return proto.cms.GetPresetWidgetRequest.toObject(opt_includeInstance, this);
|
|
44892
|
+
};
|
|
44893
|
+
|
|
44894
|
+
|
|
44895
|
+
/**
|
|
44896
|
+
* Static version of the {@see toObject} method.
|
|
44897
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44898
|
+
* the JSPB instance for transitional soy proto support:
|
|
44899
|
+
* http://goto/soy-param-migration
|
|
44900
|
+
* @param {!proto.cms.GetPresetWidgetRequest} msg The msg instance to transform.
|
|
44901
|
+
* @return {!Object}
|
|
44902
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44903
|
+
*/
|
|
44904
|
+
proto.cms.GetPresetWidgetRequest.toObject = function(includeInstance, msg) {
|
|
44905
|
+
var f, obj = {
|
|
44906
|
+
presetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44907
|
+
widgetType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
44908
|
+
geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
44909
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
44910
|
+
};
|
|
44911
|
+
|
|
44912
|
+
if (includeInstance) {
|
|
44913
|
+
obj.$jspbMessageInstance = msg;
|
|
44914
|
+
}
|
|
44915
|
+
return obj;
|
|
44916
|
+
};
|
|
44917
|
+
}
|
|
44918
|
+
|
|
44919
|
+
|
|
44920
|
+
/**
|
|
44921
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44922
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
44923
|
+
* @return {!proto.cms.GetPresetWidgetRequest}
|
|
44924
|
+
*/
|
|
44925
|
+
proto.cms.GetPresetWidgetRequest.deserializeBinary = function(bytes) {
|
|
44926
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44927
|
+
var msg = new proto.cms.GetPresetWidgetRequest;
|
|
44928
|
+
return proto.cms.GetPresetWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
44929
|
+
};
|
|
44930
|
+
|
|
44931
|
+
|
|
44932
|
+
/**
|
|
44933
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44934
|
+
* given reader into the given message object.
|
|
44935
|
+
* @param {!proto.cms.GetPresetWidgetRequest} msg The message object to deserialize into.
|
|
44936
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44937
|
+
* @return {!proto.cms.GetPresetWidgetRequest}
|
|
44938
|
+
*/
|
|
44939
|
+
proto.cms.GetPresetWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
44940
|
+
while (reader.nextField()) {
|
|
44941
|
+
if (reader.isEndGroup()) {
|
|
44942
|
+
break;
|
|
44943
|
+
}
|
|
44944
|
+
var field = reader.getFieldNumber();
|
|
44945
|
+
switch (field) {
|
|
44946
|
+
case 1:
|
|
44947
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44948
|
+
msg.setPresetId(value);
|
|
44949
|
+
break;
|
|
44950
|
+
case 2:
|
|
44951
|
+
var value = /** @type {string} */ (reader.readString());
|
|
44952
|
+
msg.setWidgetType(value);
|
|
44953
|
+
break;
|
|
44954
|
+
case 3:
|
|
44955
|
+
var value = /** @type {string} */ (reader.readString());
|
|
44956
|
+
msg.setGeo(value);
|
|
44957
|
+
break;
|
|
44958
|
+
case 4:
|
|
44959
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
44960
|
+
msg.setAdminSide(value);
|
|
44961
|
+
break;
|
|
44962
|
+
default:
|
|
44963
|
+
reader.skipField();
|
|
44964
|
+
break;
|
|
44965
|
+
}
|
|
44966
|
+
}
|
|
44967
|
+
return msg;
|
|
44968
|
+
};
|
|
44969
|
+
|
|
44970
|
+
|
|
44971
|
+
/**
|
|
44972
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44973
|
+
* @return {!Uint8Array}
|
|
44974
|
+
*/
|
|
44975
|
+
proto.cms.GetPresetWidgetRequest.prototype.serializeBinary = function() {
|
|
44976
|
+
var writer = new jspb.BinaryWriter();
|
|
44977
|
+
proto.cms.GetPresetWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
44978
|
+
return writer.getResultBuffer();
|
|
44979
|
+
};
|
|
44980
|
+
|
|
44981
|
+
|
|
44982
|
+
/**
|
|
44983
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44984
|
+
* format), writing to the given BinaryWriter.
|
|
44985
|
+
* @param {!proto.cms.GetPresetWidgetRequest} message
|
|
44986
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44987
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44988
|
+
*/
|
|
44989
|
+
proto.cms.GetPresetWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
44990
|
+
var f = undefined;
|
|
44991
|
+
f = message.getPresetId();
|
|
44992
|
+
if (f !== 0) {
|
|
44993
|
+
writer.writeInt32(
|
|
44994
|
+
1,
|
|
44995
|
+
f
|
|
44996
|
+
);
|
|
44997
|
+
}
|
|
44998
|
+
f = message.getWidgetType();
|
|
44999
|
+
if (f.length > 0) {
|
|
45000
|
+
writer.writeString(
|
|
45001
|
+
2,
|
|
45002
|
+
f
|
|
45003
|
+
);
|
|
45004
|
+
}
|
|
45005
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
45006
|
+
if (f != null) {
|
|
45007
|
+
writer.writeString(
|
|
45008
|
+
3,
|
|
45009
|
+
f
|
|
45010
|
+
);
|
|
45011
|
+
}
|
|
45012
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
|
|
45013
|
+
if (f != null) {
|
|
45014
|
+
writer.writeBool(
|
|
45015
|
+
4,
|
|
45016
|
+
f
|
|
45017
|
+
);
|
|
45018
|
+
}
|
|
45019
|
+
};
|
|
45020
|
+
|
|
45021
|
+
|
|
45022
|
+
/**
|
|
45023
|
+
* optional int32 preset_id = 1;
|
|
45024
|
+
* @return {number}
|
|
45025
|
+
*/
|
|
45026
|
+
proto.cms.GetPresetWidgetRequest.prototype.getPresetId = function() {
|
|
45027
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
45028
|
+
};
|
|
45029
|
+
|
|
45030
|
+
|
|
45031
|
+
/**
|
|
45032
|
+
* @param {number} value
|
|
45033
|
+
* @return {!proto.cms.GetPresetWidgetRequest} returns this
|
|
45034
|
+
*/
|
|
45035
|
+
proto.cms.GetPresetWidgetRequest.prototype.setPresetId = function(value) {
|
|
45036
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
45037
|
+
};
|
|
45038
|
+
|
|
45039
|
+
|
|
45040
|
+
/**
|
|
45041
|
+
* optional string widget_type = 2;
|
|
45042
|
+
* @return {string}
|
|
45043
|
+
*/
|
|
45044
|
+
proto.cms.GetPresetWidgetRequest.prototype.getWidgetType = function() {
|
|
45045
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
45046
|
+
};
|
|
45047
|
+
|
|
45048
|
+
|
|
45049
|
+
/**
|
|
45050
|
+
* @param {string} value
|
|
45051
|
+
* @return {!proto.cms.GetPresetWidgetRequest} returns this
|
|
45052
|
+
*/
|
|
45053
|
+
proto.cms.GetPresetWidgetRequest.prototype.setWidgetType = function(value) {
|
|
45054
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
45055
|
+
};
|
|
45056
|
+
|
|
45057
|
+
|
|
45058
|
+
/**
|
|
45059
|
+
* optional string geo = 3;
|
|
45060
|
+
* @return {string}
|
|
45061
|
+
*/
|
|
45062
|
+
proto.cms.GetPresetWidgetRequest.prototype.getGeo = function() {
|
|
45063
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
45064
|
+
};
|
|
45065
|
+
|
|
45066
|
+
|
|
45067
|
+
/**
|
|
45068
|
+
* @param {string} value
|
|
45069
|
+
* @return {!proto.cms.GetPresetWidgetRequest} returns this
|
|
45070
|
+
*/
|
|
45071
|
+
proto.cms.GetPresetWidgetRequest.prototype.setGeo = function(value) {
|
|
45072
|
+
return jspb.Message.setField(this, 3, value);
|
|
45073
|
+
};
|
|
45074
|
+
|
|
45075
|
+
|
|
45076
|
+
/**
|
|
45077
|
+
* Clears the field making it undefined.
|
|
45078
|
+
* @return {!proto.cms.GetPresetWidgetRequest} returns this
|
|
45079
|
+
*/
|
|
45080
|
+
proto.cms.GetPresetWidgetRequest.prototype.clearGeo = function() {
|
|
45081
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
45082
|
+
};
|
|
45083
|
+
|
|
45084
|
+
|
|
45085
|
+
/**
|
|
45086
|
+
* Returns whether this field is set.
|
|
45087
|
+
* @return {boolean}
|
|
45088
|
+
*/
|
|
45089
|
+
proto.cms.GetPresetWidgetRequest.prototype.hasGeo = function() {
|
|
45090
|
+
return jspb.Message.getField(this, 3) != null;
|
|
45091
|
+
};
|
|
45092
|
+
|
|
45093
|
+
|
|
45094
|
+
/**
|
|
45095
|
+
* optional bool admin_side = 4;
|
|
45096
|
+
* @return {boolean}
|
|
45097
|
+
*/
|
|
45098
|
+
proto.cms.GetPresetWidgetRequest.prototype.getAdminSide = function() {
|
|
45099
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
45100
|
+
};
|
|
45101
|
+
|
|
45102
|
+
|
|
45103
|
+
/**
|
|
45104
|
+
* @param {boolean} value
|
|
45105
|
+
* @return {!proto.cms.GetPresetWidgetRequest} returns this
|
|
45106
|
+
*/
|
|
45107
|
+
proto.cms.GetPresetWidgetRequest.prototype.setAdminSide = function(value) {
|
|
45108
|
+
return jspb.Message.setField(this, 4, value);
|
|
45109
|
+
};
|
|
45110
|
+
|
|
45111
|
+
|
|
45112
|
+
/**
|
|
45113
|
+
* Clears the field making it undefined.
|
|
45114
|
+
* @return {!proto.cms.GetPresetWidgetRequest} returns this
|
|
45115
|
+
*/
|
|
45116
|
+
proto.cms.GetPresetWidgetRequest.prototype.clearAdminSide = function() {
|
|
45117
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
45118
|
+
};
|
|
45119
|
+
|
|
45120
|
+
|
|
45121
|
+
/**
|
|
45122
|
+
* Returns whether this field is set.
|
|
45123
|
+
* @return {boolean}
|
|
45124
|
+
*/
|
|
45125
|
+
proto.cms.GetPresetWidgetRequest.prototype.hasAdminSide = function() {
|
|
45126
|
+
return jspb.Message.getField(this, 4) != null;
|
|
45127
|
+
};
|
|
45128
|
+
|
|
45129
|
+
|
|
45130
|
+
|
|
45131
|
+
|
|
45132
|
+
|
|
45133
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45134
|
+
/**
|
|
45135
|
+
* Creates an object representation of this proto.
|
|
45136
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45137
|
+
* Optional fields that are not set will be set to undefined.
|
|
45138
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45139
|
+
* For the list of reserved names please see:
|
|
45140
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45141
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45142
|
+
* JSPB instance for transitional soy proto support:
|
|
45143
|
+
* http://goto/soy-param-migration
|
|
45144
|
+
* @return {!Object}
|
|
45145
|
+
*/
|
|
45146
|
+
proto.cms.ReadPresetWidgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
45147
|
+
return proto.cms.ReadPresetWidgetRequest.toObject(opt_includeInstance, this);
|
|
45148
|
+
};
|
|
45149
|
+
|
|
45150
|
+
|
|
45151
|
+
/**
|
|
45152
|
+
* Static version of the {@see toObject} method.
|
|
45153
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45154
|
+
* the JSPB instance for transitional soy proto support:
|
|
45155
|
+
* http://goto/soy-param-migration
|
|
45156
|
+
* @param {!proto.cms.ReadPresetWidgetRequest} msg The msg instance to transform.
|
|
45157
|
+
* @return {!Object}
|
|
45158
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45159
|
+
*/
|
|
45160
|
+
proto.cms.ReadPresetWidgetRequest.toObject = function(includeInstance, msg) {
|
|
45161
|
+
var f, obj = {
|
|
45162
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
45163
|
+
};
|
|
45164
|
+
|
|
45165
|
+
if (includeInstance) {
|
|
45166
|
+
obj.$jspbMessageInstance = msg;
|
|
45167
|
+
}
|
|
45168
|
+
return obj;
|
|
45169
|
+
};
|
|
45170
|
+
}
|
|
45171
|
+
|
|
45172
|
+
|
|
45173
|
+
/**
|
|
45174
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45175
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45176
|
+
* @return {!proto.cms.ReadPresetWidgetRequest}
|
|
45177
|
+
*/
|
|
45178
|
+
proto.cms.ReadPresetWidgetRequest.deserializeBinary = function(bytes) {
|
|
45179
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45180
|
+
var msg = new proto.cms.ReadPresetWidgetRequest;
|
|
45181
|
+
return proto.cms.ReadPresetWidgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
45182
|
+
};
|
|
45183
|
+
|
|
45184
|
+
|
|
45185
|
+
/**
|
|
45186
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45187
|
+
* given reader into the given message object.
|
|
45188
|
+
* @param {!proto.cms.ReadPresetWidgetRequest} msg The message object to deserialize into.
|
|
45189
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45190
|
+
* @return {!proto.cms.ReadPresetWidgetRequest}
|
|
45191
|
+
*/
|
|
45192
|
+
proto.cms.ReadPresetWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
45193
|
+
while (reader.nextField()) {
|
|
45194
|
+
if (reader.isEndGroup()) {
|
|
45195
|
+
break;
|
|
45196
|
+
}
|
|
45197
|
+
var field = reader.getFieldNumber();
|
|
45198
|
+
switch (field) {
|
|
45199
|
+
case 1:
|
|
45200
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45201
|
+
msg.setId(value);
|
|
45202
|
+
break;
|
|
45203
|
+
default:
|
|
45204
|
+
reader.skipField();
|
|
45205
|
+
break;
|
|
45206
|
+
}
|
|
45207
|
+
}
|
|
45208
|
+
return msg;
|
|
45209
|
+
};
|
|
45210
|
+
|
|
45211
|
+
|
|
45212
|
+
/**
|
|
45213
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45214
|
+
* @return {!Uint8Array}
|
|
45215
|
+
*/
|
|
45216
|
+
proto.cms.ReadPresetWidgetRequest.prototype.serializeBinary = function() {
|
|
45217
|
+
var writer = new jspb.BinaryWriter();
|
|
45218
|
+
proto.cms.ReadPresetWidgetRequest.serializeBinaryToWriter(this, writer);
|
|
45219
|
+
return writer.getResultBuffer();
|
|
45220
|
+
};
|
|
45221
|
+
|
|
45222
|
+
|
|
45223
|
+
/**
|
|
45224
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45225
|
+
* format), writing to the given BinaryWriter.
|
|
45226
|
+
* @param {!proto.cms.ReadPresetWidgetRequest} message
|
|
45227
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45228
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45229
|
+
*/
|
|
45230
|
+
proto.cms.ReadPresetWidgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
45231
|
+
var f = undefined;
|
|
45232
|
+
f = message.getId();
|
|
45233
|
+
if (f !== 0) {
|
|
45234
|
+
writer.writeInt32(
|
|
45235
|
+
1,
|
|
45236
|
+
f
|
|
45237
|
+
);
|
|
45238
|
+
}
|
|
45239
|
+
};
|
|
45240
|
+
|
|
45241
|
+
|
|
45242
|
+
/**
|
|
45243
|
+
* optional int32 id = 1;
|
|
45244
|
+
* @return {number}
|
|
45245
|
+
*/
|
|
45246
|
+
proto.cms.ReadPresetWidgetRequest.prototype.getId = function() {
|
|
45247
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
45248
|
+
};
|
|
45249
|
+
|
|
45250
|
+
|
|
45251
|
+
/**
|
|
45252
|
+
* @param {number} value
|
|
45253
|
+
* @return {!proto.cms.ReadPresetWidgetRequest} returns this
|
|
45254
|
+
*/
|
|
45255
|
+
proto.cms.ReadPresetWidgetRequest.prototype.setId = function(value) {
|
|
45256
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
45257
|
+
};
|
|
45258
|
+
|
|
45259
|
+
|
|
45260
|
+
|
|
45261
|
+
|
|
45262
|
+
|
|
45263
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45264
|
+
/**
|
|
45265
|
+
* Creates an object representation of this proto.
|
|
45266
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45267
|
+
* Optional fields that are not set will be set to undefined.
|
|
45268
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45269
|
+
* For the list of reserved names please see:
|
|
45270
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45271
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45272
|
+
* JSPB instance for transitional soy proto support:
|
|
45273
|
+
* http://goto/soy-param-migration
|
|
45274
|
+
* @return {!Object}
|
|
45275
|
+
*/
|
|
45276
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
45277
|
+
return proto.cms.ReadListPresetWidgetsRequest.toObject(opt_includeInstance, this);
|
|
45278
|
+
};
|
|
45279
|
+
|
|
45280
|
+
|
|
45281
|
+
/**
|
|
45282
|
+
* Static version of the {@see toObject} method.
|
|
45283
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45284
|
+
* the JSPB instance for transitional soy proto support:
|
|
45285
|
+
* http://goto/soy-param-migration
|
|
45286
|
+
* @param {!proto.cms.ReadListPresetWidgetsRequest} msg The msg instance to transform.
|
|
45287
|
+
* @return {!Object}
|
|
45288
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45289
|
+
*/
|
|
45290
|
+
proto.cms.ReadListPresetWidgetsRequest.toObject = function(includeInstance, msg) {
|
|
45291
|
+
var f, obj = {
|
|
45292
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
45293
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
45294
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
45295
|
+
presetId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
45296
|
+
widgetType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
45297
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
45298
|
+
};
|
|
45299
|
+
|
|
45300
|
+
if (includeInstance) {
|
|
45301
|
+
obj.$jspbMessageInstance = msg;
|
|
45302
|
+
}
|
|
45303
|
+
return obj;
|
|
45304
|
+
};
|
|
45305
|
+
}
|
|
45306
|
+
|
|
45307
|
+
|
|
45308
|
+
/**
|
|
45309
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45310
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45311
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest}
|
|
45312
|
+
*/
|
|
45313
|
+
proto.cms.ReadListPresetWidgetsRequest.deserializeBinary = function(bytes) {
|
|
45314
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45315
|
+
var msg = new proto.cms.ReadListPresetWidgetsRequest;
|
|
45316
|
+
return proto.cms.ReadListPresetWidgetsRequest.deserializeBinaryFromReader(msg, reader);
|
|
45317
|
+
};
|
|
45318
|
+
|
|
45319
|
+
|
|
45320
|
+
/**
|
|
45321
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45322
|
+
* given reader into the given message object.
|
|
45323
|
+
* @param {!proto.cms.ReadListPresetWidgetsRequest} msg The message object to deserialize into.
|
|
45324
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45325
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest}
|
|
45326
|
+
*/
|
|
45327
|
+
proto.cms.ReadListPresetWidgetsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
45328
|
+
while (reader.nextField()) {
|
|
45329
|
+
if (reader.isEndGroup()) {
|
|
45330
|
+
break;
|
|
45331
|
+
}
|
|
45332
|
+
var field = reader.getFieldNumber();
|
|
45333
|
+
switch (field) {
|
|
45334
|
+
case 1:
|
|
45335
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45336
|
+
msg.setLimit(value);
|
|
45337
|
+
break;
|
|
45338
|
+
case 2:
|
|
45339
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45340
|
+
msg.setOffset(value);
|
|
45341
|
+
break;
|
|
45342
|
+
case 3:
|
|
45343
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45344
|
+
msg.setOrder(value);
|
|
45345
|
+
break;
|
|
45346
|
+
case 4:
|
|
45347
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45348
|
+
msg.setPresetId(value);
|
|
45349
|
+
break;
|
|
45350
|
+
case 5:
|
|
45351
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45352
|
+
msg.setWidgetType(value);
|
|
45353
|
+
break;
|
|
45354
|
+
case 6:
|
|
45355
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45356
|
+
msg.setIsActive(value);
|
|
45357
|
+
break;
|
|
45358
|
+
default:
|
|
45359
|
+
reader.skipField();
|
|
45360
|
+
break;
|
|
45361
|
+
}
|
|
45362
|
+
}
|
|
45363
|
+
return msg;
|
|
45364
|
+
};
|
|
45365
|
+
|
|
45366
|
+
|
|
45367
|
+
/**
|
|
45368
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45369
|
+
* @return {!Uint8Array}
|
|
45370
|
+
*/
|
|
45371
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.serializeBinary = function() {
|
|
45372
|
+
var writer = new jspb.BinaryWriter();
|
|
45373
|
+
proto.cms.ReadListPresetWidgetsRequest.serializeBinaryToWriter(this, writer);
|
|
45374
|
+
return writer.getResultBuffer();
|
|
45375
|
+
};
|
|
45376
|
+
|
|
45377
|
+
|
|
45378
|
+
/**
|
|
45379
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45380
|
+
* format), writing to the given BinaryWriter.
|
|
45381
|
+
* @param {!proto.cms.ReadListPresetWidgetsRequest} message
|
|
45382
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45383
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45384
|
+
*/
|
|
45385
|
+
proto.cms.ReadListPresetWidgetsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
45386
|
+
var f = undefined;
|
|
45387
|
+
f = message.getLimit();
|
|
45388
|
+
if (f !== 0) {
|
|
45389
|
+
writer.writeInt32(
|
|
45390
|
+
1,
|
|
45391
|
+
f
|
|
45392
|
+
);
|
|
45393
|
+
}
|
|
45394
|
+
f = message.getOffset();
|
|
45395
|
+
if (f !== 0) {
|
|
45396
|
+
writer.writeInt32(
|
|
45397
|
+
2,
|
|
45398
|
+
f
|
|
45399
|
+
);
|
|
45400
|
+
}
|
|
45401
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
45402
|
+
if (f != null) {
|
|
45403
|
+
writer.writeString(
|
|
45404
|
+
3,
|
|
45405
|
+
f
|
|
45406
|
+
);
|
|
45407
|
+
}
|
|
45408
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
45409
|
+
if (f != null) {
|
|
45410
|
+
writer.writeInt32(
|
|
45411
|
+
4,
|
|
45412
|
+
f
|
|
45413
|
+
);
|
|
45414
|
+
}
|
|
45415
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
45416
|
+
if (f != null) {
|
|
45417
|
+
writer.writeString(
|
|
45418
|
+
5,
|
|
45419
|
+
f
|
|
45420
|
+
);
|
|
45421
|
+
}
|
|
45422
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
45423
|
+
if (f != null) {
|
|
45424
|
+
writer.writeInt32(
|
|
45425
|
+
6,
|
|
45426
|
+
f
|
|
45427
|
+
);
|
|
45428
|
+
}
|
|
45429
|
+
};
|
|
45430
|
+
|
|
45431
|
+
|
|
45432
|
+
/**
|
|
45433
|
+
* optional int32 limit = 1;
|
|
45434
|
+
* @return {number}
|
|
45435
|
+
*/
|
|
45436
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.getLimit = function() {
|
|
45437
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
45438
|
+
};
|
|
45439
|
+
|
|
45440
|
+
|
|
45441
|
+
/**
|
|
45442
|
+
* @param {number} value
|
|
45443
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45444
|
+
*/
|
|
45445
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.setLimit = function(value) {
|
|
45446
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
45447
|
+
};
|
|
45448
|
+
|
|
45449
|
+
|
|
45450
|
+
/**
|
|
45451
|
+
* optional int32 offset = 2;
|
|
45452
|
+
* @return {number}
|
|
45453
|
+
*/
|
|
45454
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.getOffset = function() {
|
|
45455
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
45456
|
+
};
|
|
45457
|
+
|
|
45458
|
+
|
|
45459
|
+
/**
|
|
45460
|
+
* @param {number} value
|
|
45461
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45462
|
+
*/
|
|
45463
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.setOffset = function(value) {
|
|
45464
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
45465
|
+
};
|
|
45466
|
+
|
|
45467
|
+
|
|
45468
|
+
/**
|
|
45469
|
+
* optional string order = 3;
|
|
45470
|
+
* @return {string}
|
|
45471
|
+
*/
|
|
45472
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.getOrder = function() {
|
|
45473
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
45474
|
+
};
|
|
45475
|
+
|
|
45476
|
+
|
|
45477
|
+
/**
|
|
45478
|
+
* @param {string} value
|
|
45479
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45480
|
+
*/
|
|
45481
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.setOrder = function(value) {
|
|
45482
|
+
return jspb.Message.setField(this, 3, value);
|
|
45483
|
+
};
|
|
45484
|
+
|
|
45485
|
+
|
|
45486
|
+
/**
|
|
45487
|
+
* Clears the field making it undefined.
|
|
45488
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45489
|
+
*/
|
|
45490
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.clearOrder = function() {
|
|
45491
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
45492
|
+
};
|
|
45493
|
+
|
|
45494
|
+
|
|
45495
|
+
/**
|
|
45496
|
+
* Returns whether this field is set.
|
|
45497
|
+
* @return {boolean}
|
|
45498
|
+
*/
|
|
45499
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.hasOrder = function() {
|
|
45500
|
+
return jspb.Message.getField(this, 3) != null;
|
|
45501
|
+
};
|
|
45502
|
+
|
|
45503
|
+
|
|
45504
|
+
/**
|
|
45505
|
+
* optional int32 preset_id = 4;
|
|
45506
|
+
* @return {number}
|
|
45507
|
+
*/
|
|
45508
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.getPresetId = function() {
|
|
45509
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
45510
|
+
};
|
|
45511
|
+
|
|
45512
|
+
|
|
45513
|
+
/**
|
|
45514
|
+
* @param {number} value
|
|
45515
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45516
|
+
*/
|
|
45517
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.setPresetId = function(value) {
|
|
45518
|
+
return jspb.Message.setField(this, 4, value);
|
|
45519
|
+
};
|
|
45520
|
+
|
|
45521
|
+
|
|
45522
|
+
/**
|
|
45523
|
+
* Clears the field making it undefined.
|
|
45524
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45525
|
+
*/
|
|
45526
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.clearPresetId = function() {
|
|
45527
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
45528
|
+
};
|
|
45529
|
+
|
|
45530
|
+
|
|
45531
|
+
/**
|
|
45532
|
+
* Returns whether this field is set.
|
|
45533
|
+
* @return {boolean}
|
|
45534
|
+
*/
|
|
45535
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.hasPresetId = function() {
|
|
45536
|
+
return jspb.Message.getField(this, 4) != null;
|
|
45537
|
+
};
|
|
45538
|
+
|
|
45539
|
+
|
|
45540
|
+
/**
|
|
45541
|
+
* optional string widget_type = 5;
|
|
45542
|
+
* @return {string}
|
|
45543
|
+
*/
|
|
45544
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.getWidgetType = function() {
|
|
45545
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
45546
|
+
};
|
|
45547
|
+
|
|
45548
|
+
|
|
45549
|
+
/**
|
|
45550
|
+
* @param {string} value
|
|
45551
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45552
|
+
*/
|
|
45553
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.setWidgetType = function(value) {
|
|
45554
|
+
return jspb.Message.setField(this, 5, value);
|
|
45555
|
+
};
|
|
45556
|
+
|
|
45557
|
+
|
|
45558
|
+
/**
|
|
45559
|
+
* Clears the field making it undefined.
|
|
45560
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45561
|
+
*/
|
|
45562
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.clearWidgetType = function() {
|
|
45563
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
45564
|
+
};
|
|
45565
|
+
|
|
45566
|
+
|
|
45567
|
+
/**
|
|
45568
|
+
* Returns whether this field is set.
|
|
45569
|
+
* @return {boolean}
|
|
45570
|
+
*/
|
|
45571
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.hasWidgetType = function() {
|
|
45572
|
+
return jspb.Message.getField(this, 5) != null;
|
|
45573
|
+
};
|
|
45574
|
+
|
|
45575
|
+
|
|
45576
|
+
/**
|
|
45577
|
+
* optional int32 is_active = 6;
|
|
45578
|
+
* @return {number}
|
|
45579
|
+
*/
|
|
45580
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.getIsActive = function() {
|
|
45581
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
45582
|
+
};
|
|
45583
|
+
|
|
45584
|
+
|
|
45585
|
+
/**
|
|
45586
|
+
* @param {number} value
|
|
45587
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45588
|
+
*/
|
|
45589
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.setIsActive = function(value) {
|
|
45590
|
+
return jspb.Message.setField(this, 6, value);
|
|
45591
|
+
};
|
|
45592
|
+
|
|
45593
|
+
|
|
45594
|
+
/**
|
|
45595
|
+
* Clears the field making it undefined.
|
|
45596
|
+
* @return {!proto.cms.ReadListPresetWidgetsRequest} returns this
|
|
45597
|
+
*/
|
|
45598
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.clearIsActive = function() {
|
|
45599
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
45600
|
+
};
|
|
45601
|
+
|
|
45602
|
+
|
|
45603
|
+
/**
|
|
45604
|
+
* Returns whether this field is set.
|
|
45605
|
+
* @return {boolean}
|
|
45606
|
+
*/
|
|
45607
|
+
proto.cms.ReadListPresetWidgetsRequest.prototype.hasIsActive = function() {
|
|
45608
|
+
return jspb.Message.getField(this, 6) != null;
|
|
45609
|
+
};
|
|
45610
|
+
|
|
45611
|
+
|
|
45612
|
+
|
|
45613
|
+
|
|
45614
|
+
|
|
45615
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45616
|
+
/**
|
|
45617
|
+
* Creates an object representation of this proto.
|
|
45618
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45619
|
+
* Optional fields that are not set will be set to undefined.
|
|
45620
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45621
|
+
* For the list of reserved names please see:
|
|
45622
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45623
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45624
|
+
* JSPB instance for transitional soy proto support:
|
|
45625
|
+
* http://goto/soy-param-migration
|
|
45626
|
+
* @return {!Object}
|
|
45627
|
+
*/
|
|
45628
|
+
proto.cms.PresetWidgetItem.prototype.toObject = function(opt_includeInstance) {
|
|
45629
|
+
return proto.cms.PresetWidgetItem.toObject(opt_includeInstance, this);
|
|
45630
|
+
};
|
|
45631
|
+
|
|
45632
|
+
|
|
45633
|
+
/**
|
|
45634
|
+
* Static version of the {@see toObject} method.
|
|
45635
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45636
|
+
* the JSPB instance for transitional soy proto support:
|
|
45637
|
+
* http://goto/soy-param-migration
|
|
45638
|
+
* @param {!proto.cms.PresetWidgetItem} msg The msg instance to transform.
|
|
45639
|
+
* @return {!Object}
|
|
45640
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45641
|
+
*/
|
|
45642
|
+
proto.cms.PresetWidgetItem.toObject = function(includeInstance, msg) {
|
|
45643
|
+
var f, obj = {
|
|
45644
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
45645
|
+
presetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
45646
|
+
widgetType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
45647
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
45648
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
45649
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
45650
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
45651
|
+
};
|
|
45652
|
+
|
|
45653
|
+
if (includeInstance) {
|
|
45654
|
+
obj.$jspbMessageInstance = msg;
|
|
45655
|
+
}
|
|
45656
|
+
return obj;
|
|
45657
|
+
};
|
|
45658
|
+
}
|
|
45659
|
+
|
|
45660
|
+
|
|
45661
|
+
/**
|
|
45662
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45663
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45664
|
+
* @return {!proto.cms.PresetWidgetItem}
|
|
45665
|
+
*/
|
|
45666
|
+
proto.cms.PresetWidgetItem.deserializeBinary = function(bytes) {
|
|
45667
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45668
|
+
var msg = new proto.cms.PresetWidgetItem;
|
|
45669
|
+
return proto.cms.PresetWidgetItem.deserializeBinaryFromReader(msg, reader);
|
|
45670
|
+
};
|
|
45671
|
+
|
|
45672
|
+
|
|
45673
|
+
/**
|
|
45674
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45675
|
+
* given reader into the given message object.
|
|
45676
|
+
* @param {!proto.cms.PresetWidgetItem} msg The message object to deserialize into.
|
|
45677
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45678
|
+
* @return {!proto.cms.PresetWidgetItem}
|
|
45679
|
+
*/
|
|
45680
|
+
proto.cms.PresetWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
45681
|
+
while (reader.nextField()) {
|
|
45682
|
+
if (reader.isEndGroup()) {
|
|
45683
|
+
break;
|
|
45684
|
+
}
|
|
45685
|
+
var field = reader.getFieldNumber();
|
|
45686
|
+
switch (field) {
|
|
45687
|
+
case 1:
|
|
45688
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45689
|
+
msg.setId(value);
|
|
45690
|
+
break;
|
|
45691
|
+
case 2:
|
|
45692
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45693
|
+
msg.setPresetId(value);
|
|
45694
|
+
break;
|
|
45695
|
+
case 3:
|
|
45696
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45697
|
+
msg.setWidgetType(value);
|
|
45698
|
+
break;
|
|
45699
|
+
case 4:
|
|
45700
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45701
|
+
msg.setContent(value);
|
|
45702
|
+
break;
|
|
45703
|
+
case 5:
|
|
45704
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
45705
|
+
msg.setIsActive(value);
|
|
45706
|
+
break;
|
|
45707
|
+
case 6:
|
|
45708
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45709
|
+
msg.setCreatedAt(value);
|
|
45710
|
+
break;
|
|
45711
|
+
case 7:
|
|
45712
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45713
|
+
msg.setUpdatedAt(value);
|
|
45714
|
+
break;
|
|
45715
|
+
default:
|
|
45716
|
+
reader.skipField();
|
|
45717
|
+
break;
|
|
45718
|
+
}
|
|
45719
|
+
}
|
|
45720
|
+
return msg;
|
|
45721
|
+
};
|
|
45722
|
+
|
|
45723
|
+
|
|
45724
|
+
/**
|
|
45725
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45726
|
+
* @return {!Uint8Array}
|
|
45727
|
+
*/
|
|
45728
|
+
proto.cms.PresetWidgetItem.prototype.serializeBinary = function() {
|
|
45729
|
+
var writer = new jspb.BinaryWriter();
|
|
45730
|
+
proto.cms.PresetWidgetItem.serializeBinaryToWriter(this, writer);
|
|
45731
|
+
return writer.getResultBuffer();
|
|
45732
|
+
};
|
|
45733
|
+
|
|
45734
|
+
|
|
45735
|
+
/**
|
|
45736
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45737
|
+
* format), writing to the given BinaryWriter.
|
|
45738
|
+
* @param {!proto.cms.PresetWidgetItem} message
|
|
45739
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45740
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45741
|
+
*/
|
|
45742
|
+
proto.cms.PresetWidgetItem.serializeBinaryToWriter = function(message, writer) {
|
|
45743
|
+
var f = undefined;
|
|
45744
|
+
f = message.getId();
|
|
45745
|
+
if (f !== 0) {
|
|
45746
|
+
writer.writeInt32(
|
|
45747
|
+
1,
|
|
45748
|
+
f
|
|
45749
|
+
);
|
|
45750
|
+
}
|
|
45751
|
+
f = message.getPresetId();
|
|
45752
|
+
if (f !== 0) {
|
|
45753
|
+
writer.writeInt32(
|
|
45754
|
+
2,
|
|
45755
|
+
f
|
|
45756
|
+
);
|
|
45757
|
+
}
|
|
45758
|
+
f = message.getWidgetType();
|
|
45759
|
+
if (f.length > 0) {
|
|
45760
|
+
writer.writeString(
|
|
45761
|
+
3,
|
|
45762
|
+
f
|
|
45763
|
+
);
|
|
45764
|
+
}
|
|
45765
|
+
f = message.getContent();
|
|
45766
|
+
if (f.length > 0) {
|
|
45767
|
+
writer.writeString(
|
|
45768
|
+
4,
|
|
45769
|
+
f
|
|
45770
|
+
);
|
|
45771
|
+
}
|
|
45772
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
45773
|
+
if (f != null) {
|
|
45774
|
+
writer.writeInt32(
|
|
45775
|
+
5,
|
|
45776
|
+
f
|
|
45777
|
+
);
|
|
45778
|
+
}
|
|
45779
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
45780
|
+
if (f != null) {
|
|
45781
|
+
writer.writeString(
|
|
45782
|
+
6,
|
|
45783
|
+
f
|
|
45784
|
+
);
|
|
45785
|
+
}
|
|
45786
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
45787
|
+
if (f != null) {
|
|
45788
|
+
writer.writeString(
|
|
45789
|
+
7,
|
|
45790
|
+
f
|
|
45791
|
+
);
|
|
45792
|
+
}
|
|
45793
|
+
};
|
|
45794
|
+
|
|
45795
|
+
|
|
45796
|
+
/**
|
|
45797
|
+
* optional int32 id = 1;
|
|
45798
|
+
* @return {number}
|
|
45799
|
+
*/
|
|
45800
|
+
proto.cms.PresetWidgetItem.prototype.getId = function() {
|
|
45801
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
45802
|
+
};
|
|
45803
|
+
|
|
45804
|
+
|
|
45805
|
+
/**
|
|
45806
|
+
* @param {number} value
|
|
45807
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45808
|
+
*/
|
|
45809
|
+
proto.cms.PresetWidgetItem.prototype.setId = function(value) {
|
|
45810
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
45811
|
+
};
|
|
45812
|
+
|
|
45813
|
+
|
|
45814
|
+
/**
|
|
45815
|
+
* optional int32 preset_id = 2;
|
|
45816
|
+
* @return {number}
|
|
45817
|
+
*/
|
|
45818
|
+
proto.cms.PresetWidgetItem.prototype.getPresetId = function() {
|
|
45819
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
45820
|
+
};
|
|
45821
|
+
|
|
45822
|
+
|
|
45823
|
+
/**
|
|
45824
|
+
* @param {number} value
|
|
45825
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45826
|
+
*/
|
|
45827
|
+
proto.cms.PresetWidgetItem.prototype.setPresetId = function(value) {
|
|
45828
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
45829
|
+
};
|
|
45830
|
+
|
|
45831
|
+
|
|
45832
|
+
/**
|
|
45833
|
+
* optional string widget_type = 3;
|
|
45834
|
+
* @return {string}
|
|
45835
|
+
*/
|
|
45836
|
+
proto.cms.PresetWidgetItem.prototype.getWidgetType = function() {
|
|
45837
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
45838
|
+
};
|
|
45839
|
+
|
|
45840
|
+
|
|
45841
|
+
/**
|
|
45842
|
+
* @param {string} value
|
|
45843
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45844
|
+
*/
|
|
45845
|
+
proto.cms.PresetWidgetItem.prototype.setWidgetType = function(value) {
|
|
45846
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
45847
|
+
};
|
|
45848
|
+
|
|
45849
|
+
|
|
45850
|
+
/**
|
|
45851
|
+
* optional string content = 4;
|
|
45852
|
+
* @return {string}
|
|
45853
|
+
*/
|
|
45854
|
+
proto.cms.PresetWidgetItem.prototype.getContent = function() {
|
|
45855
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
45856
|
+
};
|
|
45857
|
+
|
|
45858
|
+
|
|
45859
|
+
/**
|
|
45860
|
+
* @param {string} value
|
|
45861
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45862
|
+
*/
|
|
45863
|
+
proto.cms.PresetWidgetItem.prototype.setContent = function(value) {
|
|
45864
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
45865
|
+
};
|
|
45866
|
+
|
|
45867
|
+
|
|
45868
|
+
/**
|
|
45869
|
+
* optional int32 is_active = 5;
|
|
45870
|
+
* @return {number}
|
|
45871
|
+
*/
|
|
45872
|
+
proto.cms.PresetWidgetItem.prototype.getIsActive = function() {
|
|
45873
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
45874
|
+
};
|
|
45875
|
+
|
|
45876
|
+
|
|
45877
|
+
/**
|
|
45878
|
+
* @param {number} value
|
|
45879
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45880
|
+
*/
|
|
45881
|
+
proto.cms.PresetWidgetItem.prototype.setIsActive = function(value) {
|
|
45882
|
+
return jspb.Message.setField(this, 5, value);
|
|
45883
|
+
};
|
|
45884
|
+
|
|
45885
|
+
|
|
45886
|
+
/**
|
|
45887
|
+
* Clears the field making it undefined.
|
|
45888
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45889
|
+
*/
|
|
45890
|
+
proto.cms.PresetWidgetItem.prototype.clearIsActive = function() {
|
|
45891
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
45892
|
+
};
|
|
45893
|
+
|
|
45894
|
+
|
|
45895
|
+
/**
|
|
45896
|
+
* Returns whether this field is set.
|
|
45897
|
+
* @return {boolean}
|
|
45898
|
+
*/
|
|
45899
|
+
proto.cms.PresetWidgetItem.prototype.hasIsActive = function() {
|
|
45900
|
+
return jspb.Message.getField(this, 5) != null;
|
|
45901
|
+
};
|
|
45902
|
+
|
|
45903
|
+
|
|
45904
|
+
/**
|
|
45905
|
+
* optional string created_at = 6;
|
|
45906
|
+
* @return {string}
|
|
45907
|
+
*/
|
|
45908
|
+
proto.cms.PresetWidgetItem.prototype.getCreatedAt = function() {
|
|
45909
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
45910
|
+
};
|
|
45911
|
+
|
|
45912
|
+
|
|
45913
|
+
/**
|
|
45914
|
+
* @param {string} value
|
|
45915
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45916
|
+
*/
|
|
45917
|
+
proto.cms.PresetWidgetItem.prototype.setCreatedAt = function(value) {
|
|
45918
|
+
return jspb.Message.setField(this, 6, value);
|
|
45919
|
+
};
|
|
45920
|
+
|
|
45921
|
+
|
|
45922
|
+
/**
|
|
45923
|
+
* Clears the field making it undefined.
|
|
45924
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45925
|
+
*/
|
|
45926
|
+
proto.cms.PresetWidgetItem.prototype.clearCreatedAt = function() {
|
|
45927
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
45928
|
+
};
|
|
45929
|
+
|
|
45930
|
+
|
|
45931
|
+
/**
|
|
45932
|
+
* Returns whether this field is set.
|
|
45933
|
+
* @return {boolean}
|
|
45934
|
+
*/
|
|
45935
|
+
proto.cms.PresetWidgetItem.prototype.hasCreatedAt = function() {
|
|
45936
|
+
return jspb.Message.getField(this, 6) != null;
|
|
45937
|
+
};
|
|
45938
|
+
|
|
45939
|
+
|
|
45940
|
+
/**
|
|
45941
|
+
* optional string updated_at = 7;
|
|
45942
|
+
* @return {string}
|
|
45943
|
+
*/
|
|
45944
|
+
proto.cms.PresetWidgetItem.prototype.getUpdatedAt = function() {
|
|
45945
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
45946
|
+
};
|
|
45947
|
+
|
|
45948
|
+
|
|
45949
|
+
/**
|
|
45950
|
+
* @param {string} value
|
|
45951
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45952
|
+
*/
|
|
45953
|
+
proto.cms.PresetWidgetItem.prototype.setUpdatedAt = function(value) {
|
|
45954
|
+
return jspb.Message.setField(this, 7, value);
|
|
45955
|
+
};
|
|
45956
|
+
|
|
45957
|
+
|
|
45958
|
+
/**
|
|
45959
|
+
* Clears the field making it undefined.
|
|
45960
|
+
* @return {!proto.cms.PresetWidgetItem} returns this
|
|
45961
|
+
*/
|
|
45962
|
+
proto.cms.PresetWidgetItem.prototype.clearUpdatedAt = function() {
|
|
45963
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
45964
|
+
};
|
|
45965
|
+
|
|
45966
|
+
|
|
45967
|
+
/**
|
|
45968
|
+
* Returns whether this field is set.
|
|
45969
|
+
* @return {boolean}
|
|
45970
|
+
*/
|
|
45971
|
+
proto.cms.PresetWidgetItem.prototype.hasUpdatedAt = function() {
|
|
45972
|
+
return jspb.Message.getField(this, 7) != null;
|
|
45973
|
+
};
|
|
45974
|
+
|
|
45975
|
+
|
|
45976
|
+
|
|
45977
|
+
/**
|
|
45978
|
+
* List of repeated fields within this message type.
|
|
45979
|
+
* @private {!Array<number>}
|
|
45980
|
+
* @const
|
|
45981
|
+
*/
|
|
45982
|
+
proto.cms.PresetWidgetsResponse.repeatedFields_ = [1];
|
|
45983
|
+
|
|
45984
|
+
|
|
45985
|
+
|
|
45986
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45987
|
+
/**
|
|
45988
|
+
* Creates an object representation of this proto.
|
|
45989
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45990
|
+
* Optional fields that are not set will be set to undefined.
|
|
45991
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45992
|
+
* For the list of reserved names please see:
|
|
45993
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45994
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45995
|
+
* JSPB instance for transitional soy proto support:
|
|
45996
|
+
* http://goto/soy-param-migration
|
|
45997
|
+
* @return {!Object}
|
|
45998
|
+
*/
|
|
45999
|
+
proto.cms.PresetWidgetsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
46000
|
+
return proto.cms.PresetWidgetsResponse.toObject(opt_includeInstance, this);
|
|
46001
|
+
};
|
|
46002
|
+
|
|
46003
|
+
|
|
46004
|
+
/**
|
|
46005
|
+
* Static version of the {@see toObject} method.
|
|
46006
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
46007
|
+
* the JSPB instance for transitional soy proto support:
|
|
46008
|
+
* http://goto/soy-param-migration
|
|
46009
|
+
* @param {!proto.cms.PresetWidgetsResponse} msg The msg instance to transform.
|
|
46010
|
+
* @return {!Object}
|
|
46011
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46012
|
+
*/
|
|
46013
|
+
proto.cms.PresetWidgetsResponse.toObject = function(includeInstance, msg) {
|
|
46014
|
+
var f, obj = {
|
|
46015
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
46016
|
+
proto.cms.PresetWidgetItem.toObject, includeInstance),
|
|
46017
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
46018
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
46019
|
+
};
|
|
46020
|
+
|
|
46021
|
+
if (includeInstance) {
|
|
46022
|
+
obj.$jspbMessageInstance = msg;
|
|
46023
|
+
}
|
|
46024
|
+
return obj;
|
|
46025
|
+
};
|
|
46026
|
+
}
|
|
46027
|
+
|
|
46028
|
+
|
|
46029
|
+
/**
|
|
46030
|
+
* Deserializes binary data (in protobuf wire format).
|
|
46031
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
46032
|
+
* @return {!proto.cms.PresetWidgetsResponse}
|
|
46033
|
+
*/
|
|
46034
|
+
proto.cms.PresetWidgetsResponse.deserializeBinary = function(bytes) {
|
|
46035
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
46036
|
+
var msg = new proto.cms.PresetWidgetsResponse;
|
|
46037
|
+
return proto.cms.PresetWidgetsResponse.deserializeBinaryFromReader(msg, reader);
|
|
46038
|
+
};
|
|
46039
|
+
|
|
46040
|
+
|
|
46041
|
+
/**
|
|
46042
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
46043
|
+
* given reader into the given message object.
|
|
46044
|
+
* @param {!proto.cms.PresetWidgetsResponse} msg The message object to deserialize into.
|
|
46045
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
46046
|
+
* @return {!proto.cms.PresetWidgetsResponse}
|
|
46047
|
+
*/
|
|
46048
|
+
proto.cms.PresetWidgetsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
46049
|
+
while (reader.nextField()) {
|
|
46050
|
+
if (reader.isEndGroup()) {
|
|
46051
|
+
break;
|
|
46052
|
+
}
|
|
46053
|
+
var field = reader.getFieldNumber();
|
|
46054
|
+
switch (field) {
|
|
46055
|
+
case 1:
|
|
46056
|
+
var value = new proto.cms.PresetWidgetItem;
|
|
46057
|
+
reader.readMessage(value,proto.cms.PresetWidgetItem.deserializeBinaryFromReader);
|
|
46058
|
+
msg.addItems(value);
|
|
46059
|
+
break;
|
|
46060
|
+
case 2:
|
|
46061
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46062
|
+
msg.setTotalPages(value);
|
|
46063
|
+
break;
|
|
46064
|
+
case 3:
|
|
46065
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46066
|
+
msg.setTotalItems(value);
|
|
46067
|
+
break;
|
|
46068
|
+
default:
|
|
46069
|
+
reader.skipField();
|
|
46070
|
+
break;
|
|
46071
|
+
}
|
|
46072
|
+
}
|
|
46073
|
+
return msg;
|
|
46074
|
+
};
|
|
46075
|
+
|
|
46076
|
+
|
|
46077
|
+
/**
|
|
46078
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
46079
|
+
* @return {!Uint8Array}
|
|
46080
|
+
*/
|
|
46081
|
+
proto.cms.PresetWidgetsResponse.prototype.serializeBinary = function() {
|
|
46082
|
+
var writer = new jspb.BinaryWriter();
|
|
46083
|
+
proto.cms.PresetWidgetsResponse.serializeBinaryToWriter(this, writer);
|
|
46084
|
+
return writer.getResultBuffer();
|
|
46085
|
+
};
|
|
46086
|
+
|
|
46087
|
+
|
|
46088
|
+
/**
|
|
46089
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
46090
|
+
* format), writing to the given BinaryWriter.
|
|
46091
|
+
* @param {!proto.cms.PresetWidgetsResponse} message
|
|
46092
|
+
* @param {!jspb.BinaryWriter} writer
|
|
46093
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46094
|
+
*/
|
|
46095
|
+
proto.cms.PresetWidgetsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
46096
|
+
var f = undefined;
|
|
46097
|
+
f = message.getItemsList();
|
|
46098
|
+
if (f.length > 0) {
|
|
46099
|
+
writer.writeRepeatedMessage(
|
|
46100
|
+
1,
|
|
46101
|
+
f,
|
|
46102
|
+
proto.cms.PresetWidgetItem.serializeBinaryToWriter
|
|
46103
|
+
);
|
|
46104
|
+
}
|
|
46105
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
46106
|
+
if (f != null) {
|
|
46107
|
+
writer.writeInt32(
|
|
46108
|
+
2,
|
|
46109
|
+
f
|
|
46110
|
+
);
|
|
46111
|
+
}
|
|
46112
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
46113
|
+
if (f != null) {
|
|
46114
|
+
writer.writeInt32(
|
|
46115
|
+
3,
|
|
46116
|
+
f
|
|
46117
|
+
);
|
|
46118
|
+
}
|
|
46119
|
+
};
|
|
46120
|
+
|
|
46121
|
+
|
|
46122
|
+
/**
|
|
46123
|
+
* repeated PresetWidgetItem items = 1;
|
|
46124
|
+
* @return {!Array<!proto.cms.PresetWidgetItem>}
|
|
46125
|
+
*/
|
|
46126
|
+
proto.cms.PresetWidgetsResponse.prototype.getItemsList = function() {
|
|
46127
|
+
return /** @type{!Array<!proto.cms.PresetWidgetItem>} */ (
|
|
46128
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetWidgetItem, 1));
|
|
46129
|
+
};
|
|
46130
|
+
|
|
46131
|
+
|
|
46132
|
+
/**
|
|
46133
|
+
* @param {!Array<!proto.cms.PresetWidgetItem>} value
|
|
46134
|
+
* @return {!proto.cms.PresetWidgetsResponse} returns this
|
|
46135
|
+
*/
|
|
46136
|
+
proto.cms.PresetWidgetsResponse.prototype.setItemsList = function(value) {
|
|
46137
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
46138
|
+
};
|
|
46139
|
+
|
|
46140
|
+
|
|
46141
|
+
/**
|
|
46142
|
+
* @param {!proto.cms.PresetWidgetItem=} opt_value
|
|
46143
|
+
* @param {number=} opt_index
|
|
46144
|
+
* @return {!proto.cms.PresetWidgetItem}
|
|
46145
|
+
*/
|
|
46146
|
+
proto.cms.PresetWidgetsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
46147
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.PresetWidgetItem, opt_index);
|
|
46148
|
+
};
|
|
46149
|
+
|
|
46150
|
+
|
|
46151
|
+
/**
|
|
46152
|
+
* Clears the list making it empty but non-null.
|
|
46153
|
+
* @return {!proto.cms.PresetWidgetsResponse} returns this
|
|
46154
|
+
*/
|
|
46155
|
+
proto.cms.PresetWidgetsResponse.prototype.clearItemsList = function() {
|
|
46156
|
+
return this.setItemsList([]);
|
|
46157
|
+
};
|
|
46158
|
+
|
|
46159
|
+
|
|
46160
|
+
/**
|
|
46161
|
+
* optional int32 total_pages = 2;
|
|
46162
|
+
* @return {number}
|
|
46163
|
+
*/
|
|
46164
|
+
proto.cms.PresetWidgetsResponse.prototype.getTotalPages = function() {
|
|
46165
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
46166
|
+
};
|
|
46167
|
+
|
|
46168
|
+
|
|
46169
|
+
/**
|
|
46170
|
+
* @param {number} value
|
|
46171
|
+
* @return {!proto.cms.PresetWidgetsResponse} returns this
|
|
46172
|
+
*/
|
|
46173
|
+
proto.cms.PresetWidgetsResponse.prototype.setTotalPages = function(value) {
|
|
46174
|
+
return jspb.Message.setField(this, 2, value);
|
|
46175
|
+
};
|
|
46176
|
+
|
|
46177
|
+
|
|
46178
|
+
/**
|
|
46179
|
+
* Clears the field making it undefined.
|
|
46180
|
+
* @return {!proto.cms.PresetWidgetsResponse} returns this
|
|
46181
|
+
*/
|
|
46182
|
+
proto.cms.PresetWidgetsResponse.prototype.clearTotalPages = function() {
|
|
46183
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
46184
|
+
};
|
|
46185
|
+
|
|
46186
|
+
|
|
46187
|
+
/**
|
|
46188
|
+
* Returns whether this field is set.
|
|
46189
|
+
* @return {boolean}
|
|
46190
|
+
*/
|
|
46191
|
+
proto.cms.PresetWidgetsResponse.prototype.hasTotalPages = function() {
|
|
46192
|
+
return jspb.Message.getField(this, 2) != null;
|
|
46193
|
+
};
|
|
46194
|
+
|
|
46195
|
+
|
|
46196
|
+
/**
|
|
46197
|
+
* optional int32 total_items = 3;
|
|
46198
|
+
* @return {number}
|
|
46199
|
+
*/
|
|
46200
|
+
proto.cms.PresetWidgetsResponse.prototype.getTotalItems = function() {
|
|
46201
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
46202
|
+
};
|
|
46203
|
+
|
|
46204
|
+
|
|
46205
|
+
/**
|
|
46206
|
+
* @param {number} value
|
|
46207
|
+
* @return {!proto.cms.PresetWidgetsResponse} returns this
|
|
46208
|
+
*/
|
|
46209
|
+
proto.cms.PresetWidgetsResponse.prototype.setTotalItems = function(value) {
|
|
46210
|
+
return jspb.Message.setField(this, 3, value);
|
|
46211
|
+
};
|
|
46212
|
+
|
|
46213
|
+
|
|
46214
|
+
/**
|
|
46215
|
+
* Clears the field making it undefined.
|
|
46216
|
+
* @return {!proto.cms.PresetWidgetsResponse} returns this
|
|
46217
|
+
*/
|
|
46218
|
+
proto.cms.PresetWidgetsResponse.prototype.clearTotalItems = function() {
|
|
46219
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
46220
|
+
};
|
|
46221
|
+
|
|
46222
|
+
|
|
46223
|
+
/**
|
|
46224
|
+
* Returns whether this field is set.
|
|
46225
|
+
* @return {boolean}
|
|
46226
|
+
*/
|
|
46227
|
+
proto.cms.PresetWidgetsResponse.prototype.hasTotalItems = function() {
|
|
46228
|
+
return jspb.Message.getField(this, 3) != null;
|
|
46229
|
+
};
|
|
46230
|
+
|
|
46231
|
+
|
|
46232
|
+
|
|
46233
|
+
/**
|
|
46234
|
+
* List of repeated fields within this message type.
|
|
46235
|
+
* @private {!Array<number>}
|
|
46236
|
+
* @const
|
|
46237
|
+
*/
|
|
46238
|
+
proto.cms.PresetCashierCurrencyAmounts.repeatedFields_ = [3];
|
|
46239
|
+
|
|
46240
|
+
|
|
46241
|
+
|
|
46242
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
46243
|
+
/**
|
|
46244
|
+
* Creates an object representation of this proto.
|
|
46245
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
46246
|
+
* Optional fields that are not set will be set to undefined.
|
|
46247
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
46248
|
+
* For the list of reserved names please see:
|
|
46249
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
46250
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
46251
|
+
* JSPB instance for transitional soy proto support:
|
|
46252
|
+
* http://goto/soy-param-migration
|
|
46253
|
+
* @return {!Object}
|
|
46254
|
+
*/
|
|
46255
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.toObject = function(opt_includeInstance) {
|
|
46256
|
+
return proto.cms.PresetCashierCurrencyAmounts.toObject(opt_includeInstance, this);
|
|
46257
|
+
};
|
|
46258
|
+
|
|
46259
|
+
|
|
46260
|
+
/**
|
|
46261
|
+
* Static version of the {@see toObject} method.
|
|
46262
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
46263
|
+
* the JSPB instance for transitional soy proto support:
|
|
46264
|
+
* http://goto/soy-param-migration
|
|
46265
|
+
* @param {!proto.cms.PresetCashierCurrencyAmounts} msg The msg instance to transform.
|
|
46266
|
+
* @return {!Object}
|
|
46267
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46268
|
+
*/
|
|
46269
|
+
proto.cms.PresetCashierCurrencyAmounts.toObject = function(includeInstance, msg) {
|
|
46270
|
+
var f, obj = {
|
|
46271
|
+
currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
46272
|
+
defaultAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
46273
|
+
suggestedAmountsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 3)) == null ? undefined : f
|
|
46274
|
+
};
|
|
46275
|
+
|
|
46276
|
+
if (includeInstance) {
|
|
46277
|
+
obj.$jspbMessageInstance = msg;
|
|
46278
|
+
}
|
|
46279
|
+
return obj;
|
|
46280
|
+
};
|
|
46281
|
+
}
|
|
46282
|
+
|
|
46283
|
+
|
|
46284
|
+
/**
|
|
46285
|
+
* Deserializes binary data (in protobuf wire format).
|
|
46286
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
46287
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts}
|
|
46288
|
+
*/
|
|
46289
|
+
proto.cms.PresetCashierCurrencyAmounts.deserializeBinary = function(bytes) {
|
|
46290
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
46291
|
+
var msg = new proto.cms.PresetCashierCurrencyAmounts;
|
|
46292
|
+
return proto.cms.PresetCashierCurrencyAmounts.deserializeBinaryFromReader(msg, reader);
|
|
46293
|
+
};
|
|
46294
|
+
|
|
46295
|
+
|
|
46296
|
+
/**
|
|
46297
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
46298
|
+
* given reader into the given message object.
|
|
46299
|
+
* @param {!proto.cms.PresetCashierCurrencyAmounts} msg The message object to deserialize into.
|
|
46300
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
46301
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts}
|
|
46302
|
+
*/
|
|
46303
|
+
proto.cms.PresetCashierCurrencyAmounts.deserializeBinaryFromReader = function(msg, reader) {
|
|
46304
|
+
while (reader.nextField()) {
|
|
46305
|
+
if (reader.isEndGroup()) {
|
|
46306
|
+
break;
|
|
46307
|
+
}
|
|
46308
|
+
var field = reader.getFieldNumber();
|
|
46309
|
+
switch (field) {
|
|
46310
|
+
case 1:
|
|
46311
|
+
var value = /** @type {string} */ (reader.readString());
|
|
46312
|
+
msg.setCurrency(value);
|
|
46313
|
+
break;
|
|
46314
|
+
case 2:
|
|
46315
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
46316
|
+
msg.setDefaultAmount(value);
|
|
46317
|
+
break;
|
|
46318
|
+
case 3:
|
|
46319
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
|
|
46320
|
+
for (var i = 0; i < values.length; i++) {
|
|
46321
|
+
msg.addSuggestedAmounts(values[i]);
|
|
46322
|
+
}
|
|
46323
|
+
break;
|
|
46324
|
+
default:
|
|
46325
|
+
reader.skipField();
|
|
46326
|
+
break;
|
|
46327
|
+
}
|
|
46328
|
+
}
|
|
46329
|
+
return msg;
|
|
46330
|
+
};
|
|
46331
|
+
|
|
46332
|
+
|
|
46333
|
+
/**
|
|
46334
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
46335
|
+
* @return {!Uint8Array}
|
|
46336
|
+
*/
|
|
46337
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.serializeBinary = function() {
|
|
46338
|
+
var writer = new jspb.BinaryWriter();
|
|
46339
|
+
proto.cms.PresetCashierCurrencyAmounts.serializeBinaryToWriter(this, writer);
|
|
46340
|
+
return writer.getResultBuffer();
|
|
46341
|
+
};
|
|
46342
|
+
|
|
46343
|
+
|
|
46344
|
+
/**
|
|
46345
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
46346
|
+
* format), writing to the given BinaryWriter.
|
|
46347
|
+
* @param {!proto.cms.PresetCashierCurrencyAmounts} message
|
|
46348
|
+
* @param {!jspb.BinaryWriter} writer
|
|
46349
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46350
|
+
*/
|
|
46351
|
+
proto.cms.PresetCashierCurrencyAmounts.serializeBinaryToWriter = function(message, writer) {
|
|
46352
|
+
var f = undefined;
|
|
46353
|
+
f = message.getCurrency();
|
|
46354
|
+
if (f.length > 0) {
|
|
46355
|
+
writer.writeString(
|
|
46356
|
+
1,
|
|
46357
|
+
f
|
|
46358
|
+
);
|
|
46359
|
+
}
|
|
46360
|
+
f = message.getDefaultAmount();
|
|
46361
|
+
if (f !== 0.0) {
|
|
46362
|
+
writer.writeFloat(
|
|
46363
|
+
2,
|
|
46364
|
+
f
|
|
46365
|
+
);
|
|
46366
|
+
}
|
|
46367
|
+
f = message.getSuggestedAmountsList();
|
|
46368
|
+
if (f.length > 0) {
|
|
46369
|
+
writer.writePackedFloat(
|
|
46370
|
+
3,
|
|
46371
|
+
f
|
|
46372
|
+
);
|
|
46373
|
+
}
|
|
46374
|
+
};
|
|
46375
|
+
|
|
46376
|
+
|
|
46377
|
+
/**
|
|
46378
|
+
* optional string currency = 1;
|
|
46379
|
+
* @return {string}
|
|
46380
|
+
*/
|
|
46381
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.getCurrency = function() {
|
|
46382
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
46383
|
+
};
|
|
46384
|
+
|
|
46385
|
+
|
|
46386
|
+
/**
|
|
46387
|
+
* @param {string} value
|
|
46388
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts} returns this
|
|
46389
|
+
*/
|
|
46390
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.setCurrency = function(value) {
|
|
46391
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
46392
|
+
};
|
|
46393
|
+
|
|
46394
|
+
|
|
46395
|
+
/**
|
|
46396
|
+
* optional float default_amount = 2;
|
|
46397
|
+
* @return {number}
|
|
46398
|
+
*/
|
|
46399
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.getDefaultAmount = function() {
|
|
46400
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
46401
|
+
};
|
|
46402
|
+
|
|
46403
|
+
|
|
46404
|
+
/**
|
|
46405
|
+
* @param {number} value
|
|
46406
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts} returns this
|
|
46407
|
+
*/
|
|
46408
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.setDefaultAmount = function(value) {
|
|
46409
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
46410
|
+
};
|
|
46411
|
+
|
|
46412
|
+
|
|
46413
|
+
/**
|
|
46414
|
+
* repeated float suggested_amounts = 3;
|
|
46415
|
+
* @return {!Array<number>}
|
|
46416
|
+
*/
|
|
46417
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.getSuggestedAmountsList = function() {
|
|
46418
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 3));
|
|
46419
|
+
};
|
|
46420
|
+
|
|
46421
|
+
|
|
46422
|
+
/**
|
|
46423
|
+
* @param {!Array<number>} value
|
|
46424
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts} returns this
|
|
46425
|
+
*/
|
|
46426
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.setSuggestedAmountsList = function(value) {
|
|
46427
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
46428
|
+
};
|
|
46429
|
+
|
|
46430
|
+
|
|
46431
|
+
/**
|
|
46432
|
+
* @param {number} value
|
|
46433
|
+
* @param {number=} opt_index
|
|
46434
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts} returns this
|
|
46435
|
+
*/
|
|
46436
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.addSuggestedAmounts = function(value, opt_index) {
|
|
46437
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
46438
|
+
};
|
|
46439
|
+
|
|
46440
|
+
|
|
46441
|
+
/**
|
|
46442
|
+
* Clears the list making it empty but non-null.
|
|
46443
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts} returns this
|
|
46444
|
+
*/
|
|
46445
|
+
proto.cms.PresetCashierCurrencyAmounts.prototype.clearSuggestedAmountsList = function() {
|
|
46446
|
+
return this.setSuggestedAmountsList([]);
|
|
46447
|
+
};
|
|
46448
|
+
|
|
46449
|
+
|
|
46450
|
+
|
|
46451
|
+
/**
|
|
46452
|
+
* List of repeated fields within this message type.
|
|
46453
|
+
* @private {!Array<number>}
|
|
46454
|
+
* @const
|
|
46455
|
+
*/
|
|
46456
|
+
proto.cms.PresetCashierPaymentOrderGroup.repeatedFields_ = [2];
|
|
46457
|
+
|
|
46458
|
+
|
|
46459
|
+
|
|
46460
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
46461
|
+
/**
|
|
46462
|
+
* Creates an object representation of this proto.
|
|
46463
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
46464
|
+
* Optional fields that are not set will be set to undefined.
|
|
46465
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
46466
|
+
* For the list of reserved names please see:
|
|
46467
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
46468
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
46469
|
+
* JSPB instance for transitional soy proto support:
|
|
46470
|
+
* http://goto/soy-param-migration
|
|
46471
|
+
* @return {!Object}
|
|
46472
|
+
*/
|
|
46473
|
+
proto.cms.PresetCashierPaymentOrderGroup.prototype.toObject = function(opt_includeInstance) {
|
|
46474
|
+
return proto.cms.PresetCashierPaymentOrderGroup.toObject(opt_includeInstance, this);
|
|
46475
|
+
};
|
|
46476
|
+
|
|
46477
|
+
|
|
46478
|
+
/**
|
|
46479
|
+
* Static version of the {@see toObject} method.
|
|
46480
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
46481
|
+
* the JSPB instance for transitional soy proto support:
|
|
46482
|
+
* http://goto/soy-param-migration
|
|
46483
|
+
* @param {!proto.cms.PresetCashierPaymentOrderGroup} msg The msg instance to transform.
|
|
46484
|
+
* @return {!Object}
|
|
46485
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46486
|
+
*/
|
|
46487
|
+
proto.cms.PresetCashierPaymentOrderGroup.toObject = function(includeInstance, msg) {
|
|
46488
|
+
var f, obj = {
|
|
46489
|
+
groupKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
46490
|
+
methodIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
46491
|
+
};
|
|
46492
|
+
|
|
46493
|
+
if (includeInstance) {
|
|
46494
|
+
obj.$jspbMessageInstance = msg;
|
|
46495
|
+
}
|
|
46496
|
+
return obj;
|
|
46497
|
+
};
|
|
46498
|
+
}
|
|
46499
|
+
|
|
46500
|
+
|
|
46501
|
+
/**
|
|
46502
|
+
* Deserializes binary data (in protobuf wire format).
|
|
46503
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
46504
|
+
* @return {!proto.cms.PresetCashierPaymentOrderGroup}
|
|
46505
|
+
*/
|
|
46506
|
+
proto.cms.PresetCashierPaymentOrderGroup.deserializeBinary = function(bytes) {
|
|
46507
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
46508
|
+
var msg = new proto.cms.PresetCashierPaymentOrderGroup;
|
|
46509
|
+
return proto.cms.PresetCashierPaymentOrderGroup.deserializeBinaryFromReader(msg, reader);
|
|
46510
|
+
};
|
|
46511
|
+
|
|
46512
|
+
|
|
46513
|
+
/**
|
|
46514
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
46515
|
+
* given reader into the given message object.
|
|
46516
|
+
* @param {!proto.cms.PresetCashierPaymentOrderGroup} msg The message object to deserialize into.
|
|
46517
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
46518
|
+
* @return {!proto.cms.PresetCashierPaymentOrderGroup}
|
|
46519
|
+
*/
|
|
46520
|
+
proto.cms.PresetCashierPaymentOrderGroup.deserializeBinaryFromReader = function(msg, reader) {
|
|
46521
|
+
while (reader.nextField()) {
|
|
46522
|
+
if (reader.isEndGroup()) {
|
|
46523
|
+
break;
|
|
46524
|
+
}
|
|
46525
|
+
var field = reader.getFieldNumber();
|
|
46526
|
+
switch (field) {
|
|
46527
|
+
case 1:
|
|
46528
|
+
var value = /** @type {string} */ (reader.readString());
|
|
46529
|
+
msg.setGroupKey(value);
|
|
46530
|
+
break;
|
|
46531
|
+
case 2:
|
|
46532
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
46533
|
+
for (var i = 0; i < values.length; i++) {
|
|
46534
|
+
msg.addMethodIds(values[i]);
|
|
46535
|
+
}
|
|
46536
|
+
break;
|
|
46537
|
+
default:
|
|
46538
|
+
reader.skipField();
|
|
46539
|
+
break;
|
|
46540
|
+
}
|
|
46541
|
+
}
|
|
46542
|
+
return msg;
|
|
46543
|
+
};
|
|
46544
|
+
|
|
46545
|
+
|
|
46546
|
+
/**
|
|
46547
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
46548
|
+
* @return {!Uint8Array}
|
|
46549
|
+
*/
|
|
46550
|
+
proto.cms.PresetCashierPaymentOrderGroup.prototype.serializeBinary = function() {
|
|
46551
|
+
var writer = new jspb.BinaryWriter();
|
|
46552
|
+
proto.cms.PresetCashierPaymentOrderGroup.serializeBinaryToWriter(this, writer);
|
|
46553
|
+
return writer.getResultBuffer();
|
|
46554
|
+
};
|
|
46555
|
+
|
|
46556
|
+
|
|
46557
|
+
/**
|
|
46558
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
46559
|
+
* format), writing to the given BinaryWriter.
|
|
46560
|
+
* @param {!proto.cms.PresetCashierPaymentOrderGroup} message
|
|
46561
|
+
* @param {!jspb.BinaryWriter} writer
|
|
46562
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46563
|
+
*/
|
|
46564
|
+
proto.cms.PresetCashierPaymentOrderGroup.serializeBinaryToWriter = function(message, writer) {
|
|
46565
|
+
var f = undefined;
|
|
46566
|
+
f = message.getGroupKey();
|
|
46567
|
+
if (f.length > 0) {
|
|
46568
|
+
writer.writeString(
|
|
46569
|
+
1,
|
|
46570
|
+
f
|
|
46571
|
+
);
|
|
46572
|
+
}
|
|
46573
|
+
f = message.getMethodIdsList();
|
|
46574
|
+
if (f.length > 0) {
|
|
46575
|
+
writer.writePackedInt32(
|
|
46576
|
+
2,
|
|
46577
|
+
f
|
|
46578
|
+
);
|
|
46579
|
+
}
|
|
46580
|
+
};
|
|
46581
|
+
|
|
46582
|
+
|
|
46583
|
+
/**
|
|
46584
|
+
* optional string group_key = 1;
|
|
46585
|
+
* @return {string}
|
|
46586
|
+
*/
|
|
46587
|
+
proto.cms.PresetCashierPaymentOrderGroup.prototype.getGroupKey = function() {
|
|
46588
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
46589
|
+
};
|
|
46590
|
+
|
|
46591
|
+
|
|
46592
|
+
/**
|
|
46593
|
+
* @param {string} value
|
|
46594
|
+
* @return {!proto.cms.PresetCashierPaymentOrderGroup} returns this
|
|
46595
|
+
*/
|
|
46596
|
+
proto.cms.PresetCashierPaymentOrderGroup.prototype.setGroupKey = function(value) {
|
|
46597
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
46598
|
+
};
|
|
46599
|
+
|
|
46600
|
+
|
|
46601
|
+
/**
|
|
46602
|
+
* repeated int32 method_ids = 2;
|
|
46603
|
+
* @return {!Array<number>}
|
|
46604
|
+
*/
|
|
46605
|
+
proto.cms.PresetCashierPaymentOrderGroup.prototype.getMethodIdsList = function() {
|
|
46606
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
46607
|
+
};
|
|
46608
|
+
|
|
46609
|
+
|
|
46610
|
+
/**
|
|
46611
|
+
* @param {!Array<number>} value
|
|
46612
|
+
* @return {!proto.cms.PresetCashierPaymentOrderGroup} returns this
|
|
46613
|
+
*/
|
|
46614
|
+
proto.cms.PresetCashierPaymentOrderGroup.prototype.setMethodIdsList = function(value) {
|
|
46615
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
46616
|
+
};
|
|
46617
|
+
|
|
46618
|
+
|
|
46619
|
+
/**
|
|
46620
|
+
* @param {number} value
|
|
46621
|
+
* @param {number=} opt_index
|
|
46622
|
+
* @return {!proto.cms.PresetCashierPaymentOrderGroup} returns this
|
|
46623
|
+
*/
|
|
46624
|
+
proto.cms.PresetCashierPaymentOrderGroup.prototype.addMethodIds = function(value, opt_index) {
|
|
46625
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
46626
|
+
};
|
|
46627
|
+
|
|
46628
|
+
|
|
46629
|
+
/**
|
|
46630
|
+
* Clears the list making it empty but non-null.
|
|
46631
|
+
* @return {!proto.cms.PresetCashierPaymentOrderGroup} returns this
|
|
46632
|
+
*/
|
|
46633
|
+
proto.cms.PresetCashierPaymentOrderGroup.prototype.clearMethodIdsList = function() {
|
|
46634
|
+
return this.setMethodIdsList([]);
|
|
46635
|
+
};
|
|
46636
|
+
|
|
46637
|
+
|
|
46638
|
+
|
|
46639
|
+
/**
|
|
46640
|
+
* List of repeated fields within this message type.
|
|
46641
|
+
* @private {!Array<number>}
|
|
46642
|
+
* @const
|
|
46643
|
+
*/
|
|
46644
|
+
proto.cms.PresetCashierConfigItem.repeatedFields_ = [3,4];
|
|
46645
|
+
|
|
46646
|
+
|
|
46647
|
+
|
|
46648
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
46649
|
+
/**
|
|
46650
|
+
* Creates an object representation of this proto.
|
|
46651
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
46652
|
+
* Optional fields that are not set will be set to undefined.
|
|
46653
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
46654
|
+
* For the list of reserved names please see:
|
|
46655
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
46656
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
46657
|
+
* JSPB instance for transitional soy proto support:
|
|
46658
|
+
* http://goto/soy-param-migration
|
|
46659
|
+
* @return {!Object}
|
|
46660
|
+
*/
|
|
46661
|
+
proto.cms.PresetCashierConfigItem.prototype.toObject = function(opt_includeInstance) {
|
|
46662
|
+
return proto.cms.PresetCashierConfigItem.toObject(opt_includeInstance, this);
|
|
46663
|
+
};
|
|
46664
|
+
|
|
46665
|
+
|
|
46666
|
+
/**
|
|
46667
|
+
* Static version of the {@see toObject} method.
|
|
46668
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
46669
|
+
* the JSPB instance for transitional soy proto support:
|
|
46670
|
+
* http://goto/soy-param-migration
|
|
46671
|
+
* @param {!proto.cms.PresetCashierConfigItem} msg The msg instance to transform.
|
|
46672
|
+
* @return {!Object}
|
|
46673
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46674
|
+
*/
|
|
46675
|
+
proto.cms.PresetCashierConfigItem.toObject = function(includeInstance, msg) {
|
|
46676
|
+
var f, obj = {
|
|
46677
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
46678
|
+
presetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
46679
|
+
currenciesList: jspb.Message.toObjectList(msg.getCurrenciesList(),
|
|
46680
|
+
proto.cms.PresetCashierCurrencyAmounts.toObject, includeInstance),
|
|
46681
|
+
paymentGroupsList: jspb.Message.toObjectList(msg.getPaymentGroupsList(),
|
|
46682
|
+
proto.cms.PresetCashierPaymentOrderGroup.toObject, includeInstance),
|
|
46683
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
46684
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
46685
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
46686
|
+
};
|
|
46687
|
+
|
|
46688
|
+
if (includeInstance) {
|
|
46689
|
+
obj.$jspbMessageInstance = msg;
|
|
46690
|
+
}
|
|
46691
|
+
return obj;
|
|
46692
|
+
};
|
|
46693
|
+
}
|
|
46694
|
+
|
|
46695
|
+
|
|
46696
|
+
/**
|
|
46697
|
+
* Deserializes binary data (in protobuf wire format).
|
|
46698
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
46699
|
+
* @return {!proto.cms.PresetCashierConfigItem}
|
|
46700
|
+
*/
|
|
46701
|
+
proto.cms.PresetCashierConfigItem.deserializeBinary = function(bytes) {
|
|
46702
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
46703
|
+
var msg = new proto.cms.PresetCashierConfigItem;
|
|
46704
|
+
return proto.cms.PresetCashierConfigItem.deserializeBinaryFromReader(msg, reader);
|
|
46705
|
+
};
|
|
46706
|
+
|
|
46707
|
+
|
|
46708
|
+
/**
|
|
46709
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
46710
|
+
* given reader into the given message object.
|
|
46711
|
+
* @param {!proto.cms.PresetCashierConfigItem} msg The message object to deserialize into.
|
|
46712
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
46713
|
+
* @return {!proto.cms.PresetCashierConfigItem}
|
|
46714
|
+
*/
|
|
46715
|
+
proto.cms.PresetCashierConfigItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
46716
|
+
while (reader.nextField()) {
|
|
46717
|
+
if (reader.isEndGroup()) {
|
|
46718
|
+
break;
|
|
46719
|
+
}
|
|
46720
|
+
var field = reader.getFieldNumber();
|
|
46721
|
+
switch (field) {
|
|
46722
|
+
case 1:
|
|
46723
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46724
|
+
msg.setId(value);
|
|
46725
|
+
break;
|
|
46726
|
+
case 2:
|
|
46727
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46728
|
+
msg.setPresetId(value);
|
|
46729
|
+
break;
|
|
46730
|
+
case 3:
|
|
46731
|
+
var value = new proto.cms.PresetCashierCurrencyAmounts;
|
|
46732
|
+
reader.readMessage(value,proto.cms.PresetCashierCurrencyAmounts.deserializeBinaryFromReader);
|
|
46733
|
+
msg.addCurrencies(value);
|
|
46734
|
+
break;
|
|
46735
|
+
case 4:
|
|
46736
|
+
var value = new proto.cms.PresetCashierPaymentOrderGroup;
|
|
46737
|
+
reader.readMessage(value,proto.cms.PresetCashierPaymentOrderGroup.deserializeBinaryFromReader);
|
|
46738
|
+
msg.addPaymentGroups(value);
|
|
46739
|
+
break;
|
|
46740
|
+
case 5:
|
|
46741
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
46742
|
+
msg.setIsActive(value);
|
|
46743
|
+
break;
|
|
46744
|
+
case 6:
|
|
46745
|
+
var value = /** @type {string} */ (reader.readString());
|
|
46746
|
+
msg.setCreatedAt(value);
|
|
46747
|
+
break;
|
|
46748
|
+
case 7:
|
|
46749
|
+
var value = /** @type {string} */ (reader.readString());
|
|
46750
|
+
msg.setUpdatedAt(value);
|
|
46751
|
+
break;
|
|
46752
|
+
default:
|
|
46753
|
+
reader.skipField();
|
|
46754
|
+
break;
|
|
46755
|
+
}
|
|
46756
|
+
}
|
|
46757
|
+
return msg;
|
|
46758
|
+
};
|
|
46759
|
+
|
|
46760
|
+
|
|
46761
|
+
/**
|
|
46762
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
46763
|
+
* @return {!Uint8Array}
|
|
46764
|
+
*/
|
|
46765
|
+
proto.cms.PresetCashierConfigItem.prototype.serializeBinary = function() {
|
|
46766
|
+
var writer = new jspb.BinaryWriter();
|
|
46767
|
+
proto.cms.PresetCashierConfigItem.serializeBinaryToWriter(this, writer);
|
|
46768
|
+
return writer.getResultBuffer();
|
|
46769
|
+
};
|
|
46770
|
+
|
|
46771
|
+
|
|
46772
|
+
/**
|
|
46773
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
46774
|
+
* format), writing to the given BinaryWriter.
|
|
46775
|
+
* @param {!proto.cms.PresetCashierConfigItem} message
|
|
46776
|
+
* @param {!jspb.BinaryWriter} writer
|
|
46777
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
46778
|
+
*/
|
|
46779
|
+
proto.cms.PresetCashierConfigItem.serializeBinaryToWriter = function(message, writer) {
|
|
46780
|
+
var f = undefined;
|
|
46781
|
+
f = message.getId();
|
|
46782
|
+
if (f !== 0) {
|
|
46783
|
+
writer.writeInt32(
|
|
46784
|
+
1,
|
|
46785
|
+
f
|
|
46786
|
+
);
|
|
46787
|
+
}
|
|
46788
|
+
f = message.getPresetId();
|
|
46789
|
+
if (f !== 0) {
|
|
46790
|
+
writer.writeInt32(
|
|
46791
|
+
2,
|
|
46792
|
+
f
|
|
46793
|
+
);
|
|
46794
|
+
}
|
|
46795
|
+
f = message.getCurrenciesList();
|
|
46796
|
+
if (f.length > 0) {
|
|
46797
|
+
writer.writeRepeatedMessage(
|
|
46798
|
+
3,
|
|
46799
|
+
f,
|
|
46800
|
+
proto.cms.PresetCashierCurrencyAmounts.serializeBinaryToWriter
|
|
46801
|
+
);
|
|
46802
|
+
}
|
|
46803
|
+
f = message.getPaymentGroupsList();
|
|
46804
|
+
if (f.length > 0) {
|
|
46805
|
+
writer.writeRepeatedMessage(
|
|
46806
|
+
4,
|
|
46807
|
+
f,
|
|
46808
|
+
proto.cms.PresetCashierPaymentOrderGroup.serializeBinaryToWriter
|
|
46809
|
+
);
|
|
46810
|
+
}
|
|
46811
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
46812
|
+
if (f != null) {
|
|
46813
|
+
writer.writeInt32(
|
|
46814
|
+
5,
|
|
46815
|
+
f
|
|
46816
|
+
);
|
|
46817
|
+
}
|
|
46818
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
46819
|
+
if (f != null) {
|
|
46820
|
+
writer.writeString(
|
|
46821
|
+
6,
|
|
46822
|
+
f
|
|
46823
|
+
);
|
|
46824
|
+
}
|
|
46825
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
46826
|
+
if (f != null) {
|
|
46827
|
+
writer.writeString(
|
|
46828
|
+
7,
|
|
46829
|
+
f
|
|
46830
|
+
);
|
|
46831
|
+
}
|
|
46832
|
+
};
|
|
46833
|
+
|
|
46834
|
+
|
|
46835
|
+
/**
|
|
46836
|
+
* optional int32 id = 1;
|
|
46837
|
+
* @return {number}
|
|
46838
|
+
*/
|
|
46839
|
+
proto.cms.PresetCashierConfigItem.prototype.getId = function() {
|
|
46840
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
46841
|
+
};
|
|
46842
|
+
|
|
46843
|
+
|
|
46844
|
+
/**
|
|
46845
|
+
* @param {number} value
|
|
46846
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46847
|
+
*/
|
|
46848
|
+
proto.cms.PresetCashierConfigItem.prototype.setId = function(value) {
|
|
46849
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
46850
|
+
};
|
|
46851
|
+
|
|
46852
|
+
|
|
46853
|
+
/**
|
|
46854
|
+
* optional int32 preset_id = 2;
|
|
46855
|
+
* @return {number}
|
|
46856
|
+
*/
|
|
46857
|
+
proto.cms.PresetCashierConfigItem.prototype.getPresetId = function() {
|
|
46858
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
46859
|
+
};
|
|
46860
|
+
|
|
46861
|
+
|
|
46862
|
+
/**
|
|
46863
|
+
* @param {number} value
|
|
46864
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46865
|
+
*/
|
|
46866
|
+
proto.cms.PresetCashierConfigItem.prototype.setPresetId = function(value) {
|
|
46867
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
46868
|
+
};
|
|
46869
|
+
|
|
46870
|
+
|
|
46871
|
+
/**
|
|
46872
|
+
* repeated PresetCashierCurrencyAmounts currencies = 3;
|
|
46873
|
+
* @return {!Array<!proto.cms.PresetCashierCurrencyAmounts>}
|
|
46874
|
+
*/
|
|
46875
|
+
proto.cms.PresetCashierConfigItem.prototype.getCurrenciesList = function() {
|
|
46876
|
+
return /** @type{!Array<!proto.cms.PresetCashierCurrencyAmounts>} */ (
|
|
46877
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierCurrencyAmounts, 3));
|
|
46878
|
+
};
|
|
46879
|
+
|
|
46880
|
+
|
|
46881
|
+
/**
|
|
46882
|
+
* @param {!Array<!proto.cms.PresetCashierCurrencyAmounts>} value
|
|
46883
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46884
|
+
*/
|
|
46885
|
+
proto.cms.PresetCashierConfigItem.prototype.setCurrenciesList = function(value) {
|
|
46886
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
46887
|
+
};
|
|
46888
|
+
|
|
46889
|
+
|
|
46890
|
+
/**
|
|
46891
|
+
* @param {!proto.cms.PresetCashierCurrencyAmounts=} opt_value
|
|
46892
|
+
* @param {number=} opt_index
|
|
46893
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts}
|
|
46894
|
+
*/
|
|
46895
|
+
proto.cms.PresetCashierConfigItem.prototype.addCurrencies = function(opt_value, opt_index) {
|
|
46896
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cms.PresetCashierCurrencyAmounts, opt_index);
|
|
46897
|
+
};
|
|
46898
|
+
|
|
46899
|
+
|
|
46900
|
+
/**
|
|
46901
|
+
* Clears the list making it empty but non-null.
|
|
46902
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46903
|
+
*/
|
|
46904
|
+
proto.cms.PresetCashierConfigItem.prototype.clearCurrenciesList = function() {
|
|
46905
|
+
return this.setCurrenciesList([]);
|
|
46906
|
+
};
|
|
46907
|
+
|
|
46908
|
+
|
|
46909
|
+
/**
|
|
46910
|
+
* repeated PresetCashierPaymentOrderGroup payment_groups = 4;
|
|
46911
|
+
* @return {!Array<!proto.cms.PresetCashierPaymentOrderGroup>}
|
|
46912
|
+
*/
|
|
46913
|
+
proto.cms.PresetCashierConfigItem.prototype.getPaymentGroupsList = function() {
|
|
46914
|
+
return /** @type{!Array<!proto.cms.PresetCashierPaymentOrderGroup>} */ (
|
|
46915
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierPaymentOrderGroup, 4));
|
|
46916
|
+
};
|
|
46917
|
+
|
|
46918
|
+
|
|
46919
|
+
/**
|
|
46920
|
+
* @param {!Array<!proto.cms.PresetCashierPaymentOrderGroup>} value
|
|
46921
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46922
|
+
*/
|
|
46923
|
+
proto.cms.PresetCashierConfigItem.prototype.setPaymentGroupsList = function(value) {
|
|
46924
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
46925
|
+
};
|
|
46926
|
+
|
|
46927
|
+
|
|
46928
|
+
/**
|
|
46929
|
+
* @param {!proto.cms.PresetCashierPaymentOrderGroup=} opt_value
|
|
46930
|
+
* @param {number=} opt_index
|
|
46931
|
+
* @return {!proto.cms.PresetCashierPaymentOrderGroup}
|
|
46932
|
+
*/
|
|
46933
|
+
proto.cms.PresetCashierConfigItem.prototype.addPaymentGroups = function(opt_value, opt_index) {
|
|
46934
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cms.PresetCashierPaymentOrderGroup, opt_index);
|
|
46935
|
+
};
|
|
46936
|
+
|
|
46937
|
+
|
|
46938
|
+
/**
|
|
46939
|
+
* Clears the list making it empty but non-null.
|
|
46940
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46941
|
+
*/
|
|
46942
|
+
proto.cms.PresetCashierConfigItem.prototype.clearPaymentGroupsList = function() {
|
|
46943
|
+
return this.setPaymentGroupsList([]);
|
|
46944
|
+
};
|
|
46945
|
+
|
|
46946
|
+
|
|
46947
|
+
/**
|
|
46948
|
+
* optional int32 is_active = 5;
|
|
46949
|
+
* @return {number}
|
|
46950
|
+
*/
|
|
46951
|
+
proto.cms.PresetCashierConfigItem.prototype.getIsActive = function() {
|
|
46952
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
46953
|
+
};
|
|
46954
|
+
|
|
46955
|
+
|
|
46956
|
+
/**
|
|
46957
|
+
* @param {number} value
|
|
46958
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46959
|
+
*/
|
|
46960
|
+
proto.cms.PresetCashierConfigItem.prototype.setIsActive = function(value) {
|
|
46961
|
+
return jspb.Message.setField(this, 5, value);
|
|
46962
|
+
};
|
|
46963
|
+
|
|
46964
|
+
|
|
46965
|
+
/**
|
|
46966
|
+
* Clears the field making it undefined.
|
|
46967
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46968
|
+
*/
|
|
46969
|
+
proto.cms.PresetCashierConfigItem.prototype.clearIsActive = function() {
|
|
46970
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
46971
|
+
};
|
|
46972
|
+
|
|
46973
|
+
|
|
46974
|
+
/**
|
|
46975
|
+
* Returns whether this field is set.
|
|
46976
|
+
* @return {boolean}
|
|
46977
|
+
*/
|
|
46978
|
+
proto.cms.PresetCashierConfigItem.prototype.hasIsActive = function() {
|
|
46979
|
+
return jspb.Message.getField(this, 5) != null;
|
|
46980
|
+
};
|
|
46981
|
+
|
|
46982
|
+
|
|
46983
|
+
/**
|
|
46984
|
+
* optional string created_at = 6;
|
|
46985
|
+
* @return {string}
|
|
46986
|
+
*/
|
|
46987
|
+
proto.cms.PresetCashierConfigItem.prototype.getCreatedAt = function() {
|
|
46988
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
46989
|
+
};
|
|
46990
|
+
|
|
46991
|
+
|
|
46992
|
+
/**
|
|
46993
|
+
* @param {string} value
|
|
46994
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
46995
|
+
*/
|
|
46996
|
+
proto.cms.PresetCashierConfigItem.prototype.setCreatedAt = function(value) {
|
|
46997
|
+
return jspb.Message.setField(this, 6, value);
|
|
46998
|
+
};
|
|
46999
|
+
|
|
47000
|
+
|
|
47001
|
+
/**
|
|
47002
|
+
* Clears the field making it undefined.
|
|
47003
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
47004
|
+
*/
|
|
47005
|
+
proto.cms.PresetCashierConfigItem.prototype.clearCreatedAt = function() {
|
|
47006
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
47007
|
+
};
|
|
47008
|
+
|
|
47009
|
+
|
|
47010
|
+
/**
|
|
47011
|
+
* Returns whether this field is set.
|
|
47012
|
+
* @return {boolean}
|
|
47013
|
+
*/
|
|
47014
|
+
proto.cms.PresetCashierConfigItem.prototype.hasCreatedAt = function() {
|
|
47015
|
+
return jspb.Message.getField(this, 6) != null;
|
|
47016
|
+
};
|
|
47017
|
+
|
|
47018
|
+
|
|
47019
|
+
/**
|
|
47020
|
+
* optional string updated_at = 7;
|
|
47021
|
+
* @return {string}
|
|
47022
|
+
*/
|
|
47023
|
+
proto.cms.PresetCashierConfigItem.prototype.getUpdatedAt = function() {
|
|
47024
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
47025
|
+
};
|
|
47026
|
+
|
|
47027
|
+
|
|
47028
|
+
/**
|
|
47029
|
+
* @param {string} value
|
|
47030
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
47031
|
+
*/
|
|
47032
|
+
proto.cms.PresetCashierConfigItem.prototype.setUpdatedAt = function(value) {
|
|
47033
|
+
return jspb.Message.setField(this, 7, value);
|
|
47034
|
+
};
|
|
47035
|
+
|
|
47036
|
+
|
|
47037
|
+
/**
|
|
47038
|
+
* Clears the field making it undefined.
|
|
47039
|
+
* @return {!proto.cms.PresetCashierConfigItem} returns this
|
|
47040
|
+
*/
|
|
47041
|
+
proto.cms.PresetCashierConfigItem.prototype.clearUpdatedAt = function() {
|
|
47042
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
47043
|
+
};
|
|
47044
|
+
|
|
47045
|
+
|
|
47046
|
+
/**
|
|
47047
|
+
* Returns whether this field is set.
|
|
47048
|
+
* @return {boolean}
|
|
47049
|
+
*/
|
|
47050
|
+
proto.cms.PresetCashierConfigItem.prototype.hasUpdatedAt = function() {
|
|
47051
|
+
return jspb.Message.getField(this, 7) != null;
|
|
47052
|
+
};
|
|
47053
|
+
|
|
47054
|
+
|
|
47055
|
+
|
|
47056
|
+
/**
|
|
47057
|
+
* List of repeated fields within this message type.
|
|
47058
|
+
* @private {!Array<number>}
|
|
47059
|
+
* @const
|
|
47060
|
+
*/
|
|
47061
|
+
proto.cms.SetPresetCashierConfigRequest.repeatedFields_ = [3,4];
|
|
47062
|
+
|
|
47063
|
+
|
|
47064
|
+
|
|
47065
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47066
|
+
/**
|
|
47067
|
+
* Creates an object representation of this proto.
|
|
47068
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47069
|
+
* Optional fields that are not set will be set to undefined.
|
|
47070
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47071
|
+
* For the list of reserved names please see:
|
|
47072
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47073
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47074
|
+
* JSPB instance for transitional soy proto support:
|
|
47075
|
+
* http://goto/soy-param-migration
|
|
47076
|
+
* @return {!Object}
|
|
47077
|
+
*/
|
|
47078
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.toObject = function(opt_includeInstance) {
|
|
47079
|
+
return proto.cms.SetPresetCashierConfigRequest.toObject(opt_includeInstance, this);
|
|
47080
|
+
};
|
|
47081
|
+
|
|
47082
|
+
|
|
47083
|
+
/**
|
|
47084
|
+
* Static version of the {@see toObject} method.
|
|
47085
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47086
|
+
* the JSPB instance for transitional soy proto support:
|
|
47087
|
+
* http://goto/soy-param-migration
|
|
47088
|
+
* @param {!proto.cms.SetPresetCashierConfigRequest} msg The msg instance to transform.
|
|
47089
|
+
* @return {!Object}
|
|
47090
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47091
|
+
*/
|
|
47092
|
+
proto.cms.SetPresetCashierConfigRequest.toObject = function(includeInstance, msg) {
|
|
47093
|
+
var f, obj = {
|
|
47094
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
47095
|
+
presetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
47096
|
+
currenciesList: jspb.Message.toObjectList(msg.getCurrenciesList(),
|
|
47097
|
+
proto.cms.PresetCashierCurrencyAmounts.toObject, includeInstance),
|
|
47098
|
+
paymentGroupsList: jspb.Message.toObjectList(msg.getPaymentGroupsList(),
|
|
47099
|
+
proto.cms.PresetCashierPaymentOrderGroup.toObject, includeInstance),
|
|
47100
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
47101
|
+
};
|
|
47102
|
+
|
|
47103
|
+
if (includeInstance) {
|
|
47104
|
+
obj.$jspbMessageInstance = msg;
|
|
47105
|
+
}
|
|
47106
|
+
return obj;
|
|
47107
|
+
};
|
|
47108
|
+
}
|
|
47109
|
+
|
|
47110
|
+
|
|
47111
|
+
/**
|
|
47112
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47113
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47114
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest}
|
|
47115
|
+
*/
|
|
47116
|
+
proto.cms.SetPresetCashierConfigRequest.deserializeBinary = function(bytes) {
|
|
47117
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47118
|
+
var msg = new proto.cms.SetPresetCashierConfigRequest;
|
|
47119
|
+
return proto.cms.SetPresetCashierConfigRequest.deserializeBinaryFromReader(msg, reader);
|
|
47120
|
+
};
|
|
47121
|
+
|
|
47122
|
+
|
|
47123
|
+
/**
|
|
47124
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47125
|
+
* given reader into the given message object.
|
|
47126
|
+
* @param {!proto.cms.SetPresetCashierConfigRequest} msg The message object to deserialize into.
|
|
47127
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47128
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest}
|
|
47129
|
+
*/
|
|
47130
|
+
proto.cms.SetPresetCashierConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
47131
|
+
while (reader.nextField()) {
|
|
47132
|
+
if (reader.isEndGroup()) {
|
|
47133
|
+
break;
|
|
47134
|
+
}
|
|
47135
|
+
var field = reader.getFieldNumber();
|
|
47136
|
+
switch (field) {
|
|
47137
|
+
case 1:
|
|
47138
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47139
|
+
msg.setId(value);
|
|
47140
|
+
break;
|
|
47141
|
+
case 2:
|
|
47142
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47143
|
+
msg.setPresetId(value);
|
|
47144
|
+
break;
|
|
47145
|
+
case 3:
|
|
47146
|
+
var value = new proto.cms.PresetCashierCurrencyAmounts;
|
|
47147
|
+
reader.readMessage(value,proto.cms.PresetCashierCurrencyAmounts.deserializeBinaryFromReader);
|
|
47148
|
+
msg.addCurrencies(value);
|
|
47149
|
+
break;
|
|
47150
|
+
case 4:
|
|
47151
|
+
var value = new proto.cms.PresetCashierPaymentOrderGroup;
|
|
47152
|
+
reader.readMessage(value,proto.cms.PresetCashierPaymentOrderGroup.deserializeBinaryFromReader);
|
|
47153
|
+
msg.addPaymentGroups(value);
|
|
47154
|
+
break;
|
|
47155
|
+
case 5:
|
|
47156
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47157
|
+
msg.setIsActive(value);
|
|
47158
|
+
break;
|
|
47159
|
+
default:
|
|
47160
|
+
reader.skipField();
|
|
47161
|
+
break;
|
|
47162
|
+
}
|
|
47163
|
+
}
|
|
47164
|
+
return msg;
|
|
47165
|
+
};
|
|
47166
|
+
|
|
47167
|
+
|
|
47168
|
+
/**
|
|
47169
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47170
|
+
* @return {!Uint8Array}
|
|
47171
|
+
*/
|
|
47172
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.serializeBinary = function() {
|
|
47173
|
+
var writer = new jspb.BinaryWriter();
|
|
47174
|
+
proto.cms.SetPresetCashierConfigRequest.serializeBinaryToWriter(this, writer);
|
|
47175
|
+
return writer.getResultBuffer();
|
|
47176
|
+
};
|
|
47177
|
+
|
|
47178
|
+
|
|
47179
|
+
/**
|
|
47180
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
47181
|
+
* format), writing to the given BinaryWriter.
|
|
47182
|
+
* @param {!proto.cms.SetPresetCashierConfigRequest} message
|
|
47183
|
+
* @param {!jspb.BinaryWriter} writer
|
|
47184
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47185
|
+
*/
|
|
47186
|
+
proto.cms.SetPresetCashierConfigRequest.serializeBinaryToWriter = function(message, writer) {
|
|
47187
|
+
var f = undefined;
|
|
47188
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
47189
|
+
if (f != null) {
|
|
47190
|
+
writer.writeInt32(
|
|
47191
|
+
1,
|
|
47192
|
+
f
|
|
47193
|
+
);
|
|
47194
|
+
}
|
|
47195
|
+
f = message.getPresetId();
|
|
47196
|
+
if (f !== 0) {
|
|
47197
|
+
writer.writeInt32(
|
|
47198
|
+
2,
|
|
47199
|
+
f
|
|
47200
|
+
);
|
|
47201
|
+
}
|
|
47202
|
+
f = message.getCurrenciesList();
|
|
47203
|
+
if (f.length > 0) {
|
|
47204
|
+
writer.writeRepeatedMessage(
|
|
47205
|
+
3,
|
|
47206
|
+
f,
|
|
47207
|
+
proto.cms.PresetCashierCurrencyAmounts.serializeBinaryToWriter
|
|
47208
|
+
);
|
|
47209
|
+
}
|
|
47210
|
+
f = message.getPaymentGroupsList();
|
|
47211
|
+
if (f.length > 0) {
|
|
47212
|
+
writer.writeRepeatedMessage(
|
|
47213
|
+
4,
|
|
47214
|
+
f,
|
|
47215
|
+
proto.cms.PresetCashierPaymentOrderGroup.serializeBinaryToWriter
|
|
47216
|
+
);
|
|
47217
|
+
}
|
|
47218
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
47219
|
+
if (f != null) {
|
|
47220
|
+
writer.writeInt32(
|
|
47221
|
+
5,
|
|
47222
|
+
f
|
|
47223
|
+
);
|
|
47224
|
+
}
|
|
47225
|
+
};
|
|
47226
|
+
|
|
47227
|
+
|
|
47228
|
+
/**
|
|
47229
|
+
* optional int32 id = 1;
|
|
47230
|
+
* @return {number}
|
|
47231
|
+
*/
|
|
47232
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.getId = function() {
|
|
47233
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
47234
|
+
};
|
|
47235
|
+
|
|
47236
|
+
|
|
47237
|
+
/**
|
|
47238
|
+
* @param {number} value
|
|
47239
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47240
|
+
*/
|
|
47241
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.setId = function(value) {
|
|
47242
|
+
return jspb.Message.setField(this, 1, value);
|
|
47243
|
+
};
|
|
47244
|
+
|
|
47245
|
+
|
|
47246
|
+
/**
|
|
47247
|
+
* Clears the field making it undefined.
|
|
47248
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47249
|
+
*/
|
|
47250
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.clearId = function() {
|
|
47251
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
47252
|
+
};
|
|
47253
|
+
|
|
47254
|
+
|
|
47255
|
+
/**
|
|
47256
|
+
* Returns whether this field is set.
|
|
47257
|
+
* @return {boolean}
|
|
47258
|
+
*/
|
|
47259
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.hasId = function() {
|
|
47260
|
+
return jspb.Message.getField(this, 1) != null;
|
|
47261
|
+
};
|
|
47262
|
+
|
|
47263
|
+
|
|
47264
|
+
/**
|
|
47265
|
+
* optional int32 preset_id = 2;
|
|
47266
|
+
* @return {number}
|
|
47267
|
+
*/
|
|
47268
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.getPresetId = function() {
|
|
47269
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
47270
|
+
};
|
|
47271
|
+
|
|
47272
|
+
|
|
47273
|
+
/**
|
|
47274
|
+
* @param {number} value
|
|
47275
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47276
|
+
*/
|
|
47277
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.setPresetId = function(value) {
|
|
47278
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
47279
|
+
};
|
|
47280
|
+
|
|
47281
|
+
|
|
47282
|
+
/**
|
|
47283
|
+
* repeated PresetCashierCurrencyAmounts currencies = 3;
|
|
47284
|
+
* @return {!Array<!proto.cms.PresetCashierCurrencyAmounts>}
|
|
47285
|
+
*/
|
|
47286
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.getCurrenciesList = function() {
|
|
47287
|
+
return /** @type{!Array<!proto.cms.PresetCashierCurrencyAmounts>} */ (
|
|
47288
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierCurrencyAmounts, 3));
|
|
47289
|
+
};
|
|
47290
|
+
|
|
47291
|
+
|
|
47292
|
+
/**
|
|
47293
|
+
* @param {!Array<!proto.cms.PresetCashierCurrencyAmounts>} value
|
|
47294
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47295
|
+
*/
|
|
47296
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.setCurrenciesList = function(value) {
|
|
47297
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
47298
|
+
};
|
|
47299
|
+
|
|
47300
|
+
|
|
47301
|
+
/**
|
|
47302
|
+
* @param {!proto.cms.PresetCashierCurrencyAmounts=} opt_value
|
|
47303
|
+
* @param {number=} opt_index
|
|
47304
|
+
* @return {!proto.cms.PresetCashierCurrencyAmounts}
|
|
47305
|
+
*/
|
|
47306
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.addCurrencies = function(opt_value, opt_index) {
|
|
47307
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cms.PresetCashierCurrencyAmounts, opt_index);
|
|
47308
|
+
};
|
|
47309
|
+
|
|
47310
|
+
|
|
47311
|
+
/**
|
|
47312
|
+
* Clears the list making it empty but non-null.
|
|
47313
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47314
|
+
*/
|
|
47315
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.clearCurrenciesList = function() {
|
|
47316
|
+
return this.setCurrenciesList([]);
|
|
47317
|
+
};
|
|
47318
|
+
|
|
47319
|
+
|
|
47320
|
+
/**
|
|
47321
|
+
* repeated PresetCashierPaymentOrderGroup payment_groups = 4;
|
|
47322
|
+
* @return {!Array<!proto.cms.PresetCashierPaymentOrderGroup>}
|
|
47323
|
+
*/
|
|
47324
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.getPaymentGroupsList = function() {
|
|
47325
|
+
return /** @type{!Array<!proto.cms.PresetCashierPaymentOrderGroup>} */ (
|
|
47326
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierPaymentOrderGroup, 4));
|
|
47327
|
+
};
|
|
47328
|
+
|
|
47329
|
+
|
|
47330
|
+
/**
|
|
47331
|
+
* @param {!Array<!proto.cms.PresetCashierPaymentOrderGroup>} value
|
|
47332
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47333
|
+
*/
|
|
47334
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.setPaymentGroupsList = function(value) {
|
|
47335
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
47336
|
+
};
|
|
47337
|
+
|
|
47338
|
+
|
|
47339
|
+
/**
|
|
47340
|
+
* @param {!proto.cms.PresetCashierPaymentOrderGroup=} opt_value
|
|
47341
|
+
* @param {number=} opt_index
|
|
47342
|
+
* @return {!proto.cms.PresetCashierPaymentOrderGroup}
|
|
47343
|
+
*/
|
|
47344
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.addPaymentGroups = function(opt_value, opt_index) {
|
|
47345
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cms.PresetCashierPaymentOrderGroup, opt_index);
|
|
47346
|
+
};
|
|
47347
|
+
|
|
47348
|
+
|
|
47349
|
+
/**
|
|
47350
|
+
* Clears the list making it empty but non-null.
|
|
47351
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47352
|
+
*/
|
|
47353
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.clearPaymentGroupsList = function() {
|
|
47354
|
+
return this.setPaymentGroupsList([]);
|
|
47355
|
+
};
|
|
47356
|
+
|
|
47357
|
+
|
|
47358
|
+
/**
|
|
47359
|
+
* optional int32 is_active = 5;
|
|
47360
|
+
* @return {number}
|
|
47361
|
+
*/
|
|
47362
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.getIsActive = function() {
|
|
47363
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
47364
|
+
};
|
|
47365
|
+
|
|
47366
|
+
|
|
47367
|
+
/**
|
|
47368
|
+
* @param {number} value
|
|
47369
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47370
|
+
*/
|
|
47371
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.setIsActive = function(value) {
|
|
47372
|
+
return jspb.Message.setField(this, 5, value);
|
|
47373
|
+
};
|
|
47374
|
+
|
|
47375
|
+
|
|
47376
|
+
/**
|
|
47377
|
+
* Clears the field making it undefined.
|
|
47378
|
+
* @return {!proto.cms.SetPresetCashierConfigRequest} returns this
|
|
47379
|
+
*/
|
|
47380
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.clearIsActive = function() {
|
|
47381
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
47382
|
+
};
|
|
47383
|
+
|
|
47384
|
+
|
|
47385
|
+
/**
|
|
47386
|
+
* Returns whether this field is set.
|
|
47387
|
+
* @return {boolean}
|
|
47388
|
+
*/
|
|
47389
|
+
proto.cms.SetPresetCashierConfigRequest.prototype.hasIsActive = function() {
|
|
47390
|
+
return jspb.Message.getField(this, 5) != null;
|
|
47391
|
+
};
|
|
47392
|
+
|
|
47393
|
+
|
|
47394
|
+
|
|
47395
|
+
|
|
47396
|
+
|
|
47397
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47398
|
+
/**
|
|
47399
|
+
* Creates an object representation of this proto.
|
|
47400
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47401
|
+
* Optional fields that are not set will be set to undefined.
|
|
47402
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47403
|
+
* For the list of reserved names please see:
|
|
47404
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47405
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47406
|
+
* JSPB instance for transitional soy proto support:
|
|
47407
|
+
* http://goto/soy-param-migration
|
|
47408
|
+
* @return {!Object}
|
|
47409
|
+
*/
|
|
47410
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.toObject = function(opt_includeInstance) {
|
|
47411
|
+
return proto.cms.GetPresetCashierConfigRequest.toObject(opt_includeInstance, this);
|
|
47412
|
+
};
|
|
47413
|
+
|
|
47414
|
+
|
|
47415
|
+
/**
|
|
47416
|
+
* Static version of the {@see toObject} method.
|
|
47417
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47418
|
+
* the JSPB instance for transitional soy proto support:
|
|
47419
|
+
* http://goto/soy-param-migration
|
|
47420
|
+
* @param {!proto.cms.GetPresetCashierConfigRequest} msg The msg instance to transform.
|
|
47421
|
+
* @return {!Object}
|
|
47422
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47423
|
+
*/
|
|
47424
|
+
proto.cms.GetPresetCashierConfigRequest.toObject = function(includeInstance, msg) {
|
|
47425
|
+
var f, obj = {
|
|
47426
|
+
presetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
47427
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
47428
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
47429
|
+
};
|
|
47430
|
+
|
|
47431
|
+
if (includeInstance) {
|
|
47432
|
+
obj.$jspbMessageInstance = msg;
|
|
47433
|
+
}
|
|
47434
|
+
return obj;
|
|
47435
|
+
};
|
|
47436
|
+
}
|
|
47437
|
+
|
|
47438
|
+
|
|
47439
|
+
/**
|
|
47440
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47441
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47442
|
+
* @return {!proto.cms.GetPresetCashierConfigRequest}
|
|
47443
|
+
*/
|
|
47444
|
+
proto.cms.GetPresetCashierConfigRequest.deserializeBinary = function(bytes) {
|
|
47445
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47446
|
+
var msg = new proto.cms.GetPresetCashierConfigRequest;
|
|
47447
|
+
return proto.cms.GetPresetCashierConfigRequest.deserializeBinaryFromReader(msg, reader);
|
|
47448
|
+
};
|
|
47449
|
+
|
|
47450
|
+
|
|
47451
|
+
/**
|
|
47452
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47453
|
+
* given reader into the given message object.
|
|
47454
|
+
* @param {!proto.cms.GetPresetCashierConfigRequest} msg The message object to deserialize into.
|
|
47455
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47456
|
+
* @return {!proto.cms.GetPresetCashierConfigRequest}
|
|
47457
|
+
*/
|
|
47458
|
+
proto.cms.GetPresetCashierConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
47459
|
+
while (reader.nextField()) {
|
|
47460
|
+
if (reader.isEndGroup()) {
|
|
47461
|
+
break;
|
|
47462
|
+
}
|
|
47463
|
+
var field = reader.getFieldNumber();
|
|
47464
|
+
switch (field) {
|
|
47465
|
+
case 1:
|
|
47466
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47467
|
+
msg.setPresetId(value);
|
|
47468
|
+
break;
|
|
47469
|
+
case 2:
|
|
47470
|
+
var value = /** @type {string} */ (reader.readString());
|
|
47471
|
+
msg.setGeo(value);
|
|
47472
|
+
break;
|
|
47473
|
+
case 3:
|
|
47474
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
47475
|
+
msg.setAdminSide(value);
|
|
47476
|
+
break;
|
|
47477
|
+
default:
|
|
47478
|
+
reader.skipField();
|
|
47479
|
+
break;
|
|
47480
|
+
}
|
|
47481
|
+
}
|
|
47482
|
+
return msg;
|
|
47483
|
+
};
|
|
47484
|
+
|
|
47485
|
+
|
|
47486
|
+
/**
|
|
47487
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47488
|
+
* @return {!Uint8Array}
|
|
47489
|
+
*/
|
|
47490
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.serializeBinary = function() {
|
|
47491
|
+
var writer = new jspb.BinaryWriter();
|
|
47492
|
+
proto.cms.GetPresetCashierConfigRequest.serializeBinaryToWriter(this, writer);
|
|
47493
|
+
return writer.getResultBuffer();
|
|
47494
|
+
};
|
|
47495
|
+
|
|
47496
|
+
|
|
47497
|
+
/**
|
|
47498
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
47499
|
+
* format), writing to the given BinaryWriter.
|
|
47500
|
+
* @param {!proto.cms.GetPresetCashierConfigRequest} message
|
|
47501
|
+
* @param {!jspb.BinaryWriter} writer
|
|
47502
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47503
|
+
*/
|
|
47504
|
+
proto.cms.GetPresetCashierConfigRequest.serializeBinaryToWriter = function(message, writer) {
|
|
47505
|
+
var f = undefined;
|
|
47506
|
+
f = message.getPresetId();
|
|
47507
|
+
if (f !== 0) {
|
|
47508
|
+
writer.writeInt32(
|
|
47509
|
+
1,
|
|
47510
|
+
f
|
|
47511
|
+
);
|
|
47512
|
+
}
|
|
47513
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
47514
|
+
if (f != null) {
|
|
47515
|
+
writer.writeString(
|
|
47516
|
+
2,
|
|
47517
|
+
f
|
|
47518
|
+
);
|
|
47519
|
+
}
|
|
47520
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
|
47521
|
+
if (f != null) {
|
|
47522
|
+
writer.writeBool(
|
|
47523
|
+
3,
|
|
47524
|
+
f
|
|
47525
|
+
);
|
|
47526
|
+
}
|
|
47527
|
+
};
|
|
47528
|
+
|
|
47529
|
+
|
|
47530
|
+
/**
|
|
47531
|
+
* optional int32 preset_id = 1;
|
|
47532
|
+
* @return {number}
|
|
47533
|
+
*/
|
|
47534
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.getPresetId = function() {
|
|
47535
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
47536
|
+
};
|
|
47537
|
+
|
|
47538
|
+
|
|
47539
|
+
/**
|
|
47540
|
+
* @param {number} value
|
|
47541
|
+
* @return {!proto.cms.GetPresetCashierConfigRequest} returns this
|
|
47542
|
+
*/
|
|
47543
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.setPresetId = function(value) {
|
|
47544
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
47545
|
+
};
|
|
47546
|
+
|
|
47547
|
+
|
|
47548
|
+
/**
|
|
47549
|
+
* optional string geo = 2;
|
|
47550
|
+
* @return {string}
|
|
47551
|
+
*/
|
|
47552
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.getGeo = function() {
|
|
47553
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
47554
|
+
};
|
|
47555
|
+
|
|
47556
|
+
|
|
47557
|
+
/**
|
|
47558
|
+
* @param {string} value
|
|
47559
|
+
* @return {!proto.cms.GetPresetCashierConfigRequest} returns this
|
|
47560
|
+
*/
|
|
47561
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.setGeo = function(value) {
|
|
47562
|
+
return jspb.Message.setField(this, 2, value);
|
|
47563
|
+
};
|
|
47564
|
+
|
|
47565
|
+
|
|
47566
|
+
/**
|
|
47567
|
+
* Clears the field making it undefined.
|
|
47568
|
+
* @return {!proto.cms.GetPresetCashierConfigRequest} returns this
|
|
47569
|
+
*/
|
|
47570
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.clearGeo = function() {
|
|
47571
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
47572
|
+
};
|
|
47573
|
+
|
|
47574
|
+
|
|
47575
|
+
/**
|
|
47576
|
+
* Returns whether this field is set.
|
|
47577
|
+
* @return {boolean}
|
|
47578
|
+
*/
|
|
47579
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.hasGeo = function() {
|
|
47580
|
+
return jspb.Message.getField(this, 2) != null;
|
|
47581
|
+
};
|
|
47582
|
+
|
|
47583
|
+
|
|
47584
|
+
/**
|
|
47585
|
+
* optional bool admin_side = 3;
|
|
47586
|
+
* @return {boolean}
|
|
47587
|
+
*/
|
|
47588
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.getAdminSide = function() {
|
|
47589
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
47590
|
+
};
|
|
47591
|
+
|
|
47592
|
+
|
|
47593
|
+
/**
|
|
47594
|
+
* @param {boolean} value
|
|
47595
|
+
* @return {!proto.cms.GetPresetCashierConfigRequest} returns this
|
|
47596
|
+
*/
|
|
47597
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.setAdminSide = function(value) {
|
|
47598
|
+
return jspb.Message.setField(this, 3, value);
|
|
47599
|
+
};
|
|
47600
|
+
|
|
47601
|
+
|
|
47602
|
+
/**
|
|
47603
|
+
* Clears the field making it undefined.
|
|
47604
|
+
* @return {!proto.cms.GetPresetCashierConfigRequest} returns this
|
|
47605
|
+
*/
|
|
47606
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.clearAdminSide = function() {
|
|
47607
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
47608
|
+
};
|
|
47609
|
+
|
|
47610
|
+
|
|
47611
|
+
/**
|
|
47612
|
+
* Returns whether this field is set.
|
|
47613
|
+
* @return {boolean}
|
|
47614
|
+
*/
|
|
47615
|
+
proto.cms.GetPresetCashierConfigRequest.prototype.hasAdminSide = function() {
|
|
47616
|
+
return jspb.Message.getField(this, 3) != null;
|
|
47617
|
+
};
|
|
47618
|
+
|
|
47619
|
+
|
|
47620
|
+
|
|
47621
|
+
|
|
47622
|
+
|
|
47623
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47624
|
+
/**
|
|
47625
|
+
* Creates an object representation of this proto.
|
|
47626
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47627
|
+
* Optional fields that are not set will be set to undefined.
|
|
47628
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47629
|
+
* For the list of reserved names please see:
|
|
47630
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47631
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47632
|
+
* JSPB instance for transitional soy proto support:
|
|
47633
|
+
* http://goto/soy-param-migration
|
|
47634
|
+
* @return {!Object}
|
|
47635
|
+
*/
|
|
47636
|
+
proto.cms.ReadPresetCashierConfigRequest.prototype.toObject = function(opt_includeInstance) {
|
|
47637
|
+
return proto.cms.ReadPresetCashierConfigRequest.toObject(opt_includeInstance, this);
|
|
47638
|
+
};
|
|
47639
|
+
|
|
47640
|
+
|
|
47641
|
+
/**
|
|
47642
|
+
* Static version of the {@see toObject} method.
|
|
47643
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47644
|
+
* the JSPB instance for transitional soy proto support:
|
|
47645
|
+
* http://goto/soy-param-migration
|
|
47646
|
+
* @param {!proto.cms.ReadPresetCashierConfigRequest} msg The msg instance to transform.
|
|
47647
|
+
* @return {!Object}
|
|
47648
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47649
|
+
*/
|
|
47650
|
+
proto.cms.ReadPresetCashierConfigRequest.toObject = function(includeInstance, msg) {
|
|
47651
|
+
var f, obj = {
|
|
47652
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
47653
|
+
};
|
|
47654
|
+
|
|
47655
|
+
if (includeInstance) {
|
|
47656
|
+
obj.$jspbMessageInstance = msg;
|
|
47657
|
+
}
|
|
47658
|
+
return obj;
|
|
47659
|
+
};
|
|
47660
|
+
}
|
|
47661
|
+
|
|
47662
|
+
|
|
47663
|
+
/**
|
|
47664
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47665
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47666
|
+
* @return {!proto.cms.ReadPresetCashierConfigRequest}
|
|
47667
|
+
*/
|
|
47668
|
+
proto.cms.ReadPresetCashierConfigRequest.deserializeBinary = function(bytes) {
|
|
47669
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47670
|
+
var msg = new proto.cms.ReadPresetCashierConfigRequest;
|
|
47671
|
+
return proto.cms.ReadPresetCashierConfigRequest.deserializeBinaryFromReader(msg, reader);
|
|
47672
|
+
};
|
|
47673
|
+
|
|
47674
|
+
|
|
47675
|
+
/**
|
|
47676
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47677
|
+
* given reader into the given message object.
|
|
47678
|
+
* @param {!proto.cms.ReadPresetCashierConfigRequest} msg The message object to deserialize into.
|
|
47679
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47680
|
+
* @return {!proto.cms.ReadPresetCashierConfigRequest}
|
|
47681
|
+
*/
|
|
47682
|
+
proto.cms.ReadPresetCashierConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
47683
|
+
while (reader.nextField()) {
|
|
47684
|
+
if (reader.isEndGroup()) {
|
|
47685
|
+
break;
|
|
47686
|
+
}
|
|
47687
|
+
var field = reader.getFieldNumber();
|
|
47688
|
+
switch (field) {
|
|
47689
|
+
case 1:
|
|
47690
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47691
|
+
msg.setId(value);
|
|
47692
|
+
break;
|
|
47693
|
+
default:
|
|
47694
|
+
reader.skipField();
|
|
47695
|
+
break;
|
|
47696
|
+
}
|
|
47697
|
+
}
|
|
47698
|
+
return msg;
|
|
47699
|
+
};
|
|
47700
|
+
|
|
47701
|
+
|
|
47702
|
+
/**
|
|
47703
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47704
|
+
* @return {!Uint8Array}
|
|
47705
|
+
*/
|
|
47706
|
+
proto.cms.ReadPresetCashierConfigRequest.prototype.serializeBinary = function() {
|
|
47707
|
+
var writer = new jspb.BinaryWriter();
|
|
47708
|
+
proto.cms.ReadPresetCashierConfigRequest.serializeBinaryToWriter(this, writer);
|
|
47709
|
+
return writer.getResultBuffer();
|
|
47710
|
+
};
|
|
47711
|
+
|
|
47712
|
+
|
|
47713
|
+
/**
|
|
47714
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
47715
|
+
* format), writing to the given BinaryWriter.
|
|
47716
|
+
* @param {!proto.cms.ReadPresetCashierConfigRequest} message
|
|
47717
|
+
* @param {!jspb.BinaryWriter} writer
|
|
47718
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47719
|
+
*/
|
|
47720
|
+
proto.cms.ReadPresetCashierConfigRequest.serializeBinaryToWriter = function(message, writer) {
|
|
47721
|
+
var f = undefined;
|
|
47722
|
+
f = message.getId();
|
|
47723
|
+
if (f !== 0) {
|
|
47724
|
+
writer.writeInt32(
|
|
47725
|
+
1,
|
|
47726
|
+
f
|
|
47727
|
+
);
|
|
47728
|
+
}
|
|
47729
|
+
};
|
|
47730
|
+
|
|
47731
|
+
|
|
47732
|
+
/**
|
|
47733
|
+
* optional int32 id = 1;
|
|
47734
|
+
* @return {number}
|
|
47735
|
+
*/
|
|
47736
|
+
proto.cms.ReadPresetCashierConfigRequest.prototype.getId = function() {
|
|
47737
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
47738
|
+
};
|
|
47739
|
+
|
|
47740
|
+
|
|
47741
|
+
/**
|
|
47742
|
+
* @param {number} value
|
|
47743
|
+
* @return {!proto.cms.ReadPresetCashierConfigRequest} returns this
|
|
47744
|
+
*/
|
|
47745
|
+
proto.cms.ReadPresetCashierConfigRequest.prototype.setId = function(value) {
|
|
47746
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
47747
|
+
};
|
|
47748
|
+
|
|
47749
|
+
|
|
47750
|
+
|
|
47751
|
+
|
|
47752
|
+
|
|
47753
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
47754
|
+
/**
|
|
47755
|
+
* Creates an object representation of this proto.
|
|
47756
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47757
|
+
* Optional fields that are not set will be set to undefined.
|
|
47758
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
47759
|
+
* For the list of reserved names please see:
|
|
47760
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
47761
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
47762
|
+
* JSPB instance for transitional soy proto support:
|
|
47763
|
+
* http://goto/soy-param-migration
|
|
47764
|
+
* @return {!Object}
|
|
47765
|
+
*/
|
|
47766
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
47767
|
+
return proto.cms.ReadListPresetCashierConfigsRequest.toObject(opt_includeInstance, this);
|
|
47768
|
+
};
|
|
47769
|
+
|
|
47770
|
+
|
|
47771
|
+
/**
|
|
47772
|
+
* Static version of the {@see toObject} method.
|
|
47773
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
47774
|
+
* the JSPB instance for transitional soy proto support:
|
|
47775
|
+
* http://goto/soy-param-migration
|
|
47776
|
+
* @param {!proto.cms.ReadListPresetCashierConfigsRequest} msg The msg instance to transform.
|
|
47777
|
+
* @return {!Object}
|
|
47778
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47779
|
+
*/
|
|
47780
|
+
proto.cms.ReadListPresetCashierConfigsRequest.toObject = function(includeInstance, msg) {
|
|
47781
|
+
var f, obj = {
|
|
47782
|
+
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
47783
|
+
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
47784
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
47785
|
+
presetId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
47786
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
47787
|
+
};
|
|
47788
|
+
|
|
47789
|
+
if (includeInstance) {
|
|
47790
|
+
obj.$jspbMessageInstance = msg;
|
|
47791
|
+
}
|
|
47792
|
+
return obj;
|
|
47793
|
+
};
|
|
47794
|
+
}
|
|
47795
|
+
|
|
47796
|
+
|
|
47797
|
+
/**
|
|
47798
|
+
* Deserializes binary data (in protobuf wire format).
|
|
47799
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
47800
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest}
|
|
47801
|
+
*/
|
|
47802
|
+
proto.cms.ReadListPresetCashierConfigsRequest.deserializeBinary = function(bytes) {
|
|
47803
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
47804
|
+
var msg = new proto.cms.ReadListPresetCashierConfigsRequest;
|
|
47805
|
+
return proto.cms.ReadListPresetCashierConfigsRequest.deserializeBinaryFromReader(msg, reader);
|
|
47806
|
+
};
|
|
47807
|
+
|
|
47808
|
+
|
|
47809
|
+
/**
|
|
47810
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
47811
|
+
* given reader into the given message object.
|
|
47812
|
+
* @param {!proto.cms.ReadListPresetCashierConfigsRequest} msg The message object to deserialize into.
|
|
47813
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
47814
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest}
|
|
47815
|
+
*/
|
|
47816
|
+
proto.cms.ReadListPresetCashierConfigsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
47817
|
+
while (reader.nextField()) {
|
|
47818
|
+
if (reader.isEndGroup()) {
|
|
47819
|
+
break;
|
|
47820
|
+
}
|
|
47821
|
+
var field = reader.getFieldNumber();
|
|
47822
|
+
switch (field) {
|
|
47823
|
+
case 1:
|
|
47824
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47825
|
+
msg.setLimit(value);
|
|
47826
|
+
break;
|
|
47827
|
+
case 2:
|
|
47828
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47829
|
+
msg.setOffset(value);
|
|
47830
|
+
break;
|
|
47831
|
+
case 3:
|
|
47832
|
+
var value = /** @type {string} */ (reader.readString());
|
|
47833
|
+
msg.setOrder(value);
|
|
47834
|
+
break;
|
|
47835
|
+
case 4:
|
|
47836
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47837
|
+
msg.setPresetId(value);
|
|
47838
|
+
break;
|
|
47839
|
+
case 5:
|
|
47840
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
47841
|
+
msg.setIsActive(value);
|
|
47842
|
+
break;
|
|
47843
|
+
default:
|
|
47844
|
+
reader.skipField();
|
|
47845
|
+
break;
|
|
47846
|
+
}
|
|
47847
|
+
}
|
|
47848
|
+
return msg;
|
|
47849
|
+
};
|
|
47850
|
+
|
|
47851
|
+
|
|
47852
|
+
/**
|
|
47853
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
47854
|
+
* @return {!Uint8Array}
|
|
47855
|
+
*/
|
|
47856
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.serializeBinary = function() {
|
|
47857
|
+
var writer = new jspb.BinaryWriter();
|
|
47858
|
+
proto.cms.ReadListPresetCashierConfigsRequest.serializeBinaryToWriter(this, writer);
|
|
47859
|
+
return writer.getResultBuffer();
|
|
47860
|
+
};
|
|
47861
|
+
|
|
47862
|
+
|
|
47863
|
+
/**
|
|
47864
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
47865
|
+
* format), writing to the given BinaryWriter.
|
|
47866
|
+
* @param {!proto.cms.ReadListPresetCashierConfigsRequest} message
|
|
47867
|
+
* @param {!jspb.BinaryWriter} writer
|
|
47868
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
47869
|
+
*/
|
|
47870
|
+
proto.cms.ReadListPresetCashierConfigsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
47871
|
+
var f = undefined;
|
|
47872
|
+
f = message.getLimit();
|
|
47873
|
+
if (f !== 0) {
|
|
47874
|
+
writer.writeInt32(
|
|
47875
|
+
1,
|
|
47876
|
+
f
|
|
47877
|
+
);
|
|
47878
|
+
}
|
|
47879
|
+
f = message.getOffset();
|
|
47880
|
+
if (f !== 0) {
|
|
47881
|
+
writer.writeInt32(
|
|
47882
|
+
2,
|
|
47883
|
+
f
|
|
47884
|
+
);
|
|
47885
|
+
}
|
|
47886
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
47887
|
+
if (f != null) {
|
|
47888
|
+
writer.writeString(
|
|
47889
|
+
3,
|
|
47890
|
+
f
|
|
47891
|
+
);
|
|
47892
|
+
}
|
|
47893
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
47894
|
+
if (f != null) {
|
|
47895
|
+
writer.writeInt32(
|
|
47896
|
+
4,
|
|
47897
|
+
f
|
|
47898
|
+
);
|
|
47899
|
+
}
|
|
47900
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
47901
|
+
if (f != null) {
|
|
47902
|
+
writer.writeInt32(
|
|
47903
|
+
5,
|
|
47904
|
+
f
|
|
47905
|
+
);
|
|
47906
|
+
}
|
|
47907
|
+
};
|
|
47908
|
+
|
|
47909
|
+
|
|
47910
|
+
/**
|
|
47911
|
+
* optional int32 limit = 1;
|
|
47912
|
+
* @return {number}
|
|
47913
|
+
*/
|
|
47914
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.getLimit = function() {
|
|
47915
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
47916
|
+
};
|
|
47917
|
+
|
|
47918
|
+
|
|
47919
|
+
/**
|
|
47920
|
+
* @param {number} value
|
|
47921
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
|
|
47922
|
+
*/
|
|
47923
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.setLimit = function(value) {
|
|
47924
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
47925
|
+
};
|
|
47926
|
+
|
|
47927
|
+
|
|
47928
|
+
/**
|
|
47929
|
+
* optional int32 offset = 2;
|
|
47930
|
+
* @return {number}
|
|
47931
|
+
*/
|
|
47932
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.getOffset = function() {
|
|
47933
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
47934
|
+
};
|
|
47935
|
+
|
|
47936
|
+
|
|
47937
|
+
/**
|
|
47938
|
+
* @param {number} value
|
|
47939
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
|
|
47940
|
+
*/
|
|
47941
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.setOffset = function(value) {
|
|
47942
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
47943
|
+
};
|
|
47944
|
+
|
|
47945
|
+
|
|
47946
|
+
/**
|
|
47947
|
+
* optional string order = 3;
|
|
47948
|
+
* @return {string}
|
|
47949
|
+
*/
|
|
47950
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.getOrder = function() {
|
|
47951
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
47952
|
+
};
|
|
47953
|
+
|
|
47954
|
+
|
|
47955
|
+
/**
|
|
47956
|
+
* @param {string} value
|
|
47957
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
|
|
47958
|
+
*/
|
|
47959
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.setOrder = function(value) {
|
|
47960
|
+
return jspb.Message.setField(this, 3, value);
|
|
47961
|
+
};
|
|
47962
|
+
|
|
47963
|
+
|
|
47964
|
+
/**
|
|
47965
|
+
* Clears the field making it undefined.
|
|
47966
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
|
|
47967
|
+
*/
|
|
47968
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.clearOrder = function() {
|
|
47969
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
47970
|
+
};
|
|
47971
|
+
|
|
47972
|
+
|
|
47973
|
+
/**
|
|
47974
|
+
* Returns whether this field is set.
|
|
47975
|
+
* @return {boolean}
|
|
47976
|
+
*/
|
|
47977
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.hasOrder = function() {
|
|
47978
|
+
return jspb.Message.getField(this, 3) != null;
|
|
47979
|
+
};
|
|
47980
|
+
|
|
47981
|
+
|
|
47982
|
+
/**
|
|
47983
|
+
* optional int32 preset_id = 4;
|
|
47984
|
+
* @return {number}
|
|
47985
|
+
*/
|
|
47986
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.getPresetId = function() {
|
|
47987
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
47988
|
+
};
|
|
47989
|
+
|
|
47990
|
+
|
|
47991
|
+
/**
|
|
47992
|
+
* @param {number} value
|
|
47993
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
|
|
47994
|
+
*/
|
|
47995
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.setPresetId = function(value) {
|
|
47996
|
+
return jspb.Message.setField(this, 4, value);
|
|
47997
|
+
};
|
|
47998
|
+
|
|
47999
|
+
|
|
48000
|
+
/**
|
|
48001
|
+
* Clears the field making it undefined.
|
|
48002
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
|
|
48003
|
+
*/
|
|
48004
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.clearPresetId = function() {
|
|
48005
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
48006
|
+
};
|
|
48007
|
+
|
|
48008
|
+
|
|
48009
|
+
/**
|
|
48010
|
+
* Returns whether this field is set.
|
|
48011
|
+
* @return {boolean}
|
|
48012
|
+
*/
|
|
48013
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.hasPresetId = function() {
|
|
48014
|
+
return jspb.Message.getField(this, 4) != null;
|
|
48015
|
+
};
|
|
48016
|
+
|
|
48017
|
+
|
|
48018
|
+
/**
|
|
48019
|
+
* optional int32 is_active = 5;
|
|
48020
|
+
* @return {number}
|
|
48021
|
+
*/
|
|
48022
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.getIsActive = function() {
|
|
48023
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
48024
|
+
};
|
|
48025
|
+
|
|
48026
|
+
|
|
48027
|
+
/**
|
|
48028
|
+
* @param {number} value
|
|
48029
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
|
|
48030
|
+
*/
|
|
48031
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.setIsActive = function(value) {
|
|
48032
|
+
return jspb.Message.setField(this, 5, value);
|
|
48033
|
+
};
|
|
48034
|
+
|
|
48035
|
+
|
|
48036
|
+
/**
|
|
48037
|
+
* Clears the field making it undefined.
|
|
48038
|
+
* @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
|
|
48039
|
+
*/
|
|
48040
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.clearIsActive = function() {
|
|
48041
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
48042
|
+
};
|
|
48043
|
+
|
|
48044
|
+
|
|
48045
|
+
/**
|
|
48046
|
+
* Returns whether this field is set.
|
|
48047
|
+
* @return {boolean}
|
|
48048
|
+
*/
|
|
48049
|
+
proto.cms.ReadListPresetCashierConfigsRequest.prototype.hasIsActive = function() {
|
|
48050
|
+
return jspb.Message.getField(this, 5) != null;
|
|
48051
|
+
};
|
|
48052
|
+
|
|
48053
|
+
|
|
48054
|
+
|
|
48055
|
+
/**
|
|
48056
|
+
* List of repeated fields within this message type.
|
|
48057
|
+
* @private {!Array<number>}
|
|
48058
|
+
* @const
|
|
48059
|
+
*/
|
|
48060
|
+
proto.cms.PresetCashierConfigsResponse.repeatedFields_ = [1];
|
|
48061
|
+
|
|
48062
|
+
|
|
48063
|
+
|
|
48064
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
48065
|
+
/**
|
|
48066
|
+
* Creates an object representation of this proto.
|
|
48067
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
48068
|
+
* Optional fields that are not set will be set to undefined.
|
|
48069
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
48070
|
+
* For the list of reserved names please see:
|
|
48071
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
48072
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
48073
|
+
* JSPB instance for transitional soy proto support:
|
|
48074
|
+
* http://goto/soy-param-migration
|
|
48075
|
+
* @return {!Object}
|
|
48076
|
+
*/
|
|
48077
|
+
proto.cms.PresetCashierConfigsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
48078
|
+
return proto.cms.PresetCashierConfigsResponse.toObject(opt_includeInstance, this);
|
|
48079
|
+
};
|
|
48080
|
+
|
|
48081
|
+
|
|
48082
|
+
/**
|
|
48083
|
+
* Static version of the {@see toObject} method.
|
|
48084
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
48085
|
+
* the JSPB instance for transitional soy proto support:
|
|
48086
|
+
* http://goto/soy-param-migration
|
|
48087
|
+
* @param {!proto.cms.PresetCashierConfigsResponse} msg The msg instance to transform.
|
|
48088
|
+
* @return {!Object}
|
|
48089
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48090
|
+
*/
|
|
48091
|
+
proto.cms.PresetCashierConfigsResponse.toObject = function(includeInstance, msg) {
|
|
48092
|
+
var f, obj = {
|
|
48093
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
48094
|
+
proto.cms.PresetCashierConfigItem.toObject, includeInstance),
|
|
48095
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
48096
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
48097
|
+
};
|
|
48098
|
+
|
|
48099
|
+
if (includeInstance) {
|
|
48100
|
+
obj.$jspbMessageInstance = msg;
|
|
48101
|
+
}
|
|
48102
|
+
return obj;
|
|
48103
|
+
};
|
|
48104
|
+
}
|
|
48105
|
+
|
|
48106
|
+
|
|
48107
|
+
/**
|
|
48108
|
+
* Deserializes binary data (in protobuf wire format).
|
|
48109
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
48110
|
+
* @return {!proto.cms.PresetCashierConfigsResponse}
|
|
48111
|
+
*/
|
|
48112
|
+
proto.cms.PresetCashierConfigsResponse.deserializeBinary = function(bytes) {
|
|
48113
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
48114
|
+
var msg = new proto.cms.PresetCashierConfigsResponse;
|
|
48115
|
+
return proto.cms.PresetCashierConfigsResponse.deserializeBinaryFromReader(msg, reader);
|
|
48116
|
+
};
|
|
48117
|
+
|
|
48118
|
+
|
|
48119
|
+
/**
|
|
48120
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
48121
|
+
* given reader into the given message object.
|
|
48122
|
+
* @param {!proto.cms.PresetCashierConfigsResponse} msg The message object to deserialize into.
|
|
48123
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
48124
|
+
* @return {!proto.cms.PresetCashierConfigsResponse}
|
|
48125
|
+
*/
|
|
48126
|
+
proto.cms.PresetCashierConfigsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
48127
|
+
while (reader.nextField()) {
|
|
48128
|
+
if (reader.isEndGroup()) {
|
|
48129
|
+
break;
|
|
48130
|
+
}
|
|
48131
|
+
var field = reader.getFieldNumber();
|
|
48132
|
+
switch (field) {
|
|
48133
|
+
case 1:
|
|
48134
|
+
var value = new proto.cms.PresetCashierConfigItem;
|
|
48135
|
+
reader.readMessage(value,proto.cms.PresetCashierConfigItem.deserializeBinaryFromReader);
|
|
48136
|
+
msg.addItems(value);
|
|
48137
|
+
break;
|
|
48138
|
+
case 2:
|
|
48139
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48140
|
+
msg.setTotalPages(value);
|
|
48141
|
+
break;
|
|
48142
|
+
case 3:
|
|
48143
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
48144
|
+
msg.setTotalItems(value);
|
|
48145
|
+
break;
|
|
48146
|
+
default:
|
|
48147
|
+
reader.skipField();
|
|
48148
|
+
break;
|
|
48149
|
+
}
|
|
48150
|
+
}
|
|
48151
|
+
return msg;
|
|
48152
|
+
};
|
|
48153
|
+
|
|
48154
|
+
|
|
48155
|
+
/**
|
|
48156
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
48157
|
+
* @return {!Uint8Array}
|
|
48158
|
+
*/
|
|
48159
|
+
proto.cms.PresetCashierConfigsResponse.prototype.serializeBinary = function() {
|
|
48160
|
+
var writer = new jspb.BinaryWriter();
|
|
48161
|
+
proto.cms.PresetCashierConfigsResponse.serializeBinaryToWriter(this, writer);
|
|
48162
|
+
return writer.getResultBuffer();
|
|
48163
|
+
};
|
|
48164
|
+
|
|
48165
|
+
|
|
48166
|
+
/**
|
|
48167
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
48168
|
+
* format), writing to the given BinaryWriter.
|
|
48169
|
+
* @param {!proto.cms.PresetCashierConfigsResponse} message
|
|
48170
|
+
* @param {!jspb.BinaryWriter} writer
|
|
48171
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
48172
|
+
*/
|
|
48173
|
+
proto.cms.PresetCashierConfigsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
48174
|
+
var f = undefined;
|
|
48175
|
+
f = message.getItemsList();
|
|
48176
|
+
if (f.length > 0) {
|
|
48177
|
+
writer.writeRepeatedMessage(
|
|
48178
|
+
1,
|
|
48179
|
+
f,
|
|
48180
|
+
proto.cms.PresetCashierConfigItem.serializeBinaryToWriter
|
|
48181
|
+
);
|
|
48182
|
+
}
|
|
48183
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
48184
|
+
if (f != null) {
|
|
48185
|
+
writer.writeInt32(
|
|
48186
|
+
2,
|
|
48187
|
+
f
|
|
48188
|
+
);
|
|
48189
|
+
}
|
|
48190
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
48191
|
+
if (f != null) {
|
|
48192
|
+
writer.writeInt32(
|
|
48193
|
+
3,
|
|
48194
|
+
f
|
|
48195
|
+
);
|
|
48196
|
+
}
|
|
48197
|
+
};
|
|
48198
|
+
|
|
48199
|
+
|
|
48200
|
+
/**
|
|
48201
|
+
* repeated PresetCashierConfigItem items = 1;
|
|
48202
|
+
* @return {!Array<!proto.cms.PresetCashierConfigItem>}
|
|
48203
|
+
*/
|
|
48204
|
+
proto.cms.PresetCashierConfigsResponse.prototype.getItemsList = function() {
|
|
48205
|
+
return /** @type{!Array<!proto.cms.PresetCashierConfigItem>} */ (
|
|
48206
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierConfigItem, 1));
|
|
48207
|
+
};
|
|
48208
|
+
|
|
48209
|
+
|
|
48210
|
+
/**
|
|
48211
|
+
* @param {!Array<!proto.cms.PresetCashierConfigItem>} value
|
|
48212
|
+
* @return {!proto.cms.PresetCashierConfigsResponse} returns this
|
|
48213
|
+
*/
|
|
48214
|
+
proto.cms.PresetCashierConfigsResponse.prototype.setItemsList = function(value) {
|
|
48215
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
48216
|
+
};
|
|
48217
|
+
|
|
48218
|
+
|
|
48219
|
+
/**
|
|
48220
|
+
* @param {!proto.cms.PresetCashierConfigItem=} opt_value
|
|
48221
|
+
* @param {number=} opt_index
|
|
48222
|
+
* @return {!proto.cms.PresetCashierConfigItem}
|
|
48223
|
+
*/
|
|
48224
|
+
proto.cms.PresetCashierConfigsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
48225
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.PresetCashierConfigItem, opt_index);
|
|
48226
|
+
};
|
|
48227
|
+
|
|
48228
|
+
|
|
48229
|
+
/**
|
|
48230
|
+
* Clears the list making it empty but non-null.
|
|
48231
|
+
* @return {!proto.cms.PresetCashierConfigsResponse} returns this
|
|
48232
|
+
*/
|
|
48233
|
+
proto.cms.PresetCashierConfigsResponse.prototype.clearItemsList = function() {
|
|
48234
|
+
return this.setItemsList([]);
|
|
48235
|
+
};
|
|
48236
|
+
|
|
48237
|
+
|
|
48238
|
+
/**
|
|
48239
|
+
* optional int32 total_pages = 2;
|
|
48240
|
+
* @return {number}
|
|
48241
|
+
*/
|
|
48242
|
+
proto.cms.PresetCashierConfigsResponse.prototype.getTotalPages = function() {
|
|
48243
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
48244
|
+
};
|
|
48245
|
+
|
|
48246
|
+
|
|
48247
|
+
/**
|
|
48248
|
+
* @param {number} value
|
|
48249
|
+
* @return {!proto.cms.PresetCashierConfigsResponse} returns this
|
|
48250
|
+
*/
|
|
48251
|
+
proto.cms.PresetCashierConfigsResponse.prototype.setTotalPages = function(value) {
|
|
48252
|
+
return jspb.Message.setField(this, 2, value);
|
|
48253
|
+
};
|
|
48254
|
+
|
|
48255
|
+
|
|
48256
|
+
/**
|
|
48257
|
+
* Clears the field making it undefined.
|
|
48258
|
+
* @return {!proto.cms.PresetCashierConfigsResponse} returns this
|
|
48259
|
+
*/
|
|
48260
|
+
proto.cms.PresetCashierConfigsResponse.prototype.clearTotalPages = function() {
|
|
48261
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
48262
|
+
};
|
|
48263
|
+
|
|
48264
|
+
|
|
48265
|
+
/**
|
|
48266
|
+
* Returns whether this field is set.
|
|
48267
|
+
* @return {boolean}
|
|
48268
|
+
*/
|
|
48269
|
+
proto.cms.PresetCashierConfigsResponse.prototype.hasTotalPages = function() {
|
|
48270
|
+
return jspb.Message.getField(this, 2) != null;
|
|
48271
|
+
};
|
|
48272
|
+
|
|
48273
|
+
|
|
48274
|
+
/**
|
|
48275
|
+
* optional int32 total_items = 3;
|
|
48276
|
+
* @return {number}
|
|
48277
|
+
*/
|
|
48278
|
+
proto.cms.PresetCashierConfigsResponse.prototype.getTotalItems = function() {
|
|
48279
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
48280
|
+
};
|
|
48281
|
+
|
|
48282
|
+
|
|
48283
|
+
/**
|
|
48284
|
+
* @param {number} value
|
|
48285
|
+
* @return {!proto.cms.PresetCashierConfigsResponse} returns this
|
|
48286
|
+
*/
|
|
48287
|
+
proto.cms.PresetCashierConfigsResponse.prototype.setTotalItems = function(value) {
|
|
48288
|
+
return jspb.Message.setField(this, 3, value);
|
|
48289
|
+
};
|
|
48290
|
+
|
|
48291
|
+
|
|
48292
|
+
/**
|
|
48293
|
+
* Clears the field making it undefined.
|
|
48294
|
+
* @return {!proto.cms.PresetCashierConfigsResponse} returns this
|
|
48295
|
+
*/
|
|
48296
|
+
proto.cms.PresetCashierConfigsResponse.prototype.clearTotalItems = function() {
|
|
48297
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
48298
|
+
};
|
|
48299
|
+
|
|
48300
|
+
|
|
48301
|
+
/**
|
|
48302
|
+
* Returns whether this field is set.
|
|
48303
|
+
* @return {boolean}
|
|
48304
|
+
*/
|
|
48305
|
+
proto.cms.PresetCashierConfigsResponse.prototype.hasTotalItems = function() {
|
|
48306
|
+
return jspb.Message.getField(this, 3) != null;
|
|
48307
|
+
};
|
|
48308
|
+
|
|
48309
|
+
|
|
44232
48310
|
goog.object.extend(exports, proto.cms);
|