@aldiokta/protocgen 1.1.62 → 1.1.64

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.
@@ -36,8 +36,14 @@ goog.exportSymbol('proto.GetGeneralLedgerAccountByIdRequest', null, global);
36
36
  goog.exportSymbol('proto.GetGeneralLedgerAccountByIdResponse', null, global);
37
37
  goog.exportSymbol('proto.GetListGeneralLedgerAccountRequest', null, global);
38
38
  goog.exportSymbol('proto.GetListGeneralLedgerAccountResponse', null, global);
39
+ goog.exportSymbol('proto.SyncGlFailedItem', null, global);
40
+ goog.exportSymbol('proto.SyncGlFromAccurateRequest', null, global);
41
+ goog.exportSymbol('proto.SyncGlFromAccurateResponse', null, global);
42
+ goog.exportSymbol('proto.SyncGlSyncedItem', null, global);
39
43
  goog.exportSymbol('proto.UpdateGeneralLedgerAccountRequest', null, global);
40
44
  goog.exportSymbol('proto.UpdateGeneralLedgerAccountResponse', null, global);
45
+ goog.exportSymbol('proto.UpsertGlFromAccurateRequest', null, global);
46
+ goog.exportSymbol('proto.UpsertGlFromAccurateResponse', null, global);
41
47
  /**
42
48
  * Generated by JsPbCodeGenerator.
43
49
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -311,6 +317,132 @@ if (goog.DEBUG && !COMPILED) {
311
317
  */
312
318
  proto.DeleteGeneralLedgerAccountResponse.displayName = 'proto.DeleteGeneralLedgerAccountResponse';
313
319
  }
320
+ /**
321
+ * Generated by JsPbCodeGenerator.
322
+ * @param {Array=} opt_data Optional initial data array, typically from a
323
+ * server response, or constructed directly in Javascript. The array is used
324
+ * in place and becomes part of the constructed object. It is not cloned.
325
+ * If no data is provided, the constructed object will be empty, but still
326
+ * valid.
327
+ * @extends {jspb.Message}
328
+ * @constructor
329
+ */
330
+ proto.UpsertGlFromAccurateRequest = function(opt_data) {
331
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.UpsertGlFromAccurateRequest.repeatedFields_, null);
332
+ };
333
+ goog.inherits(proto.UpsertGlFromAccurateRequest, jspb.Message);
334
+ if (goog.DEBUG && !COMPILED) {
335
+ /**
336
+ * @public
337
+ * @override
338
+ */
339
+ proto.UpsertGlFromAccurateRequest.displayName = 'proto.UpsertGlFromAccurateRequest';
340
+ }
341
+ /**
342
+ * Generated by JsPbCodeGenerator.
343
+ * @param {Array=} opt_data Optional initial data array, typically from a
344
+ * server response, or constructed directly in Javascript. The array is used
345
+ * in place and becomes part of the constructed object. It is not cloned.
346
+ * If no data is provided, the constructed object will be empty, but still
347
+ * valid.
348
+ * @extends {jspb.Message}
349
+ * @constructor
350
+ */
351
+ proto.UpsertGlFromAccurateResponse = function(opt_data) {
352
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
353
+ };
354
+ goog.inherits(proto.UpsertGlFromAccurateResponse, jspb.Message);
355
+ if (goog.DEBUG && !COMPILED) {
356
+ /**
357
+ * @public
358
+ * @override
359
+ */
360
+ proto.UpsertGlFromAccurateResponse.displayName = 'proto.UpsertGlFromAccurateResponse';
361
+ }
362
+ /**
363
+ * Generated by JsPbCodeGenerator.
364
+ * @param {Array=} opt_data Optional initial data array, typically from a
365
+ * server response, or constructed directly in Javascript. The array is used
366
+ * in place and becomes part of the constructed object. It is not cloned.
367
+ * If no data is provided, the constructed object will be empty, but still
368
+ * valid.
369
+ * @extends {jspb.Message}
370
+ * @constructor
371
+ */
372
+ proto.SyncGlFromAccurateRequest = function(opt_data) {
373
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
374
+ };
375
+ goog.inherits(proto.SyncGlFromAccurateRequest, jspb.Message);
376
+ if (goog.DEBUG && !COMPILED) {
377
+ /**
378
+ * @public
379
+ * @override
380
+ */
381
+ proto.SyncGlFromAccurateRequest.displayName = 'proto.SyncGlFromAccurateRequest';
382
+ }
383
+ /**
384
+ * Generated by JsPbCodeGenerator.
385
+ * @param {Array=} opt_data Optional initial data array, typically from a
386
+ * server response, or constructed directly in Javascript. The array is used
387
+ * in place and becomes part of the constructed object. It is not cloned.
388
+ * If no data is provided, the constructed object will be empty, but still
389
+ * valid.
390
+ * @extends {jspb.Message}
391
+ * @constructor
392
+ */
393
+ proto.SyncGlSyncedItem = function(opt_data) {
394
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
395
+ };
396
+ goog.inherits(proto.SyncGlSyncedItem, jspb.Message);
397
+ if (goog.DEBUG && !COMPILED) {
398
+ /**
399
+ * @public
400
+ * @override
401
+ */
402
+ proto.SyncGlSyncedItem.displayName = 'proto.SyncGlSyncedItem';
403
+ }
404
+ /**
405
+ * Generated by JsPbCodeGenerator.
406
+ * @param {Array=} opt_data Optional initial data array, typically from a
407
+ * server response, or constructed directly in Javascript. The array is used
408
+ * in place and becomes part of the constructed object. It is not cloned.
409
+ * If no data is provided, the constructed object will be empty, but still
410
+ * valid.
411
+ * @extends {jspb.Message}
412
+ * @constructor
413
+ */
414
+ proto.SyncGlFailedItem = function(opt_data) {
415
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
416
+ };
417
+ goog.inherits(proto.SyncGlFailedItem, jspb.Message);
418
+ if (goog.DEBUG && !COMPILED) {
419
+ /**
420
+ * @public
421
+ * @override
422
+ */
423
+ proto.SyncGlFailedItem.displayName = 'proto.SyncGlFailedItem';
424
+ }
425
+ /**
426
+ * Generated by JsPbCodeGenerator.
427
+ * @param {Array=} opt_data Optional initial data array, typically from a
428
+ * server response, or constructed directly in Javascript. The array is used
429
+ * in place and becomes part of the constructed object. It is not cloned.
430
+ * If no data is provided, the constructed object will be empty, but still
431
+ * valid.
432
+ * @extends {jspb.Message}
433
+ * @constructor
434
+ */
435
+ proto.SyncGlFromAccurateResponse = function(opt_data) {
436
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SyncGlFromAccurateResponse.repeatedFields_, null);
437
+ };
438
+ goog.inherits(proto.SyncGlFromAccurateResponse, jspb.Message);
439
+ if (goog.DEBUG && !COMPILED) {
440
+ /**
441
+ * @public
442
+ * @override
443
+ */
444
+ proto.SyncGlFromAccurateResponse.displayName = 'proto.SyncGlFromAccurateResponse';
445
+ }
314
446
 
315
447
  /**
316
448
  * List of repeated fields within this message type.
@@ -3319,4 +3451,1437 @@ proto.DeleteGeneralLedgerAccountResponse.prototype.hasMeta = function() {
3319
3451
  };
3320
3452
 
3321
3453
 
3454
+
3455
+ /**
3456
+ * List of repeated fields within this message type.
3457
+ * @private {!Array<number>}
3458
+ * @const
3459
+ */
3460
+ proto.UpsertGlFromAccurateRequest.repeatedFields_ = [8];
3461
+
3462
+
3463
+
3464
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3465
+ /**
3466
+ * Creates an object representation of this proto.
3467
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3468
+ * Optional fields that are not set will be set to undefined.
3469
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3470
+ * For the list of reserved names please see:
3471
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3472
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3473
+ * JSPB instance for transitional soy proto support:
3474
+ * http://goto/soy-param-migration
3475
+ * @return {!Object}
3476
+ */
3477
+ proto.UpsertGlFromAccurateRequest.prototype.toObject = function(opt_includeInstance) {
3478
+ return proto.UpsertGlFromAccurateRequest.toObject(opt_includeInstance, this);
3479
+ };
3480
+
3481
+
3482
+ /**
3483
+ * Static version of the {@see toObject} method.
3484
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3485
+ * the JSPB instance for transitional soy proto support:
3486
+ * http://goto/soy-param-migration
3487
+ * @param {!proto.UpsertGlFromAccurateRequest} msg The msg instance to transform.
3488
+ * @return {!Object}
3489
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3490
+ */
3491
+ proto.UpsertGlFromAccurateRequest.toObject = function(includeInstance, msg) {
3492
+ var f, obj = {
3493
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3494
+ accurateId: jspb.Message.getFieldWithDefault(msg, 2, 0),
3495
+ accountId: jspb.Message.getFieldWithDefault(msg, 3, ""),
3496
+ accountType: jspb.Message.getFieldWithDefault(msg, 4, ""),
3497
+ chartOfAccountRef: jspb.Message.getFieldWithDefault(msg, 5, ""),
3498
+ accountGroupRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
3499
+ currencyRef: jspb.Message.getFieldWithDefault(msg, 7, ""),
3500
+ languageDescriptionList: jspb.Message.toObjectList(msg.getLanguageDescriptionList(),
3501
+ proto.GeneralLedgerLanguage.toObject, includeInstance)
3502
+ };
3503
+
3504
+ if (includeInstance) {
3505
+ obj.$jspbMessageInstance = msg;
3506
+ }
3507
+ return obj;
3508
+ };
3509
+ }
3510
+
3511
+
3512
+ /**
3513
+ * Deserializes binary data (in protobuf wire format).
3514
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3515
+ * @return {!proto.UpsertGlFromAccurateRequest}
3516
+ */
3517
+ proto.UpsertGlFromAccurateRequest.deserializeBinary = function(bytes) {
3518
+ var reader = new jspb.BinaryReader(bytes);
3519
+ var msg = new proto.UpsertGlFromAccurateRequest;
3520
+ return proto.UpsertGlFromAccurateRequest.deserializeBinaryFromReader(msg, reader);
3521
+ };
3522
+
3523
+
3524
+ /**
3525
+ * Deserializes binary data (in protobuf wire format) from the
3526
+ * given reader into the given message object.
3527
+ * @param {!proto.UpsertGlFromAccurateRequest} msg The message object to deserialize into.
3528
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3529
+ * @return {!proto.UpsertGlFromAccurateRequest}
3530
+ */
3531
+ proto.UpsertGlFromAccurateRequest.deserializeBinaryFromReader = function(msg, reader) {
3532
+ while (reader.nextField()) {
3533
+ if (reader.isEndGroup()) {
3534
+ break;
3535
+ }
3536
+ var field = reader.getFieldNumber();
3537
+ switch (field) {
3538
+ case 1:
3539
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3540
+ msg.setCompaniesReferencesId(value);
3541
+ break;
3542
+ case 2:
3543
+ var value = /** @type {number} */ (reader.readInt64());
3544
+ msg.setAccurateId(value);
3545
+ break;
3546
+ case 3:
3547
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3548
+ msg.setAccountId(value);
3549
+ break;
3550
+ case 4:
3551
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3552
+ msg.setAccountType(value);
3553
+ break;
3554
+ case 5:
3555
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3556
+ msg.setChartOfAccountRef(value);
3557
+ break;
3558
+ case 6:
3559
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3560
+ msg.setAccountGroupRef(value);
3561
+ break;
3562
+ case 7:
3563
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3564
+ msg.setCurrencyRef(value);
3565
+ break;
3566
+ case 8:
3567
+ var value = new proto.GeneralLedgerLanguage;
3568
+ reader.readMessage(value,proto.GeneralLedgerLanguage.deserializeBinaryFromReader);
3569
+ msg.addLanguageDescription(value);
3570
+ break;
3571
+ default:
3572
+ reader.skipField();
3573
+ break;
3574
+ }
3575
+ }
3576
+ return msg;
3577
+ };
3578
+
3579
+
3580
+ /**
3581
+ * Serializes the message to binary data (in protobuf wire format).
3582
+ * @return {!Uint8Array}
3583
+ */
3584
+ proto.UpsertGlFromAccurateRequest.prototype.serializeBinary = function() {
3585
+ var writer = new jspb.BinaryWriter();
3586
+ proto.UpsertGlFromAccurateRequest.serializeBinaryToWriter(this, writer);
3587
+ return writer.getResultBuffer();
3588
+ };
3589
+
3590
+
3591
+ /**
3592
+ * Serializes the given message to binary data (in protobuf wire
3593
+ * format), writing to the given BinaryWriter.
3594
+ * @param {!proto.UpsertGlFromAccurateRequest} message
3595
+ * @param {!jspb.BinaryWriter} writer
3596
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3597
+ */
3598
+ proto.UpsertGlFromAccurateRequest.serializeBinaryToWriter = function(message, writer) {
3599
+ var f = undefined;
3600
+ f = message.getCompaniesReferencesId();
3601
+ if (f.length > 0) {
3602
+ writer.writeString(
3603
+ 1,
3604
+ f
3605
+ );
3606
+ }
3607
+ f = message.getAccurateId();
3608
+ if (f !== 0) {
3609
+ writer.writeInt64(
3610
+ 2,
3611
+ f
3612
+ );
3613
+ }
3614
+ f = message.getAccountId();
3615
+ if (f.length > 0) {
3616
+ writer.writeString(
3617
+ 3,
3618
+ f
3619
+ );
3620
+ }
3621
+ f = message.getAccountType();
3622
+ if (f.length > 0) {
3623
+ writer.writeString(
3624
+ 4,
3625
+ f
3626
+ );
3627
+ }
3628
+ f = message.getChartOfAccountRef();
3629
+ if (f.length > 0) {
3630
+ writer.writeString(
3631
+ 5,
3632
+ f
3633
+ );
3634
+ }
3635
+ f = message.getAccountGroupRef();
3636
+ if (f.length > 0) {
3637
+ writer.writeString(
3638
+ 6,
3639
+ f
3640
+ );
3641
+ }
3642
+ f = message.getCurrencyRef();
3643
+ if (f.length > 0) {
3644
+ writer.writeString(
3645
+ 7,
3646
+ f
3647
+ );
3648
+ }
3649
+ f = message.getLanguageDescriptionList();
3650
+ if (f.length > 0) {
3651
+ writer.writeRepeatedMessage(
3652
+ 8,
3653
+ f,
3654
+ proto.GeneralLedgerLanguage.serializeBinaryToWriter
3655
+ );
3656
+ }
3657
+ };
3658
+
3659
+
3660
+ /**
3661
+ * optional string companies_references_id = 1;
3662
+ * @return {string}
3663
+ */
3664
+ proto.UpsertGlFromAccurateRequest.prototype.getCompaniesReferencesId = function() {
3665
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3666
+ };
3667
+
3668
+
3669
+ /**
3670
+ * @param {string} value
3671
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3672
+ */
3673
+ proto.UpsertGlFromAccurateRequest.prototype.setCompaniesReferencesId = function(value) {
3674
+ return jspb.Message.setProto3StringField(this, 1, value);
3675
+ };
3676
+
3677
+
3678
+ /**
3679
+ * optional int64 accurate_id = 2;
3680
+ * @return {number}
3681
+ */
3682
+ proto.UpsertGlFromAccurateRequest.prototype.getAccurateId = function() {
3683
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3684
+ };
3685
+
3686
+
3687
+ /**
3688
+ * @param {number} value
3689
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3690
+ */
3691
+ proto.UpsertGlFromAccurateRequest.prototype.setAccurateId = function(value) {
3692
+ return jspb.Message.setProto3IntField(this, 2, value);
3693
+ };
3694
+
3695
+
3696
+ /**
3697
+ * optional string account_id = 3;
3698
+ * @return {string}
3699
+ */
3700
+ proto.UpsertGlFromAccurateRequest.prototype.getAccountId = function() {
3701
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3702
+ };
3703
+
3704
+
3705
+ /**
3706
+ * @param {string} value
3707
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3708
+ */
3709
+ proto.UpsertGlFromAccurateRequest.prototype.setAccountId = function(value) {
3710
+ return jspb.Message.setProto3StringField(this, 3, value);
3711
+ };
3712
+
3713
+
3714
+ /**
3715
+ * optional string account_type = 4;
3716
+ * @return {string}
3717
+ */
3718
+ proto.UpsertGlFromAccurateRequest.prototype.getAccountType = function() {
3719
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3720
+ };
3721
+
3722
+
3723
+ /**
3724
+ * @param {string} value
3725
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3726
+ */
3727
+ proto.UpsertGlFromAccurateRequest.prototype.setAccountType = function(value) {
3728
+ return jspb.Message.setProto3StringField(this, 4, value);
3729
+ };
3730
+
3731
+
3732
+ /**
3733
+ * optional string chart_of_account_ref = 5;
3734
+ * @return {string}
3735
+ */
3736
+ proto.UpsertGlFromAccurateRequest.prototype.getChartOfAccountRef = function() {
3737
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3738
+ };
3739
+
3740
+
3741
+ /**
3742
+ * @param {string} value
3743
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3744
+ */
3745
+ proto.UpsertGlFromAccurateRequest.prototype.setChartOfAccountRef = function(value) {
3746
+ return jspb.Message.setProto3StringField(this, 5, value);
3747
+ };
3748
+
3749
+
3750
+ /**
3751
+ * optional string account_group_ref = 6;
3752
+ * @return {string}
3753
+ */
3754
+ proto.UpsertGlFromAccurateRequest.prototype.getAccountGroupRef = function() {
3755
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3756
+ };
3757
+
3758
+
3759
+ /**
3760
+ * @param {string} value
3761
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3762
+ */
3763
+ proto.UpsertGlFromAccurateRequest.prototype.setAccountGroupRef = function(value) {
3764
+ return jspb.Message.setProto3StringField(this, 6, value);
3765
+ };
3766
+
3767
+
3768
+ /**
3769
+ * optional string currency_ref = 7;
3770
+ * @return {string}
3771
+ */
3772
+ proto.UpsertGlFromAccurateRequest.prototype.getCurrencyRef = function() {
3773
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3774
+ };
3775
+
3776
+
3777
+ /**
3778
+ * @param {string} value
3779
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3780
+ */
3781
+ proto.UpsertGlFromAccurateRequest.prototype.setCurrencyRef = function(value) {
3782
+ return jspb.Message.setProto3StringField(this, 7, value);
3783
+ };
3784
+
3785
+
3786
+ /**
3787
+ * repeated GeneralLedgerLanguage language_description = 8;
3788
+ * @return {!Array<!proto.GeneralLedgerLanguage>}
3789
+ */
3790
+ proto.UpsertGlFromAccurateRequest.prototype.getLanguageDescriptionList = function() {
3791
+ return /** @type{!Array<!proto.GeneralLedgerLanguage>} */ (
3792
+ jspb.Message.getRepeatedWrapperField(this, proto.GeneralLedgerLanguage, 8));
3793
+ };
3794
+
3795
+
3796
+ /**
3797
+ * @param {!Array<!proto.GeneralLedgerLanguage>} value
3798
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3799
+ */
3800
+ proto.UpsertGlFromAccurateRequest.prototype.setLanguageDescriptionList = function(value) {
3801
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
3802
+ };
3803
+
3804
+
3805
+ /**
3806
+ * @param {!proto.GeneralLedgerLanguage=} opt_value
3807
+ * @param {number=} opt_index
3808
+ * @return {!proto.GeneralLedgerLanguage}
3809
+ */
3810
+ proto.UpsertGlFromAccurateRequest.prototype.addLanguageDescription = function(opt_value, opt_index) {
3811
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.GeneralLedgerLanguage, opt_index);
3812
+ };
3813
+
3814
+
3815
+ /**
3816
+ * Clears the list making it empty but non-null.
3817
+ * @return {!proto.UpsertGlFromAccurateRequest} returns this
3818
+ */
3819
+ proto.UpsertGlFromAccurateRequest.prototype.clearLanguageDescriptionList = function() {
3820
+ return this.setLanguageDescriptionList([]);
3821
+ };
3822
+
3823
+
3824
+
3825
+
3826
+
3827
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3828
+ /**
3829
+ * Creates an object representation of this proto.
3830
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3831
+ * Optional fields that are not set will be set to undefined.
3832
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3833
+ * For the list of reserved names please see:
3834
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3835
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3836
+ * JSPB instance for transitional soy proto support:
3837
+ * http://goto/soy-param-migration
3838
+ * @return {!Object}
3839
+ */
3840
+ proto.UpsertGlFromAccurateResponse.prototype.toObject = function(opt_includeInstance) {
3841
+ return proto.UpsertGlFromAccurateResponse.toObject(opt_includeInstance, this);
3842
+ };
3843
+
3844
+
3845
+ /**
3846
+ * Static version of the {@see toObject} method.
3847
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3848
+ * the JSPB instance for transitional soy proto support:
3849
+ * http://goto/soy-param-migration
3850
+ * @param {!proto.UpsertGlFromAccurateResponse} msg The msg instance to transform.
3851
+ * @return {!Object}
3852
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3853
+ */
3854
+ proto.UpsertGlFromAccurateResponse.toObject = function(includeInstance, msg) {
3855
+ var f, obj = {
3856
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3857
+ action: jspb.Message.getFieldWithDefault(msg, 2, "")
3858
+ };
3859
+
3860
+ if (includeInstance) {
3861
+ obj.$jspbMessageInstance = msg;
3862
+ }
3863
+ return obj;
3864
+ };
3865
+ }
3866
+
3867
+
3868
+ /**
3869
+ * Deserializes binary data (in protobuf wire format).
3870
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3871
+ * @return {!proto.UpsertGlFromAccurateResponse}
3872
+ */
3873
+ proto.UpsertGlFromAccurateResponse.deserializeBinary = function(bytes) {
3874
+ var reader = new jspb.BinaryReader(bytes);
3875
+ var msg = new proto.UpsertGlFromAccurateResponse;
3876
+ return proto.UpsertGlFromAccurateResponse.deserializeBinaryFromReader(msg, reader);
3877
+ };
3878
+
3879
+
3880
+ /**
3881
+ * Deserializes binary data (in protobuf wire format) from the
3882
+ * given reader into the given message object.
3883
+ * @param {!proto.UpsertGlFromAccurateResponse} msg The message object to deserialize into.
3884
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3885
+ * @return {!proto.UpsertGlFromAccurateResponse}
3886
+ */
3887
+ proto.UpsertGlFromAccurateResponse.deserializeBinaryFromReader = function(msg, reader) {
3888
+ while (reader.nextField()) {
3889
+ if (reader.isEndGroup()) {
3890
+ break;
3891
+ }
3892
+ var field = reader.getFieldNumber();
3893
+ switch (field) {
3894
+ case 1:
3895
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3896
+ msg.setReferencesId(value);
3897
+ break;
3898
+ case 2:
3899
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3900
+ msg.setAction(value);
3901
+ break;
3902
+ default:
3903
+ reader.skipField();
3904
+ break;
3905
+ }
3906
+ }
3907
+ return msg;
3908
+ };
3909
+
3910
+
3911
+ /**
3912
+ * Serializes the message to binary data (in protobuf wire format).
3913
+ * @return {!Uint8Array}
3914
+ */
3915
+ proto.UpsertGlFromAccurateResponse.prototype.serializeBinary = function() {
3916
+ var writer = new jspb.BinaryWriter();
3917
+ proto.UpsertGlFromAccurateResponse.serializeBinaryToWriter(this, writer);
3918
+ return writer.getResultBuffer();
3919
+ };
3920
+
3921
+
3922
+ /**
3923
+ * Serializes the given message to binary data (in protobuf wire
3924
+ * format), writing to the given BinaryWriter.
3925
+ * @param {!proto.UpsertGlFromAccurateResponse} message
3926
+ * @param {!jspb.BinaryWriter} writer
3927
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3928
+ */
3929
+ proto.UpsertGlFromAccurateResponse.serializeBinaryToWriter = function(message, writer) {
3930
+ var f = undefined;
3931
+ f = message.getReferencesId();
3932
+ if (f.length > 0) {
3933
+ writer.writeString(
3934
+ 1,
3935
+ f
3936
+ );
3937
+ }
3938
+ f = message.getAction();
3939
+ if (f.length > 0) {
3940
+ writer.writeString(
3941
+ 2,
3942
+ f
3943
+ );
3944
+ }
3945
+ };
3946
+
3947
+
3948
+ /**
3949
+ * optional string references_id = 1;
3950
+ * @return {string}
3951
+ */
3952
+ proto.UpsertGlFromAccurateResponse.prototype.getReferencesId = function() {
3953
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3954
+ };
3955
+
3956
+
3957
+ /**
3958
+ * @param {string} value
3959
+ * @return {!proto.UpsertGlFromAccurateResponse} returns this
3960
+ */
3961
+ proto.UpsertGlFromAccurateResponse.prototype.setReferencesId = function(value) {
3962
+ return jspb.Message.setProto3StringField(this, 1, value);
3963
+ };
3964
+
3965
+
3966
+ /**
3967
+ * optional string action = 2;
3968
+ * @return {string}
3969
+ */
3970
+ proto.UpsertGlFromAccurateResponse.prototype.getAction = function() {
3971
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3972
+ };
3973
+
3974
+
3975
+ /**
3976
+ * @param {string} value
3977
+ * @return {!proto.UpsertGlFromAccurateResponse} returns this
3978
+ */
3979
+ proto.UpsertGlFromAccurateResponse.prototype.setAction = function(value) {
3980
+ return jspb.Message.setProto3StringField(this, 2, value);
3981
+ };
3982
+
3983
+
3984
+
3985
+
3986
+
3987
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3988
+ /**
3989
+ * Creates an object representation of this proto.
3990
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3991
+ * Optional fields that are not set will be set to undefined.
3992
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3993
+ * For the list of reserved names please see:
3994
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3995
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3996
+ * JSPB instance for transitional soy proto support:
3997
+ * http://goto/soy-param-migration
3998
+ * @return {!Object}
3999
+ */
4000
+ proto.SyncGlFromAccurateRequest.prototype.toObject = function(opt_includeInstance) {
4001
+ return proto.SyncGlFromAccurateRequest.toObject(opt_includeInstance, this);
4002
+ };
4003
+
4004
+
4005
+ /**
4006
+ * Static version of the {@see toObject} method.
4007
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4008
+ * the JSPB instance for transitional soy proto support:
4009
+ * http://goto/soy-param-migration
4010
+ * @param {!proto.SyncGlFromAccurateRequest} msg The msg instance to transform.
4011
+ * @return {!Object}
4012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4013
+ */
4014
+ proto.SyncGlFromAccurateRequest.toObject = function(includeInstance, msg) {
4015
+ var f, obj = {
4016
+ integrationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4017
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0)
4018
+ };
4019
+
4020
+ if (includeInstance) {
4021
+ obj.$jspbMessageInstance = msg;
4022
+ }
4023
+ return obj;
4024
+ };
4025
+ }
4026
+
4027
+
4028
+ /**
4029
+ * Deserializes binary data (in protobuf wire format).
4030
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4031
+ * @return {!proto.SyncGlFromAccurateRequest}
4032
+ */
4033
+ proto.SyncGlFromAccurateRequest.deserializeBinary = function(bytes) {
4034
+ var reader = new jspb.BinaryReader(bytes);
4035
+ var msg = new proto.SyncGlFromAccurateRequest;
4036
+ return proto.SyncGlFromAccurateRequest.deserializeBinaryFromReader(msg, reader);
4037
+ };
4038
+
4039
+
4040
+ /**
4041
+ * Deserializes binary data (in protobuf wire format) from the
4042
+ * given reader into the given message object.
4043
+ * @param {!proto.SyncGlFromAccurateRequest} msg The message object to deserialize into.
4044
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4045
+ * @return {!proto.SyncGlFromAccurateRequest}
4046
+ */
4047
+ proto.SyncGlFromAccurateRequest.deserializeBinaryFromReader = function(msg, reader) {
4048
+ while (reader.nextField()) {
4049
+ if (reader.isEndGroup()) {
4050
+ break;
4051
+ }
4052
+ var field = reader.getFieldNumber();
4053
+ switch (field) {
4054
+ case 1:
4055
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4056
+ msg.setIntegrationReferencesId(value);
4057
+ break;
4058
+ case 2:
4059
+ var value = /** @type {number} */ (reader.readInt32());
4060
+ msg.setLimit(value);
4061
+ break;
4062
+ default:
4063
+ reader.skipField();
4064
+ break;
4065
+ }
4066
+ }
4067
+ return msg;
4068
+ };
4069
+
4070
+
4071
+ /**
4072
+ * Serializes the message to binary data (in protobuf wire format).
4073
+ * @return {!Uint8Array}
4074
+ */
4075
+ proto.SyncGlFromAccurateRequest.prototype.serializeBinary = function() {
4076
+ var writer = new jspb.BinaryWriter();
4077
+ proto.SyncGlFromAccurateRequest.serializeBinaryToWriter(this, writer);
4078
+ return writer.getResultBuffer();
4079
+ };
4080
+
4081
+
4082
+ /**
4083
+ * Serializes the given message to binary data (in protobuf wire
4084
+ * format), writing to the given BinaryWriter.
4085
+ * @param {!proto.SyncGlFromAccurateRequest} message
4086
+ * @param {!jspb.BinaryWriter} writer
4087
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4088
+ */
4089
+ proto.SyncGlFromAccurateRequest.serializeBinaryToWriter = function(message, writer) {
4090
+ var f = undefined;
4091
+ f = message.getIntegrationReferencesId();
4092
+ if (f.length > 0) {
4093
+ writer.writeString(
4094
+ 1,
4095
+ f
4096
+ );
4097
+ }
4098
+ f = message.getLimit();
4099
+ if (f !== 0) {
4100
+ writer.writeInt32(
4101
+ 2,
4102
+ f
4103
+ );
4104
+ }
4105
+ };
4106
+
4107
+
4108
+ /**
4109
+ * optional string integration_references_id = 1;
4110
+ * @return {string}
4111
+ */
4112
+ proto.SyncGlFromAccurateRequest.prototype.getIntegrationReferencesId = function() {
4113
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4114
+ };
4115
+
4116
+
4117
+ /**
4118
+ * @param {string} value
4119
+ * @return {!proto.SyncGlFromAccurateRequest} returns this
4120
+ */
4121
+ proto.SyncGlFromAccurateRequest.prototype.setIntegrationReferencesId = function(value) {
4122
+ return jspb.Message.setProto3StringField(this, 1, value);
4123
+ };
4124
+
4125
+
4126
+ /**
4127
+ * optional int32 limit = 2;
4128
+ * @return {number}
4129
+ */
4130
+ proto.SyncGlFromAccurateRequest.prototype.getLimit = function() {
4131
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4132
+ };
4133
+
4134
+
4135
+ /**
4136
+ * @param {number} value
4137
+ * @return {!proto.SyncGlFromAccurateRequest} returns this
4138
+ */
4139
+ proto.SyncGlFromAccurateRequest.prototype.setLimit = function(value) {
4140
+ return jspb.Message.setProto3IntField(this, 2, value);
4141
+ };
4142
+
4143
+
4144
+
4145
+
4146
+
4147
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4148
+ /**
4149
+ * Creates an object representation of this proto.
4150
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4151
+ * Optional fields that are not set will be set to undefined.
4152
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4153
+ * For the list of reserved names please see:
4154
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4155
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4156
+ * JSPB instance for transitional soy proto support:
4157
+ * http://goto/soy-param-migration
4158
+ * @return {!Object}
4159
+ */
4160
+ proto.SyncGlSyncedItem.prototype.toObject = function(opt_includeInstance) {
4161
+ return proto.SyncGlSyncedItem.toObject(opt_includeInstance, this);
4162
+ };
4163
+
4164
+
4165
+ /**
4166
+ * Static version of the {@see toObject} method.
4167
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4168
+ * the JSPB instance for transitional soy proto support:
4169
+ * http://goto/soy-param-migration
4170
+ * @param {!proto.SyncGlSyncedItem} msg The msg instance to transform.
4171
+ * @return {!Object}
4172
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4173
+ */
4174
+ proto.SyncGlSyncedItem.toObject = function(includeInstance, msg) {
4175
+ var f, obj = {
4176
+ accurateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4177
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
4178
+ accountId: jspb.Message.getFieldWithDefault(msg, 3, ""),
4179
+ action: jspb.Message.getFieldWithDefault(msg, 4, "")
4180
+ };
4181
+
4182
+ if (includeInstance) {
4183
+ obj.$jspbMessageInstance = msg;
4184
+ }
4185
+ return obj;
4186
+ };
4187
+ }
4188
+
4189
+
4190
+ /**
4191
+ * Deserializes binary data (in protobuf wire format).
4192
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4193
+ * @return {!proto.SyncGlSyncedItem}
4194
+ */
4195
+ proto.SyncGlSyncedItem.deserializeBinary = function(bytes) {
4196
+ var reader = new jspb.BinaryReader(bytes);
4197
+ var msg = new proto.SyncGlSyncedItem;
4198
+ return proto.SyncGlSyncedItem.deserializeBinaryFromReader(msg, reader);
4199
+ };
4200
+
4201
+
4202
+ /**
4203
+ * Deserializes binary data (in protobuf wire format) from the
4204
+ * given reader into the given message object.
4205
+ * @param {!proto.SyncGlSyncedItem} msg The message object to deserialize into.
4206
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4207
+ * @return {!proto.SyncGlSyncedItem}
4208
+ */
4209
+ proto.SyncGlSyncedItem.deserializeBinaryFromReader = function(msg, reader) {
4210
+ while (reader.nextField()) {
4211
+ if (reader.isEndGroup()) {
4212
+ break;
4213
+ }
4214
+ var field = reader.getFieldNumber();
4215
+ switch (field) {
4216
+ case 1:
4217
+ var value = /** @type {number} */ (reader.readInt64());
4218
+ msg.setAccurateId(value);
4219
+ break;
4220
+ case 2:
4221
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4222
+ msg.setReferencesId(value);
4223
+ break;
4224
+ case 3:
4225
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4226
+ msg.setAccountId(value);
4227
+ break;
4228
+ case 4:
4229
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4230
+ msg.setAction(value);
4231
+ break;
4232
+ default:
4233
+ reader.skipField();
4234
+ break;
4235
+ }
4236
+ }
4237
+ return msg;
4238
+ };
4239
+
4240
+
4241
+ /**
4242
+ * Serializes the message to binary data (in protobuf wire format).
4243
+ * @return {!Uint8Array}
4244
+ */
4245
+ proto.SyncGlSyncedItem.prototype.serializeBinary = function() {
4246
+ var writer = new jspb.BinaryWriter();
4247
+ proto.SyncGlSyncedItem.serializeBinaryToWriter(this, writer);
4248
+ return writer.getResultBuffer();
4249
+ };
4250
+
4251
+
4252
+ /**
4253
+ * Serializes the given message to binary data (in protobuf wire
4254
+ * format), writing to the given BinaryWriter.
4255
+ * @param {!proto.SyncGlSyncedItem} message
4256
+ * @param {!jspb.BinaryWriter} writer
4257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4258
+ */
4259
+ proto.SyncGlSyncedItem.serializeBinaryToWriter = function(message, writer) {
4260
+ var f = undefined;
4261
+ f = message.getAccurateId();
4262
+ if (f !== 0) {
4263
+ writer.writeInt64(
4264
+ 1,
4265
+ f
4266
+ );
4267
+ }
4268
+ f = message.getReferencesId();
4269
+ if (f.length > 0) {
4270
+ writer.writeString(
4271
+ 2,
4272
+ f
4273
+ );
4274
+ }
4275
+ f = message.getAccountId();
4276
+ if (f.length > 0) {
4277
+ writer.writeString(
4278
+ 3,
4279
+ f
4280
+ );
4281
+ }
4282
+ f = message.getAction();
4283
+ if (f.length > 0) {
4284
+ writer.writeString(
4285
+ 4,
4286
+ f
4287
+ );
4288
+ }
4289
+ };
4290
+
4291
+
4292
+ /**
4293
+ * optional int64 accurate_id = 1;
4294
+ * @return {number}
4295
+ */
4296
+ proto.SyncGlSyncedItem.prototype.getAccurateId = function() {
4297
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4298
+ };
4299
+
4300
+
4301
+ /**
4302
+ * @param {number} value
4303
+ * @return {!proto.SyncGlSyncedItem} returns this
4304
+ */
4305
+ proto.SyncGlSyncedItem.prototype.setAccurateId = function(value) {
4306
+ return jspb.Message.setProto3IntField(this, 1, value);
4307
+ };
4308
+
4309
+
4310
+ /**
4311
+ * optional string references_id = 2;
4312
+ * @return {string}
4313
+ */
4314
+ proto.SyncGlSyncedItem.prototype.getReferencesId = function() {
4315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4316
+ };
4317
+
4318
+
4319
+ /**
4320
+ * @param {string} value
4321
+ * @return {!proto.SyncGlSyncedItem} returns this
4322
+ */
4323
+ proto.SyncGlSyncedItem.prototype.setReferencesId = function(value) {
4324
+ return jspb.Message.setProto3StringField(this, 2, value);
4325
+ };
4326
+
4327
+
4328
+ /**
4329
+ * optional string account_id = 3;
4330
+ * @return {string}
4331
+ */
4332
+ proto.SyncGlSyncedItem.prototype.getAccountId = function() {
4333
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4334
+ };
4335
+
4336
+
4337
+ /**
4338
+ * @param {string} value
4339
+ * @return {!proto.SyncGlSyncedItem} returns this
4340
+ */
4341
+ proto.SyncGlSyncedItem.prototype.setAccountId = function(value) {
4342
+ return jspb.Message.setProto3StringField(this, 3, value);
4343
+ };
4344
+
4345
+
4346
+ /**
4347
+ * optional string action = 4;
4348
+ * @return {string}
4349
+ */
4350
+ proto.SyncGlSyncedItem.prototype.getAction = function() {
4351
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4352
+ };
4353
+
4354
+
4355
+ /**
4356
+ * @param {string} value
4357
+ * @return {!proto.SyncGlSyncedItem} returns this
4358
+ */
4359
+ proto.SyncGlSyncedItem.prototype.setAction = function(value) {
4360
+ return jspb.Message.setProto3StringField(this, 4, value);
4361
+ };
4362
+
4363
+
4364
+
4365
+
4366
+
4367
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4368
+ /**
4369
+ * Creates an object representation of this proto.
4370
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4371
+ * Optional fields that are not set will be set to undefined.
4372
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4373
+ * For the list of reserved names please see:
4374
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4375
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4376
+ * JSPB instance for transitional soy proto support:
4377
+ * http://goto/soy-param-migration
4378
+ * @return {!Object}
4379
+ */
4380
+ proto.SyncGlFailedItem.prototype.toObject = function(opt_includeInstance) {
4381
+ return proto.SyncGlFailedItem.toObject(opt_includeInstance, this);
4382
+ };
4383
+
4384
+
4385
+ /**
4386
+ * Static version of the {@see toObject} method.
4387
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4388
+ * the JSPB instance for transitional soy proto support:
4389
+ * http://goto/soy-param-migration
4390
+ * @param {!proto.SyncGlFailedItem} msg The msg instance to transform.
4391
+ * @return {!Object}
4392
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4393
+ */
4394
+ proto.SyncGlFailedItem.toObject = function(includeInstance, msg) {
4395
+ var f, obj = {
4396
+ accurateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4397
+ error: jspb.Message.getFieldWithDefault(msg, 2, "")
4398
+ };
4399
+
4400
+ if (includeInstance) {
4401
+ obj.$jspbMessageInstance = msg;
4402
+ }
4403
+ return obj;
4404
+ };
4405
+ }
4406
+
4407
+
4408
+ /**
4409
+ * Deserializes binary data (in protobuf wire format).
4410
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4411
+ * @return {!proto.SyncGlFailedItem}
4412
+ */
4413
+ proto.SyncGlFailedItem.deserializeBinary = function(bytes) {
4414
+ var reader = new jspb.BinaryReader(bytes);
4415
+ var msg = new proto.SyncGlFailedItem;
4416
+ return proto.SyncGlFailedItem.deserializeBinaryFromReader(msg, reader);
4417
+ };
4418
+
4419
+
4420
+ /**
4421
+ * Deserializes binary data (in protobuf wire format) from the
4422
+ * given reader into the given message object.
4423
+ * @param {!proto.SyncGlFailedItem} msg The message object to deserialize into.
4424
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4425
+ * @return {!proto.SyncGlFailedItem}
4426
+ */
4427
+ proto.SyncGlFailedItem.deserializeBinaryFromReader = function(msg, reader) {
4428
+ while (reader.nextField()) {
4429
+ if (reader.isEndGroup()) {
4430
+ break;
4431
+ }
4432
+ var field = reader.getFieldNumber();
4433
+ switch (field) {
4434
+ case 1:
4435
+ var value = /** @type {number} */ (reader.readInt64());
4436
+ msg.setAccurateId(value);
4437
+ break;
4438
+ case 2:
4439
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4440
+ msg.setError(value);
4441
+ break;
4442
+ default:
4443
+ reader.skipField();
4444
+ break;
4445
+ }
4446
+ }
4447
+ return msg;
4448
+ };
4449
+
4450
+
4451
+ /**
4452
+ * Serializes the message to binary data (in protobuf wire format).
4453
+ * @return {!Uint8Array}
4454
+ */
4455
+ proto.SyncGlFailedItem.prototype.serializeBinary = function() {
4456
+ var writer = new jspb.BinaryWriter();
4457
+ proto.SyncGlFailedItem.serializeBinaryToWriter(this, writer);
4458
+ return writer.getResultBuffer();
4459
+ };
4460
+
4461
+
4462
+ /**
4463
+ * Serializes the given message to binary data (in protobuf wire
4464
+ * format), writing to the given BinaryWriter.
4465
+ * @param {!proto.SyncGlFailedItem} message
4466
+ * @param {!jspb.BinaryWriter} writer
4467
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4468
+ */
4469
+ proto.SyncGlFailedItem.serializeBinaryToWriter = function(message, writer) {
4470
+ var f = undefined;
4471
+ f = message.getAccurateId();
4472
+ if (f !== 0) {
4473
+ writer.writeInt64(
4474
+ 1,
4475
+ f
4476
+ );
4477
+ }
4478
+ f = message.getError();
4479
+ if (f.length > 0) {
4480
+ writer.writeString(
4481
+ 2,
4482
+ f
4483
+ );
4484
+ }
4485
+ };
4486
+
4487
+
4488
+ /**
4489
+ * optional int64 accurate_id = 1;
4490
+ * @return {number}
4491
+ */
4492
+ proto.SyncGlFailedItem.prototype.getAccurateId = function() {
4493
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4494
+ };
4495
+
4496
+
4497
+ /**
4498
+ * @param {number} value
4499
+ * @return {!proto.SyncGlFailedItem} returns this
4500
+ */
4501
+ proto.SyncGlFailedItem.prototype.setAccurateId = function(value) {
4502
+ return jspb.Message.setProto3IntField(this, 1, value);
4503
+ };
4504
+
4505
+
4506
+ /**
4507
+ * optional string error = 2;
4508
+ * @return {string}
4509
+ */
4510
+ proto.SyncGlFailedItem.prototype.getError = function() {
4511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4512
+ };
4513
+
4514
+
4515
+ /**
4516
+ * @param {string} value
4517
+ * @return {!proto.SyncGlFailedItem} returns this
4518
+ */
4519
+ proto.SyncGlFailedItem.prototype.setError = function(value) {
4520
+ return jspb.Message.setProto3StringField(this, 2, value);
4521
+ };
4522
+
4523
+
4524
+
4525
+ /**
4526
+ * List of repeated fields within this message type.
4527
+ * @private {!Array<number>}
4528
+ * @const
4529
+ */
4530
+ proto.SyncGlFromAccurateResponse.repeatedFields_ = [6,7];
4531
+
4532
+
4533
+
4534
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4535
+ /**
4536
+ * Creates an object representation of this proto.
4537
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4538
+ * Optional fields that are not set will be set to undefined.
4539
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4540
+ * For the list of reserved names please see:
4541
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4542
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4543
+ * JSPB instance for transitional soy proto support:
4544
+ * http://goto/soy-param-migration
4545
+ * @return {!Object}
4546
+ */
4547
+ proto.SyncGlFromAccurateResponse.prototype.toObject = function(opt_includeInstance) {
4548
+ return proto.SyncGlFromAccurateResponse.toObject(opt_includeInstance, this);
4549
+ };
4550
+
4551
+
4552
+ /**
4553
+ * Static version of the {@see toObject} method.
4554
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4555
+ * the JSPB instance for transitional soy proto support:
4556
+ * http://goto/soy-param-migration
4557
+ * @param {!proto.SyncGlFromAccurateResponse} msg The msg instance to transform.
4558
+ * @return {!Object}
4559
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4560
+ */
4561
+ proto.SyncGlFromAccurateResponse.toObject = function(includeInstance, msg) {
4562
+ var f, obj = {
4563
+ total: jspb.Message.getFieldWithDefault(msg, 1, 0),
4564
+ created: jspb.Message.getFieldWithDefault(msg, 2, 0),
4565
+ updated: jspb.Message.getFieldWithDefault(msg, 3, 0),
4566
+ unchanged: jspb.Message.getFieldWithDefault(msg, 4, 0),
4567
+ failed: jspb.Message.getFieldWithDefault(msg, 5, 0),
4568
+ syncedList: jspb.Message.toObjectList(msg.getSyncedList(),
4569
+ proto.SyncGlSyncedItem.toObject, includeInstance),
4570
+ failuresList: jspb.Message.toObjectList(msg.getFailuresList(),
4571
+ proto.SyncGlFailedItem.toObject, includeInstance)
4572
+ };
4573
+
4574
+ if (includeInstance) {
4575
+ obj.$jspbMessageInstance = msg;
4576
+ }
4577
+ return obj;
4578
+ };
4579
+ }
4580
+
4581
+
4582
+ /**
4583
+ * Deserializes binary data (in protobuf wire format).
4584
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4585
+ * @return {!proto.SyncGlFromAccurateResponse}
4586
+ */
4587
+ proto.SyncGlFromAccurateResponse.deserializeBinary = function(bytes) {
4588
+ var reader = new jspb.BinaryReader(bytes);
4589
+ var msg = new proto.SyncGlFromAccurateResponse;
4590
+ return proto.SyncGlFromAccurateResponse.deserializeBinaryFromReader(msg, reader);
4591
+ };
4592
+
4593
+
4594
+ /**
4595
+ * Deserializes binary data (in protobuf wire format) from the
4596
+ * given reader into the given message object.
4597
+ * @param {!proto.SyncGlFromAccurateResponse} msg The message object to deserialize into.
4598
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4599
+ * @return {!proto.SyncGlFromAccurateResponse}
4600
+ */
4601
+ proto.SyncGlFromAccurateResponse.deserializeBinaryFromReader = function(msg, reader) {
4602
+ while (reader.nextField()) {
4603
+ if (reader.isEndGroup()) {
4604
+ break;
4605
+ }
4606
+ var field = reader.getFieldNumber();
4607
+ switch (field) {
4608
+ case 1:
4609
+ var value = /** @type {number} */ (reader.readInt32());
4610
+ msg.setTotal(value);
4611
+ break;
4612
+ case 2:
4613
+ var value = /** @type {number} */ (reader.readInt32());
4614
+ msg.setCreated(value);
4615
+ break;
4616
+ case 3:
4617
+ var value = /** @type {number} */ (reader.readInt32());
4618
+ msg.setUpdated(value);
4619
+ break;
4620
+ case 4:
4621
+ var value = /** @type {number} */ (reader.readInt32());
4622
+ msg.setUnchanged(value);
4623
+ break;
4624
+ case 5:
4625
+ var value = /** @type {number} */ (reader.readInt32());
4626
+ msg.setFailed(value);
4627
+ break;
4628
+ case 6:
4629
+ var value = new proto.SyncGlSyncedItem;
4630
+ reader.readMessage(value,proto.SyncGlSyncedItem.deserializeBinaryFromReader);
4631
+ msg.addSynced(value);
4632
+ break;
4633
+ case 7:
4634
+ var value = new proto.SyncGlFailedItem;
4635
+ reader.readMessage(value,proto.SyncGlFailedItem.deserializeBinaryFromReader);
4636
+ msg.addFailures(value);
4637
+ break;
4638
+ default:
4639
+ reader.skipField();
4640
+ break;
4641
+ }
4642
+ }
4643
+ return msg;
4644
+ };
4645
+
4646
+
4647
+ /**
4648
+ * Serializes the message to binary data (in protobuf wire format).
4649
+ * @return {!Uint8Array}
4650
+ */
4651
+ proto.SyncGlFromAccurateResponse.prototype.serializeBinary = function() {
4652
+ var writer = new jspb.BinaryWriter();
4653
+ proto.SyncGlFromAccurateResponse.serializeBinaryToWriter(this, writer);
4654
+ return writer.getResultBuffer();
4655
+ };
4656
+
4657
+
4658
+ /**
4659
+ * Serializes the given message to binary data (in protobuf wire
4660
+ * format), writing to the given BinaryWriter.
4661
+ * @param {!proto.SyncGlFromAccurateResponse} message
4662
+ * @param {!jspb.BinaryWriter} writer
4663
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4664
+ */
4665
+ proto.SyncGlFromAccurateResponse.serializeBinaryToWriter = function(message, writer) {
4666
+ var f = undefined;
4667
+ f = message.getTotal();
4668
+ if (f !== 0) {
4669
+ writer.writeInt32(
4670
+ 1,
4671
+ f
4672
+ );
4673
+ }
4674
+ f = message.getCreated();
4675
+ if (f !== 0) {
4676
+ writer.writeInt32(
4677
+ 2,
4678
+ f
4679
+ );
4680
+ }
4681
+ f = message.getUpdated();
4682
+ if (f !== 0) {
4683
+ writer.writeInt32(
4684
+ 3,
4685
+ f
4686
+ );
4687
+ }
4688
+ f = message.getUnchanged();
4689
+ if (f !== 0) {
4690
+ writer.writeInt32(
4691
+ 4,
4692
+ f
4693
+ );
4694
+ }
4695
+ f = message.getFailed();
4696
+ if (f !== 0) {
4697
+ writer.writeInt32(
4698
+ 5,
4699
+ f
4700
+ );
4701
+ }
4702
+ f = message.getSyncedList();
4703
+ if (f.length > 0) {
4704
+ writer.writeRepeatedMessage(
4705
+ 6,
4706
+ f,
4707
+ proto.SyncGlSyncedItem.serializeBinaryToWriter
4708
+ );
4709
+ }
4710
+ f = message.getFailuresList();
4711
+ if (f.length > 0) {
4712
+ writer.writeRepeatedMessage(
4713
+ 7,
4714
+ f,
4715
+ proto.SyncGlFailedItem.serializeBinaryToWriter
4716
+ );
4717
+ }
4718
+ };
4719
+
4720
+
4721
+ /**
4722
+ * optional int32 total = 1;
4723
+ * @return {number}
4724
+ */
4725
+ proto.SyncGlFromAccurateResponse.prototype.getTotal = function() {
4726
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4727
+ };
4728
+
4729
+
4730
+ /**
4731
+ * @param {number} value
4732
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4733
+ */
4734
+ proto.SyncGlFromAccurateResponse.prototype.setTotal = function(value) {
4735
+ return jspb.Message.setProto3IntField(this, 1, value);
4736
+ };
4737
+
4738
+
4739
+ /**
4740
+ * optional int32 created = 2;
4741
+ * @return {number}
4742
+ */
4743
+ proto.SyncGlFromAccurateResponse.prototype.getCreated = function() {
4744
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4745
+ };
4746
+
4747
+
4748
+ /**
4749
+ * @param {number} value
4750
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4751
+ */
4752
+ proto.SyncGlFromAccurateResponse.prototype.setCreated = function(value) {
4753
+ return jspb.Message.setProto3IntField(this, 2, value);
4754
+ };
4755
+
4756
+
4757
+ /**
4758
+ * optional int32 updated = 3;
4759
+ * @return {number}
4760
+ */
4761
+ proto.SyncGlFromAccurateResponse.prototype.getUpdated = function() {
4762
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4763
+ };
4764
+
4765
+
4766
+ /**
4767
+ * @param {number} value
4768
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4769
+ */
4770
+ proto.SyncGlFromAccurateResponse.prototype.setUpdated = function(value) {
4771
+ return jspb.Message.setProto3IntField(this, 3, value);
4772
+ };
4773
+
4774
+
4775
+ /**
4776
+ * optional int32 unchanged = 4;
4777
+ * @return {number}
4778
+ */
4779
+ proto.SyncGlFromAccurateResponse.prototype.getUnchanged = function() {
4780
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4781
+ };
4782
+
4783
+
4784
+ /**
4785
+ * @param {number} value
4786
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4787
+ */
4788
+ proto.SyncGlFromAccurateResponse.prototype.setUnchanged = function(value) {
4789
+ return jspb.Message.setProto3IntField(this, 4, value);
4790
+ };
4791
+
4792
+
4793
+ /**
4794
+ * optional int32 failed = 5;
4795
+ * @return {number}
4796
+ */
4797
+ proto.SyncGlFromAccurateResponse.prototype.getFailed = function() {
4798
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4799
+ };
4800
+
4801
+
4802
+ /**
4803
+ * @param {number} value
4804
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4805
+ */
4806
+ proto.SyncGlFromAccurateResponse.prototype.setFailed = function(value) {
4807
+ return jspb.Message.setProto3IntField(this, 5, value);
4808
+ };
4809
+
4810
+
4811
+ /**
4812
+ * repeated SyncGlSyncedItem synced = 6;
4813
+ * @return {!Array<!proto.SyncGlSyncedItem>}
4814
+ */
4815
+ proto.SyncGlFromAccurateResponse.prototype.getSyncedList = function() {
4816
+ return /** @type{!Array<!proto.SyncGlSyncedItem>} */ (
4817
+ jspb.Message.getRepeatedWrapperField(this, proto.SyncGlSyncedItem, 6));
4818
+ };
4819
+
4820
+
4821
+ /**
4822
+ * @param {!Array<!proto.SyncGlSyncedItem>} value
4823
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4824
+ */
4825
+ proto.SyncGlFromAccurateResponse.prototype.setSyncedList = function(value) {
4826
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
4827
+ };
4828
+
4829
+
4830
+ /**
4831
+ * @param {!proto.SyncGlSyncedItem=} opt_value
4832
+ * @param {number=} opt_index
4833
+ * @return {!proto.SyncGlSyncedItem}
4834
+ */
4835
+ proto.SyncGlFromAccurateResponse.prototype.addSynced = function(opt_value, opt_index) {
4836
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.SyncGlSyncedItem, opt_index);
4837
+ };
4838
+
4839
+
4840
+ /**
4841
+ * Clears the list making it empty but non-null.
4842
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4843
+ */
4844
+ proto.SyncGlFromAccurateResponse.prototype.clearSyncedList = function() {
4845
+ return this.setSyncedList([]);
4846
+ };
4847
+
4848
+
4849
+ /**
4850
+ * repeated SyncGlFailedItem failures = 7;
4851
+ * @return {!Array<!proto.SyncGlFailedItem>}
4852
+ */
4853
+ proto.SyncGlFromAccurateResponse.prototype.getFailuresList = function() {
4854
+ return /** @type{!Array<!proto.SyncGlFailedItem>} */ (
4855
+ jspb.Message.getRepeatedWrapperField(this, proto.SyncGlFailedItem, 7));
4856
+ };
4857
+
4858
+
4859
+ /**
4860
+ * @param {!Array<!proto.SyncGlFailedItem>} value
4861
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4862
+ */
4863
+ proto.SyncGlFromAccurateResponse.prototype.setFailuresList = function(value) {
4864
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
4865
+ };
4866
+
4867
+
4868
+ /**
4869
+ * @param {!proto.SyncGlFailedItem=} opt_value
4870
+ * @param {number=} opt_index
4871
+ * @return {!proto.SyncGlFailedItem}
4872
+ */
4873
+ proto.SyncGlFromAccurateResponse.prototype.addFailures = function(opt_value, opt_index) {
4874
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.SyncGlFailedItem, opt_index);
4875
+ };
4876
+
4877
+
4878
+ /**
4879
+ * Clears the list making it empty but non-null.
4880
+ * @return {!proto.SyncGlFromAccurateResponse} returns this
4881
+ */
4882
+ proto.SyncGlFromAccurateResponse.prototype.clearFailuresList = function() {
4883
+ return this.setFailuresList([]);
4884
+ };
4885
+
4886
+
3322
4887
  goog.object.extend(exports, proto);