protobuf-platform 1.2.360 → 1.2.363

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/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
 
@@ -44277,4 +44585,3744 @@ proto.cms.FooterBrandCoreBrief.prototype.hasSlug = function() {
44277
44585
  };
44278
44586
 
44279
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 = /** @type {number} */ (jspb.Message.getField(message, 1));
46782
+ if (f != null) {
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.setField(this, 1, value);
46850
+ };
46851
+
46852
+
46853
+ /**
46854
+ * Clears the field making it undefined.
46855
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46856
+ */
46857
+ proto.cms.PresetCashierConfigItem.prototype.clearId = function() {
46858
+ return jspb.Message.setField(this, 1, undefined);
46859
+ };
46860
+
46861
+
46862
+ /**
46863
+ * Returns whether this field is set.
46864
+ * @return {boolean}
46865
+ */
46866
+ proto.cms.PresetCashierConfigItem.prototype.hasId = function() {
46867
+ return jspb.Message.getField(this, 1) != null;
46868
+ };
46869
+
46870
+
46871
+ /**
46872
+ * optional int32 preset_id = 2;
46873
+ * @return {number}
46874
+ */
46875
+ proto.cms.PresetCashierConfigItem.prototype.getPresetId = function() {
46876
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
46877
+ };
46878
+
46879
+
46880
+ /**
46881
+ * @param {number} value
46882
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46883
+ */
46884
+ proto.cms.PresetCashierConfigItem.prototype.setPresetId = function(value) {
46885
+ return jspb.Message.setProto3IntField(this, 2, value);
46886
+ };
46887
+
46888
+
46889
+ /**
46890
+ * repeated PresetCashierCurrencyAmounts currencies = 3;
46891
+ * @return {!Array<!proto.cms.PresetCashierCurrencyAmounts>}
46892
+ */
46893
+ proto.cms.PresetCashierConfigItem.prototype.getCurrenciesList = function() {
46894
+ return /** @type{!Array<!proto.cms.PresetCashierCurrencyAmounts>} */ (
46895
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierCurrencyAmounts, 3));
46896
+ };
46897
+
46898
+
46899
+ /**
46900
+ * @param {!Array<!proto.cms.PresetCashierCurrencyAmounts>} value
46901
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46902
+ */
46903
+ proto.cms.PresetCashierConfigItem.prototype.setCurrenciesList = function(value) {
46904
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
46905
+ };
46906
+
46907
+
46908
+ /**
46909
+ * @param {!proto.cms.PresetCashierCurrencyAmounts=} opt_value
46910
+ * @param {number=} opt_index
46911
+ * @return {!proto.cms.PresetCashierCurrencyAmounts}
46912
+ */
46913
+ proto.cms.PresetCashierConfigItem.prototype.addCurrencies = function(opt_value, opt_index) {
46914
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cms.PresetCashierCurrencyAmounts, opt_index);
46915
+ };
46916
+
46917
+
46918
+ /**
46919
+ * Clears the list making it empty but non-null.
46920
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46921
+ */
46922
+ proto.cms.PresetCashierConfigItem.prototype.clearCurrenciesList = function() {
46923
+ return this.setCurrenciesList([]);
46924
+ };
46925
+
46926
+
46927
+ /**
46928
+ * repeated PresetCashierPaymentOrderGroup payment_groups = 4;
46929
+ * @return {!Array<!proto.cms.PresetCashierPaymentOrderGroup>}
46930
+ */
46931
+ proto.cms.PresetCashierConfigItem.prototype.getPaymentGroupsList = function() {
46932
+ return /** @type{!Array<!proto.cms.PresetCashierPaymentOrderGroup>} */ (
46933
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierPaymentOrderGroup, 4));
46934
+ };
46935
+
46936
+
46937
+ /**
46938
+ * @param {!Array<!proto.cms.PresetCashierPaymentOrderGroup>} value
46939
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46940
+ */
46941
+ proto.cms.PresetCashierConfigItem.prototype.setPaymentGroupsList = function(value) {
46942
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
46943
+ };
46944
+
46945
+
46946
+ /**
46947
+ * @param {!proto.cms.PresetCashierPaymentOrderGroup=} opt_value
46948
+ * @param {number=} opt_index
46949
+ * @return {!proto.cms.PresetCashierPaymentOrderGroup}
46950
+ */
46951
+ proto.cms.PresetCashierConfigItem.prototype.addPaymentGroups = function(opt_value, opt_index) {
46952
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cms.PresetCashierPaymentOrderGroup, opt_index);
46953
+ };
46954
+
46955
+
46956
+ /**
46957
+ * Clears the list making it empty but non-null.
46958
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46959
+ */
46960
+ proto.cms.PresetCashierConfigItem.prototype.clearPaymentGroupsList = function() {
46961
+ return this.setPaymentGroupsList([]);
46962
+ };
46963
+
46964
+
46965
+ /**
46966
+ * optional int32 is_active = 5;
46967
+ * @return {number}
46968
+ */
46969
+ proto.cms.PresetCashierConfigItem.prototype.getIsActive = function() {
46970
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
46971
+ };
46972
+
46973
+
46974
+ /**
46975
+ * @param {number} value
46976
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46977
+ */
46978
+ proto.cms.PresetCashierConfigItem.prototype.setIsActive = function(value) {
46979
+ return jspb.Message.setField(this, 5, value);
46980
+ };
46981
+
46982
+
46983
+ /**
46984
+ * Clears the field making it undefined.
46985
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46986
+ */
46987
+ proto.cms.PresetCashierConfigItem.prototype.clearIsActive = function() {
46988
+ return jspb.Message.setField(this, 5, undefined);
46989
+ };
46990
+
46991
+
46992
+ /**
46993
+ * Returns whether this field is set.
46994
+ * @return {boolean}
46995
+ */
46996
+ proto.cms.PresetCashierConfigItem.prototype.hasIsActive = function() {
46997
+ return jspb.Message.getField(this, 5) != null;
46998
+ };
46999
+
47000
+
47001
+ /**
47002
+ * optional string created_at = 6;
47003
+ * @return {string}
47004
+ */
47005
+ proto.cms.PresetCashierConfigItem.prototype.getCreatedAt = function() {
47006
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
47007
+ };
47008
+
47009
+
47010
+ /**
47011
+ * @param {string} value
47012
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
47013
+ */
47014
+ proto.cms.PresetCashierConfigItem.prototype.setCreatedAt = function(value) {
47015
+ return jspb.Message.setField(this, 6, value);
47016
+ };
47017
+
47018
+
47019
+ /**
47020
+ * Clears the field making it undefined.
47021
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
47022
+ */
47023
+ proto.cms.PresetCashierConfigItem.prototype.clearCreatedAt = function() {
47024
+ return jspb.Message.setField(this, 6, undefined);
47025
+ };
47026
+
47027
+
47028
+ /**
47029
+ * Returns whether this field is set.
47030
+ * @return {boolean}
47031
+ */
47032
+ proto.cms.PresetCashierConfigItem.prototype.hasCreatedAt = function() {
47033
+ return jspb.Message.getField(this, 6) != null;
47034
+ };
47035
+
47036
+
47037
+ /**
47038
+ * optional string updated_at = 7;
47039
+ * @return {string}
47040
+ */
47041
+ proto.cms.PresetCashierConfigItem.prototype.getUpdatedAt = function() {
47042
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
47043
+ };
47044
+
47045
+
47046
+ /**
47047
+ * @param {string} value
47048
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
47049
+ */
47050
+ proto.cms.PresetCashierConfigItem.prototype.setUpdatedAt = function(value) {
47051
+ return jspb.Message.setField(this, 7, value);
47052
+ };
47053
+
47054
+
47055
+ /**
47056
+ * Clears the field making it undefined.
47057
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
47058
+ */
47059
+ proto.cms.PresetCashierConfigItem.prototype.clearUpdatedAt = function() {
47060
+ return jspb.Message.setField(this, 7, undefined);
47061
+ };
47062
+
47063
+
47064
+ /**
47065
+ * Returns whether this field is set.
47066
+ * @return {boolean}
47067
+ */
47068
+ proto.cms.PresetCashierConfigItem.prototype.hasUpdatedAt = function() {
47069
+ return jspb.Message.getField(this, 7) != null;
47070
+ };
47071
+
47072
+
47073
+
47074
+ /**
47075
+ * List of repeated fields within this message type.
47076
+ * @private {!Array<number>}
47077
+ * @const
47078
+ */
47079
+ proto.cms.SetPresetCashierConfigRequest.repeatedFields_ = [3,4];
47080
+
47081
+
47082
+
47083
+ if (jspb.Message.GENERATE_TO_OBJECT) {
47084
+ /**
47085
+ * Creates an object representation of this proto.
47086
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47087
+ * Optional fields that are not set will be set to undefined.
47088
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
47089
+ * For the list of reserved names please see:
47090
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
47091
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
47092
+ * JSPB instance for transitional soy proto support:
47093
+ * http://goto/soy-param-migration
47094
+ * @return {!Object}
47095
+ */
47096
+ proto.cms.SetPresetCashierConfigRequest.prototype.toObject = function(opt_includeInstance) {
47097
+ return proto.cms.SetPresetCashierConfigRequest.toObject(opt_includeInstance, this);
47098
+ };
47099
+
47100
+
47101
+ /**
47102
+ * Static version of the {@see toObject} method.
47103
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
47104
+ * the JSPB instance for transitional soy proto support:
47105
+ * http://goto/soy-param-migration
47106
+ * @param {!proto.cms.SetPresetCashierConfigRequest} msg The msg instance to transform.
47107
+ * @return {!Object}
47108
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47109
+ */
47110
+ proto.cms.SetPresetCashierConfigRequest.toObject = function(includeInstance, msg) {
47111
+ var f, obj = {
47112
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
47113
+ presetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
47114
+ currenciesList: jspb.Message.toObjectList(msg.getCurrenciesList(),
47115
+ proto.cms.PresetCashierCurrencyAmounts.toObject, includeInstance),
47116
+ paymentGroupsList: jspb.Message.toObjectList(msg.getPaymentGroupsList(),
47117
+ proto.cms.PresetCashierPaymentOrderGroup.toObject, includeInstance),
47118
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
47119
+ };
47120
+
47121
+ if (includeInstance) {
47122
+ obj.$jspbMessageInstance = msg;
47123
+ }
47124
+ return obj;
47125
+ };
47126
+ }
47127
+
47128
+
47129
+ /**
47130
+ * Deserializes binary data (in protobuf wire format).
47131
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
47132
+ * @return {!proto.cms.SetPresetCashierConfigRequest}
47133
+ */
47134
+ proto.cms.SetPresetCashierConfigRequest.deserializeBinary = function(bytes) {
47135
+ var reader = new jspb.BinaryReader(bytes);
47136
+ var msg = new proto.cms.SetPresetCashierConfigRequest;
47137
+ return proto.cms.SetPresetCashierConfigRequest.deserializeBinaryFromReader(msg, reader);
47138
+ };
47139
+
47140
+
47141
+ /**
47142
+ * Deserializes binary data (in protobuf wire format) from the
47143
+ * given reader into the given message object.
47144
+ * @param {!proto.cms.SetPresetCashierConfigRequest} msg The message object to deserialize into.
47145
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
47146
+ * @return {!proto.cms.SetPresetCashierConfigRequest}
47147
+ */
47148
+ proto.cms.SetPresetCashierConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
47149
+ while (reader.nextField()) {
47150
+ if (reader.isEndGroup()) {
47151
+ break;
47152
+ }
47153
+ var field = reader.getFieldNumber();
47154
+ switch (field) {
47155
+ case 1:
47156
+ var value = /** @type {number} */ (reader.readInt32());
47157
+ msg.setId(value);
47158
+ break;
47159
+ case 2:
47160
+ var value = /** @type {number} */ (reader.readInt32());
47161
+ msg.setPresetId(value);
47162
+ break;
47163
+ case 3:
47164
+ var value = new proto.cms.PresetCashierCurrencyAmounts;
47165
+ reader.readMessage(value,proto.cms.PresetCashierCurrencyAmounts.deserializeBinaryFromReader);
47166
+ msg.addCurrencies(value);
47167
+ break;
47168
+ case 4:
47169
+ var value = new proto.cms.PresetCashierPaymentOrderGroup;
47170
+ reader.readMessage(value,proto.cms.PresetCashierPaymentOrderGroup.deserializeBinaryFromReader);
47171
+ msg.addPaymentGroups(value);
47172
+ break;
47173
+ case 5:
47174
+ var value = /** @type {number} */ (reader.readInt32());
47175
+ msg.setIsActive(value);
47176
+ break;
47177
+ default:
47178
+ reader.skipField();
47179
+ break;
47180
+ }
47181
+ }
47182
+ return msg;
47183
+ };
47184
+
47185
+
47186
+ /**
47187
+ * Serializes the message to binary data (in protobuf wire format).
47188
+ * @return {!Uint8Array}
47189
+ */
47190
+ proto.cms.SetPresetCashierConfigRequest.prototype.serializeBinary = function() {
47191
+ var writer = new jspb.BinaryWriter();
47192
+ proto.cms.SetPresetCashierConfigRequest.serializeBinaryToWriter(this, writer);
47193
+ return writer.getResultBuffer();
47194
+ };
47195
+
47196
+
47197
+ /**
47198
+ * Serializes the given message to binary data (in protobuf wire
47199
+ * format), writing to the given BinaryWriter.
47200
+ * @param {!proto.cms.SetPresetCashierConfigRequest} message
47201
+ * @param {!jspb.BinaryWriter} writer
47202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47203
+ */
47204
+ proto.cms.SetPresetCashierConfigRequest.serializeBinaryToWriter = function(message, writer) {
47205
+ var f = undefined;
47206
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
47207
+ if (f != null) {
47208
+ writer.writeInt32(
47209
+ 1,
47210
+ f
47211
+ );
47212
+ }
47213
+ f = message.getPresetId();
47214
+ if (f !== 0) {
47215
+ writer.writeInt32(
47216
+ 2,
47217
+ f
47218
+ );
47219
+ }
47220
+ f = message.getCurrenciesList();
47221
+ if (f.length > 0) {
47222
+ writer.writeRepeatedMessage(
47223
+ 3,
47224
+ f,
47225
+ proto.cms.PresetCashierCurrencyAmounts.serializeBinaryToWriter
47226
+ );
47227
+ }
47228
+ f = message.getPaymentGroupsList();
47229
+ if (f.length > 0) {
47230
+ writer.writeRepeatedMessage(
47231
+ 4,
47232
+ f,
47233
+ proto.cms.PresetCashierPaymentOrderGroup.serializeBinaryToWriter
47234
+ );
47235
+ }
47236
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
47237
+ if (f != null) {
47238
+ writer.writeInt32(
47239
+ 5,
47240
+ f
47241
+ );
47242
+ }
47243
+ };
47244
+
47245
+
47246
+ /**
47247
+ * optional int32 id = 1;
47248
+ * @return {number}
47249
+ */
47250
+ proto.cms.SetPresetCashierConfigRequest.prototype.getId = function() {
47251
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
47252
+ };
47253
+
47254
+
47255
+ /**
47256
+ * @param {number} value
47257
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47258
+ */
47259
+ proto.cms.SetPresetCashierConfigRequest.prototype.setId = function(value) {
47260
+ return jspb.Message.setField(this, 1, value);
47261
+ };
47262
+
47263
+
47264
+ /**
47265
+ * Clears the field making it undefined.
47266
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47267
+ */
47268
+ proto.cms.SetPresetCashierConfigRequest.prototype.clearId = function() {
47269
+ return jspb.Message.setField(this, 1, undefined);
47270
+ };
47271
+
47272
+
47273
+ /**
47274
+ * Returns whether this field is set.
47275
+ * @return {boolean}
47276
+ */
47277
+ proto.cms.SetPresetCashierConfigRequest.prototype.hasId = function() {
47278
+ return jspb.Message.getField(this, 1) != null;
47279
+ };
47280
+
47281
+
47282
+ /**
47283
+ * optional int32 preset_id = 2;
47284
+ * @return {number}
47285
+ */
47286
+ proto.cms.SetPresetCashierConfigRequest.prototype.getPresetId = function() {
47287
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
47288
+ };
47289
+
47290
+
47291
+ /**
47292
+ * @param {number} value
47293
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47294
+ */
47295
+ proto.cms.SetPresetCashierConfigRequest.prototype.setPresetId = function(value) {
47296
+ return jspb.Message.setProto3IntField(this, 2, value);
47297
+ };
47298
+
47299
+
47300
+ /**
47301
+ * repeated PresetCashierCurrencyAmounts currencies = 3;
47302
+ * @return {!Array<!proto.cms.PresetCashierCurrencyAmounts>}
47303
+ */
47304
+ proto.cms.SetPresetCashierConfigRequest.prototype.getCurrenciesList = function() {
47305
+ return /** @type{!Array<!proto.cms.PresetCashierCurrencyAmounts>} */ (
47306
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierCurrencyAmounts, 3));
47307
+ };
47308
+
47309
+
47310
+ /**
47311
+ * @param {!Array<!proto.cms.PresetCashierCurrencyAmounts>} value
47312
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47313
+ */
47314
+ proto.cms.SetPresetCashierConfigRequest.prototype.setCurrenciesList = function(value) {
47315
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
47316
+ };
47317
+
47318
+
47319
+ /**
47320
+ * @param {!proto.cms.PresetCashierCurrencyAmounts=} opt_value
47321
+ * @param {number=} opt_index
47322
+ * @return {!proto.cms.PresetCashierCurrencyAmounts}
47323
+ */
47324
+ proto.cms.SetPresetCashierConfigRequest.prototype.addCurrencies = function(opt_value, opt_index) {
47325
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cms.PresetCashierCurrencyAmounts, opt_index);
47326
+ };
47327
+
47328
+
47329
+ /**
47330
+ * Clears the list making it empty but non-null.
47331
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47332
+ */
47333
+ proto.cms.SetPresetCashierConfigRequest.prototype.clearCurrenciesList = function() {
47334
+ return this.setCurrenciesList([]);
47335
+ };
47336
+
47337
+
47338
+ /**
47339
+ * repeated PresetCashierPaymentOrderGroup payment_groups = 4;
47340
+ * @return {!Array<!proto.cms.PresetCashierPaymentOrderGroup>}
47341
+ */
47342
+ proto.cms.SetPresetCashierConfigRequest.prototype.getPaymentGroupsList = function() {
47343
+ return /** @type{!Array<!proto.cms.PresetCashierPaymentOrderGroup>} */ (
47344
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierPaymentOrderGroup, 4));
47345
+ };
47346
+
47347
+
47348
+ /**
47349
+ * @param {!Array<!proto.cms.PresetCashierPaymentOrderGroup>} value
47350
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47351
+ */
47352
+ proto.cms.SetPresetCashierConfigRequest.prototype.setPaymentGroupsList = function(value) {
47353
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
47354
+ };
47355
+
47356
+
47357
+ /**
47358
+ * @param {!proto.cms.PresetCashierPaymentOrderGroup=} opt_value
47359
+ * @param {number=} opt_index
47360
+ * @return {!proto.cms.PresetCashierPaymentOrderGroup}
47361
+ */
47362
+ proto.cms.SetPresetCashierConfigRequest.prototype.addPaymentGroups = function(opt_value, opt_index) {
47363
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.cms.PresetCashierPaymentOrderGroup, opt_index);
47364
+ };
47365
+
47366
+
47367
+ /**
47368
+ * Clears the list making it empty but non-null.
47369
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47370
+ */
47371
+ proto.cms.SetPresetCashierConfigRequest.prototype.clearPaymentGroupsList = function() {
47372
+ return this.setPaymentGroupsList([]);
47373
+ };
47374
+
47375
+
47376
+ /**
47377
+ * optional int32 is_active = 5;
47378
+ * @return {number}
47379
+ */
47380
+ proto.cms.SetPresetCashierConfigRequest.prototype.getIsActive = function() {
47381
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
47382
+ };
47383
+
47384
+
47385
+ /**
47386
+ * @param {number} value
47387
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47388
+ */
47389
+ proto.cms.SetPresetCashierConfigRequest.prototype.setIsActive = function(value) {
47390
+ return jspb.Message.setField(this, 5, value);
47391
+ };
47392
+
47393
+
47394
+ /**
47395
+ * Clears the field making it undefined.
47396
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47397
+ */
47398
+ proto.cms.SetPresetCashierConfigRequest.prototype.clearIsActive = function() {
47399
+ return jspb.Message.setField(this, 5, undefined);
47400
+ };
47401
+
47402
+
47403
+ /**
47404
+ * Returns whether this field is set.
47405
+ * @return {boolean}
47406
+ */
47407
+ proto.cms.SetPresetCashierConfigRequest.prototype.hasIsActive = function() {
47408
+ return jspb.Message.getField(this, 5) != null;
47409
+ };
47410
+
47411
+
47412
+
47413
+
47414
+
47415
+ if (jspb.Message.GENERATE_TO_OBJECT) {
47416
+ /**
47417
+ * Creates an object representation of this proto.
47418
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47419
+ * Optional fields that are not set will be set to undefined.
47420
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
47421
+ * For the list of reserved names please see:
47422
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
47423
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
47424
+ * JSPB instance for transitional soy proto support:
47425
+ * http://goto/soy-param-migration
47426
+ * @return {!Object}
47427
+ */
47428
+ proto.cms.GetPresetCashierConfigRequest.prototype.toObject = function(opt_includeInstance) {
47429
+ return proto.cms.GetPresetCashierConfigRequest.toObject(opt_includeInstance, this);
47430
+ };
47431
+
47432
+
47433
+ /**
47434
+ * Static version of the {@see toObject} method.
47435
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
47436
+ * the JSPB instance for transitional soy proto support:
47437
+ * http://goto/soy-param-migration
47438
+ * @param {!proto.cms.GetPresetCashierConfigRequest} msg The msg instance to transform.
47439
+ * @return {!Object}
47440
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47441
+ */
47442
+ proto.cms.GetPresetCashierConfigRequest.toObject = function(includeInstance, msg) {
47443
+ var f, obj = {
47444
+ presetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
47445
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
47446
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
47447
+ };
47448
+
47449
+ if (includeInstance) {
47450
+ obj.$jspbMessageInstance = msg;
47451
+ }
47452
+ return obj;
47453
+ };
47454
+ }
47455
+
47456
+
47457
+ /**
47458
+ * Deserializes binary data (in protobuf wire format).
47459
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
47460
+ * @return {!proto.cms.GetPresetCashierConfigRequest}
47461
+ */
47462
+ proto.cms.GetPresetCashierConfigRequest.deserializeBinary = function(bytes) {
47463
+ var reader = new jspb.BinaryReader(bytes);
47464
+ var msg = new proto.cms.GetPresetCashierConfigRequest;
47465
+ return proto.cms.GetPresetCashierConfigRequest.deserializeBinaryFromReader(msg, reader);
47466
+ };
47467
+
47468
+
47469
+ /**
47470
+ * Deserializes binary data (in protobuf wire format) from the
47471
+ * given reader into the given message object.
47472
+ * @param {!proto.cms.GetPresetCashierConfigRequest} msg The message object to deserialize into.
47473
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
47474
+ * @return {!proto.cms.GetPresetCashierConfigRequest}
47475
+ */
47476
+ proto.cms.GetPresetCashierConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
47477
+ while (reader.nextField()) {
47478
+ if (reader.isEndGroup()) {
47479
+ break;
47480
+ }
47481
+ var field = reader.getFieldNumber();
47482
+ switch (field) {
47483
+ case 1:
47484
+ var value = /** @type {number} */ (reader.readInt32());
47485
+ msg.setPresetId(value);
47486
+ break;
47487
+ case 2:
47488
+ var value = /** @type {string} */ (reader.readString());
47489
+ msg.setGeo(value);
47490
+ break;
47491
+ case 3:
47492
+ var value = /** @type {boolean} */ (reader.readBool());
47493
+ msg.setAdminSide(value);
47494
+ break;
47495
+ default:
47496
+ reader.skipField();
47497
+ break;
47498
+ }
47499
+ }
47500
+ return msg;
47501
+ };
47502
+
47503
+
47504
+ /**
47505
+ * Serializes the message to binary data (in protobuf wire format).
47506
+ * @return {!Uint8Array}
47507
+ */
47508
+ proto.cms.GetPresetCashierConfigRequest.prototype.serializeBinary = function() {
47509
+ var writer = new jspb.BinaryWriter();
47510
+ proto.cms.GetPresetCashierConfigRequest.serializeBinaryToWriter(this, writer);
47511
+ return writer.getResultBuffer();
47512
+ };
47513
+
47514
+
47515
+ /**
47516
+ * Serializes the given message to binary data (in protobuf wire
47517
+ * format), writing to the given BinaryWriter.
47518
+ * @param {!proto.cms.GetPresetCashierConfigRequest} message
47519
+ * @param {!jspb.BinaryWriter} writer
47520
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47521
+ */
47522
+ proto.cms.GetPresetCashierConfigRequest.serializeBinaryToWriter = function(message, writer) {
47523
+ var f = undefined;
47524
+ f = message.getPresetId();
47525
+ if (f !== 0) {
47526
+ writer.writeInt32(
47527
+ 1,
47528
+ f
47529
+ );
47530
+ }
47531
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
47532
+ if (f != null) {
47533
+ writer.writeString(
47534
+ 2,
47535
+ f
47536
+ );
47537
+ }
47538
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
47539
+ if (f != null) {
47540
+ writer.writeBool(
47541
+ 3,
47542
+ f
47543
+ );
47544
+ }
47545
+ };
47546
+
47547
+
47548
+ /**
47549
+ * optional int32 preset_id = 1;
47550
+ * @return {number}
47551
+ */
47552
+ proto.cms.GetPresetCashierConfigRequest.prototype.getPresetId = function() {
47553
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
47554
+ };
47555
+
47556
+
47557
+ /**
47558
+ * @param {number} value
47559
+ * @return {!proto.cms.GetPresetCashierConfigRequest} returns this
47560
+ */
47561
+ proto.cms.GetPresetCashierConfigRequest.prototype.setPresetId = function(value) {
47562
+ return jspb.Message.setProto3IntField(this, 1, value);
47563
+ };
47564
+
47565
+
47566
+ /**
47567
+ * optional string geo = 2;
47568
+ * @return {string}
47569
+ */
47570
+ proto.cms.GetPresetCashierConfigRequest.prototype.getGeo = function() {
47571
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
47572
+ };
47573
+
47574
+
47575
+ /**
47576
+ * @param {string} value
47577
+ * @return {!proto.cms.GetPresetCashierConfigRequest} returns this
47578
+ */
47579
+ proto.cms.GetPresetCashierConfigRequest.prototype.setGeo = function(value) {
47580
+ return jspb.Message.setField(this, 2, value);
47581
+ };
47582
+
47583
+
47584
+ /**
47585
+ * Clears the field making it undefined.
47586
+ * @return {!proto.cms.GetPresetCashierConfigRequest} returns this
47587
+ */
47588
+ proto.cms.GetPresetCashierConfigRequest.prototype.clearGeo = function() {
47589
+ return jspb.Message.setField(this, 2, undefined);
47590
+ };
47591
+
47592
+
47593
+ /**
47594
+ * Returns whether this field is set.
47595
+ * @return {boolean}
47596
+ */
47597
+ proto.cms.GetPresetCashierConfigRequest.prototype.hasGeo = function() {
47598
+ return jspb.Message.getField(this, 2) != null;
47599
+ };
47600
+
47601
+
47602
+ /**
47603
+ * optional bool admin_side = 3;
47604
+ * @return {boolean}
47605
+ */
47606
+ proto.cms.GetPresetCashierConfigRequest.prototype.getAdminSide = function() {
47607
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
47608
+ };
47609
+
47610
+
47611
+ /**
47612
+ * @param {boolean} value
47613
+ * @return {!proto.cms.GetPresetCashierConfigRequest} returns this
47614
+ */
47615
+ proto.cms.GetPresetCashierConfigRequest.prototype.setAdminSide = function(value) {
47616
+ return jspb.Message.setField(this, 3, value);
47617
+ };
47618
+
47619
+
47620
+ /**
47621
+ * Clears the field making it undefined.
47622
+ * @return {!proto.cms.GetPresetCashierConfigRequest} returns this
47623
+ */
47624
+ proto.cms.GetPresetCashierConfigRequest.prototype.clearAdminSide = function() {
47625
+ return jspb.Message.setField(this, 3, undefined);
47626
+ };
47627
+
47628
+
47629
+ /**
47630
+ * Returns whether this field is set.
47631
+ * @return {boolean}
47632
+ */
47633
+ proto.cms.GetPresetCashierConfigRequest.prototype.hasAdminSide = function() {
47634
+ return jspb.Message.getField(this, 3) != null;
47635
+ };
47636
+
47637
+
47638
+
47639
+
47640
+
47641
+ if (jspb.Message.GENERATE_TO_OBJECT) {
47642
+ /**
47643
+ * Creates an object representation of this proto.
47644
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47645
+ * Optional fields that are not set will be set to undefined.
47646
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
47647
+ * For the list of reserved names please see:
47648
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
47649
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
47650
+ * JSPB instance for transitional soy proto support:
47651
+ * http://goto/soy-param-migration
47652
+ * @return {!Object}
47653
+ */
47654
+ proto.cms.ReadPresetCashierConfigRequest.prototype.toObject = function(opt_includeInstance) {
47655
+ return proto.cms.ReadPresetCashierConfigRequest.toObject(opt_includeInstance, this);
47656
+ };
47657
+
47658
+
47659
+ /**
47660
+ * Static version of the {@see toObject} method.
47661
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
47662
+ * the JSPB instance for transitional soy proto support:
47663
+ * http://goto/soy-param-migration
47664
+ * @param {!proto.cms.ReadPresetCashierConfigRequest} msg The msg instance to transform.
47665
+ * @return {!Object}
47666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47667
+ */
47668
+ proto.cms.ReadPresetCashierConfigRequest.toObject = function(includeInstance, msg) {
47669
+ var f, obj = {
47670
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
47671
+ };
47672
+
47673
+ if (includeInstance) {
47674
+ obj.$jspbMessageInstance = msg;
47675
+ }
47676
+ return obj;
47677
+ };
47678
+ }
47679
+
47680
+
47681
+ /**
47682
+ * Deserializes binary data (in protobuf wire format).
47683
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
47684
+ * @return {!proto.cms.ReadPresetCashierConfigRequest}
47685
+ */
47686
+ proto.cms.ReadPresetCashierConfigRequest.deserializeBinary = function(bytes) {
47687
+ var reader = new jspb.BinaryReader(bytes);
47688
+ var msg = new proto.cms.ReadPresetCashierConfigRequest;
47689
+ return proto.cms.ReadPresetCashierConfigRequest.deserializeBinaryFromReader(msg, reader);
47690
+ };
47691
+
47692
+
47693
+ /**
47694
+ * Deserializes binary data (in protobuf wire format) from the
47695
+ * given reader into the given message object.
47696
+ * @param {!proto.cms.ReadPresetCashierConfigRequest} msg The message object to deserialize into.
47697
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
47698
+ * @return {!proto.cms.ReadPresetCashierConfigRequest}
47699
+ */
47700
+ proto.cms.ReadPresetCashierConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
47701
+ while (reader.nextField()) {
47702
+ if (reader.isEndGroup()) {
47703
+ break;
47704
+ }
47705
+ var field = reader.getFieldNumber();
47706
+ switch (field) {
47707
+ case 1:
47708
+ var value = /** @type {number} */ (reader.readInt32());
47709
+ msg.setId(value);
47710
+ break;
47711
+ default:
47712
+ reader.skipField();
47713
+ break;
47714
+ }
47715
+ }
47716
+ return msg;
47717
+ };
47718
+
47719
+
47720
+ /**
47721
+ * Serializes the message to binary data (in protobuf wire format).
47722
+ * @return {!Uint8Array}
47723
+ */
47724
+ proto.cms.ReadPresetCashierConfigRequest.prototype.serializeBinary = function() {
47725
+ var writer = new jspb.BinaryWriter();
47726
+ proto.cms.ReadPresetCashierConfigRequest.serializeBinaryToWriter(this, writer);
47727
+ return writer.getResultBuffer();
47728
+ };
47729
+
47730
+
47731
+ /**
47732
+ * Serializes the given message to binary data (in protobuf wire
47733
+ * format), writing to the given BinaryWriter.
47734
+ * @param {!proto.cms.ReadPresetCashierConfigRequest} message
47735
+ * @param {!jspb.BinaryWriter} writer
47736
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47737
+ */
47738
+ proto.cms.ReadPresetCashierConfigRequest.serializeBinaryToWriter = function(message, writer) {
47739
+ var f = undefined;
47740
+ f = message.getId();
47741
+ if (f !== 0) {
47742
+ writer.writeInt32(
47743
+ 1,
47744
+ f
47745
+ );
47746
+ }
47747
+ };
47748
+
47749
+
47750
+ /**
47751
+ * optional int32 id = 1;
47752
+ * @return {number}
47753
+ */
47754
+ proto.cms.ReadPresetCashierConfigRequest.prototype.getId = function() {
47755
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
47756
+ };
47757
+
47758
+
47759
+ /**
47760
+ * @param {number} value
47761
+ * @return {!proto.cms.ReadPresetCashierConfigRequest} returns this
47762
+ */
47763
+ proto.cms.ReadPresetCashierConfigRequest.prototype.setId = function(value) {
47764
+ return jspb.Message.setProto3IntField(this, 1, value);
47765
+ };
47766
+
47767
+
47768
+
47769
+
47770
+
47771
+ if (jspb.Message.GENERATE_TO_OBJECT) {
47772
+ /**
47773
+ * Creates an object representation of this proto.
47774
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47775
+ * Optional fields that are not set will be set to undefined.
47776
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
47777
+ * For the list of reserved names please see:
47778
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
47779
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
47780
+ * JSPB instance for transitional soy proto support:
47781
+ * http://goto/soy-param-migration
47782
+ * @return {!Object}
47783
+ */
47784
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.toObject = function(opt_includeInstance) {
47785
+ return proto.cms.ReadListPresetCashierConfigsRequest.toObject(opt_includeInstance, this);
47786
+ };
47787
+
47788
+
47789
+ /**
47790
+ * Static version of the {@see toObject} method.
47791
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
47792
+ * the JSPB instance for transitional soy proto support:
47793
+ * http://goto/soy-param-migration
47794
+ * @param {!proto.cms.ReadListPresetCashierConfigsRequest} msg The msg instance to transform.
47795
+ * @return {!Object}
47796
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47797
+ */
47798
+ proto.cms.ReadListPresetCashierConfigsRequest.toObject = function(includeInstance, msg) {
47799
+ var f, obj = {
47800
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
47801
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
47802
+ order: jspb.Message.getFieldWithDefault(msg, 3, ""),
47803
+ presetId: jspb.Message.getFieldWithDefault(msg, 4, 0),
47804
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
47805
+ };
47806
+
47807
+ if (includeInstance) {
47808
+ obj.$jspbMessageInstance = msg;
47809
+ }
47810
+ return obj;
47811
+ };
47812
+ }
47813
+
47814
+
47815
+ /**
47816
+ * Deserializes binary data (in protobuf wire format).
47817
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
47818
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest}
47819
+ */
47820
+ proto.cms.ReadListPresetCashierConfigsRequest.deserializeBinary = function(bytes) {
47821
+ var reader = new jspb.BinaryReader(bytes);
47822
+ var msg = new proto.cms.ReadListPresetCashierConfigsRequest;
47823
+ return proto.cms.ReadListPresetCashierConfigsRequest.deserializeBinaryFromReader(msg, reader);
47824
+ };
47825
+
47826
+
47827
+ /**
47828
+ * Deserializes binary data (in protobuf wire format) from the
47829
+ * given reader into the given message object.
47830
+ * @param {!proto.cms.ReadListPresetCashierConfigsRequest} msg The message object to deserialize into.
47831
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
47832
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest}
47833
+ */
47834
+ proto.cms.ReadListPresetCashierConfigsRequest.deserializeBinaryFromReader = function(msg, reader) {
47835
+ while (reader.nextField()) {
47836
+ if (reader.isEndGroup()) {
47837
+ break;
47838
+ }
47839
+ var field = reader.getFieldNumber();
47840
+ switch (field) {
47841
+ case 1:
47842
+ var value = /** @type {number} */ (reader.readInt32());
47843
+ msg.setLimit(value);
47844
+ break;
47845
+ case 2:
47846
+ var value = /** @type {number} */ (reader.readInt32());
47847
+ msg.setOffset(value);
47848
+ break;
47849
+ case 3:
47850
+ var value = /** @type {string} */ (reader.readString());
47851
+ msg.setOrder(value);
47852
+ break;
47853
+ case 4:
47854
+ var value = /** @type {number} */ (reader.readInt32());
47855
+ msg.setPresetId(value);
47856
+ break;
47857
+ case 5:
47858
+ var value = /** @type {number} */ (reader.readInt32());
47859
+ msg.setIsActive(value);
47860
+ break;
47861
+ default:
47862
+ reader.skipField();
47863
+ break;
47864
+ }
47865
+ }
47866
+ return msg;
47867
+ };
47868
+
47869
+
47870
+ /**
47871
+ * Serializes the message to binary data (in protobuf wire format).
47872
+ * @return {!Uint8Array}
47873
+ */
47874
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.serializeBinary = function() {
47875
+ var writer = new jspb.BinaryWriter();
47876
+ proto.cms.ReadListPresetCashierConfigsRequest.serializeBinaryToWriter(this, writer);
47877
+ return writer.getResultBuffer();
47878
+ };
47879
+
47880
+
47881
+ /**
47882
+ * Serializes the given message to binary data (in protobuf wire
47883
+ * format), writing to the given BinaryWriter.
47884
+ * @param {!proto.cms.ReadListPresetCashierConfigsRequest} message
47885
+ * @param {!jspb.BinaryWriter} writer
47886
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47887
+ */
47888
+ proto.cms.ReadListPresetCashierConfigsRequest.serializeBinaryToWriter = function(message, writer) {
47889
+ var f = undefined;
47890
+ f = message.getLimit();
47891
+ if (f !== 0) {
47892
+ writer.writeInt32(
47893
+ 1,
47894
+ f
47895
+ );
47896
+ }
47897
+ f = message.getOffset();
47898
+ if (f !== 0) {
47899
+ writer.writeInt32(
47900
+ 2,
47901
+ f
47902
+ );
47903
+ }
47904
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
47905
+ if (f != null) {
47906
+ writer.writeString(
47907
+ 3,
47908
+ f
47909
+ );
47910
+ }
47911
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
47912
+ if (f != null) {
47913
+ writer.writeInt32(
47914
+ 4,
47915
+ f
47916
+ );
47917
+ }
47918
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
47919
+ if (f != null) {
47920
+ writer.writeInt32(
47921
+ 5,
47922
+ f
47923
+ );
47924
+ }
47925
+ };
47926
+
47927
+
47928
+ /**
47929
+ * optional int32 limit = 1;
47930
+ * @return {number}
47931
+ */
47932
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.getLimit = function() {
47933
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
47934
+ };
47935
+
47936
+
47937
+ /**
47938
+ * @param {number} value
47939
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
47940
+ */
47941
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.setLimit = function(value) {
47942
+ return jspb.Message.setProto3IntField(this, 1, value);
47943
+ };
47944
+
47945
+
47946
+ /**
47947
+ * optional int32 offset = 2;
47948
+ * @return {number}
47949
+ */
47950
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.getOffset = function() {
47951
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
47952
+ };
47953
+
47954
+
47955
+ /**
47956
+ * @param {number} value
47957
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
47958
+ */
47959
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.setOffset = function(value) {
47960
+ return jspb.Message.setProto3IntField(this, 2, value);
47961
+ };
47962
+
47963
+
47964
+ /**
47965
+ * optional string order = 3;
47966
+ * @return {string}
47967
+ */
47968
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.getOrder = function() {
47969
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
47970
+ };
47971
+
47972
+
47973
+ /**
47974
+ * @param {string} value
47975
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
47976
+ */
47977
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.setOrder = function(value) {
47978
+ return jspb.Message.setField(this, 3, value);
47979
+ };
47980
+
47981
+
47982
+ /**
47983
+ * Clears the field making it undefined.
47984
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
47985
+ */
47986
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.clearOrder = function() {
47987
+ return jspb.Message.setField(this, 3, undefined);
47988
+ };
47989
+
47990
+
47991
+ /**
47992
+ * Returns whether this field is set.
47993
+ * @return {boolean}
47994
+ */
47995
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.hasOrder = function() {
47996
+ return jspb.Message.getField(this, 3) != null;
47997
+ };
47998
+
47999
+
48000
+ /**
48001
+ * optional int32 preset_id = 4;
48002
+ * @return {number}
48003
+ */
48004
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.getPresetId = function() {
48005
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
48006
+ };
48007
+
48008
+
48009
+ /**
48010
+ * @param {number} value
48011
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
48012
+ */
48013
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.setPresetId = function(value) {
48014
+ return jspb.Message.setField(this, 4, value);
48015
+ };
48016
+
48017
+
48018
+ /**
48019
+ * Clears the field making it undefined.
48020
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
48021
+ */
48022
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.clearPresetId = function() {
48023
+ return jspb.Message.setField(this, 4, undefined);
48024
+ };
48025
+
48026
+
48027
+ /**
48028
+ * Returns whether this field is set.
48029
+ * @return {boolean}
48030
+ */
48031
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.hasPresetId = function() {
48032
+ return jspb.Message.getField(this, 4) != null;
48033
+ };
48034
+
48035
+
48036
+ /**
48037
+ * optional int32 is_active = 5;
48038
+ * @return {number}
48039
+ */
48040
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.getIsActive = function() {
48041
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
48042
+ };
48043
+
48044
+
48045
+ /**
48046
+ * @param {number} value
48047
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
48048
+ */
48049
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.setIsActive = function(value) {
48050
+ return jspb.Message.setField(this, 5, value);
48051
+ };
48052
+
48053
+
48054
+ /**
48055
+ * Clears the field making it undefined.
48056
+ * @return {!proto.cms.ReadListPresetCashierConfigsRequest} returns this
48057
+ */
48058
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.clearIsActive = function() {
48059
+ return jspb.Message.setField(this, 5, undefined);
48060
+ };
48061
+
48062
+
48063
+ /**
48064
+ * Returns whether this field is set.
48065
+ * @return {boolean}
48066
+ */
48067
+ proto.cms.ReadListPresetCashierConfigsRequest.prototype.hasIsActive = function() {
48068
+ return jspb.Message.getField(this, 5) != null;
48069
+ };
48070
+
48071
+
48072
+
48073
+ /**
48074
+ * List of repeated fields within this message type.
48075
+ * @private {!Array<number>}
48076
+ * @const
48077
+ */
48078
+ proto.cms.PresetCashierConfigsResponse.repeatedFields_ = [1];
48079
+
48080
+
48081
+
48082
+ if (jspb.Message.GENERATE_TO_OBJECT) {
48083
+ /**
48084
+ * Creates an object representation of this proto.
48085
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
48086
+ * Optional fields that are not set will be set to undefined.
48087
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
48088
+ * For the list of reserved names please see:
48089
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
48090
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
48091
+ * JSPB instance for transitional soy proto support:
48092
+ * http://goto/soy-param-migration
48093
+ * @return {!Object}
48094
+ */
48095
+ proto.cms.PresetCashierConfigsResponse.prototype.toObject = function(opt_includeInstance) {
48096
+ return proto.cms.PresetCashierConfigsResponse.toObject(opt_includeInstance, this);
48097
+ };
48098
+
48099
+
48100
+ /**
48101
+ * Static version of the {@see toObject} method.
48102
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
48103
+ * the JSPB instance for transitional soy proto support:
48104
+ * http://goto/soy-param-migration
48105
+ * @param {!proto.cms.PresetCashierConfigsResponse} msg The msg instance to transform.
48106
+ * @return {!Object}
48107
+ * @suppress {unusedLocalVariables} f is only used for nested messages
48108
+ */
48109
+ proto.cms.PresetCashierConfigsResponse.toObject = function(includeInstance, msg) {
48110
+ var f, obj = {
48111
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
48112
+ proto.cms.PresetCashierConfigItem.toObject, includeInstance),
48113
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
48114
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
48115
+ };
48116
+
48117
+ if (includeInstance) {
48118
+ obj.$jspbMessageInstance = msg;
48119
+ }
48120
+ return obj;
48121
+ };
48122
+ }
48123
+
48124
+
48125
+ /**
48126
+ * Deserializes binary data (in protobuf wire format).
48127
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
48128
+ * @return {!proto.cms.PresetCashierConfigsResponse}
48129
+ */
48130
+ proto.cms.PresetCashierConfigsResponse.deserializeBinary = function(bytes) {
48131
+ var reader = new jspb.BinaryReader(bytes);
48132
+ var msg = new proto.cms.PresetCashierConfigsResponse;
48133
+ return proto.cms.PresetCashierConfigsResponse.deserializeBinaryFromReader(msg, reader);
48134
+ };
48135
+
48136
+
48137
+ /**
48138
+ * Deserializes binary data (in protobuf wire format) from the
48139
+ * given reader into the given message object.
48140
+ * @param {!proto.cms.PresetCashierConfigsResponse} msg The message object to deserialize into.
48141
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
48142
+ * @return {!proto.cms.PresetCashierConfigsResponse}
48143
+ */
48144
+ proto.cms.PresetCashierConfigsResponse.deserializeBinaryFromReader = function(msg, reader) {
48145
+ while (reader.nextField()) {
48146
+ if (reader.isEndGroup()) {
48147
+ break;
48148
+ }
48149
+ var field = reader.getFieldNumber();
48150
+ switch (field) {
48151
+ case 1:
48152
+ var value = new proto.cms.PresetCashierConfigItem;
48153
+ reader.readMessage(value,proto.cms.PresetCashierConfigItem.deserializeBinaryFromReader);
48154
+ msg.addItems(value);
48155
+ break;
48156
+ case 2:
48157
+ var value = /** @type {number} */ (reader.readInt32());
48158
+ msg.setTotalPages(value);
48159
+ break;
48160
+ case 3:
48161
+ var value = /** @type {number} */ (reader.readInt32());
48162
+ msg.setTotalItems(value);
48163
+ break;
48164
+ default:
48165
+ reader.skipField();
48166
+ break;
48167
+ }
48168
+ }
48169
+ return msg;
48170
+ };
48171
+
48172
+
48173
+ /**
48174
+ * Serializes the message to binary data (in protobuf wire format).
48175
+ * @return {!Uint8Array}
48176
+ */
48177
+ proto.cms.PresetCashierConfigsResponse.prototype.serializeBinary = function() {
48178
+ var writer = new jspb.BinaryWriter();
48179
+ proto.cms.PresetCashierConfigsResponse.serializeBinaryToWriter(this, writer);
48180
+ return writer.getResultBuffer();
48181
+ };
48182
+
48183
+
48184
+ /**
48185
+ * Serializes the given message to binary data (in protobuf wire
48186
+ * format), writing to the given BinaryWriter.
48187
+ * @param {!proto.cms.PresetCashierConfigsResponse} message
48188
+ * @param {!jspb.BinaryWriter} writer
48189
+ * @suppress {unusedLocalVariables} f is only used for nested messages
48190
+ */
48191
+ proto.cms.PresetCashierConfigsResponse.serializeBinaryToWriter = function(message, writer) {
48192
+ var f = undefined;
48193
+ f = message.getItemsList();
48194
+ if (f.length > 0) {
48195
+ writer.writeRepeatedMessage(
48196
+ 1,
48197
+ f,
48198
+ proto.cms.PresetCashierConfigItem.serializeBinaryToWriter
48199
+ );
48200
+ }
48201
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
48202
+ if (f != null) {
48203
+ writer.writeInt32(
48204
+ 2,
48205
+ f
48206
+ );
48207
+ }
48208
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
48209
+ if (f != null) {
48210
+ writer.writeInt32(
48211
+ 3,
48212
+ f
48213
+ );
48214
+ }
48215
+ };
48216
+
48217
+
48218
+ /**
48219
+ * repeated PresetCashierConfigItem items = 1;
48220
+ * @return {!Array<!proto.cms.PresetCashierConfigItem>}
48221
+ */
48222
+ proto.cms.PresetCashierConfigsResponse.prototype.getItemsList = function() {
48223
+ return /** @type{!Array<!proto.cms.PresetCashierConfigItem>} */ (
48224
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierConfigItem, 1));
48225
+ };
48226
+
48227
+
48228
+ /**
48229
+ * @param {!Array<!proto.cms.PresetCashierConfigItem>} value
48230
+ * @return {!proto.cms.PresetCashierConfigsResponse} returns this
48231
+ */
48232
+ proto.cms.PresetCashierConfigsResponse.prototype.setItemsList = function(value) {
48233
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
48234
+ };
48235
+
48236
+
48237
+ /**
48238
+ * @param {!proto.cms.PresetCashierConfigItem=} opt_value
48239
+ * @param {number=} opt_index
48240
+ * @return {!proto.cms.PresetCashierConfigItem}
48241
+ */
48242
+ proto.cms.PresetCashierConfigsResponse.prototype.addItems = function(opt_value, opt_index) {
48243
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.PresetCashierConfigItem, opt_index);
48244
+ };
48245
+
48246
+
48247
+ /**
48248
+ * Clears the list making it empty but non-null.
48249
+ * @return {!proto.cms.PresetCashierConfigsResponse} returns this
48250
+ */
48251
+ proto.cms.PresetCashierConfigsResponse.prototype.clearItemsList = function() {
48252
+ return this.setItemsList([]);
48253
+ };
48254
+
48255
+
48256
+ /**
48257
+ * optional int32 total_pages = 2;
48258
+ * @return {number}
48259
+ */
48260
+ proto.cms.PresetCashierConfigsResponse.prototype.getTotalPages = function() {
48261
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
48262
+ };
48263
+
48264
+
48265
+ /**
48266
+ * @param {number} value
48267
+ * @return {!proto.cms.PresetCashierConfigsResponse} returns this
48268
+ */
48269
+ proto.cms.PresetCashierConfigsResponse.prototype.setTotalPages = function(value) {
48270
+ return jspb.Message.setField(this, 2, value);
48271
+ };
48272
+
48273
+
48274
+ /**
48275
+ * Clears the field making it undefined.
48276
+ * @return {!proto.cms.PresetCashierConfigsResponse} returns this
48277
+ */
48278
+ proto.cms.PresetCashierConfigsResponse.prototype.clearTotalPages = function() {
48279
+ return jspb.Message.setField(this, 2, undefined);
48280
+ };
48281
+
48282
+
48283
+ /**
48284
+ * Returns whether this field is set.
48285
+ * @return {boolean}
48286
+ */
48287
+ proto.cms.PresetCashierConfigsResponse.prototype.hasTotalPages = function() {
48288
+ return jspb.Message.getField(this, 2) != null;
48289
+ };
48290
+
48291
+
48292
+ /**
48293
+ * optional int32 total_items = 3;
48294
+ * @return {number}
48295
+ */
48296
+ proto.cms.PresetCashierConfigsResponse.prototype.getTotalItems = function() {
48297
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
48298
+ };
48299
+
48300
+
48301
+ /**
48302
+ * @param {number} value
48303
+ * @return {!proto.cms.PresetCashierConfigsResponse} returns this
48304
+ */
48305
+ proto.cms.PresetCashierConfigsResponse.prototype.setTotalItems = function(value) {
48306
+ return jspb.Message.setField(this, 3, value);
48307
+ };
48308
+
48309
+
48310
+ /**
48311
+ * Clears the field making it undefined.
48312
+ * @return {!proto.cms.PresetCashierConfigsResponse} returns this
48313
+ */
48314
+ proto.cms.PresetCashierConfigsResponse.prototype.clearTotalItems = function() {
48315
+ return jspb.Message.setField(this, 3, undefined);
48316
+ };
48317
+
48318
+
48319
+ /**
48320
+ * Returns whether this field is set.
48321
+ * @return {boolean}
48322
+ */
48323
+ proto.cms.PresetCashierConfigsResponse.prototype.hasTotalItems = function() {
48324
+ return jspb.Message.getField(this, 3) != null;
48325
+ };
48326
+
48327
+
44280
48328
  goog.object.extend(exports, proto.cms);