@aldiokta/protocgen 1.1.60 → 1.1.61
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/package.json +1 -1
- package/prisca/v1/budget/budget_grpc_pb.js +1 -0
- package/prisca/v1/budget/budget_pb.js +54 -1
- package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +79 -0
- package/prisca/v1/budget_planning/budget_planning_pb.js +4069 -51
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +92 -2
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +208 -118
|
@@ -25,19 +25,36 @@ var prisca_v1_budget_activity_budget_activity_pb = require('../../../prisca/v1/b
|
|
|
25
25
|
goog.object.extend(proto, prisca_v1_budget_activity_budget_activity_pb);
|
|
26
26
|
var prisca_v1_budget_categories_budget_categories_pb = require('../../../prisca/v1/budget_categories/budget_categories_pb.js');
|
|
27
27
|
goog.object.extend(proto, prisca_v1_budget_categories_budget_categories_pb);
|
|
28
|
+
var prisca_v1_general_ledger_account_general_ledger_account_pb = require('../../../prisca/v1/general_ledger_account/general_ledger_account_pb.js');
|
|
29
|
+
goog.object.extend(proto, prisca_v1_general_ledger_account_general_ledger_account_pb);
|
|
30
|
+
var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
|
|
31
|
+
goog.object.extend(proto, prisca_v1_core_item_transaction_item_transaction_pb);
|
|
28
32
|
goog.exportSymbol('proto.BudgetPlanning', null, global);
|
|
29
33
|
goog.exportSymbol('proto.BudgetPlanningGetByIdRequest', null, global);
|
|
30
34
|
goog.exportSymbol('proto.BudgetPlanningGetByIdResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.ChainTransactionBudgetCode', null, global);
|
|
36
|
+
goog.exportSymbol('proto.CheckAvailableBudgetRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.CheckAvailableBudgetResponse', null, global);
|
|
31
38
|
goog.exportSymbol('proto.CreateBudgetPlanningRequest', null, global);
|
|
32
39
|
goog.exportSymbol('proto.CreateBudgetPlanningResponse', null, global);
|
|
33
40
|
goog.exportSymbol('proto.DeleteBudgetPlanningRequest', null, global);
|
|
34
41
|
goog.exportSymbol('proto.DeleteBudgetPlanningResponse', null, global);
|
|
35
42
|
goog.exportSymbol('proto.DeleteBulkBudgetPlanningRequest', null, global);
|
|
36
43
|
goog.exportSymbol('proto.DeleteBulkBudgetPlanningResponse', null, global);
|
|
44
|
+
goog.exportSymbol('proto.DetailAccountId', null, global);
|
|
45
|
+
goog.exportSymbol('proto.DetailTransactionBudget', null, global);
|
|
37
46
|
goog.exportSymbol('proto.GetListBudgetPlanningRequest', null, global);
|
|
38
47
|
goog.exportSymbol('proto.GetListBudgetPlanningResponse', null, global);
|
|
48
|
+
goog.exportSymbol('proto.GetReportBudgetRequest', null, global);
|
|
49
|
+
goog.exportSymbol('proto.GetReportResponse', null, global);
|
|
39
50
|
goog.exportSymbol('proto.GetValidateBudget', null, global);
|
|
51
|
+
goog.exportSymbol('proto.GetYearReportResponse', null, global);
|
|
52
|
+
goog.exportSymbol('proto.GroupTransactionBudget', null, global);
|
|
53
|
+
goog.exportSymbol('proto.GroupTransactionCode', null, global);
|
|
54
|
+
goog.exportSymbol('proto.ReportBudgetTransaction', null, global);
|
|
55
|
+
goog.exportSymbol('proto.ReportBudgetTransactionMonth', null, global);
|
|
40
56
|
goog.exportSymbol('proto.ResponseValidateBudget', null, global);
|
|
57
|
+
goog.exportSymbol('proto.TransactionBudget', null, global);
|
|
41
58
|
goog.exportSymbol('proto.UpdateBudgetPlanningRequest', null, global);
|
|
42
59
|
goog.exportSymbol('proto.UpdateBudgetPlanningResponse', null, global);
|
|
43
60
|
/**
|
|
@@ -355,6 +372,279 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
355
372
|
*/
|
|
356
373
|
proto.DeleteBulkBudgetPlanningResponse.displayName = 'proto.DeleteBulkBudgetPlanningResponse';
|
|
357
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Generated by JsPbCodeGenerator.
|
|
377
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
378
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
379
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
380
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
381
|
+
* valid.
|
|
382
|
+
* @extends {jspb.Message}
|
|
383
|
+
* @constructor
|
|
384
|
+
*/
|
|
385
|
+
proto.GetReportBudgetRequest = function(opt_data) {
|
|
386
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
387
|
+
};
|
|
388
|
+
goog.inherits(proto.GetReportBudgetRequest, jspb.Message);
|
|
389
|
+
if (goog.DEBUG && !COMPILED) {
|
|
390
|
+
/**
|
|
391
|
+
* @public
|
|
392
|
+
* @override
|
|
393
|
+
*/
|
|
394
|
+
proto.GetReportBudgetRequest.displayName = 'proto.GetReportBudgetRequest';
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Generated by JsPbCodeGenerator.
|
|
398
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
399
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
400
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
401
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
402
|
+
* valid.
|
|
403
|
+
* @extends {jspb.Message}
|
|
404
|
+
* @constructor
|
|
405
|
+
*/
|
|
406
|
+
proto.CheckAvailableBudgetRequest = function(opt_data) {
|
|
407
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.CheckAvailableBudgetRequest.repeatedFields_, null);
|
|
408
|
+
};
|
|
409
|
+
goog.inherits(proto.CheckAvailableBudgetRequest, jspb.Message);
|
|
410
|
+
if (goog.DEBUG && !COMPILED) {
|
|
411
|
+
/**
|
|
412
|
+
* @public
|
|
413
|
+
* @override
|
|
414
|
+
*/
|
|
415
|
+
proto.CheckAvailableBudgetRequest.displayName = 'proto.CheckAvailableBudgetRequest';
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Generated by JsPbCodeGenerator.
|
|
419
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
420
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
421
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
422
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
423
|
+
* valid.
|
|
424
|
+
* @extends {jspb.Message}
|
|
425
|
+
* @constructor
|
|
426
|
+
*/
|
|
427
|
+
proto.CheckAvailableBudgetResponse = function(opt_data) {
|
|
428
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
429
|
+
};
|
|
430
|
+
goog.inherits(proto.CheckAvailableBudgetResponse, jspb.Message);
|
|
431
|
+
if (goog.DEBUG && !COMPILED) {
|
|
432
|
+
/**
|
|
433
|
+
* @public
|
|
434
|
+
* @override
|
|
435
|
+
*/
|
|
436
|
+
proto.CheckAvailableBudgetResponse.displayName = 'proto.CheckAvailableBudgetResponse';
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Generated by JsPbCodeGenerator.
|
|
440
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
441
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
442
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
443
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
444
|
+
* valid.
|
|
445
|
+
* @extends {jspb.Message}
|
|
446
|
+
* @constructor
|
|
447
|
+
*/
|
|
448
|
+
proto.GetReportResponse = function(opt_data) {
|
|
449
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetReportResponse.repeatedFields_, null);
|
|
450
|
+
};
|
|
451
|
+
goog.inherits(proto.GetReportResponse, jspb.Message);
|
|
452
|
+
if (goog.DEBUG && !COMPILED) {
|
|
453
|
+
/**
|
|
454
|
+
* @public
|
|
455
|
+
* @override
|
|
456
|
+
*/
|
|
457
|
+
proto.GetReportResponse.displayName = 'proto.GetReportResponse';
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Generated by JsPbCodeGenerator.
|
|
461
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
462
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
463
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
464
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
465
|
+
* valid.
|
|
466
|
+
* @extends {jspb.Message}
|
|
467
|
+
* @constructor
|
|
468
|
+
*/
|
|
469
|
+
proto.DetailAccountId = function(opt_data) {
|
|
470
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
471
|
+
};
|
|
472
|
+
goog.inherits(proto.DetailAccountId, jspb.Message);
|
|
473
|
+
if (goog.DEBUG && !COMPILED) {
|
|
474
|
+
/**
|
|
475
|
+
* @public
|
|
476
|
+
* @override
|
|
477
|
+
*/
|
|
478
|
+
proto.DetailAccountId.displayName = 'proto.DetailAccountId';
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Generated by JsPbCodeGenerator.
|
|
482
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
483
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
484
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
485
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
486
|
+
* valid.
|
|
487
|
+
* @extends {jspb.Message}
|
|
488
|
+
* @constructor
|
|
489
|
+
*/
|
|
490
|
+
proto.ChainTransactionBudgetCode = function(opt_data) {
|
|
491
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ChainTransactionBudgetCode.repeatedFields_, null);
|
|
492
|
+
};
|
|
493
|
+
goog.inherits(proto.ChainTransactionBudgetCode, jspb.Message);
|
|
494
|
+
if (goog.DEBUG && !COMPILED) {
|
|
495
|
+
/**
|
|
496
|
+
* @public
|
|
497
|
+
* @override
|
|
498
|
+
*/
|
|
499
|
+
proto.ChainTransactionBudgetCode.displayName = 'proto.ChainTransactionBudgetCode';
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Generated by JsPbCodeGenerator.
|
|
503
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
504
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
505
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
506
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
507
|
+
* valid.
|
|
508
|
+
* @extends {jspb.Message}
|
|
509
|
+
* @constructor
|
|
510
|
+
*/
|
|
511
|
+
proto.GroupTransactionBudget = function(opt_data) {
|
|
512
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GroupTransactionBudget.repeatedFields_, null);
|
|
513
|
+
};
|
|
514
|
+
goog.inherits(proto.GroupTransactionBudget, jspb.Message);
|
|
515
|
+
if (goog.DEBUG && !COMPILED) {
|
|
516
|
+
/**
|
|
517
|
+
* @public
|
|
518
|
+
* @override
|
|
519
|
+
*/
|
|
520
|
+
proto.GroupTransactionBudget.displayName = 'proto.GroupTransactionBudget';
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Generated by JsPbCodeGenerator.
|
|
524
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
525
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
526
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
527
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
528
|
+
* valid.
|
|
529
|
+
* @extends {jspb.Message}
|
|
530
|
+
* @constructor
|
|
531
|
+
*/
|
|
532
|
+
proto.TransactionBudget = function(opt_data) {
|
|
533
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
534
|
+
};
|
|
535
|
+
goog.inherits(proto.TransactionBudget, jspb.Message);
|
|
536
|
+
if (goog.DEBUG && !COMPILED) {
|
|
537
|
+
/**
|
|
538
|
+
* @public
|
|
539
|
+
* @override
|
|
540
|
+
*/
|
|
541
|
+
proto.TransactionBudget.displayName = 'proto.TransactionBudget';
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Generated by JsPbCodeGenerator.
|
|
545
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
546
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
547
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
548
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
549
|
+
* valid.
|
|
550
|
+
* @extends {jspb.Message}
|
|
551
|
+
* @constructor
|
|
552
|
+
*/
|
|
553
|
+
proto.GroupTransactionCode = function(opt_data) {
|
|
554
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GroupTransactionCode.repeatedFields_, null);
|
|
555
|
+
};
|
|
556
|
+
goog.inherits(proto.GroupTransactionCode, jspb.Message);
|
|
557
|
+
if (goog.DEBUG && !COMPILED) {
|
|
558
|
+
/**
|
|
559
|
+
* @public
|
|
560
|
+
* @override
|
|
561
|
+
*/
|
|
562
|
+
proto.GroupTransactionCode.displayName = 'proto.GroupTransactionCode';
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Generated by JsPbCodeGenerator.
|
|
566
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
567
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
568
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
569
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
570
|
+
* valid.
|
|
571
|
+
* @extends {jspb.Message}
|
|
572
|
+
* @constructor
|
|
573
|
+
*/
|
|
574
|
+
proto.ReportBudgetTransaction = function(opt_data) {
|
|
575
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
576
|
+
};
|
|
577
|
+
goog.inherits(proto.ReportBudgetTransaction, jspb.Message);
|
|
578
|
+
if (goog.DEBUG && !COMPILED) {
|
|
579
|
+
/**
|
|
580
|
+
* @public
|
|
581
|
+
* @override
|
|
582
|
+
*/
|
|
583
|
+
proto.ReportBudgetTransaction.displayName = 'proto.ReportBudgetTransaction';
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Generated by JsPbCodeGenerator.
|
|
587
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
588
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
589
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
590
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
591
|
+
* valid.
|
|
592
|
+
* @extends {jspb.Message}
|
|
593
|
+
* @constructor
|
|
594
|
+
*/
|
|
595
|
+
proto.DetailTransactionBudget = function(opt_data) {
|
|
596
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DetailTransactionBudget.repeatedFields_, null);
|
|
597
|
+
};
|
|
598
|
+
goog.inherits(proto.DetailTransactionBudget, jspb.Message);
|
|
599
|
+
if (goog.DEBUG && !COMPILED) {
|
|
600
|
+
/**
|
|
601
|
+
* @public
|
|
602
|
+
* @override
|
|
603
|
+
*/
|
|
604
|
+
proto.DetailTransactionBudget.displayName = 'proto.DetailTransactionBudget';
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Generated by JsPbCodeGenerator.
|
|
608
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
609
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
610
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
611
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
612
|
+
* valid.
|
|
613
|
+
* @extends {jspb.Message}
|
|
614
|
+
* @constructor
|
|
615
|
+
*/
|
|
616
|
+
proto.ReportBudgetTransactionMonth = function(opt_data) {
|
|
617
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ReportBudgetTransactionMonth.repeatedFields_, null);
|
|
618
|
+
};
|
|
619
|
+
goog.inherits(proto.ReportBudgetTransactionMonth, jspb.Message);
|
|
620
|
+
if (goog.DEBUG && !COMPILED) {
|
|
621
|
+
/**
|
|
622
|
+
* @public
|
|
623
|
+
* @override
|
|
624
|
+
*/
|
|
625
|
+
proto.ReportBudgetTransactionMonth.displayName = 'proto.ReportBudgetTransactionMonth';
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Generated by JsPbCodeGenerator.
|
|
629
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
630
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
631
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
632
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
633
|
+
* valid.
|
|
634
|
+
* @extends {jspb.Message}
|
|
635
|
+
* @constructor
|
|
636
|
+
*/
|
|
637
|
+
proto.GetYearReportResponse = function(opt_data) {
|
|
638
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetYearReportResponse.repeatedFields_, null);
|
|
639
|
+
};
|
|
640
|
+
goog.inherits(proto.GetYearReportResponse, jspb.Message);
|
|
641
|
+
if (goog.DEBUG && !COMPILED) {
|
|
642
|
+
/**
|
|
643
|
+
* @public
|
|
644
|
+
* @override
|
|
645
|
+
*/
|
|
646
|
+
proto.GetYearReportResponse.displayName = 'proto.GetYearReportResponse';
|
|
647
|
+
}
|
|
358
648
|
|
|
359
649
|
|
|
360
650
|
|
|
@@ -392,10 +682,10 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
392
682
|
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
393
683
|
code: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
394
684
|
activities: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
395
|
-
|
|
685
|
+
glReferences: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
396
686
|
activitiesReferences: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
397
687
|
country: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
398
|
-
|
|
688
|
+
generalLedgerAccount: (f = msg.getGeneralLedgerAccount()) && prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount.toObject(includeInstance, f),
|
|
399
689
|
location: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
400
690
|
description: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
401
691
|
categoryReferences: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
@@ -414,7 +704,6 @@ november: jspb.Message.getFieldWithDefault(msg, 24, ""),
|
|
|
414
704
|
december: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
415
705
|
budgetTolerance: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
|
416
706
|
budgetReferences: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
417
|
-
budgetActivityReferences: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
418
707
|
createdAt: jspb.Message.getFieldWithDefault(msg, 29, ""),
|
|
419
708
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 30, ""),
|
|
420
709
|
createdBy: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
@@ -480,7 +769,7 @@ proto.BudgetPlanning.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
480
769
|
break;
|
|
481
770
|
case 6:
|
|
482
771
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
483
|
-
msg.
|
|
772
|
+
msg.setGlReferences(value);
|
|
484
773
|
break;
|
|
485
774
|
case 7:
|
|
486
775
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
@@ -491,8 +780,9 @@ proto.BudgetPlanning.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
491
780
|
msg.setCountry(value);
|
|
492
781
|
break;
|
|
493
782
|
case 9:
|
|
494
|
-
var value =
|
|
495
|
-
|
|
783
|
+
var value = new prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount;
|
|
784
|
+
reader.readMessage(value,prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount.deserializeBinaryFromReader);
|
|
785
|
+
msg.setGeneralLedgerAccount(value);
|
|
496
786
|
break;
|
|
497
787
|
case 10:
|
|
498
788
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
@@ -566,10 +856,6 @@ proto.BudgetPlanning.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
566
856
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
567
857
|
msg.setBudgetReferences(value);
|
|
568
858
|
break;
|
|
569
|
-
case 28:
|
|
570
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
571
|
-
msg.setBudgetActivityReferences(value);
|
|
572
|
-
break;
|
|
573
859
|
case 29:
|
|
574
860
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
575
861
|
msg.setCreatedAt(value);
|
|
@@ -664,7 +950,7 @@ proto.BudgetPlanning.serializeBinaryToWriter = function(message, writer) {
|
|
|
664
950
|
f
|
|
665
951
|
);
|
|
666
952
|
}
|
|
667
|
-
f = message.
|
|
953
|
+
f = message.getGlReferences();
|
|
668
954
|
if (f.length > 0) {
|
|
669
955
|
writer.writeString(
|
|
670
956
|
6,
|
|
@@ -685,11 +971,12 @@ proto.BudgetPlanning.serializeBinaryToWriter = function(message, writer) {
|
|
|
685
971
|
f
|
|
686
972
|
);
|
|
687
973
|
}
|
|
688
|
-
f = message.
|
|
689
|
-
if (f
|
|
690
|
-
writer.
|
|
974
|
+
f = message.getGeneralLedgerAccount();
|
|
975
|
+
if (f != null) {
|
|
976
|
+
writer.writeMessage(
|
|
691
977
|
9,
|
|
692
|
-
f
|
|
978
|
+
f,
|
|
979
|
+
prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount.serializeBinaryToWriter
|
|
693
980
|
);
|
|
694
981
|
}
|
|
695
982
|
f = message.getLocation();
|
|
@@ -818,13 +1105,6 @@ proto.BudgetPlanning.serializeBinaryToWriter = function(message, writer) {
|
|
|
818
1105
|
f
|
|
819
1106
|
);
|
|
820
1107
|
}
|
|
821
|
-
f = message.getBudgetActivityReferences();
|
|
822
|
-
if (f.length > 0) {
|
|
823
|
-
writer.writeString(
|
|
824
|
-
28,
|
|
825
|
-
f
|
|
826
|
-
);
|
|
827
|
-
}
|
|
828
1108
|
f = message.getCreatedAt();
|
|
829
1109
|
if (f.length > 0) {
|
|
830
1110
|
writer.writeString(
|
|
@@ -970,10 +1250,10 @@ proto.BudgetPlanning.prototype.setActivities = function(value) {
|
|
|
970
1250
|
|
|
971
1251
|
|
|
972
1252
|
/**
|
|
973
|
-
* optional string
|
|
1253
|
+
* optional string gl_references = 6;
|
|
974
1254
|
* @return {string}
|
|
975
1255
|
*/
|
|
976
|
-
proto.BudgetPlanning.prototype.
|
|
1256
|
+
proto.BudgetPlanning.prototype.getGlReferences = function() {
|
|
977
1257
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
978
1258
|
};
|
|
979
1259
|
|
|
@@ -982,7 +1262,7 @@ proto.BudgetPlanning.prototype.getPostCode = function() {
|
|
|
982
1262
|
* @param {string} value
|
|
983
1263
|
* @return {!proto.BudgetPlanning} returns this
|
|
984
1264
|
*/
|
|
985
|
-
proto.BudgetPlanning.prototype.
|
|
1265
|
+
proto.BudgetPlanning.prototype.setGlReferences = function(value) {
|
|
986
1266
|
return jspb.Message.setProto3StringField(this, 6, value);
|
|
987
1267
|
};
|
|
988
1268
|
|
|
@@ -1024,20 +1304,39 @@ proto.BudgetPlanning.prototype.setCountry = function(value) {
|
|
|
1024
1304
|
|
|
1025
1305
|
|
|
1026
1306
|
/**
|
|
1027
|
-
* optional
|
|
1028
|
-
* @return {
|
|
1307
|
+
* optional GeneralLedgerAccount general_ledger_account = 9;
|
|
1308
|
+
* @return {?proto.GeneralLedgerAccount}
|
|
1029
1309
|
*/
|
|
1030
|
-
proto.BudgetPlanning.prototype.
|
|
1031
|
-
return /** @type
|
|
1310
|
+
proto.BudgetPlanning.prototype.getGeneralLedgerAccount = function() {
|
|
1311
|
+
return /** @type{?proto.GeneralLedgerAccount} */ (
|
|
1312
|
+
jspb.Message.getWrapperField(this, prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount, 9));
|
|
1032
1313
|
};
|
|
1033
1314
|
|
|
1034
1315
|
|
|
1035
1316
|
/**
|
|
1036
|
-
* @param {
|
|
1317
|
+
* @param {?proto.GeneralLedgerAccount|undefined} value
|
|
1318
|
+
* @return {!proto.BudgetPlanning} returns this
|
|
1319
|
+
*/
|
|
1320
|
+
proto.BudgetPlanning.prototype.setGeneralLedgerAccount = function(value) {
|
|
1321
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* Clears the message field making it undefined.
|
|
1037
1327
|
* @return {!proto.BudgetPlanning} returns this
|
|
1038
1328
|
*/
|
|
1039
|
-
proto.BudgetPlanning.prototype.
|
|
1040
|
-
return
|
|
1329
|
+
proto.BudgetPlanning.prototype.clearGeneralLedgerAccount = function() {
|
|
1330
|
+
return this.setGeneralLedgerAccount(undefined);
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Returns whether this field is set.
|
|
1336
|
+
* @return {boolean}
|
|
1337
|
+
*/
|
|
1338
|
+
proto.BudgetPlanning.prototype.hasGeneralLedgerAccount = function() {
|
|
1339
|
+
return jspb.Message.getField(this, 9) != null;
|
|
1041
1340
|
};
|
|
1042
1341
|
|
|
1043
1342
|
|
|
@@ -1365,24 +1664,6 @@ proto.BudgetPlanning.prototype.setBudgetReferences = function(value) {
|
|
|
1365
1664
|
};
|
|
1366
1665
|
|
|
1367
1666
|
|
|
1368
|
-
/**
|
|
1369
|
-
* optional string budget_activity_references = 28;
|
|
1370
|
-
* @return {string}
|
|
1371
|
-
*/
|
|
1372
|
-
proto.BudgetPlanning.prototype.getBudgetActivityReferences = function() {
|
|
1373
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
* @param {string} value
|
|
1379
|
-
* @return {!proto.BudgetPlanning} returns this
|
|
1380
|
-
*/
|
|
1381
|
-
proto.BudgetPlanning.prototype.setBudgetActivityReferences = function(value) {
|
|
1382
|
-
return jspb.Message.setProto3StringField(this, 28, value);
|
|
1383
|
-
};
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
1667
|
/**
|
|
1387
1668
|
* optional string created_at = 29;
|
|
1388
1669
|
* @return {string}
|
|
@@ -1580,7 +1861,8 @@ proto.GetValidateBudget.prototype.toObject = function(opt_includeInstance) {
|
|
|
1580
1861
|
proto.GetValidateBudget.toObject = function(includeInstance, msg) {
|
|
1581
1862
|
var f, obj = {
|
|
1582
1863
|
budgetCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1583
|
-
createdDate: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1864
|
+
createdDate: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1865
|
+
departmentReferences: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1584
1866
|
};
|
|
1585
1867
|
|
|
1586
1868
|
if (includeInstance) {
|
|
@@ -1625,6 +1907,10 @@ proto.GetValidateBudget.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1625
1907
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1626
1908
|
msg.setCreatedDate(value);
|
|
1627
1909
|
break;
|
|
1910
|
+
case 3:
|
|
1911
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1912
|
+
msg.setDepartmentReferences(value);
|
|
1913
|
+
break;
|
|
1628
1914
|
default:
|
|
1629
1915
|
reader.skipField();
|
|
1630
1916
|
break;
|
|
@@ -1668,6 +1954,13 @@ proto.GetValidateBudget.serializeBinaryToWriter = function(message, writer) {
|
|
|
1668
1954
|
f
|
|
1669
1955
|
);
|
|
1670
1956
|
}
|
|
1957
|
+
f = message.getDepartmentReferences();
|
|
1958
|
+
if (f.length > 0) {
|
|
1959
|
+
writer.writeString(
|
|
1960
|
+
3,
|
|
1961
|
+
f
|
|
1962
|
+
);
|
|
1963
|
+
}
|
|
1671
1964
|
};
|
|
1672
1965
|
|
|
1673
1966
|
|
|
@@ -1707,6 +2000,24 @@ proto.GetValidateBudget.prototype.setCreatedDate = function(value) {
|
|
|
1707
2000
|
};
|
|
1708
2001
|
|
|
1709
2002
|
|
|
2003
|
+
/**
|
|
2004
|
+
* optional string department_references = 3;
|
|
2005
|
+
* @return {string}
|
|
2006
|
+
*/
|
|
2007
|
+
proto.GetValidateBudget.prototype.getDepartmentReferences = function() {
|
|
2008
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2009
|
+
};
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* @param {string} value
|
|
2014
|
+
* @return {!proto.GetValidateBudget} returns this
|
|
2015
|
+
*/
|
|
2016
|
+
proto.GetValidateBudget.prototype.setDepartmentReferences = function(value) {
|
|
2017
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
|
|
1710
2021
|
|
|
1711
2022
|
|
|
1712
2023
|
|
|
@@ -4124,4 +4435,3711 @@ proto.DeleteBulkBudgetPlanningResponse.prototype.hasMeta = function() {
|
|
|
4124
4435
|
};
|
|
4125
4436
|
|
|
4126
4437
|
|
|
4438
|
+
|
|
4439
|
+
|
|
4440
|
+
|
|
4441
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4442
|
+
/**
|
|
4443
|
+
* Creates an object representation of this proto.
|
|
4444
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4445
|
+
* Optional fields that are not set will be set to undefined.
|
|
4446
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4447
|
+
* For the list of reserved names please see:
|
|
4448
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4449
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4450
|
+
* JSPB instance for transitional soy proto support:
|
|
4451
|
+
* http://goto/soy-param-migration
|
|
4452
|
+
* @return {!Object}
|
|
4453
|
+
*/
|
|
4454
|
+
proto.GetReportBudgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4455
|
+
return proto.GetReportBudgetRequest.toObject(opt_includeInstance, this);
|
|
4456
|
+
};
|
|
4457
|
+
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* Static version of the {@see toObject} method.
|
|
4461
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4462
|
+
* the JSPB instance for transitional soy proto support:
|
|
4463
|
+
* http://goto/soy-param-migration
|
|
4464
|
+
* @param {!proto.GetReportBudgetRequest} msg The msg instance to transform.
|
|
4465
|
+
* @return {!Object}
|
|
4466
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4467
|
+
*/
|
|
4468
|
+
proto.GetReportBudgetRequest.toObject = function(includeInstance, msg) {
|
|
4469
|
+
var f, obj = {
|
|
4470
|
+
year: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4471
|
+
departmentReferences: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4472
|
+
};
|
|
4473
|
+
|
|
4474
|
+
if (includeInstance) {
|
|
4475
|
+
obj.$jspbMessageInstance = msg;
|
|
4476
|
+
}
|
|
4477
|
+
return obj;
|
|
4478
|
+
};
|
|
4479
|
+
}
|
|
4480
|
+
|
|
4481
|
+
|
|
4482
|
+
/**
|
|
4483
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4484
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4485
|
+
* @return {!proto.GetReportBudgetRequest}
|
|
4486
|
+
*/
|
|
4487
|
+
proto.GetReportBudgetRequest.deserializeBinary = function(bytes) {
|
|
4488
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4489
|
+
var msg = new proto.GetReportBudgetRequest;
|
|
4490
|
+
return proto.GetReportBudgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
4491
|
+
};
|
|
4492
|
+
|
|
4493
|
+
|
|
4494
|
+
/**
|
|
4495
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4496
|
+
* given reader into the given message object.
|
|
4497
|
+
* @param {!proto.GetReportBudgetRequest} msg The message object to deserialize into.
|
|
4498
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4499
|
+
* @return {!proto.GetReportBudgetRequest}
|
|
4500
|
+
*/
|
|
4501
|
+
proto.GetReportBudgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4502
|
+
while (reader.nextField()) {
|
|
4503
|
+
if (reader.isEndGroup()) {
|
|
4504
|
+
break;
|
|
4505
|
+
}
|
|
4506
|
+
var field = reader.getFieldNumber();
|
|
4507
|
+
switch (field) {
|
|
4508
|
+
case 1:
|
|
4509
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4510
|
+
msg.setYear(value);
|
|
4511
|
+
break;
|
|
4512
|
+
case 2:
|
|
4513
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4514
|
+
msg.setDepartmentReferences(value);
|
|
4515
|
+
break;
|
|
4516
|
+
default:
|
|
4517
|
+
reader.skipField();
|
|
4518
|
+
break;
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
return msg;
|
|
4522
|
+
};
|
|
4523
|
+
|
|
4524
|
+
|
|
4525
|
+
/**
|
|
4526
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4527
|
+
* @return {!Uint8Array}
|
|
4528
|
+
*/
|
|
4529
|
+
proto.GetReportBudgetRequest.prototype.serializeBinary = function() {
|
|
4530
|
+
var writer = new jspb.BinaryWriter();
|
|
4531
|
+
proto.GetReportBudgetRequest.serializeBinaryToWriter(this, writer);
|
|
4532
|
+
return writer.getResultBuffer();
|
|
4533
|
+
};
|
|
4534
|
+
|
|
4535
|
+
|
|
4536
|
+
/**
|
|
4537
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4538
|
+
* format), writing to the given BinaryWriter.
|
|
4539
|
+
* @param {!proto.GetReportBudgetRequest} message
|
|
4540
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4541
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4542
|
+
*/
|
|
4543
|
+
proto.GetReportBudgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4544
|
+
var f = undefined;
|
|
4545
|
+
f = message.getYear();
|
|
4546
|
+
if (f.length > 0) {
|
|
4547
|
+
writer.writeString(
|
|
4548
|
+
1,
|
|
4549
|
+
f
|
|
4550
|
+
);
|
|
4551
|
+
}
|
|
4552
|
+
f = message.getDepartmentReferences();
|
|
4553
|
+
if (f.length > 0) {
|
|
4554
|
+
writer.writeString(
|
|
4555
|
+
2,
|
|
4556
|
+
f
|
|
4557
|
+
);
|
|
4558
|
+
}
|
|
4559
|
+
};
|
|
4560
|
+
|
|
4561
|
+
|
|
4562
|
+
/**
|
|
4563
|
+
* optional string year = 1;
|
|
4564
|
+
* @return {string}
|
|
4565
|
+
*/
|
|
4566
|
+
proto.GetReportBudgetRequest.prototype.getYear = function() {
|
|
4567
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4568
|
+
};
|
|
4569
|
+
|
|
4570
|
+
|
|
4571
|
+
/**
|
|
4572
|
+
* @param {string} value
|
|
4573
|
+
* @return {!proto.GetReportBudgetRequest} returns this
|
|
4574
|
+
*/
|
|
4575
|
+
proto.GetReportBudgetRequest.prototype.setYear = function(value) {
|
|
4576
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4577
|
+
};
|
|
4578
|
+
|
|
4579
|
+
|
|
4580
|
+
/**
|
|
4581
|
+
* optional string department_references = 2;
|
|
4582
|
+
* @return {string}
|
|
4583
|
+
*/
|
|
4584
|
+
proto.GetReportBudgetRequest.prototype.getDepartmentReferences = function() {
|
|
4585
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4586
|
+
};
|
|
4587
|
+
|
|
4588
|
+
|
|
4589
|
+
/**
|
|
4590
|
+
* @param {string} value
|
|
4591
|
+
* @return {!proto.GetReportBudgetRequest} returns this
|
|
4592
|
+
*/
|
|
4593
|
+
proto.GetReportBudgetRequest.prototype.setDepartmentReferences = function(value) {
|
|
4594
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4595
|
+
};
|
|
4596
|
+
|
|
4597
|
+
|
|
4598
|
+
|
|
4599
|
+
/**
|
|
4600
|
+
* List of repeated fields within this message type.
|
|
4601
|
+
* @private {!Array<number>}
|
|
4602
|
+
* @const
|
|
4603
|
+
*/
|
|
4604
|
+
proto.CheckAvailableBudgetRequest.repeatedFields_ = [2];
|
|
4605
|
+
|
|
4606
|
+
|
|
4607
|
+
|
|
4608
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4609
|
+
/**
|
|
4610
|
+
* Creates an object representation of this proto.
|
|
4611
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4612
|
+
* Optional fields that are not set will be set to undefined.
|
|
4613
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4614
|
+
* For the list of reserved names please see:
|
|
4615
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4616
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4617
|
+
* JSPB instance for transitional soy proto support:
|
|
4618
|
+
* http://goto/soy-param-migration
|
|
4619
|
+
* @return {!Object}
|
|
4620
|
+
*/
|
|
4621
|
+
proto.CheckAvailableBudgetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4622
|
+
return proto.CheckAvailableBudgetRequest.toObject(opt_includeInstance, this);
|
|
4623
|
+
};
|
|
4624
|
+
|
|
4625
|
+
|
|
4626
|
+
/**
|
|
4627
|
+
* Static version of the {@see toObject} method.
|
|
4628
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4629
|
+
* the JSPB instance for transitional soy proto support:
|
|
4630
|
+
* http://goto/soy-param-migration
|
|
4631
|
+
* @param {!proto.CheckAvailableBudgetRequest} msg The msg instance to transform.
|
|
4632
|
+
* @return {!Object}
|
|
4633
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4634
|
+
*/
|
|
4635
|
+
proto.CheckAvailableBudgetRequest.toObject = function(includeInstance, msg) {
|
|
4636
|
+
var f, obj = {
|
|
4637
|
+
validateBudget: (f = msg.getValidateBudget()) && proto.GetValidateBudget.toObject(includeInstance, f),
|
|
4638
|
+
itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
4639
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance)
|
|
4640
|
+
};
|
|
4641
|
+
|
|
4642
|
+
if (includeInstance) {
|
|
4643
|
+
obj.$jspbMessageInstance = msg;
|
|
4644
|
+
}
|
|
4645
|
+
return obj;
|
|
4646
|
+
};
|
|
4647
|
+
}
|
|
4648
|
+
|
|
4649
|
+
|
|
4650
|
+
/**
|
|
4651
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4652
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4653
|
+
* @return {!proto.CheckAvailableBudgetRequest}
|
|
4654
|
+
*/
|
|
4655
|
+
proto.CheckAvailableBudgetRequest.deserializeBinary = function(bytes) {
|
|
4656
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4657
|
+
var msg = new proto.CheckAvailableBudgetRequest;
|
|
4658
|
+
return proto.CheckAvailableBudgetRequest.deserializeBinaryFromReader(msg, reader);
|
|
4659
|
+
};
|
|
4660
|
+
|
|
4661
|
+
|
|
4662
|
+
/**
|
|
4663
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4664
|
+
* given reader into the given message object.
|
|
4665
|
+
* @param {!proto.CheckAvailableBudgetRequest} msg The message object to deserialize into.
|
|
4666
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4667
|
+
* @return {!proto.CheckAvailableBudgetRequest}
|
|
4668
|
+
*/
|
|
4669
|
+
proto.CheckAvailableBudgetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4670
|
+
while (reader.nextField()) {
|
|
4671
|
+
if (reader.isEndGroup()) {
|
|
4672
|
+
break;
|
|
4673
|
+
}
|
|
4674
|
+
var field = reader.getFieldNumber();
|
|
4675
|
+
switch (field) {
|
|
4676
|
+
case 1:
|
|
4677
|
+
var value = new proto.GetValidateBudget;
|
|
4678
|
+
reader.readMessage(value,proto.GetValidateBudget.deserializeBinaryFromReader);
|
|
4679
|
+
msg.setValidateBudget(value);
|
|
4680
|
+
break;
|
|
4681
|
+
case 2:
|
|
4682
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
|
|
4683
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
|
|
4684
|
+
msg.addItemTransactions(value);
|
|
4685
|
+
break;
|
|
4686
|
+
default:
|
|
4687
|
+
reader.skipField();
|
|
4688
|
+
break;
|
|
4689
|
+
}
|
|
4690
|
+
}
|
|
4691
|
+
return msg;
|
|
4692
|
+
};
|
|
4693
|
+
|
|
4694
|
+
|
|
4695
|
+
/**
|
|
4696
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4697
|
+
* @return {!Uint8Array}
|
|
4698
|
+
*/
|
|
4699
|
+
proto.CheckAvailableBudgetRequest.prototype.serializeBinary = function() {
|
|
4700
|
+
var writer = new jspb.BinaryWriter();
|
|
4701
|
+
proto.CheckAvailableBudgetRequest.serializeBinaryToWriter(this, writer);
|
|
4702
|
+
return writer.getResultBuffer();
|
|
4703
|
+
};
|
|
4704
|
+
|
|
4705
|
+
|
|
4706
|
+
/**
|
|
4707
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4708
|
+
* format), writing to the given BinaryWriter.
|
|
4709
|
+
* @param {!proto.CheckAvailableBudgetRequest} message
|
|
4710
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4711
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4712
|
+
*/
|
|
4713
|
+
proto.CheckAvailableBudgetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4714
|
+
var f = undefined;
|
|
4715
|
+
f = message.getValidateBudget();
|
|
4716
|
+
if (f != null) {
|
|
4717
|
+
writer.writeMessage(
|
|
4718
|
+
1,
|
|
4719
|
+
f,
|
|
4720
|
+
proto.GetValidateBudget.serializeBinaryToWriter
|
|
4721
|
+
);
|
|
4722
|
+
}
|
|
4723
|
+
f = message.getItemTransactionsList();
|
|
4724
|
+
if (f.length > 0) {
|
|
4725
|
+
writer.writeRepeatedMessage(
|
|
4726
|
+
2,
|
|
4727
|
+
f,
|
|
4728
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
|
|
4729
|
+
);
|
|
4730
|
+
}
|
|
4731
|
+
};
|
|
4732
|
+
|
|
4733
|
+
|
|
4734
|
+
/**
|
|
4735
|
+
* optional GetValidateBudget validate_budget = 1;
|
|
4736
|
+
* @return {?proto.GetValidateBudget}
|
|
4737
|
+
*/
|
|
4738
|
+
proto.CheckAvailableBudgetRequest.prototype.getValidateBudget = function() {
|
|
4739
|
+
return /** @type{?proto.GetValidateBudget} */ (
|
|
4740
|
+
jspb.Message.getWrapperField(this, proto.GetValidateBudget, 1));
|
|
4741
|
+
};
|
|
4742
|
+
|
|
4743
|
+
|
|
4744
|
+
/**
|
|
4745
|
+
* @param {?proto.GetValidateBudget|undefined} value
|
|
4746
|
+
* @return {!proto.CheckAvailableBudgetRequest} returns this
|
|
4747
|
+
*/
|
|
4748
|
+
proto.CheckAvailableBudgetRequest.prototype.setValidateBudget = function(value) {
|
|
4749
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4750
|
+
};
|
|
4751
|
+
|
|
4752
|
+
|
|
4753
|
+
/**
|
|
4754
|
+
* Clears the message field making it undefined.
|
|
4755
|
+
* @return {!proto.CheckAvailableBudgetRequest} returns this
|
|
4756
|
+
*/
|
|
4757
|
+
proto.CheckAvailableBudgetRequest.prototype.clearValidateBudget = function() {
|
|
4758
|
+
return this.setValidateBudget(undefined);
|
|
4759
|
+
};
|
|
4760
|
+
|
|
4761
|
+
|
|
4762
|
+
/**
|
|
4763
|
+
* Returns whether this field is set.
|
|
4764
|
+
* @return {boolean}
|
|
4765
|
+
*/
|
|
4766
|
+
proto.CheckAvailableBudgetRequest.prototype.hasValidateBudget = function() {
|
|
4767
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4768
|
+
};
|
|
4769
|
+
|
|
4770
|
+
|
|
4771
|
+
/**
|
|
4772
|
+
* repeated ItemTransaction item_transactions = 2;
|
|
4773
|
+
* @return {!Array<!proto.ItemTransaction>}
|
|
4774
|
+
*/
|
|
4775
|
+
proto.CheckAvailableBudgetRequest.prototype.getItemTransactionsList = function() {
|
|
4776
|
+
return /** @type{!Array<!proto.ItemTransaction>} */ (
|
|
4777
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 2));
|
|
4778
|
+
};
|
|
4779
|
+
|
|
4780
|
+
|
|
4781
|
+
/**
|
|
4782
|
+
* @param {!Array<!proto.ItemTransaction>} value
|
|
4783
|
+
* @return {!proto.CheckAvailableBudgetRequest} returns this
|
|
4784
|
+
*/
|
|
4785
|
+
proto.CheckAvailableBudgetRequest.prototype.setItemTransactionsList = function(value) {
|
|
4786
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
4787
|
+
};
|
|
4788
|
+
|
|
4789
|
+
|
|
4790
|
+
/**
|
|
4791
|
+
* @param {!proto.ItemTransaction=} opt_value
|
|
4792
|
+
* @param {number=} opt_index
|
|
4793
|
+
* @return {!proto.ItemTransaction}
|
|
4794
|
+
*/
|
|
4795
|
+
proto.CheckAvailableBudgetRequest.prototype.addItemTransactions = function(opt_value, opt_index) {
|
|
4796
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ItemTransaction, opt_index);
|
|
4797
|
+
};
|
|
4798
|
+
|
|
4799
|
+
|
|
4800
|
+
/**
|
|
4801
|
+
* Clears the list making it empty but non-null.
|
|
4802
|
+
* @return {!proto.CheckAvailableBudgetRequest} returns this
|
|
4803
|
+
*/
|
|
4804
|
+
proto.CheckAvailableBudgetRequest.prototype.clearItemTransactionsList = function() {
|
|
4805
|
+
return this.setItemTransactionsList([]);
|
|
4806
|
+
};
|
|
4807
|
+
|
|
4808
|
+
|
|
4809
|
+
|
|
4810
|
+
|
|
4811
|
+
|
|
4812
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4813
|
+
/**
|
|
4814
|
+
* Creates an object representation of this proto.
|
|
4815
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4816
|
+
* Optional fields that are not set will be set to undefined.
|
|
4817
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4818
|
+
* For the list of reserved names please see:
|
|
4819
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4820
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4821
|
+
* JSPB instance for transitional soy proto support:
|
|
4822
|
+
* http://goto/soy-param-migration
|
|
4823
|
+
* @return {!Object}
|
|
4824
|
+
*/
|
|
4825
|
+
proto.CheckAvailableBudgetResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4826
|
+
return proto.CheckAvailableBudgetResponse.toObject(opt_includeInstance, this);
|
|
4827
|
+
};
|
|
4828
|
+
|
|
4829
|
+
|
|
4830
|
+
/**
|
|
4831
|
+
* Static version of the {@see toObject} method.
|
|
4832
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4833
|
+
* the JSPB instance for transitional soy proto support:
|
|
4834
|
+
* http://goto/soy-param-migration
|
|
4835
|
+
* @param {!proto.CheckAvailableBudgetResponse} msg The msg instance to transform.
|
|
4836
|
+
* @return {!Object}
|
|
4837
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4838
|
+
*/
|
|
4839
|
+
proto.CheckAvailableBudgetResponse.toObject = function(includeInstance, msg) {
|
|
4840
|
+
var f, obj = {
|
|
4841
|
+
year: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4842
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4843
|
+
remaining: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
4844
|
+
};
|
|
4845
|
+
|
|
4846
|
+
if (includeInstance) {
|
|
4847
|
+
obj.$jspbMessageInstance = msg;
|
|
4848
|
+
}
|
|
4849
|
+
return obj;
|
|
4850
|
+
};
|
|
4851
|
+
}
|
|
4852
|
+
|
|
4853
|
+
|
|
4854
|
+
/**
|
|
4855
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4856
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4857
|
+
* @return {!proto.CheckAvailableBudgetResponse}
|
|
4858
|
+
*/
|
|
4859
|
+
proto.CheckAvailableBudgetResponse.deserializeBinary = function(bytes) {
|
|
4860
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4861
|
+
var msg = new proto.CheckAvailableBudgetResponse;
|
|
4862
|
+
return proto.CheckAvailableBudgetResponse.deserializeBinaryFromReader(msg, reader);
|
|
4863
|
+
};
|
|
4864
|
+
|
|
4865
|
+
|
|
4866
|
+
/**
|
|
4867
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4868
|
+
* given reader into the given message object.
|
|
4869
|
+
* @param {!proto.CheckAvailableBudgetResponse} msg The message object to deserialize into.
|
|
4870
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4871
|
+
* @return {!proto.CheckAvailableBudgetResponse}
|
|
4872
|
+
*/
|
|
4873
|
+
proto.CheckAvailableBudgetResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4874
|
+
while (reader.nextField()) {
|
|
4875
|
+
if (reader.isEndGroup()) {
|
|
4876
|
+
break;
|
|
4877
|
+
}
|
|
4878
|
+
var field = reader.getFieldNumber();
|
|
4879
|
+
switch (field) {
|
|
4880
|
+
case 1:
|
|
4881
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4882
|
+
msg.setYear(value);
|
|
4883
|
+
break;
|
|
4884
|
+
case 2:
|
|
4885
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4886
|
+
msg.setCode(value);
|
|
4887
|
+
break;
|
|
4888
|
+
case 3:
|
|
4889
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4890
|
+
msg.setRemaining(value);
|
|
4891
|
+
break;
|
|
4892
|
+
default:
|
|
4893
|
+
reader.skipField();
|
|
4894
|
+
break;
|
|
4895
|
+
}
|
|
4896
|
+
}
|
|
4897
|
+
return msg;
|
|
4898
|
+
};
|
|
4899
|
+
|
|
4900
|
+
|
|
4901
|
+
/**
|
|
4902
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4903
|
+
* @return {!Uint8Array}
|
|
4904
|
+
*/
|
|
4905
|
+
proto.CheckAvailableBudgetResponse.prototype.serializeBinary = function() {
|
|
4906
|
+
var writer = new jspb.BinaryWriter();
|
|
4907
|
+
proto.CheckAvailableBudgetResponse.serializeBinaryToWriter(this, writer);
|
|
4908
|
+
return writer.getResultBuffer();
|
|
4909
|
+
};
|
|
4910
|
+
|
|
4911
|
+
|
|
4912
|
+
/**
|
|
4913
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4914
|
+
* format), writing to the given BinaryWriter.
|
|
4915
|
+
* @param {!proto.CheckAvailableBudgetResponse} message
|
|
4916
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4917
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4918
|
+
*/
|
|
4919
|
+
proto.CheckAvailableBudgetResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4920
|
+
var f = undefined;
|
|
4921
|
+
f = message.getYear();
|
|
4922
|
+
if (f.length > 0) {
|
|
4923
|
+
writer.writeString(
|
|
4924
|
+
1,
|
|
4925
|
+
f
|
|
4926
|
+
);
|
|
4927
|
+
}
|
|
4928
|
+
f = message.getCode();
|
|
4929
|
+
if (f.length > 0) {
|
|
4930
|
+
writer.writeString(
|
|
4931
|
+
2,
|
|
4932
|
+
f
|
|
4933
|
+
);
|
|
4934
|
+
}
|
|
4935
|
+
f = message.getRemaining();
|
|
4936
|
+
if (f.length > 0) {
|
|
4937
|
+
writer.writeString(
|
|
4938
|
+
3,
|
|
4939
|
+
f
|
|
4940
|
+
);
|
|
4941
|
+
}
|
|
4942
|
+
};
|
|
4943
|
+
|
|
4944
|
+
|
|
4945
|
+
/**
|
|
4946
|
+
* optional string year = 1;
|
|
4947
|
+
* @return {string}
|
|
4948
|
+
*/
|
|
4949
|
+
proto.CheckAvailableBudgetResponse.prototype.getYear = function() {
|
|
4950
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4951
|
+
};
|
|
4952
|
+
|
|
4953
|
+
|
|
4954
|
+
/**
|
|
4955
|
+
* @param {string} value
|
|
4956
|
+
* @return {!proto.CheckAvailableBudgetResponse} returns this
|
|
4957
|
+
*/
|
|
4958
|
+
proto.CheckAvailableBudgetResponse.prototype.setYear = function(value) {
|
|
4959
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4960
|
+
};
|
|
4961
|
+
|
|
4962
|
+
|
|
4963
|
+
/**
|
|
4964
|
+
* optional string code = 2;
|
|
4965
|
+
* @return {string}
|
|
4966
|
+
*/
|
|
4967
|
+
proto.CheckAvailableBudgetResponse.prototype.getCode = function() {
|
|
4968
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4969
|
+
};
|
|
4970
|
+
|
|
4971
|
+
|
|
4972
|
+
/**
|
|
4973
|
+
* @param {string} value
|
|
4974
|
+
* @return {!proto.CheckAvailableBudgetResponse} returns this
|
|
4975
|
+
*/
|
|
4976
|
+
proto.CheckAvailableBudgetResponse.prototype.setCode = function(value) {
|
|
4977
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4978
|
+
};
|
|
4979
|
+
|
|
4980
|
+
|
|
4981
|
+
/**
|
|
4982
|
+
* optional string remaining = 3;
|
|
4983
|
+
* @return {string}
|
|
4984
|
+
*/
|
|
4985
|
+
proto.CheckAvailableBudgetResponse.prototype.getRemaining = function() {
|
|
4986
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4987
|
+
};
|
|
4988
|
+
|
|
4989
|
+
|
|
4990
|
+
/**
|
|
4991
|
+
* @param {string} value
|
|
4992
|
+
* @return {!proto.CheckAvailableBudgetResponse} returns this
|
|
4993
|
+
*/
|
|
4994
|
+
proto.CheckAvailableBudgetResponse.prototype.setRemaining = function(value) {
|
|
4995
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
4996
|
+
};
|
|
4997
|
+
|
|
4998
|
+
|
|
4999
|
+
|
|
5000
|
+
/**
|
|
5001
|
+
* List of repeated fields within this message type.
|
|
5002
|
+
* @private {!Array<number>}
|
|
5003
|
+
* @const
|
|
5004
|
+
*/
|
|
5005
|
+
proto.GetReportResponse.repeatedFields_ = [1];
|
|
5006
|
+
|
|
5007
|
+
|
|
5008
|
+
|
|
5009
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5010
|
+
/**
|
|
5011
|
+
* Creates an object representation of this proto.
|
|
5012
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5013
|
+
* Optional fields that are not set will be set to undefined.
|
|
5014
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5015
|
+
* For the list of reserved names please see:
|
|
5016
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5017
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5018
|
+
* JSPB instance for transitional soy proto support:
|
|
5019
|
+
* http://goto/soy-param-migration
|
|
5020
|
+
* @return {!Object}
|
|
5021
|
+
*/
|
|
5022
|
+
proto.GetReportResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5023
|
+
return proto.GetReportResponse.toObject(opt_includeInstance, this);
|
|
5024
|
+
};
|
|
5025
|
+
|
|
5026
|
+
|
|
5027
|
+
/**
|
|
5028
|
+
* Static version of the {@see toObject} method.
|
|
5029
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5030
|
+
* the JSPB instance for transitional soy proto support:
|
|
5031
|
+
* http://goto/soy-param-migration
|
|
5032
|
+
* @param {!proto.GetReportResponse} msg The msg instance to transform.
|
|
5033
|
+
* @return {!Object}
|
|
5034
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5035
|
+
*/
|
|
5036
|
+
proto.GetReportResponse.toObject = function(includeInstance, msg) {
|
|
5037
|
+
var f, obj = {
|
|
5038
|
+
transactionsList: jspb.Message.toObjectList(msg.getTransactionsList(),
|
|
5039
|
+
proto.GroupTransactionBudget.toObject, includeInstance)
|
|
5040
|
+
};
|
|
5041
|
+
|
|
5042
|
+
if (includeInstance) {
|
|
5043
|
+
obj.$jspbMessageInstance = msg;
|
|
5044
|
+
}
|
|
5045
|
+
return obj;
|
|
5046
|
+
};
|
|
5047
|
+
}
|
|
5048
|
+
|
|
5049
|
+
|
|
5050
|
+
/**
|
|
5051
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5052
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5053
|
+
* @return {!proto.GetReportResponse}
|
|
5054
|
+
*/
|
|
5055
|
+
proto.GetReportResponse.deserializeBinary = function(bytes) {
|
|
5056
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5057
|
+
var msg = new proto.GetReportResponse;
|
|
5058
|
+
return proto.GetReportResponse.deserializeBinaryFromReader(msg, reader);
|
|
5059
|
+
};
|
|
5060
|
+
|
|
5061
|
+
|
|
5062
|
+
/**
|
|
5063
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5064
|
+
* given reader into the given message object.
|
|
5065
|
+
* @param {!proto.GetReportResponse} msg The message object to deserialize into.
|
|
5066
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5067
|
+
* @return {!proto.GetReportResponse}
|
|
5068
|
+
*/
|
|
5069
|
+
proto.GetReportResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5070
|
+
while (reader.nextField()) {
|
|
5071
|
+
if (reader.isEndGroup()) {
|
|
5072
|
+
break;
|
|
5073
|
+
}
|
|
5074
|
+
var field = reader.getFieldNumber();
|
|
5075
|
+
switch (field) {
|
|
5076
|
+
case 1:
|
|
5077
|
+
var value = new proto.GroupTransactionBudget;
|
|
5078
|
+
reader.readMessage(value,proto.GroupTransactionBudget.deserializeBinaryFromReader);
|
|
5079
|
+
msg.addTransactions(value);
|
|
5080
|
+
break;
|
|
5081
|
+
default:
|
|
5082
|
+
reader.skipField();
|
|
5083
|
+
break;
|
|
5084
|
+
}
|
|
5085
|
+
}
|
|
5086
|
+
return msg;
|
|
5087
|
+
};
|
|
5088
|
+
|
|
5089
|
+
|
|
5090
|
+
/**
|
|
5091
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5092
|
+
* @return {!Uint8Array}
|
|
5093
|
+
*/
|
|
5094
|
+
proto.GetReportResponse.prototype.serializeBinary = function() {
|
|
5095
|
+
var writer = new jspb.BinaryWriter();
|
|
5096
|
+
proto.GetReportResponse.serializeBinaryToWriter(this, writer);
|
|
5097
|
+
return writer.getResultBuffer();
|
|
5098
|
+
};
|
|
5099
|
+
|
|
5100
|
+
|
|
5101
|
+
/**
|
|
5102
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5103
|
+
* format), writing to the given BinaryWriter.
|
|
5104
|
+
* @param {!proto.GetReportResponse} message
|
|
5105
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5106
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5107
|
+
*/
|
|
5108
|
+
proto.GetReportResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5109
|
+
var f = undefined;
|
|
5110
|
+
f = message.getTransactionsList();
|
|
5111
|
+
if (f.length > 0) {
|
|
5112
|
+
writer.writeRepeatedMessage(
|
|
5113
|
+
1,
|
|
5114
|
+
f,
|
|
5115
|
+
proto.GroupTransactionBudget.serializeBinaryToWriter
|
|
5116
|
+
);
|
|
5117
|
+
}
|
|
5118
|
+
};
|
|
5119
|
+
|
|
5120
|
+
|
|
5121
|
+
/**
|
|
5122
|
+
* repeated GroupTransactionBudget transactions = 1;
|
|
5123
|
+
* @return {!Array<!proto.GroupTransactionBudget>}
|
|
5124
|
+
*/
|
|
5125
|
+
proto.GetReportResponse.prototype.getTransactionsList = function() {
|
|
5126
|
+
return /** @type{!Array<!proto.GroupTransactionBudget>} */ (
|
|
5127
|
+
jspb.Message.getRepeatedWrapperField(this, proto.GroupTransactionBudget, 1));
|
|
5128
|
+
};
|
|
5129
|
+
|
|
5130
|
+
|
|
5131
|
+
/**
|
|
5132
|
+
* @param {!Array<!proto.GroupTransactionBudget>} value
|
|
5133
|
+
* @return {!proto.GetReportResponse} returns this
|
|
5134
|
+
*/
|
|
5135
|
+
proto.GetReportResponse.prototype.setTransactionsList = function(value) {
|
|
5136
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
5137
|
+
};
|
|
5138
|
+
|
|
5139
|
+
|
|
5140
|
+
/**
|
|
5141
|
+
* @param {!proto.GroupTransactionBudget=} opt_value
|
|
5142
|
+
* @param {number=} opt_index
|
|
5143
|
+
* @return {!proto.GroupTransactionBudget}
|
|
5144
|
+
*/
|
|
5145
|
+
proto.GetReportResponse.prototype.addTransactions = function(opt_value, opt_index) {
|
|
5146
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.GroupTransactionBudget, opt_index);
|
|
5147
|
+
};
|
|
5148
|
+
|
|
5149
|
+
|
|
5150
|
+
/**
|
|
5151
|
+
* Clears the list making it empty but non-null.
|
|
5152
|
+
* @return {!proto.GetReportResponse} returns this
|
|
5153
|
+
*/
|
|
5154
|
+
proto.GetReportResponse.prototype.clearTransactionsList = function() {
|
|
5155
|
+
return this.setTransactionsList([]);
|
|
5156
|
+
};
|
|
5157
|
+
|
|
5158
|
+
|
|
5159
|
+
|
|
5160
|
+
|
|
5161
|
+
|
|
5162
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5163
|
+
/**
|
|
5164
|
+
* Creates an object representation of this proto.
|
|
5165
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5166
|
+
* Optional fields that are not set will be set to undefined.
|
|
5167
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5168
|
+
* For the list of reserved names please see:
|
|
5169
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5170
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5171
|
+
* JSPB instance for transitional soy proto support:
|
|
5172
|
+
* http://goto/soy-param-migration
|
|
5173
|
+
* @return {!Object}
|
|
5174
|
+
*/
|
|
5175
|
+
proto.DetailAccountId.prototype.toObject = function(opt_includeInstance) {
|
|
5176
|
+
return proto.DetailAccountId.toObject(opt_includeInstance, this);
|
|
5177
|
+
};
|
|
5178
|
+
|
|
5179
|
+
|
|
5180
|
+
/**
|
|
5181
|
+
* Static version of the {@see toObject} method.
|
|
5182
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5183
|
+
* the JSPB instance for transitional soy proto support:
|
|
5184
|
+
* http://goto/soy-param-migration
|
|
5185
|
+
* @param {!proto.DetailAccountId} msg The msg instance to transform.
|
|
5186
|
+
* @return {!Object}
|
|
5187
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5188
|
+
*/
|
|
5189
|
+
proto.DetailAccountId.toObject = function(includeInstance, msg) {
|
|
5190
|
+
var f, obj = {
|
|
5191
|
+
accountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5192
|
+
itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5193
|
+
};
|
|
5194
|
+
|
|
5195
|
+
if (includeInstance) {
|
|
5196
|
+
obj.$jspbMessageInstance = msg;
|
|
5197
|
+
}
|
|
5198
|
+
return obj;
|
|
5199
|
+
};
|
|
5200
|
+
}
|
|
5201
|
+
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5205
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5206
|
+
* @return {!proto.DetailAccountId}
|
|
5207
|
+
*/
|
|
5208
|
+
proto.DetailAccountId.deserializeBinary = function(bytes) {
|
|
5209
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5210
|
+
var msg = new proto.DetailAccountId;
|
|
5211
|
+
return proto.DetailAccountId.deserializeBinaryFromReader(msg, reader);
|
|
5212
|
+
};
|
|
5213
|
+
|
|
5214
|
+
|
|
5215
|
+
/**
|
|
5216
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5217
|
+
* given reader into the given message object.
|
|
5218
|
+
* @param {!proto.DetailAccountId} msg The message object to deserialize into.
|
|
5219
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5220
|
+
* @return {!proto.DetailAccountId}
|
|
5221
|
+
*/
|
|
5222
|
+
proto.DetailAccountId.deserializeBinaryFromReader = function(msg, reader) {
|
|
5223
|
+
while (reader.nextField()) {
|
|
5224
|
+
if (reader.isEndGroup()) {
|
|
5225
|
+
break;
|
|
5226
|
+
}
|
|
5227
|
+
var field = reader.getFieldNumber();
|
|
5228
|
+
switch (field) {
|
|
5229
|
+
case 1:
|
|
5230
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5231
|
+
msg.setAccountId(value);
|
|
5232
|
+
break;
|
|
5233
|
+
case 2:
|
|
5234
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5235
|
+
msg.setItemTransactionRef(value);
|
|
5236
|
+
break;
|
|
5237
|
+
default:
|
|
5238
|
+
reader.skipField();
|
|
5239
|
+
break;
|
|
5240
|
+
}
|
|
5241
|
+
}
|
|
5242
|
+
return msg;
|
|
5243
|
+
};
|
|
5244
|
+
|
|
5245
|
+
|
|
5246
|
+
/**
|
|
5247
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5248
|
+
* @return {!Uint8Array}
|
|
5249
|
+
*/
|
|
5250
|
+
proto.DetailAccountId.prototype.serializeBinary = function() {
|
|
5251
|
+
var writer = new jspb.BinaryWriter();
|
|
5252
|
+
proto.DetailAccountId.serializeBinaryToWriter(this, writer);
|
|
5253
|
+
return writer.getResultBuffer();
|
|
5254
|
+
};
|
|
5255
|
+
|
|
5256
|
+
|
|
5257
|
+
/**
|
|
5258
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5259
|
+
* format), writing to the given BinaryWriter.
|
|
5260
|
+
* @param {!proto.DetailAccountId} message
|
|
5261
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5262
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5263
|
+
*/
|
|
5264
|
+
proto.DetailAccountId.serializeBinaryToWriter = function(message, writer) {
|
|
5265
|
+
var f = undefined;
|
|
5266
|
+
f = message.getAccountId();
|
|
5267
|
+
if (f.length > 0) {
|
|
5268
|
+
writer.writeString(
|
|
5269
|
+
1,
|
|
5270
|
+
f
|
|
5271
|
+
);
|
|
5272
|
+
}
|
|
5273
|
+
f = message.getItemTransactionRef();
|
|
5274
|
+
if (f.length > 0) {
|
|
5275
|
+
writer.writeString(
|
|
5276
|
+
2,
|
|
5277
|
+
f
|
|
5278
|
+
);
|
|
5279
|
+
}
|
|
5280
|
+
};
|
|
5281
|
+
|
|
5282
|
+
|
|
5283
|
+
/**
|
|
5284
|
+
* optional string account_id = 1;
|
|
5285
|
+
* @return {string}
|
|
5286
|
+
*/
|
|
5287
|
+
proto.DetailAccountId.prototype.getAccountId = function() {
|
|
5288
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5289
|
+
};
|
|
5290
|
+
|
|
5291
|
+
|
|
5292
|
+
/**
|
|
5293
|
+
* @param {string} value
|
|
5294
|
+
* @return {!proto.DetailAccountId} returns this
|
|
5295
|
+
*/
|
|
5296
|
+
proto.DetailAccountId.prototype.setAccountId = function(value) {
|
|
5297
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5298
|
+
};
|
|
5299
|
+
|
|
5300
|
+
|
|
5301
|
+
/**
|
|
5302
|
+
* optional string item_transaction_ref = 2;
|
|
5303
|
+
* @return {string}
|
|
5304
|
+
*/
|
|
5305
|
+
proto.DetailAccountId.prototype.getItemTransactionRef = function() {
|
|
5306
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5307
|
+
};
|
|
5308
|
+
|
|
5309
|
+
|
|
5310
|
+
/**
|
|
5311
|
+
* @param {string} value
|
|
5312
|
+
* @return {!proto.DetailAccountId} returns this
|
|
5313
|
+
*/
|
|
5314
|
+
proto.DetailAccountId.prototype.setItemTransactionRef = function(value) {
|
|
5315
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5316
|
+
};
|
|
5317
|
+
|
|
5318
|
+
|
|
5319
|
+
|
|
5320
|
+
/**
|
|
5321
|
+
* List of repeated fields within this message type.
|
|
5322
|
+
* @private {!Array<number>}
|
|
5323
|
+
* @const
|
|
5324
|
+
*/
|
|
5325
|
+
proto.ChainTransactionBudgetCode.repeatedFields_ = [18,19,20];
|
|
5326
|
+
|
|
5327
|
+
|
|
5328
|
+
|
|
5329
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5330
|
+
/**
|
|
5331
|
+
* Creates an object representation of this proto.
|
|
5332
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5333
|
+
* Optional fields that are not set will be set to undefined.
|
|
5334
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5335
|
+
* For the list of reserved names please see:
|
|
5336
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5337
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5338
|
+
* JSPB instance for transitional soy proto support:
|
|
5339
|
+
* http://goto/soy-param-migration
|
|
5340
|
+
* @return {!Object}
|
|
5341
|
+
*/
|
|
5342
|
+
proto.ChainTransactionBudgetCode.prototype.toObject = function(opt_includeInstance) {
|
|
5343
|
+
return proto.ChainTransactionBudgetCode.toObject(opt_includeInstance, this);
|
|
5344
|
+
};
|
|
5345
|
+
|
|
5346
|
+
|
|
5347
|
+
/**
|
|
5348
|
+
* Static version of the {@see toObject} method.
|
|
5349
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5350
|
+
* the JSPB instance for transitional soy proto support:
|
|
5351
|
+
* http://goto/soy-param-migration
|
|
5352
|
+
* @param {!proto.ChainTransactionBudgetCode} msg The msg instance to transform.
|
|
5353
|
+
* @return {!Object}
|
|
5354
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5355
|
+
*/
|
|
5356
|
+
proto.ChainTransactionBudgetCode.toObject = function(includeInstance, msg) {
|
|
5357
|
+
var f, obj = {
|
|
5358
|
+
estimatedUnitPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
5359
|
+
quantity: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
5360
|
+
typeTransaction: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
5361
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
5362
|
+
previousReferences: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
5363
|
+
transactionReferences: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
5364
|
+
budgetCode: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
5365
|
+
price: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
|
|
5366
|
+
level: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
5367
|
+
rootRef: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
5368
|
+
month: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
5369
|
+
budget: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
|
|
5370
|
+
documentTransaction: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
5371
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
5372
|
+
title: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
5373
|
+
generalLedger: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
5374
|
+
justification: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
5375
|
+
itemTransactionDetailList: jspb.Message.toObjectList(msg.getItemTransactionDetailList(),
|
|
5376
|
+
proto.DetailAccountId.toObject, includeInstance),
|
|
5377
|
+
childrenList: jspb.Message.toObjectList(msg.getChildrenList(),
|
|
5378
|
+
proto.ChainTransactionBudgetCode.toObject, includeInstance),
|
|
5379
|
+
itemTransactionPriceConditionList: jspb.Message.toObjectList(msg.getItemTransactionPriceConditionList(),
|
|
5380
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance)
|
|
5381
|
+
};
|
|
5382
|
+
|
|
5383
|
+
if (includeInstance) {
|
|
5384
|
+
obj.$jspbMessageInstance = msg;
|
|
5385
|
+
}
|
|
5386
|
+
return obj;
|
|
5387
|
+
};
|
|
5388
|
+
}
|
|
5389
|
+
|
|
5390
|
+
|
|
5391
|
+
/**
|
|
5392
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5393
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5394
|
+
* @return {!proto.ChainTransactionBudgetCode}
|
|
5395
|
+
*/
|
|
5396
|
+
proto.ChainTransactionBudgetCode.deserializeBinary = function(bytes) {
|
|
5397
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5398
|
+
var msg = new proto.ChainTransactionBudgetCode;
|
|
5399
|
+
return proto.ChainTransactionBudgetCode.deserializeBinaryFromReader(msg, reader);
|
|
5400
|
+
};
|
|
5401
|
+
|
|
5402
|
+
|
|
5403
|
+
/**
|
|
5404
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5405
|
+
* given reader into the given message object.
|
|
5406
|
+
* @param {!proto.ChainTransactionBudgetCode} msg The message object to deserialize into.
|
|
5407
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5408
|
+
* @return {!proto.ChainTransactionBudgetCode}
|
|
5409
|
+
*/
|
|
5410
|
+
proto.ChainTransactionBudgetCode.deserializeBinaryFromReader = function(msg, reader) {
|
|
5411
|
+
while (reader.nextField()) {
|
|
5412
|
+
if (reader.isEndGroup()) {
|
|
5413
|
+
break;
|
|
5414
|
+
}
|
|
5415
|
+
var field = reader.getFieldNumber();
|
|
5416
|
+
switch (field) {
|
|
5417
|
+
case 1:
|
|
5418
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
5419
|
+
msg.setEstimatedUnitPrice(value);
|
|
5420
|
+
break;
|
|
5421
|
+
case 2:
|
|
5422
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
5423
|
+
msg.setQuantity(value);
|
|
5424
|
+
break;
|
|
5425
|
+
case 3:
|
|
5426
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5427
|
+
msg.setTypeTransaction(value);
|
|
5428
|
+
break;
|
|
5429
|
+
case 4:
|
|
5430
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5431
|
+
msg.setReferencesId(value);
|
|
5432
|
+
break;
|
|
5433
|
+
case 5:
|
|
5434
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5435
|
+
msg.setPreviousReferences(value);
|
|
5436
|
+
break;
|
|
5437
|
+
case 6:
|
|
5438
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5439
|
+
msg.setTransactionReferences(value);
|
|
5440
|
+
break;
|
|
5441
|
+
case 7:
|
|
5442
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5443
|
+
msg.setBudgetCode(value);
|
|
5444
|
+
break;
|
|
5445
|
+
case 8:
|
|
5446
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
5447
|
+
msg.setPrice(value);
|
|
5448
|
+
break;
|
|
5449
|
+
case 9:
|
|
5450
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5451
|
+
msg.setLevel(value);
|
|
5452
|
+
break;
|
|
5453
|
+
case 10:
|
|
5454
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5455
|
+
msg.setRootRef(value);
|
|
5456
|
+
break;
|
|
5457
|
+
case 11:
|
|
5458
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5459
|
+
msg.setMonth(value);
|
|
5460
|
+
break;
|
|
5461
|
+
case 12:
|
|
5462
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
5463
|
+
msg.setBudget(value);
|
|
5464
|
+
break;
|
|
5465
|
+
case 13:
|
|
5466
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5467
|
+
msg.setDocumentTransaction(value);
|
|
5468
|
+
break;
|
|
5469
|
+
case 14:
|
|
5470
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5471
|
+
msg.setCreatedAt(value);
|
|
5472
|
+
break;
|
|
5473
|
+
case 15:
|
|
5474
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5475
|
+
msg.setTitle(value);
|
|
5476
|
+
break;
|
|
5477
|
+
case 16:
|
|
5478
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5479
|
+
msg.setGeneralLedger(value);
|
|
5480
|
+
break;
|
|
5481
|
+
case 17:
|
|
5482
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5483
|
+
msg.setJustification(value);
|
|
5484
|
+
break;
|
|
5485
|
+
case 18:
|
|
5486
|
+
var value = new proto.DetailAccountId;
|
|
5487
|
+
reader.readMessage(value,proto.DetailAccountId.deserializeBinaryFromReader);
|
|
5488
|
+
msg.addItemTransactionDetail(value);
|
|
5489
|
+
break;
|
|
5490
|
+
case 19:
|
|
5491
|
+
var value = new proto.ChainTransactionBudgetCode;
|
|
5492
|
+
reader.readMessage(value,proto.ChainTransactionBudgetCode.deserializeBinaryFromReader);
|
|
5493
|
+
msg.addChildren(value);
|
|
5494
|
+
break;
|
|
5495
|
+
case 20:
|
|
5496
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition;
|
|
5497
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.deserializeBinaryFromReader);
|
|
5498
|
+
msg.addItemTransactionPriceCondition(value);
|
|
5499
|
+
break;
|
|
5500
|
+
default:
|
|
5501
|
+
reader.skipField();
|
|
5502
|
+
break;
|
|
5503
|
+
}
|
|
5504
|
+
}
|
|
5505
|
+
return msg;
|
|
5506
|
+
};
|
|
5507
|
+
|
|
5508
|
+
|
|
5509
|
+
/**
|
|
5510
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5511
|
+
* @return {!Uint8Array}
|
|
5512
|
+
*/
|
|
5513
|
+
proto.ChainTransactionBudgetCode.prototype.serializeBinary = function() {
|
|
5514
|
+
var writer = new jspb.BinaryWriter();
|
|
5515
|
+
proto.ChainTransactionBudgetCode.serializeBinaryToWriter(this, writer);
|
|
5516
|
+
return writer.getResultBuffer();
|
|
5517
|
+
};
|
|
5518
|
+
|
|
5519
|
+
|
|
5520
|
+
/**
|
|
5521
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5522
|
+
* format), writing to the given BinaryWriter.
|
|
5523
|
+
* @param {!proto.ChainTransactionBudgetCode} message
|
|
5524
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5525
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5526
|
+
*/
|
|
5527
|
+
proto.ChainTransactionBudgetCode.serializeBinaryToWriter = function(message, writer) {
|
|
5528
|
+
var f = undefined;
|
|
5529
|
+
f = message.getEstimatedUnitPrice();
|
|
5530
|
+
if (f !== 0.0) {
|
|
5531
|
+
writer.writeDouble(
|
|
5532
|
+
1,
|
|
5533
|
+
f
|
|
5534
|
+
);
|
|
5535
|
+
}
|
|
5536
|
+
f = message.getQuantity();
|
|
5537
|
+
if (f !== 0) {
|
|
5538
|
+
writer.writeInt64(
|
|
5539
|
+
2,
|
|
5540
|
+
f
|
|
5541
|
+
);
|
|
5542
|
+
}
|
|
5543
|
+
f = message.getTypeTransaction();
|
|
5544
|
+
if (f.length > 0) {
|
|
5545
|
+
writer.writeString(
|
|
5546
|
+
3,
|
|
5547
|
+
f
|
|
5548
|
+
);
|
|
5549
|
+
}
|
|
5550
|
+
f = message.getReferencesId();
|
|
5551
|
+
if (f.length > 0) {
|
|
5552
|
+
writer.writeString(
|
|
5553
|
+
4,
|
|
5554
|
+
f
|
|
5555
|
+
);
|
|
5556
|
+
}
|
|
5557
|
+
f = message.getPreviousReferences();
|
|
5558
|
+
if (f.length > 0) {
|
|
5559
|
+
writer.writeString(
|
|
5560
|
+
5,
|
|
5561
|
+
f
|
|
5562
|
+
);
|
|
5563
|
+
}
|
|
5564
|
+
f = message.getTransactionReferences();
|
|
5565
|
+
if (f.length > 0) {
|
|
5566
|
+
writer.writeString(
|
|
5567
|
+
6,
|
|
5568
|
+
f
|
|
5569
|
+
);
|
|
5570
|
+
}
|
|
5571
|
+
f = message.getBudgetCode();
|
|
5572
|
+
if (f.length > 0) {
|
|
5573
|
+
writer.writeString(
|
|
5574
|
+
7,
|
|
5575
|
+
f
|
|
5576
|
+
);
|
|
5577
|
+
}
|
|
5578
|
+
f = message.getPrice();
|
|
5579
|
+
if (f !== 0.0) {
|
|
5580
|
+
writer.writeDouble(
|
|
5581
|
+
8,
|
|
5582
|
+
f
|
|
5583
|
+
);
|
|
5584
|
+
}
|
|
5585
|
+
f = message.getLevel();
|
|
5586
|
+
if (f !== 0) {
|
|
5587
|
+
writer.writeInt32(
|
|
5588
|
+
9,
|
|
5589
|
+
f
|
|
5590
|
+
);
|
|
5591
|
+
}
|
|
5592
|
+
f = message.getRootRef();
|
|
5593
|
+
if (f.length > 0) {
|
|
5594
|
+
writer.writeString(
|
|
5595
|
+
10,
|
|
5596
|
+
f
|
|
5597
|
+
);
|
|
5598
|
+
}
|
|
5599
|
+
f = message.getMonth();
|
|
5600
|
+
if (f.length > 0) {
|
|
5601
|
+
writer.writeString(
|
|
5602
|
+
11,
|
|
5603
|
+
f
|
|
5604
|
+
);
|
|
5605
|
+
}
|
|
5606
|
+
f = message.getBudget();
|
|
5607
|
+
if (f !== 0.0) {
|
|
5608
|
+
writer.writeDouble(
|
|
5609
|
+
12,
|
|
5610
|
+
f
|
|
5611
|
+
);
|
|
5612
|
+
}
|
|
5613
|
+
f = message.getDocumentTransaction();
|
|
5614
|
+
if (f.length > 0) {
|
|
5615
|
+
writer.writeString(
|
|
5616
|
+
13,
|
|
5617
|
+
f
|
|
5618
|
+
);
|
|
5619
|
+
}
|
|
5620
|
+
f = message.getCreatedAt();
|
|
5621
|
+
if (f.length > 0) {
|
|
5622
|
+
writer.writeString(
|
|
5623
|
+
14,
|
|
5624
|
+
f
|
|
5625
|
+
);
|
|
5626
|
+
}
|
|
5627
|
+
f = message.getTitle();
|
|
5628
|
+
if (f.length > 0) {
|
|
5629
|
+
writer.writeString(
|
|
5630
|
+
15,
|
|
5631
|
+
f
|
|
5632
|
+
);
|
|
5633
|
+
}
|
|
5634
|
+
f = message.getGeneralLedger();
|
|
5635
|
+
if (f.length > 0) {
|
|
5636
|
+
writer.writeString(
|
|
5637
|
+
16,
|
|
5638
|
+
f
|
|
5639
|
+
);
|
|
5640
|
+
}
|
|
5641
|
+
f = message.getJustification();
|
|
5642
|
+
if (f.length > 0) {
|
|
5643
|
+
writer.writeString(
|
|
5644
|
+
17,
|
|
5645
|
+
f
|
|
5646
|
+
);
|
|
5647
|
+
}
|
|
5648
|
+
f = message.getItemTransactionDetailList();
|
|
5649
|
+
if (f.length > 0) {
|
|
5650
|
+
writer.writeRepeatedMessage(
|
|
5651
|
+
18,
|
|
5652
|
+
f,
|
|
5653
|
+
proto.DetailAccountId.serializeBinaryToWriter
|
|
5654
|
+
);
|
|
5655
|
+
}
|
|
5656
|
+
f = message.getChildrenList();
|
|
5657
|
+
if (f.length > 0) {
|
|
5658
|
+
writer.writeRepeatedMessage(
|
|
5659
|
+
19,
|
|
5660
|
+
f,
|
|
5661
|
+
proto.ChainTransactionBudgetCode.serializeBinaryToWriter
|
|
5662
|
+
);
|
|
5663
|
+
}
|
|
5664
|
+
f = message.getItemTransactionPriceConditionList();
|
|
5665
|
+
if (f.length > 0) {
|
|
5666
|
+
writer.writeRepeatedMessage(
|
|
5667
|
+
20,
|
|
5668
|
+
f,
|
|
5669
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.serializeBinaryToWriter
|
|
5670
|
+
);
|
|
5671
|
+
}
|
|
5672
|
+
};
|
|
5673
|
+
|
|
5674
|
+
|
|
5675
|
+
/**
|
|
5676
|
+
* optional double estimated_unit_price = 1;
|
|
5677
|
+
* @return {number}
|
|
5678
|
+
*/
|
|
5679
|
+
proto.ChainTransactionBudgetCode.prototype.getEstimatedUnitPrice = function() {
|
|
5680
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
5681
|
+
};
|
|
5682
|
+
|
|
5683
|
+
|
|
5684
|
+
/**
|
|
5685
|
+
* @param {number} value
|
|
5686
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5687
|
+
*/
|
|
5688
|
+
proto.ChainTransactionBudgetCode.prototype.setEstimatedUnitPrice = function(value) {
|
|
5689
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
5690
|
+
};
|
|
5691
|
+
|
|
5692
|
+
|
|
5693
|
+
/**
|
|
5694
|
+
* optional int64 quantity = 2;
|
|
5695
|
+
* @return {number}
|
|
5696
|
+
*/
|
|
5697
|
+
proto.ChainTransactionBudgetCode.prototype.getQuantity = function() {
|
|
5698
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
5699
|
+
};
|
|
5700
|
+
|
|
5701
|
+
|
|
5702
|
+
/**
|
|
5703
|
+
* @param {number} value
|
|
5704
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5705
|
+
*/
|
|
5706
|
+
proto.ChainTransactionBudgetCode.prototype.setQuantity = function(value) {
|
|
5707
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
5708
|
+
};
|
|
5709
|
+
|
|
5710
|
+
|
|
5711
|
+
/**
|
|
5712
|
+
* optional string type_transaction = 3;
|
|
5713
|
+
* @return {string}
|
|
5714
|
+
*/
|
|
5715
|
+
proto.ChainTransactionBudgetCode.prototype.getTypeTransaction = function() {
|
|
5716
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
5717
|
+
};
|
|
5718
|
+
|
|
5719
|
+
|
|
5720
|
+
/**
|
|
5721
|
+
* @param {string} value
|
|
5722
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5723
|
+
*/
|
|
5724
|
+
proto.ChainTransactionBudgetCode.prototype.setTypeTransaction = function(value) {
|
|
5725
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
5726
|
+
};
|
|
5727
|
+
|
|
5728
|
+
|
|
5729
|
+
/**
|
|
5730
|
+
* optional string references_id = 4;
|
|
5731
|
+
* @return {string}
|
|
5732
|
+
*/
|
|
5733
|
+
proto.ChainTransactionBudgetCode.prototype.getReferencesId = function() {
|
|
5734
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
5735
|
+
};
|
|
5736
|
+
|
|
5737
|
+
|
|
5738
|
+
/**
|
|
5739
|
+
* @param {string} value
|
|
5740
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5741
|
+
*/
|
|
5742
|
+
proto.ChainTransactionBudgetCode.prototype.setReferencesId = function(value) {
|
|
5743
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
5744
|
+
};
|
|
5745
|
+
|
|
5746
|
+
|
|
5747
|
+
/**
|
|
5748
|
+
* optional string previous_references = 5;
|
|
5749
|
+
* @return {string}
|
|
5750
|
+
*/
|
|
5751
|
+
proto.ChainTransactionBudgetCode.prototype.getPreviousReferences = function() {
|
|
5752
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
5753
|
+
};
|
|
5754
|
+
|
|
5755
|
+
|
|
5756
|
+
/**
|
|
5757
|
+
* @param {string} value
|
|
5758
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5759
|
+
*/
|
|
5760
|
+
proto.ChainTransactionBudgetCode.prototype.setPreviousReferences = function(value) {
|
|
5761
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
5762
|
+
};
|
|
5763
|
+
|
|
5764
|
+
|
|
5765
|
+
/**
|
|
5766
|
+
* optional string transaction_references = 6;
|
|
5767
|
+
* @return {string}
|
|
5768
|
+
*/
|
|
5769
|
+
proto.ChainTransactionBudgetCode.prototype.getTransactionReferences = function() {
|
|
5770
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
5771
|
+
};
|
|
5772
|
+
|
|
5773
|
+
|
|
5774
|
+
/**
|
|
5775
|
+
* @param {string} value
|
|
5776
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5777
|
+
*/
|
|
5778
|
+
proto.ChainTransactionBudgetCode.prototype.setTransactionReferences = function(value) {
|
|
5779
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
5780
|
+
};
|
|
5781
|
+
|
|
5782
|
+
|
|
5783
|
+
/**
|
|
5784
|
+
* optional string budget_code = 7;
|
|
5785
|
+
* @return {string}
|
|
5786
|
+
*/
|
|
5787
|
+
proto.ChainTransactionBudgetCode.prototype.getBudgetCode = function() {
|
|
5788
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
5789
|
+
};
|
|
5790
|
+
|
|
5791
|
+
|
|
5792
|
+
/**
|
|
5793
|
+
* @param {string} value
|
|
5794
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5795
|
+
*/
|
|
5796
|
+
proto.ChainTransactionBudgetCode.prototype.setBudgetCode = function(value) {
|
|
5797
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
5798
|
+
};
|
|
5799
|
+
|
|
5800
|
+
|
|
5801
|
+
/**
|
|
5802
|
+
* optional double price = 8;
|
|
5803
|
+
* @return {number}
|
|
5804
|
+
*/
|
|
5805
|
+
proto.ChainTransactionBudgetCode.prototype.getPrice = function() {
|
|
5806
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
|
|
5807
|
+
};
|
|
5808
|
+
|
|
5809
|
+
|
|
5810
|
+
/**
|
|
5811
|
+
* @param {number} value
|
|
5812
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5813
|
+
*/
|
|
5814
|
+
proto.ChainTransactionBudgetCode.prototype.setPrice = function(value) {
|
|
5815
|
+
return jspb.Message.setProto3FloatField(this, 8, value);
|
|
5816
|
+
};
|
|
5817
|
+
|
|
5818
|
+
|
|
5819
|
+
/**
|
|
5820
|
+
* optional int32 level = 9;
|
|
5821
|
+
* @return {number}
|
|
5822
|
+
*/
|
|
5823
|
+
proto.ChainTransactionBudgetCode.prototype.getLevel = function() {
|
|
5824
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
5825
|
+
};
|
|
5826
|
+
|
|
5827
|
+
|
|
5828
|
+
/**
|
|
5829
|
+
* @param {number} value
|
|
5830
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5831
|
+
*/
|
|
5832
|
+
proto.ChainTransactionBudgetCode.prototype.setLevel = function(value) {
|
|
5833
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
5834
|
+
};
|
|
5835
|
+
|
|
5836
|
+
|
|
5837
|
+
/**
|
|
5838
|
+
* optional string root_ref = 10;
|
|
5839
|
+
* @return {string}
|
|
5840
|
+
*/
|
|
5841
|
+
proto.ChainTransactionBudgetCode.prototype.getRootRef = function() {
|
|
5842
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
5843
|
+
};
|
|
5844
|
+
|
|
5845
|
+
|
|
5846
|
+
/**
|
|
5847
|
+
* @param {string} value
|
|
5848
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5849
|
+
*/
|
|
5850
|
+
proto.ChainTransactionBudgetCode.prototype.setRootRef = function(value) {
|
|
5851
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
5852
|
+
};
|
|
5853
|
+
|
|
5854
|
+
|
|
5855
|
+
/**
|
|
5856
|
+
* optional string month = 11;
|
|
5857
|
+
* @return {string}
|
|
5858
|
+
*/
|
|
5859
|
+
proto.ChainTransactionBudgetCode.prototype.getMonth = function() {
|
|
5860
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
5861
|
+
};
|
|
5862
|
+
|
|
5863
|
+
|
|
5864
|
+
/**
|
|
5865
|
+
* @param {string} value
|
|
5866
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5867
|
+
*/
|
|
5868
|
+
proto.ChainTransactionBudgetCode.prototype.setMonth = function(value) {
|
|
5869
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
5870
|
+
};
|
|
5871
|
+
|
|
5872
|
+
|
|
5873
|
+
/**
|
|
5874
|
+
* optional double budget = 12;
|
|
5875
|
+
* @return {number}
|
|
5876
|
+
*/
|
|
5877
|
+
proto.ChainTransactionBudgetCode.prototype.getBudget = function() {
|
|
5878
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
|
|
5879
|
+
};
|
|
5880
|
+
|
|
5881
|
+
|
|
5882
|
+
/**
|
|
5883
|
+
* @param {number} value
|
|
5884
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5885
|
+
*/
|
|
5886
|
+
proto.ChainTransactionBudgetCode.prototype.setBudget = function(value) {
|
|
5887
|
+
return jspb.Message.setProto3FloatField(this, 12, value);
|
|
5888
|
+
};
|
|
5889
|
+
|
|
5890
|
+
|
|
5891
|
+
/**
|
|
5892
|
+
* optional string document_transaction = 13;
|
|
5893
|
+
* @return {string}
|
|
5894
|
+
*/
|
|
5895
|
+
proto.ChainTransactionBudgetCode.prototype.getDocumentTransaction = function() {
|
|
5896
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
5897
|
+
};
|
|
5898
|
+
|
|
5899
|
+
|
|
5900
|
+
/**
|
|
5901
|
+
* @param {string} value
|
|
5902
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5903
|
+
*/
|
|
5904
|
+
proto.ChainTransactionBudgetCode.prototype.setDocumentTransaction = function(value) {
|
|
5905
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
5906
|
+
};
|
|
5907
|
+
|
|
5908
|
+
|
|
5909
|
+
/**
|
|
5910
|
+
* optional string created_at = 14;
|
|
5911
|
+
* @return {string}
|
|
5912
|
+
*/
|
|
5913
|
+
proto.ChainTransactionBudgetCode.prototype.getCreatedAt = function() {
|
|
5914
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
5915
|
+
};
|
|
5916
|
+
|
|
5917
|
+
|
|
5918
|
+
/**
|
|
5919
|
+
* @param {string} value
|
|
5920
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5921
|
+
*/
|
|
5922
|
+
proto.ChainTransactionBudgetCode.prototype.setCreatedAt = function(value) {
|
|
5923
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
5924
|
+
};
|
|
5925
|
+
|
|
5926
|
+
|
|
5927
|
+
/**
|
|
5928
|
+
* optional string title = 15;
|
|
5929
|
+
* @return {string}
|
|
5930
|
+
*/
|
|
5931
|
+
proto.ChainTransactionBudgetCode.prototype.getTitle = function() {
|
|
5932
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
5933
|
+
};
|
|
5934
|
+
|
|
5935
|
+
|
|
5936
|
+
/**
|
|
5937
|
+
* @param {string} value
|
|
5938
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5939
|
+
*/
|
|
5940
|
+
proto.ChainTransactionBudgetCode.prototype.setTitle = function(value) {
|
|
5941
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
5942
|
+
};
|
|
5943
|
+
|
|
5944
|
+
|
|
5945
|
+
/**
|
|
5946
|
+
* optional string general_ledger = 16;
|
|
5947
|
+
* @return {string}
|
|
5948
|
+
*/
|
|
5949
|
+
proto.ChainTransactionBudgetCode.prototype.getGeneralLedger = function() {
|
|
5950
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
|
|
5951
|
+
};
|
|
5952
|
+
|
|
5953
|
+
|
|
5954
|
+
/**
|
|
5955
|
+
* @param {string} value
|
|
5956
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5957
|
+
*/
|
|
5958
|
+
proto.ChainTransactionBudgetCode.prototype.setGeneralLedger = function(value) {
|
|
5959
|
+
return jspb.Message.setProto3StringField(this, 16, value);
|
|
5960
|
+
};
|
|
5961
|
+
|
|
5962
|
+
|
|
5963
|
+
/**
|
|
5964
|
+
* optional string justification = 17;
|
|
5965
|
+
* @return {string}
|
|
5966
|
+
*/
|
|
5967
|
+
proto.ChainTransactionBudgetCode.prototype.getJustification = function() {
|
|
5968
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
5969
|
+
};
|
|
5970
|
+
|
|
5971
|
+
|
|
5972
|
+
/**
|
|
5973
|
+
* @param {string} value
|
|
5974
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5975
|
+
*/
|
|
5976
|
+
proto.ChainTransactionBudgetCode.prototype.setJustification = function(value) {
|
|
5977
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
5978
|
+
};
|
|
5979
|
+
|
|
5980
|
+
|
|
5981
|
+
/**
|
|
5982
|
+
* repeated DetailAccountId item_transaction_detail = 18;
|
|
5983
|
+
* @return {!Array<!proto.DetailAccountId>}
|
|
5984
|
+
*/
|
|
5985
|
+
proto.ChainTransactionBudgetCode.prototype.getItemTransactionDetailList = function() {
|
|
5986
|
+
return /** @type{!Array<!proto.DetailAccountId>} */ (
|
|
5987
|
+
jspb.Message.getRepeatedWrapperField(this, proto.DetailAccountId, 18));
|
|
5988
|
+
};
|
|
5989
|
+
|
|
5990
|
+
|
|
5991
|
+
/**
|
|
5992
|
+
* @param {!Array<!proto.DetailAccountId>} value
|
|
5993
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
5994
|
+
*/
|
|
5995
|
+
proto.ChainTransactionBudgetCode.prototype.setItemTransactionDetailList = function(value) {
|
|
5996
|
+
return jspb.Message.setRepeatedWrapperField(this, 18, value);
|
|
5997
|
+
};
|
|
5998
|
+
|
|
5999
|
+
|
|
6000
|
+
/**
|
|
6001
|
+
* @param {!proto.DetailAccountId=} opt_value
|
|
6002
|
+
* @param {number=} opt_index
|
|
6003
|
+
* @return {!proto.DetailAccountId}
|
|
6004
|
+
*/
|
|
6005
|
+
proto.ChainTransactionBudgetCode.prototype.addItemTransactionDetail = function(opt_value, opt_index) {
|
|
6006
|
+
return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.DetailAccountId, opt_index);
|
|
6007
|
+
};
|
|
6008
|
+
|
|
6009
|
+
|
|
6010
|
+
/**
|
|
6011
|
+
* Clears the list making it empty but non-null.
|
|
6012
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
6013
|
+
*/
|
|
6014
|
+
proto.ChainTransactionBudgetCode.prototype.clearItemTransactionDetailList = function() {
|
|
6015
|
+
return this.setItemTransactionDetailList([]);
|
|
6016
|
+
};
|
|
6017
|
+
|
|
6018
|
+
|
|
6019
|
+
/**
|
|
6020
|
+
* repeated ChainTransactionBudgetCode children = 19;
|
|
6021
|
+
* @return {!Array<!proto.ChainTransactionBudgetCode>}
|
|
6022
|
+
*/
|
|
6023
|
+
proto.ChainTransactionBudgetCode.prototype.getChildrenList = function() {
|
|
6024
|
+
return /** @type{!Array<!proto.ChainTransactionBudgetCode>} */ (
|
|
6025
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ChainTransactionBudgetCode, 19));
|
|
6026
|
+
};
|
|
6027
|
+
|
|
6028
|
+
|
|
6029
|
+
/**
|
|
6030
|
+
* @param {!Array<!proto.ChainTransactionBudgetCode>} value
|
|
6031
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
6032
|
+
*/
|
|
6033
|
+
proto.ChainTransactionBudgetCode.prototype.setChildrenList = function(value) {
|
|
6034
|
+
return jspb.Message.setRepeatedWrapperField(this, 19, value);
|
|
6035
|
+
};
|
|
6036
|
+
|
|
6037
|
+
|
|
6038
|
+
/**
|
|
6039
|
+
* @param {!proto.ChainTransactionBudgetCode=} opt_value
|
|
6040
|
+
* @param {number=} opt_index
|
|
6041
|
+
* @return {!proto.ChainTransactionBudgetCode}
|
|
6042
|
+
*/
|
|
6043
|
+
proto.ChainTransactionBudgetCode.prototype.addChildren = function(opt_value, opt_index) {
|
|
6044
|
+
return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.ChainTransactionBudgetCode, opt_index);
|
|
6045
|
+
};
|
|
6046
|
+
|
|
6047
|
+
|
|
6048
|
+
/**
|
|
6049
|
+
* Clears the list making it empty but non-null.
|
|
6050
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
6051
|
+
*/
|
|
6052
|
+
proto.ChainTransactionBudgetCode.prototype.clearChildrenList = function() {
|
|
6053
|
+
return this.setChildrenList([]);
|
|
6054
|
+
};
|
|
6055
|
+
|
|
6056
|
+
|
|
6057
|
+
/**
|
|
6058
|
+
* repeated ItemTransactionPriceCondition item_transaction_price_condition = 20;
|
|
6059
|
+
* @return {!Array<!proto.ItemTransactionPriceCondition>}
|
|
6060
|
+
*/
|
|
6061
|
+
proto.ChainTransactionBudgetCode.prototype.getItemTransactionPriceConditionList = function() {
|
|
6062
|
+
return /** @type{!Array<!proto.ItemTransactionPriceCondition>} */ (
|
|
6063
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition, 20));
|
|
6064
|
+
};
|
|
6065
|
+
|
|
6066
|
+
|
|
6067
|
+
/**
|
|
6068
|
+
* @param {!Array<!proto.ItemTransactionPriceCondition>} value
|
|
6069
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
6070
|
+
*/
|
|
6071
|
+
proto.ChainTransactionBudgetCode.prototype.setItemTransactionPriceConditionList = function(value) {
|
|
6072
|
+
return jspb.Message.setRepeatedWrapperField(this, 20, value);
|
|
6073
|
+
};
|
|
6074
|
+
|
|
6075
|
+
|
|
6076
|
+
/**
|
|
6077
|
+
* @param {!proto.ItemTransactionPriceCondition=} opt_value
|
|
6078
|
+
* @param {number=} opt_index
|
|
6079
|
+
* @return {!proto.ItemTransactionPriceCondition}
|
|
6080
|
+
*/
|
|
6081
|
+
proto.ChainTransactionBudgetCode.prototype.addItemTransactionPriceCondition = function(opt_value, opt_index) {
|
|
6082
|
+
return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.ItemTransactionPriceCondition, opt_index);
|
|
6083
|
+
};
|
|
6084
|
+
|
|
6085
|
+
|
|
6086
|
+
/**
|
|
6087
|
+
* Clears the list making it empty but non-null.
|
|
6088
|
+
* @return {!proto.ChainTransactionBudgetCode} returns this
|
|
6089
|
+
*/
|
|
6090
|
+
proto.ChainTransactionBudgetCode.prototype.clearItemTransactionPriceConditionList = function() {
|
|
6091
|
+
return this.setItemTransactionPriceConditionList([]);
|
|
6092
|
+
};
|
|
6093
|
+
|
|
6094
|
+
|
|
6095
|
+
|
|
6096
|
+
/**
|
|
6097
|
+
* List of repeated fields within this message type.
|
|
6098
|
+
* @private {!Array<number>}
|
|
6099
|
+
* @const
|
|
6100
|
+
*/
|
|
6101
|
+
proto.GroupTransactionBudget.repeatedFields_ = [3];
|
|
6102
|
+
|
|
6103
|
+
|
|
6104
|
+
|
|
6105
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6106
|
+
/**
|
|
6107
|
+
* Creates an object representation of this proto.
|
|
6108
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6109
|
+
* Optional fields that are not set will be set to undefined.
|
|
6110
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6111
|
+
* For the list of reserved names please see:
|
|
6112
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6113
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6114
|
+
* JSPB instance for transitional soy proto support:
|
|
6115
|
+
* http://goto/soy-param-migration
|
|
6116
|
+
* @return {!Object}
|
|
6117
|
+
*/
|
|
6118
|
+
proto.GroupTransactionBudget.prototype.toObject = function(opt_includeInstance) {
|
|
6119
|
+
return proto.GroupTransactionBudget.toObject(opt_includeInstance, this);
|
|
6120
|
+
};
|
|
6121
|
+
|
|
6122
|
+
|
|
6123
|
+
/**
|
|
6124
|
+
* Static version of the {@see toObject} method.
|
|
6125
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6126
|
+
* the JSPB instance for transitional soy proto support:
|
|
6127
|
+
* http://goto/soy-param-migration
|
|
6128
|
+
* @param {!proto.GroupTransactionBudget} msg The msg instance to transform.
|
|
6129
|
+
* @return {!Object}
|
|
6130
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6131
|
+
*/
|
|
6132
|
+
proto.GroupTransactionBudget.toObject = function(includeInstance, msg) {
|
|
6133
|
+
var f, obj = {
|
|
6134
|
+
month: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6135
|
+
documentNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6136
|
+
itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
6137
|
+
proto.ChainTransactionBudgetCode.toObject, includeInstance),
|
|
6138
|
+
budgetCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6139
|
+
actual: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
6140
|
+
commitment: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
6141
|
+
budget: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
|
|
6142
|
+
};
|
|
6143
|
+
|
|
6144
|
+
if (includeInstance) {
|
|
6145
|
+
obj.$jspbMessageInstance = msg;
|
|
6146
|
+
}
|
|
6147
|
+
return obj;
|
|
6148
|
+
};
|
|
6149
|
+
}
|
|
6150
|
+
|
|
6151
|
+
|
|
6152
|
+
/**
|
|
6153
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6154
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6155
|
+
* @return {!proto.GroupTransactionBudget}
|
|
6156
|
+
*/
|
|
6157
|
+
proto.GroupTransactionBudget.deserializeBinary = function(bytes) {
|
|
6158
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6159
|
+
var msg = new proto.GroupTransactionBudget;
|
|
6160
|
+
return proto.GroupTransactionBudget.deserializeBinaryFromReader(msg, reader);
|
|
6161
|
+
};
|
|
6162
|
+
|
|
6163
|
+
|
|
6164
|
+
/**
|
|
6165
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6166
|
+
* given reader into the given message object.
|
|
6167
|
+
* @param {!proto.GroupTransactionBudget} msg The message object to deserialize into.
|
|
6168
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6169
|
+
* @return {!proto.GroupTransactionBudget}
|
|
6170
|
+
*/
|
|
6171
|
+
proto.GroupTransactionBudget.deserializeBinaryFromReader = function(msg, reader) {
|
|
6172
|
+
while (reader.nextField()) {
|
|
6173
|
+
if (reader.isEndGroup()) {
|
|
6174
|
+
break;
|
|
6175
|
+
}
|
|
6176
|
+
var field = reader.getFieldNumber();
|
|
6177
|
+
switch (field) {
|
|
6178
|
+
case 1:
|
|
6179
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6180
|
+
msg.setMonth(value);
|
|
6181
|
+
break;
|
|
6182
|
+
case 2:
|
|
6183
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6184
|
+
msg.setDocumentNumber(value);
|
|
6185
|
+
break;
|
|
6186
|
+
case 3:
|
|
6187
|
+
var value = new proto.ChainTransactionBudgetCode;
|
|
6188
|
+
reader.readMessage(value,proto.ChainTransactionBudgetCode.deserializeBinaryFromReader);
|
|
6189
|
+
msg.addItemTransactions(value);
|
|
6190
|
+
break;
|
|
6191
|
+
case 4:
|
|
6192
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6193
|
+
msg.setBudgetCode(value);
|
|
6194
|
+
break;
|
|
6195
|
+
case 5:
|
|
6196
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
6197
|
+
msg.setActual(value);
|
|
6198
|
+
break;
|
|
6199
|
+
case 6:
|
|
6200
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
6201
|
+
msg.setCommitment(value);
|
|
6202
|
+
break;
|
|
6203
|
+
case 7:
|
|
6204
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
6205
|
+
msg.setBudget(value);
|
|
6206
|
+
break;
|
|
6207
|
+
default:
|
|
6208
|
+
reader.skipField();
|
|
6209
|
+
break;
|
|
6210
|
+
}
|
|
6211
|
+
}
|
|
6212
|
+
return msg;
|
|
6213
|
+
};
|
|
6214
|
+
|
|
6215
|
+
|
|
6216
|
+
/**
|
|
6217
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6218
|
+
* @return {!Uint8Array}
|
|
6219
|
+
*/
|
|
6220
|
+
proto.GroupTransactionBudget.prototype.serializeBinary = function() {
|
|
6221
|
+
var writer = new jspb.BinaryWriter();
|
|
6222
|
+
proto.GroupTransactionBudget.serializeBinaryToWriter(this, writer);
|
|
6223
|
+
return writer.getResultBuffer();
|
|
6224
|
+
};
|
|
6225
|
+
|
|
6226
|
+
|
|
6227
|
+
/**
|
|
6228
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6229
|
+
* format), writing to the given BinaryWriter.
|
|
6230
|
+
* @param {!proto.GroupTransactionBudget} message
|
|
6231
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6232
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6233
|
+
*/
|
|
6234
|
+
proto.GroupTransactionBudget.serializeBinaryToWriter = function(message, writer) {
|
|
6235
|
+
var f = undefined;
|
|
6236
|
+
f = message.getMonth();
|
|
6237
|
+
if (f.length > 0) {
|
|
6238
|
+
writer.writeString(
|
|
6239
|
+
1,
|
|
6240
|
+
f
|
|
6241
|
+
);
|
|
6242
|
+
}
|
|
6243
|
+
f = message.getDocumentNumber();
|
|
6244
|
+
if (f.length > 0) {
|
|
6245
|
+
writer.writeString(
|
|
6246
|
+
2,
|
|
6247
|
+
f
|
|
6248
|
+
);
|
|
6249
|
+
}
|
|
6250
|
+
f = message.getItemTransactionsList();
|
|
6251
|
+
if (f.length > 0) {
|
|
6252
|
+
writer.writeRepeatedMessage(
|
|
6253
|
+
3,
|
|
6254
|
+
f,
|
|
6255
|
+
proto.ChainTransactionBudgetCode.serializeBinaryToWriter
|
|
6256
|
+
);
|
|
6257
|
+
}
|
|
6258
|
+
f = message.getBudgetCode();
|
|
6259
|
+
if (f.length > 0) {
|
|
6260
|
+
writer.writeString(
|
|
6261
|
+
4,
|
|
6262
|
+
f
|
|
6263
|
+
);
|
|
6264
|
+
}
|
|
6265
|
+
f = message.getActual();
|
|
6266
|
+
if (f !== 0.0) {
|
|
6267
|
+
writer.writeDouble(
|
|
6268
|
+
5,
|
|
6269
|
+
f
|
|
6270
|
+
);
|
|
6271
|
+
}
|
|
6272
|
+
f = message.getCommitment();
|
|
6273
|
+
if (f !== 0.0) {
|
|
6274
|
+
writer.writeDouble(
|
|
6275
|
+
6,
|
|
6276
|
+
f
|
|
6277
|
+
);
|
|
6278
|
+
}
|
|
6279
|
+
f = message.getBudget();
|
|
6280
|
+
if (f !== 0.0) {
|
|
6281
|
+
writer.writeDouble(
|
|
6282
|
+
7,
|
|
6283
|
+
f
|
|
6284
|
+
);
|
|
6285
|
+
}
|
|
6286
|
+
};
|
|
6287
|
+
|
|
6288
|
+
|
|
6289
|
+
/**
|
|
6290
|
+
* optional string month = 1;
|
|
6291
|
+
* @return {string}
|
|
6292
|
+
*/
|
|
6293
|
+
proto.GroupTransactionBudget.prototype.getMonth = function() {
|
|
6294
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6295
|
+
};
|
|
6296
|
+
|
|
6297
|
+
|
|
6298
|
+
/**
|
|
6299
|
+
* @param {string} value
|
|
6300
|
+
* @return {!proto.GroupTransactionBudget} returns this
|
|
6301
|
+
*/
|
|
6302
|
+
proto.GroupTransactionBudget.prototype.setMonth = function(value) {
|
|
6303
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6304
|
+
};
|
|
6305
|
+
|
|
6306
|
+
|
|
6307
|
+
/**
|
|
6308
|
+
* optional string document_number = 2;
|
|
6309
|
+
* @return {string}
|
|
6310
|
+
*/
|
|
6311
|
+
proto.GroupTransactionBudget.prototype.getDocumentNumber = function() {
|
|
6312
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6313
|
+
};
|
|
6314
|
+
|
|
6315
|
+
|
|
6316
|
+
/**
|
|
6317
|
+
* @param {string} value
|
|
6318
|
+
* @return {!proto.GroupTransactionBudget} returns this
|
|
6319
|
+
*/
|
|
6320
|
+
proto.GroupTransactionBudget.prototype.setDocumentNumber = function(value) {
|
|
6321
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6322
|
+
};
|
|
6323
|
+
|
|
6324
|
+
|
|
6325
|
+
/**
|
|
6326
|
+
* repeated ChainTransactionBudgetCode item_transactions = 3;
|
|
6327
|
+
* @return {!Array<!proto.ChainTransactionBudgetCode>}
|
|
6328
|
+
*/
|
|
6329
|
+
proto.GroupTransactionBudget.prototype.getItemTransactionsList = function() {
|
|
6330
|
+
return /** @type{!Array<!proto.ChainTransactionBudgetCode>} */ (
|
|
6331
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ChainTransactionBudgetCode, 3));
|
|
6332
|
+
};
|
|
6333
|
+
|
|
6334
|
+
|
|
6335
|
+
/**
|
|
6336
|
+
* @param {!Array<!proto.ChainTransactionBudgetCode>} value
|
|
6337
|
+
* @return {!proto.GroupTransactionBudget} returns this
|
|
6338
|
+
*/
|
|
6339
|
+
proto.GroupTransactionBudget.prototype.setItemTransactionsList = function(value) {
|
|
6340
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
6341
|
+
};
|
|
6342
|
+
|
|
6343
|
+
|
|
6344
|
+
/**
|
|
6345
|
+
* @param {!proto.ChainTransactionBudgetCode=} opt_value
|
|
6346
|
+
* @param {number=} opt_index
|
|
6347
|
+
* @return {!proto.ChainTransactionBudgetCode}
|
|
6348
|
+
*/
|
|
6349
|
+
proto.GroupTransactionBudget.prototype.addItemTransactions = function(opt_value, opt_index) {
|
|
6350
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ChainTransactionBudgetCode, opt_index);
|
|
6351
|
+
};
|
|
6352
|
+
|
|
6353
|
+
|
|
6354
|
+
/**
|
|
6355
|
+
* Clears the list making it empty but non-null.
|
|
6356
|
+
* @return {!proto.GroupTransactionBudget} returns this
|
|
6357
|
+
*/
|
|
6358
|
+
proto.GroupTransactionBudget.prototype.clearItemTransactionsList = function() {
|
|
6359
|
+
return this.setItemTransactionsList([]);
|
|
6360
|
+
};
|
|
6361
|
+
|
|
6362
|
+
|
|
6363
|
+
/**
|
|
6364
|
+
* optional string budget_code = 4;
|
|
6365
|
+
* @return {string}
|
|
6366
|
+
*/
|
|
6367
|
+
proto.GroupTransactionBudget.prototype.getBudgetCode = function() {
|
|
6368
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
6369
|
+
};
|
|
6370
|
+
|
|
6371
|
+
|
|
6372
|
+
/**
|
|
6373
|
+
* @param {string} value
|
|
6374
|
+
* @return {!proto.GroupTransactionBudget} returns this
|
|
6375
|
+
*/
|
|
6376
|
+
proto.GroupTransactionBudget.prototype.setBudgetCode = function(value) {
|
|
6377
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
6378
|
+
};
|
|
6379
|
+
|
|
6380
|
+
|
|
6381
|
+
/**
|
|
6382
|
+
* optional double actual = 5;
|
|
6383
|
+
* @return {number}
|
|
6384
|
+
*/
|
|
6385
|
+
proto.GroupTransactionBudget.prototype.getActual = function() {
|
|
6386
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
6387
|
+
};
|
|
6388
|
+
|
|
6389
|
+
|
|
6390
|
+
/**
|
|
6391
|
+
* @param {number} value
|
|
6392
|
+
* @return {!proto.GroupTransactionBudget} returns this
|
|
6393
|
+
*/
|
|
6394
|
+
proto.GroupTransactionBudget.prototype.setActual = function(value) {
|
|
6395
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
6396
|
+
};
|
|
6397
|
+
|
|
6398
|
+
|
|
6399
|
+
/**
|
|
6400
|
+
* optional double commitment = 6;
|
|
6401
|
+
* @return {number}
|
|
6402
|
+
*/
|
|
6403
|
+
proto.GroupTransactionBudget.prototype.getCommitment = function() {
|
|
6404
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
6405
|
+
};
|
|
6406
|
+
|
|
6407
|
+
|
|
6408
|
+
/**
|
|
6409
|
+
* @param {number} value
|
|
6410
|
+
* @return {!proto.GroupTransactionBudget} returns this
|
|
6411
|
+
*/
|
|
6412
|
+
proto.GroupTransactionBudget.prototype.setCommitment = function(value) {
|
|
6413
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
6414
|
+
};
|
|
6415
|
+
|
|
6416
|
+
|
|
6417
|
+
/**
|
|
6418
|
+
* optional double budget = 7;
|
|
6419
|
+
* @return {number}
|
|
6420
|
+
*/
|
|
6421
|
+
proto.GroupTransactionBudget.prototype.getBudget = function() {
|
|
6422
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
6423
|
+
};
|
|
6424
|
+
|
|
6425
|
+
|
|
6426
|
+
/**
|
|
6427
|
+
* @param {number} value
|
|
6428
|
+
* @return {!proto.GroupTransactionBudget} returns this
|
|
6429
|
+
*/
|
|
6430
|
+
proto.GroupTransactionBudget.prototype.setBudget = function(value) {
|
|
6431
|
+
return jspb.Message.setProto3FloatField(this, 7, value);
|
|
6432
|
+
};
|
|
6433
|
+
|
|
6434
|
+
|
|
6435
|
+
|
|
6436
|
+
|
|
6437
|
+
|
|
6438
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6439
|
+
/**
|
|
6440
|
+
* Creates an object representation of this proto.
|
|
6441
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6442
|
+
* Optional fields that are not set will be set to undefined.
|
|
6443
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6444
|
+
* For the list of reserved names please see:
|
|
6445
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6446
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6447
|
+
* JSPB instance for transitional soy proto support:
|
|
6448
|
+
* http://goto/soy-param-migration
|
|
6449
|
+
* @return {!Object}
|
|
6450
|
+
*/
|
|
6451
|
+
proto.TransactionBudget.prototype.toObject = function(opt_includeInstance) {
|
|
6452
|
+
return proto.TransactionBudget.toObject(opt_includeInstance, this);
|
|
6453
|
+
};
|
|
6454
|
+
|
|
6455
|
+
|
|
6456
|
+
/**
|
|
6457
|
+
* Static version of the {@see toObject} method.
|
|
6458
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6459
|
+
* the JSPB instance for transitional soy proto support:
|
|
6460
|
+
* http://goto/soy-param-migration
|
|
6461
|
+
* @param {!proto.TransactionBudget} msg The msg instance to transform.
|
|
6462
|
+
* @return {!Object}
|
|
6463
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6464
|
+
*/
|
|
6465
|
+
proto.TransactionBudget.toObject = function(includeInstance, msg) {
|
|
6466
|
+
var f, obj = {
|
|
6467
|
+
actual: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
6468
|
+
commitment: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
6469
|
+
detailTransactionBudget: (f = msg.getDetailTransactionBudget()) && proto.DetailTransactionBudget.toObject(includeInstance, f)
|
|
6470
|
+
};
|
|
6471
|
+
|
|
6472
|
+
if (includeInstance) {
|
|
6473
|
+
obj.$jspbMessageInstance = msg;
|
|
6474
|
+
}
|
|
6475
|
+
return obj;
|
|
6476
|
+
};
|
|
6477
|
+
}
|
|
6478
|
+
|
|
6479
|
+
|
|
6480
|
+
/**
|
|
6481
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6482
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6483
|
+
* @return {!proto.TransactionBudget}
|
|
6484
|
+
*/
|
|
6485
|
+
proto.TransactionBudget.deserializeBinary = function(bytes) {
|
|
6486
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6487
|
+
var msg = new proto.TransactionBudget;
|
|
6488
|
+
return proto.TransactionBudget.deserializeBinaryFromReader(msg, reader);
|
|
6489
|
+
};
|
|
6490
|
+
|
|
6491
|
+
|
|
6492
|
+
/**
|
|
6493
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6494
|
+
* given reader into the given message object.
|
|
6495
|
+
* @param {!proto.TransactionBudget} msg The message object to deserialize into.
|
|
6496
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6497
|
+
* @return {!proto.TransactionBudget}
|
|
6498
|
+
*/
|
|
6499
|
+
proto.TransactionBudget.deserializeBinaryFromReader = function(msg, reader) {
|
|
6500
|
+
while (reader.nextField()) {
|
|
6501
|
+
if (reader.isEndGroup()) {
|
|
6502
|
+
break;
|
|
6503
|
+
}
|
|
6504
|
+
var field = reader.getFieldNumber();
|
|
6505
|
+
switch (field) {
|
|
6506
|
+
case 1:
|
|
6507
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
6508
|
+
msg.setActual(value);
|
|
6509
|
+
break;
|
|
6510
|
+
case 2:
|
|
6511
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
6512
|
+
msg.setCommitment(value);
|
|
6513
|
+
break;
|
|
6514
|
+
case 3:
|
|
6515
|
+
var value = new proto.DetailTransactionBudget;
|
|
6516
|
+
reader.readMessage(value,proto.DetailTransactionBudget.deserializeBinaryFromReader);
|
|
6517
|
+
msg.setDetailTransactionBudget(value);
|
|
6518
|
+
break;
|
|
6519
|
+
default:
|
|
6520
|
+
reader.skipField();
|
|
6521
|
+
break;
|
|
6522
|
+
}
|
|
6523
|
+
}
|
|
6524
|
+
return msg;
|
|
6525
|
+
};
|
|
6526
|
+
|
|
6527
|
+
|
|
6528
|
+
/**
|
|
6529
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6530
|
+
* @return {!Uint8Array}
|
|
6531
|
+
*/
|
|
6532
|
+
proto.TransactionBudget.prototype.serializeBinary = function() {
|
|
6533
|
+
var writer = new jspb.BinaryWriter();
|
|
6534
|
+
proto.TransactionBudget.serializeBinaryToWriter(this, writer);
|
|
6535
|
+
return writer.getResultBuffer();
|
|
6536
|
+
};
|
|
6537
|
+
|
|
6538
|
+
|
|
6539
|
+
/**
|
|
6540
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6541
|
+
* format), writing to the given BinaryWriter.
|
|
6542
|
+
* @param {!proto.TransactionBudget} message
|
|
6543
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6544
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6545
|
+
*/
|
|
6546
|
+
proto.TransactionBudget.serializeBinaryToWriter = function(message, writer) {
|
|
6547
|
+
var f = undefined;
|
|
6548
|
+
f = message.getActual();
|
|
6549
|
+
if (f !== 0.0) {
|
|
6550
|
+
writer.writeDouble(
|
|
6551
|
+
1,
|
|
6552
|
+
f
|
|
6553
|
+
);
|
|
6554
|
+
}
|
|
6555
|
+
f = message.getCommitment();
|
|
6556
|
+
if (f !== 0.0) {
|
|
6557
|
+
writer.writeDouble(
|
|
6558
|
+
2,
|
|
6559
|
+
f
|
|
6560
|
+
);
|
|
6561
|
+
}
|
|
6562
|
+
f = message.getDetailTransactionBudget();
|
|
6563
|
+
if (f != null) {
|
|
6564
|
+
writer.writeMessage(
|
|
6565
|
+
3,
|
|
6566
|
+
f,
|
|
6567
|
+
proto.DetailTransactionBudget.serializeBinaryToWriter
|
|
6568
|
+
);
|
|
6569
|
+
}
|
|
6570
|
+
};
|
|
6571
|
+
|
|
6572
|
+
|
|
6573
|
+
/**
|
|
6574
|
+
* optional double actual = 1;
|
|
6575
|
+
* @return {number}
|
|
6576
|
+
*/
|
|
6577
|
+
proto.TransactionBudget.prototype.getActual = function() {
|
|
6578
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
6579
|
+
};
|
|
6580
|
+
|
|
6581
|
+
|
|
6582
|
+
/**
|
|
6583
|
+
* @param {number} value
|
|
6584
|
+
* @return {!proto.TransactionBudget} returns this
|
|
6585
|
+
*/
|
|
6586
|
+
proto.TransactionBudget.prototype.setActual = function(value) {
|
|
6587
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
6588
|
+
};
|
|
6589
|
+
|
|
6590
|
+
|
|
6591
|
+
/**
|
|
6592
|
+
* optional double commitment = 2;
|
|
6593
|
+
* @return {number}
|
|
6594
|
+
*/
|
|
6595
|
+
proto.TransactionBudget.prototype.getCommitment = function() {
|
|
6596
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
6597
|
+
};
|
|
6598
|
+
|
|
6599
|
+
|
|
6600
|
+
/**
|
|
6601
|
+
* @param {number} value
|
|
6602
|
+
* @return {!proto.TransactionBudget} returns this
|
|
6603
|
+
*/
|
|
6604
|
+
proto.TransactionBudget.prototype.setCommitment = function(value) {
|
|
6605
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
6606
|
+
};
|
|
6607
|
+
|
|
6608
|
+
|
|
6609
|
+
/**
|
|
6610
|
+
* optional DetailTransactionBudget detail_transaction_budget = 3;
|
|
6611
|
+
* @return {?proto.DetailTransactionBudget}
|
|
6612
|
+
*/
|
|
6613
|
+
proto.TransactionBudget.prototype.getDetailTransactionBudget = function() {
|
|
6614
|
+
return /** @type{?proto.DetailTransactionBudget} */ (
|
|
6615
|
+
jspb.Message.getWrapperField(this, proto.DetailTransactionBudget, 3));
|
|
6616
|
+
};
|
|
6617
|
+
|
|
6618
|
+
|
|
6619
|
+
/**
|
|
6620
|
+
* @param {?proto.DetailTransactionBudget|undefined} value
|
|
6621
|
+
* @return {!proto.TransactionBudget} returns this
|
|
6622
|
+
*/
|
|
6623
|
+
proto.TransactionBudget.prototype.setDetailTransactionBudget = function(value) {
|
|
6624
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
6625
|
+
};
|
|
6626
|
+
|
|
6627
|
+
|
|
6628
|
+
/**
|
|
6629
|
+
* Clears the message field making it undefined.
|
|
6630
|
+
* @return {!proto.TransactionBudget} returns this
|
|
6631
|
+
*/
|
|
6632
|
+
proto.TransactionBudget.prototype.clearDetailTransactionBudget = function() {
|
|
6633
|
+
return this.setDetailTransactionBudget(undefined);
|
|
6634
|
+
};
|
|
6635
|
+
|
|
6636
|
+
|
|
6637
|
+
/**
|
|
6638
|
+
* Returns whether this field is set.
|
|
6639
|
+
* @return {boolean}
|
|
6640
|
+
*/
|
|
6641
|
+
proto.TransactionBudget.prototype.hasDetailTransactionBudget = function() {
|
|
6642
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6643
|
+
};
|
|
6644
|
+
|
|
6645
|
+
|
|
6646
|
+
|
|
6647
|
+
/**
|
|
6648
|
+
* List of repeated fields within this message type.
|
|
6649
|
+
* @private {!Array<number>}
|
|
6650
|
+
* @const
|
|
6651
|
+
*/
|
|
6652
|
+
proto.GroupTransactionCode.repeatedFields_ = [1];
|
|
6653
|
+
|
|
6654
|
+
|
|
6655
|
+
|
|
6656
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6657
|
+
/**
|
|
6658
|
+
* Creates an object representation of this proto.
|
|
6659
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6660
|
+
* Optional fields that are not set will be set to undefined.
|
|
6661
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6662
|
+
* For the list of reserved names please see:
|
|
6663
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6664
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6665
|
+
* JSPB instance for transitional soy proto support:
|
|
6666
|
+
* http://goto/soy-param-migration
|
|
6667
|
+
* @return {!Object}
|
|
6668
|
+
*/
|
|
6669
|
+
proto.GroupTransactionCode.prototype.toObject = function(opt_includeInstance) {
|
|
6670
|
+
return proto.GroupTransactionCode.toObject(opt_includeInstance, this);
|
|
6671
|
+
};
|
|
6672
|
+
|
|
6673
|
+
|
|
6674
|
+
/**
|
|
6675
|
+
* Static version of the {@see toObject} method.
|
|
6676
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6677
|
+
* the JSPB instance for transitional soy proto support:
|
|
6678
|
+
* http://goto/soy-param-migration
|
|
6679
|
+
* @param {!proto.GroupTransactionCode} msg The msg instance to transform.
|
|
6680
|
+
* @return {!Object}
|
|
6681
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6682
|
+
*/
|
|
6683
|
+
proto.GroupTransactionCode.toObject = function(includeInstance, msg) {
|
|
6684
|
+
var f, obj = {
|
|
6685
|
+
groupTransactionBudgetList: jspb.Message.toObjectList(msg.getGroupTransactionBudgetList(),
|
|
6686
|
+
proto.TransactionBudget.toObject, includeInstance),
|
|
6687
|
+
budgetCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6688
|
+
glAccount: (f = msg.getGlAccount()) && prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount.toObject(includeInstance, f),
|
|
6689
|
+
category: (f = msg.getCategory()) && prisca_v1_budget_categories_budget_categories_pb.BudgetCategories.toObject(includeInstance, f),
|
|
6690
|
+
activity: (f = msg.getActivity()) && prisca_v1_budget_activity_budget_activity_pb.BudgetActivity.toObject(includeInstance, f),
|
|
6691
|
+
budget: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
6692
|
+
description: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
6693
|
+
month: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
6694
|
+
actual: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
|
|
6695
|
+
commitment: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0)
|
|
6696
|
+
};
|
|
6697
|
+
|
|
6698
|
+
if (includeInstance) {
|
|
6699
|
+
obj.$jspbMessageInstance = msg;
|
|
6700
|
+
}
|
|
6701
|
+
return obj;
|
|
6702
|
+
};
|
|
6703
|
+
}
|
|
6704
|
+
|
|
6705
|
+
|
|
6706
|
+
/**
|
|
6707
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6708
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6709
|
+
* @return {!proto.GroupTransactionCode}
|
|
6710
|
+
*/
|
|
6711
|
+
proto.GroupTransactionCode.deserializeBinary = function(bytes) {
|
|
6712
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6713
|
+
var msg = new proto.GroupTransactionCode;
|
|
6714
|
+
return proto.GroupTransactionCode.deserializeBinaryFromReader(msg, reader);
|
|
6715
|
+
};
|
|
6716
|
+
|
|
6717
|
+
|
|
6718
|
+
/**
|
|
6719
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6720
|
+
* given reader into the given message object.
|
|
6721
|
+
* @param {!proto.GroupTransactionCode} msg The message object to deserialize into.
|
|
6722
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6723
|
+
* @return {!proto.GroupTransactionCode}
|
|
6724
|
+
*/
|
|
6725
|
+
proto.GroupTransactionCode.deserializeBinaryFromReader = function(msg, reader) {
|
|
6726
|
+
while (reader.nextField()) {
|
|
6727
|
+
if (reader.isEndGroup()) {
|
|
6728
|
+
break;
|
|
6729
|
+
}
|
|
6730
|
+
var field = reader.getFieldNumber();
|
|
6731
|
+
switch (field) {
|
|
6732
|
+
case 1:
|
|
6733
|
+
var value = new proto.TransactionBudget;
|
|
6734
|
+
reader.readMessage(value,proto.TransactionBudget.deserializeBinaryFromReader);
|
|
6735
|
+
msg.addGroupTransactionBudget(value);
|
|
6736
|
+
break;
|
|
6737
|
+
case 2:
|
|
6738
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6739
|
+
msg.setBudgetCode(value);
|
|
6740
|
+
break;
|
|
6741
|
+
case 3:
|
|
6742
|
+
var value = new prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount;
|
|
6743
|
+
reader.readMessage(value,prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount.deserializeBinaryFromReader);
|
|
6744
|
+
msg.setGlAccount(value);
|
|
6745
|
+
break;
|
|
6746
|
+
case 4:
|
|
6747
|
+
var value = new prisca_v1_budget_categories_budget_categories_pb.BudgetCategories;
|
|
6748
|
+
reader.readMessage(value,prisca_v1_budget_categories_budget_categories_pb.BudgetCategories.deserializeBinaryFromReader);
|
|
6749
|
+
msg.setCategory(value);
|
|
6750
|
+
break;
|
|
6751
|
+
case 5:
|
|
6752
|
+
var value = new prisca_v1_budget_activity_budget_activity_pb.BudgetActivity;
|
|
6753
|
+
reader.readMessage(value,prisca_v1_budget_activity_budget_activity_pb.BudgetActivity.deserializeBinaryFromReader);
|
|
6754
|
+
msg.setActivity(value);
|
|
6755
|
+
break;
|
|
6756
|
+
case 6:
|
|
6757
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
6758
|
+
msg.setBudget(value);
|
|
6759
|
+
break;
|
|
6760
|
+
case 7:
|
|
6761
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6762
|
+
msg.setDescription(value);
|
|
6763
|
+
break;
|
|
6764
|
+
case 8:
|
|
6765
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
6766
|
+
msg.setMonth(value);
|
|
6767
|
+
break;
|
|
6768
|
+
case 9:
|
|
6769
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
6770
|
+
msg.setActual(value);
|
|
6771
|
+
break;
|
|
6772
|
+
case 10:
|
|
6773
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
6774
|
+
msg.setCommitment(value);
|
|
6775
|
+
break;
|
|
6776
|
+
default:
|
|
6777
|
+
reader.skipField();
|
|
6778
|
+
break;
|
|
6779
|
+
}
|
|
6780
|
+
}
|
|
6781
|
+
return msg;
|
|
6782
|
+
};
|
|
6783
|
+
|
|
6784
|
+
|
|
6785
|
+
/**
|
|
6786
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6787
|
+
* @return {!Uint8Array}
|
|
6788
|
+
*/
|
|
6789
|
+
proto.GroupTransactionCode.prototype.serializeBinary = function() {
|
|
6790
|
+
var writer = new jspb.BinaryWriter();
|
|
6791
|
+
proto.GroupTransactionCode.serializeBinaryToWriter(this, writer);
|
|
6792
|
+
return writer.getResultBuffer();
|
|
6793
|
+
};
|
|
6794
|
+
|
|
6795
|
+
|
|
6796
|
+
/**
|
|
6797
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6798
|
+
* format), writing to the given BinaryWriter.
|
|
6799
|
+
* @param {!proto.GroupTransactionCode} message
|
|
6800
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6801
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6802
|
+
*/
|
|
6803
|
+
proto.GroupTransactionCode.serializeBinaryToWriter = function(message, writer) {
|
|
6804
|
+
var f = undefined;
|
|
6805
|
+
f = message.getGroupTransactionBudgetList();
|
|
6806
|
+
if (f.length > 0) {
|
|
6807
|
+
writer.writeRepeatedMessage(
|
|
6808
|
+
1,
|
|
6809
|
+
f,
|
|
6810
|
+
proto.TransactionBudget.serializeBinaryToWriter
|
|
6811
|
+
);
|
|
6812
|
+
}
|
|
6813
|
+
f = message.getBudgetCode();
|
|
6814
|
+
if (f.length > 0) {
|
|
6815
|
+
writer.writeString(
|
|
6816
|
+
2,
|
|
6817
|
+
f
|
|
6818
|
+
);
|
|
6819
|
+
}
|
|
6820
|
+
f = message.getGlAccount();
|
|
6821
|
+
if (f != null) {
|
|
6822
|
+
writer.writeMessage(
|
|
6823
|
+
3,
|
|
6824
|
+
f,
|
|
6825
|
+
prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount.serializeBinaryToWriter
|
|
6826
|
+
);
|
|
6827
|
+
}
|
|
6828
|
+
f = message.getCategory();
|
|
6829
|
+
if (f != null) {
|
|
6830
|
+
writer.writeMessage(
|
|
6831
|
+
4,
|
|
6832
|
+
f,
|
|
6833
|
+
prisca_v1_budget_categories_budget_categories_pb.BudgetCategories.serializeBinaryToWriter
|
|
6834
|
+
);
|
|
6835
|
+
}
|
|
6836
|
+
f = message.getActivity();
|
|
6837
|
+
if (f != null) {
|
|
6838
|
+
writer.writeMessage(
|
|
6839
|
+
5,
|
|
6840
|
+
f,
|
|
6841
|
+
prisca_v1_budget_activity_budget_activity_pb.BudgetActivity.serializeBinaryToWriter
|
|
6842
|
+
);
|
|
6843
|
+
}
|
|
6844
|
+
f = message.getBudget();
|
|
6845
|
+
if (f !== 0.0) {
|
|
6846
|
+
writer.writeDouble(
|
|
6847
|
+
6,
|
|
6848
|
+
f
|
|
6849
|
+
);
|
|
6850
|
+
}
|
|
6851
|
+
f = message.getDescription();
|
|
6852
|
+
if (f.length > 0) {
|
|
6853
|
+
writer.writeString(
|
|
6854
|
+
7,
|
|
6855
|
+
f
|
|
6856
|
+
);
|
|
6857
|
+
}
|
|
6858
|
+
f = message.getMonth();
|
|
6859
|
+
if (f.length > 0) {
|
|
6860
|
+
writer.writeString(
|
|
6861
|
+
8,
|
|
6862
|
+
f
|
|
6863
|
+
);
|
|
6864
|
+
}
|
|
6865
|
+
f = message.getActual();
|
|
6866
|
+
if (f !== 0.0) {
|
|
6867
|
+
writer.writeDouble(
|
|
6868
|
+
9,
|
|
6869
|
+
f
|
|
6870
|
+
);
|
|
6871
|
+
}
|
|
6872
|
+
f = message.getCommitment();
|
|
6873
|
+
if (f !== 0.0) {
|
|
6874
|
+
writer.writeDouble(
|
|
6875
|
+
10,
|
|
6876
|
+
f
|
|
6877
|
+
);
|
|
6878
|
+
}
|
|
6879
|
+
};
|
|
6880
|
+
|
|
6881
|
+
|
|
6882
|
+
/**
|
|
6883
|
+
* repeated TransactionBudget group_transaction_budget = 1;
|
|
6884
|
+
* @return {!Array<!proto.TransactionBudget>}
|
|
6885
|
+
*/
|
|
6886
|
+
proto.GroupTransactionCode.prototype.getGroupTransactionBudgetList = function() {
|
|
6887
|
+
return /** @type{!Array<!proto.TransactionBudget>} */ (
|
|
6888
|
+
jspb.Message.getRepeatedWrapperField(this, proto.TransactionBudget, 1));
|
|
6889
|
+
};
|
|
6890
|
+
|
|
6891
|
+
|
|
6892
|
+
/**
|
|
6893
|
+
* @param {!Array<!proto.TransactionBudget>} value
|
|
6894
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
6895
|
+
*/
|
|
6896
|
+
proto.GroupTransactionCode.prototype.setGroupTransactionBudgetList = function(value) {
|
|
6897
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
6898
|
+
};
|
|
6899
|
+
|
|
6900
|
+
|
|
6901
|
+
/**
|
|
6902
|
+
* @param {!proto.TransactionBudget=} opt_value
|
|
6903
|
+
* @param {number=} opt_index
|
|
6904
|
+
* @return {!proto.TransactionBudget}
|
|
6905
|
+
*/
|
|
6906
|
+
proto.GroupTransactionCode.prototype.addGroupTransactionBudget = function(opt_value, opt_index) {
|
|
6907
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBudget, opt_index);
|
|
6908
|
+
};
|
|
6909
|
+
|
|
6910
|
+
|
|
6911
|
+
/**
|
|
6912
|
+
* Clears the list making it empty but non-null.
|
|
6913
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
6914
|
+
*/
|
|
6915
|
+
proto.GroupTransactionCode.prototype.clearGroupTransactionBudgetList = function() {
|
|
6916
|
+
return this.setGroupTransactionBudgetList([]);
|
|
6917
|
+
};
|
|
6918
|
+
|
|
6919
|
+
|
|
6920
|
+
/**
|
|
6921
|
+
* optional string budget_code = 2;
|
|
6922
|
+
* @return {string}
|
|
6923
|
+
*/
|
|
6924
|
+
proto.GroupTransactionCode.prototype.getBudgetCode = function() {
|
|
6925
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6926
|
+
};
|
|
6927
|
+
|
|
6928
|
+
|
|
6929
|
+
/**
|
|
6930
|
+
* @param {string} value
|
|
6931
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
6932
|
+
*/
|
|
6933
|
+
proto.GroupTransactionCode.prototype.setBudgetCode = function(value) {
|
|
6934
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6935
|
+
};
|
|
6936
|
+
|
|
6937
|
+
|
|
6938
|
+
/**
|
|
6939
|
+
* optional GeneralLedgerAccount gl_account = 3;
|
|
6940
|
+
* @return {?proto.GeneralLedgerAccount}
|
|
6941
|
+
*/
|
|
6942
|
+
proto.GroupTransactionCode.prototype.getGlAccount = function() {
|
|
6943
|
+
return /** @type{?proto.GeneralLedgerAccount} */ (
|
|
6944
|
+
jspb.Message.getWrapperField(this, prisca_v1_general_ledger_account_general_ledger_account_pb.GeneralLedgerAccount, 3));
|
|
6945
|
+
};
|
|
6946
|
+
|
|
6947
|
+
|
|
6948
|
+
/**
|
|
6949
|
+
* @param {?proto.GeneralLedgerAccount|undefined} value
|
|
6950
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
6951
|
+
*/
|
|
6952
|
+
proto.GroupTransactionCode.prototype.setGlAccount = function(value) {
|
|
6953
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
6954
|
+
};
|
|
6955
|
+
|
|
6956
|
+
|
|
6957
|
+
/**
|
|
6958
|
+
* Clears the message field making it undefined.
|
|
6959
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
6960
|
+
*/
|
|
6961
|
+
proto.GroupTransactionCode.prototype.clearGlAccount = function() {
|
|
6962
|
+
return this.setGlAccount(undefined);
|
|
6963
|
+
};
|
|
6964
|
+
|
|
6965
|
+
|
|
6966
|
+
/**
|
|
6967
|
+
* Returns whether this field is set.
|
|
6968
|
+
* @return {boolean}
|
|
6969
|
+
*/
|
|
6970
|
+
proto.GroupTransactionCode.prototype.hasGlAccount = function() {
|
|
6971
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6972
|
+
};
|
|
6973
|
+
|
|
6974
|
+
|
|
6975
|
+
/**
|
|
6976
|
+
* optional BudgetCategories category = 4;
|
|
6977
|
+
* @return {?proto.BudgetCategories}
|
|
6978
|
+
*/
|
|
6979
|
+
proto.GroupTransactionCode.prototype.getCategory = function() {
|
|
6980
|
+
return /** @type{?proto.BudgetCategories} */ (
|
|
6981
|
+
jspb.Message.getWrapperField(this, prisca_v1_budget_categories_budget_categories_pb.BudgetCategories, 4));
|
|
6982
|
+
};
|
|
6983
|
+
|
|
6984
|
+
|
|
6985
|
+
/**
|
|
6986
|
+
* @param {?proto.BudgetCategories|undefined} value
|
|
6987
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
6988
|
+
*/
|
|
6989
|
+
proto.GroupTransactionCode.prototype.setCategory = function(value) {
|
|
6990
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
6991
|
+
};
|
|
6992
|
+
|
|
6993
|
+
|
|
6994
|
+
/**
|
|
6995
|
+
* Clears the message field making it undefined.
|
|
6996
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
6997
|
+
*/
|
|
6998
|
+
proto.GroupTransactionCode.prototype.clearCategory = function() {
|
|
6999
|
+
return this.setCategory(undefined);
|
|
7000
|
+
};
|
|
7001
|
+
|
|
7002
|
+
|
|
7003
|
+
/**
|
|
7004
|
+
* Returns whether this field is set.
|
|
7005
|
+
* @return {boolean}
|
|
7006
|
+
*/
|
|
7007
|
+
proto.GroupTransactionCode.prototype.hasCategory = function() {
|
|
7008
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7009
|
+
};
|
|
7010
|
+
|
|
7011
|
+
|
|
7012
|
+
/**
|
|
7013
|
+
* optional BudgetActivity activity = 5;
|
|
7014
|
+
* @return {?proto.BudgetActivity}
|
|
7015
|
+
*/
|
|
7016
|
+
proto.GroupTransactionCode.prototype.getActivity = function() {
|
|
7017
|
+
return /** @type{?proto.BudgetActivity} */ (
|
|
7018
|
+
jspb.Message.getWrapperField(this, prisca_v1_budget_activity_budget_activity_pb.BudgetActivity, 5));
|
|
7019
|
+
};
|
|
7020
|
+
|
|
7021
|
+
|
|
7022
|
+
/**
|
|
7023
|
+
* @param {?proto.BudgetActivity|undefined} value
|
|
7024
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
7025
|
+
*/
|
|
7026
|
+
proto.GroupTransactionCode.prototype.setActivity = function(value) {
|
|
7027
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
7028
|
+
};
|
|
7029
|
+
|
|
7030
|
+
|
|
7031
|
+
/**
|
|
7032
|
+
* Clears the message field making it undefined.
|
|
7033
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
7034
|
+
*/
|
|
7035
|
+
proto.GroupTransactionCode.prototype.clearActivity = function() {
|
|
7036
|
+
return this.setActivity(undefined);
|
|
7037
|
+
};
|
|
7038
|
+
|
|
7039
|
+
|
|
7040
|
+
/**
|
|
7041
|
+
* Returns whether this field is set.
|
|
7042
|
+
* @return {boolean}
|
|
7043
|
+
*/
|
|
7044
|
+
proto.GroupTransactionCode.prototype.hasActivity = function() {
|
|
7045
|
+
return jspb.Message.getField(this, 5) != null;
|
|
7046
|
+
};
|
|
7047
|
+
|
|
7048
|
+
|
|
7049
|
+
/**
|
|
7050
|
+
* optional double budget = 6;
|
|
7051
|
+
* @return {number}
|
|
7052
|
+
*/
|
|
7053
|
+
proto.GroupTransactionCode.prototype.getBudget = function() {
|
|
7054
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
7055
|
+
};
|
|
7056
|
+
|
|
7057
|
+
|
|
7058
|
+
/**
|
|
7059
|
+
* @param {number} value
|
|
7060
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
7061
|
+
*/
|
|
7062
|
+
proto.GroupTransactionCode.prototype.setBudget = function(value) {
|
|
7063
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
7064
|
+
};
|
|
7065
|
+
|
|
7066
|
+
|
|
7067
|
+
/**
|
|
7068
|
+
* optional string description = 7;
|
|
7069
|
+
* @return {string}
|
|
7070
|
+
*/
|
|
7071
|
+
proto.GroupTransactionCode.prototype.getDescription = function() {
|
|
7072
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
7073
|
+
};
|
|
7074
|
+
|
|
7075
|
+
|
|
7076
|
+
/**
|
|
7077
|
+
* @param {string} value
|
|
7078
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
7079
|
+
*/
|
|
7080
|
+
proto.GroupTransactionCode.prototype.setDescription = function(value) {
|
|
7081
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
7082
|
+
};
|
|
7083
|
+
|
|
7084
|
+
|
|
7085
|
+
/**
|
|
7086
|
+
* optional string month = 8;
|
|
7087
|
+
* @return {string}
|
|
7088
|
+
*/
|
|
7089
|
+
proto.GroupTransactionCode.prototype.getMonth = function() {
|
|
7090
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
7091
|
+
};
|
|
7092
|
+
|
|
7093
|
+
|
|
7094
|
+
/**
|
|
7095
|
+
* @param {string} value
|
|
7096
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
7097
|
+
*/
|
|
7098
|
+
proto.GroupTransactionCode.prototype.setMonth = function(value) {
|
|
7099
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
7100
|
+
};
|
|
7101
|
+
|
|
7102
|
+
|
|
7103
|
+
/**
|
|
7104
|
+
* optional double actual = 9;
|
|
7105
|
+
* @return {number}
|
|
7106
|
+
*/
|
|
7107
|
+
proto.GroupTransactionCode.prototype.getActual = function() {
|
|
7108
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
|
|
7109
|
+
};
|
|
7110
|
+
|
|
7111
|
+
|
|
7112
|
+
/**
|
|
7113
|
+
* @param {number} value
|
|
7114
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
7115
|
+
*/
|
|
7116
|
+
proto.GroupTransactionCode.prototype.setActual = function(value) {
|
|
7117
|
+
return jspb.Message.setProto3FloatField(this, 9, value);
|
|
7118
|
+
};
|
|
7119
|
+
|
|
7120
|
+
|
|
7121
|
+
/**
|
|
7122
|
+
* optional double commitment = 10;
|
|
7123
|
+
* @return {number}
|
|
7124
|
+
*/
|
|
7125
|
+
proto.GroupTransactionCode.prototype.getCommitment = function() {
|
|
7126
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
|
|
7127
|
+
};
|
|
7128
|
+
|
|
7129
|
+
|
|
7130
|
+
/**
|
|
7131
|
+
* @param {number} value
|
|
7132
|
+
* @return {!proto.GroupTransactionCode} returns this
|
|
7133
|
+
*/
|
|
7134
|
+
proto.GroupTransactionCode.prototype.setCommitment = function(value) {
|
|
7135
|
+
return jspb.Message.setProto3FloatField(this, 10, value);
|
|
7136
|
+
};
|
|
7137
|
+
|
|
7138
|
+
|
|
7139
|
+
|
|
7140
|
+
|
|
7141
|
+
|
|
7142
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7143
|
+
/**
|
|
7144
|
+
* Creates an object representation of this proto.
|
|
7145
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7146
|
+
* Optional fields that are not set will be set to undefined.
|
|
7147
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7148
|
+
* For the list of reserved names please see:
|
|
7149
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7150
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7151
|
+
* JSPB instance for transitional soy proto support:
|
|
7152
|
+
* http://goto/soy-param-migration
|
|
7153
|
+
* @return {!Object}
|
|
7154
|
+
*/
|
|
7155
|
+
proto.ReportBudgetTransaction.prototype.toObject = function(opt_includeInstance) {
|
|
7156
|
+
return proto.ReportBudgetTransaction.toObject(opt_includeInstance, this);
|
|
7157
|
+
};
|
|
7158
|
+
|
|
7159
|
+
|
|
7160
|
+
/**
|
|
7161
|
+
* Static version of the {@see toObject} method.
|
|
7162
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7163
|
+
* the JSPB instance for transitional soy proto support:
|
|
7164
|
+
* http://goto/soy-param-migration
|
|
7165
|
+
* @param {!proto.ReportBudgetTransaction} msg The msg instance to transform.
|
|
7166
|
+
* @return {!Object}
|
|
7167
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7168
|
+
*/
|
|
7169
|
+
proto.ReportBudgetTransaction.toObject = function(includeInstance, msg) {
|
|
7170
|
+
var f, obj = {
|
|
7171
|
+
month: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7172
|
+
budget: (f = jspb.Message.getOptionalFloatingPointField(msg, 3)) == null ? undefined : f,
|
|
7173
|
+
actual: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
7174
|
+
commitment: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
|
7175
|
+
};
|
|
7176
|
+
|
|
7177
|
+
if (includeInstance) {
|
|
7178
|
+
obj.$jspbMessageInstance = msg;
|
|
7179
|
+
}
|
|
7180
|
+
return obj;
|
|
7181
|
+
};
|
|
7182
|
+
}
|
|
7183
|
+
|
|
7184
|
+
|
|
7185
|
+
/**
|
|
7186
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7187
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7188
|
+
* @return {!proto.ReportBudgetTransaction}
|
|
7189
|
+
*/
|
|
7190
|
+
proto.ReportBudgetTransaction.deserializeBinary = function(bytes) {
|
|
7191
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7192
|
+
var msg = new proto.ReportBudgetTransaction;
|
|
7193
|
+
return proto.ReportBudgetTransaction.deserializeBinaryFromReader(msg, reader);
|
|
7194
|
+
};
|
|
7195
|
+
|
|
7196
|
+
|
|
7197
|
+
/**
|
|
7198
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7199
|
+
* given reader into the given message object.
|
|
7200
|
+
* @param {!proto.ReportBudgetTransaction} msg The message object to deserialize into.
|
|
7201
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7202
|
+
* @return {!proto.ReportBudgetTransaction}
|
|
7203
|
+
*/
|
|
7204
|
+
proto.ReportBudgetTransaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
7205
|
+
while (reader.nextField()) {
|
|
7206
|
+
if (reader.isEndGroup()) {
|
|
7207
|
+
break;
|
|
7208
|
+
}
|
|
7209
|
+
var field = reader.getFieldNumber();
|
|
7210
|
+
switch (field) {
|
|
7211
|
+
case 1:
|
|
7212
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
7213
|
+
msg.setMonth(value);
|
|
7214
|
+
break;
|
|
7215
|
+
case 3:
|
|
7216
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
7217
|
+
msg.setBudget(value);
|
|
7218
|
+
break;
|
|
7219
|
+
case 4:
|
|
7220
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
7221
|
+
msg.setActual(value);
|
|
7222
|
+
break;
|
|
7223
|
+
case 5:
|
|
7224
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
7225
|
+
msg.setCommitment(value);
|
|
7226
|
+
break;
|
|
7227
|
+
default:
|
|
7228
|
+
reader.skipField();
|
|
7229
|
+
break;
|
|
7230
|
+
}
|
|
7231
|
+
}
|
|
7232
|
+
return msg;
|
|
7233
|
+
};
|
|
7234
|
+
|
|
7235
|
+
|
|
7236
|
+
/**
|
|
7237
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7238
|
+
* @return {!Uint8Array}
|
|
7239
|
+
*/
|
|
7240
|
+
proto.ReportBudgetTransaction.prototype.serializeBinary = function() {
|
|
7241
|
+
var writer = new jspb.BinaryWriter();
|
|
7242
|
+
proto.ReportBudgetTransaction.serializeBinaryToWriter(this, writer);
|
|
7243
|
+
return writer.getResultBuffer();
|
|
7244
|
+
};
|
|
7245
|
+
|
|
7246
|
+
|
|
7247
|
+
/**
|
|
7248
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7249
|
+
* format), writing to the given BinaryWriter.
|
|
7250
|
+
* @param {!proto.ReportBudgetTransaction} message
|
|
7251
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7252
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7253
|
+
*/
|
|
7254
|
+
proto.ReportBudgetTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
7255
|
+
var f = undefined;
|
|
7256
|
+
f = message.getMonth();
|
|
7257
|
+
if (f.length > 0) {
|
|
7258
|
+
writer.writeString(
|
|
7259
|
+
1,
|
|
7260
|
+
f
|
|
7261
|
+
);
|
|
7262
|
+
}
|
|
7263
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
7264
|
+
if (f != null) {
|
|
7265
|
+
writer.writeDouble(
|
|
7266
|
+
3,
|
|
7267
|
+
f
|
|
7268
|
+
);
|
|
7269
|
+
}
|
|
7270
|
+
f = message.getActual();
|
|
7271
|
+
if (f !== 0.0) {
|
|
7272
|
+
writer.writeDouble(
|
|
7273
|
+
4,
|
|
7274
|
+
f
|
|
7275
|
+
);
|
|
7276
|
+
}
|
|
7277
|
+
f = message.getCommitment();
|
|
7278
|
+
if (f !== 0.0) {
|
|
7279
|
+
writer.writeDouble(
|
|
7280
|
+
5,
|
|
7281
|
+
f
|
|
7282
|
+
);
|
|
7283
|
+
}
|
|
7284
|
+
};
|
|
7285
|
+
|
|
7286
|
+
|
|
7287
|
+
/**
|
|
7288
|
+
* optional string month = 1;
|
|
7289
|
+
* @return {string}
|
|
7290
|
+
*/
|
|
7291
|
+
proto.ReportBudgetTransaction.prototype.getMonth = function() {
|
|
7292
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7293
|
+
};
|
|
7294
|
+
|
|
7295
|
+
|
|
7296
|
+
/**
|
|
7297
|
+
* @param {string} value
|
|
7298
|
+
* @return {!proto.ReportBudgetTransaction} returns this
|
|
7299
|
+
*/
|
|
7300
|
+
proto.ReportBudgetTransaction.prototype.setMonth = function(value) {
|
|
7301
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7302
|
+
};
|
|
7303
|
+
|
|
7304
|
+
|
|
7305
|
+
/**
|
|
7306
|
+
* optional double budget = 3;
|
|
7307
|
+
* @return {number}
|
|
7308
|
+
*/
|
|
7309
|
+
proto.ReportBudgetTransaction.prototype.getBudget = function() {
|
|
7310
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
7311
|
+
};
|
|
7312
|
+
|
|
7313
|
+
|
|
7314
|
+
/**
|
|
7315
|
+
* @param {number} value
|
|
7316
|
+
* @return {!proto.ReportBudgetTransaction} returns this
|
|
7317
|
+
*/
|
|
7318
|
+
proto.ReportBudgetTransaction.prototype.setBudget = function(value) {
|
|
7319
|
+
return jspb.Message.setField(this, 3, value);
|
|
7320
|
+
};
|
|
7321
|
+
|
|
7322
|
+
|
|
7323
|
+
/**
|
|
7324
|
+
* Clears the field making it undefined.
|
|
7325
|
+
* @return {!proto.ReportBudgetTransaction} returns this
|
|
7326
|
+
*/
|
|
7327
|
+
proto.ReportBudgetTransaction.prototype.clearBudget = function() {
|
|
7328
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
7329
|
+
};
|
|
7330
|
+
|
|
7331
|
+
|
|
7332
|
+
/**
|
|
7333
|
+
* Returns whether this field is set.
|
|
7334
|
+
* @return {boolean}
|
|
7335
|
+
*/
|
|
7336
|
+
proto.ReportBudgetTransaction.prototype.hasBudget = function() {
|
|
7337
|
+
return jspb.Message.getField(this, 3) != null;
|
|
7338
|
+
};
|
|
7339
|
+
|
|
7340
|
+
|
|
7341
|
+
/**
|
|
7342
|
+
* optional double actual = 4;
|
|
7343
|
+
* @return {number}
|
|
7344
|
+
*/
|
|
7345
|
+
proto.ReportBudgetTransaction.prototype.getActual = function() {
|
|
7346
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
7347
|
+
};
|
|
7348
|
+
|
|
7349
|
+
|
|
7350
|
+
/**
|
|
7351
|
+
* @param {number} value
|
|
7352
|
+
* @return {!proto.ReportBudgetTransaction} returns this
|
|
7353
|
+
*/
|
|
7354
|
+
proto.ReportBudgetTransaction.prototype.setActual = function(value) {
|
|
7355
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
7356
|
+
};
|
|
7357
|
+
|
|
7358
|
+
|
|
7359
|
+
/**
|
|
7360
|
+
* optional double commitment = 5;
|
|
7361
|
+
* @return {number}
|
|
7362
|
+
*/
|
|
7363
|
+
proto.ReportBudgetTransaction.prototype.getCommitment = function() {
|
|
7364
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
7365
|
+
};
|
|
7366
|
+
|
|
7367
|
+
|
|
7368
|
+
/**
|
|
7369
|
+
* @param {number} value
|
|
7370
|
+
* @return {!proto.ReportBudgetTransaction} returns this
|
|
7371
|
+
*/
|
|
7372
|
+
proto.ReportBudgetTransaction.prototype.setCommitment = function(value) {
|
|
7373
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
7374
|
+
};
|
|
7375
|
+
|
|
7376
|
+
|
|
7377
|
+
|
|
7378
|
+
/**
|
|
7379
|
+
* List of repeated fields within this message type.
|
|
7380
|
+
* @private {!Array<number>}
|
|
7381
|
+
* @const
|
|
7382
|
+
*/
|
|
7383
|
+
proto.DetailTransactionBudget.repeatedFields_ = [8];
|
|
7384
|
+
|
|
7385
|
+
|
|
7386
|
+
|
|
7387
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7388
|
+
/**
|
|
7389
|
+
* Creates an object representation of this proto.
|
|
7390
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7391
|
+
* Optional fields that are not set will be set to undefined.
|
|
7392
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7393
|
+
* For the list of reserved names please see:
|
|
7394
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7395
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7396
|
+
* JSPB instance for transitional soy proto support:
|
|
7397
|
+
* http://goto/soy-param-migration
|
|
7398
|
+
* @return {!Object}
|
|
7399
|
+
*/
|
|
7400
|
+
proto.DetailTransactionBudget.prototype.toObject = function(opt_includeInstance) {
|
|
7401
|
+
return proto.DetailTransactionBudget.toObject(opt_includeInstance, this);
|
|
7402
|
+
};
|
|
7403
|
+
|
|
7404
|
+
|
|
7405
|
+
/**
|
|
7406
|
+
* Static version of the {@see toObject} method.
|
|
7407
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7408
|
+
* the JSPB instance for transitional soy proto support:
|
|
7409
|
+
* http://goto/soy-param-migration
|
|
7410
|
+
* @param {!proto.DetailTransactionBudget} msg The msg instance to transform.
|
|
7411
|
+
* @return {!Object}
|
|
7412
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7413
|
+
*/
|
|
7414
|
+
proto.DetailTransactionBudget.toObject = function(includeInstance, msg) {
|
|
7415
|
+
var f, obj = {
|
|
7416
|
+
documentNumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7417
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7418
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7419
|
+
budget: (f = jspb.Message.getOptionalFloatingPointField(msg, 4)) == null ? undefined : f,
|
|
7420
|
+
actual: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
7421
|
+
commitment: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
7422
|
+
generalLedger: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
7423
|
+
childrenList: jspb.Message.toObjectList(msg.getChildrenList(),
|
|
7424
|
+
proto.DetailTransactionBudget.toObject, includeInstance),
|
|
7425
|
+
quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
|
|
7426
|
+
price: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0)
|
|
7427
|
+
};
|
|
7428
|
+
|
|
7429
|
+
if (includeInstance) {
|
|
7430
|
+
obj.$jspbMessageInstance = msg;
|
|
7431
|
+
}
|
|
7432
|
+
return obj;
|
|
7433
|
+
};
|
|
7434
|
+
}
|
|
7435
|
+
|
|
7436
|
+
|
|
7437
|
+
/**
|
|
7438
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7439
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7440
|
+
* @return {!proto.DetailTransactionBudget}
|
|
7441
|
+
*/
|
|
7442
|
+
proto.DetailTransactionBudget.deserializeBinary = function(bytes) {
|
|
7443
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7444
|
+
var msg = new proto.DetailTransactionBudget;
|
|
7445
|
+
return proto.DetailTransactionBudget.deserializeBinaryFromReader(msg, reader);
|
|
7446
|
+
};
|
|
7447
|
+
|
|
7448
|
+
|
|
7449
|
+
/**
|
|
7450
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7451
|
+
* given reader into the given message object.
|
|
7452
|
+
* @param {!proto.DetailTransactionBudget} msg The message object to deserialize into.
|
|
7453
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7454
|
+
* @return {!proto.DetailTransactionBudget}
|
|
7455
|
+
*/
|
|
7456
|
+
proto.DetailTransactionBudget.deserializeBinaryFromReader = function(msg, reader) {
|
|
7457
|
+
while (reader.nextField()) {
|
|
7458
|
+
if (reader.isEndGroup()) {
|
|
7459
|
+
break;
|
|
7460
|
+
}
|
|
7461
|
+
var field = reader.getFieldNumber();
|
|
7462
|
+
switch (field) {
|
|
7463
|
+
case 1:
|
|
7464
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
7465
|
+
msg.setDocumentNumber(value);
|
|
7466
|
+
break;
|
|
7467
|
+
case 2:
|
|
7468
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
7469
|
+
msg.setDescription(value);
|
|
7470
|
+
break;
|
|
7471
|
+
case 3:
|
|
7472
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
7473
|
+
msg.setTitle(value);
|
|
7474
|
+
break;
|
|
7475
|
+
case 4:
|
|
7476
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
7477
|
+
msg.setBudget(value);
|
|
7478
|
+
break;
|
|
7479
|
+
case 5:
|
|
7480
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
7481
|
+
msg.setActual(value);
|
|
7482
|
+
break;
|
|
7483
|
+
case 6:
|
|
7484
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
7485
|
+
msg.setCommitment(value);
|
|
7486
|
+
break;
|
|
7487
|
+
case 7:
|
|
7488
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
7489
|
+
msg.setGeneralLedger(value);
|
|
7490
|
+
break;
|
|
7491
|
+
case 8:
|
|
7492
|
+
var value = new proto.DetailTransactionBudget;
|
|
7493
|
+
reader.readMessage(value,proto.DetailTransactionBudget.deserializeBinaryFromReader);
|
|
7494
|
+
msg.addChildren(value);
|
|
7495
|
+
break;
|
|
7496
|
+
case 9:
|
|
7497
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
7498
|
+
msg.setQuantity(value);
|
|
7499
|
+
break;
|
|
7500
|
+
case 10:
|
|
7501
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
7502
|
+
msg.setPrice(value);
|
|
7503
|
+
break;
|
|
7504
|
+
default:
|
|
7505
|
+
reader.skipField();
|
|
7506
|
+
break;
|
|
7507
|
+
}
|
|
7508
|
+
}
|
|
7509
|
+
return msg;
|
|
7510
|
+
};
|
|
7511
|
+
|
|
7512
|
+
|
|
7513
|
+
/**
|
|
7514
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7515
|
+
* @return {!Uint8Array}
|
|
7516
|
+
*/
|
|
7517
|
+
proto.DetailTransactionBudget.prototype.serializeBinary = function() {
|
|
7518
|
+
var writer = new jspb.BinaryWriter();
|
|
7519
|
+
proto.DetailTransactionBudget.serializeBinaryToWriter(this, writer);
|
|
7520
|
+
return writer.getResultBuffer();
|
|
7521
|
+
};
|
|
7522
|
+
|
|
7523
|
+
|
|
7524
|
+
/**
|
|
7525
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7526
|
+
* format), writing to the given BinaryWriter.
|
|
7527
|
+
* @param {!proto.DetailTransactionBudget} message
|
|
7528
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7529
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7530
|
+
*/
|
|
7531
|
+
proto.DetailTransactionBudget.serializeBinaryToWriter = function(message, writer) {
|
|
7532
|
+
var f = undefined;
|
|
7533
|
+
f = message.getDocumentNumber();
|
|
7534
|
+
if (f.length > 0) {
|
|
7535
|
+
writer.writeString(
|
|
7536
|
+
1,
|
|
7537
|
+
f
|
|
7538
|
+
);
|
|
7539
|
+
}
|
|
7540
|
+
f = message.getDescription();
|
|
7541
|
+
if (f.length > 0) {
|
|
7542
|
+
writer.writeString(
|
|
7543
|
+
2,
|
|
7544
|
+
f
|
|
7545
|
+
);
|
|
7546
|
+
}
|
|
7547
|
+
f = message.getTitle();
|
|
7548
|
+
if (f.length > 0) {
|
|
7549
|
+
writer.writeString(
|
|
7550
|
+
3,
|
|
7551
|
+
f
|
|
7552
|
+
);
|
|
7553
|
+
}
|
|
7554
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
7555
|
+
if (f != null) {
|
|
7556
|
+
writer.writeDouble(
|
|
7557
|
+
4,
|
|
7558
|
+
f
|
|
7559
|
+
);
|
|
7560
|
+
}
|
|
7561
|
+
f = message.getActual();
|
|
7562
|
+
if (f !== 0.0) {
|
|
7563
|
+
writer.writeDouble(
|
|
7564
|
+
5,
|
|
7565
|
+
f
|
|
7566
|
+
);
|
|
7567
|
+
}
|
|
7568
|
+
f = message.getCommitment();
|
|
7569
|
+
if (f !== 0.0) {
|
|
7570
|
+
writer.writeDouble(
|
|
7571
|
+
6,
|
|
7572
|
+
f
|
|
7573
|
+
);
|
|
7574
|
+
}
|
|
7575
|
+
f = message.getGeneralLedger();
|
|
7576
|
+
if (f.length > 0) {
|
|
7577
|
+
writer.writeString(
|
|
7578
|
+
7,
|
|
7579
|
+
f
|
|
7580
|
+
);
|
|
7581
|
+
}
|
|
7582
|
+
f = message.getChildrenList();
|
|
7583
|
+
if (f.length > 0) {
|
|
7584
|
+
writer.writeRepeatedMessage(
|
|
7585
|
+
8,
|
|
7586
|
+
f,
|
|
7587
|
+
proto.DetailTransactionBudget.serializeBinaryToWriter
|
|
7588
|
+
);
|
|
7589
|
+
}
|
|
7590
|
+
f = message.getQuantity();
|
|
7591
|
+
if (f !== 0.0) {
|
|
7592
|
+
writer.writeDouble(
|
|
7593
|
+
9,
|
|
7594
|
+
f
|
|
7595
|
+
);
|
|
7596
|
+
}
|
|
7597
|
+
f = message.getPrice();
|
|
7598
|
+
if (f !== 0.0) {
|
|
7599
|
+
writer.writeDouble(
|
|
7600
|
+
10,
|
|
7601
|
+
f
|
|
7602
|
+
);
|
|
7603
|
+
}
|
|
7604
|
+
};
|
|
7605
|
+
|
|
7606
|
+
|
|
7607
|
+
/**
|
|
7608
|
+
* optional string document_number = 1;
|
|
7609
|
+
* @return {string}
|
|
7610
|
+
*/
|
|
7611
|
+
proto.DetailTransactionBudget.prototype.getDocumentNumber = function() {
|
|
7612
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7613
|
+
};
|
|
7614
|
+
|
|
7615
|
+
|
|
7616
|
+
/**
|
|
7617
|
+
* @param {string} value
|
|
7618
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7619
|
+
*/
|
|
7620
|
+
proto.DetailTransactionBudget.prototype.setDocumentNumber = function(value) {
|
|
7621
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7622
|
+
};
|
|
7623
|
+
|
|
7624
|
+
|
|
7625
|
+
/**
|
|
7626
|
+
* optional string description = 2;
|
|
7627
|
+
* @return {string}
|
|
7628
|
+
*/
|
|
7629
|
+
proto.DetailTransactionBudget.prototype.getDescription = function() {
|
|
7630
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7631
|
+
};
|
|
7632
|
+
|
|
7633
|
+
|
|
7634
|
+
/**
|
|
7635
|
+
* @param {string} value
|
|
7636
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7637
|
+
*/
|
|
7638
|
+
proto.DetailTransactionBudget.prototype.setDescription = function(value) {
|
|
7639
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7640
|
+
};
|
|
7641
|
+
|
|
7642
|
+
|
|
7643
|
+
/**
|
|
7644
|
+
* optional string title = 3;
|
|
7645
|
+
* @return {string}
|
|
7646
|
+
*/
|
|
7647
|
+
proto.DetailTransactionBudget.prototype.getTitle = function() {
|
|
7648
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7649
|
+
};
|
|
7650
|
+
|
|
7651
|
+
|
|
7652
|
+
/**
|
|
7653
|
+
* @param {string} value
|
|
7654
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7655
|
+
*/
|
|
7656
|
+
proto.DetailTransactionBudget.prototype.setTitle = function(value) {
|
|
7657
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7658
|
+
};
|
|
7659
|
+
|
|
7660
|
+
|
|
7661
|
+
/**
|
|
7662
|
+
* optional double budget = 4;
|
|
7663
|
+
* @return {number}
|
|
7664
|
+
*/
|
|
7665
|
+
proto.DetailTransactionBudget.prototype.getBudget = function() {
|
|
7666
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
7667
|
+
};
|
|
7668
|
+
|
|
7669
|
+
|
|
7670
|
+
/**
|
|
7671
|
+
* @param {number} value
|
|
7672
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7673
|
+
*/
|
|
7674
|
+
proto.DetailTransactionBudget.prototype.setBudget = function(value) {
|
|
7675
|
+
return jspb.Message.setField(this, 4, value);
|
|
7676
|
+
};
|
|
7677
|
+
|
|
7678
|
+
|
|
7679
|
+
/**
|
|
7680
|
+
* Clears the field making it undefined.
|
|
7681
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7682
|
+
*/
|
|
7683
|
+
proto.DetailTransactionBudget.prototype.clearBudget = function() {
|
|
7684
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
7685
|
+
};
|
|
7686
|
+
|
|
7687
|
+
|
|
7688
|
+
/**
|
|
7689
|
+
* Returns whether this field is set.
|
|
7690
|
+
* @return {boolean}
|
|
7691
|
+
*/
|
|
7692
|
+
proto.DetailTransactionBudget.prototype.hasBudget = function() {
|
|
7693
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7694
|
+
};
|
|
7695
|
+
|
|
7696
|
+
|
|
7697
|
+
/**
|
|
7698
|
+
* optional double actual = 5;
|
|
7699
|
+
* @return {number}
|
|
7700
|
+
*/
|
|
7701
|
+
proto.DetailTransactionBudget.prototype.getActual = function() {
|
|
7702
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
7703
|
+
};
|
|
7704
|
+
|
|
7705
|
+
|
|
7706
|
+
/**
|
|
7707
|
+
* @param {number} value
|
|
7708
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7709
|
+
*/
|
|
7710
|
+
proto.DetailTransactionBudget.prototype.setActual = function(value) {
|
|
7711
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
7712
|
+
};
|
|
7713
|
+
|
|
7714
|
+
|
|
7715
|
+
/**
|
|
7716
|
+
* optional double commitment = 6;
|
|
7717
|
+
* @return {number}
|
|
7718
|
+
*/
|
|
7719
|
+
proto.DetailTransactionBudget.prototype.getCommitment = function() {
|
|
7720
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
7721
|
+
};
|
|
7722
|
+
|
|
7723
|
+
|
|
7724
|
+
/**
|
|
7725
|
+
* @param {number} value
|
|
7726
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7727
|
+
*/
|
|
7728
|
+
proto.DetailTransactionBudget.prototype.setCommitment = function(value) {
|
|
7729
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
7730
|
+
};
|
|
7731
|
+
|
|
7732
|
+
|
|
7733
|
+
/**
|
|
7734
|
+
* optional string general_ledger = 7;
|
|
7735
|
+
* @return {string}
|
|
7736
|
+
*/
|
|
7737
|
+
proto.DetailTransactionBudget.prototype.getGeneralLedger = function() {
|
|
7738
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
7739
|
+
};
|
|
7740
|
+
|
|
7741
|
+
|
|
7742
|
+
/**
|
|
7743
|
+
* @param {string} value
|
|
7744
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7745
|
+
*/
|
|
7746
|
+
proto.DetailTransactionBudget.prototype.setGeneralLedger = function(value) {
|
|
7747
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
7748
|
+
};
|
|
7749
|
+
|
|
7750
|
+
|
|
7751
|
+
/**
|
|
7752
|
+
* repeated DetailTransactionBudget children = 8;
|
|
7753
|
+
* @return {!Array<!proto.DetailTransactionBudget>}
|
|
7754
|
+
*/
|
|
7755
|
+
proto.DetailTransactionBudget.prototype.getChildrenList = function() {
|
|
7756
|
+
return /** @type{!Array<!proto.DetailTransactionBudget>} */ (
|
|
7757
|
+
jspb.Message.getRepeatedWrapperField(this, proto.DetailTransactionBudget, 8));
|
|
7758
|
+
};
|
|
7759
|
+
|
|
7760
|
+
|
|
7761
|
+
/**
|
|
7762
|
+
* @param {!Array<!proto.DetailTransactionBudget>} value
|
|
7763
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7764
|
+
*/
|
|
7765
|
+
proto.DetailTransactionBudget.prototype.setChildrenList = function(value) {
|
|
7766
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
7767
|
+
};
|
|
7768
|
+
|
|
7769
|
+
|
|
7770
|
+
/**
|
|
7771
|
+
* @param {!proto.DetailTransactionBudget=} opt_value
|
|
7772
|
+
* @param {number=} opt_index
|
|
7773
|
+
* @return {!proto.DetailTransactionBudget}
|
|
7774
|
+
*/
|
|
7775
|
+
proto.DetailTransactionBudget.prototype.addChildren = function(opt_value, opt_index) {
|
|
7776
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.DetailTransactionBudget, opt_index);
|
|
7777
|
+
};
|
|
7778
|
+
|
|
7779
|
+
|
|
7780
|
+
/**
|
|
7781
|
+
* Clears the list making it empty but non-null.
|
|
7782
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7783
|
+
*/
|
|
7784
|
+
proto.DetailTransactionBudget.prototype.clearChildrenList = function() {
|
|
7785
|
+
return this.setChildrenList([]);
|
|
7786
|
+
};
|
|
7787
|
+
|
|
7788
|
+
|
|
7789
|
+
/**
|
|
7790
|
+
* optional double quantity = 9;
|
|
7791
|
+
* @return {number}
|
|
7792
|
+
*/
|
|
7793
|
+
proto.DetailTransactionBudget.prototype.getQuantity = function() {
|
|
7794
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
|
|
7795
|
+
};
|
|
7796
|
+
|
|
7797
|
+
|
|
7798
|
+
/**
|
|
7799
|
+
* @param {number} value
|
|
7800
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7801
|
+
*/
|
|
7802
|
+
proto.DetailTransactionBudget.prototype.setQuantity = function(value) {
|
|
7803
|
+
return jspb.Message.setProto3FloatField(this, 9, value);
|
|
7804
|
+
};
|
|
7805
|
+
|
|
7806
|
+
|
|
7807
|
+
/**
|
|
7808
|
+
* optional double price = 10;
|
|
7809
|
+
* @return {number}
|
|
7810
|
+
*/
|
|
7811
|
+
proto.DetailTransactionBudget.prototype.getPrice = function() {
|
|
7812
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
|
|
7813
|
+
};
|
|
7814
|
+
|
|
7815
|
+
|
|
7816
|
+
/**
|
|
7817
|
+
* @param {number} value
|
|
7818
|
+
* @return {!proto.DetailTransactionBudget} returns this
|
|
7819
|
+
*/
|
|
7820
|
+
proto.DetailTransactionBudget.prototype.setPrice = function(value) {
|
|
7821
|
+
return jspb.Message.setProto3FloatField(this, 10, value);
|
|
7822
|
+
};
|
|
7823
|
+
|
|
7824
|
+
|
|
7825
|
+
|
|
7826
|
+
/**
|
|
7827
|
+
* List of repeated fields within this message type.
|
|
7828
|
+
* @private {!Array<number>}
|
|
7829
|
+
* @const
|
|
7830
|
+
*/
|
|
7831
|
+
proto.ReportBudgetTransactionMonth.repeatedFields_ = [1];
|
|
7832
|
+
|
|
7833
|
+
|
|
7834
|
+
|
|
7835
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7836
|
+
/**
|
|
7837
|
+
* Creates an object representation of this proto.
|
|
7838
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7839
|
+
* Optional fields that are not set will be set to undefined.
|
|
7840
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7841
|
+
* For the list of reserved names please see:
|
|
7842
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7843
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7844
|
+
* JSPB instance for transitional soy proto support:
|
|
7845
|
+
* http://goto/soy-param-migration
|
|
7846
|
+
* @return {!Object}
|
|
7847
|
+
*/
|
|
7848
|
+
proto.ReportBudgetTransactionMonth.prototype.toObject = function(opt_includeInstance) {
|
|
7849
|
+
return proto.ReportBudgetTransactionMonth.toObject(opt_includeInstance, this);
|
|
7850
|
+
};
|
|
7851
|
+
|
|
7852
|
+
|
|
7853
|
+
/**
|
|
7854
|
+
* Static version of the {@see toObject} method.
|
|
7855
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7856
|
+
* the JSPB instance for transitional soy proto support:
|
|
7857
|
+
* http://goto/soy-param-migration
|
|
7858
|
+
* @param {!proto.ReportBudgetTransactionMonth} msg The msg instance to transform.
|
|
7859
|
+
* @return {!Object}
|
|
7860
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7861
|
+
*/
|
|
7862
|
+
proto.ReportBudgetTransactionMonth.toObject = function(includeInstance, msg) {
|
|
7863
|
+
var f, obj = {
|
|
7864
|
+
budgetPlanningList: jspb.Message.toObjectList(msg.getBudgetPlanningList(),
|
|
7865
|
+
proto.GroupTransactionCode.toObject, includeInstance)
|
|
7866
|
+
};
|
|
7867
|
+
|
|
7868
|
+
if (includeInstance) {
|
|
7869
|
+
obj.$jspbMessageInstance = msg;
|
|
7870
|
+
}
|
|
7871
|
+
return obj;
|
|
7872
|
+
};
|
|
7873
|
+
}
|
|
7874
|
+
|
|
7875
|
+
|
|
7876
|
+
/**
|
|
7877
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7878
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7879
|
+
* @return {!proto.ReportBudgetTransactionMonth}
|
|
7880
|
+
*/
|
|
7881
|
+
proto.ReportBudgetTransactionMonth.deserializeBinary = function(bytes) {
|
|
7882
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7883
|
+
var msg = new proto.ReportBudgetTransactionMonth;
|
|
7884
|
+
return proto.ReportBudgetTransactionMonth.deserializeBinaryFromReader(msg, reader);
|
|
7885
|
+
};
|
|
7886
|
+
|
|
7887
|
+
|
|
7888
|
+
/**
|
|
7889
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7890
|
+
* given reader into the given message object.
|
|
7891
|
+
* @param {!proto.ReportBudgetTransactionMonth} msg The message object to deserialize into.
|
|
7892
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7893
|
+
* @return {!proto.ReportBudgetTransactionMonth}
|
|
7894
|
+
*/
|
|
7895
|
+
proto.ReportBudgetTransactionMonth.deserializeBinaryFromReader = function(msg, reader) {
|
|
7896
|
+
while (reader.nextField()) {
|
|
7897
|
+
if (reader.isEndGroup()) {
|
|
7898
|
+
break;
|
|
7899
|
+
}
|
|
7900
|
+
var field = reader.getFieldNumber();
|
|
7901
|
+
switch (field) {
|
|
7902
|
+
case 1:
|
|
7903
|
+
var value = new proto.GroupTransactionCode;
|
|
7904
|
+
reader.readMessage(value,proto.GroupTransactionCode.deserializeBinaryFromReader);
|
|
7905
|
+
msg.addBudgetPlanning(value);
|
|
7906
|
+
break;
|
|
7907
|
+
default:
|
|
7908
|
+
reader.skipField();
|
|
7909
|
+
break;
|
|
7910
|
+
}
|
|
7911
|
+
}
|
|
7912
|
+
return msg;
|
|
7913
|
+
};
|
|
7914
|
+
|
|
7915
|
+
|
|
7916
|
+
/**
|
|
7917
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7918
|
+
* @return {!Uint8Array}
|
|
7919
|
+
*/
|
|
7920
|
+
proto.ReportBudgetTransactionMonth.prototype.serializeBinary = function() {
|
|
7921
|
+
var writer = new jspb.BinaryWriter();
|
|
7922
|
+
proto.ReportBudgetTransactionMonth.serializeBinaryToWriter(this, writer);
|
|
7923
|
+
return writer.getResultBuffer();
|
|
7924
|
+
};
|
|
7925
|
+
|
|
7926
|
+
|
|
7927
|
+
/**
|
|
7928
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7929
|
+
* format), writing to the given BinaryWriter.
|
|
7930
|
+
* @param {!proto.ReportBudgetTransactionMonth} message
|
|
7931
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7932
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7933
|
+
*/
|
|
7934
|
+
proto.ReportBudgetTransactionMonth.serializeBinaryToWriter = function(message, writer) {
|
|
7935
|
+
var f = undefined;
|
|
7936
|
+
f = message.getBudgetPlanningList();
|
|
7937
|
+
if (f.length > 0) {
|
|
7938
|
+
writer.writeRepeatedMessage(
|
|
7939
|
+
1,
|
|
7940
|
+
f,
|
|
7941
|
+
proto.GroupTransactionCode.serializeBinaryToWriter
|
|
7942
|
+
);
|
|
7943
|
+
}
|
|
7944
|
+
};
|
|
7945
|
+
|
|
7946
|
+
|
|
7947
|
+
/**
|
|
7948
|
+
* repeated GroupTransactionCode budget_planning = 1;
|
|
7949
|
+
* @return {!Array<!proto.GroupTransactionCode>}
|
|
7950
|
+
*/
|
|
7951
|
+
proto.ReportBudgetTransactionMonth.prototype.getBudgetPlanningList = function() {
|
|
7952
|
+
return /** @type{!Array<!proto.GroupTransactionCode>} */ (
|
|
7953
|
+
jspb.Message.getRepeatedWrapperField(this, proto.GroupTransactionCode, 1));
|
|
7954
|
+
};
|
|
7955
|
+
|
|
7956
|
+
|
|
7957
|
+
/**
|
|
7958
|
+
* @param {!Array<!proto.GroupTransactionCode>} value
|
|
7959
|
+
* @return {!proto.ReportBudgetTransactionMonth} returns this
|
|
7960
|
+
*/
|
|
7961
|
+
proto.ReportBudgetTransactionMonth.prototype.setBudgetPlanningList = function(value) {
|
|
7962
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
7963
|
+
};
|
|
7964
|
+
|
|
7965
|
+
|
|
7966
|
+
/**
|
|
7967
|
+
* @param {!proto.GroupTransactionCode=} opt_value
|
|
7968
|
+
* @param {number=} opt_index
|
|
7969
|
+
* @return {!proto.GroupTransactionCode}
|
|
7970
|
+
*/
|
|
7971
|
+
proto.ReportBudgetTransactionMonth.prototype.addBudgetPlanning = function(opt_value, opt_index) {
|
|
7972
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.GroupTransactionCode, opt_index);
|
|
7973
|
+
};
|
|
7974
|
+
|
|
7975
|
+
|
|
7976
|
+
/**
|
|
7977
|
+
* Clears the list making it empty but non-null.
|
|
7978
|
+
* @return {!proto.ReportBudgetTransactionMonth} returns this
|
|
7979
|
+
*/
|
|
7980
|
+
proto.ReportBudgetTransactionMonth.prototype.clearBudgetPlanningList = function() {
|
|
7981
|
+
return this.setBudgetPlanningList([]);
|
|
7982
|
+
};
|
|
7983
|
+
|
|
7984
|
+
|
|
7985
|
+
|
|
7986
|
+
/**
|
|
7987
|
+
* List of repeated fields within this message type.
|
|
7988
|
+
* @private {!Array<number>}
|
|
7989
|
+
* @const
|
|
7990
|
+
*/
|
|
7991
|
+
proto.GetYearReportResponse.repeatedFields_ = [1];
|
|
7992
|
+
|
|
7993
|
+
|
|
7994
|
+
|
|
7995
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7996
|
+
/**
|
|
7997
|
+
* Creates an object representation of this proto.
|
|
7998
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7999
|
+
* Optional fields that are not set will be set to undefined.
|
|
8000
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8001
|
+
* For the list of reserved names please see:
|
|
8002
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8003
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8004
|
+
* JSPB instance for transitional soy proto support:
|
|
8005
|
+
* http://goto/soy-param-migration
|
|
8006
|
+
* @return {!Object}
|
|
8007
|
+
*/
|
|
8008
|
+
proto.GetYearReportResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8009
|
+
return proto.GetYearReportResponse.toObject(opt_includeInstance, this);
|
|
8010
|
+
};
|
|
8011
|
+
|
|
8012
|
+
|
|
8013
|
+
/**
|
|
8014
|
+
* Static version of the {@see toObject} method.
|
|
8015
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8016
|
+
* the JSPB instance for transitional soy proto support:
|
|
8017
|
+
* http://goto/soy-param-migration
|
|
8018
|
+
* @param {!proto.GetYearReportResponse} msg The msg instance to transform.
|
|
8019
|
+
* @return {!Object}
|
|
8020
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8021
|
+
*/
|
|
8022
|
+
proto.GetYearReportResponse.toObject = function(includeInstance, msg) {
|
|
8023
|
+
var f, obj = {
|
|
8024
|
+
reportsList: jspb.Message.toObjectList(msg.getReportsList(),
|
|
8025
|
+
proto.ReportBudgetTransaction.toObject, includeInstance)
|
|
8026
|
+
};
|
|
8027
|
+
|
|
8028
|
+
if (includeInstance) {
|
|
8029
|
+
obj.$jspbMessageInstance = msg;
|
|
8030
|
+
}
|
|
8031
|
+
return obj;
|
|
8032
|
+
};
|
|
8033
|
+
}
|
|
8034
|
+
|
|
8035
|
+
|
|
8036
|
+
/**
|
|
8037
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8038
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8039
|
+
* @return {!proto.GetYearReportResponse}
|
|
8040
|
+
*/
|
|
8041
|
+
proto.GetYearReportResponse.deserializeBinary = function(bytes) {
|
|
8042
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8043
|
+
var msg = new proto.GetYearReportResponse;
|
|
8044
|
+
return proto.GetYearReportResponse.deserializeBinaryFromReader(msg, reader);
|
|
8045
|
+
};
|
|
8046
|
+
|
|
8047
|
+
|
|
8048
|
+
/**
|
|
8049
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8050
|
+
* given reader into the given message object.
|
|
8051
|
+
* @param {!proto.GetYearReportResponse} msg The message object to deserialize into.
|
|
8052
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8053
|
+
* @return {!proto.GetYearReportResponse}
|
|
8054
|
+
*/
|
|
8055
|
+
proto.GetYearReportResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8056
|
+
while (reader.nextField()) {
|
|
8057
|
+
if (reader.isEndGroup()) {
|
|
8058
|
+
break;
|
|
8059
|
+
}
|
|
8060
|
+
var field = reader.getFieldNumber();
|
|
8061
|
+
switch (field) {
|
|
8062
|
+
case 1:
|
|
8063
|
+
var value = new proto.ReportBudgetTransaction;
|
|
8064
|
+
reader.readMessage(value,proto.ReportBudgetTransaction.deserializeBinaryFromReader);
|
|
8065
|
+
msg.addReports(value);
|
|
8066
|
+
break;
|
|
8067
|
+
default:
|
|
8068
|
+
reader.skipField();
|
|
8069
|
+
break;
|
|
8070
|
+
}
|
|
8071
|
+
}
|
|
8072
|
+
return msg;
|
|
8073
|
+
};
|
|
8074
|
+
|
|
8075
|
+
|
|
8076
|
+
/**
|
|
8077
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8078
|
+
* @return {!Uint8Array}
|
|
8079
|
+
*/
|
|
8080
|
+
proto.GetYearReportResponse.prototype.serializeBinary = function() {
|
|
8081
|
+
var writer = new jspb.BinaryWriter();
|
|
8082
|
+
proto.GetYearReportResponse.serializeBinaryToWriter(this, writer);
|
|
8083
|
+
return writer.getResultBuffer();
|
|
8084
|
+
};
|
|
8085
|
+
|
|
8086
|
+
|
|
8087
|
+
/**
|
|
8088
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8089
|
+
* format), writing to the given BinaryWriter.
|
|
8090
|
+
* @param {!proto.GetYearReportResponse} message
|
|
8091
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8092
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8093
|
+
*/
|
|
8094
|
+
proto.GetYearReportResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8095
|
+
var f = undefined;
|
|
8096
|
+
f = message.getReportsList();
|
|
8097
|
+
if (f.length > 0) {
|
|
8098
|
+
writer.writeRepeatedMessage(
|
|
8099
|
+
1,
|
|
8100
|
+
f,
|
|
8101
|
+
proto.ReportBudgetTransaction.serializeBinaryToWriter
|
|
8102
|
+
);
|
|
8103
|
+
}
|
|
8104
|
+
};
|
|
8105
|
+
|
|
8106
|
+
|
|
8107
|
+
/**
|
|
8108
|
+
* repeated ReportBudgetTransaction reports = 1;
|
|
8109
|
+
* @return {!Array<!proto.ReportBudgetTransaction>}
|
|
8110
|
+
*/
|
|
8111
|
+
proto.GetYearReportResponse.prototype.getReportsList = function() {
|
|
8112
|
+
return /** @type{!Array<!proto.ReportBudgetTransaction>} */ (
|
|
8113
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ReportBudgetTransaction, 1));
|
|
8114
|
+
};
|
|
8115
|
+
|
|
8116
|
+
|
|
8117
|
+
/**
|
|
8118
|
+
* @param {!Array<!proto.ReportBudgetTransaction>} value
|
|
8119
|
+
* @return {!proto.GetYearReportResponse} returns this
|
|
8120
|
+
*/
|
|
8121
|
+
proto.GetYearReportResponse.prototype.setReportsList = function(value) {
|
|
8122
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
8123
|
+
};
|
|
8124
|
+
|
|
8125
|
+
|
|
8126
|
+
/**
|
|
8127
|
+
* @param {!proto.ReportBudgetTransaction=} opt_value
|
|
8128
|
+
* @param {number=} opt_index
|
|
8129
|
+
* @return {!proto.ReportBudgetTransaction}
|
|
8130
|
+
*/
|
|
8131
|
+
proto.GetYearReportResponse.prototype.addReports = function(opt_value, opt_index) {
|
|
8132
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ReportBudgetTransaction, opt_index);
|
|
8133
|
+
};
|
|
8134
|
+
|
|
8135
|
+
|
|
8136
|
+
/**
|
|
8137
|
+
* Clears the list making it empty but non-null.
|
|
8138
|
+
* @return {!proto.GetYearReportResponse} returns this
|
|
8139
|
+
*/
|
|
8140
|
+
proto.GetYearReportResponse.prototype.clearReportsList = function() {
|
|
8141
|
+
return this.setReportsList([]);
|
|
8142
|
+
};
|
|
8143
|
+
|
|
8144
|
+
|
|
4127
8145
|
goog.object.extend(exports, proto);
|