@aldiokta/protocgen 1.0.62 → 1.0.63

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -174,4 +174,4 @@ var AccountAssignmentServiceService = exports.AccountAssignmentServiceService =
174
174
  },
175
175
  };
176
176
 
177
- exports.AccountAssignmentServiceClient = grpc.makeGenericClientConstructor(AccountAssignmentServiceService);
177
+ exports.AccountAssignmentServiceClient = grpc.makeGenericClientConstructor(AccountAssignmentServiceService, 'AccountAssignmentService');
@@ -175,4 +175,4 @@ var AccountGroupServiceService = exports.AccountGroupServiceService = {
175
175
  },
176
176
  };
177
177
 
178
- exports.AccountGroupServiceClient = grpc.makeGenericClientConstructor(AccountGroupServiceService);
178
+ exports.AccountGroupServiceClient = grpc.makeGenericClientConstructor(AccountGroupServiceService, 'AccountGroupService');
@@ -174,4 +174,4 @@ var ChartOfAccountServiceService = exports.ChartOfAccountServiceService = {
174
174
  },
175
175
  };
176
176
 
177
- exports.ChartOfAccountServiceClient = grpc.makeGenericClientConstructor(ChartOfAccountServiceService);
177
+ exports.ChartOfAccountServiceClient = grpc.makeGenericClientConstructor(ChartOfAccountServiceService, 'ChartOfAccountService');
@@ -175,4 +175,4 @@ var DocumentTypeServiceService = exports.DocumentTypeServiceService = {
175
175
  },
176
176
  };
177
177
 
178
- exports.DocumentTypeServiceClient = grpc.makeGenericClientConstructor(DocumentTypeServiceService);
178
+ exports.DocumentTypeServiceClient = grpc.makeGenericClientConstructor(DocumentTypeServiceService, 'DocumentTypeService');
@@ -178,4 +178,4 @@ var GeneralLedgerAccountServiceService = exports.GeneralLedgerAccountServiceServ
178
178
  },
179
179
  };
180
180
 
181
- exports.GeneralLedgerAccountServiceClient = grpc.makeGenericClientConstructor(GeneralLedgerAccountServiceService);
181
+ exports.GeneralLedgerAccountServiceClient = grpc.makeGenericClientConstructor(GeneralLedgerAccountServiceService, 'GeneralLedgerAccountService');
@@ -128,6 +128,17 @@ function deserialize_GetPurchaseRequisitionTransactionTrxDetailPreloadResponse(b
128
128
  return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTransactionTrxDetailPreloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
129
129
  }
130
130
 
131
+ function serialize_GetPurchaseRequisitionTrxByGroupRefRequest(arg) {
132
+ if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxByGroupRefRequest)) {
133
+ throw new Error('Expected argument of type GetPurchaseRequisitionTrxByGroupRefRequest');
134
+ }
135
+ return Buffer.from(arg.serializeBinary());
136
+ }
137
+
138
+ function deserialize_GetPurchaseRequisitionTrxByGroupRefRequest(buffer_arg) {
139
+ return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxByGroupRefRequest.deserializeBinary(new Uint8Array(buffer_arg));
140
+ }
141
+
131
142
  function serialize_GetPurchaseRequisitionTrxByIdRequest(arg) {
132
143
  if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxByIdRequest)) {
133
144
  throw new Error('Expected argument of type GetPurchaseRequisitionTrxByIdRequest');
@@ -238,6 +249,28 @@ function deserialize_GetPurchaseRequisitionTrxListResponse(buffer_arg) {
238
249
  return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxListResponse.deserializeBinary(new Uint8Array(buffer_arg));
239
250
  }
240
251
 
252
+ function serialize_UpdatePurchaseRequisitionTemplateRequest(arg) {
253
+ if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTemplateRequest)) {
254
+ throw new Error('Expected argument of type UpdatePurchaseRequisitionTemplateRequest');
255
+ }
256
+ return Buffer.from(arg.serializeBinary());
257
+ }
258
+
259
+ function deserialize_UpdatePurchaseRequisitionTemplateRequest(buffer_arg) {
260
+ return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTemplateRequest.deserializeBinary(new Uint8Array(buffer_arg));
261
+ }
262
+
263
+ function serialize_UpdatePurchaseRequisitionTemplateResponse(arg) {
264
+ if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTemplateResponse)) {
265
+ throw new Error('Expected argument of type UpdatePurchaseRequisitionTemplateResponse');
266
+ }
267
+ return Buffer.from(arg.serializeBinary());
268
+ }
269
+
270
+ function deserialize_UpdatePurchaseRequisitionTemplateResponse(buffer_arg) {
271
+ return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTemplateResponse.deserializeBinary(new Uint8Array(buffer_arg));
272
+ }
273
+
241
274
  function serialize_UpdatePurchaseRequisitionTrxRequest(arg) {
242
275
  if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTrxRequest)) {
243
276
  throw new Error('Expected argument of type UpdatePurchaseRequisitionTrxRequest');
@@ -394,6 +427,28 @@ var PurchaseRequisitionTrxServiceService = exports.PurchaseRequisitionTrxService
394
427
  responseSerialize: serialize_DeletePurchaseRequisitionTemplateResponse,
395
428
  responseDeserialize: deserialize_DeletePurchaseRequisitionTemplateResponse,
396
429
  },
430
+ updatePurchaseRequisitionTemplate: {
431
+ path: '/PurchaseRequisitionTrxService/UpdatePurchaseRequisitionTemplate',
432
+ requestStream: false,
433
+ responseStream: false,
434
+ requestType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTemplateRequest,
435
+ responseType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTemplateResponse,
436
+ requestSerialize: serialize_UpdatePurchaseRequisitionTemplateRequest,
437
+ requestDeserialize: deserialize_UpdatePurchaseRequisitionTemplateRequest,
438
+ responseSerialize: serialize_UpdatePurchaseRequisitionTemplateResponse,
439
+ responseDeserialize: deserialize_UpdatePurchaseRequisitionTemplateResponse,
440
+ },
441
+ getPurchaseRequisitionTrxByGroupRef: {
442
+ path: '/PurchaseRequisitionTrxService/GetPurchaseRequisitionTrxByGroupRef',
443
+ requestStream: false,
444
+ responseStream: false,
445
+ requestType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxByGroupRefRequest,
446
+ responseType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxListResponse,
447
+ requestSerialize: serialize_GetPurchaseRequisitionTrxByGroupRefRequest,
448
+ requestDeserialize: deserialize_GetPurchaseRequisitionTrxByGroupRefRequest,
449
+ responseSerialize: serialize_GetPurchaseRequisitionTrxListResponse,
450
+ responseDeserialize: deserialize_GetPurchaseRequisitionTrxListResponse,
451
+ },
397
452
  };
398
453
 
399
- exports.PurchaseRequisitionTrxServiceClient = grpc.makeGenericClientConstructor(PurchaseRequisitionTrxServiceService);
454
+ exports.PurchaseRequisitionTrxServiceClient = grpc.makeGenericClientConstructor(PurchaseRequisitionTrxServiceService, 'PurchaseRequisitionTrxService');
@@ -47,6 +47,7 @@ goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetail', null, glob
47
47
  goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload', null, global);
48
48
  goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload', null, global);
49
49
  goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetailPreloadResponse', null, global);
50
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxByGroupRefRequest', null, global);
50
51
  goog.exportSymbol('proto.GetPurchaseRequisitionTrxByIdRequest', null, global);
51
52
  goog.exportSymbol('proto.GetPurchaseRequisitionTrxByIdResponse', null, global);
52
53
  goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetaiPreloadlByIdResponse', null, global);
@@ -62,6 +63,8 @@ goog.exportSymbol('proto.GetPurchaseRequisitionTrxListResponse', null, global);
62
63
  goog.exportSymbol('proto.PurchaseRequisitionItemDetail', null, global);
63
64
  goog.exportSymbol('proto.PurchaseRequisitionItemTrx', null, global);
64
65
  goog.exportSymbol('proto.PurchaseRequisitionTrx', null, global);
66
+ goog.exportSymbol('proto.UpdatePurchaseRequisitionTemplateRequest', null, global);
67
+ goog.exportSymbol('proto.UpdatePurchaseRequisitionTemplateResponse', null, global);
65
68
  goog.exportSymbol('proto.UpdatePurchaseRequisitionTrxRequest', null, global);
66
69
  goog.exportSymbol('proto.UpdatePurchaseRequisitionTrxResponse', null, global);
67
70
  /**
@@ -274,6 +277,27 @@ if (goog.DEBUG && !COMPILED) {
274
277
  */
275
278
  proto.GetPurchaseRequisitionTrxByIdRequest.displayName = 'proto.GetPurchaseRequisitionTrxByIdRequest';
276
279
  }
280
+ /**
281
+ * Generated by JsPbCodeGenerator.
282
+ * @param {Array=} opt_data Optional initial data array, typically from a
283
+ * server response, or constructed directly in Javascript. The array is used
284
+ * in place and becomes part of the constructed object. It is not cloned.
285
+ * If no data is provided, the constructed object will be empty, but still
286
+ * valid.
287
+ * @extends {jspb.Message}
288
+ * @constructor
289
+ */
290
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest = function(opt_data) {
291
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
292
+ };
293
+ goog.inherits(proto.GetPurchaseRequisitionTrxByGroupRefRequest, jspb.Message);
294
+ if (goog.DEBUG && !COMPILED) {
295
+ /**
296
+ * @public
297
+ * @override
298
+ */
299
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.displayName = 'proto.GetPurchaseRequisitionTrxByGroupRefRequest';
300
+ }
277
301
  /**
278
302
  * Generated by JsPbCodeGenerator.
279
303
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -442,6 +466,27 @@ if (goog.DEBUG && !COMPILED) {
442
466
  */
443
467
  proto.DeletePurchaseRequisitionTemplateRequest.displayName = 'proto.DeletePurchaseRequisitionTemplateRequest';
444
468
  }
469
+ /**
470
+ * Generated by JsPbCodeGenerator.
471
+ * @param {Array=} opt_data Optional initial data array, typically from a
472
+ * server response, or constructed directly in Javascript. The array is used
473
+ * in place and becomes part of the constructed object. It is not cloned.
474
+ * If no data is provided, the constructed object will be empty, but still
475
+ * valid.
476
+ * @extends {jspb.Message}
477
+ * @constructor
478
+ */
479
+ proto.UpdatePurchaseRequisitionTemplateRequest = function(opt_data) {
480
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
481
+ };
482
+ goog.inherits(proto.UpdatePurchaseRequisitionTemplateRequest, jspb.Message);
483
+ if (goog.DEBUG && !COMPILED) {
484
+ /**
485
+ * @public
486
+ * @override
487
+ */
488
+ proto.UpdatePurchaseRequisitionTemplateRequest.displayName = 'proto.UpdatePurchaseRequisitionTemplateRequest';
489
+ }
445
490
  /**
446
491
  * Generated by JsPbCodeGenerator.
447
492
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -841,6 +886,27 @@ if (goog.DEBUG && !COMPILED) {
841
886
  */
842
887
  proto.DeletePurchaseRequisitionTemplateResponse.displayName = 'proto.DeletePurchaseRequisitionTemplateResponse';
843
888
  }
889
+ /**
890
+ * Generated by JsPbCodeGenerator.
891
+ * @param {Array=} opt_data Optional initial data array, typically from a
892
+ * server response, or constructed directly in Javascript. The array is used
893
+ * in place and becomes part of the constructed object. It is not cloned.
894
+ * If no data is provided, the constructed object will be empty, but still
895
+ * valid.
896
+ * @extends {jspb.Message}
897
+ * @constructor
898
+ */
899
+ proto.UpdatePurchaseRequisitionTemplateResponse = function(opt_data) {
900
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
901
+ };
902
+ goog.inherits(proto.UpdatePurchaseRequisitionTemplateResponse, jspb.Message);
903
+ if (goog.DEBUG && !COMPILED) {
904
+ /**
905
+ * @public
906
+ * @override
907
+ */
908
+ proto.UpdatePurchaseRequisitionTemplateResponse.displayName = 'proto.UpdatePurchaseRequisitionTemplateResponse';
909
+ }
844
910
 
845
911
  /**
846
912
  * List of repeated fields within this message type.
@@ -903,7 +969,9 @@ updatedAt: jspb.Message.getFieldWithDefault(msg, 19, ""),
903
969
  documentTypeRef: jspb.Message.getFieldWithDefault(msg, 20, ""),
904
970
  numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 21, ""),
905
971
  documentType: (f = msg.getDocumentType()) && prisca_v1_document_type_document_type_pb.DocumentType.toObject(includeInstance, f),
906
- status: jspb.Message.getFieldWithDefault(msg, 23, "")
972
+ status: jspb.Message.getFieldWithDefault(msg, 23, ""),
973
+ createdBy: jspb.Message.getFieldWithDefault(msg, 24, ""),
974
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 25, "")
907
975
  };
908
976
 
909
977
  if (includeInstance) {
@@ -1034,6 +1102,14 @@ proto.PurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, reader)
1034
1102
  var value = /** @type {string} */ (reader.readString());
1035
1103
  msg.setStatus(value);
1036
1104
  break;
1105
+ case 24:
1106
+ var value = /** @type {string} */ (reader.readString());
1107
+ msg.setCreatedBy(value);
1108
+ break;
1109
+ case 25:
1110
+ var value = /** @type {string} */ (reader.readString());
1111
+ msg.setUpdatedBy(value);
1112
+ break;
1037
1113
  default:
1038
1114
  reader.skipField();
1039
1115
  break;
@@ -1226,6 +1302,20 @@ proto.PurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer)
1226
1302
  f
1227
1303
  );
1228
1304
  }
1305
+ f = message.getCreatedBy();
1306
+ if (f.length > 0) {
1307
+ writer.writeString(
1308
+ 24,
1309
+ f
1310
+ );
1311
+ }
1312
+ f = message.getUpdatedBy();
1313
+ if (f.length > 0) {
1314
+ writer.writeString(
1315
+ 25,
1316
+ f
1317
+ );
1318
+ }
1229
1319
  };
1230
1320
 
1231
1321
 
@@ -1682,6 +1772,42 @@ proto.PurchaseRequisitionTrx.prototype.setStatus = function(value) {
1682
1772
  };
1683
1773
 
1684
1774
 
1775
+ /**
1776
+ * optional string created_by = 24;
1777
+ * @return {string}
1778
+ */
1779
+ proto.PurchaseRequisitionTrx.prototype.getCreatedBy = function() {
1780
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
1781
+ };
1782
+
1783
+
1784
+ /**
1785
+ * @param {string} value
1786
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1787
+ */
1788
+ proto.PurchaseRequisitionTrx.prototype.setCreatedBy = function(value) {
1789
+ return jspb.Message.setProto3StringField(this, 24, value);
1790
+ };
1791
+
1792
+
1793
+ /**
1794
+ * optional string updated_by = 25;
1795
+ * @return {string}
1796
+ */
1797
+ proto.PurchaseRequisitionTrx.prototype.getUpdatedBy = function() {
1798
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * @param {string} value
1804
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1805
+ */
1806
+ proto.PurchaseRequisitionTrx.prototype.setUpdatedBy = function(value) {
1807
+ return jspb.Message.setProto3StringField(this, 25, value);
1808
+ };
1809
+
1810
+
1685
1811
 
1686
1812
  /**
1687
1813
  * List of repeated fields within this message type.
@@ -5327,6 +5453,136 @@ proto.GetPurchaseRequisitionTrxByIdRequest.prototype.setId = function(value) {
5327
5453
 
5328
5454
 
5329
5455
 
5456
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5457
+ /**
5458
+ * Creates an object representation of this proto.
5459
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5460
+ * Optional fields that are not set will be set to undefined.
5461
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5462
+ * For the list of reserved names please see:
5463
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5464
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5465
+ * JSPB instance for transitional soy proto support:
5466
+ * http://goto/soy-param-migration
5467
+ * @return {!Object}
5468
+ */
5469
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.prototype.toObject = function(opt_includeInstance) {
5470
+ return proto.GetPurchaseRequisitionTrxByGroupRefRequest.toObject(opt_includeInstance, this);
5471
+ };
5472
+
5473
+
5474
+ /**
5475
+ * Static version of the {@see toObject} method.
5476
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5477
+ * the JSPB instance for transitional soy proto support:
5478
+ * http://goto/soy-param-migration
5479
+ * @param {!proto.GetPurchaseRequisitionTrxByGroupRefRequest} msg The msg instance to transform.
5480
+ * @return {!Object}
5481
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5482
+ */
5483
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.toObject = function(includeInstance, msg) {
5484
+ var f, obj = {
5485
+ groupRef: jspb.Message.getFieldWithDefault(msg, 1, "")
5486
+ };
5487
+
5488
+ if (includeInstance) {
5489
+ obj.$jspbMessageInstance = msg;
5490
+ }
5491
+ return obj;
5492
+ };
5493
+ }
5494
+
5495
+
5496
+ /**
5497
+ * Deserializes binary data (in protobuf wire format).
5498
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5499
+ * @return {!proto.GetPurchaseRequisitionTrxByGroupRefRequest}
5500
+ */
5501
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.deserializeBinary = function(bytes) {
5502
+ var reader = new jspb.BinaryReader(bytes);
5503
+ var msg = new proto.GetPurchaseRequisitionTrxByGroupRefRequest;
5504
+ return proto.GetPurchaseRequisitionTrxByGroupRefRequest.deserializeBinaryFromReader(msg, reader);
5505
+ };
5506
+
5507
+
5508
+ /**
5509
+ * Deserializes binary data (in protobuf wire format) from the
5510
+ * given reader into the given message object.
5511
+ * @param {!proto.GetPurchaseRequisitionTrxByGroupRefRequest} msg The message object to deserialize into.
5512
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5513
+ * @return {!proto.GetPurchaseRequisitionTrxByGroupRefRequest}
5514
+ */
5515
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.deserializeBinaryFromReader = function(msg, reader) {
5516
+ while (reader.nextField()) {
5517
+ if (reader.isEndGroup()) {
5518
+ break;
5519
+ }
5520
+ var field = reader.getFieldNumber();
5521
+ switch (field) {
5522
+ case 1:
5523
+ var value = /** @type {string} */ (reader.readString());
5524
+ msg.setGroupRef(value);
5525
+ break;
5526
+ default:
5527
+ reader.skipField();
5528
+ break;
5529
+ }
5530
+ }
5531
+ return msg;
5532
+ };
5533
+
5534
+
5535
+ /**
5536
+ * Serializes the message to binary data (in protobuf wire format).
5537
+ * @return {!Uint8Array}
5538
+ */
5539
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.prototype.serializeBinary = function() {
5540
+ var writer = new jspb.BinaryWriter();
5541
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.serializeBinaryToWriter(this, writer);
5542
+ return writer.getResultBuffer();
5543
+ };
5544
+
5545
+
5546
+ /**
5547
+ * Serializes the given message to binary data (in protobuf wire
5548
+ * format), writing to the given BinaryWriter.
5549
+ * @param {!proto.GetPurchaseRequisitionTrxByGroupRefRequest} message
5550
+ * @param {!jspb.BinaryWriter} writer
5551
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5552
+ */
5553
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.serializeBinaryToWriter = function(message, writer) {
5554
+ var f = undefined;
5555
+ f = message.getGroupRef();
5556
+ if (f.length > 0) {
5557
+ writer.writeString(
5558
+ 1,
5559
+ f
5560
+ );
5561
+ }
5562
+ };
5563
+
5564
+
5565
+ /**
5566
+ * optional string group_ref = 1;
5567
+ * @return {string}
5568
+ */
5569
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.prototype.getGroupRef = function() {
5570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5571
+ };
5572
+
5573
+
5574
+ /**
5575
+ * @param {string} value
5576
+ * @return {!proto.GetPurchaseRequisitionTrxByGroupRefRequest} returns this
5577
+ */
5578
+ proto.GetPurchaseRequisitionTrxByGroupRefRequest.prototype.setGroupRef = function(value) {
5579
+ return jspb.Message.setProto3StringField(this, 1, value);
5580
+ };
5581
+
5582
+
5583
+
5584
+
5585
+
5330
5586
  if (jspb.Message.GENERATE_TO_OBJECT) {
5331
5587
  /**
5332
5588
  * Creates an object representation of this proto.
@@ -6707,8 +6963,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6707
6963
  * http://goto/soy-param-migration
6708
6964
  * @return {!Object}
6709
6965
  */
6710
- proto.CreatePurchaseRequisitionTrxResponse.prototype.toObject = function(opt_includeInstance) {
6711
- return proto.CreatePurchaseRequisitionTrxResponse.toObject(opt_includeInstance, this);
6966
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.toObject = function(opt_includeInstance) {
6967
+ return proto.UpdatePurchaseRequisitionTemplateRequest.toObject(opt_includeInstance, this);
6712
6968
  };
6713
6969
 
6714
6970
 
@@ -6717,14 +6973,15 @@ proto.CreatePurchaseRequisitionTrxResponse.prototype.toObject = function(opt_inc
6717
6973
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6718
6974
  * the JSPB instance for transitional soy proto support:
6719
6975
  * http://goto/soy-param-migration
6720
- * @param {!proto.CreatePurchaseRequisitionTrxResponse} msg The msg instance to transform.
6976
+ * @param {!proto.UpdatePurchaseRequisitionTemplateRequest} msg The msg instance to transform.
6721
6977
  * @return {!Object}
6722
6978
  * @suppress {unusedLocalVariables} f is only used for nested messages
6723
6979
  */
6724
- proto.CreatePurchaseRequisitionTrxResponse.toObject = function(includeInstance, msg) {
6980
+ proto.UpdatePurchaseRequisitionTemplateRequest.toObject = function(includeInstance, msg) {
6725
6981
  var f, obj = {
6726
- purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.PurchaseRequisitionTrx.toObject(includeInstance, f),
6727
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
6982
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
6983
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.BaseUpdatePurchaseRequisitionTrx.toObject(includeInstance, f),
6984
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
6728
6985
  };
6729
6986
 
6730
6987
  if (includeInstance) {
@@ -6738,23 +6995,23 @@ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(include
6738
6995
  /**
6739
6996
  * Deserializes binary data (in protobuf wire format).
6740
6997
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
6741
- * @return {!proto.CreatePurchaseRequisitionTrxResponse}
6998
+ * @return {!proto.UpdatePurchaseRequisitionTemplateRequest}
6742
6999
  */
6743
- proto.CreatePurchaseRequisitionTrxResponse.deserializeBinary = function(bytes) {
7000
+ proto.UpdatePurchaseRequisitionTemplateRequest.deserializeBinary = function(bytes) {
6744
7001
  var reader = new jspb.BinaryReader(bytes);
6745
- var msg = new proto.CreatePurchaseRequisitionTrxResponse;
6746
- return proto.CreatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader(msg, reader);
7002
+ var msg = new proto.UpdatePurchaseRequisitionTemplateRequest;
7003
+ return proto.UpdatePurchaseRequisitionTemplateRequest.deserializeBinaryFromReader(msg, reader);
6747
7004
  };
6748
7005
 
6749
7006
 
6750
7007
  /**
6751
7008
  * Deserializes binary data (in protobuf wire format) from the
6752
7009
  * given reader into the given message object.
6753
- * @param {!proto.CreatePurchaseRequisitionTrxResponse} msg The message object to deserialize into.
7010
+ * @param {!proto.UpdatePurchaseRequisitionTemplateRequest} msg The message object to deserialize into.
6754
7011
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6755
- * @return {!proto.CreatePurchaseRequisitionTrxResponse}
7012
+ * @return {!proto.UpdatePurchaseRequisitionTemplateRequest}
6756
7013
  */
6757
- proto.CreatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader = function(msg, reader) {
7014
+ proto.UpdatePurchaseRequisitionTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
6758
7015
  while (reader.nextField()) {
6759
7016
  if (reader.isEndGroup()) {
6760
7017
  break;
@@ -6762,14 +7019,17 @@ proto.CreatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader = functio
6762
7019
  var field = reader.getFieldNumber();
6763
7020
  switch (field) {
6764
7021
  case 1:
6765
- var value = new proto.PurchaseRequisitionTrx;
6766
- reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
6767
- msg.setPurchaseRequisitionTransaction(value);
7022
+ var value = /** @type {number} */ (reader.readInt64());
7023
+ msg.setId(value);
6768
7024
  break;
6769
7025
  case 2:
6770
- var value = new prisca_v1_global_meta_meta_pb.Meta;
6771
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
6772
- msg.setMeta(value);
7026
+ var value = new proto.BaseUpdatePurchaseRequisitionTrx;
7027
+ reader.readMessage(value,proto.BaseUpdatePurchaseRequisitionTrx.deserializeBinaryFromReader);
7028
+ msg.setPurchaseRequisitionTransaction(value);
7029
+ break;
7030
+ case 3:
7031
+ var value = /** @type {string} */ (reader.readString());
7032
+ msg.setCompaniesReferencesId(value);
6773
7033
  break;
6774
7034
  default:
6775
7035
  reader.skipField();
@@ -6784,9 +7044,9 @@ proto.CreatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader = functio
6784
7044
  * Serializes the message to binary data (in protobuf wire format).
6785
7045
  * @return {!Uint8Array}
6786
7046
  */
6787
- proto.CreatePurchaseRequisitionTrxResponse.prototype.serializeBinary = function() {
7047
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.serializeBinary = function() {
6788
7048
  var writer = new jspb.BinaryWriter();
6789
- proto.CreatePurchaseRequisitionTrxResponse.serializeBinaryToWriter(this, writer);
7049
+ proto.UpdatePurchaseRequisitionTemplateRequest.serializeBinaryToWriter(this, writer);
6790
7050
  return writer.getResultBuffer();
6791
7051
  };
6792
7052
 
@@ -6794,33 +7054,240 @@ proto.CreatePurchaseRequisitionTrxResponse.prototype.serializeBinary = function(
6794
7054
  /**
6795
7055
  * Serializes the given message to binary data (in protobuf wire
6796
7056
  * format), writing to the given BinaryWriter.
6797
- * @param {!proto.CreatePurchaseRequisitionTrxResponse} message
7057
+ * @param {!proto.UpdatePurchaseRequisitionTemplateRequest} message
6798
7058
  * @param {!jspb.BinaryWriter} writer
6799
7059
  * @suppress {unusedLocalVariables} f is only used for nested messages
6800
7060
  */
6801
- proto.CreatePurchaseRequisitionTrxResponse.serializeBinaryToWriter = function(message, writer) {
7061
+ proto.UpdatePurchaseRequisitionTemplateRequest.serializeBinaryToWriter = function(message, writer) {
6802
7062
  var f = undefined;
6803
- f = message.getPurchaseRequisitionTransaction();
6804
- if (f != null) {
6805
- writer.writeMessage(
7063
+ f = message.getId();
7064
+ if (f !== 0) {
7065
+ writer.writeInt64(
6806
7066
  1,
6807
- f,
6808
- proto.PurchaseRequisitionTrx.serializeBinaryToWriter
7067
+ f
6809
7068
  );
6810
7069
  }
6811
- f = message.getMeta();
7070
+ f = message.getPurchaseRequisitionTransaction();
6812
7071
  if (f != null) {
6813
7072
  writer.writeMessage(
6814
7073
  2,
6815
7074
  f,
6816
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
7075
+ proto.BaseUpdatePurchaseRequisitionTrx.serializeBinaryToWriter
7076
+ );
7077
+ }
7078
+ f = message.getCompaniesReferencesId();
7079
+ if (f.length > 0) {
7080
+ writer.writeString(
7081
+ 3,
7082
+ f
6817
7083
  );
6818
7084
  }
6819
7085
  };
6820
7086
 
6821
7087
 
6822
7088
  /**
6823
- * optional PurchaseRequisitionTrx purchase_requisition_transaction = 1;
7089
+ * optional int64 id = 1;
7090
+ * @return {number}
7091
+ */
7092
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.getId = function() {
7093
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7094
+ };
7095
+
7096
+
7097
+ /**
7098
+ * @param {number} value
7099
+ * @return {!proto.UpdatePurchaseRequisitionTemplateRequest} returns this
7100
+ */
7101
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.setId = function(value) {
7102
+ return jspb.Message.setProto3IntField(this, 1, value);
7103
+ };
7104
+
7105
+
7106
+ /**
7107
+ * optional BaseUpdatePurchaseRequisitionTrx purchase_requisition_transaction = 2;
7108
+ * @return {?proto.BaseUpdatePurchaseRequisitionTrx}
7109
+ */
7110
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.getPurchaseRequisitionTransaction = function() {
7111
+ return /** @type{?proto.BaseUpdatePurchaseRequisitionTrx} */ (
7112
+ jspb.Message.getWrapperField(this, proto.BaseUpdatePurchaseRequisitionTrx, 2));
7113
+ };
7114
+
7115
+
7116
+ /**
7117
+ * @param {?proto.BaseUpdatePurchaseRequisitionTrx|undefined} value
7118
+ * @return {!proto.UpdatePurchaseRequisitionTemplateRequest} returns this
7119
+ */
7120
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.setPurchaseRequisitionTransaction = function(value) {
7121
+ return jspb.Message.setWrapperField(this, 2, value);
7122
+ };
7123
+
7124
+
7125
+ /**
7126
+ * Clears the message field making it undefined.
7127
+ * @return {!proto.UpdatePurchaseRequisitionTemplateRequest} returns this
7128
+ */
7129
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.clearPurchaseRequisitionTransaction = function() {
7130
+ return this.setPurchaseRequisitionTransaction(undefined);
7131
+ };
7132
+
7133
+
7134
+ /**
7135
+ * Returns whether this field is set.
7136
+ * @return {boolean}
7137
+ */
7138
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.hasPurchaseRequisitionTransaction = function() {
7139
+ return jspb.Message.getField(this, 2) != null;
7140
+ };
7141
+
7142
+
7143
+ /**
7144
+ * optional string companies_references_id = 3;
7145
+ * @return {string}
7146
+ */
7147
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.getCompaniesReferencesId = function() {
7148
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7149
+ };
7150
+
7151
+
7152
+ /**
7153
+ * @param {string} value
7154
+ * @return {!proto.UpdatePurchaseRequisitionTemplateRequest} returns this
7155
+ */
7156
+ proto.UpdatePurchaseRequisitionTemplateRequest.prototype.setCompaniesReferencesId = function(value) {
7157
+ return jspb.Message.setProto3StringField(this, 3, value);
7158
+ };
7159
+
7160
+
7161
+
7162
+
7163
+
7164
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7165
+ /**
7166
+ * Creates an object representation of this proto.
7167
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7168
+ * Optional fields that are not set will be set to undefined.
7169
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7170
+ * For the list of reserved names please see:
7171
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7172
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7173
+ * JSPB instance for transitional soy proto support:
7174
+ * http://goto/soy-param-migration
7175
+ * @return {!Object}
7176
+ */
7177
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.toObject = function(opt_includeInstance) {
7178
+ return proto.CreatePurchaseRequisitionTrxResponse.toObject(opt_includeInstance, this);
7179
+ };
7180
+
7181
+
7182
+ /**
7183
+ * Static version of the {@see toObject} method.
7184
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7185
+ * the JSPB instance for transitional soy proto support:
7186
+ * http://goto/soy-param-migration
7187
+ * @param {!proto.CreatePurchaseRequisitionTrxResponse} msg The msg instance to transform.
7188
+ * @return {!Object}
7189
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7190
+ */
7191
+ proto.CreatePurchaseRequisitionTrxResponse.toObject = function(includeInstance, msg) {
7192
+ var f, obj = {
7193
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.PurchaseRequisitionTrx.toObject(includeInstance, f),
7194
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
7195
+ };
7196
+
7197
+ if (includeInstance) {
7198
+ obj.$jspbMessageInstance = msg;
7199
+ }
7200
+ return obj;
7201
+ };
7202
+ }
7203
+
7204
+
7205
+ /**
7206
+ * Deserializes binary data (in protobuf wire format).
7207
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7208
+ * @return {!proto.CreatePurchaseRequisitionTrxResponse}
7209
+ */
7210
+ proto.CreatePurchaseRequisitionTrxResponse.deserializeBinary = function(bytes) {
7211
+ var reader = new jspb.BinaryReader(bytes);
7212
+ var msg = new proto.CreatePurchaseRequisitionTrxResponse;
7213
+ return proto.CreatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader(msg, reader);
7214
+ };
7215
+
7216
+
7217
+ /**
7218
+ * Deserializes binary data (in protobuf wire format) from the
7219
+ * given reader into the given message object.
7220
+ * @param {!proto.CreatePurchaseRequisitionTrxResponse} msg The message object to deserialize into.
7221
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7222
+ * @return {!proto.CreatePurchaseRequisitionTrxResponse}
7223
+ */
7224
+ proto.CreatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader = function(msg, reader) {
7225
+ while (reader.nextField()) {
7226
+ if (reader.isEndGroup()) {
7227
+ break;
7228
+ }
7229
+ var field = reader.getFieldNumber();
7230
+ switch (field) {
7231
+ case 1:
7232
+ var value = new proto.PurchaseRequisitionTrx;
7233
+ reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
7234
+ msg.setPurchaseRequisitionTransaction(value);
7235
+ break;
7236
+ case 2:
7237
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
7238
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
7239
+ msg.setMeta(value);
7240
+ break;
7241
+ default:
7242
+ reader.skipField();
7243
+ break;
7244
+ }
7245
+ }
7246
+ return msg;
7247
+ };
7248
+
7249
+
7250
+ /**
7251
+ * Serializes the message to binary data (in protobuf wire format).
7252
+ * @return {!Uint8Array}
7253
+ */
7254
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.serializeBinary = function() {
7255
+ var writer = new jspb.BinaryWriter();
7256
+ proto.CreatePurchaseRequisitionTrxResponse.serializeBinaryToWriter(this, writer);
7257
+ return writer.getResultBuffer();
7258
+ };
7259
+
7260
+
7261
+ /**
7262
+ * Serializes the given message to binary data (in protobuf wire
7263
+ * format), writing to the given BinaryWriter.
7264
+ * @param {!proto.CreatePurchaseRequisitionTrxResponse} message
7265
+ * @param {!jspb.BinaryWriter} writer
7266
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7267
+ */
7268
+ proto.CreatePurchaseRequisitionTrxResponse.serializeBinaryToWriter = function(message, writer) {
7269
+ var f = undefined;
7270
+ f = message.getPurchaseRequisitionTransaction();
7271
+ if (f != null) {
7272
+ writer.writeMessage(
7273
+ 1,
7274
+ f,
7275
+ proto.PurchaseRequisitionTrx.serializeBinaryToWriter
7276
+ );
7277
+ }
7278
+ f = message.getMeta();
7279
+ if (f != null) {
7280
+ writer.writeMessage(
7281
+ 2,
7282
+ f,
7283
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
7284
+ );
7285
+ }
7286
+ };
7287
+
7288
+
7289
+ /**
7290
+ * optional PurchaseRequisitionTrx purchase_requisition_transaction = 1;
6824
7291
  * @return {?proto.PurchaseRequisitionTrx}
6825
7292
  */
6826
7293
  proto.CreatePurchaseRequisitionTrxResponse.prototype.getPurchaseRequisitionTransaction = function() {
@@ -10420,4 +10887,206 @@ proto.DeletePurchaseRequisitionTemplateResponse.prototype.hasMeta = function() {
10420
10887
  };
10421
10888
 
10422
10889
 
10890
+
10891
+
10892
+
10893
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10894
+ /**
10895
+ * Creates an object representation of this proto.
10896
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10897
+ * Optional fields that are not set will be set to undefined.
10898
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10899
+ * For the list of reserved names please see:
10900
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10901
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10902
+ * JSPB instance for transitional soy proto support:
10903
+ * http://goto/soy-param-migration
10904
+ * @return {!Object}
10905
+ */
10906
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.toObject = function(opt_includeInstance) {
10907
+ return proto.UpdatePurchaseRequisitionTemplateResponse.toObject(opt_includeInstance, this);
10908
+ };
10909
+
10910
+
10911
+ /**
10912
+ * Static version of the {@see toObject} method.
10913
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10914
+ * the JSPB instance for transitional soy proto support:
10915
+ * http://goto/soy-param-migration
10916
+ * @param {!proto.UpdatePurchaseRequisitionTemplateResponse} msg The msg instance to transform.
10917
+ * @return {!Object}
10918
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10919
+ */
10920
+ proto.UpdatePurchaseRequisitionTemplateResponse.toObject = function(includeInstance, msg) {
10921
+ var f, obj = {
10922
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.PurchaseRequisitionTrx.toObject(includeInstance, f),
10923
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
10924
+ };
10925
+
10926
+ if (includeInstance) {
10927
+ obj.$jspbMessageInstance = msg;
10928
+ }
10929
+ return obj;
10930
+ };
10931
+ }
10932
+
10933
+
10934
+ /**
10935
+ * Deserializes binary data (in protobuf wire format).
10936
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10937
+ * @return {!proto.UpdatePurchaseRequisitionTemplateResponse}
10938
+ */
10939
+ proto.UpdatePurchaseRequisitionTemplateResponse.deserializeBinary = function(bytes) {
10940
+ var reader = new jspb.BinaryReader(bytes);
10941
+ var msg = new proto.UpdatePurchaseRequisitionTemplateResponse;
10942
+ return proto.UpdatePurchaseRequisitionTemplateResponse.deserializeBinaryFromReader(msg, reader);
10943
+ };
10944
+
10945
+
10946
+ /**
10947
+ * Deserializes binary data (in protobuf wire format) from the
10948
+ * given reader into the given message object.
10949
+ * @param {!proto.UpdatePurchaseRequisitionTemplateResponse} msg The message object to deserialize into.
10950
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10951
+ * @return {!proto.UpdatePurchaseRequisitionTemplateResponse}
10952
+ */
10953
+ proto.UpdatePurchaseRequisitionTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
10954
+ while (reader.nextField()) {
10955
+ if (reader.isEndGroup()) {
10956
+ break;
10957
+ }
10958
+ var field = reader.getFieldNumber();
10959
+ switch (field) {
10960
+ case 1:
10961
+ var value = new proto.PurchaseRequisitionTrx;
10962
+ reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
10963
+ msg.setPurchaseRequisitionTransaction(value);
10964
+ break;
10965
+ case 2:
10966
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
10967
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
10968
+ msg.setMeta(value);
10969
+ break;
10970
+ default:
10971
+ reader.skipField();
10972
+ break;
10973
+ }
10974
+ }
10975
+ return msg;
10976
+ };
10977
+
10978
+
10979
+ /**
10980
+ * Serializes the message to binary data (in protobuf wire format).
10981
+ * @return {!Uint8Array}
10982
+ */
10983
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.serializeBinary = function() {
10984
+ var writer = new jspb.BinaryWriter();
10985
+ proto.UpdatePurchaseRequisitionTemplateResponse.serializeBinaryToWriter(this, writer);
10986
+ return writer.getResultBuffer();
10987
+ };
10988
+
10989
+
10990
+ /**
10991
+ * Serializes the given message to binary data (in protobuf wire
10992
+ * format), writing to the given BinaryWriter.
10993
+ * @param {!proto.UpdatePurchaseRequisitionTemplateResponse} message
10994
+ * @param {!jspb.BinaryWriter} writer
10995
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10996
+ */
10997
+ proto.UpdatePurchaseRequisitionTemplateResponse.serializeBinaryToWriter = function(message, writer) {
10998
+ var f = undefined;
10999
+ f = message.getPurchaseRequisitionTransaction();
11000
+ if (f != null) {
11001
+ writer.writeMessage(
11002
+ 1,
11003
+ f,
11004
+ proto.PurchaseRequisitionTrx.serializeBinaryToWriter
11005
+ );
11006
+ }
11007
+ f = message.getMeta();
11008
+ if (f != null) {
11009
+ writer.writeMessage(
11010
+ 2,
11011
+ f,
11012
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
11013
+ );
11014
+ }
11015
+ };
11016
+
11017
+
11018
+ /**
11019
+ * optional PurchaseRequisitionTrx purchase_requisition_transaction = 1;
11020
+ * @return {?proto.PurchaseRequisitionTrx}
11021
+ */
11022
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.getPurchaseRequisitionTransaction = function() {
11023
+ return /** @type{?proto.PurchaseRequisitionTrx} */ (
11024
+ jspb.Message.getWrapperField(this, proto.PurchaseRequisitionTrx, 1));
11025
+ };
11026
+
11027
+
11028
+ /**
11029
+ * @param {?proto.PurchaseRequisitionTrx|undefined} value
11030
+ * @return {!proto.UpdatePurchaseRequisitionTemplateResponse} returns this
11031
+ */
11032
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.setPurchaseRequisitionTransaction = function(value) {
11033
+ return jspb.Message.setWrapperField(this, 1, value);
11034
+ };
11035
+
11036
+
11037
+ /**
11038
+ * Clears the message field making it undefined.
11039
+ * @return {!proto.UpdatePurchaseRequisitionTemplateResponse} returns this
11040
+ */
11041
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.clearPurchaseRequisitionTransaction = function() {
11042
+ return this.setPurchaseRequisitionTransaction(undefined);
11043
+ };
11044
+
11045
+
11046
+ /**
11047
+ * Returns whether this field is set.
11048
+ * @return {boolean}
11049
+ */
11050
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.hasPurchaseRequisitionTransaction = function() {
11051
+ return jspb.Message.getField(this, 1) != null;
11052
+ };
11053
+
11054
+
11055
+ /**
11056
+ * optional prisca.v1.global.meta.Meta meta = 2;
11057
+ * @return {?proto.prisca.v1.global.meta.Meta}
11058
+ */
11059
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.getMeta = function() {
11060
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
11061
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
11062
+ };
11063
+
11064
+
11065
+ /**
11066
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
11067
+ * @return {!proto.UpdatePurchaseRequisitionTemplateResponse} returns this
11068
+ */
11069
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.setMeta = function(value) {
11070
+ return jspb.Message.setWrapperField(this, 2, value);
11071
+ };
11072
+
11073
+
11074
+ /**
11075
+ * Clears the message field making it undefined.
11076
+ * @return {!proto.UpdatePurchaseRequisitionTemplateResponse} returns this
11077
+ */
11078
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.clearMeta = function() {
11079
+ return this.setMeta(undefined);
11080
+ };
11081
+
11082
+
11083
+ /**
11084
+ * Returns whether this field is set.
11085
+ * @return {boolean}
11086
+ */
11087
+ proto.UpdatePurchaseRequisitionTemplateResponse.prototype.hasMeta = function() {
11088
+ return jspb.Message.getField(this, 2) != null;
11089
+ };
11090
+
11091
+
10423
11092
  goog.object.extend(exports, proto);
@@ -175,4 +175,4 @@ var PurchasingGroupServiceService = exports.PurchasingGroupServiceService = {
175
175
  },
176
176
  };
177
177
 
178
- exports.PurchasingGroupServiceClient = grpc.makeGenericClientConstructor(PurchasingGroupServiceService);
178
+ exports.PurchasingGroupServiceClient = grpc.makeGenericClientConstructor(PurchasingGroupServiceService, 'PurchasingGroupService');
@@ -142,4 +142,4 @@ var PurchasingOrganizationServiceService = exports.PurchasingOrganizationService
142
142
  },
143
143
  };
144
144
 
145
- exports.PurchasingOrganizationServiceClient = grpc.makeGenericClientConstructor(PurchasingOrganizationServiceService);
145
+ exports.PurchasingOrganizationServiceClient = grpc.makeGenericClientConstructor(PurchasingOrganizationServiceService, 'PurchasingOrganizationService');
@@ -143,4 +143,4 @@ var AssignPOrganizationServiceService = exports.AssignPOrganizationServiceServic
143
143
  },
144
144
  };
145
145
 
146
- exports.AssignPOrganizationServiceClient = grpc.makeGenericClientConstructor(AssignPOrganizationServiceService);
146
+ exports.AssignPOrganizationServiceClient = grpc.makeGenericClientConstructor(AssignPOrganizationServiceService, 'AssignPOrganizationService');
@@ -5,7 +5,6 @@ var grpc = require('@grpc/grpc-js');
5
5
  var prisca_v1_purchasing_organization_plant_purchasing_organization_plant_pb = require('../../../prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js');
6
6
  var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
7
7
  var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
8
- var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
9
8
 
10
9
  function serialize_CreatePlantPOrganizationRequest(arg) {
11
10
  if (!(arg instanceof prisca_v1_purchasing_organization_plant_purchasing_organization_plant_pb.CreatePlantPOrganizationRequest)) {
@@ -143,4 +142,4 @@ var PlantPOrganizationServiceService = exports.PlantPOrganizationServiceService
143
142
  },
144
143
  };
145
144
 
146
- exports.PlantPOrganizationServiceClient = grpc.makeGenericClientConstructor(PlantPOrganizationServiceService);
145
+ exports.PlantPOrganizationServiceClient = grpc.makeGenericClientConstructor(PlantPOrganizationServiceService, 'PlantPOrganizationService');
@@ -25,8 +25,6 @@ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta
25
25
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
26
  var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
27
27
  goog.object.extend(proto, prisca_v1_purchasing_organization_purchasing_organization_pb);
28
- var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
29
- goog.object.extend(proto, prisca_v1_core_company_company_pb);
30
28
  goog.exportSymbol('proto.BasePlantPOrganization', null, global);
31
29
  goog.exportSymbol('proto.CreatePlantPOrganizationRequest', null, global);
32
30
  goog.exportSymbol('proto.CreatePlantPOrganizationResponse', null, global);
@@ -304,8 +302,7 @@ proto.PlantPOrganization.toObject = function(includeInstance, msg) {
304
302
  purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
305
303
  plantReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
306
304
  code: jspb.Message.getFieldWithDefault(msg, 3, ""),
307
- description: jspb.Message.getFieldWithDefault(msg, 4, ""),
308
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
305
+ description: jspb.Message.getFieldWithDefault(msg, 4, "")
309
306
  };
310
307
 
311
308
  if (includeInstance) {
@@ -358,10 +355,6 @@ proto.PlantPOrganization.deserializeBinaryFromReader = function(msg, reader) {
358
355
  var value = /** @type {string} */ (reader.readString());
359
356
  msg.setDescription(value);
360
357
  break;
361
- case 5:
362
- var value = /** @type {string} */ (reader.readString());
363
- msg.setCompaniesReferencesId(value);
364
- break;
365
358
  default:
366
359
  reader.skipField();
367
360
  break;
@@ -419,13 +412,6 @@ proto.PlantPOrganization.serializeBinaryToWriter = function(message, writer) {
419
412
  f
420
413
  );
421
414
  }
422
- f = message.getCompaniesReferencesId();
423
- if (f.length > 0) {
424
- writer.writeString(
425
- 5,
426
- f
427
- );
428
- }
429
415
  };
430
416
 
431
417
 
@@ -501,24 +487,6 @@ proto.PlantPOrganization.prototype.setDescription = function(value) {
501
487
  };
502
488
 
503
489
 
504
- /**
505
- * optional string companies_references_id = 5;
506
- * @return {string}
507
- */
508
- proto.PlantPOrganization.prototype.getCompaniesReferencesId = function() {
509
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
510
- };
511
-
512
-
513
- /**
514
- * @param {string} value
515
- * @return {!proto.PlantPOrganization} returns this
516
- */
517
- proto.PlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
518
- return jspb.Message.setProto3StringField(this, 5, value);
519
- };
520
-
521
-
522
490
 
523
491
 
524
492
 
@@ -554,9 +522,9 @@ proto.BasePlantPOrganization.toObject = function(includeInstance, msg) {
554
522
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
555
523
  plant: (f = msg.getPlant()) && proto.POWorkLocation.toObject(includeInstance, f),
556
524
  code: jspb.Message.getFieldWithDefault(msg, 3, ""),
557
- purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.toObject(includeInstance, f),
558
- company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
559
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 6, "")
525
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
526
+ purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
527
+ purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.toObject(includeInstance, f)
560
528
  };
561
529
 
562
530
  if (includeInstance) {
@@ -607,18 +575,17 @@ proto.BasePlantPOrganization.deserializeBinaryFromReader = function(msg, reader)
607
575
  msg.setCode(value);
608
576
  break;
609
577
  case 4:
610
- var value = new prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization;
611
- reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.deserializeBinaryFromReader);
612
- msg.setPurchasingOrganizations(value);
578
+ var value = /** @type {string} */ (reader.readString());
579
+ msg.setDescription(value);
613
580
  break;
614
581
  case 5:
615
- var value = new prisca_v1_core_company_company_pb.Company;
616
- reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
617
- msg.setCompany(value);
582
+ var value = /** @type {string} */ (reader.readString());
583
+ msg.setPurchasingOrganizationReferencesId(value);
618
584
  break;
619
585
  case 6:
620
- var value = /** @type {string} */ (reader.readString());
621
- msg.setCompaniesReferencesId(value);
586
+ var value = new prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization;
587
+ reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.deserializeBinaryFromReader);
588
+ msg.setPurchasingOrganizations(value);
622
589
  break;
623
590
  default:
624
591
  reader.skipField();
@@ -671,27 +638,26 @@ proto.BasePlantPOrganization.serializeBinaryToWriter = function(message, writer)
671
638
  f
672
639
  );
673
640
  }
674
- f = message.getPurchasingOrganizations();
675
- if (f != null) {
676
- writer.writeMessage(
641
+ f = message.getDescription();
642
+ if (f.length > 0) {
643
+ writer.writeString(
677
644
  4,
678
- f,
679
- prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.serializeBinaryToWriter
645
+ f
680
646
  );
681
647
  }
682
- f = message.getCompany();
683
- if (f != null) {
684
- writer.writeMessage(
648
+ f = message.getPurchasingOrganizationReferencesId();
649
+ if (f.length > 0) {
650
+ writer.writeString(
685
651
  5,
686
- f,
687
- prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
652
+ f
688
653
  );
689
654
  }
690
- f = message.getCompaniesReferencesId();
691
- if (f.length > 0) {
692
- writer.writeString(
655
+ f = message.getPurchasingOrganizations();
656
+ if (f != null) {
657
+ writer.writeMessage(
693
658
  6,
694
- f
659
+ f,
660
+ prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.serializeBinaryToWriter
695
661
  );
696
662
  }
697
663
  };
@@ -771,58 +737,57 @@ proto.BasePlantPOrganization.prototype.setCode = function(value) {
771
737
 
772
738
 
773
739
  /**
774
- * optional PurchasingOrganization purchasing_organizations = 4;
775
- * @return {?proto.PurchasingOrganization}
740
+ * optional string description = 4;
741
+ * @return {string}
776
742
  */
777
- proto.BasePlantPOrganization.prototype.getPurchasingOrganizations = function() {
778
- return /** @type{?proto.PurchasingOrganization} */ (
779
- jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization, 4));
743
+ proto.BasePlantPOrganization.prototype.getDescription = function() {
744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
780
745
  };
781
746
 
782
747
 
783
748
  /**
784
- * @param {?proto.PurchasingOrganization|undefined} value
749
+ * @param {string} value
785
750
  * @return {!proto.BasePlantPOrganization} returns this
786
- */
787
- proto.BasePlantPOrganization.prototype.setPurchasingOrganizations = function(value) {
788
- return jspb.Message.setWrapperField(this, 4, value);
751
+ */
752
+ proto.BasePlantPOrganization.prototype.setDescription = function(value) {
753
+ return jspb.Message.setProto3StringField(this, 4, value);
789
754
  };
790
755
 
791
756
 
792
757
  /**
793
- * Clears the message field making it undefined.
794
- * @return {!proto.BasePlantPOrganization} returns this
758
+ * optional string purchasing_organization_references_id = 5;
759
+ * @return {string}
795
760
  */
796
- proto.BasePlantPOrganization.prototype.clearPurchasingOrganizations = function() {
797
- return this.setPurchasingOrganizations(undefined);
761
+ proto.BasePlantPOrganization.prototype.getPurchasingOrganizationReferencesId = function() {
762
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
798
763
  };
799
764
 
800
765
 
801
766
  /**
802
- * Returns whether this field is set.
803
- * @return {boolean}
767
+ * @param {string} value
768
+ * @return {!proto.BasePlantPOrganization} returns this
804
769
  */
805
- proto.BasePlantPOrganization.prototype.hasPurchasingOrganizations = function() {
806
- return jspb.Message.getField(this, 4) != null;
770
+ proto.BasePlantPOrganization.prototype.setPurchasingOrganizationReferencesId = function(value) {
771
+ return jspb.Message.setProto3StringField(this, 5, value);
807
772
  };
808
773
 
809
774
 
810
775
  /**
811
- * optional Company company = 5;
812
- * @return {?proto.Company}
776
+ * optional PurchasingOrganization purchasing_organizations = 6;
777
+ * @return {?proto.PurchasingOrganization}
813
778
  */
814
- proto.BasePlantPOrganization.prototype.getCompany = function() {
815
- return /** @type{?proto.Company} */ (
816
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 5));
779
+ proto.BasePlantPOrganization.prototype.getPurchasingOrganizations = function() {
780
+ return /** @type{?proto.PurchasingOrganization} */ (
781
+ jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization, 6));
817
782
  };
818
783
 
819
784
 
820
785
  /**
821
- * @param {?proto.Company|undefined} value
786
+ * @param {?proto.PurchasingOrganization|undefined} value
822
787
  * @return {!proto.BasePlantPOrganization} returns this
823
788
  */
824
- proto.BasePlantPOrganization.prototype.setCompany = function(value) {
825
- return jspb.Message.setWrapperField(this, 5, value);
789
+ proto.BasePlantPOrganization.prototype.setPurchasingOrganizations = function(value) {
790
+ return jspb.Message.setWrapperField(this, 6, value);
826
791
  };
827
792
 
828
793
 
@@ -830,8 +795,8 @@ proto.BasePlantPOrganization.prototype.setCompany = function(value) {
830
795
  * Clears the message field making it undefined.
831
796
  * @return {!proto.BasePlantPOrganization} returns this
832
797
  */
833
- proto.BasePlantPOrganization.prototype.clearCompany = function() {
834
- return this.setCompany(undefined);
798
+ proto.BasePlantPOrganization.prototype.clearPurchasingOrganizations = function() {
799
+ return this.setPurchasingOrganizations(undefined);
835
800
  };
836
801
 
837
802
 
@@ -839,26 +804,8 @@ proto.BasePlantPOrganization.prototype.clearCompany = function() {
839
804
  * Returns whether this field is set.
840
805
  * @return {boolean}
841
806
  */
842
- proto.BasePlantPOrganization.prototype.hasCompany = function() {
843
- return jspb.Message.getField(this, 5) != null;
844
- };
845
-
846
-
847
- /**
848
- * optional string companies_references_id = 6;
849
- * @return {string}
850
- */
851
- proto.BasePlantPOrganization.prototype.getCompaniesReferencesId = function() {
852
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
853
- };
854
-
855
-
856
- /**
857
- * @param {string} value
858
- * @return {!proto.BasePlantPOrganization} returns this
859
- */
860
- proto.BasePlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
861
- return jspb.Message.setProto3StringField(this, 6, value);
807
+ proto.BasePlantPOrganization.prototype.hasPurchasingOrganizations = function() {
808
+ return jspb.Message.getField(this, 6) != null;
862
809
  };
863
810
 
864
811