@aldiokta/protocgen 1.1.32 → 1.1.34

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.
Files changed (61) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment_pb.js +13 -19
  3. package/prisca/v1/account_group/account_group_pb.js +20 -26
  4. package/prisca/v1/bidding/bidding_pb.js +92 -98
  5. package/prisca/v1/chart_of_account/chart_of_account_pb.js +15 -21
  6. package/prisca/v1/core/access_manager/access_manager_pb.js +54 -60
  7. package/prisca/v1/core/auth/auth_pb.js +46 -52
  8. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +17 -23
  9. package/prisca/v1/core/company/company_pb.js +23 -29
  10. package/prisca/v1/core/currency/currency_pb.js +12 -18
  11. package/prisca/v1/core/department_material/department_material_pb.js +6 -12
  12. package/prisca/v1/core/employee/employee_pb.js +41 -47
  13. package/prisca/v1/core/file_upload/file_upload_pb.js +17 -23
  14. package/prisca/v1/core/incoterm/incoterm_pb.js +23 -29
  15. package/prisca/v1/core/item_transaction/item_transaction_pb.js +123 -129
  16. package/prisca/v1/core/job_grade/job_grade_pb.js +14 -20
  17. package/prisca/v1/core/job_position/job_position_pb.js +33 -39
  18. package/prisca/v1/core/job_title/job_title_pb.js +20 -26
  19. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +60 -36
  20. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +54 -30
  21. package/prisca/v1/core/link_data_source/link_data_source_pb.js +11 -17
  22. package/prisca/v1/core/location/location_pb.js +36 -42
  23. package/prisca/v1/core/material/material_pb.js +35 -41
  24. package/prisca/v1/core/material_group/material_group_pb.js +17 -23
  25. package/prisca/v1/core/material_type/material_type_pb.js +21 -27
  26. package/prisca/v1/core/messaging/email_template_pb.js +15 -21
  27. package/prisca/v1/core/messaging/messaging_pb.js +6 -12
  28. package/prisca/v1/core/messaging/notification_pb.js +32 -38
  29. package/prisca/v1/core/number_range/number_range_pb.js +20 -26
  30. package/prisca/v1/core/organization/organization_pb.js +23 -29
  31. package/prisca/v1/core/organization_level/organization_level_pb.js +10 -16
  32. package/prisca/v1/core/price_condition/price_condition_pb.js +23 -29
  33. package/prisca/v1/core/procurement/procurement_pb.js +12 -18
  34. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +2 -8
  35. package/prisca/v1/core/report/report_pb.js +23 -29
  36. package/prisca/v1/core/report/user_report_pb.js +6 -12
  37. package/prisca/v1/core/tax_code/tax_code_pb.js +17 -23
  38. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +14 -20
  39. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +60 -66
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +19 -25
  41. package/prisca/v1/core/users/users_pb.js +23 -29
  42. package/prisca/v1/core/work_location/work_location_pb.js +45 -51
  43. package/prisca/v1/core/workflow/workflow_pb.js +144 -90
  44. package/prisca/v1/delivery_order/delivery_order_pb.js +23 -29
  45. package/prisca/v1/document_type/document_type_pb.js +17 -23
  46. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +22 -28
  47. package/prisca/v1/global/meta/meta_pb.js +6 -12
  48. package/prisca/v1/good_receipt/good_receipt_pb.js +18 -24
  49. package/prisca/v1/invoice/invoice_grpc_pb.js +44 -0
  50. package/prisca/v1/invoice/invoice_pb.js +494 -46
  51. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +1 -0
  52. package/prisca/v1/purchase_order/purchase_order_pb.js +298 -140
  53. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +64 -70
  54. package/prisca/v1/purchasing_group/purchasing_group_pb.js +21 -27
  55. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +11 -17
  56. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +10 -16
  57. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +16 -22
  58. package/prisca/v1/quotation/quotation_pb.js +40 -46
  59. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +67 -73
  60. package/prisca/v1/valuation/valuation_pb.js +51 -57
  61. package/prisca/v1/vendor_domain/vendor_domain_pb.js +105 -81
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
19
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
@@ -52,8 +46,10 @@ goog.exportSymbol('proto.GetListInvoiceRes', null, global);
52
46
  goog.exportSymbol('proto.ItemGoodReceipt', null, global);
53
47
  goog.exportSymbol('proto.ItemInvoiceReference', null, global);
54
48
  goog.exportSymbol('proto.ItemPurchaseOrder', null, global);
49
+ goog.exportSymbol('proto.UpdateInvoiceForCompanyReq', null, global);
55
50
  goog.exportSymbol('proto.UpdateInvoiceReq', null, global);
56
51
  goog.exportSymbol('proto.UpdateInvoiceRes', null, global);
52
+ goog.exportSymbol('proto.UpdateInvoiceStatusReq', null, global);
57
53
  /**
58
54
  * Generated by JsPbCodeGenerator.
59
55
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -117,6 +113,27 @@ if (goog.DEBUG && !COMPILED) {
117
113
  */
118
114
  proto.CreateInvoiceRes.displayName = 'proto.CreateInvoiceRes';
119
115
  }
116
+ /**
117
+ * Generated by JsPbCodeGenerator.
118
+ * @param {Array=} opt_data Optional initial data array, typically from a
119
+ * server response, or constructed directly in Javascript. The array is used
120
+ * in place and becomes part of the constructed object. It is not cloned.
121
+ * If no data is provided, the constructed object will be empty, but still
122
+ * valid.
123
+ * @extends {jspb.Message}
124
+ * @constructor
125
+ */
126
+ proto.UpdateInvoiceForCompanyReq = function(opt_data) {
127
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.UpdateInvoiceForCompanyReq.repeatedFields_, null);
128
+ };
129
+ goog.inherits(proto.UpdateInvoiceForCompanyReq, jspb.Message);
130
+ if (goog.DEBUG && !COMPILED) {
131
+ /**
132
+ * @public
133
+ * @override
134
+ */
135
+ proto.UpdateInvoiceForCompanyReq.displayName = 'proto.UpdateInvoiceForCompanyReq';
136
+ }
120
137
  /**
121
138
  * Generated by JsPbCodeGenerator.
122
139
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -138,6 +155,27 @@ if (goog.DEBUG && !COMPILED) {
138
155
  */
139
156
  proto.UpdateInvoiceReq.displayName = 'proto.UpdateInvoiceReq';
140
157
  }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.UpdateInvoiceStatusReq = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
170
+ };
171
+ goog.inherits(proto.UpdateInvoiceStatusReq, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.UpdateInvoiceStatusReq.displayName = 'proto.UpdateInvoiceStatusReq';
178
+ }
141
179
  /**
142
180
  * Generated by JsPbCodeGenerator.
143
181
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -463,31 +501,31 @@ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
463
501
  var field = reader.getFieldNumber();
464
502
  switch (field) {
465
503
  case 1:
466
- var value = /** @type {string} */ (reader.readString());
504
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
467
505
  msg.setPurchaseOrderReferencesId(value);
468
506
  break;
469
507
  case 2:
470
- var value = /** @type {string} */ (reader.readString());
508
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
471
509
  msg.setVendorName(value);
472
510
  break;
473
511
  case 3:
474
- var value = /** @type {string} */ (reader.readString());
512
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
475
513
  msg.setInvoiceSubject(value);
476
514
  break;
477
515
  case 4:
478
- var value = /** @type {string} */ (reader.readString());
516
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
479
517
  msg.setInvoiceNumber(value);
480
518
  break;
481
519
  case 5:
482
- var value = /** @type {string} */ (reader.readString());
520
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
483
521
  msg.setInvoiceDate(value);
484
522
  break;
485
523
  case 6:
486
- var value = /** @type {string} */ (reader.readString());
524
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
487
525
  msg.setPlant(value);
488
526
  break;
489
527
  case 7:
490
- var value = /** @type {string} */ (reader.readString());
528
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
491
529
  msg.setInvoiceType(value);
492
530
  break;
493
531
  case 8:
@@ -501,19 +539,19 @@ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
501
539
  msg.addFiles(value);
502
540
  break;
503
541
  case 10:
504
- var value = /** @type {string} */ (reader.readString());
542
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
505
543
  msg.setTransactionType(value);
506
544
  break;
507
545
  case 11:
508
- var value = /** @type {string} */ (reader.readString());
546
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
509
547
  msg.setTaxReferences(value);
510
548
  break;
511
549
  case 12:
512
- var value = /** @type {string} */ (reader.readString());
550
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
513
551
  msg.setStatus(value);
514
552
  break;
515
553
  case 13:
516
- var value = /** @type {string} */ (reader.readString());
554
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
517
555
  msg.setRemarks(value);
518
556
  break;
519
557
  case 14:
@@ -522,7 +560,7 @@ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
522
560
  msg.addShippingFiles(value);
523
561
  break;
524
562
  case 15:
525
- var value = /** @type {string} */ (reader.readString());
563
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
526
564
  msg.setCustomTransaction(value);
527
565
  break;
528
566
  default:
@@ -1349,6 +1387,256 @@ proto.CreateInvoiceRes.prototype.hasMeta = function() {
1349
1387
 
1350
1388
 
1351
1389
 
1390
+ /**
1391
+ * List of repeated fields within this message type.
1392
+ * @private {!Array<number>}
1393
+ * @const
1394
+ */
1395
+ proto.UpdateInvoiceForCompanyReq.repeatedFields_ = [4];
1396
+
1397
+
1398
+
1399
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1400
+ /**
1401
+ * Creates an object representation of this proto.
1402
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1403
+ * Optional fields that are not set will be set to undefined.
1404
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1405
+ * For the list of reserved names please see:
1406
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1407
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1408
+ * JSPB instance for transitional soy proto support:
1409
+ * http://goto/soy-param-migration
1410
+ * @return {!Object}
1411
+ */
1412
+ proto.UpdateInvoiceForCompanyReq.prototype.toObject = function(opt_includeInstance) {
1413
+ return proto.UpdateInvoiceForCompanyReq.toObject(opt_includeInstance, this);
1414
+ };
1415
+
1416
+
1417
+ /**
1418
+ * Static version of the {@see toObject} method.
1419
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1420
+ * the JSPB instance for transitional soy proto support:
1421
+ * http://goto/soy-param-migration
1422
+ * @param {!proto.UpdateInvoiceForCompanyReq} msg The msg instance to transform.
1423
+ * @return {!Object}
1424
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1425
+ */
1426
+ proto.UpdateInvoiceForCompanyReq.toObject = function(includeInstance, msg) {
1427
+ var f, obj = {
1428
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1429
+ termOfPayment: jspb.Message.getFieldWithDefault(msg, 2, ""),
1430
+ dueDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
1431
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1432
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance)
1433
+ };
1434
+
1435
+ if (includeInstance) {
1436
+ obj.$jspbMessageInstance = msg;
1437
+ }
1438
+ return obj;
1439
+ };
1440
+ }
1441
+
1442
+
1443
+ /**
1444
+ * Deserializes binary data (in protobuf wire format).
1445
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1446
+ * @return {!proto.UpdateInvoiceForCompanyReq}
1447
+ */
1448
+ proto.UpdateInvoiceForCompanyReq.deserializeBinary = function(bytes) {
1449
+ var reader = new jspb.BinaryReader(bytes);
1450
+ var msg = new proto.UpdateInvoiceForCompanyReq;
1451
+ return proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader(msg, reader);
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * Deserializes binary data (in protobuf wire format) from the
1457
+ * given reader into the given message object.
1458
+ * @param {!proto.UpdateInvoiceForCompanyReq} msg The message object to deserialize into.
1459
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1460
+ * @return {!proto.UpdateInvoiceForCompanyReq}
1461
+ */
1462
+ proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader = function(msg, reader) {
1463
+ while (reader.nextField()) {
1464
+ if (reader.isEndGroup()) {
1465
+ break;
1466
+ }
1467
+ var field = reader.getFieldNumber();
1468
+ switch (field) {
1469
+ case 1:
1470
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1471
+ msg.setReferencesId(value);
1472
+ break;
1473
+ case 2:
1474
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1475
+ msg.setTermOfPayment(value);
1476
+ break;
1477
+ case 3:
1478
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1479
+ msg.setDueDate(value);
1480
+ break;
1481
+ case 4:
1482
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
1483
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
1484
+ msg.addItemTransactions(value);
1485
+ break;
1486
+ default:
1487
+ reader.skipField();
1488
+ break;
1489
+ }
1490
+ }
1491
+ return msg;
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * Serializes the message to binary data (in protobuf wire format).
1497
+ * @return {!Uint8Array}
1498
+ */
1499
+ proto.UpdateInvoiceForCompanyReq.prototype.serializeBinary = function() {
1500
+ var writer = new jspb.BinaryWriter();
1501
+ proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter(this, writer);
1502
+ return writer.getResultBuffer();
1503
+ };
1504
+
1505
+
1506
+ /**
1507
+ * Serializes the given message to binary data (in protobuf wire
1508
+ * format), writing to the given BinaryWriter.
1509
+ * @param {!proto.UpdateInvoiceForCompanyReq} message
1510
+ * @param {!jspb.BinaryWriter} writer
1511
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1512
+ */
1513
+ proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter = function(message, writer) {
1514
+ var f = undefined;
1515
+ f = message.getReferencesId();
1516
+ if (f.length > 0) {
1517
+ writer.writeString(
1518
+ 1,
1519
+ f
1520
+ );
1521
+ }
1522
+ f = message.getTermOfPayment();
1523
+ if (f.length > 0) {
1524
+ writer.writeString(
1525
+ 2,
1526
+ f
1527
+ );
1528
+ }
1529
+ f = message.getDueDate();
1530
+ if (f.length > 0) {
1531
+ writer.writeString(
1532
+ 3,
1533
+ f
1534
+ );
1535
+ }
1536
+ f = message.getItemTransactionsList();
1537
+ if (f.length > 0) {
1538
+ writer.writeRepeatedMessage(
1539
+ 4,
1540
+ f,
1541
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1542
+ );
1543
+ }
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * optional string references_id = 1;
1549
+ * @return {string}
1550
+ */
1551
+ proto.UpdateInvoiceForCompanyReq.prototype.getReferencesId = function() {
1552
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1553
+ };
1554
+
1555
+
1556
+ /**
1557
+ * @param {string} value
1558
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1559
+ */
1560
+ proto.UpdateInvoiceForCompanyReq.prototype.setReferencesId = function(value) {
1561
+ return jspb.Message.setProto3StringField(this, 1, value);
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * optional string term_of_payment = 2;
1567
+ * @return {string}
1568
+ */
1569
+ proto.UpdateInvoiceForCompanyReq.prototype.getTermOfPayment = function() {
1570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1571
+ };
1572
+
1573
+
1574
+ /**
1575
+ * @param {string} value
1576
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1577
+ */
1578
+ proto.UpdateInvoiceForCompanyReq.prototype.setTermOfPayment = function(value) {
1579
+ return jspb.Message.setProto3StringField(this, 2, value);
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * optional string due_date = 3;
1585
+ * @return {string}
1586
+ */
1587
+ proto.UpdateInvoiceForCompanyReq.prototype.getDueDate = function() {
1588
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1589
+ };
1590
+
1591
+
1592
+ /**
1593
+ * @param {string} value
1594
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1595
+ */
1596
+ proto.UpdateInvoiceForCompanyReq.prototype.setDueDate = function(value) {
1597
+ return jspb.Message.setProto3StringField(this, 3, value);
1598
+ };
1599
+
1600
+
1601
+ /**
1602
+ * repeated ItemTransaction item_transactions = 4;
1603
+ * @return {!Array<!proto.ItemTransaction>}
1604
+ */
1605
+ proto.UpdateInvoiceForCompanyReq.prototype.getItemTransactionsList = function() {
1606
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
1607
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 4));
1608
+ };
1609
+
1610
+
1611
+ /**
1612
+ * @param {!Array<!proto.ItemTransaction>} value
1613
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1614
+ */
1615
+ proto.UpdateInvoiceForCompanyReq.prototype.setItemTransactionsList = function(value) {
1616
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
1617
+ };
1618
+
1619
+
1620
+ /**
1621
+ * @param {!proto.ItemTransaction=} opt_value
1622
+ * @param {number=} opt_index
1623
+ * @return {!proto.ItemTransaction}
1624
+ */
1625
+ proto.UpdateInvoiceForCompanyReq.prototype.addItemTransactions = function(opt_value, opt_index) {
1626
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ItemTransaction, opt_index);
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * Clears the list making it empty but non-null.
1632
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1633
+ */
1634
+ proto.UpdateInvoiceForCompanyReq.prototype.clearItemTransactionsList = function() {
1635
+ return this.setItemTransactionsList([]);
1636
+ };
1637
+
1638
+
1639
+
1352
1640
 
1353
1641
 
1354
1642
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1419,7 +1707,7 @@ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
1419
1707
  var field = reader.getFieldNumber();
1420
1708
  switch (field) {
1421
1709
  case 1:
1422
- var value = /** @type {string} */ (reader.readString());
1710
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1423
1711
  msg.setReferencesId(value);
1424
1712
  break;
1425
1713
  case 2:
@@ -1532,6 +1820,166 @@ proto.UpdateInvoiceReq.prototype.hasBaseInvoice = function() {
1532
1820
 
1533
1821
 
1534
1822
 
1823
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1824
+ /**
1825
+ * Creates an object representation of this proto.
1826
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1827
+ * Optional fields that are not set will be set to undefined.
1828
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1829
+ * For the list of reserved names please see:
1830
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1831
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1832
+ * JSPB instance for transitional soy proto support:
1833
+ * http://goto/soy-param-migration
1834
+ * @return {!Object}
1835
+ */
1836
+ proto.UpdateInvoiceStatusReq.prototype.toObject = function(opt_includeInstance) {
1837
+ return proto.UpdateInvoiceStatusReq.toObject(opt_includeInstance, this);
1838
+ };
1839
+
1840
+
1841
+ /**
1842
+ * Static version of the {@see toObject} method.
1843
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1844
+ * the JSPB instance for transitional soy proto support:
1845
+ * http://goto/soy-param-migration
1846
+ * @param {!proto.UpdateInvoiceStatusReq} msg The msg instance to transform.
1847
+ * @return {!Object}
1848
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1849
+ */
1850
+ proto.UpdateInvoiceStatusReq.toObject = function(includeInstance, msg) {
1851
+ var f, obj = {
1852
+ status: jspb.Message.getFieldWithDefault(msg, 1, ""),
1853
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
1854
+ };
1855
+
1856
+ if (includeInstance) {
1857
+ obj.$jspbMessageInstance = msg;
1858
+ }
1859
+ return obj;
1860
+ };
1861
+ }
1862
+
1863
+
1864
+ /**
1865
+ * Deserializes binary data (in protobuf wire format).
1866
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1867
+ * @return {!proto.UpdateInvoiceStatusReq}
1868
+ */
1869
+ proto.UpdateInvoiceStatusReq.deserializeBinary = function(bytes) {
1870
+ var reader = new jspb.BinaryReader(bytes);
1871
+ var msg = new proto.UpdateInvoiceStatusReq;
1872
+ return proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader(msg, reader);
1873
+ };
1874
+
1875
+
1876
+ /**
1877
+ * Deserializes binary data (in protobuf wire format) from the
1878
+ * given reader into the given message object.
1879
+ * @param {!proto.UpdateInvoiceStatusReq} msg The message object to deserialize into.
1880
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1881
+ * @return {!proto.UpdateInvoiceStatusReq}
1882
+ */
1883
+ proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader = function(msg, reader) {
1884
+ while (reader.nextField()) {
1885
+ if (reader.isEndGroup()) {
1886
+ break;
1887
+ }
1888
+ var field = reader.getFieldNumber();
1889
+ switch (field) {
1890
+ case 1:
1891
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1892
+ msg.setStatus(value);
1893
+ break;
1894
+ case 2:
1895
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1896
+ msg.setReferencesId(value);
1897
+ break;
1898
+ default:
1899
+ reader.skipField();
1900
+ break;
1901
+ }
1902
+ }
1903
+ return msg;
1904
+ };
1905
+
1906
+
1907
+ /**
1908
+ * Serializes the message to binary data (in protobuf wire format).
1909
+ * @return {!Uint8Array}
1910
+ */
1911
+ proto.UpdateInvoiceStatusReq.prototype.serializeBinary = function() {
1912
+ var writer = new jspb.BinaryWriter();
1913
+ proto.UpdateInvoiceStatusReq.serializeBinaryToWriter(this, writer);
1914
+ return writer.getResultBuffer();
1915
+ };
1916
+
1917
+
1918
+ /**
1919
+ * Serializes the given message to binary data (in protobuf wire
1920
+ * format), writing to the given BinaryWriter.
1921
+ * @param {!proto.UpdateInvoiceStatusReq} message
1922
+ * @param {!jspb.BinaryWriter} writer
1923
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1924
+ */
1925
+ proto.UpdateInvoiceStatusReq.serializeBinaryToWriter = function(message, writer) {
1926
+ var f = undefined;
1927
+ f = message.getStatus();
1928
+ if (f.length > 0) {
1929
+ writer.writeString(
1930
+ 1,
1931
+ f
1932
+ );
1933
+ }
1934
+ f = message.getReferencesId();
1935
+ if (f.length > 0) {
1936
+ writer.writeString(
1937
+ 2,
1938
+ f
1939
+ );
1940
+ }
1941
+ };
1942
+
1943
+
1944
+ /**
1945
+ * optional string status = 1;
1946
+ * @return {string}
1947
+ */
1948
+ proto.UpdateInvoiceStatusReq.prototype.getStatus = function() {
1949
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1950
+ };
1951
+
1952
+
1953
+ /**
1954
+ * @param {string} value
1955
+ * @return {!proto.UpdateInvoiceStatusReq} returns this
1956
+ */
1957
+ proto.UpdateInvoiceStatusReq.prototype.setStatus = function(value) {
1958
+ return jspb.Message.setProto3StringField(this, 1, value);
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * optional string references_id = 2;
1964
+ * @return {string}
1965
+ */
1966
+ proto.UpdateInvoiceStatusReq.prototype.getReferencesId = function() {
1967
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1968
+ };
1969
+
1970
+
1971
+ /**
1972
+ * @param {string} value
1973
+ * @return {!proto.UpdateInvoiceStatusReq} returns this
1974
+ */
1975
+ proto.UpdateInvoiceStatusReq.prototype.setReferencesId = function(value) {
1976
+ return jspb.Message.setProto3StringField(this, 2, value);
1977
+ };
1978
+
1979
+
1980
+
1981
+
1982
+
1535
1983
  if (jspb.Message.GENERATE_TO_OBJECT) {
1536
1984
  /**
1537
1985
  * Creates an object representation of this proto.
@@ -1801,7 +2249,7 @@ proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
1801
2249
  var field = reader.getFieldNumber();
1802
2250
  switch (field) {
1803
2251
  case 1:
1804
- var value = /** @type {string} */ (reader.readString());
2252
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1805
2253
  msg.setReferencesId(value);
1806
2254
  break;
1807
2255
  default:
@@ -2524,35 +2972,35 @@ proto.ItemInvoiceReference.deserializeBinaryFromReader = function(msg, reader) {
2524
2972
  var field = reader.getFieldNumber();
2525
2973
  switch (field) {
2526
2974
  case 1:
2527
- var value = /** @type {string} */ (reader.readString());
2975
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2528
2976
  msg.setInvoiceNumber(value);
2529
2977
  break;
2530
2978
  case 2:
2531
- var value = /** @type {string} */ (reader.readString());
2979
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2532
2980
  msg.setDocumentNumber(value);
2533
2981
  break;
2534
2982
  case 3:
2535
- var value = /** @type {string} */ (reader.readString());
2983
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2536
2984
  msg.setReferencesId(value);
2537
2985
  break;
2538
2986
  case 4:
2539
- var value = /** @type {string} */ (reader.readString());
2987
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2540
2988
  msg.setInvoiceReferencesId(value);
2541
2989
  break;
2542
2990
  case 5:
2543
- var value = /** @type {string} */ (reader.readString());
2991
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2544
2992
  msg.setRemarks(value);
2545
2993
  break;
2546
2994
  case 6:
2547
- var value = /** @type {string} */ (reader.readString());
2995
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2548
2996
  msg.setInvoiceDate(value);
2549
2997
  break;
2550
2998
  case 7:
2551
- var value = /** @type {string} */ (reader.readString());
2999
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2552
3000
  msg.setDescription(value);
2553
3001
  break;
2554
3002
  case 8:
2555
- var value = /** @type {string} */ (reader.readString());
3003
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2556
3004
  msg.setDetailDescription(value);
2557
3005
  break;
2558
3006
  case 9:
@@ -2564,7 +3012,7 @@ proto.ItemInvoiceReference.deserializeBinaryFromReader = function(msg, reader) {
2564
3012
  msg.setIncomeTax(value);
2565
3013
  break;
2566
3014
  case 11:
2567
- var value = /** @type {string} */ (reader.readString());
3015
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2568
3016
  msg.setQuantity(value);
2569
3017
  break;
2570
3018
  case 12:
@@ -3010,31 +3458,31 @@ proto.ItemPurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
3010
3458
  var field = reader.getFieldNumber();
3011
3459
  switch (field) {
3012
3460
  case 1:
3013
- var value = /** @type {string} */ (reader.readString());
3461
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3014
3462
  msg.setReferencesId(value);
3015
3463
  break;
3016
3464
  case 2:
3017
- var value = /** @type {string} */ (reader.readString());
3465
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3018
3466
  msg.setPurchaseOrderNumber(value);
3019
3467
  break;
3020
3468
  case 3:
3021
- var value = /** @type {string} */ (reader.readString());
3469
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3022
3470
  msg.setPurchaseOrderReferencesId(value);
3023
3471
  break;
3024
3472
  case 4:
3025
- var value = /** @type {string} */ (reader.readString());
3473
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3026
3474
  msg.setDescription(value);
3027
3475
  break;
3028
3476
  case 5:
3029
- var value = /** @type {string} */ (reader.readString());
3477
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3030
3478
  msg.setDetailDescription(value);
3031
3479
  break;
3032
3480
  case 6:
3033
- var value = /** @type {string} */ (reader.readString());
3481
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3034
3482
  msg.setQuantity(value);
3035
3483
  break;
3036
3484
  case 7:
3037
- var value = /** @type {string} */ (reader.readString());
3485
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3038
3486
  msg.setUnitOfMeasure(value);
3039
3487
  break;
3040
3488
  case 8:
@@ -3373,39 +3821,39 @@ proto.ItemGoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
3373
3821
  var field = reader.getFieldNumber();
3374
3822
  switch (field) {
3375
3823
  case 1:
3376
- var value = /** @type {string} */ (reader.readString());
3824
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3377
3825
  msg.setReferencesId(value);
3378
3826
  break;
3379
3827
  case 2:
3380
- var value = /** @type {string} */ (reader.readString());
3828
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3381
3829
  msg.setPurchaseOrderNumber(value);
3382
3830
  break;
3383
3831
  case 3:
3384
- var value = /** @type {string} */ (reader.readString());
3832
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3385
3833
  msg.setPurchaseOrderReferencesId(value);
3386
3834
  break;
3387
3835
  case 4:
3388
- var value = /** @type {string} */ (reader.readString());
3836
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3389
3837
  msg.setGoodReceiptNumber(value);
3390
3838
  break;
3391
3839
  case 5:
3392
- var value = /** @type {string} */ (reader.readString());
3840
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3393
3841
  msg.setDescription(value);
3394
3842
  break;
3395
3843
  case 6:
3396
- var value = /** @type {string} */ (reader.readString());
3844
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3397
3845
  msg.setDetailDescription(value);
3398
3846
  break;
3399
3847
  case 7:
3400
- var value = /** @type {string} */ (reader.readString());
3848
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3401
3849
  msg.setQuantity(value);
3402
3850
  break;
3403
3851
  case 8:
3404
- var value = /** @type {string} */ (reader.readString());
3852
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3405
3853
  msg.setPurchaseOrderQuantity(value);
3406
3854
  break;
3407
3855
  case 9:
3408
- var value = /** @type {string} */ (reader.readString());
3856
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3409
3857
  msg.setUnitOfMeasure(value);
3410
3858
  break;
3411
3859
  default: