@aldiokta/protocgen 1.1.66 → 1.1.68

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 (77) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/audit_trail/audit_trail_grpc_pb.js +92 -0
  3. package/prisca/v1/audit_trail/audit_trail_pb.js +2107 -0
  4. package/prisca/v1/bidding/bidding_pb.js +61 -1
  5. package/prisca/v1/business_partner/business_partner_grpc_pb.js +334 -0
  6. package/prisca/v1/business_partner/business_partner_pb.js +5244 -0
  7. package/prisca/v1/core/auth/auth_grpc_pb.js +36 -0
  8. package/prisca/v1/core/auth/auth_pb.js +386 -0
  9. package/prisca/v1/core/bp_config/bp_config_grpc_pb.js +697 -0
  10. package/prisca/v1/core/bp_config/bp_config_pb.js +10812 -0
  11. package/prisca/v1/core/employee/employee_pb.js +61 -1
  12. package/prisca/v1/core/item_transaction/item_transaction_pb.js +340 -10
  13. package/prisca/v1/core/job_title/job_title_pb.js +31 -1
  14. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +73 -0
  15. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +2027 -0
  16. package/prisca/v1/core/material_sales/material_account_assignment_group_grpc_pb.js +183 -0
  17. package/prisca/v1/core/material_sales/material_account_assignment_group_pb.js +2658 -0
  18. package/prisca/v1/core/material_sales/material_division_grpc_pb.js +199 -0
  19. package/prisca/v1/core/material_sales/material_division_pb.js +2706 -0
  20. package/prisca/v1/core/material_sales/material_item_category_group_grpc_pb.js +183 -0
  21. package/prisca/v1/core/material_sales/material_item_category_group_pb.js +2658 -0
  22. package/prisca/v1/core/material_sales/material_plant_grpc_pb.js +193 -0
  23. package/prisca/v1/core/material_sales/material_plant_pb.js +2757 -0
  24. package/prisca/v1/core/material_sales/material_sales_eligibility_grpc_pb.js +62 -0
  25. package/prisca/v1/core/material_sales/material_sales_eligibility_pb.js +475 -0
  26. package/prisca/v1/core/material_sales/material_sales_org_grpc_pb.js +191 -0
  27. package/prisca/v1/core/material_sales/material_sales_org_pb.js +2937 -0
  28. package/prisca/v1/core/material_sales/material_tax_classification_grpc_pb.js +193 -0
  29. package/prisca/v1/core/material_sales/material_tax_classification_pb.js +2817 -0
  30. package/prisca/v1/core/material_sales/material_tax_classification_value_grpc_pb.js +194 -0
  31. package/prisca/v1/core/material_sales/material_tax_classification_value_pb.js +2868 -0
  32. package/prisca/v1/core/material_sales/material_withholding_tax_group_grpc_pb.js +188 -0
  33. package/prisca/v1/core/material_sales/material_withholding_tax_group_pb.js +2658 -0
  34. package/prisca/v1/core/sales_org/distribution_channel_grpc_pb.js +180 -0
  35. package/prisca/v1/core/sales_org/distribution_channel_pb.js +2658 -0
  36. package/prisca/v1/core/sales_org/sales_address_grpc_pb.js +1 -0
  37. package/prisca/v1/core/sales_org/sales_address_pb.js +380 -0
  38. package/prisca/v1/core/sales_org/sales_area_grpc_pb.js +157 -0
  39. package/prisca/v1/core/sales_org/sales_area_pb.js +2381 -0
  40. package/prisca/v1/core/sales_org/sales_division_grpc_pb.js +180 -0
  41. package/prisca/v1/core/sales_org/sales_division_pb.js +2658 -0
  42. package/prisca/v1/core/sales_org/sales_group_assignment_grpc_pb.js +151 -0
  43. package/prisca/v1/core/sales_org/sales_group_assignment_pb.js +2231 -0
  44. package/prisca/v1/core/sales_org/sales_group_grpc_pb.js +180 -0
  45. package/prisca/v1/core/sales_org/sales_group_pb.js +2658 -0
  46. package/prisca/v1/core/sales_org/sales_office_assignment_grpc_pb.js +151 -0
  47. package/prisca/v1/core/sales_org/sales_office_assignment_pb.js +2231 -0
  48. package/prisca/v1/core/sales_org/sales_office_grpc_pb.js +181 -0
  49. package/prisca/v1/core/sales_org/sales_office_pb.js +2762 -0
  50. package/prisca/v1/core/sales_org/sales_org_distribution_channel_grpc_pb.js +151 -0
  51. package/prisca/v1/core/sales_org/sales_org_distribution_channel_pb.js +2231 -0
  52. package/prisca/v1/core/sales_org/sales_org_division_grpc_pb.js +151 -0
  53. package/prisca/v1/core/sales_org/sales_org_division_pb.js +2231 -0
  54. package/prisca/v1/core/sales_org/sales_org_plant_grpc_pb.js +152 -0
  55. package/prisca/v1/core/sales_org/sales_org_plant_pb.js +2291 -0
  56. package/prisca/v1/core/sales_org/sales_organization_grpc_pb.js +181 -0
  57. package/prisca/v1/core/sales_org/sales_organization_pb.js +2822 -0
  58. package/prisca/v1/core/sales_org/shipping_point_grpc_pb.js +181 -0
  59. package/prisca/v1/core/sales_org/shipping_point_pb.js +2762 -0
  60. package/prisca/v1/core/sales_org/shipping_point_plant_grpc_pb.js +152 -0
  61. package/prisca/v1/core/sales_org/shipping_point_plant_pb.js +2231 -0
  62. package/prisca/v1/core/transaction_type/transaction_type_grpc_pb.js +147 -0
  63. package/prisca/v1/core/transaction_type/transaction_type_pb.js +2587 -0
  64. package/prisca/v1/customer/customer_grpc_pb.js +184 -0
  65. package/prisca/v1/customer/customer_pb.js +3498 -0
  66. package/prisca/v1/customer/customer_registration_grpc_pb.js +93 -0
  67. package/prisca/v1/customer/customer_registration_pb.js +1300 -0
  68. package/prisca/v1/customer/customer_sales_area_grpc_pb.js +256 -0
  69. package/prisca/v1/customer/customer_sales_area_pb.js +4681 -0
  70. package/prisca/v1/delivery_order/delivery_order_pb.js +61 -1
  71. package/prisca/v1/good_receipt/good_receipt_pb.js +31 -1
  72. package/prisca/v1/invoice/invoice_pb.js +62 -2
  73. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +87 -0
  74. package/prisca/v1/purchase_order/purchase_order_pb.js +1015 -5
  75. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +31 -1
  76. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +152 -2
  77. package/prisca/v1/vendor_domain/vendor_domain_pb.js +94 -15
@@ -39,6 +39,8 @@ goog.exportSymbol('proto.CreatePurchaseOrderResponse', null, global);
39
39
  goog.exportSymbol('proto.DeletePurchaseOrderRequest', null, global);
40
40
  goog.exportSymbol('proto.DeletePurchaseOrderResponse', null, global);
41
41
  goog.exportSymbol('proto.DeliveryOrder', null, global);
42
+ goog.exportSymbol('proto.GetDocumentVerificationTokenRequest', null, global);
43
+ goog.exportSymbol('proto.GetDocumentVerificationTokenResponse', null, global);
42
44
  goog.exportSymbol('proto.GetListPurchaseOrderRequest', null, global);
43
45
  goog.exportSymbol('proto.GetListPurchaseOrderResponse', null, global);
44
46
  goog.exportSymbol('proto.GetPOReportListResponse', null, global);
@@ -61,6 +63,8 @@ goog.exportSymbol('proto.UpdatePurchaseOrderFileRequest', null, global);
61
63
  goog.exportSymbol('proto.UpdatePurchaseOrderRequest', null, global);
62
64
  goog.exportSymbol('proto.UpdatePurchaseOrderResponse', null, global);
63
65
  goog.exportSymbol('proto.UpdatePurchaseOrderStatusRequest', null, global);
66
+ goog.exportSymbol('proto.VerifyDocumentTokenRequest', null, global);
67
+ goog.exportSymbol('proto.VerifyDocumentTokenResponse', null, global);
64
68
  /**
65
69
  * Generated by JsPbCodeGenerator.
66
70
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -481,6 +485,90 @@ if (goog.DEBUG && !COMPILED) {
481
485
  */
482
486
  proto.CreatePurchaseOrderResponse.displayName = 'proto.CreatePurchaseOrderResponse';
483
487
  }
488
+ /**
489
+ * Generated by JsPbCodeGenerator.
490
+ * @param {Array=} opt_data Optional initial data array, typically from a
491
+ * server response, or constructed directly in Javascript. The array is used
492
+ * in place and becomes part of the constructed object. It is not cloned.
493
+ * If no data is provided, the constructed object will be empty, but still
494
+ * valid.
495
+ * @extends {jspb.Message}
496
+ * @constructor
497
+ */
498
+ proto.VerifyDocumentTokenRequest = function(opt_data) {
499
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
500
+ };
501
+ goog.inherits(proto.VerifyDocumentTokenRequest, jspb.Message);
502
+ if (goog.DEBUG && !COMPILED) {
503
+ /**
504
+ * @public
505
+ * @override
506
+ */
507
+ proto.VerifyDocumentTokenRequest.displayName = 'proto.VerifyDocumentTokenRequest';
508
+ }
509
+ /**
510
+ * Generated by JsPbCodeGenerator.
511
+ * @param {Array=} opt_data Optional initial data array, typically from a
512
+ * server response, or constructed directly in Javascript. The array is used
513
+ * in place and becomes part of the constructed object. It is not cloned.
514
+ * If no data is provided, the constructed object will be empty, but still
515
+ * valid.
516
+ * @extends {jspb.Message}
517
+ * @constructor
518
+ */
519
+ proto.VerifyDocumentTokenResponse = function(opt_data) {
520
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
521
+ };
522
+ goog.inherits(proto.VerifyDocumentTokenResponse, jspb.Message);
523
+ if (goog.DEBUG && !COMPILED) {
524
+ /**
525
+ * @public
526
+ * @override
527
+ */
528
+ proto.VerifyDocumentTokenResponse.displayName = 'proto.VerifyDocumentTokenResponse';
529
+ }
530
+ /**
531
+ * Generated by JsPbCodeGenerator.
532
+ * @param {Array=} opt_data Optional initial data array, typically from a
533
+ * server response, or constructed directly in Javascript. The array is used
534
+ * in place and becomes part of the constructed object. It is not cloned.
535
+ * If no data is provided, the constructed object will be empty, but still
536
+ * valid.
537
+ * @extends {jspb.Message}
538
+ * @constructor
539
+ */
540
+ proto.GetDocumentVerificationTokenRequest = function(opt_data) {
541
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
542
+ };
543
+ goog.inherits(proto.GetDocumentVerificationTokenRequest, jspb.Message);
544
+ if (goog.DEBUG && !COMPILED) {
545
+ /**
546
+ * @public
547
+ * @override
548
+ */
549
+ proto.GetDocumentVerificationTokenRequest.displayName = 'proto.GetDocumentVerificationTokenRequest';
550
+ }
551
+ /**
552
+ * Generated by JsPbCodeGenerator.
553
+ * @param {Array=} opt_data Optional initial data array, typically from a
554
+ * server response, or constructed directly in Javascript. The array is used
555
+ * in place and becomes part of the constructed object. It is not cloned.
556
+ * If no data is provided, the constructed object will be empty, but still
557
+ * valid.
558
+ * @extends {jspb.Message}
559
+ * @constructor
560
+ */
561
+ proto.GetDocumentVerificationTokenResponse = function(opt_data) {
562
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
563
+ };
564
+ goog.inherits(proto.GetDocumentVerificationTokenResponse, jspb.Message);
565
+ if (goog.DEBUG && !COMPILED) {
566
+ /**
567
+ * @public
568
+ * @override
569
+ */
570
+ proto.GetDocumentVerificationTokenResponse.displayName = 'proto.GetDocumentVerificationTokenResponse';
571
+ }
484
572
  /**
485
573
  * Generated by JsPbCodeGenerator.
486
574
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1790,7 +1878,8 @@ documentReferences: jspb.Message.getFieldWithDefault(msg, 29, ""),
1790
1878
  customTransaction: jspb.Message.getFieldWithDefault(msg, 31, ""),
1791
1879
  requestedBy: jspb.Message.getFieldWithDefault(msg, 32, ""),
1792
1880
  requestor: (f = msg.getRequestor()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f),
1793
- documentType: jspb.Message.getFieldWithDefault(msg, 34, "")
1881
+ documentType: jspb.Message.getFieldWithDefault(msg, 34, ""),
1882
+ currency: jspb.Message.getFieldWithDefault(msg, 35, "")
1794
1883
  };
1795
1884
 
1796
1885
  if (includeInstance) {
@@ -1967,6 +2056,10 @@ proto.DeliveryOrder.deserializeBinaryFromReader = function(msg, reader) {
1967
2056
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1968
2057
  msg.setDocumentType(value);
1969
2058
  break;
2059
+ case 35:
2060
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2061
+ msg.setCurrency(value);
2062
+ break;
1970
2063
  default:
1971
2064
  reader.skipField();
1972
2065
  break;
@@ -2235,6 +2328,13 @@ proto.DeliveryOrder.serializeBinaryToWriter = function(message, writer) {
2235
2328
  f
2236
2329
  );
2237
2330
  }
2331
+ f = message.getCurrency();
2332
+ if (f.length > 0) {
2333
+ writer.writeString(
2334
+ 35,
2335
+ f
2336
+ );
2337
+ }
2238
2338
  };
2239
2339
 
2240
2340
 
@@ -2986,6 +3086,24 @@ proto.DeliveryOrder.prototype.setDocumentType = function(value) {
2986
3086
  };
2987
3087
 
2988
3088
 
3089
+ /**
3090
+ * optional string currency = 35;
3091
+ * @return {string}
3092
+ */
3093
+ proto.DeliveryOrder.prototype.getCurrency = function() {
3094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 35, ""));
3095
+ };
3096
+
3097
+
3098
+ /**
3099
+ * @param {string} value
3100
+ * @return {!proto.DeliveryOrder} returns this
3101
+ */
3102
+ proto.DeliveryOrder.prototype.setCurrency = function(value) {
3103
+ return jspb.Message.setProto3StringField(this, 35, value);
3104
+ };
3105
+
3106
+
2989
3107
 
2990
3108
  /**
2991
3109
  * List of repeated fields within this message type.
@@ -3062,7 +3180,8 @@ customTransaction: jspb.Message.getFieldWithDefault(msg, 32, ""),
3062
3180
  requestedBy: jspb.Message.getFieldWithDefault(msg, 33, ""),
3063
3181
  requestor: (f = msg.getRequestor()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f),
3064
3182
  department: jspb.Message.getFieldWithDefault(msg, 35, ""),
3065
- documentType: jspb.Message.getFieldWithDefault(msg, 36, "")
3183
+ documentType: jspb.Message.getFieldWithDefault(msg, 36, ""),
3184
+ currency: jspb.Message.getFieldWithDefault(msg, 37, "")
3066
3185
  };
3067
3186
 
3068
3187
  if (includeInstance) {
@@ -3251,6 +3370,10 @@ proto.GoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
3251
3370
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
3252
3371
  msg.setDocumentType(value);
3253
3372
  break;
3373
+ case 37:
3374
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3375
+ msg.setCurrency(value);
3376
+ break;
3254
3377
  default:
3255
3378
  reader.skipField();
3256
3379
  break;
@@ -3540,6 +3663,13 @@ proto.GoodReceipt.serializeBinaryToWriter = function(message, writer) {
3540
3663
  f
3541
3664
  );
3542
3665
  }
3666
+ f = message.getCurrency();
3667
+ if (f.length > 0) {
3668
+ writer.writeString(
3669
+ 37,
3670
+ f
3671
+ );
3672
+ }
3543
3673
  };
3544
3674
 
3545
3675
 
@@ -4345,6 +4475,24 @@ proto.GoodReceipt.prototype.setDocumentType = function(value) {
4345
4475
  };
4346
4476
 
4347
4477
 
4478
+ /**
4479
+ * optional string currency = 37;
4480
+ * @return {string}
4481
+ */
4482
+ proto.GoodReceipt.prototype.getCurrency = function() {
4483
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
4484
+ };
4485
+
4486
+
4487
+ /**
4488
+ * @param {string} value
4489
+ * @return {!proto.GoodReceipt} returns this
4490
+ */
4491
+ proto.GoodReceipt.prototype.setCurrency = function(value) {
4492
+ return jspb.Message.setProto3StringField(this, 37, value);
4493
+ };
4494
+
4495
+
4348
4496
 
4349
4497
  /**
4350
4498
  * List of repeated fields within this message type.
@@ -4439,7 +4587,8 @@ dpInvoiceRef: jspb.Message.getFieldWithDefault(msg, 47, ""),
4439
4587
  isDownPayment: jspb.Message.getBooleanFieldWithDefault(msg, 48, false),
4440
4588
  department: jspb.Message.getFieldWithDefault(msg, 49, ""),
4441
4589
  documentType: jspb.Message.getFieldWithDefault(msg, 50, ""),
4442
- createdSource: jspb.Message.getFieldWithDefault(msg, 51, "")
4590
+ createdSource: jspb.Message.getFieldWithDefault(msg, 51, ""),
4591
+ currency: jspb.Message.getFieldWithDefault(msg, 52, "")
4443
4592
  };
4444
4593
 
4445
4594
  if (includeInstance) {
@@ -4691,6 +4840,10 @@ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
4691
4840
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
4692
4841
  msg.setCreatedSource(value);
4693
4842
  break;
4843
+ case 52:
4844
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4845
+ msg.setCurrency(value);
4846
+ break;
4694
4847
  default:
4695
4848
  reader.skipField();
4696
4849
  break;
@@ -5088,6 +5241,13 @@ proto.Invoice.serializeBinaryToWriter = function(message, writer) {
5088
5241
  f
5089
5242
  );
5090
5243
  }
5244
+ f = message.getCurrency();
5245
+ if (f.length > 0) {
5246
+ writer.writeString(
5247
+ 52,
5248
+ f
5249
+ );
5250
+ }
5091
5251
  };
5092
5252
 
5093
5253
 
@@ -6223,6 +6383,24 @@ proto.Invoice.prototype.setCreatedSource = function(value) {
6223
6383
  };
6224
6384
 
6225
6385
 
6386
+ /**
6387
+ * optional string currency = 52;
6388
+ * @return {string}
6389
+ */
6390
+ proto.Invoice.prototype.getCurrency = function() {
6391
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 52, ""));
6392
+ };
6393
+
6394
+
6395
+ /**
6396
+ * @param {string} value
6397
+ * @return {!proto.Invoice} returns this
6398
+ */
6399
+ proto.Invoice.prototype.setCurrency = function(value) {
6400
+ return jspb.Message.setProto3StringField(this, 52, value);
6401
+ };
6402
+
6403
+
6226
6404
 
6227
6405
 
6228
6406
 
@@ -6747,7 +6925,8 @@ retentionAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 50, 0.0),
6747
6925
  dpInvoiceApproved: jspb.Message.getBooleanFieldWithDefault(msg, 51, false),
6748
6926
  dpInvoiceRef: jspb.Message.getFieldWithDefault(msg, 52, ""),
6749
6927
  dpAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 53, 0.0),
6750
- documentType: jspb.Message.getFieldWithDefault(msg, 54, "")
6928
+ documentType: jspb.Message.getFieldWithDefault(msg, 54, ""),
6929
+ currency: jspb.Message.getFieldWithDefault(msg, 55, "")
6751
6930
  };
6752
6931
 
6753
6932
  if (includeInstance) {
@@ -7001,6 +7180,10 @@ proto.PurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
7001
7180
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
7002
7181
  msg.setDocumentType(value);
7003
7182
  break;
7183
+ case 55:
7184
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7185
+ msg.setCurrency(value);
7186
+ break;
7004
7187
  default:
7005
7188
  reader.skipField();
7006
7189
  break;
@@ -7403,6 +7586,13 @@ proto.PurchaseOrder.serializeBinaryToWriter = function(message, writer) {
7403
7586
  f
7404
7587
  );
7405
7588
  }
7589
+ f = message.getCurrency();
7590
+ if (f.length > 0) {
7591
+ writer.writeString(
7592
+ 55,
7593
+ f
7594
+ );
7595
+ }
7406
7596
  };
7407
7597
 
7408
7598
 
@@ -8517,6 +8707,24 @@ proto.PurchaseOrder.prototype.setDocumentType = function(value) {
8517
8707
  };
8518
8708
 
8519
8709
 
8710
+ /**
8711
+ * optional string currency = 55;
8712
+ * @return {string}
8713
+ */
8714
+ proto.PurchaseOrder.prototype.getCurrency = function() {
8715
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 55, ""));
8716
+ };
8717
+
8718
+
8719
+ /**
8720
+ * @param {string} value
8721
+ * @return {!proto.PurchaseOrder} returns this
8722
+ */
8723
+ proto.PurchaseOrder.prototype.setCurrency = function(value) {
8724
+ return jspb.Message.setProto3StringField(this, 55, value);
8725
+ };
8726
+
8727
+
8520
8728
 
8521
8729
  /**
8522
8730
  * List of repeated fields within this message type.
@@ -8594,7 +8802,8 @@ retentionPercentage: jspb.Message.getFieldWithDefault(msg, 34, ""),
8594
8802
  retentionAmount: jspb.Message.getFieldWithDefault(msg, 35, ""),
8595
8803
  dpInvoiceApproved: jspb.Message.getBooleanFieldWithDefault(msg, 36, false),
8596
8804
  dpInvoiceRef: jspb.Message.getFieldWithDefault(msg, 37, ""),
8597
- dpAmount: jspb.Message.getFieldWithDefault(msg, 38, "")
8805
+ dpAmount: jspb.Message.getFieldWithDefault(msg, 38, ""),
8806
+ currency: jspb.Message.getFieldWithDefault(msg, 39, "")
8598
8807
  };
8599
8808
 
8600
8809
  if (includeInstance) {
@@ -8782,6 +8991,10 @@ proto.BasePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reade
8782
8991
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
8783
8992
  msg.setDpAmount(value);
8784
8993
  break;
8994
+ case 39:
8995
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
8996
+ msg.setCurrency(value);
8997
+ break;
8785
8998
  default:
8786
8999
  reader.skipField();
8787
9000
  break;
@@ -9073,6 +9286,13 @@ proto.BasePurchaseOrderRequest.serializeBinaryToWriter = function(message, write
9073
9286
  f
9074
9287
  );
9075
9288
  }
9289
+ f = message.getCurrency();
9290
+ if (f.length > 0) {
9291
+ writer.writeString(
9292
+ 39,
9293
+ f
9294
+ );
9295
+ }
9076
9296
  };
9077
9297
 
9078
9298
 
@@ -9801,6 +10021,24 @@ proto.BasePurchaseOrderRequest.prototype.setDpAmount = function(value) {
9801
10021
  };
9802
10022
 
9803
10023
 
10024
+ /**
10025
+ * optional string currency = 39;
10026
+ * @return {string}
10027
+ */
10028
+ proto.BasePurchaseOrderRequest.prototype.getCurrency = function() {
10029
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, ""));
10030
+ };
10031
+
10032
+
10033
+ /**
10034
+ * @param {string} value
10035
+ * @return {!proto.BasePurchaseOrderRequest} returns this
10036
+ */
10037
+ proto.BasePurchaseOrderRequest.prototype.setCurrency = function(value) {
10038
+ return jspb.Message.setProto3StringField(this, 39, value);
10039
+ };
10040
+
10041
+
9804
10042
 
9805
10043
 
9806
10044
 
@@ -11229,6 +11467,778 @@ proto.CreatePurchaseOrderResponse.prototype.hasMeta = function() {
11229
11467
 
11230
11468
 
11231
11469
 
11470
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11471
+ /**
11472
+ * Creates an object representation of this proto.
11473
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11474
+ * Optional fields that are not set will be set to undefined.
11475
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11476
+ * For the list of reserved names please see:
11477
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11478
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11479
+ * JSPB instance for transitional soy proto support:
11480
+ * http://goto/soy-param-migration
11481
+ * @return {!Object}
11482
+ */
11483
+ proto.VerifyDocumentTokenRequest.prototype.toObject = function(opt_includeInstance) {
11484
+ return proto.VerifyDocumentTokenRequest.toObject(opt_includeInstance, this);
11485
+ };
11486
+
11487
+
11488
+ /**
11489
+ * Static version of the {@see toObject} method.
11490
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11491
+ * the JSPB instance for transitional soy proto support:
11492
+ * http://goto/soy-param-migration
11493
+ * @param {!proto.VerifyDocumentTokenRequest} msg The msg instance to transform.
11494
+ * @return {!Object}
11495
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11496
+ */
11497
+ proto.VerifyDocumentTokenRequest.toObject = function(includeInstance, msg) {
11498
+ var f, obj = {
11499
+ token: jspb.Message.getFieldWithDefault(msg, 1, "")
11500
+ };
11501
+
11502
+ if (includeInstance) {
11503
+ obj.$jspbMessageInstance = msg;
11504
+ }
11505
+ return obj;
11506
+ };
11507
+ }
11508
+
11509
+
11510
+ /**
11511
+ * Deserializes binary data (in protobuf wire format).
11512
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11513
+ * @return {!proto.VerifyDocumentTokenRequest}
11514
+ */
11515
+ proto.VerifyDocumentTokenRequest.deserializeBinary = function(bytes) {
11516
+ var reader = new jspb.BinaryReader(bytes);
11517
+ var msg = new proto.VerifyDocumentTokenRequest;
11518
+ return proto.VerifyDocumentTokenRequest.deserializeBinaryFromReader(msg, reader);
11519
+ };
11520
+
11521
+
11522
+ /**
11523
+ * Deserializes binary data (in protobuf wire format) from the
11524
+ * given reader into the given message object.
11525
+ * @param {!proto.VerifyDocumentTokenRequest} msg The message object to deserialize into.
11526
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11527
+ * @return {!proto.VerifyDocumentTokenRequest}
11528
+ */
11529
+ proto.VerifyDocumentTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
11530
+ while (reader.nextField()) {
11531
+ if (reader.isEndGroup()) {
11532
+ break;
11533
+ }
11534
+ var field = reader.getFieldNumber();
11535
+ switch (field) {
11536
+ case 1:
11537
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11538
+ msg.setToken(value);
11539
+ break;
11540
+ default:
11541
+ reader.skipField();
11542
+ break;
11543
+ }
11544
+ }
11545
+ return msg;
11546
+ };
11547
+
11548
+
11549
+ /**
11550
+ * Serializes the message to binary data (in protobuf wire format).
11551
+ * @return {!Uint8Array}
11552
+ */
11553
+ proto.VerifyDocumentTokenRequest.prototype.serializeBinary = function() {
11554
+ var writer = new jspb.BinaryWriter();
11555
+ proto.VerifyDocumentTokenRequest.serializeBinaryToWriter(this, writer);
11556
+ return writer.getResultBuffer();
11557
+ };
11558
+
11559
+
11560
+ /**
11561
+ * Serializes the given message to binary data (in protobuf wire
11562
+ * format), writing to the given BinaryWriter.
11563
+ * @param {!proto.VerifyDocumentTokenRequest} message
11564
+ * @param {!jspb.BinaryWriter} writer
11565
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11566
+ */
11567
+ proto.VerifyDocumentTokenRequest.serializeBinaryToWriter = function(message, writer) {
11568
+ var f = undefined;
11569
+ f = message.getToken();
11570
+ if (f.length > 0) {
11571
+ writer.writeString(
11572
+ 1,
11573
+ f
11574
+ );
11575
+ }
11576
+ };
11577
+
11578
+
11579
+ /**
11580
+ * optional string token = 1;
11581
+ * @return {string}
11582
+ */
11583
+ proto.VerifyDocumentTokenRequest.prototype.getToken = function() {
11584
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11585
+ };
11586
+
11587
+
11588
+ /**
11589
+ * @param {string} value
11590
+ * @return {!proto.VerifyDocumentTokenRequest} returns this
11591
+ */
11592
+ proto.VerifyDocumentTokenRequest.prototype.setToken = function(value) {
11593
+ return jspb.Message.setProto3StringField(this, 1, value);
11594
+ };
11595
+
11596
+
11597
+
11598
+
11599
+
11600
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11601
+ /**
11602
+ * Creates an object representation of this proto.
11603
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11604
+ * Optional fields that are not set will be set to undefined.
11605
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11606
+ * For the list of reserved names please see:
11607
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11608
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11609
+ * JSPB instance for transitional soy proto support:
11610
+ * http://goto/soy-param-migration
11611
+ * @return {!Object}
11612
+ */
11613
+ proto.VerifyDocumentTokenResponse.prototype.toObject = function(opt_includeInstance) {
11614
+ return proto.VerifyDocumentTokenResponse.toObject(opt_includeInstance, this);
11615
+ };
11616
+
11617
+
11618
+ /**
11619
+ * Static version of the {@see toObject} method.
11620
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11621
+ * the JSPB instance for transitional soy proto support:
11622
+ * http://goto/soy-param-migration
11623
+ * @param {!proto.VerifyDocumentTokenResponse} msg The msg instance to transform.
11624
+ * @return {!Object}
11625
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11626
+ */
11627
+ proto.VerifyDocumentTokenResponse.toObject = function(includeInstance, msg) {
11628
+ var f, obj = {
11629
+ valid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
11630
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
11631
+ purchaseOrderDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
11632
+ vendorName: jspb.Message.getFieldWithDefault(msg, 4, ""),
11633
+ status: jspb.Message.getFieldWithDefault(msg, 5, ""),
11634
+ isRevised: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
11635
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
11636
+ };
11637
+
11638
+ if (includeInstance) {
11639
+ obj.$jspbMessageInstance = msg;
11640
+ }
11641
+ return obj;
11642
+ };
11643
+ }
11644
+
11645
+
11646
+ /**
11647
+ * Deserializes binary data (in protobuf wire format).
11648
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11649
+ * @return {!proto.VerifyDocumentTokenResponse}
11650
+ */
11651
+ proto.VerifyDocumentTokenResponse.deserializeBinary = function(bytes) {
11652
+ var reader = new jspb.BinaryReader(bytes);
11653
+ var msg = new proto.VerifyDocumentTokenResponse;
11654
+ return proto.VerifyDocumentTokenResponse.deserializeBinaryFromReader(msg, reader);
11655
+ };
11656
+
11657
+
11658
+ /**
11659
+ * Deserializes binary data (in protobuf wire format) from the
11660
+ * given reader into the given message object.
11661
+ * @param {!proto.VerifyDocumentTokenResponse} msg The message object to deserialize into.
11662
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11663
+ * @return {!proto.VerifyDocumentTokenResponse}
11664
+ */
11665
+ proto.VerifyDocumentTokenResponse.deserializeBinaryFromReader = function(msg, reader) {
11666
+ while (reader.nextField()) {
11667
+ if (reader.isEndGroup()) {
11668
+ break;
11669
+ }
11670
+ var field = reader.getFieldNumber();
11671
+ switch (field) {
11672
+ case 1:
11673
+ var value = /** @type {boolean} */ (reader.readBool());
11674
+ msg.setValid(value);
11675
+ break;
11676
+ case 2:
11677
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11678
+ msg.setPurchaseOrderNumber(value);
11679
+ break;
11680
+ case 3:
11681
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11682
+ msg.setPurchaseOrderDate(value);
11683
+ break;
11684
+ case 4:
11685
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11686
+ msg.setVendorName(value);
11687
+ break;
11688
+ case 5:
11689
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11690
+ msg.setStatus(value);
11691
+ break;
11692
+ case 6:
11693
+ var value = /** @type {boolean} */ (reader.readBool());
11694
+ msg.setIsRevised(value);
11695
+ break;
11696
+ case 7:
11697
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
11698
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
11699
+ msg.setMeta(value);
11700
+ break;
11701
+ default:
11702
+ reader.skipField();
11703
+ break;
11704
+ }
11705
+ }
11706
+ return msg;
11707
+ };
11708
+
11709
+
11710
+ /**
11711
+ * Serializes the message to binary data (in protobuf wire format).
11712
+ * @return {!Uint8Array}
11713
+ */
11714
+ proto.VerifyDocumentTokenResponse.prototype.serializeBinary = function() {
11715
+ var writer = new jspb.BinaryWriter();
11716
+ proto.VerifyDocumentTokenResponse.serializeBinaryToWriter(this, writer);
11717
+ return writer.getResultBuffer();
11718
+ };
11719
+
11720
+
11721
+ /**
11722
+ * Serializes the given message to binary data (in protobuf wire
11723
+ * format), writing to the given BinaryWriter.
11724
+ * @param {!proto.VerifyDocumentTokenResponse} message
11725
+ * @param {!jspb.BinaryWriter} writer
11726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11727
+ */
11728
+ proto.VerifyDocumentTokenResponse.serializeBinaryToWriter = function(message, writer) {
11729
+ var f = undefined;
11730
+ f = message.getValid();
11731
+ if (f) {
11732
+ writer.writeBool(
11733
+ 1,
11734
+ f
11735
+ );
11736
+ }
11737
+ f = message.getPurchaseOrderNumber();
11738
+ if (f.length > 0) {
11739
+ writer.writeString(
11740
+ 2,
11741
+ f
11742
+ );
11743
+ }
11744
+ f = message.getPurchaseOrderDate();
11745
+ if (f.length > 0) {
11746
+ writer.writeString(
11747
+ 3,
11748
+ f
11749
+ );
11750
+ }
11751
+ f = message.getVendorName();
11752
+ if (f.length > 0) {
11753
+ writer.writeString(
11754
+ 4,
11755
+ f
11756
+ );
11757
+ }
11758
+ f = message.getStatus();
11759
+ if (f.length > 0) {
11760
+ writer.writeString(
11761
+ 5,
11762
+ f
11763
+ );
11764
+ }
11765
+ f = message.getIsRevised();
11766
+ if (f) {
11767
+ writer.writeBool(
11768
+ 6,
11769
+ f
11770
+ );
11771
+ }
11772
+ f = message.getMeta();
11773
+ if (f != null) {
11774
+ writer.writeMessage(
11775
+ 7,
11776
+ f,
11777
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
11778
+ );
11779
+ }
11780
+ };
11781
+
11782
+
11783
+ /**
11784
+ * optional bool valid = 1;
11785
+ * @return {boolean}
11786
+ */
11787
+ proto.VerifyDocumentTokenResponse.prototype.getValid = function() {
11788
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
11789
+ };
11790
+
11791
+
11792
+ /**
11793
+ * @param {boolean} value
11794
+ * @return {!proto.VerifyDocumentTokenResponse} returns this
11795
+ */
11796
+ proto.VerifyDocumentTokenResponse.prototype.setValid = function(value) {
11797
+ return jspb.Message.setProto3BooleanField(this, 1, value);
11798
+ };
11799
+
11800
+
11801
+ /**
11802
+ * optional string purchase_order_number = 2;
11803
+ * @return {string}
11804
+ */
11805
+ proto.VerifyDocumentTokenResponse.prototype.getPurchaseOrderNumber = function() {
11806
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11807
+ };
11808
+
11809
+
11810
+ /**
11811
+ * @param {string} value
11812
+ * @return {!proto.VerifyDocumentTokenResponse} returns this
11813
+ */
11814
+ proto.VerifyDocumentTokenResponse.prototype.setPurchaseOrderNumber = function(value) {
11815
+ return jspb.Message.setProto3StringField(this, 2, value);
11816
+ };
11817
+
11818
+
11819
+ /**
11820
+ * optional string purchase_order_date = 3;
11821
+ * @return {string}
11822
+ */
11823
+ proto.VerifyDocumentTokenResponse.prototype.getPurchaseOrderDate = function() {
11824
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11825
+ };
11826
+
11827
+
11828
+ /**
11829
+ * @param {string} value
11830
+ * @return {!proto.VerifyDocumentTokenResponse} returns this
11831
+ */
11832
+ proto.VerifyDocumentTokenResponse.prototype.setPurchaseOrderDate = function(value) {
11833
+ return jspb.Message.setProto3StringField(this, 3, value);
11834
+ };
11835
+
11836
+
11837
+ /**
11838
+ * optional string vendor_name = 4;
11839
+ * @return {string}
11840
+ */
11841
+ proto.VerifyDocumentTokenResponse.prototype.getVendorName = function() {
11842
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11843
+ };
11844
+
11845
+
11846
+ /**
11847
+ * @param {string} value
11848
+ * @return {!proto.VerifyDocumentTokenResponse} returns this
11849
+ */
11850
+ proto.VerifyDocumentTokenResponse.prototype.setVendorName = function(value) {
11851
+ return jspb.Message.setProto3StringField(this, 4, value);
11852
+ };
11853
+
11854
+
11855
+ /**
11856
+ * optional string status = 5;
11857
+ * @return {string}
11858
+ */
11859
+ proto.VerifyDocumentTokenResponse.prototype.getStatus = function() {
11860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11861
+ };
11862
+
11863
+
11864
+ /**
11865
+ * @param {string} value
11866
+ * @return {!proto.VerifyDocumentTokenResponse} returns this
11867
+ */
11868
+ proto.VerifyDocumentTokenResponse.prototype.setStatus = function(value) {
11869
+ return jspb.Message.setProto3StringField(this, 5, value);
11870
+ };
11871
+
11872
+
11873
+ /**
11874
+ * optional bool is_revised = 6;
11875
+ * @return {boolean}
11876
+ */
11877
+ proto.VerifyDocumentTokenResponse.prototype.getIsRevised = function() {
11878
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
11879
+ };
11880
+
11881
+
11882
+ /**
11883
+ * @param {boolean} value
11884
+ * @return {!proto.VerifyDocumentTokenResponse} returns this
11885
+ */
11886
+ proto.VerifyDocumentTokenResponse.prototype.setIsRevised = function(value) {
11887
+ return jspb.Message.setProto3BooleanField(this, 6, value);
11888
+ };
11889
+
11890
+
11891
+ /**
11892
+ * optional prisca.v1.global.meta.Meta meta = 7;
11893
+ * @return {?proto.prisca.v1.global.meta.Meta}
11894
+ */
11895
+ proto.VerifyDocumentTokenResponse.prototype.getMeta = function() {
11896
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
11897
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 7));
11898
+ };
11899
+
11900
+
11901
+ /**
11902
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
11903
+ * @return {!proto.VerifyDocumentTokenResponse} returns this
11904
+ */
11905
+ proto.VerifyDocumentTokenResponse.prototype.setMeta = function(value) {
11906
+ return jspb.Message.setWrapperField(this, 7, value);
11907
+ };
11908
+
11909
+
11910
+ /**
11911
+ * Clears the message field making it undefined.
11912
+ * @return {!proto.VerifyDocumentTokenResponse} returns this
11913
+ */
11914
+ proto.VerifyDocumentTokenResponse.prototype.clearMeta = function() {
11915
+ return this.setMeta(undefined);
11916
+ };
11917
+
11918
+
11919
+ /**
11920
+ * Returns whether this field is set.
11921
+ * @return {boolean}
11922
+ */
11923
+ proto.VerifyDocumentTokenResponse.prototype.hasMeta = function() {
11924
+ return jspb.Message.getField(this, 7) != null;
11925
+ };
11926
+
11927
+
11928
+
11929
+
11930
+
11931
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11932
+ /**
11933
+ * Creates an object representation of this proto.
11934
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11935
+ * Optional fields that are not set will be set to undefined.
11936
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11937
+ * For the list of reserved names please see:
11938
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11939
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11940
+ * JSPB instance for transitional soy proto support:
11941
+ * http://goto/soy-param-migration
11942
+ * @return {!Object}
11943
+ */
11944
+ proto.GetDocumentVerificationTokenRequest.prototype.toObject = function(opt_includeInstance) {
11945
+ return proto.GetDocumentVerificationTokenRequest.toObject(opt_includeInstance, this);
11946
+ };
11947
+
11948
+
11949
+ /**
11950
+ * Static version of the {@see toObject} method.
11951
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11952
+ * the JSPB instance for transitional soy proto support:
11953
+ * http://goto/soy-param-migration
11954
+ * @param {!proto.GetDocumentVerificationTokenRequest} msg The msg instance to transform.
11955
+ * @return {!Object}
11956
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11957
+ */
11958
+ proto.GetDocumentVerificationTokenRequest.toObject = function(includeInstance, msg) {
11959
+ var f, obj = {
11960
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
11961
+ };
11962
+
11963
+ if (includeInstance) {
11964
+ obj.$jspbMessageInstance = msg;
11965
+ }
11966
+ return obj;
11967
+ };
11968
+ }
11969
+
11970
+
11971
+ /**
11972
+ * Deserializes binary data (in protobuf wire format).
11973
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11974
+ * @return {!proto.GetDocumentVerificationTokenRequest}
11975
+ */
11976
+ proto.GetDocumentVerificationTokenRequest.deserializeBinary = function(bytes) {
11977
+ var reader = new jspb.BinaryReader(bytes);
11978
+ var msg = new proto.GetDocumentVerificationTokenRequest;
11979
+ return proto.GetDocumentVerificationTokenRequest.deserializeBinaryFromReader(msg, reader);
11980
+ };
11981
+
11982
+
11983
+ /**
11984
+ * Deserializes binary data (in protobuf wire format) from the
11985
+ * given reader into the given message object.
11986
+ * @param {!proto.GetDocumentVerificationTokenRequest} msg The message object to deserialize into.
11987
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11988
+ * @return {!proto.GetDocumentVerificationTokenRequest}
11989
+ */
11990
+ proto.GetDocumentVerificationTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
11991
+ while (reader.nextField()) {
11992
+ if (reader.isEndGroup()) {
11993
+ break;
11994
+ }
11995
+ var field = reader.getFieldNumber();
11996
+ switch (field) {
11997
+ case 1:
11998
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11999
+ msg.setReferencesId(value);
12000
+ break;
12001
+ default:
12002
+ reader.skipField();
12003
+ break;
12004
+ }
12005
+ }
12006
+ return msg;
12007
+ };
12008
+
12009
+
12010
+ /**
12011
+ * Serializes the message to binary data (in protobuf wire format).
12012
+ * @return {!Uint8Array}
12013
+ */
12014
+ proto.GetDocumentVerificationTokenRequest.prototype.serializeBinary = function() {
12015
+ var writer = new jspb.BinaryWriter();
12016
+ proto.GetDocumentVerificationTokenRequest.serializeBinaryToWriter(this, writer);
12017
+ return writer.getResultBuffer();
12018
+ };
12019
+
12020
+
12021
+ /**
12022
+ * Serializes the given message to binary data (in protobuf wire
12023
+ * format), writing to the given BinaryWriter.
12024
+ * @param {!proto.GetDocumentVerificationTokenRequest} message
12025
+ * @param {!jspb.BinaryWriter} writer
12026
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12027
+ */
12028
+ proto.GetDocumentVerificationTokenRequest.serializeBinaryToWriter = function(message, writer) {
12029
+ var f = undefined;
12030
+ f = message.getReferencesId();
12031
+ if (f.length > 0) {
12032
+ writer.writeString(
12033
+ 1,
12034
+ f
12035
+ );
12036
+ }
12037
+ };
12038
+
12039
+
12040
+ /**
12041
+ * optional string references_id = 1;
12042
+ * @return {string}
12043
+ */
12044
+ proto.GetDocumentVerificationTokenRequest.prototype.getReferencesId = function() {
12045
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12046
+ };
12047
+
12048
+
12049
+ /**
12050
+ * @param {string} value
12051
+ * @return {!proto.GetDocumentVerificationTokenRequest} returns this
12052
+ */
12053
+ proto.GetDocumentVerificationTokenRequest.prototype.setReferencesId = function(value) {
12054
+ return jspb.Message.setProto3StringField(this, 1, value);
12055
+ };
12056
+
12057
+
12058
+
12059
+
12060
+
12061
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12062
+ /**
12063
+ * Creates an object representation of this proto.
12064
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12065
+ * Optional fields that are not set will be set to undefined.
12066
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12067
+ * For the list of reserved names please see:
12068
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12069
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12070
+ * JSPB instance for transitional soy proto support:
12071
+ * http://goto/soy-param-migration
12072
+ * @return {!Object}
12073
+ */
12074
+ proto.GetDocumentVerificationTokenResponse.prototype.toObject = function(opt_includeInstance) {
12075
+ return proto.GetDocumentVerificationTokenResponse.toObject(opt_includeInstance, this);
12076
+ };
12077
+
12078
+
12079
+ /**
12080
+ * Static version of the {@see toObject} method.
12081
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12082
+ * the JSPB instance for transitional soy proto support:
12083
+ * http://goto/soy-param-migration
12084
+ * @param {!proto.GetDocumentVerificationTokenResponse} msg The msg instance to transform.
12085
+ * @return {!Object}
12086
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12087
+ */
12088
+ proto.GetDocumentVerificationTokenResponse.toObject = function(includeInstance, msg) {
12089
+ var f, obj = {
12090
+ token: jspb.Message.getFieldWithDefault(msg, 1, ""),
12091
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
12092
+ };
12093
+
12094
+ if (includeInstance) {
12095
+ obj.$jspbMessageInstance = msg;
12096
+ }
12097
+ return obj;
12098
+ };
12099
+ }
12100
+
12101
+
12102
+ /**
12103
+ * Deserializes binary data (in protobuf wire format).
12104
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12105
+ * @return {!proto.GetDocumentVerificationTokenResponse}
12106
+ */
12107
+ proto.GetDocumentVerificationTokenResponse.deserializeBinary = function(bytes) {
12108
+ var reader = new jspb.BinaryReader(bytes);
12109
+ var msg = new proto.GetDocumentVerificationTokenResponse;
12110
+ return proto.GetDocumentVerificationTokenResponse.deserializeBinaryFromReader(msg, reader);
12111
+ };
12112
+
12113
+
12114
+ /**
12115
+ * Deserializes binary data (in protobuf wire format) from the
12116
+ * given reader into the given message object.
12117
+ * @param {!proto.GetDocumentVerificationTokenResponse} msg The message object to deserialize into.
12118
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12119
+ * @return {!proto.GetDocumentVerificationTokenResponse}
12120
+ */
12121
+ proto.GetDocumentVerificationTokenResponse.deserializeBinaryFromReader = function(msg, reader) {
12122
+ while (reader.nextField()) {
12123
+ if (reader.isEndGroup()) {
12124
+ break;
12125
+ }
12126
+ var field = reader.getFieldNumber();
12127
+ switch (field) {
12128
+ case 1:
12129
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12130
+ msg.setToken(value);
12131
+ break;
12132
+ case 2:
12133
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
12134
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
12135
+ msg.setMeta(value);
12136
+ break;
12137
+ default:
12138
+ reader.skipField();
12139
+ break;
12140
+ }
12141
+ }
12142
+ return msg;
12143
+ };
12144
+
12145
+
12146
+ /**
12147
+ * Serializes the message to binary data (in protobuf wire format).
12148
+ * @return {!Uint8Array}
12149
+ */
12150
+ proto.GetDocumentVerificationTokenResponse.prototype.serializeBinary = function() {
12151
+ var writer = new jspb.BinaryWriter();
12152
+ proto.GetDocumentVerificationTokenResponse.serializeBinaryToWriter(this, writer);
12153
+ return writer.getResultBuffer();
12154
+ };
12155
+
12156
+
12157
+ /**
12158
+ * Serializes the given message to binary data (in protobuf wire
12159
+ * format), writing to the given BinaryWriter.
12160
+ * @param {!proto.GetDocumentVerificationTokenResponse} message
12161
+ * @param {!jspb.BinaryWriter} writer
12162
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12163
+ */
12164
+ proto.GetDocumentVerificationTokenResponse.serializeBinaryToWriter = function(message, writer) {
12165
+ var f = undefined;
12166
+ f = message.getToken();
12167
+ if (f.length > 0) {
12168
+ writer.writeString(
12169
+ 1,
12170
+ f
12171
+ );
12172
+ }
12173
+ f = message.getMeta();
12174
+ if (f != null) {
12175
+ writer.writeMessage(
12176
+ 2,
12177
+ f,
12178
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
12179
+ );
12180
+ }
12181
+ };
12182
+
12183
+
12184
+ /**
12185
+ * optional string token = 1;
12186
+ * @return {string}
12187
+ */
12188
+ proto.GetDocumentVerificationTokenResponse.prototype.getToken = function() {
12189
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12190
+ };
12191
+
12192
+
12193
+ /**
12194
+ * @param {string} value
12195
+ * @return {!proto.GetDocumentVerificationTokenResponse} returns this
12196
+ */
12197
+ proto.GetDocumentVerificationTokenResponse.prototype.setToken = function(value) {
12198
+ return jspb.Message.setProto3StringField(this, 1, value);
12199
+ };
12200
+
12201
+
12202
+ /**
12203
+ * optional prisca.v1.global.meta.Meta meta = 2;
12204
+ * @return {?proto.prisca.v1.global.meta.Meta}
12205
+ */
12206
+ proto.GetDocumentVerificationTokenResponse.prototype.getMeta = function() {
12207
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
12208
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
12209
+ };
12210
+
12211
+
12212
+ /**
12213
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
12214
+ * @return {!proto.GetDocumentVerificationTokenResponse} returns this
12215
+ */
12216
+ proto.GetDocumentVerificationTokenResponse.prototype.setMeta = function(value) {
12217
+ return jspb.Message.setWrapperField(this, 2, value);
12218
+ };
12219
+
12220
+
12221
+ /**
12222
+ * Clears the message field making it undefined.
12223
+ * @return {!proto.GetDocumentVerificationTokenResponse} returns this
12224
+ */
12225
+ proto.GetDocumentVerificationTokenResponse.prototype.clearMeta = function() {
12226
+ return this.setMeta(undefined);
12227
+ };
12228
+
12229
+
12230
+ /**
12231
+ * Returns whether this field is set.
12232
+ * @return {boolean}
12233
+ */
12234
+ proto.GetDocumentVerificationTokenResponse.prototype.hasMeta = function() {
12235
+ return jspb.Message.getField(this, 2) != null;
12236
+ };
12237
+
12238
+
12239
+
12240
+
12241
+
11232
12242
  if (jspb.Message.GENERATE_TO_OBJECT) {
11233
12243
  /**
11234
12244
  * Creates an object representation of this proto.